File tree Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -143,9 +143,8 @@ import locale from "./locale";
143143import I18nMixins from " ./mixins/i18n-mixins" ;
144144import ThemeSwitchMixins from " ./mixins/theme-switch-mixins.js" ;
145145import clickoutside from " ./directives/clickoutside.js" ;
146- import { version as latestVersion } from " ../../../package.json" ;
146+ import { version as latestVersion , docVersions } from " ../../../package.json" ;
147147
148- const RESOURCE_PATH = " /vue-easytable/" ;
149148export default {
150149 directives: {
151150 " click-outside" : clickoutside,
@@ -160,21 +159,7 @@ export default {
160159 ],
161160 showLangDropdown: false ,
162161 // switch version option
163- switchVersionOptions: [
164- {
165- value: ` ${ RESOURCE_PATH } 2.12.0/` ,
166- label: " 2.12.0" ,
167- },
168- {
169- value: ` ${ RESOURCE_PATH } 2.11.0/` ,
170- label: " 2.11.0" ,
171- },
172- {
173- value: ` ${ RESOURCE_PATH } 1.7.2/app.html` ,
174- label: " 1.x" ,
175- isVersion1: true ,
176- },
177- ],
162+ switchVersionOptions: docVersions,
178163 showVersionDropdown: false ,
179164 };
180165 },
Original file line number Diff line number Diff line change 11{
22 "name" : " vue-easytable" ,
3- "version" : " 2.11.0" ,
3+ "version" : " 2.12.0" ,
4+ "docVersions" : [
5+ {
6+ "value" : " /vue-easytable/2.12.0/" ,
7+ "label" : " 2.12.0"
8+ },
9+ {
10+ "value" : " /vue-easytable/2.11.0/" ,
11+ "label" : " 2.11.0"
12+ },
13+ {
14+ "value" : " /vue-easytable/1.7.2/app.html" ,
15+ "label" : " 1.x" ,
16+ "isVersion1" : true
17+ }
18+ ],
419 "main" : " libs/main.js" ,
520 "description" : " Vue table component" ,
621 "keywords" : [
You can’t perform that action at this time.
0 commit comments