@dinert/element-plus 1.1.25 → 1.1.26

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.
@@ -1,25 +1,25 @@
1
- import { defineComponent as R, toRefs as C, ref as b, onBeforeUpdate as F, computed as I, createVNode as r, resolveComponent as n, mergeProps as c, Fragment as T, isVNode as L, nextTick as x } from "vue";
2
- import S from "./input.mjs";
3
- import U from "./input-number.mjs";
4
- import _ from "./input-autocomplete.mjs";
5
- import A from "./select.mjs";
6
- import B from "./select-v2.mjs";
7
- import q from "./switch.mjs";
8
- import $ from "./date.mjs";
9
- import M from "./radio.mjs";
10
- import V from "./tree-select.mjs";
11
- import j from "./rate.mjs";
12
- import D from "./checkbox.mjs";
13
- import E from "./cascader.mjs";
14
- import O from "../../../hooks/useWindowResize.mjs";
15
- import { customPlaceholder as v, labelMouseEnter as N, getTooltipValue as z, valueMouseEnter as H, getSpanValue as P, formItemSlot as g, renderSlot as p } from "../utils/index.mjs";
16
- import { getUuid as W, dataTransformRod as G } from "../../../utils/tools.mjs";
17
- import { ArrowUp as J, ArrowDown as K } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
1
+ import { defineComponent as R, toRefs as C, ref as b, onBeforeUpdate as F, computed as I, createVNode as r, resolveComponent as n, mergeProps as c, withModifiers as T, Fragment as L, isVNode as x, nextTick as S } from "vue";
2
+ import U from "./input.mjs";
3
+ import _ from "./input-number.mjs";
4
+ import A from "./input-autocomplete.mjs";
5
+ import B from "./select.mjs";
6
+ import q from "./select-v2.mjs";
7
+ import $ from "./switch.mjs";
8
+ import M from "./date.mjs";
9
+ import V from "./radio.mjs";
10
+ import j from "./tree-select.mjs";
11
+ import D from "./rate.mjs";
12
+ import E from "./checkbox.mjs";
13
+ import O from "./cascader.mjs";
14
+ import N from "../../../hooks/useWindowResize.mjs";
15
+ import { customPlaceholder as v, labelMouseEnter as z, getTooltipValue as H, valueMouseEnter as P, getSpanValue as W, formItemSlot as g, renderSlot as p } from "../utils/index.mjs";
16
+ import { getUuid as G, dataTransformRod as J } from "../../../utils/tools.mjs";
17
+ import { ArrowUp as K, ArrowDown as Q } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
18
18
  import "../../../assets/scss/dinert-form.scss.mjs";
