Skip to content

Commit 7edc52b

Browse files
committed
refine
1 parent 0d9937f commit 7edc52b

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

examples/src/comp/app.vue

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,8 @@ import locale from "./locale";
143143
import I18nMixins from "./mixins/i18n-mixins";
144144
import ThemeSwitchMixins from "./mixins/theme-switch-mixins.js";
145145
import 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/";
149148
export 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
},

package.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
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": [

0 commit comments

Comments
 (0)