ai.touchui-vue 1.36.0 → 1.38.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/ai.touchui-vue.common.js +99 -81
- package/lib/calendar.js +11 -5
- package/lib/date-picker.js +13 -33
- package/lib/form.js +8 -8
- package/lib/index.js +1 -1
- package/lib/select.js +9 -5
- package/lib/slide.js +42 -14
- package/lib/theme/css/theme/B-Design.css +1 -1
- package/lib/theme/css/theme/aiplan.css +1 -1
- package/lib/theme/css/theme/aiplangd.css +1 -1
- package/lib/theme/css/theme/chbn.css +1 -1
- package/lib/theme/css/theme/default.css +1 -1
- package/lib/theme/css/theme/dt.css +1 -1
- package/lib/theme/css/theme/ecloud.css +1 -1
- package/lib/theme/css/theme/hongkong.css +1 -1
- package/lib/theme/css/theme/logistics.css +1 -1
- package/lib/theme/css/theme/narrow.css +1 -1
- package/lib/theme/css/theme/sdpf.css +1 -1
- package/lib/theme/css/theme/upc.css +1 -1
- package/lib/theme/css/theme/website.css +1 -1
- package/lib/theme/css/theme/workbench-gz.css +1 -1
- package/lib/theme/css/theme/zj.css +1 -1
- package/package.json +1 -1
- package/packages/calendar/src/calendar.vue +10 -4
- package/packages/date-picker/src/date-picker.vue +14 -34
- package/packages/form/src/form-item.vue +1 -1
- package/packages/select/src/select.vue +7 -5
- package/packages/slide/src/slide.vue +27 -2
- package/packages/theme/lib/css/theme/B-Design.css +1 -1
- package/packages/theme/lib/css/theme/aiplan.css +1 -1
- package/packages/theme/lib/css/theme/aiplangd.css +1 -1
- package/packages/theme/lib/css/theme/chbn.css +1 -1
- package/packages/theme/lib/css/theme/default.css +1 -1
- package/packages/theme/lib/css/theme/dt.css +1 -1
- package/packages/theme/lib/css/theme/ecloud.css +1 -1
- package/packages/theme/lib/css/theme/hongkong.css +1 -1
- package/packages/theme/lib/css/theme/logistics.css +1 -1
- package/packages/theme/lib/css/theme/narrow.css +1 -1
- package/packages/theme/lib/css/theme/sdpf.css +1 -1
- package/packages/theme/lib/css/theme/upc.css +1 -1
- package/packages/theme/lib/css/theme/website.css +1 -1
- package/packages/theme/lib/css/theme/workbench-gz.css +1 -1
- package/packages/theme/lib/css/theme/zj.css +1 -1
- package/packages/theme/src/img/.DS_Store +0 -0
- package/packages/theme/src/less/component/msg.less +1 -1
- package/src/index.js +1 -1
package/lib/select.js
CHANGED
|
@@ -252,7 +252,7 @@ module.exports = require("ai.touchui-vue/lib/locale");
|
|
|
252
252
|
// ESM COMPAT FLAG
|
|
253
253
|
__webpack_require__.r(__webpack_exports__);
|
|
254
254
|
|
|
255
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/select.vue?vue&type=template&id=
|
|
255
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/select.vue?vue&type=template&id=69709cdc
|
|
256
256
|
var render = function () {
|
|
257
257
|
var _vm = this
|
|
258
258
|
var _h = _vm.$createElement
|
|
@@ -1064,6 +1064,7 @@ var render = function () {
|
|
|
1064
1064
|
: _c("to-input", {
|
|
1065
1065
|
ref: "popupFilter",
|
|
1066
1066
|
attrs: {
|
|
1067
|
+
tabindex: "-1",
|
|
1067
1068
|
"sp-chars": false,
|
|
1068
1069
|
width: "full",
|
|
1069
1070
|
"prevent-focus": "",
|
|
@@ -1095,6 +1096,7 @@ var render = function () {
|
|
|
1095
1096
|
? _c("to-input", {
|
|
1096
1097
|
ref: "popupInput",
|
|
1097
1098
|
attrs: {
|
|
1099
|
+
tabindex: "-1",
|
|
1098
1100
|
"sp-chars":
|
|
1099
1101
|
_vm.spChars,
|
|
1100
1102
|
"prevent-focus": "",
|
|
@@ -1121,6 +1123,7 @@ var render = function () {
|
|
|
1121
1123
|
: _c("to-input", {
|
|
1122
1124
|
ref: "popupFilter",
|
|
1123
1125
|
attrs: {
|
|
1126
|
+
tabindex: "-1",
|
|
1124
1127
|
"sp-chars": false,
|
|
1125
1128
|
"prevent-focus": "",
|
|
1126
1129
|
width: "full",
|
|
@@ -1133,7 +1136,6 @@ var render = function () {
|
|
|
1133
1136
|
_vm.filterFocus,
|
|
1134
1137
|
keyup:
|
|
1135
1138
|
_vm.filterInput,
|
|
1136
|
-
blur: _vm.filterBlur,
|
|
1137
1139
|
},
|
|
1138
1140
|
model: {
|
|
1139
1141
|
value:
|
|
@@ -1904,7 +1906,7 @@ var staticRenderFns = []
|
|
|
1904
1906
|
render._withStripped = true
|
|
1905
1907
|
|
|
1906
1908
|
|
|
1907
|
-
// CONCATENATED MODULE: ./packages/select/src/select.vue?vue&type=template&id=
|
|
1909
|
+
// CONCATENATED MODULE: ./packages/select/src/select.vue?vue&type=template&id=69709cdc
|
|
1908
1910
|
|
|
1909
1911
|
// EXTERNAL MODULE: external "ai.touchui-vue/lib/utils/ajax"
|
|
1910
1912
|
var ajax_ = __webpack_require__(15);
|
|
@@ -2937,14 +2939,16 @@ var lib_locale_ = __webpack_require__(3);
|
|
|
2937
2939
|
return true;
|
|
2938
2940
|
}
|
|
2939
2941
|
if (this.filterable) {
|
|
2940
|
-
return item[this.iLabelText].includes(this.filterValue)
|
|
2942
|
+
// return item[this.iLabelText].includes(this.filterValue)
|
|
2943
|
+
return item[this.iLabelText].toLowerCase().includes(this.filterValue.toLowerCase());
|
|
2941
2944
|
} else {
|
|
2942
2945
|
return true;
|
|
2943
2946
|
}
|
|
2944
2947
|
},
|
|
2945
2948
|
multipleFilter: function multipleFilter(item) {
|
|
2946
2949
|
if (this.filterable) {
|
|
2947
|
-
return item[this.iLabelText].includes(this.multipleFilterValue)
|
|
2950
|
+
// return item[this.iLabelText].includes(this.multipleFilterValue)
|
|
2951
|
+
return item[this.iLabelText].toLowerCase().includes(this.multipleFilterValue.toLowerCase());
|
|
2948
2952
|
} else {
|
|
2949
2953
|
return true;
|
|
2950
2954
|
}
|
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=
|
|
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=020258e2
|
|
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=
|
|
277
|
+
// CONCATENATED MODULE: ./packages/slide/src/slide.vue?vue&type=template&id=020258e2
|
|
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
|
//
|
|
@@ -314,7 +314,8 @@ render._withStripped = true
|
|
|
314
314
|
animate: true,
|
|
315
315
|
playTimer: null,
|
|
316
316
|
startPosition: false,
|
|
317
|
-
width: 0
|
|
317
|
+
width: 0,
|
|
318
|
+
observer: null
|
|
318
319
|
};
|
|
319
320
|
},
|
|
320
321
|
|
|
@@ -344,53 +345,80 @@ render._withStripped = true
|
|
|
344
345
|
window.addEventListener('resize', function () {
|
|
345
346
|
_this.width = _this.$el.offsetWidth;
|
|
346
347
|
});
|
|
348
|
+
|
|
349
|
+
// 初始化 MutationObserver
|
|
350
|
+
var observer = new MutationObserver(function (mutations) {
|
|
351
|
+
_this.setLength(); // 每次子节点变化时更新长度
|
|
352
|
+
});
|
|
353
|
+
observer.observe(_this.$refs.ul, {
|
|
354
|
+
childList: true, // 监听子节点变化
|
|
355
|
+
subtree: true // 监听所有后代节点
|
|
356
|
+
});
|
|
357
|
+
_this.observer = observer;
|
|
347
358
|
}, 100);
|
|
348
359
|
},
|
|
360
|
+
beforeDestroy: function beforeDestroy() {
|
|
361
|
+
var _this2 = this;
|
|
362
|
+
|
|
363
|
+
if (this.observer) {
|
|
364
|
+
this.observer.disconnect(); // 断开监听
|
|
365
|
+
}
|
|
366
|
+
clearInterval(this.playTimer); // 清理定时器
|
|
367
|
+
window.removeEventListener('resize', function () {
|
|
368
|
+
_this2.width = _this2.$el.offsetWidth;
|
|
369
|
+
});
|
|
370
|
+
},
|
|
349
371
|
|
|
350
372
|
methods: {
|
|
351
373
|
play: function play() {
|
|
352
|
-
var
|
|
374
|
+
var _this3 = this;
|
|
353
375
|
|
|
354
376
|
if (!this.autoplay || this.length < 2) {
|
|
355
377
|
return;
|
|
356
378
|
}
|
|
357
379
|
this.playTimer = setInterval(function () {
|
|
358
|
-
|
|
380
|
+
_this3.next();
|
|
359
381
|
}, Number(this.speed));
|
|
360
382
|
},
|
|
361
383
|
pause: function pause() {
|
|
362
384
|
clearInterval(this.playTimer);
|
|
363
385
|
},
|
|
364
386
|
setLength: function setLength() {
|
|
365
|
-
|
|
387
|
+
var _this4 = this;
|
|
388
|
+
|
|
389
|
+
this.$nextTick(function () {
|
|
390
|
+
if (_this4.$refs.ul) {
|
|
391
|
+
_this4.length = _this4.$refs.ul.children.length - 2;
|
|
392
|
+
}
|
|
393
|
+
});
|
|
366
394
|
},
|
|
367
395
|
next: function next() {
|
|
368
|
-
var
|
|
396
|
+
var _this5 = this;
|
|
369
397
|
|
|
370
398
|
if (this.animate) {
|
|
371
399
|
this.current += 1;
|
|
372
400
|
if (this.current === this.length) {
|
|
373
401
|
setTimeout(function () {
|
|
374
|
-
|
|
375
|
-
|
|
402
|
+
_this5.animate = false;
|
|
403
|
+
_this5.current = 0;
|
|
376
404
|
setTimeout(function () {
|
|
377
|
-
|
|
405
|
+
_this5.animate = true;
|
|
378
406
|
}, 300);
|
|
379
407
|
}, 300);
|
|
380
408
|
}
|
|
381
409
|
}
|
|
382
410
|
},
|
|
383
411
|
prev: function prev() {
|
|
384
|
-
var
|
|
412
|
+
var _this6 = this;
|
|
385
413
|
|
|
386
414
|
if (this.animate) {
|
|
387
415
|
this.current -= 1;
|
|
388
416
|
if (this.current === -1) {
|
|
389
417
|
setTimeout(function () {
|
|
390
|
-
|
|
391
|
-
|
|
418
|
+
_this6.animate = false;
|
|
419
|
+
_this6.current = _this6.length - 1;
|
|
392
420
|
setTimeout(function () {
|
|
393
|
-
|
|
421
|
+
_this6.animate = true;
|
|
394
422
|
}, 300);
|
|
395
423
|
}, 300);
|
|
396
424
|
}
|