@airpower/web 0.2.37 → 0.2.39

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 +7 -6
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -13795,7 +13795,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
13795
13795
  if (formConfig.value) {
13796
13796
  switch ((_a = formConfig.value) == null ? void 0 : _a.dateType) {
13797
13797
  case DateTimeType.DATE:
13798
- return DateTimeFormatter.FULL_DATE.label;
13798
+ return DateTimeFormatter.FULL_DATE.key;
13799
13799
  case DateTimeType.WEEK:
13800
13800
  return "第ww周";
13801
13801
  case DateTimeType.YEAR:
@@ -13803,7 +13803,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
13803
13803
  case DateTimeType.MONTH:
13804
13804
  return "YYYY-MM";
13805
13805
  case DateTimeType.DATETIME:
13806
- return DateTimeFormatter.FULL_DATE_TIME.label;
13806
+ return DateTimeFormatter.FULL_DATE_TIME.key;
13807
13807
  }
13808
13808
  }
13809
13809
  return DateTimeFormatter.FULL_DATE_TIME;
@@ -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,
@@ -13953,13 +13954,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
13953
13954
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
13954
13955
  clearable: ((_a = formConfig.value) == null ? void 0 : _a.clearable) !== false,
13955
13956
  disabled: __props.disabled,
13956
- format: ((_b = formConfig.value.dateShowFormatter) == null ? void 0 : _b.label) || getShowFormatter.value,
13957
+ format: ((_b = formConfig.value.dateShowFormatter) == null ? void 0 : _b.key) || getShowFormatter.value,
13957
13958
  placeholder: placeholderRef.value,
13958
13959
  "prefix-icon": (_c = formConfig.value) == null ? void 0 : _c.prefixIcon,
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": formConfig.value.dateFormatter ? formConfig.value.dateFormatter.label : unref(DateTimeFormatter).TIMESTAMP.label,
13963
+ "value-format": formConfig.value.dateFormatter ? formConfig.value.dateFormatter.key : unref(DateTimeFormatter).TIMESTAMP.key,
13963
13964
  style: { "width": "100%" },
13964
13965
  onClear,
13965
13966
  onFocus: emitFocus,
@@ -13970,12 +13971,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
13970
13971
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event),
13971
13972
  clearable: ((_e = formConfig.value) == null ? void 0 : _e.clearable) !== false,
13972
13973
  disabled: __props.disabled,
13973
- format: ((_f = formConfig.value.dateShowFormatter) == null ? void 0 : _f.label) || unref(DateTimeFormatter).FULL_TIME.label,
13974
+ format: ((_f = formConfig.value.dateShowFormatter) == null ? void 0 : _f.key) || unref(DateTimeFormatter).FULL_TIME.key,
13974
13975
  placeholder: placeholderRef.value,
13975
13976
  "prefix-icon": (_g = formConfig.value) == null ? void 0 : _g.prefixIcon,
13976
13977
  readonly: __props.readonly,
13977
13978
  "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
+ "value-format": formConfig.value.dateFormatter ? formConfig.value.dateFormatter.key : unref(DateTimeFormatter).TIMESTAMP.key,
13979
13980
  style: { "width": "100%" },
13980
13981
  onClear,
13981
13982
  onFocus: emitFocus,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@airpower/web",
3
3
  "type": "module",
4
- "version": "0.2.37",
4
+ "version": "0.2.39",
5
5
  "description": "AirPower-Web",
6
6
  "author": {
7
7
  "name": "Hamm",