vft 0.0.485 → 0.0.493

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 (98) 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/index.d.ts +72 -3
  15. package/es/components/modal/modal-footer-action.vue.d.ts +1 -1
  16. package/es/components/modal/modal-footer-action.vue2.js +13 -15
  17. package/es/components/modal/modal.vue.d.ts +27 -3
  18. package/es/components/modal/modal.vue2.js +59 -59
  19. package/es/components/modal/types.d.ts +2 -0
  20. package/es/components/popconfirm/index.d.ts +15 -15
  21. package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
  22. package/es/components/router-view-content/index.d.ts +6 -0
  23. package/es/components/router-view-content/router-view-content.vue.d.ts +1 -0
  24. package/es/components/router-view-content/router-view-content.vue2.js +19 -18
  25. package/es/components/select/index.d.ts +4 -4
  26. package/es/components/select/select.vue.d.ts +4 -4
  27. package/es/components/select/useSelect.d.ts +4 -4
  28. package/es/components/super-form/index.d.ts +30 -24
  29. package/es/components/super-form/super-form-item.vue2.js +263 -231
  30. package/es/components/super-form/super-form.vue.d.ts +3 -1
  31. package/es/components/super-form/super-form.vue2.js +153 -132
  32. package/es/components/super-form/types.d.ts +4 -2
  33. package/es/components/super-form/use/helper.d.ts +34 -0
  34. package/es/components/super-form/use/helper.js +81 -34
  35. package/es/components/switch/index.d.ts +1 -0
  36. package/es/components/switch/switch.vue.d.ts +1 -25
  37. package/es/components/switch/types.d.ts +25 -0
  38. package/es/components/switch/types.js +1 -0
  39. package/es/components/table/index.d.ts +6 -0
  40. package/es/components/table/table.vue.d.ts +4 -0
  41. package/es/components/table/table.vue2.js +164 -149
  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/index.d.ts +72 -3
  56. package/lib/components/modal/modal-footer-action.vue.d.ts +1 -1
  57. package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
  58. package/lib/components/modal/modal.vue.d.ts +27 -3
  59. package/lib/components/modal/modal.vue2.cjs +1 -1
  60. package/lib/components/modal/types.d.ts +2 -0
  61. package/lib/components/popconfirm/index.d.ts +15 -15
  62. package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
  63. package/lib/components/router-view-content/index.d.ts +6 -0
  64. package/lib/components/router-view-content/router-view-content.vue.d.ts +1 -0
  65. package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
  66. package/lib/components/select/index.d.ts +4 -4
  67. package/lib/components/select/select.vue.d.ts +4 -4
  68. package/lib/components/select/useSelect.d.ts +4 -4
  69. package/lib/components/super-form/index.d.ts +30 -24
  70. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  71. package/lib/components/super-form/super-form.vue.d.ts +3 -1
  72. package/lib/components/super-form/super-form.vue2.cjs +1 -1
  73. package/lib/components/super-form/types.d.ts +4 -2
  74. package/lib/components/super-form/use/helper.cjs +1 -1
  75. package/lib/components/super-form/use/helper.d.ts +34 -0
  76. package/lib/components/switch/index.d.ts +1 -0
  77. package/lib/components/switch/switch.vue.d.ts +1 -25
  78. package/lib/components/switch/types.cjs +1 -0
  79. package/lib/components/switch/types.d.ts +25 -0
  80. package/lib/components/table/index.d.ts +6 -0
  81. package/lib/components/table/table.vue.d.ts +4 -0
  82. package/lib/components/table/table.vue2.cjs +1 -1
  83. package/lib/package.json.cjs +1 -1
  84. package/lib/package.json.d.ts +1 -1
  85. package/lib/utils/form-register.cjs +1 -1
  86. package/lib/utils/form-register.d.ts +1 -1
  87. package/package.json +5 -5
  88. package/tags.json +1 -1
  89. package/theme-style/index.css +1 -1
  90. package/theme-style/src/dialog.scss +1 -1
  91. package/theme-style/src/message.scss +8 -4
  92. package/theme-style/src/super-form.scss +6 -0
  93. package/theme-style/src/table.scss +25 -6
  94. package/theme-style/vft-dialog.css +1 -1
  95. package/theme-style/vft-message.css +1 -1
  96. package/theme-style/vft-super-form.css +1 -1
  97. package/theme-style/vft-table.css +1 -1
  98. package/web-types.json +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
  };
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "vft",
3
- "version": "0.0.485",
3
+ "version": "0.0.493",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.js",
@@ -1,4 +1,4 @@
1
- const o = "0.0.485";
1
+ const o = "0.0.493";
2
2
  export {
3
3
  o as version
4
4
  };
