vft 0.0.166 → 0.0.168

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 (90) hide show
  1. package/es/component.js +84 -81
  2. package/es/components/backtop/backtop.vue2.js +3 -2
  3. package/es/components/button/use-button.js +3 -3
  4. package/es/components/context-menu/context-menu.vue2.js +3 -2
  5. package/es/components/footer-layout/footer-layout.vue2.js +3 -2
  6. package/es/components/header-layout/header-layout.vue2.js +3 -2
  7. package/es/components/icon/icon.vue.d.ts +1 -12
  8. package/es/components/icon/index.d.ts +1 -2
  9. package/es/components/icon/types.d.ts +12 -0
  10. package/es/components/icon/types.js +1 -0
  11. package/es/components/index.d.ts +1 -0
  12. package/es/components/index.js +190 -187
  13. package/es/components/md-container/md-container.vue2.js +3 -2
  14. package/es/components/menu/menu-item.vue2.js +3 -2
  15. package/es/components/menu/sub-menu.vue2.js +3 -2
  16. package/es/components/modal/modal-footer-action.vue2.js +3 -2
  17. package/es/components/multiple-tabs/multiple-tabs.vue2.js +3 -2
  18. package/es/components/result/result.vue2.js +3 -2
  19. package/es/components/side-menu/side-menu.vue2.js +3 -2
  20. package/es/components/super-form/component-map.js +11 -10
  21. package/es/components/super-form/super-form-action.vue2.js +3 -2
  22. package/es/components/super-form/super-form-item.vue2.js +3 -2
  23. package/es/components/super-form/super-form.vue2.js +3 -2
  24. package/es/components/table/field.js +19 -18
  25. package/es/components/tabs/tab-nav.vue2.js +3 -2
  26. package/es/components/timeline/index.d.ts +263 -0
  27. package/es/components/timeline/index.js +16 -0
  28. package/es/components/timeline/style/css.d.ts +1 -0
  29. package/es/components/timeline/style/css.js +2 -0
  30. package/es/components/timeline/style/index.d.ts +1 -0
  31. package/es/components/timeline/style/index.js +2 -0
  32. package/es/components/timeline/timeline-item.vue.d.ts +31 -0
  33. package/es/components/timeline/timeline-item.vue.js +4 -0
  34. package/es/components/timeline/timeline-item.vue2.js +83 -0
  35. package/es/components/timeline/timeline.vue.d.ts +2 -0
  36. package/es/components/timeline/timeline.vue.js +4 -0
  37. package/es/components/timeline/timeline.vue2.js +20 -0
  38. package/es/components/timeline-item/style/css.d.ts +1 -0
  39. package/es/components/timeline-item/style/css.js +2 -0
  40. package/es/components/timeline-item/style/index.d.ts +1 -0
  41. package/es/components/timeline-item/style/index.js +2 -0
  42. package/es/index.js +295 -292
  43. package/es/package.json.d.ts +1 -1
  44. package/es/package.json.js +1 -1
  45. package/lib/component.cjs +1 -1
  46. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  47. package/lib/components/button/use-button.cjs +1 -1
  48. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  49. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  50. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  51. package/lib/components/icon/icon.vue.d.ts +1 -12
  52. package/lib/components/icon/index.d.ts +1 -2
  53. package/lib/components/icon/types.cjs +1 -0
  54. package/lib/components/icon/types.d.ts +12 -0
  55. package/lib/components/index.cjs +1 -1
  56. package/lib/components/index.d.ts +1 -0
  57. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  58. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  59. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  60. package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
  61. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  62. package/lib/components/result/result.vue2.cjs +1 -1
  63. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  64. package/lib/components/super-form/component-map.cjs +1 -1
  65. package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
  66. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  67. package/lib/components/super-form/super-form.vue2.cjs +1 -1
  68. package/lib/components/table/field.cjs +1 -1
  69. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  70. package/lib/components/timeline/index.cjs +1 -0
  71. package/lib/components/timeline/index.d.ts +263 -0
  72. package/lib/components/timeline/style/css.cjs +1 -0
  73. package/lib/components/timeline/style/css.d.ts +1 -0
  74. package/lib/components/timeline/style/index.cjs +1 -0
  75. package/lib/components/timeline/style/index.d.ts +1 -0
  76. package/lib/components/timeline/timeline-item.vue.cjs +1 -0
  77. package/lib/components/timeline/timeline-item.vue.d.ts +31 -0
  78. package/lib/components/timeline/timeline-item.vue2.cjs +1 -0
  79. package/lib/components/timeline/timeline.vue.cjs +1 -0
  80. package/lib/components/timeline/timeline.vue.d.ts +2 -0
  81. package/lib/components/timeline/timeline.vue2.cjs +1 -0
  82. package/lib/components/timeline-item/style/css.cjs +1 -0
  83. package/lib/components/timeline-item/style/css.d.ts +1 -0
  84. package/lib/components/timeline-item/style/index.cjs +1 -0
  85. package/lib/components/timeline-item/style/index.d.ts +1 -0
  86. package/lib/index.cjs +1 -1
  87. package/lib/package.json.cjs +1 -1
  88. package/lib/package.json.d.ts +1 -1
  89. package/package.json +4 -4
  90. package/web-types.json +1 -1
