@airpower/web 1.9.6 → 1.9.8
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/dist/main.js +12 -19
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -13481,9 +13481,6 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13481
13481
|
const props = __props;
|
|
13482
13482
|
const emits = __emit;
|
|
13483
13483
|
const value = ref(props.modelValue);
|
|
13484
|
-
function emitChange() {
|
|
13485
|
-
emits("change", value.value);
|
|
13486
|
-
}
|
|
13487
13484
|
function emitBlur() {
|
|
13488
13485
|
emits("blur");
|
|
13489
13486
|
}
|
|
@@ -13580,11 +13577,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13580
13577
|
value.value = Number.parseFloat(value.value?.toString() || "0");
|
|
13581
13578
|
}
|
|
13582
13579
|
}
|
|
13583
|
-
function onClear() {
|
|
13584
|
-
emitClear();
|
|
13585
|
-
emitChange();
|
|
13586
|
-
}
|
|
13587
13580
|
function emitValue() {
|
|
13581
|
+
checkNumberValue();
|
|
13588
13582
|
if (formConfig.value && value.value) {
|
|
13589
13583
|
switch (formConfig.value.trim) {
|
|
13590
13584
|
case FormTrim.ALL:
|
|
@@ -13616,10 +13610,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13616
13610
|
break;
|
|
13617
13611
|
}
|
|
13618
13612
|
}
|
|
13619
|
-
function
|
|
13620
|
-
|
|
13621
|
-
emitValue();
|
|
13622
|
-
emitBlur();
|
|
13613
|
+
function emitChange() {
|
|
13614
|
+
emits("change", value.value);
|
|
13623
13615
|
}
|
|
13624
13616
|
watch(value, () => {
|
|
13625
13617
|
emitValue();
|
|
@@ -13675,7 +13667,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13675
13667
|
type: formConfig.value.dateType,
|
|
13676
13668
|
"value-format": formConfig.value.dateFormatter ? formConfig.value.dateFormatter.key : unref(DateTimeFormatter).TIMESTAMP.key,
|
|
13677
13669
|
style: { "width": "100%" },
|
|
13678
|
-
onClear,
|
|
13670
|
+
onClear: emitClear,
|
|
13679
13671
|
onFocus: emitFocus,
|
|
13680
13672
|
onKeydown: onKeyDown
|
|
13681
13673
|
}, null, 8, ["modelValue", "clearable", "disabled", "format", "placeholder", "prefix-icon", "readonly", "suffix-icon", "type", "value-format"])) : (openBlock(), createBlock(_component_el_time_picker, {
|
|
@@ -13691,7 +13683,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13691
13683
|
"suffix-icon": formConfig.value?.suffixIcon,
|
|
13692
13684
|
"value-format": formConfig.value.dateFormatter ? formConfig.value.dateFormatter.key : unref(DateTimeFormatter).TIMESTAMP.key,
|
|
13693
13685
|
style: { "width": "100%" },
|
|
13694
|
-
onClear,
|
|
13686
|
+
onClear: emitClear,
|
|
13695
13687
|
onFocus: emitFocus,
|
|
13696
13688
|
onKeydown: onKeyDown
|
|
13697
13689
|
}, null, 8, ["modelValue", "clearable", "disabled", "format", "placeholder", "prefix-icon", "readonly", "suffix-icon", "value-format"]))
|
|
@@ -13765,7 +13757,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13765
13757
|
"suffix-icon": formConfig.value?.suffixIcon,
|
|
13766
13758
|
"collapse-tags-tooltip": "",
|
|
13767
13759
|
"fit-input-width": "",
|
|
13768
|
-
|
|
13760
|
+
onChange: emitChange,
|
|
13761
|
+
onClear: emitClear,
|
|
13769
13762
|
onFocus: emitFocus,
|
|
13770
13763
|
onKeydown: onKeyDown
|
|
13771
13764
|
}, {
|
|
@@ -13813,7 +13806,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13813
13806
|
class: "a-input-cascader",
|
|
13814
13807
|
"collapse-tags-tooltip": "",
|
|
13815
13808
|
"popper-class": "a-input-cascader-popper",
|
|
13816
|
-
onClear,
|
|
13809
|
+
onClear: emitClear,
|
|
13817
13810
|
onFocus: emitFocus,
|
|
13818
13811
|
onKeydown: onKeyDown
|
|
13819
13812
|
}, null, 8, ["modelValue", "clearable", "collapse-tags", "disabled", "options", "placeholder", "props", "readonly", "show-all-levels"])) : (openBlock(), createBlock(_component_el_input, {
|
|
@@ -13833,9 +13826,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13833
13826
|
"show-word-limit": formConfig.value?.showLimit !== false,
|
|
13834
13827
|
"suffix-icon": formConfig.value?.suffixIcon,
|
|
13835
13828
|
type: getInputType.value,
|
|
13836
|
-
onBlur,
|
|
13837
|
-
onChange:
|
|
13838
|
-
onClear,
|
|
13829
|
+
onBlur: emitBlur,
|
|
13830
|
+
onChange: emitChange,
|
|
13831
|
+
onClear: emitClear,
|
|
13839
13832
|
onFocus: emitFocus,
|
|
13840
13833
|
onKeydown: onKeyDown
|
|
13841
13834
|
}, createSlots({ _: 2 }, [
|
|
@@ -13850,7 +13843,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13850
13843
|
name === "suffix" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13851
13844
|
isClearButtonShow.value ? (openBlock(), createBlock(_component_el_icon, {
|
|
13852
13845
|
key: 0,
|
|
13853
|
-
onClick: _cache[7] || (_cache[7] = ($event) =>
|
|
13846
|
+
onClick: _cache[7] || (_cache[7] = ($event) => emitClear())
|
|
13854
13847
|
}, {
|
|
13855
13848
|
default: withCtx(() => [
|
|
13856
13849
|
createVNode(unref(circle_close_default))
|