ai.touchui-vue 1.33.3 → 1.34.1

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 (85) hide show
  1. package/lib/affix.js +2 -2
  2. package/lib/ai.touchui-vue.common.js +904 -917
  3. package/lib/align.js +2 -2
  4. package/lib/animation.js +2 -2
  5. package/lib/article.js +2 -2
  6. package/lib/box.js +2 -2
  7. package/lib/button.js +2 -2
  8. package/lib/calendar.js +2 -2
  9. package/lib/card-item.js +19 -19
  10. package/lib/card.js +178 -178
  11. package/lib/cascader.js +2 -2
  12. package/lib/center-scroll.js +2 -2
  13. package/lib/chat.js +4 -4
  14. package/lib/checkbox.js +11 -5
  15. package/lib/checkboxes.js +27 -5
  16. package/lib/collapse.js +768 -768
  17. package/lib/color.js +2 -2
  18. package/lib/countdown.js +2 -2
  19. package/lib/date-picker.js +1486 -1486
  20. package/lib/date-range.js +2 -2
  21. package/lib/dialog.js +27 -23
  22. package/lib/dis.js +2 -2
  23. package/lib/ellipsis.js +2 -2
  24. package/lib/emote.js +2 -2
  25. package/lib/export.js +10 -10
  26. package/lib/filter.js +2 -2
  27. package/lib/fix.js +2 -2
  28. package/lib/float.js +2 -2
  29. package/lib/flow.js +4 -4
  30. package/lib/form.js +2 -2
  31. package/lib/grid.js +2 -2
  32. package/lib/guider.js +2 -2
  33. package/lib/header.js +2 -2
  34. package/lib/hide.js +2 -2
  35. package/lib/icon.js +2 -2
  36. package/lib/import.js +12 -12
  37. package/lib/index.js +1 -1
  38. package/lib/input.js +5 -5
  39. package/lib/ip.js +2 -2
  40. package/lib/line.js +2 -2
  41. package/lib/loading.js +11 -11
  42. package/lib/longtap.js +2 -2
  43. package/lib/menu-icon.js +670 -673
  44. package/lib/message.js +2 -2
  45. package/lib/msg.js +19 -19
  46. package/lib/org.js +706 -706
  47. package/lib/padding.js +2 -2
  48. package/lib/page.js +4 -438
  49. package/lib/param.js +2 -2
  50. package/lib/pic.js +4 -4
  51. package/lib/popup.js +2 -2
  52. package/lib/progress.js +2 -2
  53. package/lib/range.js +1074 -1074
  54. package/lib/rate.js +2 -2
  55. package/lib/reverser.js +2 -2
  56. package/lib/scroll.js +2 -2
  57. package/lib/segment.js +2 -2
  58. package/lib/select.js +2 -2
  59. package/lib/size.js +2 -2
  60. package/lib/skeleton.js +2 -2
  61. package/lib/slide.js +2 -2
  62. package/lib/space.js +2 -2
  63. package/lib/step.js +2 -2
  64. package/lib/submit.js +2 -2
  65. package/lib/switch.js +2 -2
  66. package/lib/tab.js +2 -2
  67. package/lib/table.js +2 -2
  68. package/lib/tag.js +2 -2
  69. package/lib/theme/css/theme/workbench-gz.css +1 -0
  70. package/lib/timeline.js +2 -2
  71. package/lib/tip.js +2 -2
  72. package/lib/tooltip.js +2 -2
  73. package/lib/transfer.js +2 -2
  74. package/lib/tree.js +2 -2
  75. package/lib/upload.js +14 -14
  76. package/package.json +1 -1
  77. package/packages/checkbox/src/checkbox.vue +8 -2
  78. package/packages/checkboxes/src/checkboxes.vue +17 -1
  79. package/packages/dialog/src/dialog.vue +21 -18
  80. package/packages/input/src/input.vue +1 -1
  81. package/packages/page/src/page.vue +0 -22
  82. package/packages/tab/.DS_Store +0 -0
  83. package/packages/theme/lib/css/theme/workbench-gz.css +1 -0
  84. package/packages/theme/src/less/theme/workbench-gz.less +159 -0
  85. package/src/index.js +1 -1
