ai.touchui-vue 1.33.3 → 1.34.0

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 (84) hide show
  1. package/lib/affix.js +2 -2
  2. package/lib/ai.touchui-vue.common.js +896 -909
  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 +2 -2
  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/page/src/page.vue +0 -22
  81. package/packages/tab/.DS_Store +0 -0
  82. package/packages/theme/lib/css/theme/workbench-gz.css +1 -0
  83. package/packages/theme/src/less/theme/workbench-gz.less +159 -0
  84. package/src/index.js +1 -1
package/lib/checkboxes.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 = 383);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 380);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,14 +192,14 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 383:
195
+ /***/ 380:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
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/checkboxes/src/checkboxes.vue?vue&type=template&id=5d4c6bb0
202
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkboxes/src/checkboxes.vue?vue&type=template&id=73398aa6
203
203
  var render = function () {
204
204
  var _vm = this
205
205
  var _h = _vm.$createElement
@@ -235,7 +235,7 @@ var staticRenderFns = []
235
235
  render._withStripped = true
236
236
 
237
237
 
238
- // CONCATENATED MODULE: ./packages/checkboxes/src/checkboxes.vue?vue&type=template&id=5d4c6bb0
238
+ // CONCATENATED MODULE: ./packages/checkboxes/src/checkboxes.vue?vue&type=template&id=73398aa6
239
239
 
240
240
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkboxes/src/checkboxes.vue?vue&type=script&lang=js
241
241
  //
@@ -281,7 +281,10 @@ render._withStripped = true
281
281
  return {
282
282
  maxId: -1,
283
283
  options: [],
284
- checks: []
284
+ checks: [],
285
+ removeItems: [],
286
+ isRemoving: false,
287
+ timer: null
285
288
  };
286
289
  },
287
290
 
@@ -336,6 +339,25 @@ render._withStripped = true
336
339
  arr.push(el.value);
337
340
  });
338
341
  this.$emit('change', arr.join(','));
342
+ },
343
+ removeItemValue: function removeItemValue(itemOldValue) {
344
+ var _this = this;
345
+
346
+ clearTimeout(this.timer);
347
+ this.removeItems.push(itemOldValue);
348
+
349
+ this.timer = setTimeout(function () {
350
+ var arr = _this.value.split(',');
351
+ arr = arr.filter(function (item) {
352
+ return !_this.removeItems.includes(item);
353
+ });
354
+ _this.options = _this.options.filter(function (item) {
355
+ return !_this.removeItems.includes(item.value);
356
+ });
357
+ _this.$emit('change', arr.join(','));
358
+ console.log('★');
359
+ console.log(_this.options);
360
+ }, 1);
339
361
  }
340
362
  }
341
363
  });