@dinert/element-plus 1.1.29 → 1.1.31

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,15 +1,15 @@
1
- import { defineComponent as R, toRefs as C, ref as y, onBeforeUpdate as F, computed as I, createVNode as t, resolveComponent as i, mergeProps as h, withModifiers as T, Fragment as S, isVNode as x, nextTick as _ } from "vue";
1
+ import { defineComponent as R, toRefs as F, ref as y, onBeforeUpdate as C, computed as I, createVNode as t, resolveComponent as i, mergeProps as d, withModifiers as T, Fragment as S, isVNode as x, nextTick as _ } from "vue";
2
2
  import L from "./input.mjs";
3
3
  import U from "./input-number.mjs";
4
- import q from "./input-autocomplete.mjs";
5
- import $ from "./select.mjs";
4
+ import $ from "./input-autocomplete.mjs";
5
+ import q from "./select.mjs";
6
6
  import A from "./select-v2.mjs";
7
7
  import B from "./switch.mjs";
8
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";
9
+ import E from "./radio.mjs";
10
+ import V from "./tree-select.mjs";
11
+ import j from "./rate.mjs";
12
+ import D from "./checkbox.mjs";
13
13
  import O from "./cascader.mjs";
14
14
  import N from "./slider.mjs";
15
15
  import P from "./time-picker.mjs";
@@ -22,7 +22,7 @@ import "../../../assets/scss/dinert-form.scss.mjs";
22
22
  function ee(u) {
23
23
  return typeof u == "function" || Object.prototype.toString.call(u) === "[object Object]" && !x(u);
24
24
  }
