vft 0.0.515 → 0.0.516

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 (55) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/icon/icon.vue.d.ts +5 -1
  3. package/es/components/icon/icon.vue2.js +23 -21
  4. package/es/components/icon/index.d.ts +6 -2
  5. package/es/components/modal/modal.vue2.js +31 -30
  6. package/es/components/select/index.d.ts +6 -2
  7. package/es/components/select/select.vue.d.ts +6 -2
  8. package/es/components/table/index.d.ts +12 -12
  9. package/es/components/table/table.vue2.js +126 -121
  10. package/es/components/table/vxe-runtime.d.ts +16 -0
  11. package/es/components/table/vxe-runtime.js +16 -0
  12. package/es/components/tree/tree-node.vue.d.ts +6 -2
  13. package/es/components/upload/index.d.ts +2 -2
  14. package/es/components/upload/upload.vue.d.ts +2 -2
  15. package/es/hooks/use-z-index/index.js +3 -3
  16. package/es/package.json.d.ts +1 -1
  17. package/es/package.json.js +1 -1
  18. package/lib/components/icon/icon.vue.d.ts +5 -1
  19. package/lib/components/icon/icon.vue2.cjs +1 -1
  20. package/lib/components/icon/index.d.ts +6 -2
  21. package/lib/components/modal/modal.vue2.cjs +1 -1
  22. package/lib/components/select/index.d.ts +6 -2
  23. package/lib/components/select/select.vue.d.ts +6 -2
  24. package/lib/components/table/index.d.ts +12 -12
  25. package/lib/components/table/table.vue2.cjs +1 -1
  26. package/lib/components/table/vxe-runtime.cjs +1 -0
  27. package/lib/components/table/vxe-runtime.d.ts +16 -0
  28. package/lib/components/tree/tree-node.vue.d.ts +6 -2
  29. package/lib/components/upload/index.d.ts +2 -2
  30. package/lib/components/upload/upload.vue.d.ts +2 -2
  31. package/lib/package.json.cjs +1 -1
  32. package/lib/package.json.d.ts +1 -1
  33. package/package.json +3 -3
  34. package/theme-style/index.css +1 -1
  35. package/theme-style/vft-autocomplete.css +1 -1
  36. package/theme-style/vft-button-group.css +1 -1
  37. package/theme-style/vft-button.css +1 -1
  38. package/theme-style/vft-cascader.css +1 -1
  39. package/theme-style/vft-checkbox.css +1 -1
  40. package/theme-style/vft-color-picker.css +1 -1
  41. package/theme-style/vft-date-picker.css +1 -1
  42. package/theme-style/vft-dropdown.css +1 -1
  43. package/theme-style/vft-input.css +1 -1
  44. package/theme-style/vft-link.css +1 -1
  45. package/theme-style/vft-md-container.css +1 -1
  46. package/theme-style/vft-md-vue-playground.css +1 -1
  47. package/theme-style/vft-multiple-tabs.css +1 -1
  48. package/theme-style/vft-popper.css +1 -1
  49. package/theme-style/vft-radio.css +1 -1
  50. package/theme-style/vft-result.css +1 -1
  51. package/theme-style/vft-select.css +1 -1
  52. package/theme-style/vft-tag.css +1 -1
  53. package/theme-style/vft-time-picker.css +1 -1
  54. package/theme-style/vft-time-select.css +1 -1
  55. package/web-types.json +1 -1
@@ -1,5 +1,9 @@
1
1
  import type { IconProps } from './types';
