ai.touchui-vue 1.34.1 → 1.34.2

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.
package/lib/loading.js CHANGED
@@ -204,7 +204,7 @@ module.exports = require("ai.touchui-vue/lib/utils/dom");
204
204
 
205
205
  "use strict";
206
206
 
207
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/msg/src/msg.vue?vue&type=template&id=24cfd992
207
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/msg/src/msg.vue?vue&type=template&id=022f4ea9
208
208
  var render = function () {
209
209
  var _vm = this
210
210
  var _h = _vm.$createElement
@@ -367,6 +367,31 @@ var render = function () {
367
367
  [_vm._v(_vm._s(_vm.confirmButtonText))]
368
368
  )
369
369
  : _vm._e(),
370
+ _vm._l(_vm.buttons, function (btn, index) {
371
+ return _c(
372
+ "to-button",
373
+ _vm._b(
374
+ {
375
+ key: index,
376
+ on: {
377
+ click: function ($event) {
378
+ return _vm.handleButtonClick(btn)
379
+ },
380
+ },
381
+ },
382
+ "to-button",
383
+ btn.attrs,
384
+ false
385
+ ),
386
+ [
387
+ _vm._v(
388
+ "\n\t\t\t\t\t\t" +
389
+ _vm._s(btn.label) +
390
+ "\n\t\t\t\t\t"
391
+ ),
392
+ ]
393
+ )
394
+ }),
370
395
  ]),
371
396
  ],
372
397
  2
@@ -381,7 +406,7 @@ var staticRenderFns = []
381
406
  render._withStripped = true
382
407
 
383
408
 
384
- // CONCATENATED MODULE: ./packages/msg/src/msg.vue?vue&type=template&id=24cfd992
409
+ // CONCATENATED MODULE: ./packages/msg/src/msg.vue?vue&type=template&id=022f4ea9
385
410
 
386
411
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/msg/src/msg.vue?vue&type=script&lang=js
387
412
  //
@@ -423,6 +448,14 @@ render._withStripped = true
423
448
  //
424
449
  //
425
450
  //
451
+ //
452
+ //
453
+ //
454
+ //
455
+ //
456
+ //
457
+ //
458
+ //
426
459
 
427
460
  /* harmony default export */ var msgvue_type_script_lang_js = ({
428
461
  name: 'ToMsg',
@@ -498,7 +531,13 @@ render._withStripped = true
498
531
  default: 0
499
532
  },
500
533
  global: Boolean,
501
- show: Boolean
534
+ show: Boolean,
535
+ buttons: {
536
+ type: Array,
537
+ default: function _default() {
538
+ return [];
539
+ }
540
+ }
502
541
  },
503
542
  data: function data() {
504
543
  return {
@@ -611,6 +650,11 @@ render._withStripped = true
611
650
  cancel: function cancel() {
612
651
  this.visible = false;
613
652
  this.$emit('close');
653
+ },
654
+ handleButtonClick: function handleButtonClick(btn) {
655
+ if (typeof btn.fn === 'function') {
656
+ btn.fn();
657
+ }
614
658
  }
615
659
  }
616
660
  });
