eoss-ui 0.4.98 → 0.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/lib/button-group.js +117 -27
  2. package/lib/button.js +118 -28
  3. package/lib/checkbox-group.js +198 -96
  4. package/lib/data-table-form.js +117 -31
  5. package/lib/data-table.js +173 -75
  6. package/lib/date-picker.js +117 -27
  7. package/lib/dialog.js +127 -41
  8. package/lib/eoss-ui.common.js +1006 -707
  9. package/lib/flow-group.js +117 -27
  10. package/lib/flow-list.js +136 -36
  11. package/lib/flow.js +147 -41
  12. package/lib/form.js +682 -434
  13. package/lib/handle-user.js +142 -52
  14. package/lib/handler.js +117 -27
  15. package/lib/icons.js +2 -2
  16. package/lib/index.js +1 -1
  17. package/lib/input-number.js +118 -28
  18. package/lib/input.js +120 -30
  19. package/lib/layout.js +2 -2
  20. package/lib/login.js +123 -36
  21. package/lib/main.js +232 -151
  22. package/lib/nav.js +117 -27
  23. package/lib/page.js +117 -27
  24. package/lib/player.js +119 -29
  25. package/lib/qr-code.js +117 -27
  26. package/lib/radio-group.js +146 -54
  27. package/lib/retrial-auth.js +117 -27
  28. package/lib/select-ganged.js +118 -28
  29. package/lib/select.js +142 -52
  30. package/lib/selector-panel.js +171 -74
  31. package/lib/selector.js +117 -27
  32. package/lib/sizer.js +120 -30
  33. package/lib/steps.js +117 -27
  34. package/lib/switch.js +118 -28
  35. package/lib/table-form.js +182 -76
  36. package/lib/tabs.js +117 -27
  37. package/lib/tips.js +117 -27
  38. package/lib/tree-group.js +117 -27
  39. package/lib/tree.js +117 -27
  40. package/lib/upload.js +206 -109
  41. package/lib/utils/util.js +97 -19
  42. package/lib/wujie.js +117 -27
  43. package/lib/wxlogin.js +117 -27
  44. package/package.json +1 -1
  45. package/packages/button/src/main.vue +1 -10
  46. package/packages/data-table/src/column.vue +6 -0
  47. package/packages/flow/src/main.vue +20 -3
  48. package/packages/flow-list/src/main.vue +4 -3
  49. package/packages/form/src/main.vue +60 -1
  50. package/packages/form/src/table.vue +6 -0
  51. package/packages/login/src/main.vue +1 -0
  52. package/packages/main/src/main.vue +117 -97
  53. package/packages/radio-group/src/main.vue +1 -0
  54. package/packages/upload/src/main.vue +0 -1
  55. package/src/index.js +1 -1
  56. package/src/utils/util.js +94 -20
@@ -369,6 +369,12 @@
369
369
  v-model="models[item.name]"
370
370
  :plain="item.plain || item.name === undefined"
371
371
  :readonly="readonly ? readonly : item.readonly"
372
+ v-on="
373
+ handleExclAttribute({
374
+ data: item.events,
375
+ attrs: 'change'
376
+ })
377
+ "
372
378
  @change="
