@airpower/web 0.2.34 → 0.2.35
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 +38 -38
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -13794,7 +13794,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13794
13794
|
if (formConfig.value) {
|
|
13795
13795
|
switch ((_a = formConfig.value) == null ? void 0 : _a.dateType) {
|
|
13796
13796
|
case DateTimeType.DATE:
|
|
13797
|
-
return DateTimeFormatter.FULL_DATE;
|
|
13797
|
+
return DateTimeFormatter.FULL_DATE.label;
|
|
13798
13798
|
case DateTimeType.WEEK:
|
|
13799
13799
|
return "第ww周";
|
|
13800
13800
|
case DateTimeType.YEAR:
|
|
@@ -13802,7 +13802,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13802
13802
|
case DateTimeType.MONTH:
|
|
13803
13803
|
return "YYYY-MM";
|
|
13804
13804
|
case DateTimeType.DATETIME:
|
|
13805
|
-
return DateTimeFormatter.FULL_DATE_TIME;
|
|
13805
|
+
return DateTimeFormatter.FULL_DATE_TIME.label;
|
|
13806
13806
|
}
|
|
13807
13807
|
}
|
|
13808
13808
|
return DateTimeFormatter.FULL_DATE_TIME;
|
|
@@ -13932,7 +13932,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13932
13932
|
const slots = useSlots();
|
|
13933
13933
|
init();
|
|
13934
13934
|
return (_ctx, _cache) => {
|
|
13935
|
-
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;
|
|
13935
|
+
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, _J, _K;
|
|
13936
13936
|
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
13937
13937
|
const _component_el_time_picker = resolveComponent("el-time-picker");
|
|
13938
13938
|
const _component_el_switch = resolveComponent("el-switch");
|
|
@@ -13952,13 +13952,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13952
13952
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
13953
13953
|
clearable: ((_a = formConfig.value) == null ? void 0 : _a.clearable) !== false,
|
|
13954
13954
|
disabled: __props.disabled,
|
|
13955
|
-
format: formConfig.value.dateShowFormatter || getShowFormatter.value,
|
|
13955
|
+
format: ((_b = formConfig.value.dateShowFormatter) == null ? void 0 : _b.label) || getShowFormatter.value,
|
|
13956
13956
|
placeholder: placeholderRef.value,
|
|
13957
|
-
"prefix-icon": (
|
|
13957
|
+
"prefix-icon": (_c = formConfig.value) == null ? void 0 : _c.prefixIcon,
|
|
13958
13958
|
readonly: __props.readonly,
|
|
13959
|
-
"suffix-icon": (
|
|
13959
|
+
"suffix-icon": (_d = formConfig.value) == null ? void 0 : _d.suffixIcon,
|
|
13960
13960
|
type: formConfig.value.dateType,
|
|
13961
|
-
"value-format": formConfig.value.dateFormatter,
|
|
13961
|
+
"value-format": (_e = formConfig.value.dateFormatter) == null ? void 0 : _e.label,
|
|
13962
13962
|
style: { "width": "100%" },
|
|
13963
13963
|
onClear,
|
|
13964
13964
|
onFocus: emitFocus,
|
|
@@ -13967,21 +13967,21 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13967
13967
|
key: 1,
|
|
13968
13968
|
modelValue: value.value,
|
|
13969
13969
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event),
|
|
13970
|
-
clearable: ((
|
|
13970
|
+
clearable: ((_f = formConfig.value) == null ? void 0 : _f.clearable) !== false,
|
|
13971
13971
|
disabled: __props.disabled,
|
|
13972
|
-
format: formConfig.value.dateShowFormatter || unref(DateTimeFormatter).FULL_TIME,
|
|
13972
|
+
format: ((_g = formConfig.value.dateShowFormatter) == null ? void 0 : _g.label) || unref(DateTimeFormatter).FULL_TIME.label,
|
|
13973
13973
|
placeholder: placeholderRef.value,
|
|
13974
|
-
"prefix-icon": (
|
|
13974
|
+
"prefix-icon": (_h = formConfig.value) == null ? void 0 : _h.prefixIcon,
|
|
13975
13975
|
readonly: __props.readonly,
|
|
13976
|
-
"suffix-icon": (
|
|
13977
|
-
"value-format": formConfig.value.dateFormatter,
|
|
13976
|
+
"suffix-icon": (_i = formConfig.value) == null ? void 0 : _i.suffixIcon,
|
|
13977
|
+
"value-format": (_j = formConfig.value.dateFormatter) == null ? void 0 : _j.label,
|
|
13978
13978
|
style: { "width": "100%" },
|
|
13979
13979
|
onClear,
|
|
13980
13980
|
onFocus: emitFocus,
|
|
13981
13981
|
onKeydown: onKeyDown
|
|
13982
13982
|
}, null, 8, ["modelValue", "clearable", "disabled", "format", "placeholder", "prefix-icon", "readonly", "suffix-icon", "value-format"]))
|
|
13983
13983
|
], 64)) : __props.list || dictionary.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13984
|
-
((
|
|
13984
|
+
((_k = formConfig.value) == null ? void 0 : _k.switch) ? (openBlock(), createBlock(_component_el_switch, {
|
|
13985
13985
|
key: 0,
|
|
13986
13986
|
modelValue: value.value,
|
|
13987
13987
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => value.value = $event),
|
|
@@ -13992,7 +13992,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13992
13992
|
"--el-switch-on-color": getSwitchColor(true),
|
|
13993
13993
|
"--el-switch-off-color": getSwitchColor(false)
|
|
13994
13994
|
})
|
|
13995
|
-
}, null, 8, ["modelValue", "active-text", "inactive-text", "readonly", "style"])) : ((
|
|
13995
|
+
}, null, 8, ["modelValue", "active-text", "inactive-text", "readonly", "style"])) : ((_l = formConfig.value) == null ? void 0 : _l.radioButton) ? (openBlock(), createBlock(_component_el_radio_group, {
|
|
13996
13996
|
key: 1,
|
|
13997
13997
|
modelValue: value.value,
|
|
13998
13998
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => value.value = $event),
|
|
@@ -14012,7 +14012,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14012
14012
|
}), 128))
|
|
14013
14013
|
]),
|
|
14014
14014
|
_: 1
|
|
14015
|
-
}, 8, ["modelValue", "readonly"])) : ((
|
|
14015
|
+
}, 8, ["modelValue", "readonly"])) : ((_m = formConfig.value) == null ? void 0 : _m.radio) ? (openBlock(), createBlock(_component_el_radio_group, {
|
|
14016
14016
|
key: 2,
|
|
14017
14017
|
modelValue: value.value,
|
|
14018
14018
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => value.value = $event),
|
|
@@ -14036,18 +14036,18 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14036
14036
|
key: 3,
|
|
14037
14037
|
modelValue: value.value,
|
|
14038
14038
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => value.value = $event),
|
|
14039
|
-
clearable: ((
|
|
14040
|
-
"collapse-tags": (
|
|
14039
|
+
clearable: ((_n = formConfig.value) == null ? void 0 : _n.clearable) !== false,
|
|
14040
|
+
"collapse-tags": (_o = formConfig.value) == null ? void 0 : _o.collapseTags,
|
|
14041
14041
|
disabled: __props.disabled,
|
|
14042
|
-
filterable: (
|
|
14043
|
-
multiple: (
|
|
14044
|
-
"multiple-limit": (
|
|
14042
|
+
filterable: (_p = formConfig.value) == null ? void 0 : _p.filterable,
|
|
14043
|
+
multiple: (_q = formConfig.value) == null ? void 0 : _q.multiple,
|
|
14044
|
+
"multiple-limit": (_r = formConfig.value) == null ? void 0 : _r.multipleLimit,
|
|
14045
14045
|
placeholder: placeholderRef.value,
|
|
14046
|
-
"prefix-icon": (
|
|
14046
|
+
"prefix-icon": (_s = formConfig.value) == null ? void 0 : _s.prefixIcon,
|
|
14047
14047
|
readonly: __props.readonly,
|
|
14048
14048
|
remote: !!__props.onSearch,
|
|
14049
14049
|
"remote-method": __props.onSearch,
|
|
14050
|
-
"suffix-icon": (
|
|
14050
|
+
"suffix-icon": (_t = formConfig.value) == null ? void 0 : _t.suffixIcon,
|
|
14051
14051
|
"collapse-tags-tooltip": "",
|
|
14052
14052
|
"fit-input-width": "",
|
|
14053
14053
|
onClear,
|
|
@@ -14084,20 +14084,20 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14084
14084
|
key: 2,
|
|
14085
14085
|
modelValue: value.value,
|
|
14086
14086
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => value.value = $event),
|
|
14087
|
-
clearable: ((
|
|
14088
|
-
"collapse-tags": (
|
|
14087
|
+
clearable: ((_u = formConfig.value) == null ? void 0 : _u.clearable) !== false,
|
|
14088
|
+
"collapse-tags": (_v = formConfig.value) == null ? void 0 : _v.collapseTags,
|
|
14089
14089
|
disabled: __props.disabled,
|
|
14090
14090
|
options: __props.tree,
|
|
14091
14091
|
placeholder: placeholderRef.value,
|
|
14092
14092
|
props: {
|
|
14093
14093
|
value: "id",
|
|
14094
14094
|
label: "name",
|
|
14095
|
-
multiple: (
|
|
14096
|
-
emitPath: (
|
|
14097
|
-
checkStrictly: (
|
|
14095
|
+
multiple: (_w = formConfig.value) == null ? void 0 : _w.multiple,
|
|
14096
|
+
emitPath: (_x = formConfig.value) == null ? void 0 : _x.emitPath,
|
|
14097
|
+
checkStrictly: (_y = formConfig.value) == null ? void 0 : _y.checkStrictly
|
|
14098
14098
|
},
|
|
14099
14099
|
readonly: __props.readonly,
|
|
14100
|
-
"show-all-levels": (
|
|
14100
|
+
"show-all-levels": (_z = formConfig.value) == null ? void 0 : _z.showAllLevels,
|
|
14101
14101
|
class: "a-input-cascader",
|
|
14102
14102
|
"collapse-tags-tooltip": "",
|
|
14103
14103
|
"popper-class": "a-input-cascader-popper",
|
|
@@ -14108,18 +14108,18 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14108
14108
|
key: 3,
|
|
14109
14109
|
modelValue: value.value,
|
|
14110
14110
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => value.value = $event),
|
|
14111
|
-
autosize: ((
|
|
14112
|
-
clearable: ((
|
|
14111
|
+
autosize: ((_A = formConfig.value) == null ? void 0 : _A.autoSize) ? { minRows: formConfig.value.minRows, maxRows: formConfig.value.maxRows } : false,
|
|
14112
|
+
clearable: ((_B = formConfig.value) == null ? void 0 : _B.clearable) !== false,
|
|
14113
14113
|
disabled: __props.disabled,
|
|
14114
|
-
max: (
|
|
14115
|
-
maxlength: ((
|
|
14116
|
-
min: ((
|
|
14114
|
+
max: (_C = formConfig.value) == null ? void 0 : _C.max,
|
|
14115
|
+
maxlength: ((_D = formConfig.value) == null ? void 0 : _D.maxLength) || (((_E = formConfig.value) == null ? void 0 : _E.textarea) ? unref(WebConfig).maxTextAreaLength : unref(WebConfig).maxTextLength),
|
|
14116
|
+
min: ((_F = formConfig.value) == null ? void 0 : _F.min) ?? 0,
|
|
14117
14117
|
placeholder: placeholderRef.value,
|
|
14118
|
-
"prefix-icon": (
|
|
14118
|
+
"prefix-icon": (_G = formConfig.value) == null ? void 0 : _G.prefixIcon,
|
|
14119
14119
|
readonly: __props.readonly,
|
|
14120
|
-
rows: ((
|
|
14121
|
-
"show-word-limit": ((
|
|
14122
|
-
"suffix-icon": (
|
|
14120
|
+
rows: ((_H = formConfig.value) == null ? void 0 : _H.textarea) ? unref(WebConfig).textareaMinRows : 0,
|
|
14121
|
+
"show-word-limit": ((_I = formConfig.value) == null ? void 0 : _I.showLimit) !== false,
|
|
14122
|
+
"suffix-icon": (_J = formConfig.value) == null ? void 0 : _J.suffixIcon,
|
|
14123
14123
|
type: getInputType.value,
|
|
14124
14124
|
onBlur,
|
|
14125
14125
|
onChange: checkNumberValue,
|
|
@@ -14153,7 +14153,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14153
14153
|
])
|
|
14154
14154
|
};
|
|
14155
14155
|
}),
|
|
14156
|
-
!_ctx.$slots.append && ((
|
|
14156
|
+
!_ctx.$slots.append && ((_K = formConfig.value) == null ? void 0 : _K.suffixText) ? {
|
|
14157
14157
|
name: "append",
|
|
14158
14158
|
fn: withCtx(() => [
|
|
14159
14159
|
createTextVNode(toDisplayString(formConfig.value.suffixText), 1)
|