19
- function Q(a) {
20
- return typeof a == "function" || Object.prototype.toString.call(a) === "[object Object]" && !L(a);
19
+ function X(a) {
20
+ return typeof a == "function" || Object.prototype.toString.call(a) === "[object Object]" && !x(a);
21
21
  }
22
- const ye = /* @__PURE__ */ R({
22
+ const be = /* @__PURE__ */ R({
23
23
  name: "dinert-form",
24
24
  props: {
25
25
  form: {
@@ -37,35 +37,35 @@ const ye = /* @__PURE__ */ R({
37
37
  }) {
38
38
  const {
39
39
  form: u
40
- } = C(a), l = b(u.value.packUp === void 0), i = b(!1), h = b(), m = b({}), o = (f, d) => {
41
- m.value[f] = d;
42
- }, t = b("form_" + W());
40
+ } = C(a), l = b(u.value.packUp === void 0), i = b(!1), d = b(), m = b({}), o = (f, h) => {
41
+ m.value[f] = h;
42
+ }, t = b("form_" + G());
43
43
  F(() => {
44
44
  m.value = {};
45
45
  });
46
46
  const k = I(() => {
47
47
  const f = [];
48
- return Object.keys(u.value.formItem).forEach((d) => {
49
- const y = u.value.formItem[d];
48
+ return Object.keys(u.value.formItem).forEach((h) => {
49
+ const y = u.value.formItem[h];
50
50
  f.push({
51
51
  ...y,
52
- key: d
52
+ key: h
53
53
  });
54
- }), f.sort((d, y) => (d.sort || 1 / 0) - (y.sort || 1 / 0)), f;
54
+ }), f.sort((h, y) => (h.sort || 1 / 0) - (y.sort || 1 / 0)), f;
55
55
  }), w = () => {
56
56
  let f = document.querySelectorAll(`.${t.value} .el-form-left > div`);
57
- f[0] && (i.value = !1, x(() => {
58
- const d = f[0].getBoundingClientRect().top, y = f[f.length - 1].getBoundingClientRect().top;
59
- d !== y ? i.value = !0 : (l.value || (l.value = !0), i.value = !1), f = null;
57
+ f[0] && (i.value = !1, S(() => {
58
+ const h = f[0].getBoundingClientRect().top, y = f[f.length - 1].getBoundingClientRect().top;
59
+ h !== y ? i.value = !0 : (l.value || (l.value = !0), i.value = !1), f = null;
60
60
  }));
61
61
  };
62
- return O(() => {
62
+ return N(() => {
63
63
  w();
64
64
  }, 100, !0), {
65
65
  formItemMap: k,
66
66
  formClass: t,
67
67
  formTypeRef: m,
68
- formRef: h,
68
+ formRef: d,
69
69
  packUp: l,
70
70
  isArrow: i,
71
71
  setFormTypeRefs: o,
@@ -83,11 +83,13 @@ const ye = /* @__PURE__ */ R({
83
83
  this.formRef = e;
84
84
  },
85
85
  class: [this.formClass, this.packUp ? "" : "packUp", "dinert-form"],
86
+ onSubmit: T(() => {
87
+ }, ["stop", "prevent"]),
86
88
  key: this.form.key
87
89
  }), {
88
90
  default: () => [r(n("el-row"), c(this.form.row, {
89
91
  class: "el-form-left"
90
- }), Q(a = this.formItemMap.map((e) => {
92
+ }), X(a = this.formItemMap.map((e) => {
91
93
  const u = {};
92
94
  let l = typeof e.vif == "function" ? e.vif(this.form.model) : e.vif;
93
95
  l = l === void 0 && typeof this.form.vif == "function" ? this.form.vif(this.form.model) : l, l = l === void 0 ? !0 : l;
@@ -97,12 +99,12 @@ const ye = /* @__PURE__ */ R({
97
99
  ...e.options
98
100
  }, i || (u.display = "none"), l) {
99
101
  e.required = e.required === void 0 ? e.required || this.form.required : e.required, e.showLabel = e.showLabel === void 0 ? e.showLabel || this.form.showLabel : e.showLabel;
100
- let h = e.rules || [];
101
- h = e.required ? [{
102
+ let d = e.rules || [];
103
+ d = e.required ? [{
102
104
  required: !0,
103
105
  trigger: ["blur", "change"],
104
106
  message: v(typeof e.label == "function" ? e.label(this.form.model) : e.label, e.type)
105
- }].concat(h) : h, h = e.showLabel ? [] : h;
107
+ }].concat(d) : d, d = e.showLabel ? [] : d;
106
108
  const m = e.showLabel ? !0 : e.tempValueDisabled;
107
109
  return r(n("el-col"), c({
108
110
  style: u,
@@ -124,26 +126,26 @@ const ye = /* @__PURE__ */ R({
124
126
  }, {
125
127
  ...e,
126
128
  label: typeof e.label == "function" ? e.label(this.form.model) : e.label,
127
- rules: h
129
+ rules: d
128
130
  }), {
129
131
  label: () => r(n("dinert-tooltip"), {
130
132
  key: e.key,
131
133
  content: typeof e.label == "function" ? e.label(this.form.model) : e.label,
132
134
  disabled: e.labelDisabled,
133
- onLabelMouseEnter: (o) => N(o, e, this)
135
+ onLabelMouseEnter: (o) => z(o, e, this)
134
136
  }, null),
135
137
  default: () => r(n("dinert-tooltip"), {
136
138
  key: e.key,
137
- content: String(z(this.form.model[e.key], e)),
139
+ content: String(H(this.form.model[e.key], e)),
138
140
  disabled: m,
139
141
  item: e,
140
- onLabelMouseEnter: (o) => H(o, e, this.form.model[e.key], this)
142
+ onLabelMouseEnter: (o) => P(o, e, this.form.model[e.key], this)
141
143
  }, {
142
144
  // eslint-disable-next-line max-statements
143
145
  default: () => {
144
146
  var k, w;
145
147
  const o = {};
146
- let t = r("span", null, [G(P(this.form.model[e.key], e))]);
148
+ let t = r("span", null, [J(W(this.form.model[e.key], e))]);
147
149
  if (this.$slots[g(e.key)])
148
150
  t = (w = (k = this.$slots)[g(e.key)]) == null ? void 0 : w.call(k, {
149
151
  ...e,
@@ -152,51 +154,51 @@ const ye = /* @__PURE__ */ R({
152
154
  else {
153
155
  if (e.showLabel || this.form.showLabel && [!0, void 0].includes(e.showLabel))
154
156
  return t;
155
- ["input", "textarea"].includes(e.type) ? (p(["prefix", "suffix", "prepend", "append"], this, o, e), t = r(S, {
157
+ ["input", "textarea"].includes(e.type) ? (p(["prefix", "suffix", "prepend", "append"], this, o, e), t = r(U, {
156
158
  form: this.form,
157
159
  formItem: e,
158
160
  ref: (s) => this.setFormTypeRefs(e.key, s)
159
- }, o)) : ["input-number"].includes(e.type) ? (p(["decrease-icon", "increase-icon"], this, o, e), t = r(U, {
161
+ }, o)) : ["input-number"].includes(e.type) ? (p(["decrease-icon", "increase-icon"], this, o, e), t = r(_, {
160
162
  form: this.form,
161
163
  formItem: e,
162
164
  ref: (s) => this.setFormTypeRefs(e.key, s)
163
- }, o)) : ["input-autocomplete"].includes(e.type) ? (p(["prefix", "suffix", "prepend", "append", "loading"], this, o, e), t = r(_, {
165
+ }, o)) : ["input-autocomplete"].includes(e.type) ? (p(["prefix", "suffix", "prepend", "append", "loading"], this, o, e), t = r(A, {
164
166
  form: this.form,
165
167
  formItem: e,
166
168
  ref: (s) => this.setFormTypeRefs(e.key, s)
167
- }, o)) : ["select"].includes(e.type) ? (p(["header", "footer", "prefix", "empty", "tag", "loading", "label"], this, o, e), t = r(A, {
169
+ }, o)) : ["select"].includes(e.type) ? (p(["header", "footer", "prefix", "empty", "tag", "loading", "label"], this, o, e), t = r(B, {
168
170
  form: this.form,
169
171
  formItem: e,
170
172
  ref: (s) => this.setFormTypeRefs(e.key, s)
171
- }, o)) : ["select-v2"].includes(e.type) ? (p(["header", "footer", "prefix", "empty", "tag", "loading", "label"], this, o, e), t = r(B, {
173
+ }, o)) : ["select-v2"].includes(e.type) ? (p(["header", "footer", "prefix", "empty", "tag", "loading", "label"], this, o, e), t = r(q, {
172
174
  form: this.form,
173
175
  formItem: e,
174
176
  ref: (s) => this.setFormTypeRefs(e.key, s)
175
- }, o)) : ["switch"].includes(e.type) ? (p(["active-action", "inactive-action"], this, o, e), t = r(q, {
177
+ }, o)) : ["switch"].includes(e.type) ? (p(["active-action", "inactive-action"], this, o, e), t = r($, {
176
178
  form: this.form,
177
179
  formItem: e,
178
180
  ref: (s) => this.setFormTypeRefs(e.key, s)
179
- }, o)) : ["datetime", "date", "dates", "week", "month", "year", "years", "datetimerange", "daterange", "monthrange", "yearrange"].includes(e.type) ? (p(["range-separator", "prev-month", "next-month", "prev-year", "next-year"], this, o, e), t = r($, {
181
+ }, o)) : ["datetime", "date", "dates", "week", "month", "year", "years", "datetimerange", "daterange", "monthrange", "yearrange"].includes(e.type) ? (p(["range-separator", "prev-month", "next-month", "prev-year", "next-year"], this, o, e), t = r(M, {
180
182
  form: this.form,
181
183
  formItem: e,
182
184
  ref: (s) => this.setFormTypeRefs(e.key, s)
183
- }, o)) : ["radio", "radio-button"].includes(e.type) ? t = r(M, {
185
+ }, o)) : ["radio", "radio-button"].includes(e.type) ? t = r(V, {
184
186
  form: this.form,
185
187
  formItem: e,
186
188
  ref: (s) => this.setFormTypeRefs(e.key, s)
187
- }, o) : ["tree-select"].includes(e.type) ? (p(["header", "footer", "prefix", "empty", "tag", "loading", "label"], this, o, e), t = r(V, {
189
+ }, o) : ["tree-select"].includes(e.type) ? (p(["header", "footer", "prefix", "empty", "tag", "loading", "label"], this, o, e), t = r(j, {
188
190
  form: this.form,
189
191
  formItem: e,
190
192
  ref: (s) => this.setFormTypeRefs(e.key, s)
191
- }, o)) : ["rate"].includes(e.type) ? t = r(j, {
193
+ }, o)) : ["rate"].includes(e.type) ? t = r(D, {
192
194
  form: this.form,
193
195
  formItem: e,
194
196
  ref: (s) => this.setFormTypeRefs(e.key, s)
195
- }, o) : ["checkbox", "checkbox-button"].includes(e.type) ? t = r(D, {
197
+ }, o) : ["checkbox", "checkbox-button"].includes(e.type) ? t = r(E, {
196
198
  form: this.form,
197
199
  formItem: e,
198
200
  ref: (s) => this.setFormTypeRefs(e.key, s)
199
- }, o) : ["cascader"].includes(e.type) && (p(["empty"], this, o, e), t = r(E, {
201
+ }, o) : ["cascader"].includes(e.type) && (p(["empty"], this, o, e), t = r(O, {
200
202
  ref: (s) => this.setFormTypeRefs(e.key, s),
201
203
  form: this.form,
202
204
  formItem: e
@@ -236,9 +238,9 @@ const ye = /* @__PURE__ */ R({
236
238
  onClick: this.unfold
237
239
  }, {
238
240
  default: () => [r(n("el-icon"), null, {
239
- default: () => [this.packUp ? r(J, null, null) : r(K, null, null)]
241
+ default: () => [this.packUp ? r(K, null, null) : r(Q, null, null)]
240
242
  }), this.packUp ? "收起" : "展开"]
241
- }), ((u = (e = this.$slots).form_search) == null ? void 0 : u.call(e)) || r(T, null, [r(n("el-button"), c({
243
+ }), ((u = (e = this.$slots).form_search) == null ? void 0 : u.call(e)) || r(L, null, [r(n("el-button"), c({
242
244
  type: "primary",
243
245
  onClick: () => this.$emit("SearchFn")
244
246
  }, this.form.searchButton), {
@@ -262,6 +264,6 @@ const ye = /* @__PURE__ */ R({
262
264
  }
263
265
  });
264
266
  export {
265
- ye as default
267
+ be as default
266
268
  };
267
269
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/form/src/index.tsx"],"sourcesContent":["import {defineComponent, ref, computed, nextTick, toRefs, onBeforeUpdate} from 'vue'\nimport CustomInput from './input'\nimport CustomInputNumber from './input-number'\nimport CustomInputAutocomplete from './input-autocomplete'\nimport CustomSelect from './select'\nimport CustomSelectV2 from './select-v2'\nimport CustomSwitch from './switch'\nimport CustomDate from './date'\nimport CustomRadio from './radio'\nimport CustomSelectTree from './tree-select'\nimport CustomRate from './rate'\nimport CustomCheckbox from './checkbox'\nimport CustomCascader from './cascader'\n\nimport useWindowResize from '@packages/hooks/useWindowResize'\nimport {labelMouseEnter, valueMouseEnter, getTooltipValue, getSpanValue, formItemSlot, customPlaceholder, renderSlot} from '@packages/components/form/utils'\n\nimport {dataTransformRod, getUuid} from '@packages/utils/tools'\nimport {ElForm} from 'element-plus'\n\nimport {ArrowUp, ArrowDown} from '@element-plus/icons-vue'\n\n\nimport '@packages/assets/scss/dinert-form.scss'\n\nimport type {PropType} from 'vue'\nimport type {RewriteFormProps, CustomFormItemProps} from '@packages/components/form/types'\n\n\n// 展开还是收起状态\nexport default defineComponent({\n name: 'dinert-form',\n props: {\n form: {\n type: Object as PropType<RewriteFormProps>,\n default: () => ({})\n },\n search: {\n type: Boolean,\n default: true\n }\n },\n emits: ['UnFold', 'SearchFn', 'ResetFn'],\n setup(props, {emit}) {\n const {form} = toRefs(props)\n const packUp = ref(form.value.packUp === undefined)\n const isArrow = ref(false)\n const formRef = ref<InstanceType<typeof ElForm>>()\n const formTypeRef = ref<any>({})\n const setFormTypeRefs = (type: string, el: any) => {\n formTypeRef.value[type] = el\n }\n const formClass = ref('form_' + getUuid())\n\n onBeforeUpdate(() => {\n formTypeRef.value = {}\n })\n\n const formItemMap = computed(() => {\n const result: any = []\n Object.keys(form.value.formItem).forEach(key => {\n const value = form.value.formItem[key] as Partial<CustomFormItemProps>\n result.push({\n ...value,\n key: key,\n })\n })\n\n result.sort((a: any, b: any) => {\n return (a.sort || Infinity) - (b.sort || Infinity)\n })\n\n return result\n })\n\n const resizeForm = () => {\n let elFormLeft = document.querySelectorAll(`.${formClass.value} .el-form-left > div`) as any\n if (elFormLeft[0]) {\n isArrow.value = false\n nextTick(() => {\n const firstTop = elFormLeft[0].getBoundingClientRect().top\n const lastTop = elFormLeft[elFormLeft.length - 1].getBoundingClientRect().top\n const isHeight = firstTop !== lastTop\n if (isHeight) {\n isArrow.value = true\n } else {\n if (!packUp.value) {\n packUp.value = true\n }\n isArrow.value = false\n }\n elFormLeft = null\n })\n\n }\n }\n\n useWindowResize(() => {\n resizeForm()\n }, 100, true)\n\n\n const unfold = () => {\n if (packUp.value) {\n packUp.value = false\n } else {\n packUp.value = true\n }\n\n emit('UnFold', packUp.value)\n }\n\n\n return {\n formItemMap,\n formClass,\n formTypeRef,\n formRef,\n packUp,\n isArrow,\n\n setFormTypeRefs,\n unfold,\n }\n },\n render() {\n return (\n <el-form inline={true}\n {...this.form}\n ref={el => {this.formRef = el}}\n class={[this.formClass, this.packUp ? '' : 'packUp', 'dinert-form']} key={this.form.key}>\n\n <el-row {...this.form.row} class=\"el-form-left\">\n {/* eslint-disable-next-line array-callback-return, consistent-return */}\n { this.formItemMap.map((item: CustomFormItemProps) => {\n const style: any = {}\n let vif = typeof item.vif === 'function' ? item.vif(this.form.model) : item.vif\n vif = vif === undefined ? typeof this.form.vif === 'function' ? this.form.vif(this.form.model) : vif : vif\n vif = vif === undefined ? true : vif\n\n let show = typeof item.show === 'function' ? item.show(this.form.model) : item.show\n show = show === undefined ? true : show\n item.options = {placeholder: customPlaceholder(typeof item.label === 'function' ? item.label(this.form.model) : item.label, item.type), ...item.options}\n\n\n if (!show) {\n style.display = 'none'\n }\n if (vif) {\n item.required = item.required === undefined ? item.required || this.form.required : item.required\n item.showLabel = item.showLabel === undefined ? item.showLabel || this.form.showLabel : item.showLabel\n\n let rules = item.rules || []\n rules = item.required ? [{required: true, trigger: ['blur', 'change'], message: customPlaceholder(typeof item.label === 'function' ? item.label(this.form.model) : item.label, item.type)}].concat(rules as any) : rules\n rules = item.showLabel ? [] : rules\n const valDisabled = item.showLabel ? true : item.tempValueDisabled\n\n return (\n <el-col\n style= {style}\n class={[item.type, item.key]}\n key={item.key}\n {\n ...{\n // xl: 3, // ≥1920px\n // lg: 4, // ≥1200px\n // md: 8, // ≥992px\n // sm: 12, // ≥768px\n // xs: 24, // <768px\n ...this.form.colLayout,\n ...item.colLayout\n }\n }\n >\n <el-form-item\n key={item.key}\n prop={item.key}\n class={[item.labelWrap ? 'label-wrap' : '', item.showLabel || this.form.showLabel ? 'show-label' : '']}\n {...{\n ...item,\n label: typeof item.label === 'function' ? item.label(this.form.model) : item.label,\n rules: rules\n }}\n v-slots={{\n label: () => {\n return (\n <dinert-tooltip\n key={item.key}\n content={typeof item.label === 'function' ? item.label(this.form.model) : item.label}\n disabled={item.labelDisabled}\n onLabelMouseEnter={(e: MouseEvent) => labelMouseEnter(e, item, this)}\n >\n </dinert-tooltip>\n )\n },\n default: () => {\n return (\n <dinert-tooltip\n key={item.key}\n content={String(getTooltipValue(this.form.model[item.key], item))}\n disabled={valDisabled}\n item={item}\n onLabelMouseEnter={(e: MouseEvent) => valueMouseEnter(e, item, this.form.model[item.key], this)}\n v-slots={\n {\n // eslint-disable-next-line max-statements\n default: () => {\n\n const slots: any = {}\n\n let componentResult = <span>{dataTransformRod(getSpanValue(this.form.model[item.key], item))}</span>\n\n if (this.$slots[formItemSlot(item.key)]) {\n\n componentResult = (this.$slots[formItemSlot(item.key)]?.({...item, model: this.form.model}))\n } else if (item.showLabel || (this.form.showLabel && [true, undefined].includes(item.showLabel))) {\n return componentResult\n } else if (['input', 'textarea'].includes(item.type)) {\n renderSlot(['prefix', 'suffix', 'prepend', 'append'], this, slots, item)\n componentResult = (<CustomInput form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomInput>)\n } else if (['input-number'].includes(item.type)) {\n renderSlot(['decrease-icon', 'increase-icon'], this, slots, item)\n componentResult = (<CustomInputNumber form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomInputNumber>)\n } else if (['input-autocomplete'].includes(item.type)) {\n renderSlot(['prefix', 'suffix', 'prepend', 'append', 'loading'], this, slots, item)\n componentResult = (<CustomInputAutocomplete form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomInputAutocomplete>)\n } else if (['select'].includes(item.type)) {\n renderSlot(['header', 'footer', 'prefix', 'empty', 'tag', 'loading', 'label'], this, slots, item)\n componentResult = (<CustomSelect form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomSelect>)\n } else if (['select-v2'].includes(item.type)) {\n renderSlot(['header', 'footer', 'prefix', 'empty', 'tag', 'loading', 'label'], this, slots, item)\n componentResult = (<CustomSelectV2 form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomSelectV2>)\n } else if (['switch'].includes(item.type)) {\n renderSlot(['active-action', 'inactive-action'], this, slots, item)\n componentResult = (<CustomSwitch form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomSwitch>)\n } else if ([\n 'datetime',\n 'date',\n 'dates',\n 'week',\n 'month',\n 'year',\n 'years',\n 'datetimerange',\n 'daterange',\n 'monthrange',\n 'yearrange',\n ].includes(item.type)) {\n renderSlot(['range-separator', 'prev-month', 'next-month', 'prev-year', 'next-year'], this, slots, item)\n componentResult = (<CustomDate form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomDate>)\n } else if (['radio', 'radio-button'].includes(item.type)) {\n componentResult = (<CustomRadio form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomRadio>)\n } else if (['tree-select'].includes(item.type)) {\n renderSlot(['header', 'footer', 'prefix', 'empty', 'tag', 'loading', 'label'], this, slots, item)\n componentResult = (<CustomSelectTree form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomSelectTree>)\n } else if (['rate'].includes(item.type)) {\n componentResult = (<CustomRate form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomRate>)\n } else if (['checkbox', 'checkbox-button'].includes(item.type)) {\n componentResult = (<CustomCheckbox form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomCheckbox>)\n } else if (['cascader'].includes(item.type)) {\n renderSlot(['empty'], this, slots, item)\n componentResult = (<CustomCascader ref={el => this.setFormTypeRefs(item.key, el)}\n form={this.form} formItem={item} v-slots={slots}></CustomCascader>)\n }\n\n return componentResult\n },\n defaultAfter: () => this.$slots[formItemSlot('after_' + item.key)]?.({...item, model: this.form.model}),\n defaultBefore: () => this.$slots[formItemSlot('before_' + item.key)]?.({...item, model: this.form.model}),\n }\n }\n >\n </dinert-tooltip>\n )\n }\n }}\n >\n </el-form-item>\n </el-col>\n )\n }\n\n })\n }\n </el-row>\n {\n this.search\n && <el-row class={['el-form-right', this.isArrow ? 'isArrow' : '']}>\n {this.isArrow\n && <el-button class=\"el-form-right-operation\" text type=\"primary\"\n onClick={this.unfold}\n >\n <el-icon>\n {this.packUp ? <ArrowUp/> : <ArrowDown/>}\n </el-icon>\n {this.packUp ? '收起' : '展开'}\n </el-button>\n }\n {this.$slots.form_search?.()\n || (\n <>\n <el-button type=\"primary\" onClick={() => this.$emit('SearchFn')} {...this.form.searchButton}>{this.form.searchButton?.message || '搜索'}</el-button>\n <el-button type=\"primary\" plain\n onClick={() => this.$emit('ResetFn')}\n {...this.form.resetButton}\n >{this.form.searchButton?.message || '重置'}</el-button>\n </>\n )\n }\n </el-row>\n }\n </el-form>\n )\n }\n})\n"],"names":["_isSlot","s","Object","prototype","toString","call","_isVNode","defineComponent","name","props","form","type","default","search","Boolean","emits","setup","emit","toRefs","packUp","ref","value","undefined","isArrow","formRef","formTypeRef","setFormTypeRefs","el","formClass","getUuid","onBeforeUpdate","formItemMap","computed","result","keys","formItem","forEach","key","push","sort","a","b","Infinity","resizeForm","elFormLeft","document","querySelectorAll","nextTick","firstTop","getBoundingClientRect","top","lastTop","length","useWindowResize","unfold","render","_slot","_createVNode","_resolveComponent","_mergeProps","row","map","item","style","vif","model","show","options","placeholder","customPlaceholder","label","display","required","showLabel","rules","trigger","message","concat","valDisabled","tempValueDisabled","colLayout","labelWrap","labelDisabled","e","labelMouseEnter","String","getTooltipValue","valueMouseEnter","slots","componentResult","dataTransformRod","getSpanValue","$slots","formItemSlot","_b","_a","includes","renderSlot","CustomInput","CustomInputNumber","CustomInputAutocomplete","CustomSelect","CustomSelectV2","CustomSwitch","CustomDate","CustomRadio","CustomSelectTree","CustomRate","CustomCheckbox","CustomCascader","defaultAfter","defaultBefore","ArrowUp","ArrowDown","form_search","_Fragment","onClick","$emit","searchButton","resetButton"],"mappings":";;;;;;;;;;;;;;;;;;AAuB+C,SAAAA,EAAAC,GAAA;AAAA,SAAA,OAAAA,KAAA,cAAAC,OAAAC,UAAAC,SAAAC,KAAAJ,CAAA,MAAAK,qBAAAA,CAAAA,EAAAL,CAAA;AAAA;AAO/C,MAAeM,uBAAgB;AAAA,EAC3BC,MAAM;AAAA,EACNC,OAAO;AAAA,IACHC,MAAM;AAAA,MACFC,MAAMT;AAAAA,MACNU,SAASA,OAAO,CAAA;AAAA,IACnB;AAAA,IACDC,QAAQ;AAAA,MACJF,MAAMG;AAAAA,MACNF,SAAS;AAAA,IACb;AA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,GAAA;AAAA,YAAA1C,SAAAA,MAAA6C,CAAAA,EAAAC,EAAA,SAAA,GAAA,MAAA;AAAA,cAAA9C,SAAAA,MAGf,CAAA,KAAKO,SAAMsC,EAAAuD,GAAA,MAAA,IAAA,IAAAvD,EAAAwD,GAA4B,MAAA,IAAA,CAAA;AAAA,YAAA,CAAA,GAE3C,KAAK9F,SAAS,OAAO,IAAI;AAAA,UAAA,CAAA,KAG7B2E,KAAAC,IAAA,KAAKH,QAAOsB,gBAAZ,gBAAApB,EAAA,KAAAC,OAA2BtC,EAAA0D,GAAA,MAAA,CAAA1D,EAAAC,gBAAAC,EAAA;AAAA,YAAA,MAAA;AAAA,YAAA,SAGmByD,MAAM,KAAKC,MAAM,UAAU;AAAA,UAAC,GAAM,KAAK3G,KAAK4G,YAAY,GAAA;AAAA,YAAA1G,SAAAA,MAAA;;AAAA,wBAAGmF,IAAA,KAAKrF,KAAK4G,iBAAV,gBAAAvB,EAAwBnB,YAAW,IAAI;AAAA;AAAA,UAAA,CAAA,GAAAnB,EAAAC,EAAA,WAAA,GAAAC,EAAA;AAAA,YAAA,MAAA;AAAA,YAAA,OAAA;AAAA,YAAA,SAExHyD,MAAM,KAAKC,MAAM,SAAS;AAAA,UAAC,GAChC,KAAK3G,KAAK6G,WAAW,GAAA;AAAA,YAAA3G,SAAAA,MAAA;;AAAA,wBAC3BmF,IAAA,KAAKrF,KAAK4G,iBAAV,gBAAAvB,EAAwBnB,YAAW,IAAI;AAAA;AAAA,UAEhD,CAAA,CAAA,CAAA,CAAA;AAAA;AAAA,OAEA,CAAA;AAAA,IAAA,CAAA;AAAA,EAIrB;AACJ,CAAC;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/form/src/index.tsx"],"sourcesContent":["import {defineComponent, ref, computed, nextTick, toRefs, onBeforeUpdate, withModifiers} from 'vue'\nimport CustomInput from './input'\nimport CustomInputNumber from './input-number'\nimport CustomInputAutocomplete from './input-autocomplete'\nimport CustomSelect from './select'\nimport CustomSelectV2 from './select-v2'\nimport CustomSwitch from './switch'\nimport CustomDate from './date'\nimport CustomRadio from './radio'\nimport CustomSelectTree from './tree-select'\nimport CustomRate from './rate'\nimport CustomCheckbox from './checkbox'\nimport CustomCascader from './cascader'\n\nimport useWindowResize from '@packages/hooks/useWindowResize'\nimport {labelMouseEnter, valueMouseEnter, getTooltipValue, getSpanValue, formItemSlot, customPlaceholder, renderSlot} from '@packages/components/form/utils'\n\nimport {dataTransformRod, getUuid} from '@packages/utils/tools'\nimport {ElForm} from 'element-plus'\n\nimport {ArrowUp, ArrowDown} from '@element-plus/icons-vue'\n\n\nimport '@packages/assets/scss/dinert-form.scss'\n\nimport type {PropType} from 'vue'\nimport type {RewriteFormProps, CustomFormItemProps} from '@packages/components/form/types'\n\n// 展开还是收起状态\nexport default defineComponent({\n name: 'dinert-form',\n props: {\n form: {\n type: Object as PropType<RewriteFormProps>,\n default: () => ({})\n },\n search: {\n type: Boolean,\n default: true\n }\n },\n emits: ['UnFold', 'SearchFn', 'ResetFn'],\n setup(props, {emit}) {\n const {form} = toRefs(props)\n const packUp = ref(form.value.packUp === undefined)\n const isArrow = ref(false)\n const formRef = ref<InstanceType<typeof ElForm>>()\n const formTypeRef = ref<any>({})\n const setFormTypeRefs = (type: string, el: any) => {\n formTypeRef.value[type] = el\n }\n const formClass = ref('form_' + getUuid())\n\n onBeforeUpdate(() => {\n formTypeRef.value = {}\n })\n\n const formItemMap = computed(() => {\n const result: any = []\n Object.keys(form.value.formItem).forEach(key => {\n const value = form.value.formItem[key] as Partial<CustomFormItemProps>\n result.push({\n ...value,\n key: key,\n })\n })\n\n result.sort((a: any, b: any) => {\n return (a.sort || Infinity) - (b.sort || Infinity)\n })\n\n return result\n })\n\n const resizeForm = () => {\n let elFormLeft = document.querySelectorAll(`.${formClass.value} .el-form-left > div`) as any\n if (elFormLeft[0]) {\n isArrow.value = false\n nextTick(() => {\n const firstTop = elFormLeft[0].getBoundingClientRect().top\n const lastTop = elFormLeft[elFormLeft.length - 1].getBoundingClientRect().top\n const isHeight = firstTop !== lastTop\n if (isHeight) {\n isArrow.value = true\n } else {\n if (!packUp.value) {\n packUp.value = true\n }\n isArrow.value = false\n }\n elFormLeft = null\n })\n\n }\n }\n\n useWindowResize(() => {\n resizeForm()\n }, 100, true)\n\n\n const unfold = () => {\n if (packUp.value) {\n packUp.value = false\n } else {\n packUp.value = true\n }\n\n emit('UnFold', packUp.value)\n }\n\n\n return {\n formItemMap,\n formClass,\n formTypeRef,\n formRef,\n packUp,\n isArrow,\n\n setFormTypeRefs,\n unfold,\n }\n },\n render() {\n return (\n <el-form inline={true}\n {...this.form}\n ref={el => {this.formRef = el}}\n class={[this.formClass, this.packUp ? '' : 'packUp', 'dinert-form']}\n onSubmit={withModifiers(() => undefined, ['stop', 'prevent'])}\n key={this.form.key}>\n\n <el-row {...this.form.row} class=\"el-form-left\">\n {/* eslint-disable-next-line array-callback-return, consistent-return */}\n { this.formItemMap.map((item: CustomFormItemProps) => {\n const style: any = {}\n let vif = typeof item.vif === 'function' ? item.vif(this.form.model) : item.vif\n vif = vif === undefined ? typeof this.form.vif === 'function' ? this.form.vif(this.form.model) : vif : vif\n vif = vif === undefined ? true : vif\n\n let show = typeof item.show === 'function' ? item.show(this.form.model) : item.show\n show = show === undefined ? true : show\n item.options = {placeholder: customPlaceholder(typeof item.label === 'function' ? item.label(this.form.model) : item.label, item.type), ...item.options}\n\n\n if (!show) {\n style.display = 'none'\n }\n if (vif) {\n item.required = item.required === undefined ? item.required || this.form.required : item.required\n item.showLabel = item.showLabel === undefined ? item.showLabel || this.form.showLabel : item.showLabel\n\n let rules = item.rules || []\n rules = item.required ? [{required: true, trigger: ['blur', 'change'], message: customPlaceholder(typeof item.label === 'function' ? item.label(this.form.model) : item.label, item.type)}].concat(rules as any) : rules\n rules = item.showLabel ? [] : rules\n const valDisabled = item.showLabel ? true : item.tempValueDisabled\n\n return (\n <el-col\n style= {style}\n class={[item.type, item.key]}\n key={item.key}\n {\n ...{\n // xl: 3, // ≥1920px\n // lg: 4, // ≥1200px\n // md: 8, // ≥992px\n // sm: 12, // ≥768px\n // xs: 24, // <768px\n ...this.form.colLayout,\n ...item.colLayout\n }\n }\n >\n <el-form-item\n key={item.key}\n prop={item.key}\n class={[item.labelWrap ? 'label-wrap' : '', item.showLabel || this.form.showLabel ? 'show-label' : '']}\n {...{\n ...item,\n label: typeof item.label === 'function' ? item.label(this.form.model) : item.label,\n rules: rules\n }}\n v-slots={{\n label: () => {\n return (\n <dinert-tooltip\n key={item.key}\n content={typeof item.label === 'function' ? item.label(this.form.model) : item.label}\n disabled={item.labelDisabled}\n onLabelMouseEnter={(e: MouseEvent) => labelMouseEnter(e, item, this)}\n >\n </dinert-tooltip>\n )\n },\n default: () => {\n return (\n <dinert-tooltip\n key={item.key}\n content={String(getTooltipValue(this.form.model[item.key], item))}\n disabled={valDisabled}\n item={item}\n onLabelMouseEnter={(e: MouseEvent) => valueMouseEnter(e, item, this.form.model[item.key], this)}\n v-slots={\n {\n // eslint-disable-next-line max-statements\n default: () => {\n\n const slots: any = {}\n\n let componentResult = <span>{dataTransformRod(getSpanValue(this.form.model[item.key], item))}</span>\n\n if (this.$slots[formItemSlot(item.key)]) {\n\n componentResult = (this.$slots[formItemSlot(item.key)]?.({...item, model: this.form.model}))\n } else if (item.showLabel || (this.form.showLabel && [true, undefined].includes(item.showLabel))) {\n return componentResult\n } else if (['input', 'textarea'].includes(item.type)) {\n renderSlot(['prefix', 'suffix', 'prepend', 'append'], this, slots, item)\n componentResult = (<CustomInput form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomInput>)\n } else if (['input-number'].includes(item.type)) {\n renderSlot(['decrease-icon', 'increase-icon'], this, slots, item)\n componentResult = (<CustomInputNumber form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomInputNumber>)\n } else if (['input-autocomplete'].includes(item.type)) {\n renderSlot(['prefix', 'suffix', 'prepend', 'append', 'loading'], this, slots, item)\n componentResult = (<CustomInputAutocomplete form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomInputAutocomplete>)\n } else if (['select'].includes(item.type)) {\n renderSlot(['header', 'footer', 'prefix', 'empty', 'tag', 'loading', 'label'], this, slots, item)\n componentResult = (<CustomSelect form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomSelect>)\n } else if (['select-v2'].includes(item.type)) {\n renderSlot(['header', 'footer', 'prefix', 'empty', 'tag', 'loading', 'label'], this, slots, item)\n componentResult = (<CustomSelectV2 form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomSelectV2>)\n } else if (['switch'].includes(item.type)) {\n renderSlot(['active-action', 'inactive-action'], this, slots, item)\n componentResult = (<CustomSwitch form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomSwitch>)\n } else if ([\n 'datetime',\n 'date',\n 'dates',\n 'week',\n 'month',\n 'year',\n 'years',\n 'datetimerange',\n 'daterange',\n 'monthrange',\n 'yearrange',\n ].includes(item.type)) {\n renderSlot(['range-separator', 'prev-month', 'next-month', 'prev-year', 'next-year'], this, slots, item)\n componentResult = (<CustomDate form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomDate>)\n } else if (['radio', 'radio-button'].includes(item.type)) {\n componentResult = (<CustomRadio form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomRadio>)\n } else if (['tree-select'].includes(item.type)) {\n renderSlot(['header', 'footer', 'prefix', 'empty', 'tag', 'loading', 'label'], this, slots, item)\n componentResult = (<CustomSelectTree form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomSelectTree>)\n } else if (['rate'].includes(item.type)) {\n componentResult = (<CustomRate form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomRate>)\n } else if (['checkbox', 'checkbox-button'].includes(item.type)) {\n componentResult = (<CustomCheckbox form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomCheckbox>)\n } else if (['cascader'].includes(item.type)) {\n renderSlot(['empty'], this, slots, item)\n componentResult = (<CustomCascader ref={el => this.setFormTypeRefs(item.key, el)}\n form={this.form} formItem={item} v-slots={slots}></CustomCascader>)\n }\n\n return componentResult\n },\n defaultAfter: () => this.$slots[formItemSlot('after_' + item.key)]?.({...item, model: this.form.model}),\n defaultBefore: () => this.$slots[formItemSlot('before_' + item.key)]?.({...item, model: this.form.model}),\n }\n }\n >\n </dinert-tooltip>\n )\n }\n }}\n >\n </el-form-item>\n </el-col>\n )\n }\n\n })\n }\n </el-row>\n {\n this.search\n && <el-row class={['el-form-right', this.isArrow ? 'isArrow' : '']}>\n {this.isArrow\n && <el-button class=\"el-form-right-operation\" text type=\"primary\"\n onClick={this.unfold}\n >\n <el-icon>\n {this.packUp ? <ArrowUp/> : <ArrowDown/>}\n </el-icon>\n {this.packUp ? '收起' : '展开'}\n </el-button>\n }\n {this.$slots.form_search?.()\n || (\n <>\n <el-button type=\"primary\" onClick={() => this.$emit('SearchFn')} {...this.form.searchButton}>{this.form.searchButton?.message || '搜索'}</el-button>\n <el-button type=\"primary\" plain\n onClick={() => this.$emit('ResetFn')}\n {...this.form.resetButton}\n >{this.form.searchButton?.message || '重置'}</el-button>\n </>\n )\n }\n </el-row>\n }\n </el-form>\n )\n }\n})\n"],"names":["_isSlot","s","Object","prototype","toString","call","_isVNode","defineComponent","name","props","form","type","default","search","Boolean","emits","setup","emit","toRefs","packUp","ref","value","undefined","isArrow","formRef","formTypeRef","setFormTypeRefs","el","formClass","getUuid","onBeforeUpdate","formItemMap","computed","result","keys","formItem","forEach","key","push","sort","a","b","Infinity","resizeForm","elFormLeft","document","querySelectorAll","nextTick","firstTop","getBoundingClientRect","top","lastTop","length","useWindowResize","unfold","render","_slot","_createVNode","_resolveComponent","_mergeProps","withModifiers","row","map","item","style","vif","model","show","options","placeholder","customPlaceholder","label","display","required","showLabel","rules","trigger","message","concat","valDisabled","tempValueDisabled","colLayout","labelWrap","labelDisabled","e","labelMouseEnter","String","getTooltipValue","valueMouseEnter","slots","componentResult","dataTransformRod","getSpanValue","$slots","formItemSlot","_b","_a","includes","renderSlot","CustomInput","CustomInputNumber","CustomInputAutocomplete","CustomSelect","CustomSelectV2","CustomSwitch","CustomDate","CustomRadio","CustomSelectTree","CustomRate","CustomCheckbox","CustomCascader","defaultAfter","defaultBefore","ArrowUp","ArrowDown","form_search","_Fragment","onClick","$emit","searchButton","resetButton"],"mappings":";;;;;;;;;;;;;;;;;;AAuB+C,SAAAA,EAAAC,GAAA;AAAA,SAAA,OAAAA,KAAA,cAAAC,OAAAC,UAAAC,SAAAC,KAAAJ,CAAA,MAAAK,qBAAAA,CAAAA,EAAAL,CAAA;AAAA;AAM/C,MAAeM,uBAAgB;AAAA,EAC3BC,MAAM;AAAA,EACNC,OAAO;AAAA,IACHC,MAAM;AAAA,MACFC,MAAMT;AAAAA,MACNU,SAASA,OAAO,CAAA;AAAA,IACnB;AAAA,IACDC,QAAQ;AAAA,MACJF,MAAMG;AAAAA,MACNF,SAAS;AAAA,IACb;AAAA,EACH;AAAA,EACDG,OAAO,CAAC,UAAU,YAAY,SAAS;AAAA,EACvCC,MAAMP,GAAO;AAAA,IAACQ,MAAAA;AAAAA,EAAI,GAAG;AACjB,UAAM;AAAA,MAACP,MAAAA;AAAAA,IAAI,IAAIQ,EAAOT,CAAK,GACrBU,IAASC,EAAIV,EAAKW,MAAMF,WAAWG,MAAS,GAC5CC,IAAUH,EAAI,EAAK,GACnBI,IAAUJ,KACVK,IAAcL,EAAS,CAAA,CAAE,GACzBM,IAAkBA,CAACf,GAAcgB,MAAY;AAC/CF,MAAAA,EAAYJ,MAAMV,CAAI,IAAIgB;AAAAA,OAExBC,IAAYR,EAAI,UAA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