2
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IconProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IconProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IconProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ error: (event: Event) => void;
4
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IconProps>>> & Readonly<{
5
+ onError?: ((event: Event) => any) | undefined;
6
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3
7
  export default _default;
4
8
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
5
9
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,20 +1,20 @@
1
- import { defineComponent as f, computed as t, openBlock as c, createElementBlock as s, normalizeStyle as l, normalizeClass as m, unref as i } from "vue";
2
- import { isString as y } from "@vft/utils";
1
+ import { defineComponent as u, computed as t, openBlock as l, createElementBlock as c, normalizeStyle as m, normalizeClass as f, unref as i } from "vue";
2
+ import { isString as z } from "@vft/utils";
3
3
  import "../config-provider/index.js";
4
4
  import "@vueuse/core";
5
- import { addUnit as C } from "../../utils/helper.js";
6
- import { generateCssVars as g } from "../../utils/ns-cover.js";
5
+ import { addUnit as I } from "../../utils/helper.js";
6
+ import { generateCssVars as h } from "../../utils/ns-cover.js";
7
7
  import "lodash-es";
8
8
  import "../form/index.js";
9
- import { useNamespace as p } from "../../hooks/use-namespace/index.js";
9
+ import { useNamespace as k } from "../../hooks/use-namespace/index.js";
10
10
  import "../../hooks/use-model-toggle/index.js";
11
11
  import "@popperjs/core";
12
12
  import "../../hooks/use-z-index/index.js";
13
- import { useGlobalConfig as h } from "../config-provider/hooks/use-global-config.js";
14
- const z = ["src"], I = f({
13
+ import { useGlobalConfig as x } from "../config-provider/hooks/use-global-config.js";
14
+ const B = ["src"], S = u({
15
15
  name: "vft-icon"
16
- }), w = /* @__PURE__ */ f({
17
- ...I,
16
+ }), F = /* @__PURE__ */ u({
17
+ ...S,
18
18
  props: {
19
19
  icon: {},
20
20
  size: {},
@@ -24,11 +24,12 @@ const z = ["src"], I = f({
24
24
  pointer: { type: Boolean },
25
25
  hoverColor: {}
26
26
  },
27
- setup(o) {
28
- const n = p("icon"), e = h(), r = t(
29
- () => g(
27
+ emits: ["error"],
28
+ setup(o, { emit: v }) {
29
+ const d = v, n = k("icon"), e = x(), r = t(
30
+ () => h(
30
31
  {
31
- size: C(o.size),
32
+ size: I(o.size),
32
33
  color: o.color,
33
34
  hoverColor: o.hoverColor,
34
35
  cursor: o.pointer ? "pointer" : void 0,
@@ -36,20 +37,21 @@ const z = ["src"], I = f({
36
37
  },
37
38
  "icon"
38
39
  )
39
- ), u = (a) => a?.includes("/"), v = t(() => u(o.icon)), d = t(() => e.value?.iconifyPrefixClass && o.icon && y(o.icon) ? o.icon.startsWith(e.value?.iconifyPrefixClass) : !1).value ? "" : e.value?.iconfontClass || "";
40
- return (a, x) => v.value ? (c(), s("img", {
40
+ ), y = (s) => s?.includes("/"), C = t(() => y(o.icon)), g = t(() => e.value?.iconifyPrefixClass && o.icon && z(o.icon) ? o.icon.startsWith(e.value?.iconifyPrefixClass) : !1).value ? "" : e.value?.iconfontClass || "";
41
+ return (s, a) => C.value ? (l(), c("img", {
41
42
  key: 0,
42
- class: m(i(n).e("image")),
43
+ class: f(i(n).e("image")),
43
44
  src: o.icon,
44
45
  alt: "",
45
- style: l(r.value)
46
- }, null, 14, z)) : (c(), s("i", {
46
+ style: m(r.value),
47
+ onError: a[0] || (a[0] = (p) => d("error", p))
48
+ }, null, 46, B)) : (l(), c("i", {
47
49
  key: 1,
48
- class: m([i(n).b(), o.icon, i(d)]),
49
- style: l(r.value)
50
+ class: f([i(n).b(), o.icon, i(g)]),
51
+ style: m(r.value)
50
52
  }, null, 6));
51
53
  }
52
54
  });
53
55
  export {
54
- w as default
56
+ F as default
55
57
  };
@@ -21,7 +21,9 @@ export declare const VftIcon: import("vft/es/utils").SFCWithInstall<import("vue"
21
21
  hoverColor: {
22
22
  type: import("vue").PropType<string>;
23
23
  };
24
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ error: (event: Event) => void;
26
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
25
27
  icon: {
26
28
  type: import("vue").PropType<string>;
27
29
  required: true;
@@ -44,6 +46,8 @@ export declare const VftIcon: import("vft/es/utils").SFCWithInstall<import("vue"
44
46
  hoverColor: {
45
47
  type: import("vue").PropType<string>;
46
48
  };
47
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>> & Record<string, any>;
49
+ }>> & Readonly<{
50
+ onError?: ((event: Event) => any) | undefined;
51
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>> & Record<string, any>;
48
52
  export * from './types';
49
53
  export default VftIcon;
@@ -1,4 +1,4 @@
1
- import { defineComponent as A, useAttrs as $, ref as m, getCurrentInstance as M, computed as d, unref as l, watchEffect as P, watch as T, nextTick as B, openBlock as y, createBlock as C, mergeProps as R, createSlots as S, withCtx as g, renderSlot as w, createCommentVNode as D } from "vue";
1
+ import { defineComponent as A, useAttrs as $, ref as m, getCurrentInstance as M, computed as d, unref as t, watchEffect as P, watch as T, nextTick as B, openBlock as C, createBlock as g, mergeProps as R, createSlots as S, withCtx as w, renderSlot as h, createCommentVNode as D } from "vue";
2
2
  import { VftDialog as G } from "../dialog/index.js";
3
3
  import { deepMerge as I, isFunction as x } from "@vft/utils";
4
4
  import E from "./modal-footer-action.vue2.js";
@@ -47,75 +47,76 @@ const W = /* @__PURE__ */ A({
47
47
  actionRowOptions: {}
48
48
  },
49
49
  emits: ["visible-change", "close", "ok", "register", "update:modelValue", "submit", "open", "opened", "closed", "openAutoFocus", "closeAutoFocus"],
50
- setup(s, { emit: h }) {
51
- const n = s, t = h, V = $(), c = m(null), a = m(!1), u = m(null), f = {
50
+ setup(s, { emit: V }) {
51
+ const n = s, l = V, v = $(), c = m(null), a = m(!1), u = m(null), f = {
52
52
  setModalProps: p,
53
53
  emitVisible: void 0,
54
54
  redoModalHeight: () => {
55
55
  B(() => {
56
- l(u) && l(u).setModalHeight();
56
+ t(u) && t(u).setModalHeight();
57
57
  });
58
58
  }
59
59
  }, i = M();
60
- i && t("register", f, i.uid);
61
- const v = d(() => ({
60
+ i && l("register", f, i.uid);
61
+ const b = d(() => ({
62
62
  ...n,
63
- ...l(c)
63
+ ...t(c)
64
64
  })), O = d(() => ({
65
- ...V,
66
- ...l(v),
67
- modelValue: l(a)
65
+ ...v,
66
+ ...t(b),
67
+ modelValue: t(a)
68
68
  }));
69
69
  P(() => {
70
70
  a.value = !!n.modelValue;
71
71
  }), T(
72
- () => l(a),
72
+ () => t(a),
73
73
  (e) => {
74
- t("visible-change", e), t("update:modelValue", e), i && f.emitVisible && B(() => {
74
+ l("visible-change", e), l("update:modelValue", e), i && f.emitVisible && B(() => {
75
75
  f.emitVisible(e, i.uid);
76
76
  }), B(() => {
77
- n.scrollTop && e && l(u) && l(u).scrollTop();
77
+ n.scrollTop && e && t(u) && t(u).scrollTop();
78
78
  });
79
79
  },
80
80
  {
81
81
  immediate: !1
82
82
  }
83
83
  );
84
- async function b(e) {
84
+ async function y(e) {
85
85
  if (e?.stopPropagation(), n.closeFunc && x(n.closeFunc)) {
86
86
  await n.closeFunc() || p({ modelValue: !1 });
87
87
  return;
88
88
  }
89
- p({ modelValue: !1 }), t("close", e);
89
+ p({ modelValue: !1 }), l("close", e);
90
90
  }
91
91
  function p(e) {
92
- c.value = I(l(c) || {}, e), Reflect.has(e, "modelValue") && (a.value = !!e.modelValue);
92
+ c.value = I(t(c) || {}, e), Reflect.has(e, "modelValue") && (a.value = !!e.modelValue);
93
93
  }
94
94
  const F = d(() => ({
95
- onClick: (e) => b(e),
95
+ onClick: (e) => y(e),
96
96
  ...n.cancelButtonOptions
97
97
  })), k = d(() => ({
98
- onClick: () => t("submit"),
98
+ onClick: () => l("submit"),
99
+ loading: t(b).confirmLoading,
99
100
  ...n.submitButtonOptions
100
101
  }));
101
- return (e, o) => (y(), C(l(G), R(O.value, {
102
- onClose: b,
103
- onOpen: o[0] || (o[0] = (r) => t("open")),
104
- onOpened: o[1] || (o[1] = (r) => t("opened")),
105
- onClosed: o[2] || (o[2] = (r) => t("closed")),
106
- onOpenAutoFocus: o[3] || (o[3] = (r) => t("openAutoFocus")),
107
- onCloseAutoFocus: o[4] || (o[4] = (r) => t("closeAutoFocus"))
102
+ return (e, o) => (C(), g(t(G), R(O.value, {
103
+ onClose: y,
104
+ onOpen: o[0] || (o[0] = (r) => l("open")),
105
+ onOpened: o[1] || (o[1] = (r) => l("opened")),
106
+ onClosed: o[2] || (o[2] = (r) => l("closed")),
107
+ onOpenAutoFocus: o[3] || (o[3] = (r) => l("openAutoFocus")),
108
+ onCloseAutoFocus: o[4] || (o[4] = (r) => l("closeAutoFocus"))
108
109
  }), S({
109
- default: g(() => [
110
- w(e.$slots, "default")
110
+ default: w(() => [
111
+ h(e.$slots, "default")
111
112
  ]),
112
113
  _: 2
113
114
  }, [
114
115
  e.$slots.footer || s.showActionButtonGroup ? {
115
116
  name: "footer",
116
- fn: g(() => [
117
- w(e.$slots, "footer", {}, () => [
118
- s.showActionButtonGroup ? (y(), C(E, {
117
+ fn: w(() => [
118
+ h(e.$slots, "footer", {}, () => [
119
+ s.showActionButtonGroup ? (C(), g(E, {
119
120
  key: 0,
120
121
  "show-cancel-button": s.showCancelButton,
121
122
  "show-submit-button": s.showSubmitButton,
@@ -2764,7 +2764,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
2764
2764
  hoverColor: {
2765
2765
  type: import("vue").PropType<string>;
2766
2766
  };
2767
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
2767
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2768
+ error: (event: Event) => void;
2769
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
2768
2770
  icon: {
2769
2771
  type: import("vue").PropType<string>;
2770
2772
  required: true;
@@ -2787,7 +2789,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
2787
2789
  hoverColor: {
2788
2790
  type: import("vue").PropType<string>;
2789
2791
  };
2790
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>> & Record<string, any>;
2792
+ }>> & Readonly<{
2793
+ onError?: ((event: Event) => any) | undefined;
2794
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>> & Record<string, any>;
2791
2795
  }, {
2792
2796
  ClickOutside: import("vue").ObjectDirective<any, any, string, any>;
2793
2797
  }, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -2760,7 +2760,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2760
2760
  hoverColor: {
2761
2761
  type: import("vue").PropType<string>;
2762
2762
  };
2763
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
2763
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2764
+ error: (event: Event) => void;
2765
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
2764
2766
  icon: {
2765
2767
  type: import("vue").PropType<string>;
2766
2768
  required: true;
@@ -2783,7 +2785,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2783
2785
  hoverColor: {
2784
2786
  type: import("vue").PropType<string>;
2785
2787
  };
2786
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>> & Record<string, any>;
2788
+ }>> & Readonly<{
2789
+ onError?: ((event: Event) => any) | undefined;
2790
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>> & Record<string, any>;
2787
2791
  }, {
2788
2792
  ClickOutside: import("vue").ObjectDirective<any, any, string, any>;
2789
2793
  }, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -98,7 +98,7 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
98
98
  type: import("vue").PropType<import("vxe-table").VxeGridPropTypes.ZoomConfig>;
99
99
  };
100
100
  size: {
101
- type: import("vue").PropType<import("vxe-table").VxeComponentSizeType>;
101
+ type: import("vue").PropType<import("vxe-pc-ui").VxeComponentSizeType>;
102
102
  };
103
103
  id: {
104
104
  type: import("vue").PropType<import("vxe-table").VxeTablePropTypes.ID<any>>;
@@ -131,13 +131,13 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
131
131
  type: import("vue").PropType<boolean>;
132
132
  };
133
133
  align: {
134
- type: import("vue").PropType<import("vxe-table").VxeComponentAlignType>;
134
+ type: import("vue").PropType<import("vxe-pc-ui").VxeComponentAlignType>;
135
135
  };
136
136
  headerAlign: {
137
- type: import("vue").PropType<import("vxe-table").VxeComponentAlignType>;
137
+ type: import("vue").PropType<import("vxe-pc-ui").VxeComponentAlignType>;
138
138
  };
139
139
  footerAlign: {
140
- type: import("vue").PropType<import("vxe-table").VxeComponentAlignType>;
140
+ type: import("vue").PropType<import("vxe-pc-ui").VxeComponentAlignType>;
141
141
  };
142
142
  showHeader: {
143
143
  type: import("vue").PropType<boolean>;
@@ -1020,7 +1020,7 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
1020
1020
  type: import("vue").PropType<import("vxe-table").VxeGridPropTypes.ZoomConfig>;
1021
1021
  };
1022
1022
  size: {
1023
- type: import("vue").PropType<import("vxe-table").VxeComponentSizeType>;
1023
+ type: import("vue").PropType<import("vxe-pc-ui").VxeComponentSizeType>;
1024
1024
  };
1025
1025
  id: {
1026
1026
  type: import("vue").PropType<import("vxe-table").VxeTablePropTypes.ID<any>>;
@@ -1053,13 +1053,13 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
1053
1053
  type: import("vue").PropType<boolean>;
1054
1054
  };
1055
1055
  align: {
1056
- type: import("vue").PropType<import("vxe-table").VxeComponentAlignType>;
1056
+ type: import("vue").PropType<import("vxe-pc-ui").VxeComponentAlignType>;
1057
1057
  };
1058
1058
  headerAlign: {
1059
- type: import("vue").PropType<import("vxe-table").VxeComponentAlignType>;
1059
+ type: import("vue").PropType<import("vxe-pc-ui").VxeComponentAlignType>;
1060
1060
  };
1061
1061
  footerAlign: {
1062
- type: import("vue").PropType<import("vxe-table").VxeComponentAlignType>;
1062
+ type: import("vue").PropType<import("vxe-pc-ui").VxeComponentAlignType>;
1063
1063
  };
1064
1064
  showHeader: {
1065
1065
  type: import("vue").PropType<boolean>;
@@ -1826,7 +1826,7 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
1826
1826
  type: import("vue").PropType<import("vxe-table").VxeGridPropTypes.ZoomConfig>;
1827
1827
  };
1828
1828
  size: {
1829
- type: import("vue").PropType<import("vxe-table").VxeComponentSizeType>;
1829
+ type: import("vue").PropType<import("vxe-pc-ui").VxeComponentSizeType>;
1830
1830
  };
1831
1831
  id: {
1832
1832
  type: import("vue").PropType<import("vxe-table").VxeTablePropTypes.ID<any>>;
@@ -1859,13 +1859,13 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
1859
1859
  type: import("vue").PropType<boolean>;
1860
1860
  };
1861
1861
  align: {
1862
- type: import("vue").PropType<import("vxe-table").VxeComponentAlignType>;
1862
+ type: import("vue").PropType<import("vxe-pc-ui").VxeComponentAlignType>;
1863
1863
  };
1864
1864
  headerAlign: {
1865
- type: import("vue").PropType<import("vxe-table").VxeComponentAlignType>;
1865
+ type: import("vue").PropType<import("vxe-pc-ui").VxeComponentAlignType>;
1866
1866
  };
1867
1867
  footerAlign: {
1868
- type: import("vue").PropType<import("vxe-table").VxeComponentAlignType>;
1868
+ type: import("vue").PropType<import("vxe-pc-ui").VxeComponentAlignType>;
1869
1869
  };
1870
1870
  showHeader: {
1871
1871
  type: import("vue").PropType<boolean>;