package/lib/timeline.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 379);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 376);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 379:
195
+ /***/ 376:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
package/lib/tip.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 384);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 381);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 384:
195
+ /***/ 381:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
package/lib/tooltip.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 385);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 382);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 385:
195
+ /***/ 382:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
package/lib/transfer.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 364);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 361);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 364:
195
+ /***/ 361:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
package/lib/tree.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 350);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 347);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 350:
195
+ /***/ 347:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
package/lib/upload.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 363);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 360);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -199,13 +199,6 @@ module.exports = require("ai.touchui-vue/lib/utils/dom");
199
199
 
200
200
  /***/ }),
201
201
 
202
- /***/ 11:
203
- /***/ (function(module, exports) {
204
-
205
- module.exports = require("ai.touchui-vue/lib/utils/sign");
206
-
207
- /***/ }),
208
-
209
202
  /***/ 14:
210
203
  /***/ (function(module, exports) {
211
204
 
@@ -420,7 +413,7 @@ render._withStripped = true
420
413
  var dom_ = __webpack_require__(1);
421
414
 
422
415
  // EXTERNAL MODULE: external "ai.touchui-vue/lib/utils/util"
423
- var util_ = __webpack_require__(9);
416
+ var util_ = __webpack_require__(7);
424
417
 
425
418
  // EXTERNAL MODULE: external "ai.touchui-vue/lib/mixins/locale"
426
419
  var locale_ = __webpack_require__(2);
@@ -825,7 +818,7 @@ module.exports = require("ai.touchui-vue/lib/locale");
825
818
 
826
819
  /***/ }),
827
820
 
828
- /***/ 363:
821
+ /***/ 360:
829
822
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
830
823
 
831
824
  "use strict";
@@ -1596,10 +1589,10 @@ var filetransfer_default = /*#__PURE__*/__webpack_require__.n(filetransfer_);
1596
1589
  var types_ = __webpack_require__(14);
1597
1590
 
1598
1591
  // EXTERNAL MODULE: external "ai.touchui-vue/lib/utils/md5"
1599
- var md5_ = __webpack_require__(89);
1592
+ var md5_ = __webpack_require__(88);
1600
1593
 
1601
1594
  // EXTERNAL MODULE: external "ai.touchui-vue/lib/utils/sign"
1602
- var sign_ = __webpack_require__(11);
1595
+ var sign_ = __webpack_require__(9);
1603
1596
 
1604
1597
  // EXTERNAL MODULE: ./packages/pic/src/pic-viewer.vue + 4 modules
1605
1598
  var pic_viewer = __webpack_require__(16);
@@ -2561,7 +2554,14 @@ module.exports = require("ai.touchui-vue/lib/utils/filetransfer");
2561
2554
 
2562
2555
  /***/ }),
2563
2556
 
