@web-utils/form-ui 1.0.0-beta95 → 1.0.0-beta96

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,6 +1,6 @@
1
1
  import { t as e } from "./B1MSrc6f.mjs";
2
2
  import { t } from "./DTeHffqJ.mjs";
3
- import { t as n } from "./sCsjgWvR.mjs";
3
+ import { t as n } from "./sl7eKGeX.mjs";
4
4
  import { t as r } from "./tzjUpVIj.mjs";
5
5
  import { n as i } from "./_7MDfW_y.mjs";
6
6
  import { t as a } from "./D8C17D2k.mjs";
@@ -2,7 +2,7 @@ import { i as e } from "./ClVh1Lek.mjs";
2
2
  import { commonAutoBindProps as t, commonManualBindProps as n } from "../props/common.mjs";
3
3
  import { n as r, o as i } from "./_7MDfW_y.mjs";
4
4
  import { n as a } from "./C23Qaggp.mjs";
5
- import { n as o, t as s } from "./q_m3gw_j2.mjs";
5
+ import { n as o, t as s } from "./DIQto0dy2.mjs";
6
6
  import { computed as c, createVNode as l, getCurrentInstance as u, mergeProps as d, useModel as f, useTemplateRef as p } from "vue";
7
7
  //#region src/components/table/form-table-plus.ts
