@airpower/web 0.2.36 → 0.2.37

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