@airpower/web 0.2.36 → 0.2.38
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 +34 -33
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -13933,7 +13933,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13933
13933
|
const slots = useSlots();
|
|
13934
13934
|
init();
|
|
13935
13935
|
return (_ctx, _cache) => {
|
|
13936
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I
|
|
13936
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I;
|
|
13937
13937
|
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
13938
13938
|
const _component_el_time_picker = resolveComponent("el-time-picker");
|
|
13939
13939
|
const _component_el_switch = resolveComponent("el-switch");
|
|
@@ -13946,6 +13946,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13946
13946
|
const _component_el_icon = resolveComponent("el-icon");
|
|
13947
13947
|
const _component_el_input = resolveComponent("el-input");
|
|
13948
13948
|
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
13949
|
+
createTextVNode(toDisplayString(formConfig.value) + " ", 1),
|
|
13949
13950
|
formConfig.value && formConfig.value.dateType !== void 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
13950
13951
|
formConfig.value.dateType !== unref(DateTimeType).TIME ? (openBlock(), createBlock(_component_el_date_picker, {
|
|
13951
13952
|
key: 0,
|
|
@@ -13959,7 +13960,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13959
13960
|
readonly: __props.readonly,
|
|
13960
13961
|
"suffix-icon": (_d = formConfig.value) == null ? void 0 : _d.suffixIcon,
|
|
13961
13962
|
type: formConfig.value.dateType,
|
|
13962
|
-
"value-format":
|
|
13963
|
+
"value-format": formConfig.value.dateFormatter ? formConfig.value.dateFormatter.label : unref(DateTimeFormatter).TIMESTAMP.label,
|
|
13963
13964
|
style: { "width": "100%" },
|
|
13964
13965
|
onClear,
|
|
13965
13966
|
onFocus: emitFocus,
|
|
@@ -13968,21 +13969,21 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13968
13969
|
key: 1,
|
|
13969
13970
|
modelValue: value.value,
|
|
13970
13971
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event),
|
|
13971
|
-
clearable: ((
|
|
13972
|
+
clearable: ((_e = formConfig.value) == null ? void 0 : _e.clearable) !== false,
|
|
13972
13973
|
disabled: __props.disabled,
|
|
13973
|
-
format: ((
|
|
13974
|
+
format: ((_f = formConfig.value.dateShowFormatter) == null ? void 0 : _f.label) || unref(DateTimeFormatter).FULL_TIME.label,
|
|
13974
13975
|
placeholder: placeholderRef.value,
|
|
13975
|
-
"prefix-icon": (
|
|
13976
|
+
"prefix-icon": (_g = formConfig.value) == null ? void 0 : _g.prefixIcon,
|
|
13976
13977
|
readonly: __props.readonly,
|
|
13977
|
-
"suffix-icon": (
|
|
13978
|
-
"value-format":
|
|
13978
|
+
"suffix-icon": (_h = formConfig.value) == null ? void 0 : _h.suffixIcon,
|
|
13979
|
+
"value-format": formConfig.value.dateFormatter ? formConfig.value.dateFormatter.label : unref(DateTimeFormatter).TIMESTAMP.label,
|
|
13979
13980
|
style: { "width": "100%" },
|
|
13980
13981
|
onClear,
|
|
13981
13982
|
onFocus: emitFocus,
|
|
13982
13983
|
onKeydown: onKeyDown
|
|
13983
13984
|
}, null, 8, ["modelValue", "clearable", "disabled", "format", "placeholder", "prefix-icon", "readonly", "suffix-icon", "value-format"]))
|
|
13984
13985
|
], 64)) : __props.list || dictionary.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13985
|
-
((
|
|
13986
|
+
((_i = formConfig.value) == null ? void 0 : _i.switch) ? (openBlock(), createBlock(_component_el_switch, {
|
|
13986
13987
|
key: 0,
|
|
13987
13988
|
modelValue: value.value,
|
|
13988
13989
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => value.value = $event),
|
|
@@ -13993,7 +13994,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13993
13994
|
"--el-switch-on-color": getSwitchColor(true),
|
|
13994
13995
|
"--el-switch-off-color": getSwitchColor(false)
|
|
13995
13996
|
})
|
|
13996
|
-
}, null, 8, ["modelValue", "active-text", "inactive-text", "readonly", "style"])) : ((
|
|
13997
|
+
}, null, 8, ["modelValue", "active-text", "inactive-text", "readonly", "style"])) : ((_j = formConfig.value) == null ? void 0 : _j.radioButton) ? (openBlock(), createBlock(_component_el_radio_group, {
|
|
13997
13998
|
key: 1,
|
|
13998
13999
|
modelValue: value.value,
|
|
13999
14000
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => value.value = $event),
|
|
@@ -14013,7 +14014,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14013
14014
|
}), 128))
|
|
14014
14015
|
]),
|
|
14015
14016
|
_: 1
|
|
14016
|
-
}, 8, ["modelValue", "readonly"])) : ((
|
|
14017
|
+
}, 8, ["modelValue", "readonly"])) : ((_k = formConfig.value) == null ? void 0 : _k.radio) ? (openBlock(), createBlock(_component_el_radio_group, {
|
|
14017
14018
|
key: 2,
|
|
14018
14019
|
modelValue: value.value,
|
|
14019
14020
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => value.value = $event),
|
|
@@ -14037,18 +14038,18 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14037
14038
|
key: 3,
|
|
14038
14039
|
modelValue: value.value,
|
|
14039
14040
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => value.value = $event),
|
|
14040
|
-
clearable: ((
|
|
14041
|
-
"collapse-tags": (
|
|
14041
|
+
clearable: ((_l = formConfig.value) == null ? void 0 : _l.clearable) !== false,
|
|
14042
|
+
"collapse-tags": (_m = formConfig.value) == null ? void 0 : _m.collapseTags,
|
|
14042
14043
|
disabled: __props.disabled,
|
|
14043
|
-
filterable: (
|
|
14044
|
-
multiple: (
|
|
14045
|
-
"multiple-limit": (
|
|
14044
|
+
filterable: (_n = formConfig.value) == null ? void 0 : _n.filterable,
|
|
14045
|
+
multiple: (_o = formConfig.value) == null ? void 0 : _o.multiple,
|
|
14046
|
+
"multiple-limit": (_p = formConfig.value) == null ? void 0 : _p.multipleLimit,
|
|
14046
14047
|
placeholder: placeholderRef.value,
|
|
14047
|
-
"prefix-icon": (
|
|
14048
|
+
"prefix-icon": (_q = formConfig.value) == null ? void 0 : _q.prefixIcon,
|
|
14048
14049
|
readonly: __props.readonly,
|
|
14049
14050
|
remote: !!__props.onSearch,
|
|
14050
14051
|
"remote-method": __props.onSearch,
|
|
14051
|
-
"suffix-icon": (
|
|
14052
|
+
"suffix-icon": (_r = formConfig.value) == null ? void 0 : _r.suffixIcon,
|
|
14052
14053
|
"collapse-tags-tooltip": "",
|
|
14053
14054
|
"fit-input-width": "",
|
|
14054
14055
|
onClear,
|
|
@@ -14085,20 +14086,20 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14085
14086
|
key: 2,
|
|
14086
14087
|
modelValue: value.value,
|
|
14087
14088
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => value.value = $event),
|
|
14088
|
-
clearable: ((
|
|
14089
|
-
"collapse-tags": (
|
|
14089
|
+
clearable: ((_s = formConfig.value) == null ? void 0 : _s.clearable) !== false,
|
|
14090
|
+
"collapse-tags": (_t = formConfig.value) == null ? void 0 : _t.collapseTags,
|
|
14090
14091
|
disabled: __props.disabled,
|
|
14091
14092
|
options: __props.tree,
|
|
14092
14093
|
placeholder: placeholderRef.value,
|
|
14093
14094
|
props: {
|
|
14094
14095
|
value: "id",
|
|
14095
14096
|
label: "name",
|
|
14096
|
-
multiple: (
|
|
14097
|
-
emitPath: (
|
|
14098
|
-
checkStrictly: (
|
|
14097
|
+
multiple: (_u = formConfig.value) == null ? void 0 : _u.multiple,
|
|
14098
|
+
emitPath: (_v = formConfig.value) == null ? void 0 : _v.emitPath,
|
|
14099
|
+
checkStrictly: (_w = formConfig.value) == null ? void 0 : _w.checkStrictly
|
|
14099
14100
|
},
|
|
14100
14101
|
readonly: __props.readonly,
|
|
14101
|
-
"show-all-levels": (
|
|
14102
|
+
"show-all-levels": (_x = formConfig.value) == null ? void 0 : _x.showAllLevels,
|
|
14102
14103
|
class: "a-input-cascader",
|
|
14103
14104
|
"collapse-tags-tooltip": "",
|
|
14104
14105
|
"popper-class": "a-input-cascader-popper",
|
|
@@ -14109,18 +14110,18 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14109
14110
|
key: 3,
|
|
14110
14111
|
modelValue: value.value,
|
|
14111
14112
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => value.value = $event),
|
|
14112
|
-
autosize: ((
|
|
14113
|
-
clearable: ((
|
|
14113
|
+
autosize: ((_y = formConfig.value) == null ? void 0 : _y.autoSize) ? { minRows: formConfig.value.minRows, maxRows: formConfig.value.maxRows } : false,
|
|
14114
|
+
clearable: ((_z = formConfig.value) == null ? void 0 : _z.clearable) !== false,
|
|
14114
14115
|
disabled: __props.disabled,
|
|
14115
|
-
max: (
|
|
14116
|
-
maxlength: ((
|
|
14117
|
-
min: ((
|
|
14116
|
+
max: (_A = formConfig.value) == null ? void 0 : _A.max,
|
|
14117
|
+
maxlength: ((_B = formConfig.value) == null ? void 0 : _B.maxLength) || (((_C = formConfig.value) == null ? void 0 : _C.textarea) ? unref(WebConfig).maxTextAreaLength : unref(WebConfig).maxTextLength),
|
|
14118
|
+
min: ((_D = formConfig.value) == null ? void 0 : _D.min) ?? 0,
|
|
14118
14119
|
placeholder: placeholderRef.value,
|
|
14119
|
-
"prefix-icon": (
|
|
14120
|
+
"prefix-icon": (_E = formConfig.value) == null ? void 0 : _E.prefixIcon,
|
|
14120
14121
|
readonly: __props.readonly,
|
|
14121
|
-
rows: ((
|
|
14122
|
-
"show-word-limit": ((
|
|
14123
|
-
"suffix-icon": (
|
|
14122
|
+
rows: ((_F = formConfig.value) == null ? void 0 : _F.textarea) ? unref(WebConfig).textareaMinRows : 0,
|
|
14123
|
+
"show-word-limit": ((_G = formConfig.value) == null ? void 0 : _G.showLimit) !== false,
|
|
14124
|
+
"suffix-icon": (_H = formConfig.value) == null ? void 0 : _H.suffixIcon,
|
|
14124
14125
|
type: getInputType.value,
|
|
14125
14126
|
onBlur,
|
|
14126
14127
|
onChange: checkNumberValue,
|
|
@@ -14154,7 +14155,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14154
14155
|
])
|
|
14155
14156
|
};
|
|
14156
14157
|
}),
|
|
14157
|
-
!_ctx.$slots.append && ((
|
|
14158
|
+
!_ctx.$slots.append && ((_I = formConfig.value) == null ? void 0 : _I.suffixText) ? {
|
|
14158
14159
|
name: "append",
|
|
14159
14160
|
fn: withCtx(() => [
|
|
14160
14161
|
createTextVNode(toDisplayString(formConfig.value.suffixText), 1)
|