vft 0.0.487 → 0.0.494

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/es/components/autocomplete/autocomplete.vue.d.ts +2 -2
  4. package/es/components/autocomplete/index.d.ts +6 -6
  5. package/es/components/button/index.d.ts +9 -9
  6. package/es/components/carousel/use-carousel.js +1 -1
  7. package/es/components/config-provider/hooks/use-global-config.js +3 -3
  8. package/es/components/dialog/use-dialog.js +11 -11
  9. package/es/components/input/input.vue2.js +4 -4
  10. package/es/components/input-tag/composables/use-input-tag.js +1 -1
  11. package/es/components/message/message.vue2.js +45 -42
  12. package/es/components/message/types.d.ts +8 -2
  13. package/es/components/message/types.js +2 -1
  14. package/es/components/modal/modal-footer-action.vue.d.ts +1 -1
  15. package/es/components/modal/modal-footer-action.vue2.js +13 -15
  16. package/es/components/modal/modal.vue2.js +35 -36
  17. package/es/components/popconfirm/index.d.ts +15 -15
  18. package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
  19. package/es/components/select/index.d.ts +4 -4
  20. package/es/components/select/select.vue.d.ts +4 -4
  21. package/es/components/select/useSelect.d.ts +4 -4
  22. package/es/components/super-form/index.d.ts +30 -24
  23. package/es/components/super-form/super-form-item.vue2.js +263 -231
  24. package/es/components/super-form/super-form.vue.d.ts +3 -1
  25. package/es/components/super-form/super-form.vue2.js +153 -132
  26. package/es/components/super-form/types.d.ts +19 -2
  27. package/es/components/super-form/use/helper.d.ts +34 -0
  28. package/es/components/super-form/use/helper.js +81 -34
  29. package/es/components/switch/index.d.ts +3 -2
  30. package/es/components/switch/switch.vue.d.ts +1 -25
  31. package/es/components/switch/types.d.ts +46 -0
  32. package/es/components/switch/types.js +1 -0
  33. package/es/components/table/index.d.ts +6 -0
  34. package/es/components/table/table.vue.d.ts +4 -0
  35. package/es/components/table/table.vue2.js +164 -149
  36. package/es/components/tree/index.d.ts +5 -5
  37. package/es/components/tree/tree.vue.d.ts +2 -2
  38. package/es/components/upload/index.d.ts +15 -15
  39. package/es/components/upload/upload-content.vue.d.ts +1 -1
  40. package/es/components/upload/upload.vue.d.ts +1 -1
  41. package/es/hooks/use-z-index/index.js +3 -3
  42. package/es/package.json.d.ts +1 -1
  43. package/es/package.json.js +1 -1
  44. package/es/utils/form-register.d.ts +1 -1
  45. package/es/utils/form-register.js +1 -1
  46. package/es/utils/vue/vnode.js +1 -1
  47. package/lib/components/autocomplete/autocomplete.vue.d.ts +2 -2
  48. package/lib/components/autocomplete/index.d.ts +6 -6
  49. package/lib/components/button/index.d.ts +9 -9
  50. package/lib/components/dialog/use-dialog.cjs +1 -1
  51. package/lib/components/input/input.vue2.cjs +1 -1
  52. package/lib/components/message/message.vue2.cjs +1 -1
  53. package/lib/components/message/types.cjs +1 -1
  54. package/lib/components/message/types.d.ts +8 -2
  55. package/lib/components/modal/modal-footer-action.vue.d.ts +1 -1
  56. package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
  57. package/lib/components/modal/modal.vue2.cjs +1 -1
  58. package/lib/components/popconfirm/index.d.ts +15 -15
  59. package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
  60. package/lib/components/select/index.d.ts +4 -4
  61. package/lib/components/select/select.vue.d.ts +4 -4
  62. package/lib/components/select/useSelect.d.ts +4 -4
  63. package/lib/components/super-form/index.d.ts +30 -24
  64. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  65. package/lib/components/super-form/super-form.vue.d.ts +3 -1
  66. package/lib/components/super-form/super-form.vue2.cjs +1 -1
  67. package/lib/components/super-form/types.d.ts +19 -2
  68. package/lib/components/super-form/use/helper.cjs +1 -1
  69. package/lib/components/super-form/use/helper.d.ts +34 -0
  70. package/lib/components/switch/index.d.ts +3 -2
  71. package/lib/components/switch/switch.vue.d.ts +1 -25
  72. package/lib/components/switch/types.cjs +1 -0
  73. package/lib/components/switch/types.d.ts +46 -0
  74. package/lib/components/table/index.d.ts +6 -0
  75. package/lib/components/table/table.vue.d.ts +4 -0
  76. package/lib/components/table/table.vue2.cjs +1 -1
  77. package/lib/components/tree/index.d.ts +5 -5
  78. package/lib/components/tree/tree.vue.d.ts +2 -2
  79. package/lib/components/upload/index.d.ts +15 -15
  80. package/lib/components/upload/upload-content.vue.d.ts +1 -1
  81. package/lib/components/upload/upload.vue.d.ts +1 -1
  82. package/lib/package.json.cjs +1 -1
  83. package/lib/package.json.d.ts +1 -1
  84. package/lib/utils/form-register.cjs +1 -1
  85. package/lib/utils/form-register.d.ts +1 -1
  86. package/package.json +4 -4
  87. package/tags.json +1 -1
  88. package/theme-style/index.css +1 -1
  89. package/theme-style/src/dialog.scss +1 -1
  90. package/theme-style/src/message.scss +8 -4
  91. package/theme-style/src/super-form.scss +6 -0
  92. package/theme-style/src/table.scss +25 -6
  93. package/theme-style/vft-dialog.css +1 -1
  94. package/theme-style/vft-message.css +1 -1
  95. package/theme-style/vft-super-form.css +1 -1
  96. package/theme-style/vft-table.css +1 -1
  97. package/web-types.json +1 -1