package/es/component.js CHANGED
@@ -12,8 +12,8 @@ import { VftClampTooltip as d } from "./components/clamp-tooltip/index.js";
12
12
  import { VftCol as c } from "./components/col/index.js";
13
13
  import { VftCollapseTransition as C } from "./components/collapse-transition/index.js";
14
14
  import { VftColorPicker as s } from "./components/color-picker/index.js";
15
- import { VftConfigProvider as M } from "./components/config-provider/index.js";
16
- import { VftAside as T, VftContainer as I, VftFooter as g, VftHeader as P, VftMain as S } from "./components/container/index.js";
15
+ import { VftConfigProvider as T } from "./components/config-provider/index.js";
16
+ import { VftAside as I, VftContainer as M, VftFooter as g, VftHeader as P, VftMain as S } from "./components/container/index.js";
17
17
  import { VftDatePicker as b } from "./components/date-picker/index.js";
18
18
  import { VftDateTimeSelect as k } from "./components/date-time-select/index.js";
19
19
  import { VftDescriptions as D, VftDescriptionsItem as w } from "./components/descriptions/index.js";
@@ -41,98 +41,99 @@ import { VftLogo as Y } from "./components/logo/index.js";
41
41
  import { VftMdCodeDemo as Z } from "./components/md-code-demo/index.js";
42
42
  import { VftMdCodeTabs as _ } from "./components/md-code-tabs/index.js";
43
43
  import { VftCarousel as $, VftCarouselItem as oo } from "./components/carousel/index.js";
44
- import { VftMdComment as to } from "./components/md-comment/index.js";
45
- import { VftMdContainer as ro } from "./components/md-container/index.js";
46
- import { VftMdTabs as mo } from "./components/md-tabs/index.js";
47
- import { VftMdVuePlayground as fo } from "./components/md-vue-playground/index.js";
48
- import { VftMenu as io, VftMenuItem as po, VftMenuItemGroup as Vo, VftSubMenu as eo } from "./components/menu/index.js";
49
- import { VftModal as ao } from "./components/modal/index.js";
50
- import { VftMultipleTabs as no } from "./components/multiple-tabs/index.js";
51
- import { VftOverlay as lo } from "./components/overlay/index.js";
52
- import { VftPageWrapper as uo } from "./components/page-wrapper/index.js";
53
- import { VftPagination as co } from "./components/pagination/index.js";
54
- import { VftPopconfirm as Co } from "./components/popconfirm/index.js";
55
- import { VftPopover as so } from "./components/popover/index.js";
44
+ import { VftTimeline as to, VftTimelineItem as ro } from "./components/timeline/index.js";
45
+ import { VftMdComment as mo } from "./components/md-comment/index.js";
46
+ import { VftMdContainer as fo } from "./components/md-container/index.js";
47
+ import { VftMdTabs as io } from "./components/md-tabs/index.js";
48
+ import { VftMdVuePlayground as po } from "./components/md-vue-playground/index.js";
49
+ import { VftMenu as Vo, VftMenuItem as eo, VftMenuItemGroup as ao, VftSubMenu as no } from "./components/menu/index.js";
50
+ import { VftModal as lo } from "./components/modal/index.js";
51
+ import { VftMultipleTabs as uo } from "./components/multiple-tabs/index.js";
52
+ import { VftOverlay as co } from "./components/overlay/index.js";
53
+ import { VftPageWrapper as Co } from "./components/page-wrapper/index.js";
54
+ import { VftPagination as so } from "./components/pagination/index.js";
55
+ import { VftPopconfirm as To } from "./components/popconfirm/index.js";
56
+ import { VftPopover as Io } from "./components/popover/index.js";
56
57
  import { VftPopper as Mo } from "./components/popper/index.js";