2564
- /***/ 89:
2557
+ /***/ 7:
2558
+ /***/ (function(module, exports) {
2559
+
2560
+ module.exports = require("ai.touchui-vue/lib/utils/util");
2561
+
2562
+ /***/ }),
2563
+
2564
+ /***/ 88:
2565
2565
  /***/ (function(module, exports) {
2566
2566
 
2567
2567
  module.exports = require("ai.touchui-vue/lib/utils/md5");
@@ -2571,7 +2571,7 @@ module.exports = require("ai.touchui-vue/lib/utils/md5");
2571
2571
  /***/ 9:
2572
2572
  /***/ (function(module, exports) {
2573
2573
 
2574
- module.exports = require("ai.touchui-vue/lib/utils/util");
2574
+ module.exports = require("ai.touchui-vue/lib/utils/sign");
2575
2575
 
2576
2576
  /***/ })
2577
2577
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai.touchui-vue",
3
- "version": "1.33.3",
3
+ "version": "1.34.1",
4
4
  "description": "TouchUI Component Library for Vue.js.",
5
5
  "main": "lib/ai.touchui-vue.common.js",
6
6
  "files": [
@@ -157,7 +157,7 @@ export default {
157
157
  this.disabled = val
158
158
  this.updateGroup(val, this.value)
159
159
  },
160
- value(val) {
160
+ value(val, oldVal) {
161
161
  if (!this.ToCheckboxes) {
162
162
  if (val === this.onValue) {
163
163
  this.checked = true
@@ -172,6 +172,7 @@ export default {
172
172
  this.checked = item.checked
173
173
  }
174
174
  })
175
+ this.ToCheckboxes.removeItemValue(oldVal)
175
176
  }
176
177
  },
177
178
  label(val) {
@@ -190,6 +191,11 @@ export default {
190
191
  }
191
192
  }
192
193
  },
194
+ destroyed() {
195
+ if (this.ToCheckboxes) {
196
+ this.ToCheckboxes.removeItemValue(this.value)
197
+ }
198
+ },
193
199
  created() {
194
200
 
195
201
  // checked 用于 checkboxes 中 checkbox 的默认值,value 需要用于保存选项值
@@ -246,7 +252,7 @@ export default {
246
252
  el.checked = false
247
253
  el.readonly = this.readonly
248
254
  }
249
- });
255
+ })
250
256
  if (value !== undefined && (typeof value === 'string' || typeof value === 'number')) {
251
257
  this.valueInGroup = value
252
258
  } else if (label) {
@@ -41,7 +41,10 @@ export default {
41
41
  return {
42
42
  maxId: -1,
43
43
  options: [],
44
- checks: []
44
+ checks: [],
45
+ removeItems: [],
46
+ isRemoving: false,
47
+ timer: null
45
48
  }
46
49
  },
47
50
  computed: {
@@ -91,6 +94,19 @@ export default {
91
94
  arr.push(el.value)
92
95
  });
93
96
  this.$emit('change', arr.join(','))
97
+ },
98
+ removeItemValue(itemOldValue) {
99
+ clearTimeout(this.timer)
100
+ this.removeItems.push(itemOldValue)
101
+
102
+ this.timer = setTimeout(() => {
103
+ let arr = this.value.split(',')
104
+ arr = arr.filter(item => !this.removeItems.includes(item))
105
+ this.options = this.options.filter(item => !this.removeItems.includes(item.value))
106
+ this.$emit('change', arr.join(','))
107
+ console.log('★')
108
+ console.log(this.options)
109
+ }, 1)
94
110
  }
95
111
  }
96
112
  };
@@ -120,25 +120,28 @@ export default {
120
120
  }
121
121
  },
122
122
  watch: {
123
- visible(val) {
124
- if (val) {
125
- this.$nextTick(() => {
126
- this.$emit('beforeOpen');
127
- this.$el.style.zIndex = window.$TouchUI.zIndex
128
- window.$TouchUI.zIndex++
129
- this.$nextTick(()=>{
130
- this.closed = false
131
- this.$emit('opened')
132
- if (this.showHeader) {
133
- this.initDrag()
134
- }
135
- })
136
- });
137
- } else {
138
- if (!this.closed) {
139
- this.hide()
123
+ visible: {
124
+ handler(val) {
125
+ if (val) {
126
+ this.$nextTick(() => {
127
+ this.$emit('beforeOpen');
128
+ this.$el.style.zIndex = window.$TouchUI.zIndex
129
+ window.$TouchUI.zIndex++
130
+ this.$nextTick(()=>{
131
+ this.closed = false
132
+ this.$emit('opened')
133
+ if (this.showHeader) {
134
+ this.initDrag()
135
+ }
136
+ })
137
+ });
138
+ } else {
139
+ if (!this.closed) {
140
+ this.hide()
141
+ }
140
142
  }
141
- }
143
+ },
144
+ immediate: true
142
145
  }
143
146
  },
144
147
  mounted() {
@@ -568,7 +568,7 @@ export default {
568
568
  this.data = 'NaN';
569
569
  }
570
570
 
571
- if (Number(this.conversionType)) {
571
+ if (Number(this.conversionType) && this.data) {
572
572
  this.data = this.formatNumber(this.data, this.dot, Number(this.conversionType))
573
573
  }
574
574
  }
@@ -273,25 +273,3 @@ export default {
273
273
  }
274
274
  };
275
275
  </script>
276
-
277
- <style>
278
- /* .to-page .prev + .pager {
279
- flex: none !important;
280
- }
281
- .to-page .pager {
282
- user-select: none;
283
- }
284
-
285
- .to-page .prev,
286
- .to-page .next {
287
- user-select: none;
288
- cursor: not-allowed;
289
- }
290
- .to-page .pointer {
291
- cursor: pointer;
292
- }
293
- .to-page .prev.pointer:hover,
294
- .to-page .next.pointer:hover {
295
- background: #ededed;
296
- } */
297
- </style>
Binary file