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.
- package/lib/affix.js +2 -2
- package/lib/ai.touchui-vue.common.js +896 -909
- package/lib/align.js +2 -2
- package/lib/animation.js +2 -2
- package/lib/article.js +2 -2
- package/lib/box.js +2 -2
- package/lib/button.js +2 -2
- package/lib/calendar.js +2 -2
- package/lib/card-item.js +19 -19
- package/lib/card.js +178 -178
- package/lib/cascader.js +2 -2
- package/lib/center-scroll.js +2 -2
- package/lib/chat.js +4 -4
- package/lib/checkbox.js +11 -5
- package/lib/checkboxes.js +27 -5
- package/lib/collapse.js +768 -768
- package/lib/color.js +2 -2
- package/lib/countdown.js +2 -2
- package/lib/date-picker.js +1486 -1486
- package/lib/date-range.js +2 -2
- package/lib/dialog.js +27 -23
- package/lib/dis.js +2 -2
- package/lib/ellipsis.js +2 -2
- package/lib/emote.js +2 -2
- package/lib/export.js +10 -10
- package/lib/filter.js +2 -2
- package/lib/fix.js +2 -2
- package/lib/float.js +2 -2
- package/lib/flow.js +4 -4
- package/lib/form.js +2 -2
- package/lib/grid.js +2 -2
- package/lib/guider.js +2 -2
- package/lib/header.js +2 -2
- package/lib/hide.js +2 -2
- package/lib/icon.js +2 -2
- package/lib/import.js +12 -12
- package/lib/index.js +1 -1
- package/lib/input.js +2 -2
- package/lib/ip.js +2 -2
- package/lib/line.js +2 -2
- package/lib/loading.js +11 -11
- package/lib/longtap.js +2 -2
- package/lib/menu-icon.js +670 -673
- package/lib/message.js +2 -2
- package/lib/msg.js +19 -19
- package/lib/org.js +706 -706
- package/lib/padding.js +2 -2
- package/lib/page.js +4 -438
- package/lib/param.js +2 -2
- package/lib/pic.js +4 -4
- package/lib/popup.js +2 -2
- package/lib/progress.js +2 -2
- package/lib/range.js +1074 -1074
- package/lib/rate.js +2 -2
- package/lib/reverser.js +2 -2
- package/lib/scroll.js +2 -2
- package/lib/segment.js +2 -2
- package/lib/select.js +2 -2
- package/lib/size.js +2 -2
- package/lib/skeleton.js +2 -2
- package/lib/slide.js +2 -2
- package/lib/space.js +2 -2
- package/lib/step.js +2 -2
- package/lib/submit.js +2 -2
- package/lib/switch.js +2 -2
- package/lib/tab.js +2 -2
- package/lib/table.js +2 -2
- package/lib/tag.js +2 -2
- package/lib/theme/css/theme/workbench-gz.css +1 -0
- package/lib/timeline.js +2 -2
- package/lib/tip.js +2 -2
- package/lib/tooltip.js +2 -2
- package/lib/transfer.js +2 -2
- package/lib/tree.js +2 -2
- package/lib/upload.js +14 -14
- package/package.json +1 -1
- package/packages/checkbox/src/checkbox.vue +8 -2
- package/packages/checkboxes/src/checkboxes.vue +17 -1
- package/packages/dialog/src/dialog.vue +21 -18
- package/packages/page/src/page.vue +0 -22
- package/packages/tab/.DS_Store +0 -0
- package/packages/theme/lib/css/theme/workbench-gz.css +1 -0
- package/packages/theme/src/less/theme/workbench-gz.less +159 -0
- 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 =
|
|
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
|
-
/***/
|
|
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 =
|
|
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
|
-
/***/
|
|
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 =
|
|
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
|
-
/***/
|
|
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 =
|
|
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
|
-
/***/
|
|
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 =
|
|
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
|
-
/***/
|
|
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 =
|
|
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__(
|
|
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
|
-
/***/
|
|
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__(
|
|
1592
|
+
var md5_ = __webpack_require__(88);
|
|
1600
1593
|
|
|
1601
1594
|
// EXTERNAL MODULE: external "ai.touchui-vue/lib/utils/sign"
|
|
1602
|
-
var sign_ = __webpack_require__(
|
|
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
|
-
/***/
|
|
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/
|
|
2574
|
+
module.exports = require("ai.touchui-vue/lib/utils/sign");
|
|
2575
2575
|
|
|
2576
2576
|
/***/ })
|
|
2577
2577
|
|
package/package.json
CHANGED
|
@@ -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
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
this.$
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
this
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
this.
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
this.
|
|
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() {
|
|
@@ -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>
|
package/packages/tab/.DS_Store
CHANGED
|
Binary file
|