@@ -0,0 +1,46 @@
1
+ import type { IconProps } from 'vft/es/components/icon';
2
+ import type { ComponentSize } from 'vft/es/constants';
3
+ export interface SwitchProps {
4
+ /** 绑定值,必须等于 `active-value` 或 `inactive-value`,默认为 `boolean` 类型 */
5
+ modelValue?: boolean | string | number;
6
+ /** 绑定值(非受控模式) */
7
+ value?: boolean | string | number;
8
+ /** 是否禁用 */
9
+ disabled?: boolean;
10
+ /** switch 的宽度 */
11
+ width?: string | number;
12
+ /** 无论图标或文本是否显示在点内,只会呈现文本的第一个字符 */
13
+ inlinePrompt?: boolean;
14
+ /** switch 状态为 `on` 时所显示图标,设置此项会忽略 `active-text` */
15
+ activeIcon?: IconProps | string;
16
+ /** switch 状态为 `off` 时所显示图标,设置此项会忽略 `inactive-text` */
17
+ inactiveIcon?: IconProps | string;
18
+ /** switch 打开时的文字描述 */
19
+ activeText?: string;
20
+ /** switch 的状态为 `off` 时的文字描述 */
21
+ inactiveText?: string;
22
+ /** 当在 `on` 状态时的背景颜色(已废弃,请使用 CSS var `--vft-switch-on-color`) */
23
+ activeColor?: string;
24
+ /** `off` 状态时的背景颜色(已废弃,使用 CSS var `--vft-switch-off-color`) */
25
+ inactiveColor?: string;
26
+ /** 开关的边框颜色(已废弃,使用 CSS var `--vft-switch-border-color`) */
27
+ borderColor?: string;
28
+ /** switch 状态为 `on` 时的值 */
29
+ activeValue?: boolean | string | number;
30
+ /** switch 的状态为 `off` 时的值 */
31
+ inactiveValue?: boolean | string | number;
32
+ /** switch 对应的 name 属性 */
33
+ name?: string;
34
+ /** 改变 switch 状态时是否触发表单的校验 */
35
+ validateEvent?: boolean;
36
+ /** id for input */
37
+ id?: string;
38
+ /** 是否显示加载中 */
39
+ loading?: boolean;
40
+ /** switch 状态改变前的钩子,返回 `false` 或者返回 `Promise` 且被 reject 则停止切换 */
41
+ beforeChange?: () => Promise<boolean> | boolean;
42
+ /** switch 的大小 */
43
+ size?: ComponentSize;
44
+ /** tabindex for input */
45
+ tabindex?: string | number;
46
+ }
@@ -0,0 +1 @@
1
+
@@ -513,6 +513,7 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
513
513
  getRawDataSource: () => import("../types").Recordable[];
514
514
  tableSearch: (value: any) => void;
515
515
  table: import("vue").Ref<import("./types").TableInstance | undefined, import("./types").TableInstance | undefined>;
516
+ formRef: import("vue").Ref<any, any>;
516
517
  pageRef: import("vue").Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