25
- const Ce = /* @__PURE__ */ R({
25
+ const Fe = /* @__PURE__ */ R({
26
26
  name: "dinert-form",
27
27
  props: {
28
28
  form: {
@@ -40,10 +40,10 @@ const Ce = /* @__PURE__ */ R({
40
40
  }) {
41
41
  const {
42
42
  form: a
43
- } = C(u), l = y(a.value.packUp === void 0), p = y(!1), b = y(), f = y({}), d = (n, o) => {
43
+ } = F(u), l = y(a.value.packUp === void 0), p = y(!1), b = y(), f = y({}), h = (n, o) => {
44
44
  f.value[n] = o;
45
45
  }, k = y("form_" + Q());
46
- F(() => {
46
+ C(() => {
47
47
  f.value = {};
48
48
  });
49
49
  const r = I(() => {
@@ -71,7 +71,7 @@ const Ce = /* @__PURE__ */ R({
71
71
  formRef: b,
72
72
  packUp: l,
73
73
  isArrow: p,
74
- setFormTypeRefs: d,
74
+ setFormTypeRefs: h,
75
75
  unfold: () => {
76
76
  l.value ? l.value = !1 : l.value = !0, e("UnFold", l.value);
77
77
  }
@@ -79,7 +79,7 @@ const Ce = /* @__PURE__ */ R({
79
79
  },
80
80
  render() {
81
81
  let u;
82
- return t(i("el-form"), h({
82
+ return t(i("el-form"), d({
83
83
  inline: !0
84
84
  }, this.form, {
85
85
  ref: (e) => {
@@ -90,7 +90,7 @@ const Ce = /* @__PURE__ */ R({
90
90
  }, ["stop", "prevent"]),
91
91
  key: this.form.key
92
92
  }), {
93
- default: () => [t(i("el-row"), h(this.form.row, {
93
+ default: () => [t(i("el-row"), d(this.form.row, {
94
94
  class: "el-form-left"
95
95
  }), ee(u = this.formItemMap.map((e) => {
96
96
  const a = {};
@@ -104,14 +104,14 @@ const Ce = /* @__PURE__ */ R({
104
104
  const b = typeof this.form.showLabel == "function" ? this.form.showLabel(this.form.model) : this.form.showLabel;
105
105
  let f = typeof e.showLabel == "function" ? e.showLabel(this.form.model) : e.showLabel;
106
106
  e.required = e.required === void 0 ? e.required || this.form.required : e.required, f = f === void 0 ? f || b : f, e.required = f ? !1 : e.required;
107
- let d = e.rules || [];
108
- d = e.required ? [{
107
+ let h = e.rules || [];
108
+ h = e.required ? [{
109
109
  required: !0,
110
110
  trigger: ["blur", "change"],
111
111
  message: v(typeof e.label == "function" ? e.label(this.form.model) : e.label, e.type)
112
- }].concat(d) : d, d = f ? [] : d;
112
+ }].concat(h) : h, h = f ? [] : h;
113
113
  const k = f ? !0 : e.tempValueDisabled;
114
- return t(i("el-col"), h({
114
+ return t(i("el-col"), d({
115
115
  style: a,
116
116
  class: [e.type, e.key],
117
117
  key: e.key
@@ -124,14 +124,14 @@ const Ce = /* @__PURE__ */ R({
124
124
  ...this.form.colLayout,
125
125
  ...e.colLayout
126
126
  }), {
127
- default: () => [t(i("el-form-item"), h({
127
+ default: () => [t(i("el-form-item"), d({
128
128
  key: e.key,
129
129
  prop: e.key,
130
130
  class: [e.labelWrap ? "label-wrap" : "", f ? "show-label" : ""]
131
131
  }, {
132
132
  ...e,
133
133
  label: typeof e.label == "function" ? e.label(this.form.model) : e.label,
134
- rules: d
134
+ rules: h
135
135
  }), {
136
136
  label: () => t(i("dinert-tooltip"), {
137
137
  key: e.key,
@@ -162,16 +162,19 @@ const Ce = /* @__PURE__ */ R({
162
162
  ["input", "textarea"].includes(e.type) ? (m(["prefix", "suffix", "prepend", "append"], this, r, e), s = t(L, {
163
163
  form: this.form,
164
164
  formItem: e,
165
+ onEnterSearch: () => {
166
+ this.$emit("SearchFn");
167
+ },
165
168
  ref: (o) => this.setFormTypeRefs(e.key, o)
166
169
  }, r)) : ["input-number"].includes(e.type) ? (m(["decrease-icon", "increase-icon"], this, r, e), s = t(U, {
167
170
  form: this.form,
168
171
  formItem: e,
169
172
  ref: (o) => this.setFormTypeRefs(e.key, o)
170
- }, r)) : ["input-autocomplete"].includes(e.type) ? (m(["prefix", "suffix", "prepend", "append", "loading"], this, r, e), s = t(q, {
173
+ }, r)) : ["input-autocomplete"].includes(e.type) ? (m(["prefix", "suffix", "prepend", "append", "loading"], this, r, e), s = t($, {
171
174
  form: this.form,
172
175
  formItem: e,
173
176
  ref: (o) => this.setFormTypeRefs(e.key, o)
174
- }, r)) : ["select"].includes(e.type) ? (m(["header", "footer", "prefix", "empty", "tag", "loading", "label"], this, r, e), s = t($, {
177
+ }, r)) : ["select"].includes(e.type) ? (m(["header", "footer", "prefix", "empty", "tag", "loading", "label"], this, r, e), s = t(q, {
175
178
  form: this.form,
176
179
  formItem: e,
177
180
  ref: (o) => this.setFormTypeRefs(e.key, o)
@@ -187,19 +190,19 @@ const Ce = /* @__PURE__ */ R({
187
190
  form: this.form,
188
191
  formItem: e,
189
192
  ref: (o) => this.setFormTypeRefs(e.key, o)
190
- }, r)) : ["radio", "radio-button"].includes(e.type) ? s = t(V, {
193
+ }, r)) : ["radio", "radio-button"].includes(e.type) ? s = t(E, {
191
194
  form: this.form,
192
195
  formItem: e,
193
196
  ref: (o) => this.setFormTypeRefs(e.key, o)
194
- }, r) : ["tree-select"].includes(e.type) ? (m(["header", "footer", "prefix", "empty", "tag", "loading", "label"], this, r, e), s = t(j, {
197
+ }, r) : ["tree-select"].includes(e.type) ? (m(["header", "footer", "prefix", "empty", "tag", "loading", "label"], this, r, e), s = t(V, {
195
198
  form: this.form,
196
199
  formItem: e,
197
200
  ref: (o) => this.setFormTypeRefs(e.key, o)
198
- }, r)) : ["rate"].includes(e.type) ? s = t(D, {
201
+ }, r)) : ["rate"].includes(e.type) ? s = t(j, {
199
202
  form: this.form,
200
203
  formItem: e,
201
204
  ref: (o) => this.setFormTypeRefs(e.key, o)
202
- }, r) : ["checkbox", "checkbox-button"].includes(e.type) ? s = t(E, {
205
+ }, r) : ["checkbox", "checkbox-button"].includes(e.type) ? s = t(D, {
203
206
  form: this.form,
204
207
  formItem: e,
205
208
  ref: (o) => this.setFormTypeRefs(e.key, o)
@@ -257,7 +260,7 @@ const Ce = /* @__PURE__ */ R({
257
260
  default: () => [t(i("el-icon"), null, {
258
261
  default: () => [this.packUp ? t(Y, null, null) : t(Z, null, null)]
259
262
  }), this.packUp ? "收起" : "展开"]
260
- }), ((a = (e = this.$slots).form_search) == null ? void 0 : a.call(e)) || t(S, null, [t(i("el-button"), h({
263
+ }), ((a = (e = this.$slots).form_search) == null ? void 0 : a.call(e)) || t(S, null, [t(i("el-button"), d({
261
264
  type: "primary",
262
265
  onClick: () => this.$emit("SearchFn")
263
266
  }, this.form.searchButton), {
@@ -265,14 +268,14 @@ const Ce = /* @__PURE__ */ R({
265
268
  var l;
266
269
  return [((l = this.form.searchButton) == null ? void 0 : l.message) || "搜索"];
267
270
  }
268
- }), t(i("el-button"), h({
271
+ }), t(i("el-button"), d({
269
272
  type: "primary",
270
273
  plain: !0,
271
274
  onClick: () => this.$emit("ResetFn")
272
275
  }, this.form.resetButton), {
273
276
  default: () => {
274
277
  var l;
275
- return [((l = this.form.searchButton) == null ? void 0 : l.message) || "重置"];
278
+ return [((l = this.form.resetButton) == null ? void 0 : l.message) || "重置"];
276
279
  }
277
280
  })])];
278
281
  }
@@ -288,6 +291,6 @@ const Ce = /* @__PURE__ */ R({
288
291
  }
289
292
  });
290
293
  export {
291
- Ce as default
294
+ Fe as default
292
295
  };
293
296
  //# 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, 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'\nimport CustomSlider from './slider'\nimport CustomTimePicker from './time-picker'\nimport CustomTimeSelect from './time-select'\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 const formShowLabel = typeof this.form.showLabel === 'function' ? this.form.showLabel(this.form.model) : this.form.showLabel\n let itemShowLabel = typeof item.showLabel === 'function' ? item.showLabel(this.form.model) : item.showLabel\n item.required = item.required === undefined ? item.required || this.form.required : item.required\n itemShowLabel = itemShowLabel === undefined ? itemShowLabel || formShowLabel : itemShowLabel\n item.required = itemShowLabel ? false : item.required\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 = itemShowLabel ? [] : rules\n const valDisabled = itemShowLabel ? 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' : '', itemShowLabel ? '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 let componentResult = <span>{dataTransformRod(getSpanValue(this.form.model[item.key], item))}</span>\n\n if (this.$slots[formItemSlot(item.key)]) {\n componentResult = (this.$slots[formItemSlot(item.key)]?.({...item, model: this.form.model}))\n } else if (itemShowLabel || (formShowLabel && [true, undefined].includes(itemShowLabel))) {\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 } else if (['slider'].includes(item.type)) {\n componentResult = (<CustomSlider ref={el => this.setFormTypeRefs(item.key, el)}\n form={this.form} formItem={item} v-slots={slots}></CustomSlider>)\n } else if (['time-picker'].includes(item.type)) {\n componentResult = (<CustomTimePicker ref={el => this.setFormTypeRefs(item.key, el)}\n form={this.form} formItem={item} v-slots={slots}></CustomTimePicker>)\n } else if (['time-select'].includes(item.type)) {\n componentResult = (<CustomTimeSelect ref={el => this.setFormTypeRefs(item.key, el)}\n form={this.form} formItem={item} v-slots={slots}></CustomTimeSelect>)\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 {\n this.$slots.form_search_operations\n && <el-row class={'el-form-right-after'}>\n {this.$slots.form_search_operations?.()}\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","formShowLabel","showLabel","itemShowLabel","required","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","CustomSlider","CustomTimePicker","CustomTimeSelect","defaultAfter","defaultBefore","ArrowUp","ArrowDown","form_search","_Fragment","onClick","$emit","searchButton","resetButton","form_search_operations"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA0B+C,SAAAA,GAAAC,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,MA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,GAAAtB,EAAAC,EAAA,WAAA,GAAAC,EAAA;AAAA,YAAA,MAAA;AAAA,YAAA,OAAA;AAAA,YAAA,SAExH+D,MAAM,KAAKC,MAAM,SAAS;AAAA,UAAC,GAChC,KAAKjH,KAAKmH,WAAW,GAAA;AAAA,YAAAjH,SAAAA,MAAA;;AAAA,wBAC3BsF,IAAA,KAAKxF,KAAKkH,iBAAV,gBAAA1B,EAAwBnB,YAAW,IAAI;AAAA;AAAA,UAEhD,CAAA,CAAA,CAAA,CAAA;AAAA;AAAA,OAEA,GAGL,KAAKgB,OAAO+B,0BAAsBrE,EAAAC,EAAA,QAAA,GAAA;AAAA,QAAA,OAC5B;AAAA,MAAqB,GAAA;AAAA,QAAA9C,SAAAA,MAAAA;;AAClC,mBAAAqF,KAAAC,IAAA,KAAKH,QAAO+B,2BAAZ,gBAAA7B,EAAA,KAAAC,EAAsC;AAAA;AAAA,OAClC,CAAA;AAAA,IAAA,CAAA;AAAA,EAIb;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'\nimport CustomSlider from './slider'\nimport CustomTimePicker from './time-picker'\nimport CustomTimeSelect from './time-select'\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 const formShowLabel = typeof this.form.showLabel === 'function' ? this.form.showLabel(this.form.model) : this.form.showLabel\n let itemShowLabel = typeof item.showLabel === 'function' ? item.showLabel(this.form.model) : item.showLabel\n item.required = item.required === undefined ? item.required || this.form.required : item.required\n itemShowLabel = itemShowLabel === undefined ? itemShowLabel || formShowLabel : itemShowLabel\n item.required = itemShowLabel ? false : item.required\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 = itemShowLabel ? [] : rules\n const valDisabled = itemShowLabel ? 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' : '', itemShowLabel ? '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 let componentResult = <span>{dataTransformRod(getSpanValue(this.form.model[item.key], item))}</span>\n\n if (this.$slots[formItemSlot(item.key)]) {\n componentResult = (this.$slots[formItemSlot(item.key)]?.({...item, model: this.form.model}))\n } else if (itemShowLabel || (formShowLabel && [true, undefined].includes(itemShowLabel))) {\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} onEnterSearch={() => {\n this.$emit('SearchFn')}}\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 } else if (['slider'].includes(item.type)) {\n componentResult = (<CustomSlider ref={el => this.setFormTypeRefs(item.key, el)}\n form={this.form} formItem={item} v-slots={slots}></CustomSlider>)\n } else if (['time-picker'].includes(item.type)) {\n componentResult = (<CustomTimePicker ref={el => this.setFormTypeRefs(item.key, el)}\n form={this.form} formItem={item} v-slots={slots}></CustomTimePicker>)\n } else if (['time-select'].includes(item.type)) {\n componentResult = (<CustomTimeSelect ref={el => this.setFormTypeRefs(item.key, el)}\n form={this.form} formItem={item} v-slots={slots}></CustomTimeSelect>)\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.resetButton?.message || '重置'}</el-button>\n </>\n )\n }\n </el-row>\n }\n {\n this.$slots.form_search_operations\n && <el-row class={'el-form-right-after'}>\n {this.$slots.form_search_operations?.()}\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","formShowLabel","showLabel","itemShowLabel","required","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","onEnterSearch","$emit","CustomInputNumber","CustomInputAutocomplete","CustomSelect","CustomSelectV2","CustomSwitch","CustomDate","CustomRadio","CustomSelectTree","CustomRate","CustomCheckbox","CustomCascader","CustomSlider","CustomTimePicker","CustomTimeSelect","defaultAfter","defaultBefore","ArrowUp","ArrowDown","form_search","_Fragment","onClick","searchButton","resetButton","form_search_operations"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA0B+C,SAAAA,GAAAC,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;AAAA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AAAC,OAA2BzC,EAAAkE,GAAA,MAAA,CAAAlE,EAAAC,gBAAAC,EAAA;AAAA,YAAA,MAAA;AAAA,YAAA,SAGmBiE,MAAM,KAAKrB,MAAM,UAAU;AAAA,UAAC,GAAM,KAAK7F,KAAKmH,YAAY,GAAA;AAAA,YAAAjH,SAAAA,MAAA;;AAAA,wBAAGsF,IAAA,KAAKxF,KAAKmH,iBAAV,gBAAA3B,EAAwBnB,YAAW,IAAI;AAAA;AAAA,UAAA,CAAA,GAAAtB,EAAAC,EAAA,WAAA,GAAAC,EAAA;AAAA,YAAA,MAAA;AAAA,YAAA,OAAA;AAAA,YAAA,SAExHiE,MAAM,KAAKrB,MAAM,SAAS;AAAA,UAAC,GAChC,KAAK7F,KAAKoH,WAAW,GAAA;AAAA,YAAAlH,SAAAA,MAAA;;AAAA,wBAC3BsF,IAAA,KAAKxF,KAAKoH,gBAAV,gBAAA5B,EAAuBnB,YAAW,IAAI;AAAA;AAAA,UAE/C,CAAA,CAAA,CAAA,CAAA;AAAA;AAAA,OAEA,GAGL,KAAKgB,OAAOgC,0BAAsBtE,EAAAC,EAAA,QAAA,GAAA;AAAA,QAAA,OAC5B;AAAA,MAAqB,GAAA;AAAA,QAAA9C,SAAAA,MAAAA;;AAClC,mBAAAqF,KAAAC,IAAA,KAAKH,QAAOgC,2BAAZ,gBAAA9B,EAAA,KAAAC,EAAsC;AAAA;AAAA,OAClC,CAAA;AAAA,IAAA,CAAA;AAAA,EAIb;AACJ,CAAC;"}
@@ -1,5 +1,5 @@
1
- import { defineComponent as r, ref as m, computed as i, createVNode as n, resolveComponent as s, mergeProps as p } from "vue";
2
- const l = /* @__PURE__ */ r({
1
+ import { defineComponent as r, ref as i, computed as n, createVNode as m, resolveComponent as s, mergeProps as f, withModifiers as p } from "vue";
2
+ const h = /* @__PURE__ */ r({
3
3
  name: "dinert-input",
4
4
  props: {
5
5
  form: {
@@ -11,35 +11,39 @@ const l = /* @__PURE__ */ r({
11
11
  default: () => ({})
12
12
  }
13
13
  },
14
- setup(t) {
15
- const o = m(null);
14
+ emits: ["EnterSearch"],
15
+ setup(e) {
16
+ const o = i(null);
16
17
  return {
17
- options: i(() => {
18
- const e = t.formItem.options || {};
19
- return e.type = t.formItem.type === "textarea" ? t.formItem.type : e.type, e;
18
+ options: n(() => {
19
+ const t = e.formItem.options || {};
20
+ return t.type = e.formItem.type === "textarea" ? e.formItem.type : t.type, t;
20
21
  }),
21
22
  inputRef: o
22
23
  };
23
24
  },
24
25
  render() {
25
- return n(s("el-input"), p({
26
+ return m(s("el-input"), f({
26
27
  modelValue: this.form.model[this.formItem.key],
27
- "onUpdate:modelValue": (t) => this.form.model[this.formItem.key] = t,
28
+ "onUpdate:modelValue": (e) => this.form.model[this.formItem.key] = e,
28
29
  clearable: !0,
29
30
  "show-word-limit": this.options.showWordLimit === void 0 ? !0 : this.options.showWordLimit,
30
- onBlur: (t) => {
31
- this.form.model[this.formItem.key] = t.target.value.trim();
32
- }
31
+ onBlur: (e) => {
32
+ this.form.model[this.formItem.key] = e.target.value.trim();
33
+ },
34
+ onKeyup: p(() => {
35
+ (this.form.enterSearch === void 0 || this.form.enterSearch) && this.$emit("enterSearch");
36
+ }, ["enter"])
33
37
  }, {
34
38
  ...this.options
35
39
  }, {
36
- ref: (t) => {
37
- this.inputRef = t;
40
+ ref: (e) => {
41
+ this.inputRef = e;
38
42
  }
39
43
  }), this.$slots);
40
44
  }
41
45
  });
42
46
  export {
43
- l as default
47
+ h as default
44
48
  };
45
49
  //# sourceMappingURL=input.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.mjs","sources":["../../../../../packages/components/form/src/input.tsx"],"sourcesContent":["import {computed, defineComponent, ref} from 'vue'\n\nimport type {RewriteFormProps, CustomFormItemProps} from '@packages/components/form/types'\nimport type {PropType} from 'vue'\n\n\nexport default defineComponent({\n name: 'dinert-input',\n props: {\n form: {\n type: Object as PropType<RewriteFormProps>,\n default: () => ({})\n },\n formItem: {\n type: Object as PropType<CustomFormItemProps>,\n default: () => ({})\n },\n },\n setup(props) {\n const inputRef = ref(null)\n\n const options = computed<CustomFormItemProps[keyof CustomFormItemProps]['input']>(() => {\n const options = props.formItem.options || {}\n options.type = props.formItem.type === 'textarea' ? props.formItem.type : options.type\n return options\n })\n\n\n return {\n options,\n inputRef\n }\n },\n render() {\n return (\n <el-input\n v-model={this.form.model[this.formItem.key]}\n clearable\n show-word-limit={this.options.showWordLimit === undefined ? true : this.options.showWordLimit}\n onBlur={e => {this.form.model[this.formItem.key] = e.target.value.trim()}}\n {...{...this.options}}\n v-slots={this.$slots}\n ref={el => {this.inputRef = el}}\n >\n </el-input>\n )\n }\n})\n\n"],"names":["defineComponent","name","props","form","type","Object","default","formItem","setup","inputRef","ref","options","computed","render","_createVNode","_resolveComponent","_mergeProps","model","key","$event","showWordLimit","undefined","e","target","value","trim","el","$slots"],"mappings":";AAMA,MAAeA,sBAAgB;AAAA,EAC3BC,MAAM;AAAA,EACNC,OAAO;AAAA,IACHC,MAAM;AAAA,MACFC,MAAMC;AAAAA,MACNC,SAASA,OAAO,CAAA;AAAA,IACnB;AAAA,IACDC,UAAU;AAAA,MACNH,MAAMC;AAAAA,MACNC,SAASA,OAAO,CAAA;AAAA,IACpB;AAAA,EACH;AAAA,EACDE,MAAMN,GAAO;AACT,UAAMO,IAAWC,EAAI,IAAI;AASzB,WAAO;AAAA,MACHC,SARYC,EAAkE,MAAM;AACpF,cAAMD,IAAUT,EAAMK,SAASI,WAAW,CAAA;AAC1CA,eAAAA,EAAQP,OAAOF,EAAMK,SAASH,SAAS,aAAaF,EAAMK,SAASH,OAAOO,EAAQP,MAC3EO;AAAAA,MACX,CAAC;AAAA,MAKGF,UAAAA;AAAAA;EAEP;AAAA,EACDI,SAAS;AACL,WAAAC,EAAAC,EAAA,UAAA,GAAAC,EAAA;AAAA,MAAA,YAEiB,KAAKb,KAAKc,MAAM,KAAKV,SAASW,GAAG;AAAA,MAAC,uBAAAC,CAAAA,MAAlC,KAAKhB,KAAKc,MAAM,KAAKV,SAASW,GAAG,IAACC;AAAAA,MAAA,WAAA;AAAA,MAAA,mBAE1B,KAAKR,QAAQS,kBAAkBC,SAAY,KAAO,KAAKV,QAAQS;AAAAA,MAAa,QACrFE,CAAAA,MAAK;AAAC,aAAKnB,KAAKc,MAAM,KAAKV,SAASW,GAAG,IAAII,EAAEC,OAAOC,MAAMC,KAAI;AAAA,MAAE;AAAA,IAAC,GAAA;AAAA,MACpE,GAAG,KAAKd;AAAAA,IAAO,GAAA;AAAA,MAAA,KAEfe,CAAAA,MAAM;AAAC,aAAKjB,WAAWiB;AAAAA,MAAE;AAAA,KADrB,GAAA,KAAKC,MAAM;AAAA,EAKhC;AACJ,CAAC;"}
1
+ {"version":3,"file":"input.mjs","sources":["../../../../../packages/components/form/src/input.tsx"],"sourcesContent":["import {computed, defineComponent, ref, withModifiers} from 'vue'\n\nimport type {RewriteFormProps, CustomFormItemProps} from '@packages/components/form/types'\nimport type {PropType} from 'vue'\n\n\nexport default defineComponent({\n name: 'dinert-input',\n props: {\n form: {\n type: Object as PropType<RewriteFormProps>,\n default: () => ({})\n },\n formItem: {\n type: Object as PropType<CustomFormItemProps>,\n default: () => ({})\n },\n },\n emits: ['EnterSearch'],\n setup(props) {\n const inputRef = ref(null)\n\n const options = computed<CustomFormItemProps[keyof CustomFormItemProps]['input']>(() => {\n const options = props.formItem.options || {}\n options.type = props.formItem.type === 'textarea' ? props.formItem.type : options.type\n return options\n })\n\n\n return {\n options,\n inputRef\n }\n },\n render() {\n return (\n <el-input\n v-model={this.form.model[this.formItem.key]}\n clearable\n show-word-limit={this.options.showWordLimit === undefined ? true : this.options.showWordLimit}\n onBlur={e => {this.form.model[this.formItem.key] = e.target.value.trim()}}\n onKeyup={withModifiers(() => {\n if (this.form.enterSearch === undefined || this.form.enterSearch) {\n this.$emit('enterSearch')\n }\n }, ['enter'])}\n {...{...this.options}}\n v-slots={this.$slots}\n ref={el => {this.inputRef = el}}\n >\n </el-input>\n )\n }\n})\n\n"],"names":["defineComponent","name","props","form","type","Object","default","formItem","emits","setup","inputRef","ref","options","computed","render","_createVNode","_resolveComponent","_mergeProps","model","key","$event","showWordLimit","undefined","e","target","value","trim","withModifiers","enterSearch","$emit","el","$slots"],"mappings":";AAMA,MAAeA,sBAAgB;AAAA,EAC3BC,MAAM;AAAA,EACNC,OAAO;AAAA,IACHC,MAAM;AAAA,MACFC,MAAMC;AAAAA,MACNC,SAASA,OAAO,CAAA;AAAA,IACnB;AAAA,IACDC,UAAU;AAAA,MACNH,MAAMC;AAAAA,MACNC,SAASA,OAAO,CAAA;AAAA,IACpB;AAAA,EACH;AAAA,EACDE,OAAO,CAAC,aAAa;AAAA,EACrBC,MAAMP,GAAO;AACT,UAAMQ,IAAWC,EAAI,IAAI;AASzB,WAAO;AAAA,MACHC,SARYC,EAAkE,MAAM;AACpF,cAAMD,IAAUV,EAAMK,SAASK,WAAW,CAAA;AAC1CA,eAAAA,EAAQR,OAAOF,EAAMK,SAASH,SAAS,aAAaF,EAAMK,SAASH,OAAOQ,EAAQR,MAC3EQ;AAAAA,MACX,CAAC;AAAA,MAKGF,UAAAA;AAAAA;EAEP;AAAA,EACDI,SAAS;AACL,WAAAC,EAAAC,EAAA,UAAA,GAAAC,EAAA;AAAA,MAAA,YAEiB,KAAKd,KAAKe,MAAM,KAAKX,SAASY,GAAG;AAAA,MAAC,uBAAAC,CAAAA,MAAlC,KAAKjB,KAAKe,MAAM,KAAKX,SAASY,GAAG,IAACC;AAAAA,MAAA,WAAA;AAAA,MAAA,mBAE1B,KAAKR,QAAQS,kBAAkBC,SAAY,KAAO,KAAKV,QAAQS;AAAAA,MAAa,QACrFE,OAAK;AAAC,aAAKpB,KAAKe,MAAM,KAAKX,SAASY,GAAG,IAAII,EAAEC,OAAOC,MAAMC,KAAI;AAAA,MAAG;AAAA,MAAA,SAChEC,EAAc,MAAM;AACzB,SAAI,KAAKxB,KAAKyB,gBAAgBN,UAAa,KAAKnB,KAAKyB,gBACjD,KAAKC,MAAM,aAAa;AAAA,SAE7B,CAAC,OAAO,CAAC;AAAA,IAAC,GAAA;AAAA,MACR,GAAG,KAAKjB;AAAAA,IAAO,GAAA;AAAA,MAAA,KAEfkB,CAAAA,MAAM;AAAC,aAAKpB,WAAWoB;AAAAA,MAAE;AAAA,KADrB,GAAA,KAAKC,MAAM;AAAA,EAKhC;AACJ,CAAC;"}
@@ -5,26 +5,36 @@ const S = (t, n) => {
5
5
  }, p = async (t, n) => {
6
6
  for (let e = 0; e < n.length; e++)
7
7
  n[e].checked === void 0 ? (n[e].checked = !0, await (t == null ? void 0 : t.setChecked(n[e].prop, !0))) : n[e].checked !== void 0 && await (t == null ? void 0 : t.setChecked(n[e].prop, n[e].checked)), n[e].children && n[e].children.length && p(t, n[e].children);
8
- }, k = (t, n, e) => t.level === n.level && t.parent === n.parent ? e === "prev" || e === "next" : !1, C = async (t, n, e) => {
8
+ }, C = (t, n, e) => t.level === n.level && t.parent === n.parent ? e === "prev" || e === "next" : !1, v = async (t, n, e) => {
9
9
  p(e, [t.data]);
10
- }, v = (t, n, e, r, l) => {
11
- if (!l.height) {
10
+ }, x = (t, n, e, r, l) => {
11
+ if (!l.height && l.autoHeight) {
12
12
  e && e.parentElement && e.parentElement.parentElement && (e.parentElement.parentElement.style.height = "100%");
13
- const h = e && parseInt(window.getComputedStyle(e.parentElement, null).paddingTop), c = e && parseInt(window.getComputedStyle(e.parentElement, null).paddingBottom), f = n && n.offsetHeight || 0, g = n && parseInt(window.getComputedStyle(n, null).marginTop) || 0, m = n && parseInt(window.getComputedStyle(n, null).marginBottom) || 0, i = t && t.headerFooter, u = i && i.offsetHeight || 0, a = r && r.offsetHeight || 0, w = r && parseInt(window.getComputedStyle(r, null).marginTop) || 0, E = e && e.parentElement && e.parentElement.offsetHeight - f - u - a - w - g - h - c, s = e && e.querySelector(".el-table__header-wrapper table").offsetHeight || 0, o = e && e.querySelector(".el-table__body-wrapper table").offsetHeight || 0, d = e && (e.querySelector(".el-table__body-wrapper.is-scrolling-left") || e.querySelector(".el-table__body-wrapper.is-scrolling-right") || e.querySelector(".el-table__body-wrapper.is-scrolling-middle")) ? 17 : 0;
14
- e && (s + o + m > E || l.data && l.data.length === 0 ? (e.style.height = "0px", e.style.flex = "1", e.parentElement && e.parentElement.parentElement && (e.parentElement.parentElement.style.height = "100%")) : (e.style.height = o + s + 1 + d + "px", e.style.flex = "unset", e.parentElement && e.parentElement.parentElement && (e.parentElement.parentElement.style.height = "auto")));
13
+ const h = e && parseInt(window.getComputedStyle(e.parentElement, null).paddingTop), c = e && parseInt(window.getComputedStyle(e.parentElement, null).paddingBottom), f = n && n.offsetHeight || 0, g = n && parseInt(window.getComputedStyle(n, null).marginTop) || 0, u = n && parseInt(window.getComputedStyle(n, null).marginBottom) || 0, i = t && t.headerFooter, m = i && i.offsetHeight || 0, a = r && r.offsetHeight || 0, w = r && parseInt(window.getComputedStyle(r, null).marginTop) || 0, d = e && e.parentElement && e.parentElement.offsetHeight - f - m - a - w - g - h - c, s = e && e.querySelector(".el-table__header-wrapper table").offsetHeight || 0, o = e && e.querySelector(".el-table__body-wrapper table").offsetHeight || 0, E = e && (e.querySelector(".el-table__body-wrapper.is-scrolling-left") || e.querySelector(".el-table__body-wrapper.is-scrolling-right") || e.querySelector(".el-table__body-wrapper.is-scrolling-middle")) ? 17 : 0;
14
+ e && (s + o + u > d || l.data && l.data.length === 0 ? (e.style.height = "0px", e.style.flex = "1", e.parentElement && e.parentElement.parentElement && (e.parentElement.parentElement.style.height = "100%")) : (e.style.height = o + s + 1 + E + "px", e.style.flex = "unset", e.parentElement && e.parentElement.parentElement && (e.parentElement.parentElement.style.height = "auto")));
15
15
  }
16
- }, x = {
16
+ }, q = {
17
17
  children: "children",
18
18
  label: "label",
19
19
  class: (t) => (typeof t.show == "function" ? t.show(t) === !1 : t.show === !1) || t.setting || ["index", "selection"].includes(t.type) || ["selection"].includes(t.prop) ? "hide" : ""
20
+ }, H = (t) => {
21
+ for (let n = 0; n < t.length; n++) {
22
+ const e = t[n];
23
+ if (e.checked === !1)
24
+ return !1;
25
+ if (e.children && e.children.length)
26
+ return H(e.children);
27
+ }
28
+ return !0;
20
29
  };
21
30
  export {
22
31
  S as allShow,
23
- k as allowDrop,
32
+ C as allowDrop,
24
33
  _ as checkTree,
25
- C as nodeDragEnd,
26
- v as resizeTaleHeight,
34
+ H as isAllChecked,
35
+ v as nodeDragEnd,
36
+ x as resizeTaleHeight,
27
37
  p as treeNode,
28
- x as treeProps
38
+ q as treeProps
29
39
  };
30
40
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/table/hooks/index.ts"],"sourcesContent":["\n\nimport type {RewriteTableColumnCtx, SelectTable, RewriteTableProps} from '../types/index'\nimport type Node from 'element-plus/es/components/tree/src/model/node'\nimport type {\n AllowDropType,\n} from 'element-plus/es/components/tree/src/tree.type'\n\nexport const allShow = (selectTable: any, tableColumns: RewriteTableColumnCtx[]) => {\n selectTable?.setCheckedNodes(tableColumns)\n}\n\nexport const checkTree = (data: Node, checked: boolean, childChecked: boolean) => {\n data.checked = childChecked || checked\n}\n\nexport const treeNode = async (selectTable: any, treeData2: any) => {\n\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (let i = 0; i < treeData2.length; i++) {\n if (treeData2[i].checked === undefined) {\n treeData2[i].checked = true\n await selectTable?.setChecked(treeData2[i].prop, true)\n } else if (treeData2[i].checked !== undefined) {\n await selectTable?.setChecked(treeData2[i].prop, treeData2[i].checked)\n }\n if (treeData2[i].children && treeData2[i].children.length) {\n treeNode(selectTable, treeData2[i].children)\n }\n }\n}\n\n\nexport const allowDrop = (draggingNode: Node, dropNode: Node, type: AllowDropType) => {\n if (draggingNode.level === dropNode.level) {\n if (draggingNode.parent === dropNode.parent) {\n return type === 'prev' || type === 'next'\n } else {\n return false\n }\n } else {\n // 不同级进行处理\n return false\n }\n}\n\nexport const nodeDragEnd = async (currentNode: Node, targetNode: Node, selectTable: SelectTable) => {\n treeNode(selectTable, [currentNode.data])\n}\n\nexport const resizeTaleHeight = (table: any, header: any, body: any, footer: any, tableProps: RewriteTableProps) => {\n if (!tableProps.height) {\n\n if (body && body.parentElement && body.parentElement.parentElement) {\n body.parentElement.parentElement.style.height = '100%'\n }\n\n const bodyPPT = (body && parseInt(window.getComputedStyle(body.parentElement, null).paddingTop))\n const bodyPPB = (body && parseInt(window.getComputedStyle(body.parentElement, null).paddingBottom))\n\n const headerH = (header && header.offsetHeight) || 0\n const headerMT = (header && parseInt(window.getComputedStyle(header, null).marginTop)) || 0\n const headerBT = (header && parseInt(window.getComputedStyle(header, null).marginBottom)) || 0\n\n const headerFooter = table && table.headerFooter\n const headerFooterH = (headerFooter && headerFooter.offsetHeight) || 0\n\n const footerH = (footer && footer.offsetHeight) || 0\n const footerMT = (footer && parseInt(window.getComputedStyle(footer, null).marginTop)) || 0\n const bodyCurrentH = body && body.parentElement && (body.parentElement.offsetHeight - headerH - headerFooterH - footerH - footerMT - headerMT - bodyPPT - bodyPPB)\n\n const tableHeaderH = (body && body.querySelector('.el-table__header-wrapper table').offsetHeight) || 0\n const tableBodyH = (body && body.querySelector('.el-table__body-wrapper table').offsetHeight) || 0\n\n\n const isXOverflow = (body && (body.querySelector('.el-table__body-wrapper.is-scrolling-left') || body.querySelector('.el-table__body-wrapper.is-scrolling-right') || body.querySelector('.el-table__body-wrapper.is-scrolling-middle')))\n const xOverflowH = isXOverflow ? 17 : 0\n\n // 当表格头和表格内容大于\n if (body) {\n if ((tableHeaderH + tableBodyH + headerBT) > bodyCurrentH || (tableProps.data && tableProps.data.length === 0)) {\n body.style.height = '0px'\n body.style.flex = '1'\n\n if (body.parentElement && body.parentElement.parentElement) {\n body.parentElement.parentElement.style.height = '100%'\n }\n } else {\n body.style.height = (tableBodyH + tableHeaderH + 1 + xOverflowH) + 'px'\n body.style.flex = 'unset'\n\n if (body.parentElement && body.parentElement.parentElement) {\n body.parentElement.parentElement.style.height = 'auto'\n }\n\n }\n }\n }\n}\n\nexport const treeProps = {\n children: 'children',\n label: 'label',\n class: (data: any) => {\n const hide = (typeof data.show === 'function' ? data.show(data) === false : data.show === false) || data.setting || ['index', 'selection'].includes(data.type) || ['selection'].includes(data.prop) ? 'hide' : ''\n return hide\n }\n}\n"],"names":["allShow","selectTable","tableColumns","checkTree","data","checked","childChecked","treeNode","treeData2","i","allowDrop","draggingNode","dropNode","type","nodeDragEnd","currentNode","targetNode","resizeTaleHeight","table","header","body","footer","tableProps","bodyPPT","bodyPPB","headerH","headerMT","headerBT","headerFooter","headerFooterH","footerH","footerMT","bodyCurrentH","tableHeaderH","tableBodyH","xOverflowH","treeProps"],"mappings":"AAQa,MAAAA,IAAU,CAACC,GAAkBC,MAA0C;AAChF,EAAAD,KAAA,QAAAA,EAAa,gBAAgBC;AACjC,GAEaC,IAAY,CAACC,GAAYC,GAAkBC,MAA0B;AAC9E,EAAAF,EAAK,UAAUE,KAAgBD;AACnC,GAEaE,IAAW,OAAON,GAAkBO,MAAmB;AAGhE,WAASC,IAAI,GAAGA,IAAID,EAAU,QAAQC;AAClC,IAAID,EAAUC,CAAC,EAAE,YAAY,UACfD,EAAAC,CAAC,EAAE,UAAU,IACvB,OAAMR,KAAA,gBAAAA,EAAa,WAAWO,EAAUC,CAAC,EAAE,MAAM,QAC1CD,EAAUC,CAAC,EAAE,YAAY,UAC1B,OAAAR,KAAA,gBAAAA,EAAa,WAAWO,EAAUC,CAAC,EAAE,MAAMD,EAAUC,CAAC,EAAE,WAE9DD,EAAUC,CAAC,EAAE,YAAYD,EAAUC,CAAC,EAAE,SAAS,UAC/CF,EAASN,GAAaO,EAAUC,CAAC,EAAE,QAAQ;AAGvD,GAGaC,IAAY,CAACC,GAAoBC,GAAgBC,MACtDF,EAAa,UAAUC,EAAS,SAC5BD,EAAa,WAAWC,EAAS,SAC1BC,MAAS,UAAUA,MAAS,SAMhC,IAIFC,IAAc,OAAOC,GAAmBC,GAAkBf,MAA6B;AAChG,EAAAM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,cAAc,kBACpCA,EAAA,cAAc,cAAc,MAAM,SAAS,YAGpDA,EAAK,MAAM,SAAUc,IAAaD,IAAe,IAAIE,IAAc,MACnEf,EAAK,MAAM,OAAO,SAEdA,EAAK,iBAAiBA,EAAK,cAAc,kBACpCA,EAAA,cAAc,cAAc,MAAM,SAAS;AAAA,EAKhE;AACJ,GAEagB,IAAY;AAAA,EACrB,UAAU;AAAA,EACV,OAAO;AAAA,EACP,OAAO,CAAChC,OACU,OAAOA,EAAK,QAAS,aAAaA,EAAK,KAAKA,CAAI,MAAM,KAAQA,EAAK,SAAS,OAAUA,EAAK,WAAW,CAAC,SAAS,WAAW,EAAE,SAASA,EAAK,IAAI,KAAK,CAAC,WAAW,EAAE,SAASA,EAAK,IAAI,IAAI,SAAS;AAGvN;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/table/hooks/index.ts"],"sourcesContent":["\n\nimport type {RewriteTableColumnCtx, SelectTable, RewriteTableProps} from '../types/index'\nimport type Node from 'element-plus/es/components/tree/src/model/node'\nimport type {\n AllowDropType,\n} from 'element-plus/es/components/tree/src/tree.type'\n\nexport const allShow = (selectTable: any, tableColumns: RewriteTableColumnCtx[]) => {\n selectTable?.setCheckedNodes(tableColumns)\n}\n\nexport const checkTree = (data: Node, checked: boolean, childChecked: boolean) => {\n data.checked = childChecked || checked\n}\n\nexport const treeNode = async (selectTable: any, treeData2: any) => {\n\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (let i = 0; i < treeData2.length; i++) {\n if (treeData2[i].checked === undefined) {\n treeData2[i].checked = true\n await selectTable?.setChecked(treeData2[i].prop, true)\n } else if (treeData2[i].checked !== undefined) {\n await selectTable?.setChecked(treeData2[i].prop, treeData2[i].checked)\n }\n if (treeData2[i].children && treeData2[i].children.length) {\n treeNode(selectTable, treeData2[i].children)\n }\n }\n}\n\n\nexport const allowDrop = (draggingNode: Node, dropNode: Node, type: AllowDropType) => {\n if (draggingNode.level === dropNode.level) {\n if (draggingNode.parent === dropNode.parent) {\n return type === 'prev' || type === 'next'\n } else {\n return false\n }\n } else {\n // 不同级进行处理\n return false\n }\n}\n\nexport const nodeDragEnd = async (currentNode: Node, targetNode: Node, selectTable: SelectTable) => {\n treeNode(selectTable, [currentNode.data])\n}\n\nexport const resizeTaleHeight = (table: any, header: any, body: any, footer: any, tableProps: RewriteTableProps) => {\n\n if (!tableProps.height && tableProps.autoHeight) {\n if (body && body.parentElement && body.parentElement.parentElement) {\n body.parentElement.parentElement.style.height = '100%'\n }\n\n const bodyPPT = (body && parseInt(window.getComputedStyle(body.parentElement, null).paddingTop))\n const bodyPPB = (body && parseInt(window.getComputedStyle(body.parentElement, null).paddingBottom))\n\n const headerH = (header && header.offsetHeight) || 0\n const headerMT = (header && parseInt(window.getComputedStyle(header, null).marginTop)) || 0\n const headerBT = (header && parseInt(window.getComputedStyle(header, null).marginBottom)) || 0\n\n const headerFooter = table && table.headerFooter\n const headerFooterH = (headerFooter && headerFooter.offsetHeight) || 0\n\n const footerH = (footer && footer.offsetHeight) || 0\n const footerMT = (footer && parseInt(window.getComputedStyle(footer, null).marginTop)) || 0\n const bodyCurrentH = body && body.parentElement && (body.parentElement.offsetHeight - headerH - headerFooterH - footerH - footerMT - headerMT - bodyPPT - bodyPPB)\n\n const tableHeaderH = (body && body.querySelector('.el-table__header-wrapper table').offsetHeight) || 0\n const tableBodyH = (body && body.querySelector('.el-table__body-wrapper table').offsetHeight) || 0\n\n\n const isXOverflow = (body && (body.querySelector('.el-table__body-wrapper.is-scrolling-left') || body.querySelector('.el-table__body-wrapper.is-scrolling-right') || body.querySelector('.el-table__body-wrapper.is-scrolling-middle')))\n const xOverflowH = isXOverflow ? 17 : 0\n\n // 当表格头和表格内容大于\n if (body) {\n if ((tableHeaderH + tableBodyH + headerBT) > bodyCurrentH || (tableProps.data && tableProps.data.length === 0)) {\n body.style.height = '0px'\n body.style.flex = '1'\n\n if (body.parentElement && body.parentElement.parentElement) {\n body.parentElement.parentElement.style.height = '100%'\n }\n } else {\n body.style.height = (tableBodyH + tableHeaderH + 1 + xOverflowH) + 'px'\n body.style.flex = 'unset'\n\n if (body.parentElement && body.parentElement.parentElement) {\n body.parentElement.parentElement.style.height = 'auto'\n }\n\n }\n }\n }\n}\n\nexport const treeProps = {\n children: 'children',\n label: 'label',\n class: (data: any) => {\n const hide = (typeof data.show === 'function' ? data.show(data) === false : data.show === false) || data.setting || ['index', 'selection'].includes(data.type) || ['selection'].includes(data.prop) ? 'hide' : ''\n return hide\n }\n}\n\nexport const isAllChecked = tableColumns => {\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (let i = 0; i < tableColumns.length; i++) {\n const item = tableColumns[i]\n if (item.checked === false) {\n return false\n }\n if (item.children && item.children.length) {\n return isAllChecked(item.children)\n }\n }\n return true\n}\n"],"names":["allShow","selectTable","tableColumns","checkTree","data","checked","childChecked","treeNode","treeData2","i","allowDrop","draggingNode","dropNode","type","nodeDragEnd","currentNode","targetNode","resizeTaleHeight","table","header","body","footer","tableProps","bodyPPT","bodyPPB","headerH","headerMT","headerBT","headerFooter","headerFooterH","footerH","footerMT","bodyCurrentH","tableHeaderH","tableBodyH","xOverflowH","treeProps","isAllChecked","item"],"mappings":"AAQa,MAAAA,IAAU,CAACC,GAAkBC,MAA0C;AAChF,EAAAD,KAAA,QAAAA,EAAa,gBAAgBC;AACjC,GAEaC,IAAY,CAACC,GAAYC,GAAkBC,MAA0B;AAC9E,EAAAF,EAAK,UAAUE,KAAgBD;AACnC,GAEaE,IAAW,OAAON,GAAkBO,MAAmB;AAGhE,WAASC,IAAI,GAAGA,IAAID,EAAU,QAAQC;AAClC,IAAID,EAAUC,CAAC,EAAE,YAAY,UACfD,EAAAC,CAAC,EAAE,UAAU,IACvB,OAAMR,KAAA,gBAAAA,EAAa,WAAWO,EAAUC,CAAC,EAAE,MAAM,QAC1CD,EAAUC,CAAC,EAAE,YAAY,UAC1B,OAAAR,KAAA,gBAAAA,EAAa,WAAWO,EAAUC,CAAC,E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