8
8
  var m = {
@@ -2,7 +2,7 @@ import { s as e } from "./ClVh1Lek.mjs";
2
2
  import { t } from "./B1MSrc6f.mjs";
3
3
  import { cellClickHandlerContextKey as n } from "../constants/index.mjs";
4
4
  import { t as r } from "./DTeHffqJ.mjs";
5
- import { t as i } from "./sCsjgWvR.mjs";
5
+ import { t as i } from "./sl7eKGeX.mjs";
6
6
  import { t as a } from "./tzjUpVIj.mjs";
7
7
  import { n as o } from "./_7MDfW_y.mjs";
8
8
  import { t as s } from "./D8C17D2k.mjs";
@@ -1,6 +1,6 @@
1
1
  import { commonAutoBindProps as e, commonManualBindProps as t } from "../props/common.mjs";
2
2
  import { n, o as r } from "./_7MDfW_y.mjs";
3
- import { n as i, t as a } from "./CIVnqVAQ2.mjs";
3
+ import { n as i, t as a } from "./7mLGHDva2.mjs";
4
4
  import { computed as o, createVNode as s, getCurrentInstance as c, mergeProps as l, ref as u, useModel as d } from "vue";
5
5
  //#region src/components/table/form-table.ts
6
6
  var f = {
@@ -2425,7 +2425,7 @@ var un = /* @__PURE__ */ t(cn, [["render", ln]]), dn = {
2425
2425
  default: () => []
2426
2426
  }
2427
2427
  },
2428
- emits: /* @__PURE__ */ "tree-load.selection-clear.header-dragend.expand-change.current-row-change.refresh-change.selection-change.select.select-all.filter-change.sort-change.row-dblclick.row-click.cell-mouse-enter.cell-mouse-leave.cell-click.header-click.row-contextmenu.header-contextmenu.cell-dblclick.row-save.row-update.update:modelValue.change.error.row-del.update:search.update:page.search-change.search-reset".split("."),
2428
+ emits: /* @__PURE__ */ "tree-load.selection-clear.header-dragend.expand-change.current-row-change.refresh-change.selection-change.select.select-all.filter-change.sort-change.row-dblclick.row-click.cell-mouse-enter.cell-mouse-leave.cell-click.header-click.row-contextmenu.header-contextmenu.cell-dblclick.row-save.row-update.update:modelValue.change.error.row-del.update:search.update:page.search-change.search-reset.on-load".split("."),
2429
2429
  data() {
2430
2430
  return {
2431
2431
  reload: Math.random(),
@@ -513,29 +513,31 @@ var z = {
513
513
  } else if (e.rowKey && (n = t[e.rowKey], n)) return n;
514
514
  return n = "__rowKey", t[n] || (t[n] = le(!1)), t[n];
515
515
  }, $ = _(() => {
516
- let t = [];
517
- if (d.default) {
518
- var n;
519
- let e = r((n = d.default) == null ? void 0 : n.call(d));
520
- for (let n = 0; n < e.length; n++) {
521
- let { props: r, children: i } = e[n];
516
+ var t;
517
+ let n = [];
518
+ if (((t = e.columns) == null ? void 0 : t.length) > 0) for (let t = 0; t < e.columns.length; t++) {
519
+ let { prop: r, sortable: i, fixed: a, ...o } = e.columns[t], s = {
520
+ ...o,
521
+ prop: r,
522
+ allowSort: i !== !1
523
+ };
524
+ s.hide = x.value.hideProps[r], s.filterable = x.value.filterableProps[r], s.sortable = x.value.sortableProps[r] === !0, s.fixed = a || x.value.fixedProps[r], n.push(s);
525
+ }
526
+ else if (d.default) {
527
+ var i;
528
+ let e = r((i = d.default) == null ? void 0 : i.call(d));
529
+ for (let t = 0; t < e.length; t++) {
530
+ let { props: r, children: i } = e[t];
522
531
  if (!r) continue;
523
532
  let { sortable: a, prop: o, fixed: s, ...c } = r, l = {
524
533
  ...c,
525
534
  prop: o,
526
535
  allowSort: a !== !1
527
536
  };
528
- i && (l.headerSlot = i.header, l.defaultSlot = i.default, l.expandSlot = i.expand, l.iconSlot = i["filter-icon"]), l.hide = x.value.hideProps[o], l.filterable = x.value.filterableProps[o], l.sortable = x.value.sortableProps[o] === !0, l.fixed = s || x.value.fixedProps[o], t.push(l);
537
+ i && (l.headerSlot = i.header, l.defaultSlot = i.default, l.expandSlot = i.expand, l.iconSlot = i["filter-icon"]), l.hide = x.value.hideProps[o], l.filterable = x.value.filterableProps[o], l.sortable = x.value.sortableProps[o] === !0, l.fixed = s || x.value.fixedProps[o], n.push(l);
529
538
  }
530
- } else if (e.columns) for (let n = 0; n < e.columns.length; n++) {
531
- let { prop: r, sortable: i, fixed: a, ...o } = e.columns[n], s = {
532
- ...o,
533
- prop: r,
534
- allowSort: i !== !1
535
- };
536
- s.hide = x.value.hideProps[r], s.filterable = x.value.filterableProps[r], s.sortable = x.value.sortableProps[r] === !0, s.fixed = a || x.value.fixedProps[r], t.push(s);
537
539
  }
538
- return t;
540
+ return n;
539
541
  });
540
542
  oe(() => {
541
543
  he();
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "../chunks/B1MSrc6f.mjs";
2
2
  import { t } from "../chunks/D9IZqJJJ.mjs";
3
3
  import { t as n } from "../chunks/DTeHffqJ.mjs";
4
- import { t as r } from "../chunks/sCsjgWvR.mjs";
4
+ import { t as r } from "../chunks/sl7eKGeX.mjs";
5
5
  import { ElMessage as i } from "element-plus/es";
6
6
  import "element-plus/es/components/base/style/css";
7
7
  import { createBlock as a, createTextVNode as o, createVNode as s, openBlock as c, renderSlot as l, withCtx as u } from "vue";
@@ -3,7 +3,7 @@ import { t } from "../chunks/B1MSrc6f.mjs";
3
3
  import { t as n } from "../chunks/D9IZqJJJ.mjs";
4
4
  import { avueConfigContextKey as r } from "../constants/index.mjs";
5
5
  import { t as i } from "../chunks/DTeHffqJ.mjs";
6
- import { t as a } from "../chunks/DFJMTSc7.mjs";
6
+ import { t as a } from "../chunks/bPnQPTY0.mjs";
7
7
  import { a as o } from "../chunks/CXHJqvbJ.mjs";
8
8
  import { ElDrawer as s } from "element-plus/es";
9
9
  import "element-plus/es/components/base/style/css";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/bBwzYT0T2.mjs";
1
+ import { t as e } from "../chunks/Y3LG5Oyd2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/B0i3ywbn2.mjs";
1
+ import { t as e } from "../chunks/BJsEGC-v2.mjs";
2
2
  export { e as default };
@@ -25,7 +25,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
25
25
  prefixIcon: (ObjectConstructor | StringConstructor)[];
26
26
  suffixIcon: (ObjectConstructor | StringConstructor)[];
27
27
  rows: {
28
- type: NumberConstructor;
28
+ type: (StringConstructor | NumberConstructor)[];
29
29
  default: number;
30
30
  };
31
31
  autosize: (ObjectConstructor | BooleanConstructor)[];
@@ -185,7 +185,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
185
185
  prefixIcon: (ObjectConstructor | StringConstructor)[];
186
186
  suffixIcon: (ObjectConstructor | StringConstructor)[];
187
187
  rows: {
188
- type: NumberConstructor;
188
+ type: (StringConstructor | NumberConstructor)[];
189
189
  default: number;
190
190
  };
191
191
  autosize: (ObjectConstructor | BooleanConstructor)[];
@@ -340,7 +340,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
340
340
  inlineMessage: boolean;
341
341
  wrapFormItem: boolean;
342
342
  validateEvent: boolean;
343
- rows: number;
343
+ rows: string | number;
344
344
  readonlyGrey: boolean;
345
345
  maxlength: string | number;
346
346
  showWordLimit: boolean;
@@ -281,7 +281,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
281
281
  handleLoadDic(this: any): void;
282
282
  handleLoadCascaderDic(this: any): void;
283
283
  };
284
- }, import('vue').ComponentOptionsMixin, ("update:modelValue" | "error" | "change" | "select" | "row-click" | "search-change" | "tree-load" | "selection-clear" | "header-dragend" | "expand-change" | "current-row-change" | "refresh-change" | "selection-change" | "select-all" | "filter-change" | "sort-change" | "row-dblclick" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-click" | "header-click" | "row-contextmenu" | "header-contextmenu" | "cell-dblclick" | "row-save" | "row-update" | "row-del" | "update:search" | "update:page" | "search-reset")[], "update:modelValue" | "error" | "change" | "select" | "row-click" | "search-change" | "tree-load" | "selection-clear" | "header-dragend" | "expand-change" | "current-row-change" | "refresh-change" | "selection-change" | "select-all" | "filter-change" | "sort-change" | "row-dblclick" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-click" | "header-click" | "row-contextmenu" | "header-contextmenu" | "cell-dblclick" | "row-save" | "row-update" | "row-del" | "update:search" | "update:page" | "search-reset", import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
284
+ }, import('vue').ComponentOptionsMixin, ("update:modelValue" | "error" | "change" | "select" | "row-click" | "search-change" | "tree-load" | "selection-clear" | "header-dragend" | "expand-change" | "current-row-change" | "refresh-change" | "selection-change" | "select-all" | "filter-change" | "sort-change" | "row-dblclick" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-click" | "header-click" | "row-contextmenu" | "header-contextmenu" | "cell-dblclick" | "row-save" | "row-update" | "row-del" | "update:search" | "update:page" | "search-reset" | "on-load")[], "update:modelValue" | "error" | "change" | "select" | "row-click" | "search-change" | "tree-load" | "selection-clear" | "header-dragend" | "expand-change" | "current-row-change" | "refresh-change" | "selection-change" | "select-all" | "filter-change" | "sort-change" | "row-dblclick" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-click" | "header-click" | "row-contextmenu" | "header-contextmenu" | "cell-dblclick" | "row-save" | "row-update" | "row-del" | "update:search" | "update:page" | "search-reset" | "on-load", import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
285
285
  spanMethod: FunctionConstructor;
286
286
  summaryMethod: FunctionConstructor;
287
287
  rowStyle: FunctionConstructor;
@@ -356,6 +356,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
356
356
  "onUpdate:search"?: ((...args: any[]) => any) | undefined;
357
357
  "onUpdate:page"?: ((...args: any[]) => any) | undefined;
358
358
  "onSearch-reset"?: ((...args: any[]) => any) | undefined;
359
+ "onOn-load"?: ((...args: any[]) => any) | undefined;
359
360
  }>, {
360
361
  disabled: boolean;
361
362
  modelValue: Record<string, any>;
@@ -442,6 +443,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
442
443
  "onUpdate:search"?: ((...args: any[]) => any) | undefined;
443
444
  "onUpdate:page"?: ((...args: any[]) => any) | undefined;
444
445
  "onSearch-reset"?: ((...args: any[]) => any) | undefined;
446
+ "onOn-load"?: ((...args: any[]) => any) | undefined;
445
447
  }>, {}, {
446
448
  reload: number;
447
449
  cellForm: {
@@ -681,7 +683,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
681
683
  handleLoadDic(this: any): void;
682
684
  handleLoadCascaderDic(this: any): void;
683
685
  };
684
- }, import('vue').ComponentOptionsMixin, ("update:modelValue" | "error" | "change" | "select" | "row-click" | "search-change" | "tree-load" | "selection-clear" | "header-dragend" | "expand-change" | "current-row-change" | "refresh-change" | "selection-change" | "select-all" | "filter-change" | "sort-change" | "row-dblclick" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-click" | "header-click" | "row-contextmenu" | "header-contextmenu" | "cell-dblclick" | "row-save" | "row-update" | "row-del" | "update:search" | "update:page" | "search-reset")[], {}, {}, false, {}, {}, {}, {
686
+ }, import('vue').ComponentOptionsMixin, ("update:modelValue" | "error" | "change" | "select" | "row-click" | "search-change" | "tree-load" | "selection-clear" | "header-dragend" | "expand-change" | "current-row-change" | "refresh-change" | "selection-change" | "select-all" | "filter-change" | "sort-change" | "row-dblclick" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-click" | "header-click" | "row-contextmenu" | "header-contextmenu" | "cell-dblclick" | "row-save" | "row-update" | "row-del" | "update:search" | "update:page" | "search-reset" | "on-load")[], {}, {}, false, {}, {}, {}, {
685
687
  permission: import('vue').Directive;
686
688
  }, string, {}, any, import('vue').ComponentProvideOptions, {
687
689
  P: {};
@@ -803,6 +805,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
803
805
  "onUpdate:search"?: ((...args: any[]) => any) | undefined;
804
806
  "onUpdate:page"?: ((...args: any[]) => any) | undefined;
805
807
  "onSearch-reset"?: ((...args: any[]) => any) | undefined;
808
+ "onOn-load"?: ((...args: any[]) => any) | undefined;
806
809
  }>, {}, {
807
810
  DIC: {};
808
811
  cascaderDIC: {};
package/fy-curd/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { r as e } from "../chunks/DFJMTSc7.mjs";
1
+ import { r as e } from "../chunks/bPnQPTY0.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { n as e } from "../chunks/DFJMTSc7.mjs";
1
+ import { n as e } from "../chunks/bPnQPTY0.mjs";
2
2
  export { e as default };
package/fy-form/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/DFJMTSc7.mjs";
1
+ import { t as e } from "../chunks/bPnQPTY0.mjs";
2
2
  export { e as default };
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "../chunks/B1MSrc6f.mjs";
2
2
  import { t } from "../chunks/D9IZqJJJ.mjs";
3
3
  import { t as n } from "../chunks/DTeHffqJ.mjs";
4
- import { r } from "../chunks/DFJMTSc7.mjs";
4
+ import { r } from "../chunks/bPnQPTY0.mjs";
5
5
  import { n as i, t as a } from "../chunks/CX7Oiw5N.mjs";
6
6
  import { ElInput as o } from "element-plus/es";
7
7
  import "element-plus/es/components/base/style/css";
package/fy-tree/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "../chunks/B1MSrc6f.mjs";
2
2
  import { t } from "../chunks/D9IZqJJJ.mjs";
3
3
  import { t as n } from "../chunks/DTeHffqJ.mjs";
4
- import { i as r, t as i } from "../chunks/DFJMTSc7.mjs";
4
+ import { i as r, t as i } from "../chunks/bPnQPTY0.mjs";
5
5
  import { C as a, g as o, m as s } from "../chunks/CXHJqvbJ.mjs";
6
6
  import { ElInput as c, ElLoadingDirective as l, ElScrollbar as u, ElTree as d } from "element-plus/es";
7
7
  import "element-plus/es/components/base/style/css";
package/index.mjs CHANGED
@@ -25,12 +25,12 @@ import { t as b } from "./chunks/DW0VZadU.mjs";
25
25
  import { t as x } from "./chunks/D9IZqJJJ.mjs";
26
26
  import { t as S } from "./chunks/DTeHffqJ.mjs";
27
27
  import C from "./element-resize-observer/index.mjs";
28
- import { t as w } from "./chunks/sCsjgWvR.mjs";
28
+ import { t as w } from "./chunks/sl7eKGeX.mjs";
29
29
  import { t as T } from "./chunks/tzjUpVIj.mjs";
30
30
  import { t as E } from "./chunks/BdrgibgS.mjs";
31
31
  import D from "./data-table-picker/index.mjs";
32
32
  import { t as O } from "./chunks/BrZxnDdM.mjs";
33
- import { n as k, r as A, t as j } from "./chunks/DFJMTSc7.mjs";
33
+ import { n as k, r as A, t as j } from "./chunks/bPnQPTY0.mjs";
34
34
  import M from "./fy-array/index.mjs";
35
35
  import N from "./fy-cascader/index.mjs";
36
36
  import P from "./fy-checkbox/index.mjs";
@@ -99,10 +99,10 @@ import { t as Ke } from "./chunks/Dziwe2852.mjs";
99
99
  import { t as qe } from "./chunks/B7hlyq1n2.mjs";
100
100
  import Je from "./table-column-def/index.mjs";
101
101
  import { t as Ye } from "./chunks/D7kTwnJK2.mjs";
102
- import { t as Xe } from "./chunks/CIVnqVAQ2.mjs";
103
- import { t as Ze } from "./chunks/bBwzYT0T2.mjs";
104
- import { t as Qe } from "./chunks/q_m3gw_j2.mjs";
105
- import { t as $e } from "./chunks/B0i3ywbn2.mjs";
102
+ import { t as Xe } from "./chunks/7mLGHDva2.mjs";
103
+ import { t as Ze } from "./chunks/Y3LG5Oyd2.mjs";
104
+ import { t as Qe } from "./chunks/DIQto0dy2.mjs";
105
+ import { t as $e } from "./chunks/BJsEGC-v2.mjs";
106
106
  import { t as et } from "./chunks/BqgrLeBK2.mjs";
107
107
  import { t as tt } from "./chunks/CKuwy9g12.mjs";
108
108
  import { t as nt } from "./chunks/D2NeD2g32.mjs";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@web-utils/form-ui",
3
3
  "description": "form-ui",
4
- "version": "1.0.0-beta95",
4
+ "version": "1.0.0-beta96",
5
5
  "author": "Simple",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/sCsjgWvR.mjs";
1
+ import { t as e } from "../chunks/sl7eKGeX.mjs";
2
2
  export { e as default };
@@ -72,7 +72,7 @@ export declare const allProps: {
72
72
  * 输入框行数,仅 type 为 'textarea' 时有效
73
73
  */
74
74
  rows: {
75
- type: NumberConstructor;
75
+ type: (StringConstructor | NumberConstructor)[];
76
76
  default: number;
77
77
  };
78
78
  /**
@@ -29,7 +29,7 @@ var n = {
29
29
  prefixIcon: [String, Object],
30
30
  suffixIcon: [String, Object],
31
31
  rows: {
32
- type: Number,
32
+ type: [Number, String],
33
33
  default: 4
34
34
  },
35
35
  autosize: [Boolean, Object],
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/CIVnqVAQ2.mjs";
1
+ import { t as e } from "../chunks/7mLGHDva2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/q_m3gw_j2.mjs";
1
+ import { t as e } from "../chunks/DIQto0dy2.mjs";
2
2
  export { e as default };
@@ -3,7 +3,7 @@ import { t as n } from "../chunks/B1MSrc6f.mjs";
3
3
  import { processButtons as r, reloadTable as i } from "../api/index.mjs";
4
4
  import { cellClickHandlerContextKey as a, tableViewContextKey as o } from "../constants/index.mjs";
5
5
  import { t as s } from "../chunks/DTeHffqJ.mjs";
6
- import { t as c } from "../chunks/sCsjgWvR.mjs";
6
+ import { t as c } from "../chunks/sl7eKGeX.mjs";
7
7
  import l from "../editable-tree/index.mjs";
8
8
  import { s as u } from "../chunks/_7MDfW_y.mjs";
9
9
  import d from "../form-item-config-provider/index.mjs";