373
379
  (val) => {
374
380
  handleChange(item, val);
@@ -459,6 +465,12 @@
459
465
  btn-size="medium"
460
466
  :readonly="readonly ? readonly : item.readonly"
461
467
  :rules="item.rules"
468
+ v-on="
469
+ handleExclAttribute({
470
+ data: item.events,
471
+ attrs: 'change'
472
+ })
473
+ "
462
474
  @change="
463
475
  (val) => {
464
476
  handleChange(item, val);
@@ -473,6 +485,12 @@
473
485
  v-else-if="item.type == 'selector'"
474
486
  :readonly="readonly ? readonly : item.readonly"
475
487
  :plain="item.plain || item.name === undefined"
488
+ v-on="
489
+ handleExclAttribute({
490
+ data: item.events,
491
+ attrs: 'change'
492
+ })
493
+ "
476
494
  @change="
477
495
  (val) => {
478
496
  handleChange(item, val);
@@ -1387,6 +1405,12 @@
1387
1405
  v-model="models[item.name]"
1388
1406
  :readonly="readonly ? readonly : item.readonly"
1389
1407
  :rules="item.rules"
1408
+ v-on="
1409
+ handleExclAttribute({
1410
+ data: item.events,
1411
+ attrs: 'change'
1412
+ })
1413
+ "
1390
1414
  @change="
1391
1415
  (val) => {
1392
1416
  handleChange(item, val);
@@ -1401,6 +1425,12 @@
1401
1425
  v-else-if="item.type === 'selector'"
1402
1426
  :readonly="readonly ? readonly : item.readonly"
1403
1427
  :plain="item.plain || item.name === undefined"
1428
+ v-on="
1429
+ handleExclAttribute({
1430
+ data: item.events,
1431
+ attrs: 'change'
1432
+ })
1433
+ "
1404
1434
  @change="
1405
1435
  (val) => {
1406
1436
  handleChange(item, val);
@@ -2357,6 +2387,12 @@
2357
2387
  v-model="models[item.name]"
2358
2388
  :readonly="readonly ? readonly : item.readonly"
2359
2389
  :rules="item.rules"
2390
+ v-on="
2391
+ handleExclAttribute({
2392
+ data: item.events,
2393
+ attrs: 'change'
2394
+ })
2395
+ "
2360
2396
  @change="
2361
2397
  (val) => {
2362
2398
  handleChange(item, val);
@@ -2364,13 +2400,24 @@
2364
2400
  "
2365
2401
  ></es-upload>
2366
2402
  <es-selector
2403
+ v-else-if="item.type == 'selector'"
2367
2404
  v-bind="
2368
2405
  handleExclAttribute({ data: item, attrs: ['value'] })
2369
2406
  "
2370
2407
  v-model="models[item.name]"
2371
2408
  :readonly="readonly ? readonly : item.readonly"
2372
2409
  :plain="item.plain || item.name === undefined"
2373
- v-else-if="item.type == 'selector'"
2410
+ v-on="
2411
+ handleExclAttribute({
2412
+ data: item.events,
2413
+ attrs: 'change'
2414
+ })
2415
+ "
2416
+ @change="
2417
+ (val) => {
2418
+ handleChange(item, val);
2419
+ }
2420
+ "
2374
2421
  ></es-selector>
2375
2422
  <template v-else-if="item.type === 'table'">
2376
2423
  <es-data-table-form
@@ -3233,6 +3280,12 @@
3233
3280
  v-model="models[item.name]"
3234
3281
  :readonly="readonly ? readonly : item.readonly"
3235
3282
  :rules="item.rules"
3283
+ v-on="
3284
+ handleExclAttribute({
3285
+ data: item.events,
3286
+ attrs: 'change'
3287
+ })
3288
+ "
3236
3289
  @change="
3237
3290
  (val) => {
3238
3291
  handleChange(item, val);
@@ -3245,6 +3298,12 @@
3245
3298
  v-else-if="item.type == 'selector'"
3246
3299
  :readonly="readonly ? readonly : item.readonly"
3247
3300
  :plain="item.plain || item.name === undefined"
3301
+ v-on="
3302
+ handleExclAttribute({
3303
+ data: item.events,
3304
+ attrs: 'change'
3305
+ })
3306
+ "
3248
3307
  @change="
3249
3308
  (val) => {
3250
3309
  handleChange(item, val);
@@ -407,6 +407,12 @@
407
407
  v-else-if="item.type == 'selector'"
408
408
  :readonly="readonly ? readonly : item.readonly"
409
409
  :plain="item.plain"
410
+ v-on="
411
+ handleExclAttribute({
412
+ data: item.events,
413
+ attrs: 'change'
414
+ })
415
+ "
410
416
  @change="
411
417
  (val) => {
412
418
  handleChange(item, val);
@@ -764,6 +764,7 @@ export default {
764
764
  },
765
765
  mounted() {
766
766
  this.getRemember();
767
+ delete util.win.websocket;
767
768
  },
768
769
  methods: {
769
770
  doWechatLogin(code) {
@@ -258,19 +258,20 @@ import {
258
258
  updateUserCustomInfo,
259
259
  getComplexApplications,
260
260
  getComplexApplicationsNew,
261
- mainDetail,
262
- wss,
263
- topic
261
+ mainDetail
264
262
  } from 'eoss-ui/src/config/api.js';
265
263
  import store from 'eoss-ui/src/utils/store';
266
264
  import util from 'eoss-ui/src/utils/util';
267
- import SockJS from 'sockjs-client';
268
- import Stomp from 'stompjs';
269
265
  const isIE = navigator.userAgent.indexOf('MSIE') != -1;
270
266
  const log = util.getParams('console');
271
267
  export default {
272
268
  name: 'EsMain',
273
269
  inheritAttrs: false,
270
+ provide() {
271
+ return {
272
+ esMain: this
273
+ };
274
+ },
274
275
  components: {
275
276
  userinfo,
276
277
  settings,
@@ -539,8 +540,7 @@ export default {
539
540
  copyright: { comp: '', data: {} }
540
541
  },
541
542
  pageLoading: false,
542
- client: null,
543
- websocket: null,
543
+ close: null,
544
544
  connect: 0,
545
545
  wjName: 'singlespa',
546
546
  menus: '',
@@ -622,12 +622,13 @@ export default {
622
622
  };
623
623
  },
624
624
  created() {
625
+ let params = util.getParams() || {};
625
626
  this.homePage =
626
627
  typeof this.loadHomePage === 'string' ? this.loadHomePage : '';
627
- this.isHeader = util.getParams('header');
628
+ this.isHeader = params.header;
628
629
  let sysLogoIco = sessionStorage.getItem('sysLogoIco');
629
630
  sysLogoIco && util.setFavicon(sysLogoIco);
630
- this.isLogin();
631
+ this.isLogin(params);
631
632
  },
632
633
  mounted() {
633
634
  util.win.reLogin = this.handleReLogin;
@@ -642,8 +643,7 @@ export default {
642
643
  util.win.windowOpen = this.openPage;
643
644
  },
644
645
  methods: {
645
- async isLogin() {
646
- const query = util.getParams();
646
+ async isLogin(query) {
647
647
  const token =
648
648
  util.getStorage('token') || util.getStorage('Authorization');
649
649
 
@@ -663,6 +663,7 @@ export default {
663
663
  }
664
664
  if (
665
665
  !token &&
666
+ query &&
666
667
  Object.prototype.hasOwnProperty.call(query, 'serverId') &&
667
668
  Object.prototype.hasOwnProperty.call(query, 'authType')
668
669
  ) {
@@ -885,7 +886,7 @@ export default {
885
886
  this.navIds = ids;
886
887
  this.setTitle(ids[0]);
887
888
  }
888
- } else if (sessionStorage.getItem('jump') && this.history) {
889
+ } else if (sessionStorage.getItem('jump') && this.isHistory) {
889
890
  let ids = this.getId(
890
891
  this.menus,
891
892
  sessionStorage.getItem('jump'),
@@ -908,7 +909,7 @@ export default {
908
909
  this.navIds = ids;
909
910
  this.setTitle(ids[0]);
910
911
  }
911
- } else if (sessionStorage.getItem('jump') && this.history) {
912
+ } else if (sessionStorage.getItem('jump') && this.isHistory) {
912
913
  let ids = this.getId(
913
914
  this.menus,
914
915
  sessionStorage.getItem('jump'),
@@ -991,21 +992,37 @@ export default {
991
992
  this.results[i] = results[i].split(',');
992
993
  }
993
994
  if (i === 'indexUrl' && this.loadHomePage) {
994
- this.homePage =
995
- typeof this.loadHomePage === 'string'
996
- ? this.loadHomePage
997
- : results[i];
998
- if (this.isHomePage && this.homePage) {
999
- if (this.menus && this.menus.length) {
1000
- let ids = null;
1001
- this.homePage && (ids = this.getId(this.menus, this.homePage));
1002
- if (ids) {
1003
- this.defaultActive = ids;
1004
- } else if (this.homePage) {
1005
- this.handleJump(this.homePage);
995
+ let applicationid =
996
+ util.getParams('applicationid') || util.getParams('applicationId');
997
+ let hash = util.win.location.hash;
998
+ if (hash) {
999
+ hash = hash.split('?')[0];
1000
+ }
1001
+ let jump = sessionStorage.getItem('jump');
1002
+ if (
1003
+ !applicationid &&
1004
+ (!jump || !this.isHistory) &&
1005
+ hash === '#/' &&
1006
+ hash === '#/main'
1007
+ ) {
1008
+ this.homePage =
1009
+ typeof this.loadHomePage === 'string'
1010
+ ? this.loadHomePage
1011
+ : results[i];
1012
+ if (this.isHomePage && this.homePage) {
1013
+ if (this.menus && this.menus.length) {
1014
+ let ids = null;
1015
+ this.homePage && (ids = this.getId(this.menus, this.homePage));
1016
+ if (ids) {
1017
+ this.defaultActive = ids;
1018
+ } else if (this.homePage) {
1019
+ this.handleJump(this.homePage);
1020
+ }
1021
+ this.setMenu(this.menus);
1006
1022
  }
1007
- this.setMenu(this.menus);
1008
1023
  }
1024
+ } else if (this.menus && this.menus.length) {
1025
+ this.setMenu(this.menus);
1009
1026
  }
1010
1027
  }
1011
1028
  if (i === 'doorIndex' && results[i]) {
@@ -1091,22 +1108,26 @@ export default {
1091
1108
  }
1092
1109
  });
1093
1110
  },
1094
- jumpMenu(res, flag) {
1111
+ jumpMenu(res, flag, param) {
1112
+ let option = { url: res, flag: flag, param: param };
1113
+ if (util.isObject(res)) {
1114
+ option = { ...option, ...res };
1115
+ }
1095
1116
  let ids;
1096
- if (typeof res === 'string') {
1097
- if (flag) {
1098
- ids = this.getId(this.menus, res, true);
1117
+ if (typeof option.url === 'string') {
1118
+ if (option.flag) {
1119
+ ids = this.getId(this.menus, option.url, true);
1099
1120
  if (!ids) {
1100
1121
  this.$message.error('未在菜单栏中找到此地址');
1101
1122
  return;
1102
1123
  }
1103
1124
  } else {
1104
- ids = res.split(',');
1125
+ ids = option.url.split(',');
1105
1126
  }
1106
1127
  } else {
1107
- ids = res;
1128
+ ids = option.url;
1108
1129
  }
1109
- this.setDefault(this.menus, ids);
1130
+ this.setDefault(this.menus, ids, option.param);
1110
1131
  },
1111
1132
  getId(arry, res, path) {
1112
1133
  if (!res) {
@@ -1175,7 +1196,7 @@ export default {
1175
1196
  if (ids) {
1176
1197
  this.defaultActive = ids;
1177
1198
  }
1178
- } else if (sessionStorage.getItem('jump') && this.history) {
1199
+ } else if (sessionStorage.getItem('jump') && this.isHistory) {
1179
1200
  let ids = this.getId(
1180
1201
  this.menus,
1181
1202
  sessionStorage.getItem('jump'),
@@ -1202,7 +1223,7 @@ export default {
1202
1223
  this.navIds = ids;
1203
1224
  this.setTitle(ids[0]);
1204
1225
  }
1205
- } else if (sessionStorage.getItem('jump') && this.history) {
1226
+ } else if (sessionStorage.getItem('jump') && this.isHistory) {
1206
1227
  let ids = this.getId(
1207
1228
  this.menus,
1208
1229
  sessionStorage.getItem('jump'),
@@ -1369,7 +1390,11 @@ export default {
1369
1390
  this.setTips(item);
1370
1391
  });
1371
1392
  } else {
1372
- if (Object.prototype.hasOwnProperty.call(obj, 'tips') && obj.tips) {
1393
+ if (
1394
+ obj &&
1395
+ Object.prototype.hasOwnProperty.call(obj, 'tips') &&
1396
+ obj.tips
1397
+ ) {
1373
1398
  this.$set(obj, 'tips', false);
1374
1399
  delete obj.tips;
1375
1400
  }
@@ -1404,12 +1429,12 @@ export default {
1404
1429
  return false;
1405
1430
  },
1406
1431
  //设置默认导航页面
1407
- setDefault(res, active) {
1432
+ setDefault(res, active, param) {
1408
1433
  this.navIds = JSON.parse(JSON.stringify(active));
1409
1434
  this.sysId = '';
1410
1435
  this.tabsId = '';
1411
1436
  this.active = '';
1412
- this.getUrl(res, active);
1437
+ this.getUrl(res, active, param);
1413
1438
  if (
1414
1439
  this.layout === 'subsystem' ||
1415
1440
  this.layout === 'subSystem' ||
@@ -1472,18 +1497,18 @@ export default {
1472
1497
  this.showPage = true;
1473
1498
  },
1474
1499
  //获取页面类型及地址
1475
- getUrl(res, active, index) {
1500
+ getUrl(res, active, index, param) {
1476
1501
  index = index === undefined ? 0 : index;
1477
1502
  for (let i = 0; i < res.length; i++) {
1478
1503
  let item = res[i];
1479
1504
  if (item.id === active[index]) {
1480
1505
  if (index === active.length - 1) {
1481
- this.handleJump(item.url, item.urlopenmode, item);
1506
+ this.handleJump(item.url, item.urlopenmode, item, param);
1482
1507
  return item.url;
1483
1508
  } else {
1484
1509
  if (item.children && item.children.length) {
1485
1510
  index++;
1486
- let url = this.getUrl(item.children, active, index);
1511
+ let url = this.getUrl(item.children, active, index, param);
1487
1512
  if (url && index === active.length - 1) {
1488
1513
  this.tabs = '';
1489
1514
  }
@@ -1491,7 +1516,7 @@ export default {
1491
1516
  }
1492
1517
  if (item.fourthTabs && item.fourthTabs.length) {
1493
1518
  index++;
1494
- let url = this.getUrl(item.fourthTabs, active, index);
1519
+ let url = this.getUrl(item.fourthTabs, active, index, param);
1495
1520
  if (url) {
1496
1521
  this.$set(this, 'tabs', item.fourthTabs);
1497
1522
  }
@@ -1499,7 +1524,7 @@ export default {
1499
1524
  }
1500
1525
  }
1501
1526
  } else if (item.children && item.children.length) {
1502
- this.getUrl(item.children, active, index);
1527
+ this.getUrl(item.children, active, index, param);
1503
1528
  }
1504
1529
  }
1505
1530
  return false;
@@ -1694,7 +1719,7 @@ export default {
1694
1719
  if (res.path !== '/' && pathname == path) {
1695
1720
  return pathname;
1696
1721
  }
1697
- if (Object.prototype.hasOwnProperty.call(res, 'children')) {
1722
+ if (res && Object.prototype.hasOwnProperty.call(res, 'children')) {
1698
1723
  let path = this.hasRouter(res.children, url);
1699
1724
  if (path) {
1700
1725
  return path;
@@ -1761,7 +1786,8 @@ export default {
1761
1786
  }
1762
1787
  },
1763
1788
  //跳转页面
1764
- handleJump(page, type, res) {
1789
+ handleJump(page, type, res, param) {
1790
+ console.log(page);
1765
1791
  let prevPage = sessionStorage.getItem('jump');
1766
1792
  sessionStorage.setItem('jump', page);
1767
1793
  if (res) {
@@ -1782,7 +1808,7 @@ export default {
1782
1808
  } else if (type == 3) {
1783
1809
  this.method = 'iframe';
1784
1810
  this.refresh = false;
1785
- this.page = util.handlerUrl(page);
1811
+ this.page = util.handlerUrl(page, param);
1786
1812
  } else if (page) {
1787
1813
  let urls = page.split('?');
1788
1814
  if (urls[0].indexOf('.js') > 1) {
@@ -1798,12 +1824,12 @@ export default {
1798
1824
  ) {
1799
1825
  this.method = 'iframe';
1800
1826
  this.refresh = false;
1801
- this.page = util.handlerUrl(page);
1827
+ this.page = util.handlerUrl(page, param);
1802
1828
  } else {
1803
1829
  if (urls[0].indexOf('.html') === -1 && urls[0].indexOf('#/') === -1) {
1804
1830
  this.method = 'iframe';
1805
1831
  this.refresh = false;
1806
- this.page = util.handlerUrl(page);
1832
+ this.page = util.handlerUrl(page, param);
1807
1833
  } else {
1808
1834
  this.method = 'router';
1809
1835
  const routes = this.$router.options.routes;
@@ -1811,6 +1837,9 @@ export default {
1811
1837
  let path = this.hasRouter(routes, urls[0]);
1812
1838
  if (path) {
1813
1839
  let params = util.getParams({ url: page });
1840
+ if (param) {
1841
+ params = { ...params, ...param };
1842
+ }
1814
1843
  if (res) {
1815
1844
  this.routerKey = res.id;
1816
1845
  if (Object.prototype.hasOwnProperty.call(res, 'keepAlive')) {
@@ -1836,7 +1865,7 @@ export default {
1836
1865
  ) {
1837
1866
  this.method = 'iframe';
1838
1867
  this.refresh = false;
1839
- this.page = util.handlerUrl(page);
1868
+ this.page = util.handlerUrl(page, param);
1840
1869
  } else {
1841
1870
  this.method = 'wujie';
1842
1871
  this.wjName =
@@ -1983,55 +2012,46 @@ export default {
1983
2012
  },
1984
2013
  //开启weosocket
1985
2014
  initWebSocket() {
1986
- //初始化weosocket
1987
- if (!this.websocket) {
1988
- const url = (util.getStorage('wshost') || '') + wss;
1989
- this.websocket = new SockJS(url);
1990
- }
1991
- this.client = Stomp.over(this.websocket);
1992
- if (!this.isConsole && this.client) {
1993
- this.client.debug = null;
1994
- }
1995
- this.handleConnect(this.client);
1996
- },
1997
- handleConnect(client) {
1998
- client.connect(
1999
- {},
2000
- () => {
2001
- //localStorage.setItem("socket",true);
2002
- //订阅服务端的
2003
- client.subscribe(topic, (response) => {
2004
- let res = JSON.parse(response.body);
2005
- let data = res.data;
2006
- for (let i in data) {
2007
- if (data[i] !== null && data[i] !== undefined) {
2008
- if (i === 'onlineUserNums' && data[i] > 0) {
2009
- this.online = data[i];
2010
- }
2011
- if (i === 'sysMsgNums') {
2012
- this.notice = data[i];
2013
- if (this.showMsg) {
2014
- this.$refs.message.getMsg(true);
2015
- }
2016
- }
2017
- if (i === 'menuTipsMap') {
2018
- this.menuTips = data[i];
2019
- }
2020
- if (i === 'sysMsgList') {
2021
- this.sysMsg = data[i];
2022
- }
2023
- if (i === 'extraData') {
2024
- this.extraData = data[i];
2015
+ util
2016
+ .socket()
2017
+ .then((res, close) => {
2018
+ this.close = close;
2019
+ let data = res.data;
2020
+ for (let i in data) {
2021
+ if (data[i] !== null && data[i] !== undefined) {
2022
+ if (i === 'onlineUserNums' && data[i] > 0) {
2023
+ this.online = data[i];
2024
+ }
2025
+ if (i === 'sysMsgNums') {
2026
+ this.notice = data[i];
2027
+ if (this.showMsg) {
2028
+ this.$refs.message.getMsg(true);
2025
2029
  }
2026
2030
  }
2031
+ if (i === 'menuTipsMap') {
2032
+ this.menuTips = data[i];
2033
+ }
2034
+ if (i === 'sysMsgList') {
2035
+ this.sysMsg = data[i];
2036
+ }
2037
+ if (i === 'extraData') {
2038
+ this.extraData = data[i];
2039
+ }
2027
2040
  }
2028
- });
2029
- },
2030
- (error) => {
2031
- console.log('webSocket连接失败');
2032
- client.disconnect();
2033
- }
2034
- );
2041
+ }
2042
+ if (this.$store) {
2043
+ this.$store.commit('websocket', data);
2044
+ }
2045
+ if (this.$eventBus) {
2046
+ this.$eventBus.$emit('websocket', data);
2047
+ }
2048
+ if (util.win.eventBus) {
2049
+ util.win.eventBus.$emit('websocket', data);
2050
+ }
2051
+ })
2052
+ .catch((err) => {
2053
+ console.log(err);
2054
+ });
2035
2055
  },
2036
2056
  handleOpened(res) {
2037
2057
  if (res === undefined) {
@@ -2166,8 +2186,8 @@ export default {
2166
2186
  },
2167
2187
  beforeDestroy() {
2168
2188
  this.timer = null;
2169
- if (this.client && this.client.connected) {
2170
- this.client.disconnect();
2189
+ if (this.close) {
2190
+ this.close();
2171
2191
  }
2172
2192
  }
2173
2193
  };
@@ -11,6 +11,7 @@
11
11
  v-else
12
12
  v-show="display"
13
13
  v-model="model"
14
+ :value-key="valueKey"
14
15
  v-bind="$attrs"
15
16
  v-on="$listeners"
16
17
  >
@@ -810,7 +810,6 @@ export default {
810
810
  host += this.host;
811
811
  }
812
812
  }
813
- console.log(host);
814
813
  let url = encodeURIComponent(
815
814
  Base64.encode(
816
815
  host +
package/src/index.js CHANGED
@@ -117,7 +117,7 @@ if (typeof window !== 'undefined' && window.Vue) {
117
117
  }
118
118
 
119
119
  export default {
120
- version: '0.4.98',
120
+ version: '0.5.10',
121
121
  install,
122
122
  Button,
123
123
  ButtonGroup,