@@ -22,7 +22,7 @@ export declare const FormCompEnum: {
22
22
  readonly Switch: "switch";
23
23
  readonly Upload: "upload";
24
24
  readonly TimePicker: "time-picker";
25
- readonly TimeRangePicker: "time-picker";
25
+ readonly TimeRangePicker: "time-range-picker";
26
26
  readonly YearPicker: "year";
27
27
  readonly MonthPicker: "month";
28
28
  readonly DatePicker: "date";
@@ -22,7 +22,7 @@ const r = {
22
22
  Upload: "upload",
23
23
  TimePicker: "time-picker",
24
24
  // eslint-disable-next-line
25
- TimeRangePicker: "time-picker",
25
+ TimeRangePicker: "time-range-picker",
26
26
  YearPicker: "year",
27
27
  MonthPicker: "month",
28
28
  DatePicker: "date",
@@ -1,4 +1,4 @@
1
- import { isArray as E, hasOwn as m, camelize as N } from "@vft/utils";
1
+ import { hasOwn as m, camelize as N, isArray as E } from "@vft/utils";
2
2
  import { isVNode as o, Fragment as S, Comment as A, Text as s, createCommentVNode as L, createBlock as _, openBlock as C } from "vue";
3
3
  import { debugWarn as O } from "../error.js";
4
4
  const R = "utils/vue/vnode";
@@ -62,9 +62,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
62
62
  readonly placement?: import("@popperjs/core").Placement | undefined;
63
63
  readonly strategy?: "fixed" | "absolute" | undefined;
64
64
  readonly effect?: "light" | "dark" | undefined;
65
- readonly visible?: boolean | null | undefined;
66
65
  readonly teleported?: boolean | undefined;
67
66
  readonly open?: boolean | undefined;
67
+ readonly visible?: boolean | null | undefined;
68
68
  readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
69
69
  readonly arrowOffset?: number | undefined;
70
70
  readonly gpuAcceleration?: boolean | undefined;
@@ -480,9 +480,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
480
480
  readonly placement?: import("@popperjs/core").Placement | undefined;
481
481
  readonly strategy?: "fixed" | "absolute" | undefined;
482
482
  readonly effect?: "light" | "dark" | undefined;
483
- readonly visible?: boolean | null | undefined;
484
483
  readonly teleported?: boolean | undefined;
485
484
  readonly open?: boolean | undefined;
485
+ readonly visible?: boolean | null | undefined;
486
486
  readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
487
487
  readonly arrowOffset?: number | undefined;
488
488
  readonly gpuAcceleration?: boolean | undefined;
@@ -85,9 +85,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
85
85
  readonly placement?: import("@popperjs/core").Placement | undefined;
86
86
  readonly strategy?: "fixed" | "absolute" | undefined;
87
87
  readonly effect?: "light" | "dark" | undefined;
88
- readonly visible?: boolean | null | undefined;
89
88
  readonly teleported?: boolean | undefined;
90
89
  readonly open?: boolean | undefined;
90
+ readonly visible?: boolean | null | undefined;
91
91
  readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
92
92
  readonly arrowOffset?: number | undefined;
93
93
  readonly gpuAcceleration?: boolean | undefined;
@@ -503,9 +503,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
503
503
  readonly placement?: import("@popperjs/core").Placement | undefined;
504
504
  readonly strategy?: "fixed" | "absolute" | undefined;
505
505
  readonly effect?: "light" | "dark" | undefined;
506
- readonly visible?: boolean | null | undefined;
507
506
  readonly teleported?: boolean | undefined;
508
507
  readonly open?: boolean | undefined;
508
+ readonly visible?: boolean | null | undefined;
509
509
  readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
510
510
  readonly arrowOffset?: number | undefined;
511
511
  readonly gpuAcceleration?: boolean | undefined;
@@ -1006,9 +1006,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
1006
1006
  readonly placement?: import("@popperjs/core").Placement | undefined;
1007
1007
  readonly strategy?: "fixed" | "absolute" | undefined;
1008
1008
  readonly effect?: "light" | "dark" | undefined;
1009
- readonly visible?: boolean | null | undefined;
1010
1009
  readonly teleported?: boolean | undefined;
1011
1010
  readonly open?: boolean | undefined;
1011
+ readonly visible?: boolean | null | undefined;
1012
1012
  readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
1013
1013
  readonly arrowOffset?: number | undefined;
1014
1014
  readonly gpuAcceleration?: boolean | undefined;
@@ -1424,9 +1424,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
1424
1424
  readonly placement?: import("@popperjs/core").Placement | undefined;
1425
1425
  readonly strategy?: "fixed" | "absolute" | undefined;
1426
1426
  readonly effect?: "light" | "dark" | undefined;
1427
- readonly visible?: boolean | null | undefined;
1428
1427
  readonly teleported?: boolean | undefined;
1429
1428
  readonly open?: boolean | undefined;
1429
+ readonly visible?: boolean | null | undefined;
1430
1430
  readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
1431
1431
  readonly arrowOffset?: number | undefined;
1432
1432
  readonly gpuAcceleration?: boolean | undefined;
@@ -1916,9 +1916,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
1916
1916
  readonly placement?: import("@popperjs/core").Placement | undefined;
1917
1917
  readonly strategy?: "fixed" | "absolute" | undefined;
1918
1918
  readonly effect?: "light" | "dark" | undefined;
1919
- readonly visible?: boolean | null | undefined;
1920
1919
  readonly teleported?: boolean | undefined;
1921
1920
  readonly open?: boolean | undefined;
1921
+ readonly visible?: boolean | null | undefined;
1922
1922
  readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
1923
1923
  readonly arrowOffset?: number | undefined;
1924
1924
  readonly gpuAcceleration?: boolean | undefined;
@@ -2334,9 +2334,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
2334
2334
  readonly placement?: import("@popperjs/core").Placement | undefined;
2335
2335
  readonly strategy?: "fixed" | "absolute" | undefined;
2336
2336
  readonly effect?: "light" | "dark" | undefined;
2337
- readonly visible?: boolean | null | undefined;
2338
2337
  readonly teleported?: boolean | undefined;
2339
2338
  readonly open?: boolean | undefined;
2339
+ readonly visible?: boolean | null | undefined;
2340
2340
  readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
2341
2341
  readonly arrowOffset?: number | undefined;
2342
2342
  readonly gpuAcceleration?: boolean | undefined;
@@ -24,12 +24,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
24
24
  autofocus: {
25
25
  type: import("vue").PropType<boolean>;
26
26
  };
27
- icon: {
28
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
29
- };
30
27
  dark: {
31
28
  type: import("vue").PropType<boolean>;
32
29
  };
30
+ icon: {
31
+ type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
32
+ };
33
33
  loading: {
34
34
  type: import("vue").PropType<boolean>;
35
35
  };
@@ -114,12 +114,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
114
114
  autofocus: {
115
115
  type: import("vue").PropType<boolean>;
116
116
  };
117
- icon: {
118
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
119
- };
120
117
  dark: {
121
118
  type: import("vue").PropType<boolean>;
122
119
  };
120
+ icon: {
121
+ type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
122
+ };
123
123
  loading: {
124
124
  type: import("vue").PropType<boolean>;
125
125
  };
@@ -199,12 +199,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
199
199
  autofocus: {
200
200
  type: import("vue").PropType<boolean>;
201
201
  };
202
- icon: {
203
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
204
- };
205
202
  dark: {
206
203
  type: import("vue").PropType<boolean>;
207
204
  };
205
+ icon: {
206
+ type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
207
+ };
208
208
  loading: {
209
209
  type: import("vue").PropType<boolean>;
210
210
  };