ai.touchui-vue 1.33.1 → 1.33.3
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 +33 -40
- package/lib/index.js +1 -1
- package/lib/input.js +14 -27
- package/lib/tab.js +8 -2
- package/package.json +3 -2
- package/packages/input/src/input.vue +12 -25
- package/packages/tab/src/tab.vue +4 -1
- package/src/index.js +1 -1
|
@@ -26301,8 +26301,8 @@ disDirective.install = function (Vue) {
|
|
|
26301
26301
|
|
|
26302
26302
|
dis: dis_src_directive
|
|
26303
26303
|
});
|
|
26304
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=template&id=
|
|
26305
|
-
var
|
|
26304
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=template&id=7002140a
|
|
26305
|
+
var inputvue_type_template_id_7002140a_render = function () {
|
|
26306
26306
|
var _vm = this
|
|
26307
26307
|
var _h = _vm.$createElement
|
|
26308
26308
|
var _c = _vm._self._c || _h
|
|
@@ -26701,11 +26701,11 @@ var inputvue_type_template_id_4a775748_render = function () {
|
|
|
26701
26701
|
]
|
|
26702
26702
|
)
|
|
26703
26703
|
}
|
|
26704
|
-
var
|
|
26705
|
-
|
|
26704
|
+
var inputvue_type_template_id_7002140a_staticRenderFns = []
|
|
26705
|
+
inputvue_type_template_id_7002140a_render._withStripped = true
|
|
26706
26706
|
|
|
26707
26707
|
|
|
26708
|
-
// CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=
|
|
26708
|
+
// CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=7002140a
|
|
26709
26709
|
|
|
26710
26710
|
// CONCATENATED MODULE: ./src/utils/string.js
|
|
26711
26711
|
function filter(chars, from) {
|
|
@@ -27147,7 +27147,7 @@ function filter(chars, from) {
|
|
|
27147
27147
|
if (this.inited) {
|
|
27148
27148
|
|
|
27149
27149
|
// 处理 IOS 下,to-input type=number 可以输入小数点
|
|
27150
|
-
if (this.type === 'number' && Number(this.dot) === 0 && !this.conversionType && String(this.data).indexOf('.') > -1) {
|
|
27150
|
+
if (this.type === 'number' && Number(this.dot) === 0 && !Number(this.conversionType) && String(this.data).indexOf('.') > -1) {
|
|
27151
27151
|
this.data = this.data.replace('.', '');
|
|
27152
27152
|
}
|
|
27153
27153
|
if (this.spChars) {
|
|
@@ -27224,7 +27224,7 @@ function filter(chars, from) {
|
|
|
27224
27224
|
}
|
|
27225
27225
|
},
|
|
27226
27226
|
inputKeyPress: function inputKeyPress(event) {
|
|
27227
|
-
if (this.type === 'number' && !this.conversionType) {
|
|
27227
|
+
if (this.type === 'number' && !Number(this.conversionType)) {
|
|
27228
27228
|
if ((event.keyCode !== 46 || Number(this.dot) === 0) && (event.keyCode !== 45 || Number(this.min) >= 0) && (event.keyCode < 48 || event.keyCode > 57)) {
|
|
27229
27229
|
event.returnValue = false;
|
|
27230
27230
|
}
|
|
@@ -27293,8 +27293,8 @@ function filter(chars, from) {
|
|
|
27293
27293
|
this.data = 'NaN';
|
|
27294
27294
|
}
|
|
27295
27295
|
|
|
27296
|
-
if (this.conversionType) {
|
|
27297
|
-
this.data = this.formatNumber(this.data, this.dot, this.conversionType);
|
|
27296
|
+
if (Number(this.conversionType)) {
|
|
27297
|
+
this.data = this.formatNumber(this.data, this.dot, Number(this.conversionType));
|
|
27298
27298
|
}
|
|
27299
27299
|
}
|
|
27300
27300
|
this.focused = false;
|
|
@@ -27336,7 +27336,7 @@ function filter(chars, from) {
|
|
|
27336
27336
|
var pre = this.data.substring(0, this.data.indexOf('.'));
|
|
27337
27337
|
var suf = this.data.substring(this.data.indexOf('.') + 1);
|
|
27338
27338
|
|
|
27339
|
-
if (!this.conversionType) {
|
|
27339
|
+
if (!Number(this.conversionType)) {
|
|
27340
27340
|
// 去掉小数点之后的所有小圆点并截取所需数量
|
|
27341
27341
|
suf = suf.replace(/[/.]/g, '').substring(0, Number(this.dot));
|
|
27342
27342
|
}
|
|
@@ -27398,25 +27398,6 @@ function filter(chars, from) {
|
|
|
27398
27398
|
// type 0:保持原状 1:向上取值 2:向下取值 3:四舍五入 4:保持原值无限输入小数
|
|
27399
27399
|
if (type < 0 || type > 3) throw new Error('Invalid type');
|
|
27400
27400
|
|
|
27401
|
-
// if (type === 0) {
|
|
27402
|
-
// // 处理科学计数法并转换为字符串
|
|
27403
|
-
// let strValue = value.toLocaleString('fullwide', { useGrouping: false });
|
|
27404
|
-
// // 处理特殊情况,例如数值本身是整数
|
|
27405
|
-
// if (strValue.indexOf('.') === -1) strValue += '.';
|
|
27406
|
-
|
|
27407
|
-
// const [intPart, decimalPart = ''] = strValue.split('.');
|
|
27408
|
-
// let formattedDecimal = decimalPart;
|
|
27409
|
-
|
|
27410
|
-
// // 补零到指定的小数位数
|
|
27411
|
-
// if (decimalPart.length < decimalPlaces) {
|
|
27412
|
-
// formattedDecimal = decimalPart.padEnd(decimalPlaces, '0');
|
|
27413
|
-
// }
|
|
27414
|
-
|
|
27415
|
-
// return decimalPlaces === 0
|
|
27416
|
-
// ? intPart
|
|
27417
|
-
// : `${intPart}.${formattedDecimal}`;
|
|
27418
|
-
// }
|
|
27419
|
-
|
|
27420
27401
|
var factor = Math.pow(10, decimalPlaces);
|
|
27421
27402
|
var processedValue = value;
|
|
27422
27403
|
|
|
@@ -27431,9 +27412,15 @@ function filter(chars, from) {
|
|
|
27431
27412
|
break;
|
|
27432
27413
|
case 3:
|
|
27433
27414
|
// 四舍五入
|
|
27434
|
-
processedValue = Math.round(value * factor) / factor;
|
|
27415
|
+
processedValue = Math.round(Number((value * factor).toFixed(1))) / factor;
|
|
27416
|
+
// processedValue = this.preciseMultiply(value, factor);
|
|
27435
27417
|
break;
|
|
27436
27418
|
}
|
|
27419
|
+
// console.log(value, 'value')
|
|
27420
|
+
// console.log(factor, 'factor')
|
|
27421
|
+
// console.log('processedValue', processedValue)
|
|
27422
|
+
// console.log('value * factor * 10', value * factor * 10)
|
|
27423
|
+
// console.log('Math.round(value * factor * 10)', Math.round(value * factor * 10))
|
|
27437
27424
|
return processedValue.toFixed(decimalPlaces);
|
|
27438
27425
|
}
|
|
27439
27426
|
}
|
|
@@ -27450,8 +27437,8 @@ function filter(chars, from) {
|
|
|
27450
27437
|
|
|
27451
27438
|
var input_component = normalizeComponent(
|
|
27452
27439
|
src_inputvue_type_script_lang_js,
|
|
27453
|
-
|
|
27454
|
-
|
|
27440
|
+
inputvue_type_template_id_7002140a_render,
|
|
27441
|
+
inputvue_type_template_id_7002140a_staticRenderFns,
|
|
27455
27442
|
false,
|
|
27456
27443
|
null,
|
|
27457
27444
|
null,
|
|
@@ -30276,8 +30263,8 @@ date_range.install = function (Vue) {
|
|
|
30276
30263
|
};
|
|
30277
30264
|
|
|
30278
30265
|
/* harmony default export */ var packages_date_range = (date_range);
|
|
30279
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tab/src/tab.vue?vue&type=template&id=
|
|
30280
|
-
var
|
|
30266
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tab/src/tab.vue?vue&type=template&id=46748484
|
|
30267
|
+
var tabvue_type_template_id_46748484_render = function () {
|
|
30281
30268
|
var _vm = this
|
|
30282
30269
|
var _h = _vm.$createElement
|
|
30283
30270
|
var _c = _vm._self._c || _h
|
|
@@ -30336,6 +30323,9 @@ var tabvue_type_template_id_7558ad90_render = function () {
|
|
|
30336
30323
|
mouseover: function ($event) {
|
|
30337
30324
|
return _vm.changeTab(item, index, "mouseover")
|
|
30338
30325
|
},
|
|
30326
|
+
contextmenu: function (e) {
|
|
30327
|
+
return _vm.contextmenuHandle(e, item, index)
|
|
30328
|
+
},
|
|
30339
30329
|
},
|
|
30340
30330
|
},
|
|
30341
30331
|
[
|
|
@@ -30657,11 +30647,11 @@ var tabvue_type_template_id_7558ad90_render = function () {
|
|
|
30657
30647
|
]
|
|
30658
30648
|
)
|
|
30659
30649
|
}
|
|
30660
|
-
var
|
|
30661
|
-
|
|
30650
|
+
var tabvue_type_template_id_46748484_staticRenderFns = []
|
|
30651
|
+
tabvue_type_template_id_46748484_render._withStripped = true
|
|
30662
30652
|
|
|
30663
30653
|
|
|
30664
|
-
// CONCATENATED MODULE: ./packages/tab/src/tab.vue?vue&type=template&id=
|
|
30654
|
+
// CONCATENATED MODULE: ./packages/tab/src/tab.vue?vue&type=template&id=46748484
|
|
30665
30655
|
|
|
30666
30656
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tab/src/tab.vue?vue&type=script&lang=js
|
|
30667
30657
|
//
|
|
@@ -31299,6 +31289,9 @@ tabvue_type_template_id_7558ad90_render._withStripped = true
|
|
|
31299
31289
|
this.showPage = false;
|
|
31300
31290
|
this.$emit('change', '');
|
|
31301
31291
|
}
|
|
31292
|
+
},
|
|
31293
|
+
contextmenuHandle: function contextmenuHandle(event, item, index) {
|
|
31294
|
+
this.$emit('tab-contextmenu', event, item, index);
|
|
31302
31295
|
}
|
|
31303
31296
|
}
|
|
31304
31297
|
});
|
|
@@ -31314,8 +31307,8 @@ tabvue_type_template_id_7558ad90_render._withStripped = true
|
|
|
31314
31307
|
|
|
31315
31308
|
var tab_component = normalizeComponent(
|
|
31316
31309
|
src_tabvue_type_script_lang_js,
|
|
31317
|
-
|
|
31318
|
-
|
|
31310
|
+
tabvue_type_template_id_46748484_render,
|
|
31311
|
+
tabvue_type_template_id_46748484_staticRenderFns,
|
|
31319
31312
|
false,
|
|
31320
31313
|
null,
|
|
31321
31314
|
null,
|
|
@@ -49729,7 +49722,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
49729
49722
|
}
|
|
49730
49723
|
|
|
49731
49724
|
/* harmony default export */ var src = __webpack_exports__["default"] = ({
|
|
49732
|
-
version: '1.33.
|
|
49725
|
+
version: '1.33.2',
|
|
49733
49726
|
locale: lib_locale_default.a.use,
|
|
49734
49727
|
i18n: lib_locale_default.a.i18n,
|
|
49735
49728
|
install: src_install,
|