package/lib/msg/index.js CHANGED
@@ -66,8 +66,13 @@ exports.default = function () {
66
66
  container.setAttribute('id', uuid);
67
67
  body.appendChild(container);
68
68
  var props = {};
69
- Object.keys(options).map(function (key) {
70
- props[key] = { default: options[key] };
69
+ Object.keys(options).forEach(function (key) {
70
+ var value = options[key];
71
+ props[key] = {
72
+ default: (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && value !== null ? function () {
73
+ return Array.isArray(value) ? value.slice() : Object.assign({}, value);
74
+ } : value
75
+ };
71
76
  });
72
77
  // eslint-disable-next-line no-unused-vars
73
78
  var MsgItem = new ToMsgCom({
package/lib/msg.js CHANGED
@@ -197,7 +197,7 @@ function normalizeComponent(
197
197
 
198
198
  "use strict";
199
199
 
200
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/msg/src/msg.vue?vue&type=template&id=24cfd992
200
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/msg/src/msg.vue?vue&type=template&id=022f4ea9
201
201
  var render = function () {
202
202
  var _vm = this
203
203
  var _h = _vm.$createElement
@@ -360,6 +360,31 @@ var render = function () {
360
360
  [_vm._v(_vm._s(_vm.confirmButtonText))]
361
361
  )
362
362
  : _vm._e(),
363
+ _vm._l(_vm.buttons, function (btn, index) {
364
+ return _c(
365
+ "to-button",
366
+ _vm._b(
367
+ {
368
+ key: index,
369
+ on: {
370
+ click: function ($event) {
371
+ return _vm.handleButtonClick(btn)
372
+ },
373
+ },
374
+ },
375
+ "to-button",
376
+ btn.attrs,
377
+ false
378
+ ),
379
+ [
380
+ _vm._v(
381
+ "\n\t\t\t\t\t\t" +
382
+ _vm._s(btn.label) +
383
+ "\n\t\t\t\t\t"
384
+ ),
385
+ ]
386
+ )
387
+ }),
363
388
  ]),
364
389
  ],
365
390
  2
@@ -374,7 +399,7 @@ var staticRenderFns = []
374
399
  render._withStripped = true
375
400
 
376
401
 
377
- // CONCATENATED MODULE: ./packages/msg/src/msg.vue?vue&type=template&id=24cfd992
402
+ // CONCATENATED MODULE: ./packages/msg/src/msg.vue?vue&type=template&id=022f4ea9
378
403
 
379
404
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/msg/src/msg.vue?vue&type=script&lang=js
380
405
  //
@@ -416,6 +441,14 @@ render._withStripped = true
416
441
  //
417
442
  //
418
443
  //
444
+ //
445
+ //
446
+ //
447
+ //
448
+ //
449
+ //
450
+ //
451
+ //
419
452
 
420
453
  /* harmony default export */ var msgvue_type_script_lang_js = ({
421
454
  name: 'ToMsg',
@@ -491,7 +524,13 @@ render._withStripped = true
491
524
  default: 0
492
525
  },
493
526
  global: Boolean,
494
- show: Boolean
527
+ show: Boolean,
528
+ buttons: {
529
+ type: Array,
530
+ default: function _default() {
531
+ return [];
532
+ }
533
+ }
495
534
  },
496
535
  data: function data() {
497
536
  return {
@@ -604,6 +643,11 @@ render._withStripped = true
604
643
  cancel: function cancel() {
605
644
  this.visible = false;
606
645
  this.$emit('close');
646
+ },
647
+ handleButtonClick: function handleButtonClick(btn) {
648
+ if (typeof btn.fn === 'function') {
649
+ btn.fn();
650
+ }
607
651
  }
608
652
  }
609
653
  });
package/lib/slide.js CHANGED
@@ -199,7 +199,7 @@ function normalizeComponent(
199
199
  // ESM COMPAT FLAG
200
200
  __webpack_require__.r(__webpack_exports__);
201
201
 
202
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/slide/src/slide.vue?vue&type=template&id=7326dd67
202
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/slide/src/slide.vue?vue&type=template&id=628fc16c
203
203
  var render = function () {
204
204
  var _vm = this
205
205
  var _h = _vm.$createElement
@@ -274,7 +274,7 @@ var staticRenderFns = []
274
274
  render._withStripped = true
275
275
 
276
276
 
277
- // CONCATENATED MODULE: ./packages/slide/src/slide.vue?vue&type=template&id=7326dd67
277
+ // CONCATENATED MODULE: ./packages/slide/src/slide.vue?vue&type=template&id=628fc16c
278
278
 
279
279
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/slide/src/slide.vue?vue&type=script&lang=js
280
280
  //
@@ -408,10 +408,10 @@ render._withStripped = true
408
408
  return;
409
409
  }
410
410
  this.animate = true;
411
- if (this.dis > 0) {
411
+ if (this.dis > 10) {
412
412
  this.prev();
413
413
  this.dis = 0;
414
- } else {
414
+ } else if (this.dis < -10) {
415
415
  this.next();
416
416
  this.dis = 0;
417
417
  }
package/lib/space.js CHANGED
@@ -199,7 +199,7 @@ function normalizeComponent(
199
199
  // ESM COMPAT FLAG
200
200
  __webpack_require__.r(__webpack_exports__);
201
201
 
202
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/space/src/space.vue?vue&type=template&id=4a528a86
202
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/space/src/space.vue?vue&type=template&id=356a5b6a
203
203
  var render = function () {
204
204
  var _vm = this
205
205
  var _h = _vm.$createElement
@@ -214,7 +214,7 @@ var staticRenderFns = []
214
214
  render._withStripped = true
215
215
 
216
216
 
217
- // CONCATENATED MODULE: ./packages/space/src/space.vue?vue&type=template&id=4a528a86
217
+ // CONCATENATED MODULE: ./packages/space/src/space.vue?vue&type=template&id=356a5b6a
218
218
 
219
219
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/space/src/space.vue?vue&type=script&lang=js
220
220
  //
@@ -244,7 +244,7 @@ render._withStripped = true
244
244
  },
245
245
  computed: {
246
246
  setStyle: function setStyle() {
247
- if (this.type === 'inline') {
247
+ if (this.type === 'inline' || this.inline) {
248
248
  return {
249
249
  width: this.value + 'em'
250
250
  };
package/lib/table.js CHANGED
@@ -245,7 +245,7 @@ module.exports = require("ai.touchui-vue/lib/locale");
245
245
  // ESM COMPAT FLAG
246
246
  __webpack_require__.r(__webpack_exports__);
247
247
 
248
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/table.vue?vue&type=template&id=f49d5814
248
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/table.vue?vue&type=template&id=0f1f2eda
249
249
  var render = function () {
250
250
  var _vm = this
251
251
  var _h = _vm.$createElement
@@ -1064,7 +1064,7 @@ var staticRenderFns = []
1064
1064
  render._withStripped = true
1065
1065
 
1066
1066
 
1067
- // CONCATENATED MODULE: ./packages/table/src/table.vue?vue&type=template&id=f49d5814
1067
+ // CONCATENATED MODULE: ./packages/table/src/table.vue?vue&type=template&id=0f1f2eda
1068
1068
 
1069
1069
  // EXTERNAL MODULE: external "vue"
1070
1070
  var external_vue_ = __webpack_require__(4);
@@ -2086,8 +2086,8 @@ var table_head_component = Object(componentNormalizer["a" /* default */])(
2086
2086
  )
2087
2087
 
2088
2088
  /* harmony default export */ var table_head = (table_head_component.exports);
2089
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/table-body.vue?vue&type=template&id=29fea657
2090
- var table_bodyvue_type_template_id_29fea657_render = function () {
2089
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/table-body.vue?vue&type=template&id=4c1ad380
2090
+ var table_bodyvue_type_template_id_4c1ad380_render = function () {
2091
2091
  var _vm = this
2092
2092
  var _h = _vm.$createElement
2093
2093
  var _c = _vm._self._c || _h
@@ -2729,7 +2729,8 @@ var table_bodyvue_type_template_id_29fea657_render = function () {
2729
2729
  $event.stopPropagation()
2730
2730
  return _vm.toggleFold(
2731
2731
  dataItem,
2732
- dataIndex
2732
+ dataIndex,
2733
+ true
2733
2734
  )
2734
2735
  },
2735
2736
  },
@@ -2786,11 +2787,11 @@ var table_bodyvue_type_template_id_29fea657_render = function () {
2786
2787
  0
2787
2788
  )
2788
2789
  }
2789
- var table_bodyvue_type_template_id_29fea657_staticRenderFns = []
2790
- table_bodyvue_type_template_id_29fea657_render._withStripped = true
2790
+ var table_bodyvue_type_template_id_4c1ad380_staticRenderFns = []
2791
+ table_bodyvue_type_template_id_4c1ad380_render._withStripped = true
2791
2792
 
2792
2793
 
2793
- // CONCATENATED MODULE: ./packages/table/src/table-body.vue?vue&type=template&id=29fea657
2794
+ // CONCATENATED MODULE: ./packages/table/src/table-body.vue?vue&type=template&id=4c1ad380
2794
2795
 
2795
2796
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/table-body.vue?vue&type=script&lang=js
2796
2797
  //
@@ -3031,7 +3032,7 @@ table_bodyvue_type_template_id_29fea657_render._withStripped = true
3031
3032
  },
3032
3033
  inject: ['ToTable'],
3033
3034
  methods: {
3034
- toggleFold: function toggleFold(item, index) {
3035
+ toggleFold: function toggleFold(item, index, type) {
3035
3036
  var that = this;
3036
3037
  if (!item._showChild) {
3037
3038
  item._showChild = true;
@@ -3042,7 +3043,11 @@ table_bodyvue_type_template_id_29fea657_render._withStripped = true
3042
3043
  var el = this.data[i];
3043
3044
  if (item._showChild) {
3044
3045
  if (el._level === item._level + 1) {
3045
- el._show = true;
3046
+ if (type) {
3047
+ el._show = true;
3048
+ } else {
3049
+ show(el, i);
3050
+ }
3046
3051
  } else if (el._level <= item._level) {
3047
3052
  break;
3048
3053
  }
@@ -3068,6 +3073,86 @@ table_bodyvue_type_template_id_29fea657_render._withStripped = true
3068
3073
  }
3069
3074
  }
3070
3075
  }
3076
+ function show(tr, index) {
3077
+ tr._show = true;
3078
+ tr._showChild = true;
3079
+ if (tr._hasChild) {
3080
+ for (var _i2 = index + 1; _i2 < that.data.length; _i2++) {
3081
+ var _el2 = that.data[_i2];
3082
+ if (_el2._level === tr._level + 1) {
3083
+ show(_el2, _i2);
3084
+ } else {
3085
+ break;
3086
+ }
3087
+ }
3088
+ }
3089
+ }
3090
+ this.ToTable.adjust();
3091
+ },
3092
+
3093
+ // 展开全部
3094
+ expandAll: function expandAll(item, index, type) {
3095
+ var that = this;
3096
+ item._showChild = true;
3097
+ for (var i = index + 1; i < this.data.length; i++) {
3098
+ var el = this.data[i];
3099
+ if (item._showChild) {
3100
+ if (el._level === item._level + 1) {
3101
+ if (type) {
3102
+ el._show = true;
3103
+ } else {
3104
+ show(el, i);
3105
+ }
3106
+ } else if (el._level <= item._level) {
3107
+ break;
3108
+ }
3109
+ }
3110
+ }
3111
+ function show(tr, index) {
3112
+ tr._show = true;
3113
+ tr._showChild = true;
3114
+ if (tr._hasChild) {
3115
+ for (var _i3 = index + 1; _i3 < that.data.length; _i3++) {
3116
+ var _el3 = that.data[_i3];
3117
+ if (_el3._level === tr._level + 1) {
3118
+ show(_el3, _i3);
3119
+ } else {
3120
+ break;
3121
+ }
3122
+ }
3123
+ }
3124
+ }
3125
+ this.ToTable.adjust();
3126
+ },
3127
+
3128
+ // 收起全部
3129
+ collapseAll: function collapseAll(item, index) {
3130
+ var that = this;
3131
+ item._showChild = false;
3132
+ for (var i = index + 1; i < this.data.length; i++) {
3133
+ var el = this.data[i];
3134
+ if (!item._showChild) {
3135
+ if (el._level === item._level + 1) {
3136
+ hide(el, i);
3137
+ } else if (el._level <= item._level) {
3138
+ break;
3139
+ }
3140
+ }
3141
+ }
3142
+ function hide(tr, index) {
3143
+ tr._show = false;
3144
+ tr._showChild = false;
3145
+ if (tr._hasChild) {
3146
+ for (var _i4 = index + 1; _i4 < that.data.length; _i4++) {
3147
+ var _el4 = that.data[_i4];
3148
+ if (_el4._level === tr._level + 1) {
3149
+ hide(_el4, _i4);
3150
+ } else {
3151
+ break;
3152
+ }
3153
+ }
3154
+ }
3155
+ }
3071
3156
  this.ToTable.adjust();
3072
3157
  },
3073
3158
  clickHandle: function clickHandle(event) {
@@ -3116,8 +3201,8 @@ table_bodyvue_type_template_id_29fea657_render._withStripped = true
3116
3201
 
3117
3202
  var table_body_component = Object(componentNormalizer["a" /* default */])(
3118
3203
  src_table_bodyvue_type_script_lang_js,
3119
- table_bodyvue_type_template_id_29fea657_render,
3120
- table_bodyvue_type_template_id_29fea657_staticRenderFns,
3204
+ table_bodyvue_type_template_id_4c1ad380_render,
3205
+ table_bodyvue_type_template_id_4c1ad380_staticRenderFns,
3121
3206
  false,
3122
3207
  null,
3123
3208
  null,
@@ -3294,6 +3379,10 @@ var lib_locale_ = __webpack_require__(3);
3294
3379
  //
3295
3380
  //
3296
3381
  //
3382
+ //
3383
+ //
3384
+ //
3385
+ //
3297
3386
 
3298
3387
 
3299
3388
 
@@ -3515,7 +3604,8 @@ function db(fn) {
3515
3604
  fixed: false,
3516
3605
  isStartLongtap: false,
3517
3606
  longtapTimer: null,
3518
- stopClick: false
3607
+ stopClick: false,
3608
+ expandFlag: true
3519
3609
  };
3520
3610
  },
3521
3611
 
@@ -4702,6 +4792,43 @@ function db(fn) {
4702
4792
  },
4703
4793
  columnChangeHandle: function columnChangeHandle(data) {
4704
4794
  this.$emit('update:columns', data);
4795
+ },
4796
+ toggleFold: function toggleFold(item, index) {
4797
+ this.$refs.tbody.toggleFold(item, index, false);
4798
+ },
4799
+
4800
+ // 展开所有
4801
+ expandAll: function expandAll() {
4802
+ var _this18 = this;
4803
+
4804
+ if (this.iData.length > 0) {
4805
+ this.iData.forEach(function (item, index) {
4806
+ if (item._hasChild && item._level === 1 && item._show === true) {
4807
+ _this18.$refs.tbody.expandAll(item, index, false);
4808
+ }
4809
+ });
4810
+ }
4811
+ },
4812
+
4813
+ // 折叠所有
4814
+ collapseAll: function collapseAll() {
4815
+ var _this19 = this;
4816
+
4817
+ if (this.iData.length > 0) {
4818
+ this.iData.forEach(function (item, index) {
4819
+ if (item._hasChild && item._level === 1 && item._show === true) {
4820
+ _this19.$refs.tbody.collapseAll(item, index, false);
4821
+ }
4822
+ });
4823
+ }
4824
+ },
4825
+ toggleFoldAll: function toggleFoldAll() {
4826
+ if (this.expandFlag) {
4827
+ this.expandAll();
4828
+ } else {
4829
+ this.collapseAll();
4830
+ }
4831
+ this.expandFlag = !this.expandFlag;
4705
4832
  }
4706
4833
  }
4707
4834
  });
@@ -3,64 +3,64 @@
3
3
  exports.__esModule = true;
4
4
  var YAHOO = exports.YAHOO = {};
5
5
  YAHOO.lang = {
6
- /**
7
- * Utility to set up the prototype, constructor and superclass properties to
8
- * support an inheritance strategy that can chain constructors and methods.
9
- * Static members will not be inherited.
10
- *
11
- * @method extend
12
- * @static
13
- * @param {Function} subc the object to modify
14
- * @param {Function} superc the object to inherit
15
- * @param {Object} overrides additional properties/methods to add to the
16
- * subclass prototype. These will override the
17
- * matching items obtained from the superclass
18
- * if present.
19
- */
20
- extend: function extend(subc, superc, overrides) {
21
- if (!superc || !subc) {
22
- throw new Error("YAHOO.lang.extend failed, please check that " + "all dependencies are included.");
23
- }
24
- var F = function F() {};
25
- F.prototype = superc.prototype;
26
- subc.prototype = new F();
27
- subc.prototype.constructor = subc;
28
- subc.superclass = superc.prototype;
29
- if (superc.prototype.constructor == Object.prototype.constructor) {
30
- superc.prototype.constructor = superc;
31
- }
32
- if (overrides) {
33
- var i;
34
- for (i in overrides) {
35
- subc.prototype[i] = overrides[i];
36
- }
37
- /*
38
- * IE will not enumerate native functions in a derived object even if the
39
- * function was overridden. This is a workaround for specific functions
40
- * we care about on the Object prototype.
41
- * @property _IEEnumFix
42
- * @param {Function} r the object to receive the augmentation
43
- * @param {Function} s the object that supplies the properties to augment
44
- * @static
45
- * @private
46
- */
47
- var _IEEnumFix = function _IEEnumFix() {},
48
- ADD = ["toString", "valueOf"];
49
- try {
50
- if (/MSIE/.test(navigator.userAgent)) {
51
- _IEEnumFix = function _IEEnumFix(r, s) {
52
- for (i = 0; i < ADD.length; i = i + 1) {
53
- var fname = ADD[i],
54
- f = s[fname];
55
- if (typeof f === 'function' && f != Object.prototype[fname]) {
56
- r[fname] = f;
57
- }
58
- }
59
- };
60
- }
61
- } catch (ex) {}
62
- ;
63
- _IEEnumFix(subc.prototype, overrides);
64
- }
65
- }
6
+ /**
7
+ * Utility to set up the prototype, constructor and superclass properties to
8
+ * support an inheritance strategy that can chain constructors and methods.
9
+ * Static members will not be inherited.
10
+ *
11
+ * @method extend
12
+ * @static
13
+ * @param {Function} subc the object to modify
14
+ * @param {Function} superc the object to inherit
15
+ * @param {Object} overrides additional properties/methods to add to the
16
+ * subclass prototype. These will override the
17
+ * matching items obtained from the superclass
18
+ * if present.
19
+ */
20
+ extend: function extend(subc, superc, overrides) {
21
+ if (!superc || !subc) {
22
+ throw new Error("YAHOO.lang.extend failed, please check that " + "all dependencies are included.");
23
+ }
24
+ var F = function F() {};
25
+ F.prototype = superc.prototype;
26
+ subc.prototype = new F();
27
+ subc.prototype.constructor = subc;
28
+ subc.superclass = superc.prototype;
29
+ if (superc.prototype.constructor == Object.prototype.constructor) {
30
+ superc.prototype.constructor = superc;
31
+ }
32
+ if (overrides) {
33
+ var i;
34
+ for (i in overrides) {
35
+ subc.prototype[i] = overrides[i];
36
+ }
37
+ /*
38
+ * IE will not enumerate native functions in a derived object even if the
39
+ * function was overridden. This is a workaround for specific functions
40
+ * we care about on the Object prototype.
41
+ * @property _IEEnumFix
42
+ * @param {Function} r the object to receive the augmentation
43
+ * @param {Function} s the object that supplies the properties to augment
44
+ * @static
45
+ * @private
46
+ */
47
+ var _IEEnumFix = function _IEEnumFix() {},
48
+ ADD = ["toString", "valueOf"];
49
+ try {
50
+ if (/MSIE/.test(navigator.userAgent)) {
51
+ _IEEnumFix = function _IEEnumFix(r, s) {
52
+ for (i = 0; i < ADD.length; i = i + 1) {
53
+ var fname = ADD[i],
54
+ f = s[fname];
55
+ if (typeof f === 'function' && f != Object.prototype[fname]) {
56
+ r[fname] = f;
57
+ }
58
+ }
59
+ };
60
+ }
61
+ } catch (ex) {}
62
+ ;
63
+ _IEEnumFix(subc.prototype, overrides);
64
+ }
65
+ }
66
66
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai.touchui-vue",
3
- "version": "1.34.1",
3
+ "version": "1.34.2",
4
4
  "description": "TouchUI Component Library for Vue.js.",
5
5
  "main": "lib/ai.touchui-vue.common.js",
6
6
  "files": [
@@ -12,7 +12,7 @@
12
12
  <span v-if="multiple && selected.length > 0" class="to-selectTag">
13
13
  <template v-if="selected.length > 0">
14
14
  <template v-for="(item, index) in selected">
15
- <to-tag :key="index" color="fg" mode="plain" :deletable="!disabled" @delete="removeCheck(item.value); setSelected()">{{ item.labelPath }}</to-tag>
15
+ <to-tag v-if="true" :key="index" color="fg" mode="plain" :deletable="!disabled" @delete="removeCheck(item.value); setSelected()">{{ item.labelPath }}</to-tag>
16
16
  </template>
17
17
  </template>
18
18
  </span>
@@ -481,7 +481,7 @@ export default {
481
481
  }
482
482
  } else {
483
483
  this.label = this.getLabelPath(val.value)
484
- this.$emit('change', val.value)
484
+ this.$emit('change', val.value, val)
485
485
  }
486
486
  }
487
487
  }
@@ -589,7 +589,7 @@ export default {
589
589
  let that = this
590
590
  function set(node, level = 0, path = '', labelPath = '', parent = '__root__') {
591
591
  for (let i = 0; i < node.length; i++) {
592
- arr.push({
592
+ arr.push(Object.assign(node[i], {
593
593
  label: node[i][that.labelText] || '',
594
594
  value: node[i][that.valueText] || '',
595
595
  level: level,
@@ -597,7 +597,7 @@ export default {
597
597
  labelPath: (labelPath + ' / ' + node[i][that.labelText]).substr(3),
598
598
  parent: parent,
599
599
  isLeaf: !(node[i][that.childrenText] && node[i][that.childrenText].length > 0)
600
- })
600
+ }))
601
601
  if (node[i][that.childrenText]) {
602
602
  set(
603
603
  node[i][that.childrenText],
@@ -21,7 +21,7 @@
21
21
  :clearable="clearable && !disabled"
22
22
  :width="width"
23
23
  :comparable="comparable"
24
- @focus="errorTip = ''"
24
+ @focus="errorTip = '';$emit('focus',datedisplay)"
25
25
  @click="handleClick"
26
26
  @clear="clear()"
27
27
  @input="handleDisplayChange"