517
518
  total: {
518
519
  type: import("vue").PropType<number>;
@@ -1432,6 +1433,7 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
1432
1433
  getRawDataSource: () => import("../types").Recordable[];
1433
1434
  tableSearch: (value: any) => void;
1434
1435
  table: import("vue").Ref<import("./types").TableInstance | undefined, import("./types").TableInstance | undefined>;
1436
+ formRef: import("vue").Ref<any, any>;
1435
1437
  pageRef: import("vue").Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
1436
1438
  total: {
1437
1439
  type: import("vue").PropType<number>;
@@ -2235,6 +2237,7 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
2235
2237
  getRawDataSource: () => import("../types").Recordable[];
2236
2238
  tableSearch: (value: any) => void;
2237
2239
  table: import("vue").Ref<import("./types").TableInstance | undefined, import("./types").TableInstance | undefined>;
2240
+ formRef: import("vue").Ref<any, any>;
2238
2241
  pageRef: import("vue").Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
2239
2242
  total: {
2240
2243
  type: import("vue").PropType<number>;
@@ -2636,6 +2639,9 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
2636
2639
  }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
2637
2640
  $slots: {
2638
2641
  "toolbar-left"?(_: {}): any;
2642
+ resetBefore?(_: any): any;
2643
+ submitBefore?(_: any): any;
2644
+ submitAfter?(_: any): any;
2639
2645
  "toolbar-right"?(_: {}): any;
2640
2646
  empty?(_: {}): any;
2641
2647
  };
@@ -3,6 +3,9 @@ import type { TableInstance, TableProps } from './types';
3
3
  declare function setProps(props: Partial<TableProps>): void;
4
4
  declare function __VLS_template(): {
5
5
  "toolbar-left"?(_: {}): any;
6
+ resetBefore?(_: any): any;
7
+ submitBefore?(_: any): any;
8
+ submitAfter?(_: any): any;
6
9
  "toolbar-right"?(_: {}): any;
7
10
  empty?(_: {}): any;
8
11
  };
@@ -22,6 +25,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
22
25
  getRawDataSource: () => import("../types").Recordable[];
23
26
  tableSearch: (value: any) => void;
24
27
  table: import("vue").Ref<TableInstance | undefined, TableInstance | undefined>;
28
+ formRef: import("vue").Ref<any, any>;
25
29
  pageRef: import("vue").Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
26
30
  total: {
27
31
  type: import("vue").PropType<number>;
@@ -1,40 +1,40 @@
1
- import { defineComponent as N, createVNode as c, useAttrs as ee, ref as g, getCurrentInstance as ae, computed as P, unref as e, watch as te, nextTick as oe, toRaw as le, createElementBlock as re, openBlock as m, normalizeClass as ne, withCtx as i, createBlock as D, createCommentVNode as H, mergeProps as F, withDirectives as ce, createElementVNode as ie, vShow as se, renderSlot as p, normalizeProps as ge, guardReactiveProps as de, createTextVNode as ue } from "vue";
2
- import { VftClientOnly as fe } from "../client-only/index.js";
3
- import { VftEmpty as me } from "../empty/index.js";
4
- import { vLoading as pe } from "../loading/directive.js";
5
- import { deepMerge as T, isClient as he, omit as be, isFunction as Ce } from "@vft/utils";
6
- import { FormCompEnum as ye } from "../../utils/form-register.js";
1
+ import { defineComponent as V, createVNode as c, useAttrs as le, ref as g, getCurrentInstance as re, computed as F, unref as e, watch as ne, nextTick as ie, toRaw as ce, createElementBlock as se, openBlock as C, normalizeClass as ge, withCtx as n, createBlock as T, createCommentVNode as A, mergeProps as E, withDirectives as fe, createElementVNode as de, vShow as ue, renderSlot as s, normalizeProps as u, guardReactiveProps as m, createSlots as me, createTextVNode as pe } from "vue";
2
+ import { VftClientOnly as he } from "../client-only/index.js";
3
+ import { VftEmpty as be } from "../empty/index.js";
4
+ import { vLoading as Ce } from "../loading/directive.js";
5
+ import { deepMerge as N, isClient as ye, omit as we, isFunction as ve } from "@vft/utils";
6
+ import { FormCompEnum as ke } from "../../utils/form-register.js";
7
7
  import "@vueuse/core";
8
8
  import "../config-provider/hooks/use-global-config.js";
9
9
  import "lodash-es";
10
- import { useForm as we } from "../super-form/use/use-form.js";
11
- import { useNamespace as ve } from "../../hooks/use-namespace/index.js";
10
+ import { useForm as xe } from "../super-form/use/use-form.js";
11
+ import { useNamespace as Se } from "../../hooks/use-namespace/index.js";
12
12
  import "../../hooks/use-model-toggle/index.js";
13
13
  import "@popperjs/core";
14
14
  import "../../hooks/use-z-index/index.js";
15
15
  import "../icon/index.js";
16
- import { VftPagination as xe } from "../pagination/index.js";
17
- import { VftSkeleton as ke } from "../skeleton/index.js";
18
- import { VftSuperForm as Se } from "../super-form/index.js";
19
- import { VxeGrid as Be } from "vxe-table";
20
- import ze from "xe-utils";
21
- import { PageSize as _ } from "./constants.js";
22
- import { useColumns as Re } from "./use/use-columns.js";
23
- import { useDataSource as Pe } from "./use/use-data-source.js";
24
- import { useLoading as De } from "./use/use-loading.js";
25
- import { usePagination as He } from "./use/use-pagination.js";
26
- import { EmptyEnum as Fe } from "../empty/constants.js";
27
- const Te = N({
16
+ import { VftPagination as Be } from "../pagination/index.js";
17
+ import { VftSkeleton as Re } from "../skeleton/index.js";
18
+ import { VftSuperForm as ze } from "../super-form/index.js";
19
+ import { VxeGrid as Pe } from "vxe-table";
20
+ import De from "xe-utils";
21
+ import { PageSize as O } from "./constants.js";
22
+ import { useColumns as He } from "./use/use-columns.js";
23
+ import { useDataSource as Fe } from "./use/use-data-source.js";
24
+ import { useLoading as Te } from "./use/use-loading.js";
25
+ import { usePagination as Ae } from "./use/use-pagination.js";
26
+ import { EmptyEnum as Ee } from "../empty/constants.js";
27
+ const Ne = V({
28
28
  name: "vft-table"
29
- }), na = /* @__PURE__ */ N({
30
- ...Te,
29
+ }), st = /* @__PURE__ */ V({
30
+ ...Ne,
31
31
  props: {
32
32
  sticky: {
33
33
  type: [Boolean, Object]
34
34
  },
35
35
  api: {},
36
36
  pageSize: {
37
- default: _
37
+ default: O
38
38
  },
39
39
  total: {},
40
40
  rowkey: {
@@ -52,7 +52,7 @@ const Te = N({
52
52
  beforeFetch: {},
53
53
  delEmptyParams: {
54
54
  type: [Boolean, String],
55
- default: !0
55
+ default: "strict"
56
56
  },
57
57
  afterFetch: {},
58
58
  transformParams: {
@@ -79,13 +79,13 @@ const Te = N({
79
79
  onChange: {},
80
80
  emptyCfg: {
81
81
  default: () => ({
82
- type: Fe.NoData
82
+ type: Ee.NoData
83
83
  })
84
84
  },
85
85
  loadingCfg: {
86
86
  default: () => ({
87
87
  customClass: "vft-card-loading",
88
- text: c("div", null, [c("span", null, [ue("加载中")]), c("span", {
88
+ text: c("div", null, [c("span", null, [pe("加载中")]), c("span", {
89
89
  class: "dot"
90
90
  }, null)])
91
91
  })
@@ -399,66 +399,66 @@ const Te = N({
399
399
  "toolbar-tool-click",
400
400
  "zoom"
401
401
  ],
402
- setup(_e, {
403
- expose: E,
404
- emit: V
402
+ setup(Oe, {
403
+ expose: $,
404
+ emit: _
405
405
  }) {
406
- const n = V, d = ve("table"), A = ee(), h = g(), b = g(), O = g([]), u = g(), q = ae(), t = P(() => T(q.props, e(u))), {
407
- getLoading: M,
408
- setLoading: $
409
- } = De(t), {
410
- getPaginationInfo: s,
411
- setPagination: f,
412
- getCurrentPage: L
413
- } = He(t), {
414
- getViewColumns: G,
415
- setColumns: I
416
- } = Re(t);
417
- te(() => L(), (a) => {
418
- oe(() => {
419
- C({
406
+ const i = _, f = Se("table"), q = le(), y = g(), w = g(), M = g([]), p = g(), h = g(), L = re(), a = F(() => N(L.props, e(p))), {
407
+ getLoading: G,
408
+ setLoading: I
409
+ } = Te(a), {
410
+ getPaginationInfo: d,
411
+ setPagination: b,
412
+ getCurrentPage: K
413
+ } = Ae(a), {
414
+ getViewColumns: X,
415
+ setColumns: j
416
+ } = He(a);
417
+ ne(() => K(), (t) => {
418
+ ie(() => {
419
+ v({
420
420
  seqConfig: {
421
- startIndex: (a - 1) * (s.value?.pageSize || e(t).pageSize || _)
421
+ startIndex: (t - 1) * (d.value?.pageSize || e(a).pageSize || O)
422
422
  }
423
423
  });
424
424
  });
425
425
  }, {
426
426
  immediate: !0
427
427
  });
428
- function C(a) {
429
- u.value = {
430
- ...e(u),
431
- ...a
428
+ function v(t) {
429
+ p.value = {
430
+ ...e(p),
431
+ ...t
432
432
  };
433
433
  }
434
434
  const {
435
- getDataSourceRef: y,
436
- handleTableChange: K,
437
- reload: w,
438
- deleteTableDataRecord: X,
439
- insertTableDataRecord: j,
440
- updateTableData: Y,
441
- updateTableDataRecord: W,
442
- setTableData: v,
443
- getDataSource: U,
444
- getRawDataSource: x,
445
- tableSearch: k
446
- } = Pe(t, {
447
- tableData: O,
448
- setLoading: $,
449
- getPaginationInfo: s,
450
- setPagination: f
451
- }, n);
452
- function S(a) {
453
- a?.pageSize && f({
435
+ getDataSourceRef: k,
436
+ handleTableChange: Y,
437
+ reload: x,
438
+ deleteTableDataRecord: W,
439
+ insertTableDataRecord: U,
440
+ updateTableData: J,
441
+ updateTableDataRecord: Q,
442
+ setTableData: S,
443
+ getDataSource: Z,
444
+ getRawDataSource: B,
445
+ tableSearch: R
446
+ } = Fe(a, {
447
+ tableData: M,
448
+ setLoading: I,
449
+ getPaginationInfo: d,
450
+ setPagination: b
451
+ }, i);
452
+ function z(t) {
453
+ t?.pageSize && b({
454
454
  currentPage: 1
455
- }), K(a), n("change", a);
455
+ }), Y(t), i("change", t);
456
456
  const {
457
457
  onChange: o
458
- } = e(t);
459
- o && Ce(o) && o(a);
458
+ } = e(a);
459
+ o && ve(o) && o(t);
460
460
  }
461
- const B = {};
461
+ const P = {};
462
462
  [
463
463
  "update:data",
464
464
  "keydown-start",
@@ -579,67 +579,67 @@ const Te = N({
579
579
  "toolbar-button-click",
580
580
  "toolbar-tool-click",
581
581
  "zoom"
582
- ].forEach((a) => {
583
- const o = ze.camelCase(`on-${a}`);
584
- B[o] = (...r) => n(a, ...r);
582
+ ].forEach((t) => {
583
+ const o = De.camelCase(`on-${t}`);
584
+ P[o] = (...l) => i(t, ...l);
585
585
  });
586
- const l = P(() => {
587
- const a = e(y), o = {
588
- ...A,
589
- ...e(t),
590
- columns: le(e(G)),
591
- loading: e(M),
592
- data: a,
593
- ...B
586
+ const r = F(() => {
587
+ const t = e(k), o = {
588
+ ...q,
589
+ ...e(a),
590
+ columns: ce(e(X)),
591
+ loading: e(G),
592
+ data: t,
593
+ ...P
594
594
  };
595
- if (he) {
596
- (e(t)?.addMaxHeight || e(t)?.maxHeight) && (o.maxHeight = e(t)?.maxHeight ? e(t)?.maxHeight : `${window.innerHeight - e(t)?.extraSysHeight - (t.value?.showPager ? t.value?.pageHeight || 40 : 0)}px`);
597
- const r = e(t)?.minHeight;
598
- o.minHeight = r || (r !== 0 && e(t)?.toolbarConfig?.custom ? 300 : void 0);
595
+ if (ye) {
596
+ (e(a)?.addMaxHeight || e(a)?.maxHeight) && (o.maxHeight = e(a)?.maxHeight ? e(a)?.maxHeight : `${window.innerHeight - e(a)?.extraSysHeight - (a.value?.showPager ? a.value?.pageHeight || 40 : 0)}px`);
597
+ const l = e(a)?.minHeight;
598
+ o.minHeight = l || (l !== 0 && e(a)?.toolbarConfig?.custom ? 300 : void 0);
599
599
  }
600
- return e(t)?.toolbarConfig?.refresh && (o.proxyConfig = e(t)?.proxyConfig || {
600
+ return e(a)?.toolbarConfig?.refresh && (o.proxyConfig = e(a)?.proxyConfig || {
601
601
  response: {
602
- result: e(t)?.fetchSetting?.listField,
603
- total: e(t)?.fetchSetting?.totalField
602
+ result: e(a)?.fetchSetting?.listField,
603
+ total: e(a)?.fetchSetting?.totalField
604
604
  },
605
605
  autoLoad: !1,
606
606
  ajax: {
607
- query: async () => await w()
607
+ query: async () => await x()
608
608
  }
609
609
  }), o;
610
- }), z = {
611
- setPagination: f,
612
- emit: n,
613
- setProps: C,
614
- reload: w,
615
- deleteTableDataRecord: X,
616
- insertTableDataRecord: j,
617
- updateTableDataRecord: W,
618
- updateTableData: Y,
619
- setTableData: v,
620
- getDataSource: U,
621
- getDataSourceRef: y,
622
- setColumns: I,
623
- getRawDataSource: x,
624
- tableSearch: k
610
+ }), D = {
611
+ setPagination: b,
612
+ emit: i,
613
+ setProps: v,
614
+ reload: x,
615
+ deleteTableDataRecord: W,
616
+ insertTableDataRecord: U,
617
+ updateTableDataRecord: Q,
618
+ updateTableData: J,
619
+ setTableData: S,
620
+ getDataSource: Z,
621
+ getDataSourceRef: k,
622
+ setColumns: j,
623
+ getRawDataSource: B,
624
+ tableSearch: R
625
625
  };
626
- n("register", z);
627
- const J = {
626
+ i("register", D);
627
+ const ee = {
628
628
  field: "_filterTableData",
629
629
  label: "",
630
- type: ye.Search,
630
+ type: ke.Search,
631
631
  itemProps: {
632
632
  class: "search-all-form-item"
633
633
  },
634
634
  componentProps: () => ({
635
- onChange: (a) => {
636
- R({
637
- _filterTableData: a
635
+ onChange: (t) => {
636
+ H({
637
+ _filterTableData: t
638
638
  });
639
639
  }
640
640
  })
641
- }, [Q] = we(T({
642
- schemas: [l.value?.formOptions?.addSearchAllSchema ? J : {}],
641
+ }, te = N({
642
+ schemas: [r.value?.formOptions?.addSearchAllSchema ? ee : {}],
643
643
  rowProps: {
644
644
  justify: "start"
645
645
  },
@@ -653,53 +653,68 @@ const Te = N({
653
653
  btnText: "搜索"
654
654
  },
655
655
  actionInline: !0
656
- }, be(
657
- l.value?.formOptions,
658
- ["showActionForm", "addSearchAllSchema"]
659
- // 'union' | 'intersection' | 'concat' | 'replace' = 'union'
660
- ), "replace")), R = (a) => {
661
- Reflect.has(a, "_filterTableData") && k(a._filterTableData), n("form-submit", a);
662
- }, Z = () => {
663
- v(x()), n("form-reset");
656
+ }, we(r.value?.formOptions, ["showActionForm", "addSearchAllSchema"]), "replace"), [ae] = xe(te), H = (t) => {
657
+ Reflect.has(t, "_filterTableData") && R(t._filterTableData), i("form-submit", t);
658
+ }, oe = () => {
659
+ S(B()), i("form-reset");
664
660
  };
665
- return E({
666
- table: h,
667
- pageRef: b,
668
- ...z
669
- }), (a, o) => (m(), re("div", {
670
- class: ne([e(d).b()])
671
- }, [c(e(fe), null, {
672
- fallback: i(() => [c(e(ke))]),
673
- default: i(() => [c(e(Be), F({
661
+ return $({
662
+ table: y,
663
+ formRef: h,
664
+ pageRef: w,
665
+ ...D
666
+ }), (t, o) => (C(), se("div", {
667
+ class: ge([e(f).b(), {
668
+ [e(f).is("form-exceed-one-rows")]: h.value?.willExceedOneRow
669
+ }])
670
+ }, [c(e(he), null, {
671
+ fallback: n(() => [c(e(Re))]),
672
+ default: n(() => [c(e(Pe), E({
674
673
  ref_key: "xGrid",
675
- ref: h
676
- }, l.value), {
677
- toolbarButtons: i(() => [p(a.$slots, "toolbar-left"), l.value?.formOptions?.showActionForm ? (m(), D(e(Se), {
674
+ ref: y
675
+ }, r.value), {
676
+ toolbarButtons: n(() => [s(t.$slots, "toolbar-left"), r.value?.formOptions?.showActionForm ? (C(), T(e(ze), {
678
677
  key: 0,
679
- onRegister: e(Q),
680
- onSubmit: R,
681
- onReset: Z
682
- }, null, 8, ["onRegister"])) : H("", !0), p(a.$slots, "toolbar-right")]),
683
- empty: i(() => [p(a.$slots, "empty", {}, () => [c(e(me), ge(de(l.value.emptyCfg)), null, 16)])]),
684
- loading: i(() => [ce(ie("div", null, null, 512), [[se, l.value.loading], [e(pe), l.value.loadingCfg]])]),
678
+ ref_key: "formRef",
679
+ ref: h,
680
+ onRegister: e(ae),
681
+ onSubmit: H,
682
+ onReset: oe
683
+ }, me({
684
+ _: 2
685
+ }, [t.$slots.resetBefore ? {
686
+ name: "resetBefore",
687
+ fn: n((l) => [s(t.$slots, "resetBefore", u(m(l)))]),
688
+ key: "0"
689
+ } : void 0, t.$slots.submitBefore ? {
690
+ name: "submitBefore",
691
+ fn: n((l) => [s(t.$slots, "submitBefore", u(m(l)))]),
692
+ key: "1"
693
+ } : void 0, t.$slots.submitAfter ? {
694
+ name: "submitAfter",
695
+ fn: n((l) => [s(t.$slots, "submitAfter", u(m(l)))]),
696
+ key: "2"
697
+ } : void 0]), 1032, ["onRegister"])) : A("", !0), s(t.$slots, "toolbar-right")]),
698
+ empty: n(() => [s(t.$slots, "empty", {}, () => [c(e(be), u(m(r.value.emptyCfg)), null, 16)])]),
699
+ loading: n(() => [fe(de("div", null, null, 512), [[ue, r.value.loading], [e(Ce), r.value.loadingCfg]])]),
685
700
  _: 3
686
- }, 16), l.value.showPager ? (m(), D(e(xe), F({
701
+ }, 16), r.value.showPager ? (C(), T(e(Be), E({
687
702
  key: 0,
688
703
  ref_key: "pageRef",
689
- ref: b
690
- }, e(s), {
691
- class: [e(d).e("pager"), e(d).m(`pager-${e(s)?.pagePlacement}`)],
692
- onCurrentChange: o[0] || (o[0] = (r) => S({
693
- currentPage: r
704
+ ref: w
705
+ }, e(d), {
706
+ class: [e(f).e("pager"), e(f).m(`pager-${e(d)?.pagePlacement}`)],
707
+ onCurrentChange: o[0] || (o[0] = (l) => z({
708
+ currentPage: l
694
709
  })),
695
- onSizeChange: o[1] || (o[1] = (r) => S({
696
- pageSize: r
710
+ onSizeChange: o[1] || (o[1] = (l) => z({
711
+ pageSize: l
697
712
  }))
698
- }), null, 16, ["class"])) : H("", !0)]),
713
+ }), null, 16, ["class"])) : A("", !0)]),
699
714
  _: 3
700
715
  })], 2));
701
716
  }
702
717
  });
703
718
  export {
704
- na as default
719
+ st as default
705
720
  };
@@ -97,6 +97,7 @@ export declare const VftTree: SFCWithInstall<{
97
97
  };
98
98
  }>> & Readonly<{
99
99
  "onCurrent-change"?: (() => any) | undefined;
100
+ onCheck?: (() => any) | undefined;
100
101
  "onNode-drag-start"?: (() => any) | undefined;
101
102
  "onNode-drag-leave"?: (() => any) | undefined;
102
103
  "onNode-drag-enter"?: (() => any) | undefined;
@@ -108,7 +109,6 @@ export declare const VftTree: SFCWithInstall<{
108
109
  "onNode-click"?: (() => any) | undefined;
109
110
  "onNode-contextmenu"?: (() => any) | undefined;
110
111
  "onNode-collapse"?: (() => any) | undefined;
111
- onCheck?: (() => any) | undefined;
112
112
  }>, {
113
113
  filter: (value: any) => void;
114
114
  getNodeKey: (node: import("./model/node").default) => any;
@@ -134,6 +134,7 @@ export declare const VftTree: SFCWithInstall<{
134
134
  updateNode: (data: import("./tree.type").TreeData, refNode: import("./tree.type").TreeKey | import("./tree.type").TreeNodeData | import("./model/node").default) => void;
135
135
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
136
136
  "current-change": () => void;
137
+ check: () => void;
137
138
  "node-drag-start": () => void;
138
139
  "node-drag-leave": () => void;
139
140
  "node-drag-enter": () => void;
@@ -145,7 +146,6 @@ export declare const VftTree: SFCWithInstall<{
145
146
  "node-click": () => void;
146
147
  "node-contextmenu": () => void;
147
148
  "node-collapse": () => void;
148
- check: () => void;
149
149
  }, import("vue").PublicProps, {
150
150
  data: Array<any>;
151
151
  props: import("./tree.type").TreeComponentProps["props"];
@@ -251,6 +251,7 @@ export declare const VftTree: SFCWithInstall<{
251
251
  };
252
252
  }>> & Readonly<{
253
253
  "onCurrent-change"?: (() => any) | undefined;
254
+ onCheck?: (() => any) | undefined;
254
255
  "onNode-drag-start"?: (() => any) | undefined;
255
256
  "onNode-drag-leave"?: (() => any) | undefined;
256
257
  "onNode-drag-enter"?: (() => any) | undefined;
@@ -262,7 +263,6 @@ export declare const VftTree: SFCWithInstall<{
262
263
  "onNode-click"?: (() => any) | undefined;
263
264
  "onNode-contextmenu"?: (() => any) | undefined;
264
265
  "onNode-collapse"?: (() => any) | undefined;
265
- onCheck?: (() => any) | undefined;
266
266
  }>, {
267
267
  filter: (value: any) => void;
268
268
  getNodeKey: (node: import("./model/node").default) => any;
@@ -388,6 +388,7 @@ export declare const VftTree: SFCWithInstall<{
388
388
  };
389
389
  }>> & Readonly<{
390
390
  "onCurrent-change"?: (() => any) | undefined;
391
+ onCheck?: (() => any) | undefined;
391
392
  "onNode-drag-start"?: (() => any) | undefined;
392
393
  "onNode-drag-leave"?: (() => any) | undefined;
393
394
  "onNode-drag-enter"?: (() => any) | undefined;
@@ -399,7 +400,6 @@ export declare const VftTree: SFCWithInstall<{
399
400
  "onNode-click"?: (() => any) | undefined;
400
401
  "onNode-contextmenu"?: (() => any) | undefined;
401
402
  "onNode-collapse"?: (() => any) | undefined;
402
- onCheck?: (() => any) | undefined;
403
403
  }>, {
404
404
  filter: (value: any) => void;
405
405
  getNodeKey: (node: import("./model/node").default) => any;
@@ -425,6 +425,7 @@ export declare const VftTree: SFCWithInstall<{
425
425
  updateNode: (data: import("./tree.type").TreeData, refNode: import("./tree.type").TreeKey | import("./tree.type").TreeNodeData | import("./model/node").default) => void;
426
426
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
427
427
  "current-change": () => void;
428
+ check: () => void;
428
429
  "node-drag-start": () => void;
429
430
  "node-drag-leave": () => void;
430
431
  "node-drag-enter": () => void;
@@ -436,7 +437,6 @@ export declare const VftTree: SFCWithInstall<{
436
437
  "node-click": () => void;
437
438
  "node-contextmenu": () => void;
438
439
  "node-collapse": () => void;
439
- check: () => void;
440
440
  }, string, {
441
441
  data: Array<any>;
442
442
  props: import("./tree.type").TreeComponentProps["props"];
@@ -69,6 +69,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
69
69
  updateNode: (data: TreeData, refNode: TreeKey | TreeNodeData | Node) => void;
70
70
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
71
71
  "current-change": () => void;
72
+ check: () => void;
72
73
  "node-drag-start": () => void;
73
74
  "node-drag-leave": () => void;
74
75
  "node-drag-enter": () => void;
@@ -80,7 +81,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
80
81
  "node-click": () => void;
81
82
  "node-contextmenu": () => void;
82
83
  "node-collapse": () => void;
83
- check: () => void;
84
84
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TreeProps>, {
85
85
  renderAfterExpand: boolean;
86
86
  expandOnClickNode: boolean;
@@ -94,6 +94,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
94
94
  indent: number;
95
95
  }>>> & Readonly<{
96
96
  "onCurrent-change"?: (() => any) | undefined;
97
+ onCheck?: (() => any) | undefined;
97
98
  "onNode-drag-start"?: (() => any) | undefined;
98
99
  "onNode-drag-leave"?: (() => any) | undefined;
99
100
  "onNode-drag-enter"?: (() => any) | undefined;
@@ -105,7 +106,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
105
106
  "onNode-click"?: (() => any) | undefined;
106
107
  "onNode-contextmenu"?: (() => any) | undefined;
107
108
  "onNode-collapse"?: (() => any) | undefined;
108
- onCheck?: (() => any) | undefined;
109
109
  }>, {
110
110
  data: Array<any>;
111
111
  props: TreeComponentProps["props"];