vft 0.0.397 → 0.0.399
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.
- package/dist/index.css +1 -1
- package/es/component.js +83 -81
- package/es/components/carousel/use-carousel.js +1 -1
- package/es/components/client-only/client-only.vue.d.ts +12 -0
- package/es/components/client-only/client-only.vue.js +4 -0
- package/es/components/client-only/client-only.vue2.js +13 -0
- package/es/components/client-only/index.d.ts +19 -0
- package/es/components/client-only/index.js +13 -0
- package/es/components/client-only/style/css.d.ts +1 -0
- package/es/components/client-only/style/css.js +2 -0
- package/es/components/client-only/style/index.d.ts +1 -0
- package/es/components/client-only/style/index.js +2 -0
- package/es/components/config-provider/hooks/use-global-config.js +3 -3
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +391 -389
- package/es/components/input/input.vue2.js +4 -4
- package/es/components/input-tag/composables/use-input-tag.js +1 -1
- package/es/components/side-menu/side-menu.vue2.js +87 -88
- package/es/components/skeleton/skeleton.vue.d.ts +0 -1
- package/es/components/skeleton/skeleton.vue2.js +0 -1
- package/es/components/super-form/super-form-item.vue2.js +4 -3
- package/es/components/table/table.vue2.js +123 -118
- package/es/index.js +1 -0
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/vue/vnode.js +1 -1
- package/lib/component.cjs +1 -1
- package/lib/components/client-only/client-only.vue.cjs +1 -0
- package/lib/components/client-only/client-only.vue.d.ts +12 -0
- package/lib/components/client-only/client-only.vue2.cjs +1 -0
- package/lib/components/client-only/index.cjs +1 -0
- package/lib/components/client-only/index.d.ts +19 -0
- package/lib/components/client-only/style/css.cjs +1 -0
- package/lib/components/client-only/style/css.d.ts +1 -0
- package/lib/components/client-only/style/index.cjs +1 -0
- package/lib/components/client-only/style/index.d.ts +1 -0
- package/lib/components/index.cjs +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/skeleton/skeleton.vue.d.ts +0 -1
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +5 -5
- package/theme-style/index.css +1 -1
- package/theme-style/src/client-only.scss +0 -0
- package/theme-style/src/index.scss +1 -0
- package/theme-style/src/tabs.scss +0 -5
- package/theme-style/vft-client-only.css +0 -0
- package/theme-style/vft-tabs.css +1 -1
- package/web-types.json +1 -1
package/es/component.js
CHANGED
|
@@ -26,10 +26,10 @@ import { VftDivider as L } from "./components/divider/index.js";
|
|
|
26
26
|
import { VftDrawer as R } from "./components/drawer/index.js";
|
|
27
27
|
import { VftDropdownItem as x, VftDropdownMenu as A, VftDropdown as G } from "./components/dropdown/index.js";
|
|
28
28
|
import { VftEmpty as H } from "./components/empty/index.js";
|
|
29
|
-
import { VftFooterLayout as
|
|
30
|
-
import { VftForm as
|
|
31
|
-
import { VftFullScreen as
|
|
32
|
-
import { VftHeaderLayout as
|
|
29
|
+
import { VftFooterLayout as O } from "./components/footer-layout/index.js";
|
|
30
|
+
import { VftForm as W, VftFormItem as z } from "./components/form/index.js";
|
|
31
|
+
import { VftFullScreen as E } from "./components/full-screen/index.js";
|
|
32
|
+
import { VftHeaderLayout as N } from "./components/header-layout/index.js";
|
|
33
33
|
import { VftHorizontalMenu as Q } from "./components/horizontal-menu/index.js";
|
|
34
34
|
import { VftIcon as U } from "./components/icon/index.js";
|
|
35
35
|
import { VftIconText as j } from "./components/icon-text/index.js";
|
|
@@ -46,80 +46,81 @@ import { VftMdCodeTabs as ot } from "./components/md-code-tabs/index.js";
|
|
|
46
46
|
import { VftCarousel as rt, VftCarouselItem as mt } from "./components/carousel/index.js";
|
|
47
47
|
import { VftStep as ft, VftSteps as it } from "./components/steps/index.js";
|
|
48
48
|
import { VftTimeline as pt, VftTimelineItem as Vt } from "./components/timeline/index.js";
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
49
|
+
import { VftClientOnly as et } from "./components/client-only/index.js";
|
|
50
|
+
import { VftBreadcrumb as at, VftBreadcrumbItem as nt } from "./components/breadcrumb/index.js";
|
|
51
|
+
import { VftCollapse as lt, VftCollapseItem as ut } from "./components/collapse/index.js";
|
|
52
|
+
import { VftStatistic as dt } from "./components/statistic/index.js";
|
|
53
|
+
import { VftCountdown as ct } from "./components/countdown/index.js";
|
|
54
|
+
import { VftInputTag as st } from "./components/input-tag/index.js";
|
|
55
|
+
import { VftCascader as Ct } from "./components/cascader/index.js";
|
|
56
|
+
import { VftCascaderPanel as Tt } from "./components/cascader-panel/index.js";
|
|
57
|
+
import { VftMdComment as It } from "./components/md-comment/index.js";
|
|
58
|
+
import { VftMdContainer as St } from "./components/md-container/index.js";
|
|
59
|
+
import { VftMdTabs as gt } from "./components/md-tabs/index.js";
|
|
60
|
+
import { VftMdVuePlayground as Mt } from "./components/md-vue-playground/index.js";
|
|
61
|
+
import { VftMenu as bt, VftMenuItem as Pt, VftMenuItemGroup as kt, VftSubMenu as Dt } from "./components/menu/index.js";
|
|
62
|
+
import { VftModal as wt } from "./components/modal/index.js";
|
|
63
|
+
import { VftMultipleTabs as yt } from "./components/multiple-tabs/index.js";
|
|
64
|
+
import { VftOverlay as Bt } from "./components/overlay/index.js";
|
|
65
|
+
import { VftPageWrapper as ht } from "./components/page-wrapper/index.js";
|
|
66
|
+
import { VftPagination as vt } from "./components/pagination/index.js";
|
|
67
|
+
import { VftPopconfirm as Ft } from "./components/popconfirm/index.js";
|
|
68
|
+
import { VftPopover as Lt } from "./components/popover/index.js";
|
|
69
|
+
import { VftPopper as Rt } from "./components/popper/index.js";
|
|
70
|
+
import { VftProgress as xt } from "./components/progress/index.js";
|
|
71
|
+
import { VftQrcode as At } from "./components/qrcode/index.js";
|
|
72
|
+
import { VftRadioButton as Gt, VftRadio as Ht, VftRadioGroup as Ot } from "./components/radio/index.js";
|
|
72
73
|
import { VftResult as Wt } from "./components/result/index.js";
|
|
73
74
|
import { VftRouterViewContent as zt } from "./components/router-view-content/index.js";
|
|
74
75
|
import { VftRow as Et } from "./components/row/index.js";
|
|
75
76
|
import { VftScrollbar as Nt } from "./components/scrollbar/index.js";
|
|
76
|
-
import { VftSearch as
|
|
77
|
-
import { VftSelect as
|
|
78
|
-
import { VftSideMenu as
|
|
79
|
-
import { VftSkeleton as
|
|
80
|
-
import { VftSlider as
|
|
81
|
-
import { VftSpace as
|
|
82
|
-
import { VftSwitch as
|
|
83
|
-
import { VftTable as
|
|
84
|
-
import { VftTabs as
|
|
85
|
-
import { VftTag as
|
|
86
|
-
import { VftTimePicker as
|
|
87
|
-
import { VftTooltip as
|
|
88
|
-
import { VftTree as
|
|
89
|
-
import { VftUpload as
|
|
90
|
-
import { VftVerifyCode as
|
|
91
|
-
import { VftSuperForm as
|
|
92
|
-
import { VftProgressI as
|
|
93
|
-
const
|
|
77
|
+
import { VftSearch as Qt } from "./components/search/index.js";
|
|
78
|
+
import { VftSelect as Ut } from "./components/select/index.js";
|
|
79
|
+
import { VftSideMenu as jt } from "./components/side-menu/index.js";
|
|
80
|
+
import { VftSkeleton as qt, VftSkeletonItem as Jt } from "./components/skeleton/index.js";
|
|
81
|
+
import { VftSlider as Kt } from "./components/slider/index.js";
|
|
82
|
+
import { VftSpace as Xt } from "./components/space/index.js";
|
|
83
|
+
import { VftSwitch as Yt } from "./components/switch/index.js";
|
|
84
|
+
import { VftTable as Zt } from "./components/table/index.js";
|
|
85
|
+
import { VftTabs as _t, VftTabPane as $t } from "./components/tabs/index.js";
|
|
86
|
+
import { VftTag as to } from "./components/tag/index.js";
|
|
87
|
+
import { VftTimePicker as oo } from "./components/time-picker/index.js";
|
|
88
|
+
import { VftTooltip as ro } from "./components/tooltip/index.js";
|
|
89
|
+
import { VftTree as mo } from "./components/tree/index.js";
|
|
90
|
+
import { VftUpload as fo } from "./components/upload/index.js";
|
|
91
|
+
import { VftVerifyCode as io } from "./components/verify-code/index.js";
|
|
92
|
+
import { VftSuperForm as po } from "./components/super-form/index.js";
|
|
93
|
+
import { VftProgressI as Vo } from "./components/progress-i/index.js";
|
|
94
|
+
const Kr = [
|
|
94
95
|
// phone
|
|
95
|
-
|
|
96
|
+
Vo,
|
|
96
97
|
//
|
|
97
98
|
rt,
|
|
98
99
|
mt,
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
fo,
|
|
101
|
+
xt,
|
|
101
102
|
Y,
|
|
102
103
|
o,
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
Kt,
|
|
105
|
+
wt,
|
|
105
106
|
// VftRate,
|
|
106
107
|
R,
|
|
107
108
|
t,
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
Ut,
|
|
110
|
+
Ft,
|
|
110
111
|
V,
|
|
111
|
-
|
|
112
|
-
jt,
|
|
112
|
+
Xt,
|
|
113
113
|
qt,
|
|
114
|
-
|
|
114
|
+
Jt,
|
|
115
|
+
mo,
|
|
115
116
|
e,
|
|
116
|
-
|
|
117
|
+
St,
|
|
117
118
|
ot,
|
|
118
119
|
tt,
|
|
120
|
+
Mt,
|
|
119
121
|
gt,
|
|
120
|
-
St,
|
|
121
122
|
w,
|
|
122
|
-
|
|
123
|
+
It,
|
|
123
124
|
M,
|
|
124
125
|
b,
|
|
125
126
|
P,
|
|
@@ -127,59 +128,59 @@ const qr = [
|
|
|
127
128
|
D,
|
|
128
129
|
Q,
|
|
129
130
|
T,
|
|
130
|
-
|
|
131
|
+
oo,
|
|
131
132
|
Et,
|
|
132
133
|
F,
|
|
133
134
|
B,
|
|
134
135
|
_,
|
|
135
136
|
K,
|
|
136
|
-
|
|
137
|
-
|
|
137
|
+
Zt,
|
|
138
|
+
io,
|
|
138
139
|
x,
|
|
139
140
|
A,
|
|
140
141
|
G,
|
|
141
142
|
Nt,
|
|
142
143
|
S,
|
|
143
|
-
|
|
144
|
-
At,
|
|
144
|
+
Yt,
|
|
145
145
|
Gt,
|
|
146
146
|
Ht,
|
|
147
|
+
Ot,
|
|
147
148
|
l,
|
|
148
149
|
u,
|
|
149
150
|
d,
|
|
150
151
|
i,
|
|
151
152
|
p,
|
|
153
|
+
W,
|
|
152
154
|
z,
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
Bt,
|
|
155
|
+
Qt,
|
|
156
|
+
ht,
|
|
156
157
|
c,
|
|
157
158
|
s,
|
|
158
159
|
C,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
160
|
+
At,
|
|
161
|
+
Bt,
|
|
162
|
+
to,
|
|
163
|
+
jt,
|
|
164
|
+
vt,
|
|
164
165
|
Z,
|
|
165
166
|
X,
|
|
166
167
|
J,
|
|
167
168
|
j,
|
|
168
|
-
|
|
169
|
+
E,
|
|
169
170
|
h,
|
|
170
171
|
v,
|
|
171
172
|
g,
|
|
172
173
|
f,
|
|
173
174
|
zt,
|
|
174
175
|
q,
|
|
175
|
-
W,
|
|
176
176
|
O,
|
|
177
|
+
N,
|
|
177
178
|
$,
|
|
178
|
-
|
|
179
|
-
Mt,
|
|
179
|
+
yt,
|
|
180
180
|
bt,
|
|
181
181
|
Pt,
|
|
182
182
|
kt,
|
|
183
|
+
Dt,
|
|
183
184
|
I,
|
|
184
185
|
L,
|
|
185
186
|
U,
|
|
@@ -187,16 +188,15 @@ const qr = [
|
|
|
187
188
|
m,
|
|
188
189
|
H,
|
|
189
190
|
Wt,
|
|
190
|
-
Zt,
|
|
191
191
|
_t,
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
$t,
|
|
193
|
+
ro,
|
|
194
194
|
Lt,
|
|
195
|
+
Rt,
|
|
195
196
|
pt,
|
|
196
197
|
Vt,
|
|
197
198
|
ft,
|
|
198
199
|
it,
|
|
199
|
-
et,
|
|
200
200
|
at,
|
|
201
201
|
nt,
|
|
202
202
|
lt,
|
|
@@ -205,11 +205,13 @@ const qr = [
|
|
|
205
205
|
ct,
|
|
206
206
|
st,
|
|
207
207
|
Ct,
|
|
208
|
+
Tt,
|
|
208
209
|
y,
|
|
209
210
|
a,
|
|
210
211
|
n,
|
|
211
|
-
|
|
212
|
+
po,
|
|
213
|
+
et
|
|
212
214
|
];
|
|
213
215
|
export {
|
|
214
|
-
|
|
216
|
+
Kr as default
|
|
215
217
|
};
|
|
@@ -11,7 +11,7 @@ import "../../hooks/use-model-toggle/index.js";
|
|
|
11
11
|
import { useOrderedChildren as ge } from "../../hooks/use-ordered-children/index.js";
|
|
12
12
|
import "@popperjs/core";
|
|
13
13
|
import "../../hooks/use-z-index/index.js";
|
|
14
|
-
import {
|
|
14
|
+
import { carouselContextKey as Se, CAROUSEL_ITEM_NAME as H } from "./constants.js";
|
|
15
15
|
const L = 300, ze = (t, O, M) => {
|
|
16
16
|
const {
|
|
17
17
|
children: o,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
fallback?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { defineComponent as o, ref as l, onMounted as r, renderSlot as n } from "vue";
|
|
2
|
+
const f = /* @__PURE__ */ o({
|
|
3
|
+
__name: "client-only",
|
|
4
|
+
setup(a) {
|
|
5
|
+
const e = l(!1);
|
|
6
|
+
return r(() => {
|
|
7
|
+
e.value = !0;
|
|
8
|
+
}), (t, s) => e.value ? n(t.$slots, "default", { key: 0 }) : n(t.$slots, "fallback", { key: 1 });
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
f as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const VftClientOnly: import("vft/es/utils").SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
3
|
+
P: {};
|
|
4
|
+
B: {};
|
|
5
|
+
D: {};
|
|
6
|
+
C: {};
|
|
7
|
+
M: {};
|
|
8
|
+
Defaults: {};
|
|
9
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
10
|
+
__isFragment?: never;
|
|
11
|
+
__isTeleport?: never;
|
|
12
|
+
__isSuspense?: never;
|
|
13
|
+
} & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
14
|
+
$slots: {
|
|
15
|
+
default?(_: {}): any;
|
|
16
|
+
fallback?(_: {}): any;
|
|
17
|
+
};
|
|
18
|
+
})> & Record<string, any>;
|
|
19
|
+
export default VftClientOnly;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "@vueuse/core";
|
|
2
|
+
import "@vft/utils";
|
|
3
|
+
import "../config-provider/hooks/use-global-config.js";
|
|
4
|
+
import "vue";
|
|
5
|
+
import { withInstall as t } from "../../utils/vue/install.js";
|
|
6
|
+
import "lodash-es";
|
|
7
|
+
import "../form/index.js";
|
|
8
|
+
import o from "./client-only.vue2.js";
|
|
9
|
+
const s = t(o);
|
|
10
|
+
export {
|
|
11
|
+
s as VftClientOnly,
|
|
12
|
+
s as default
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'vft/theme-style/vft-client-only.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'vft/theme-style/src/client-only.scss';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { keysOf as f } from "@vft/utils";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import { debugWarn as v } from "../../../utils/error.js";
|
|
4
|
-
import {
|
|
4
|
+
import { getCurrentInstance as l, computed as i, unref as p, provide as g, ref as C, inject as x } from "vue";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "../../form/index.js";
|
|
7
7
|
import { namespaceContextKey as I, useNamespace as b, defaultNamespace as y } from "../../../hooks/use-namespace/index.js";
|
|
@@ -9,7 +9,7 @@ import "../../../hooks/use-model-toggle/index.js";
|
|
|
9
9
|
import "@popperjs/core";
|
|
10
10
|
import { zIndexContextKey as G, useZIndex as z, defaultInitialZIndex as K } from "../../../hooks/use-z-index/index.js";
|
|
11
11
|
import { configProviderContextKey as m } from "../constants.js";
|
|
12
|
-
const a =
|
|
12
|
+
const a = C();
|
|
13
13
|
function d(o, e = void 0) {
|
|
14
14
|
const n = l() ? x(m, a) : a;
|
|
15
15
|
return o ? i(() => n?.value?.[o] ?? e) : n;
|
|
@@ -27,7 +27,7 @@ function B(o) {
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
const S = (o, e, n = !1) => {
|
|
30
|
-
const t = !!l(), r = t ? d() : void 0, u = e?.provide ?? (t ?
|
|
30
|
+
const t = !!l(), r = t ? d() : void 0, u = e?.provide ?? (t ? g : void 0);
|
|
31
31
|
if (!u) {
|
|
32
32
|
v(
|
|
33
33
|
"provideGlobalConfig",
|
package/es/components/index.d.ts
CHANGED