57
- import { VftProgress as To } from "./components/progress/index.js";
58
- import { VftQrcode as Io } from "./components/qrcode/index.js";
59
- import { VftRadioButton as go, VftRadio as Po, VftRadioGroup as So } from "./components/radio/index.js";
60
- import { VftResult as bo } from "./components/result/index.js";
61
- import { VftRouterViewContent as ko } from "./components/router-view-content/index.js";
62
- import { VftRow as Do } from "./components/row/index.js";
63
- import { VftScrollbar as wo } from "./components/scrollbar/index.js";
64
- import { VftSearch as yo } from "./components/search/index.js";
65
- import { VftSelect as ho } from "./components/select/index.js";
66
- import { VftSideMenu as xo } from "./components/side-menu/index.js";
67
- import { VftSkeleton as Fo, VftSkeletonItem as Lo } from "./components/skeleton/index.js";
68
- import { VftSlider as Ro } from "./components/slider/index.js";
69
- import { VftSpace as vo } from "./components/space/index.js";
70
- import { VftSuperForm as Bo } from "./components/super-form/index.js";
71
- import { VftSwitch as Ao } from "./components/switch/index.js";
72
- import { VftTable as Go } from "./components/table/index.js";
73
- import { VftTabs as Ho, VftTabPane as Eo } from "./components/tabs/index.js";
74
- import { VftTag as zo } from "./components/tag/index.js";
75
- import { VftTimePicker as No } from "./components/time-picker/index.js";
76
- import { VftTooltip as Oo } from "./components/tooltip/index.js";
77
- import { VftTree as Qo } from "./components/tree/index.js";
78
- import { VftUpload as Uo } from "./components/upload/index.js";
79
- import { VftVerifyCode as Wo } from "./components/verify-code/index.js";
80
- import { VftProgressI as jo } from "./components/progress-i/index.js";
81
- const Tr = [
58
+ import { VftProgress as go } from "./components/progress/index.js";
59
+ import { VftQrcode as Po } from "./components/qrcode/index.js";
60
+ import { VftRadioButton as So, VftRadio as bo, VftRadioGroup as ko } from "./components/radio/index.js";
61
+ import { VftResult as Do } from "./components/result/index.js";
62
+ import { VftRouterViewContent as wo } from "./components/router-view-content/index.js";
63
+ import { VftRow as yo } from "./components/row/index.js";
64
+ import { VftScrollbar as ho } from "./components/scrollbar/index.js";
65
+ import { VftSearch as xo } from "./components/search/index.js";
66
+ import { VftSelect as Fo } from "./components/select/index.js";
67
+ import { VftSideMenu as Lo } from "./components/side-menu/index.js";
68
+ import { VftSkeleton as Ro, VftSkeletonItem as vo } from "./components/skeleton/index.js";
69
+ import { VftSlider as Bo } from "./components/slider/index.js";
70
+ import { VftSpace as Ao } from "./components/space/index.js";
71
+ import { VftSuperForm as Go } from "./components/super-form/index.js";
72
+ import { VftSwitch as Ho } from "./components/switch/index.js";
73
+ import { VftTable as Eo } from "./components/table/index.js";
74
+ import { VftTabs as zo, VftTabPane as No } from "./components/tabs/index.js";
75
+ import { VftTag as Oo } from "./components/tag/index.js";
76
+ import { VftTimePicker as Qo } from "./components/time-picker/index.js";
77
+ import { VftTooltip as Uo } from "./components/tooltip/index.js";
78
+ import { VftTree as Wo } from "./components/tree/index.js";
79
+ import { VftUpload as jo } from "./components/upload/index.js";
80
+ import { VftVerifyCode as qo } from "./components/verify-code/index.js";
81
+ import { VftProgressI as Jo } from "./components/progress-i/index.js";
82
+ const Pr = [
82
83
  // phone
83
- jo,
84
+ Jo,
84
85
  //
85
86
  $,
86
87
  oo,
87
- Bo,
88
- Uo,
89
- To,
88
+ Go,
89
+ jo,
90
+ go,
90
91
  J,
91
92
  t,
92
- Ro,
93
- ao,
93
+ Bo,
94
+ lo,
94
95
  // VftRate,
95
96
  x,
96
97
  o,
97
- ho,
98
- Co,
98
+ Fo,
99
+ To,
99
100
  p,
101
+ Ao,
102
+ Ro,
100
103
  vo,
101
- Fo,
102
- Lo,
103
- Qo,
104
+ Wo,
104
105
  V,
105
- ro,
106
+ fo,
106
107
  _,
107
108
  Z,
108
- fo,
109
- mo,
109
+ po,
110
+ io,
110
111
  b,
111
- to,
112
- T,
112
+ mo,
113
113
  I,
114
+ M,
114
115
  g,
115
116
  P,
116
117
  S,
117
118
  N,
118
119
  c,
119
- No,
120
- Do,
120
+ Qo,
121
+ yo,
121
122
  y,
122
123
  k,
123
124
  X,
124
125
  j,
125
- Go,
126
- Wo,
126
+ Eo,
127
+ qo,
127
128
  F,
128
129
  L,
129
130
  R,
130
- wo,
131
+ ho,
131
132
  s,
132
- Ao,
133
- go,
134
- Po,
133
+ Ho,
135
134
  So,
135
+ bo,
136
+ ko,
136
137
  e,
137
138
  a,
138
139
  n,
@@ -140,16 +141,16 @@ const Tr = [
140
141
  i,
141
142
  G,
142
143
  H,
143
- yo,
144
- uo,
144
+ xo,
145
+ Co,
145
146
  l,
146
147
  u,
147
148
  d,
148
- Io,
149
- lo,
150
- zo,
151
- xo,
149
+ Po,
152
150
  co,
151
+ Oo,
152
+ Lo,
153
+ so,
153
154
  K,
154
155
  q,
155
156
  W,
@@ -157,31 +158,33 @@ const Tr = [
157
158
  E,
158
159
  D,
159
160
  w,
160
- M,
161
+ T,
161
162
  m,
162
- ko,
163
+ wo,
163
164
  U,
164
165
  A,
165
166
  z,
166
167
  Y,
167
- no,
168
- io,
169
- po,
168
+ uo,
170
169
  Vo,
171
170
  eo,
171
+ ao,
172
+ no,
172
173
  C,
173
174
  h,
174
175
  O,
175
176
  r,
176
177
  v,
177
- bo,
178
- Ho,
179
- Eo,
180
- Oo,
181
- so,
178
+ Do,
179
+ zo,
180
+ No,
181
+ Uo,
182
+ Io,
182
183
  Mo,
183
- B
184
+ B,
185
+ to,
186
+ ro
184
187
  ];
185
188
  export {
186
- Tr as default
189
+ Pr as default
187
190
  };
@@ -79,6 +79,7 @@ import "../progress/index.js";
79
79
  import "../super-form/index.js";
80
80
  import "../upload/index.js";
81
81
  import "../carousel/index.js";
82
+ import "../timeline/index.js";
82
83
  import "../md-code-demo/index.js";
83
84
  import "../md-code-tabs/index.js";
84
85
  import "../md-comment/index.js";
@@ -100,7 +101,7 @@ const i = (
100
101
  I("backtop")
101
102
  ), P = c({
102
103
  name: i.b()
103
- }), xo = /* @__PURE__ */ c({
104
+ }), zo = /* @__PURE__ */ c({
104
105
  ...P,
105
106
  props: {
106
107
  visibilityHeight: { default: 200 },
@@ -143,5 +144,5 @@ const i = (
143
144
  }
144
145
  });
145
146
  export {
146
- xo as default
147
+ zo as default
147
148
  };
@@ -3,11 +3,11 @@ import "../form/index.js";
3
3
  import { useThrottleFn as T } from "@vueuse/core";
4
4
  import { inject as _, computed as i, ref as k, useSlots as p, Text as I } from "vue";
5
5
  import { buttonGroupContextKey as S } from "./constants.js";
6
- import { useGlobalConfig as z } from "../config-provider/hooks/use-global-config.js";
7
- import { useFormItem as C } from "../form/hooks/use-form-item.js";
6
+ import { useFormItem as z } from "../form/hooks/use-form-item.js";
7
+ import { useGlobalConfig as C } from "../config-provider/hooks/use-global-config.js";
8
8
  import { useFormSize as D, useFormDisabled as j } from "../form/hooks/use-form-common-props.js";
9
9
  const H = (t, u) => {
10
- const o = _(S, void 0), m = z("button"), { form: s } = C(), d = D(i(() => o == null ? void 0 : o.size)), c = j(), f = k(), r = p(), h = i(() => t.type || (o == null ? void 0 : o.type) || ""), g = i(
10
+ const o = _(S, void 0), m = C("button"), { form: s } = z(), d = D(i(() => o == null ? void 0 : o.size)), c = j(), f = k(), r = p(), h = i(() => t.type || (o == null ? void 0 : o.type) || ""), g = i(
11
11
  () => {
12
12
  var e;
13
13
  return t.autoInsertSpace ?? ((e = m.value) == null ? void 0 : e.autoInsertSpace) ?? !1;
@@ -79,6 +79,7 @@ import "../progress/index.js";
79
79
  import "../super-form/index.js";
80
80
  import "../upload/index.js";
81
81
  import "../carousel/index.js";
82
+ import "../timeline/index.js";
82
83
  import "../md-code-demo/index.js";
83
84
  import "../md-code-tabs/index.js";
84
85
  import "../md-comment/index.js";
@@ -99,7 +100,7 @@ const R = { class: "vft-sub-menu" }, v = (
99
100
  N("context-menu")
100
101
  ), T = f({
101
102
  name: v.b()
102
- }), $o = /* @__PURE__ */ f({
103
+ }), Bo = /* @__PURE__ */ f({
103
104
  ...T,
104
105
  props: {
105
106
  axis: {},
@@ -187,5 +188,5 @@ const R = { class: "vft-sub-menu" }, v = (
187
188
  }
188
189
  });
189
190
  export {
190
- $o as default
191
+ Bo as default
191
192
  };
@@ -79,6 +79,7 @@ import "../progress/index.js";
79
79
  import "../super-form/index.js";
80
80
  import "../upload/index.js";
81
81
  import "../carousel/index.js";
82
+ import "../timeline/index.js";
82
83
  import "../md-code-demo/index.js";
83
84
  import "../md-code-tabs/index.js";
84
85
  import "../md-comment/index.js";
@@ -99,7 +100,7 @@ const o = (
99
100
  c("footer-layout")
100
101
  ), f = e({
101
102
  name: o.b()
102
- }), io = /* @__PURE__ */ e({
103
+ }), mo = /* @__PURE__ */ e({
103
104
  ...f,
104
105
  setup(d) {
105
106
  return (i, u) => (s(), l(t(n), {
@@ -127,5 +128,5 @@ const o = (
127
128
  }
128
129
  });
129
130
  export {
130
- io as default
131
+ mo as default
131
132
  };
@@ -79,6 +79,7 @@ import "../progress/index.js";
79
79
  import "../super-form/index.js";
80
80
  import "../upload/index.js";
81
81
  import "../carousel/index.js";
82
+ import "../timeline/index.js";
82
83
  import "../md-code-demo/index.js";
83
84
  import "../md-code-tabs/index.js";
84
85
  import "../md-comment/index.js";
@@ -105,7 +106,7 @@ const $ = { class: "content" }, b = {
105
106
  k("header-layout")
106
107
  ), N = f({
107
108
  name: m.b()
108
- }), _t = /* @__PURE__ */ f({
109
+ }), ht = /* @__PURE__ */ f({
109
110
  ...N,
110
111
  props: {
111
112
  logoCfg: {}
@@ -151,5 +152,5 @@ const $ = { class: "content" }, b = {
151
152
  }
152
153
  });
153
154
  export {
154
- _t as default
155
+ ht as default
155
156
  };
@@ -1,15 +1,4 @@
1
- export interface IconProps {
2
- /** 图标名称或图片链接 */
3
- icon: string;
4
- /** 图标大小 */
5
- size?: string | number;
6
- /** 图标颜色 */
7
- color?: string;
8
- rotate?: boolean;
9
- rotateSpeed?: number;
10
- pointer?: boolean;
11
- hoverColor?: string;
12
- }
1
+ import { type IconProps } from './types';
13
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<IconProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IconProps>>>, {}, {}>;
14
3
  export default _default;
15
4
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,5 +1,3 @@
1
- import { type IconProps } from './icon.vue';
2
- export { type IconProps };
3
1
  export declare const VftIcon: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{
4
2
  icon: {
5
3
  type: globalThis.PropType<string>;
@@ -48,4 +46,5 @@ export declare const VftIcon: import("vft/es/utils").SFCWithInstall<import("vue"
48
46
  };
49
47
  }>>, {}, {}>> & Record<string, any>;
50
48
  export { VftIcon as Icon };
49
+ export * from './types';
51
50
  export default VftIcon;
@@ -0,0 +1,12 @@
1
+ export interface IconProps {
2
+ /** 图标名称或图片链接 */
3
+ icon: string;
4
+ /** 图标大小 */
5
+ size?: string | number;
6
+ /** 图标颜色 */
7
+ color?: string;
8
+ rotate?: boolean;
9
+ rotateSpeed?: number;
10
+ pointer?: boolean;
11
+ hoverColor?: string;
12
+ }
@@ -0,0 +1 @@
1
+
@@ -73,6 +73,7 @@ export * from './progress';
73
73
  export * from './super-form';
74
74
  export * from './upload';
75
75
  export * from './carousel';
76
+ export * from './timeline';
76
77
  export * from './md-code-demo';
77
78
  export * from './md-code-tabs';
78
79
  export * from './md-comment';