vft 0.0.66 → 0.0.69
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/es/components/alert/style/css.js +1 -0
- package/es/components/alert/style/index.js +1 -0
- package/es/components/avatar/style/css.js +1 -0
- package/es/components/avatar/style/index.js +1 -0
- package/es/components/button/style/css.js +1 -0
- package/es/components/button/style/index.js +1 -0
- package/es/components/button-group/style/css.js +1 -0
- package/es/components/button-group/style/index.js +1 -0
- package/es/components/color-picker/style/css.js +1 -0
- package/es/components/color-picker/style/index.js +1 -0
- package/es/components/full-screen/full-screen.vue.d.ts +3 -0
- package/es/components/full-screen/full-screen.vue2.js +23 -23
- package/es/components/icon/icon.vue.d.ts +8 -8
- package/es/components/icon/icon.vue2.js +30 -29
- package/es/components/icon/index.d.ts +6 -6
- package/es/components/icon-text/icon-text.vue.d.ts +28 -0
- package/es/components/icon-text/icon-text.vue2.js +29 -22
- package/es/components/icon-text/index.d.ts +17 -0
- package/es/components/loading/index.d.ts +2 -2
- package/es/components/loading/loading.d.ts +2 -2
- package/es/components/table/table.vue.d.ts +9 -25
- package/es/components/table/table.vue2.js +141 -94
- package/es/package.json.js +1 -1
- package/lib/components/alert/style/css.cjs +1 -1
- package/lib/components/alert/style/index.cjs +1 -1
- package/lib/components/avatar/style/css.cjs +1 -1
- package/lib/components/avatar/style/index.cjs +1 -1
- package/lib/components/button/style/css.cjs +1 -1
- package/lib/components/button/style/index.cjs +1 -1
- package/lib/components/button-group/style/css.cjs +1 -1
- package/lib/components/button-group/style/index.cjs +1 -1
- package/lib/components/color-picker/style/css.cjs +1 -1
- package/lib/components/color-picker/style/index.cjs +1 -1
- package/lib/components/full-screen/full-screen.vue.d.ts +3 -0
- package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
- package/lib/components/icon/icon.vue.d.ts +8 -8
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/icon/index.d.ts +6 -6
- package/lib/components/icon-text/icon-text.vue.d.ts +28 -0
- package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
- package/lib/components/icon-text/index.d.ts +17 -0
- package/lib/components/loading/index.d.ts +2 -2
- package/lib/components/loading/loading.d.ts +2 -2
- package/lib/components/table/table.vue.d.ts +9 -25
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/package.json +8 -10
- package/tags.json +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/common/var.scss +5 -2
- package/theme-style/src/full-screen.scss +3 -6
- package/theme-style/src/icon-text.scss +2 -5
- package/theme-style/src/icon.scss +7 -10
- package/theme-style/src/md/api.scss +8 -0
- package/theme-style/src/menu.scss +2 -2
- package/theme-style/src/page-wrapper.scss +1 -1
- package/theme-style/vft-full-screen.css +1 -1
- package/theme-style/vft-icon-text.css +1 -1
- package/theme-style/vft-icon.css +1 -1
- package/theme-style/vft-md-container.css +1 -1
- package/theme-style/vft-menu.css +1 -1
- package/theme-style/vft-page-wrapper.css +1 -1
- package/web-types.json +1 -1
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
import { type IconTextProps } from 'vft/es/components/icon-text';
|
|
2
|
+
export interface FullScreenProps extends Partial<IconTextProps> {
|
|
3
|
+
}
|
|
1
4
|
declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
5
|
export default _sfc_main;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useFullscreen as
|
|
3
|
-
import {
|
|
4
|
-
import { useNamespace as
|
|
1
|
+
import { defineComponent as e, openBlock as l, createBlock as p, unref as o, mergeProps as m } from "vue";
|
|
2
|
+
import { useFullscreen as a } from "@vft/use";
|
|
3
|
+
import { VftIconText as u } from "../icon-text/index.js";
|
|
4
|
+
import { useNamespace as f } from "../../hooks/use-namespace/index.js";
|
|
5
5
|
import "@popperjs/core";
|
|
6
6
|
import "lodash";
|
|
7
7
|
import "../../hooks/use-z-index/index.js";
|
|
8
8
|
import "@vueuse/core";
|
|
9
9
|
import "@vft/utils";
|
|
10
|
-
import "../../utils/ns-cover.js";
|
|
10
|
+
import { primaryColor as _ } from "../../utils/ns-cover.js";
|
|
11
11
|
import "@vue/reactivity";
|
|
12
12
|
import "@vue/shared";
|
|
13
|
-
const
|
|
13
|
+
const t = (
|
|
14
14
|
/* hoist-static*/
|
|
15
|
-
|
|
16
|
-
), x =
|
|
17
|
-
name:
|
|
18
|
-
}),
|
|
15
|
+
f("full-screen")
|
|
16
|
+
), x = e({
|
|
17
|
+
name: t.b()
|
|
18
|
+
}), V = /* @__PURE__ */ e({
|
|
19
19
|
...x,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
props: {},
|
|
21
|
+
setup(c) {
|
|
22
|
+
const n = c, { toggle: i, isFullscreen: r } = a(), s = _().value;
|
|
23
|
+
return (d, C) => (l(), p(o(u), m({
|
|
24
|
+
class: o(t).b(),
|
|
25
|
+
distance: 2,
|
|
26
|
+
pointer: "",
|
|
27
|
+
"hover-color": o(s),
|
|
28
|
+
onClick: o(i),
|
|
29
|
+
icon: o(r) ? "ico-radix-icons:exit-full-screen" : "ico-radix-icons:enter-full-screen",
|
|
30
|
+
text: o(r) ? "退出全屏" : "全屏"
|
|
31
|
+
}, n), null, 16, ["class", "hover-color", "onClick", "icon", "text"]));
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
V as default
|
|
36
36
|
};
|
|
@@ -8,8 +8,8 @@ export interface IconProps {
|
|
|
8
8
|
color?: string;
|
|
9
9
|
rotate?: boolean;
|
|
10
10
|
rotateSpeed?: number;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
pointer?: boolean;
|
|
12
|
+
hoverColor?: string;
|
|
13
13
|
}
|
|
14
14
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
15
15
|
icon: {
|
|
@@ -32,12 +32,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
32
32
|
type: __PropType<number | undefined>;
|
|
33
33
|
required: false;
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
pointer: {
|
|
36
36
|
type: __PropType<boolean | undefined>;
|
|
37
37
|
required: false;
|
|
38
38
|
};
|
|
39
|
-
|
|
40
|
-
type: __PropType<
|
|
39
|
+
hoverColor: {
|
|
40
|
+
type: __PropType<string | undefined>;
|
|
41
41
|
required: false;
|
|
42
42
|
};
|
|
43
43
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -61,12 +61,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
61
61
|
type: __PropType<number | undefined>;
|
|
62
62
|
required: false;
|
|
63
63
|
};
|
|
64
|
-
|
|
64
|
+
pointer: {
|
|
65
65
|
type: __PropType<boolean | undefined>;
|
|
66
66
|
required: false;
|
|
67
67
|
};
|
|
68
|
-
|
|
69
|
-
type: __PropType<
|
|
68
|
+
hoverColor: {
|
|
69
|
+
type: __PropType<string | undefined>;
|
|
70
70
|
required: false;
|
|
71
71
|
};
|
|
72
72
|
}>>, {}>;
|
|
@@ -1,48 +1,49 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { addUnit as
|
|
3
|
-
import { useNamespace as
|
|
1
|
+
import { defineComponent as m, computed as r, unref as e, openBlock as l, createElementBlock as c, normalizeClass as s, normalizeStyle as a } from "vue";
|
|
2
|
+
import { addUnit as p } from "@vft/utils";
|
|
3
|
+
import { useNamespace as y } from "../../hooks/use-namespace/index.js";
|
|
4
4
|
import "@popperjs/core";
|
|
5
5
|
import "lodash";
|
|
6
6
|
import "../../hooks/use-z-index/index.js";
|
|
7
7
|
import "@vueuse/core";
|
|
8
|
-
import "../../utils/ns-cover.js";
|
|
8
|
+
import { generateCssVars as g } from "../../utils/ns-cover.js";
|
|
9
9
|
import "@vue/reactivity";
|
|
10
10
|
import "@vue/shared";
|
|
11
11
|
import "../config-provider/index.js";
|
|
12
|
-
import { useGlobalConfig as
|
|
13
|
-
const
|
|
12
|
+
import { useGlobalConfig as C } from "../config-provider/hooks/use-global-config.js";
|
|
13
|
+
const v = ["src"], i = (
|
|
14
14
|
/* hoist-static*/
|
|
15
|
-
|
|
16
|
-
),
|
|
17
|
-
name:
|
|
18
|
-
}), j = /* @__PURE__ */
|
|
19
|
-
...
|
|
15
|
+
y("icon")
|
|
16
|
+
), h = m({
|
|
17
|
+
name: i.b()
|
|
18
|
+
}), j = /* @__PURE__ */ m({
|
|
19
|
+
...h,
|
|
20
20
|
props: {
|
|
21
21
|
icon: null,
|
|
22
|
-
size:
|
|
22
|
+
size: null,
|
|
23
23
|
color: null,
|
|
24
24
|
rotate: { type: Boolean },
|
|
25
25
|
rotateSpeed: { default: 2 },
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
pointer: { type: Boolean },
|
|
27
|
+
hoverColor: null
|
|
28
28
|
},
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
cursor:
|
|
35
|
-
|
|
36
|
-
})),
|
|
37
|
-
return (
|
|
29
|
+
setup(o) {
|
|
30
|
+
const u = C(), n = r(() => g({
|
|
31
|
+
size: p(o.size),
|
|
32
|
+
color: o.color,
|
|
33
|
+
hoverColor: o.hoverColor,
|
|
34
|
+
cursor: o.pointer ? "pointer" : void 0,
|
|
35
|
+
animation: o.rotate ? `${u.value.namespace}-rotate ${o.rotateSpeed}s linear 0s infinite` : void 0
|
|
36
|
+
}, "icon")), f = (t) => t == null ? void 0 : t.includes("/"), d = r(() => f(o.icon));
|
|
37
|
+
return (t, z) => e(d) ? (l(), c("img", {
|
|
38
38
|
key: 0,
|
|
39
|
-
class:
|
|
40
|
-
src:
|
|
41
|
-
alt: ""
|
|
42
|
-
|
|
39
|
+
class: s(e(i).e("image")),
|
|
40
|
+
src: o.icon,
|
|
41
|
+
alt: "",
|
|
42
|
+
style: a(e(n))
|
|
43
|
+
}, null, 14, v)) : (l(), c("i", {
|
|
43
44
|
key: 1,
|
|
44
|
-
class:
|
|
45
|
-
style:
|
|
45
|
+
class: s([e(i).b(), o.icon]),
|
|
46
|
+
style: a(e(n))
|
|
46
47
|
}, null, 6));
|
|
47
48
|
}
|
|
48
49
|
});
|
|
@@ -21,12 +21,12 @@ export declare const VftIcon: import("vft/es/utils").SFCWithInstall<import("vue"
|
|
|
21
21
|
type: import("vue").PropType<number | undefined>;
|
|
22
22
|
required: false;
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
pointer: {
|
|
25
25
|
type: import("vue").PropType<boolean | undefined>;
|
|
26
26
|
required: false;
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
type: import("vue").PropType<
|
|
28
|
+
hoverColor: {
|
|
29
|
+
type: import("vue").PropType<string | undefined>;
|
|
30
30
|
required: false;
|
|
31
31
|
};
|
|
32
32
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -50,12 +50,12 @@ export declare const VftIcon: import("vft/es/utils").SFCWithInstall<import("vue"
|
|
|
50
50
|
type: import("vue").PropType<number | undefined>;
|
|
51
51
|
required: false;
|
|
52
52
|
};
|
|
53
|
-
|
|
53
|
+
pointer: {
|
|
54
54
|
type: import("vue").PropType<boolean | undefined>;
|
|
55
55
|
required: false;
|
|
56
56
|
};
|
|
57
|
-
|
|
58
|
-
type: import("vue").PropType<
|
|
57
|
+
hoverColor: {
|
|
58
|
+
type: import("vue").PropType<string | undefined>;
|
|
59
59
|
required: false;
|
|
60
60
|
};
|
|
61
61
|
}>>, {}>> & Record<string, any>;
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import type { PropType as __PropType } from 'vue';
|
|
2
2
|
import { type IconProps } from 'vft/es/components/icon';
|
|
3
|
+
export interface IconTextProps {
|
|
4
|
+
text: string;
|
|
5
|
+
icon: IconProps | string;
|
|
6
|
+
color?: string;
|
|
7
|
+
hoverColor?: string;
|
|
8
|
+
distance?: string | number;
|
|
9
|
+
reverse?: boolean;
|
|
10
|
+
size?: string | number;
|
|
11
|
+
direction?: 'col' | 'row';
|
|
12
|
+
pointer?: boolean;
|
|
13
|
+
adjustOrigin?: boolean;
|
|
14
|
+
}
|
|
3
15
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
16
|
text: {
|
|
5
17
|
type: __PropType<string>;
|
|
@@ -33,6 +45,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
33
45
|
type: __PropType<"row" | "col" | undefined>;
|
|
34
46
|
required: false;
|
|
35
47
|
};
|
|
48
|
+
pointer: {
|
|
49
|
+
type: __PropType<boolean | undefined>;
|
|
50
|
+
required: false;
|
|
51
|
+
};
|
|
52
|
+
adjustOrigin: {
|
|
53
|
+
type: __PropType<boolean | undefined>;
|
|
54
|
+
required: false;
|
|
55
|
+
};
|
|
36
56
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
57
|
text: {
|
|
38
58
|
type: __PropType<string>;
|
|
@@ -66,5 +86,13 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
66
86
|
type: __PropType<"row" | "col" | undefined>;
|
|
67
87
|
required: false;
|
|
68
88
|
};
|
|
89
|
+
pointer: {
|
|
90
|
+
type: __PropType<boolean | undefined>;
|
|
91
|
+
required: false;
|
|
92
|
+
};
|
|
93
|
+
adjustOrigin: {
|
|
94
|
+
type: __PropType<boolean | undefined>;
|
|
95
|
+
required: false;
|
|
96
|
+
};
|
|
69
97
|
}>>, {}>;
|
|
70
98
|
export default _sfc_main;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as y, computed as o, openBlock as
|
|
2
|
-
import { VftIcon as
|
|
1
|
+
import { defineComponent as y, computed as o, openBlock as i, createElementBlock as S, normalizeClass as B, unref as t, normalizeStyle as k, createBlock as u, mergeProps as m, createCommentVNode as v, createElementVNode as O, toDisplayString as V } from "vue";
|
|
2
|
+
import { VftIcon as d } from "../icon/index.js";
|
|
3
3
|
import { useNamespace as b } from "../../hooks/use-namespace/index.js";
|
|
4
4
|
import "@popperjs/core";
|
|
5
5
|
import "lodash";
|
|
6
6
|
import "../../hooks/use-z-index/index.js";
|
|
7
7
|
import "@vueuse/core";
|
|
8
|
-
import { singleAttrToObj as
|
|
8
|
+
import { singleAttrToObj as j, addUnit as f, removeUnit as N } from "@vft/utils";
|
|
9
9
|
import { generateCssVars as E } from "../../utils/ns-cover.js";
|
|
10
10
|
import "@vue/reactivity";
|
|
11
11
|
import "@vue/shared";
|
|
@@ -14,7 +14,7 @@ const g = (
|
|
|
14
14
|
b("icon-text")
|
|
15
15
|
), T = y({
|
|
16
16
|
name: g.b()
|
|
17
|
-
}),
|
|
17
|
+
}), G = /* @__PURE__ */ y({
|
|
18
18
|
...T,
|
|
19
19
|
props: {
|
|
20
20
|
text: null,
|
|
@@ -24,30 +24,37 @@ const g = (
|
|
|
24
24
|
distance: null,
|
|
25
25
|
reverse: { type: Boolean },
|
|
26
26
|
size: null,
|
|
27
|
-
direction: { default: "row" }
|
|
27
|
+
direction: { default: "row" },
|
|
28
|
+
pointer: { type: Boolean },
|
|
29
|
+
adjustOrigin: { type: Boolean, default: !0 }
|
|
28
30
|
},
|
|
29
31
|
setup(e) {
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
return
|
|
33
|
-
}),
|
|
34
|
-
|
|
32
|
+
const h = o(() => e.hoverColor ? e.hoverColor : e.color), c = o(() => j(e.icon, "icon", { size: e.size, color: e.color })), a = o(() => e.direction === "col"), s = o(() => {
|
|
33
|
+
const n = f(e.distance);
|
|
34
|
+
return a.value ? e.reverse ? { marginTop: n } : { marginBottom: n } : e.reverse ? { marginLeft: n } : { marginRight: n };
|
|
35
|
+
}), r = o(() => N(e.size)), l = o(() => r.value < 12), x = o(() => r.value && l.value ? { transform: `scale(${r.value / 12})` } : {}), z = o(() => {
|
|
36
|
+
const n = E({
|
|
37
|
+
cursor: e.pointer ? "pointer" : void 0,
|
|
35
38
|
color: e.color,
|
|
36
|
-
"hover-color":
|
|
37
|
-
fontSize:
|
|
38
|
-
}, "icon-text")
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
"hover-color": h.value,
|
|
40
|
+
fontSize: l.value ? "12px" : f(e.size)
|
|
41
|
+
}, "icon-text");
|
|
42
|
+
return {
|
|
43
|
+
...l.value && e.adjustOrigin ? { transformOrigin: "left top" } : {},
|
|
44
|
+
...n,
|
|
45
|
+
...x.value
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
return (n, C) => (i(), S("span", {
|
|
49
|
+
class: B([t(g).b(), { "flex-col": t(a) }]),
|
|
50
|
+
style: k(t(z))
|
|
44
51
|
}, [
|
|
45
|
-
e.reverse ?
|
|
46
|
-
|
|
47
|
-
e.reverse ? (
|
|
52
|
+
e.reverse ? v("", !0) : (i(), u(t(d), m({ key: 0 }, t(c), { style: t(s) }), null, 16, ["style"])),
|
|
53
|
+
O("span", null, V(e.text), 1),
|
|
54
|
+
e.reverse ? (i(), u(t(d), m({ key: 1 }, t(c), { style: t(s) }), null, 16, ["style"])) : v("", !0)
|
|
48
55
|
], 6));
|
|
49
56
|
}
|
|
50
57
|
});
|
|
51
58
|
export {
|
|
52
|
-
|
|
59
|
+
G as default
|
|
53
60
|
};
|
|
@@ -31,6 +31,14 @@ export declare const VftIconText: import("vft/es/utils").SFCWithInstall<import("
|
|
|
31
31
|
type: import("vue").PropType<"row" | "col" | undefined>;
|
|
32
32
|
required: false;
|
|
33
33
|
};
|
|
34
|
+
pointer: {
|
|
35
|
+
type: import("vue").PropType<boolean | undefined>;
|
|
36
|
+
required: false;
|
|
37
|
+
};
|
|
38
|
+
adjustOrigin: {
|
|
39
|
+
type: import("vue").PropType<boolean | undefined>;
|
|
40
|
+
required: false;
|
|
41
|
+
};
|
|
34
42
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
43
|
text: {
|
|
36
44
|
type: import("vue").PropType<string>;
|
|
@@ -64,5 +72,14 @@ export declare const VftIconText: import("vft/es/utils").SFCWithInstall<import("
|
|
|
64
72
|
type: import("vue").PropType<"row" | "col" | undefined>;
|
|
65
73
|
required: false;
|
|
66
74
|
};
|
|
75
|
+
pointer: {
|
|
76
|
+
type: import("vue").PropType<boolean | undefined>;
|
|
77
|
+
required: false;
|
|
78
|
+
};
|
|
79
|
+
adjustOrigin: {
|
|
80
|
+
type: import("vue").PropType<boolean | undefined>;
|
|
81
|
+
required: false;
|
|
82
|
+
};
|
|
67
83
|
}>>, {}>> & Record<string, any>;
|
|
68
84
|
export default VftIconText;
|
|
85
|
+
export { type IconTextProps } from './icon-text.vue';
|
|
@@ -29,8 +29,8 @@ export declare const VftLoading: {
|
|
|
29
29
|
color?: string | undefined;
|
|
30
30
|
rotate?: boolean | undefined;
|
|
31
31
|
rotateSpeed?: number | undefined;
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
pointer?: boolean | undefined;
|
|
33
|
+
hoverColor?: string | undefined;
|
|
34
34
|
}>;
|
|
35
35
|
text: import("vue").Ref<string>;
|
|
36
36
|
fullscreen: import("vue").Ref<boolean>;
|
|
@@ -21,8 +21,8 @@ export declare function createLoadingComponent(options: LoadingOptionsResolved):
|
|
|
21
21
|
color?: string | undefined;
|
|
22
22
|
rotate?: boolean | undefined;
|
|
23
23
|
rotateSpeed?: number | undefined;
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
pointer?: boolean | undefined;
|
|
25
|
+
hoverColor?: string | undefined;
|
|
26
26
|
}>;
|
|
27
27
|
text: import("vue").Ref<string>;
|
|
28
28
|
fullscreen: import("vue").Ref<boolean>;
|
|
@@ -1,34 +1,10 @@
|
|
|
1
1
|
import type { PropType as __PropType } from 'vue';
|
|
2
2
|
import { type PaginationProps } from 'vft/es/components/pagination';
|
|
3
|
-
import type {
|
|
3
|
+
import type { IDefaultSort, TableConfigProps } from './type';
|
|
4
4
|
interface stickyOption {
|
|
5
5
|
offsetTop: number;
|
|
6
6
|
getContainer?: HTMLElement;
|
|
7
7
|
}
|
|
8
|
-
export interface TableProps {
|
|
9
|
-
/** 最大高度,设置后自动开启虚拟滚动 */
|
|
10
|
-
maxHeight?: number;
|
|
11
|
-
/** 列配置项 */
|
|
12
|
-
columns: IColumnsOption[];
|
|
13
|
-
/** 表格数据 */
|
|
14
|
-
tableData: any[];
|
|
15
|
-
/** 是否在加载中 */
|
|
16
|
-
loading?: boolean;
|
|
17
|
-
/** 表格高度 */
|
|
18
|
-
height?: Numberish;
|
|
19
|
-
/** 分页页数 */
|
|
20
|
-
pageSize?: number;
|
|
21
|
-
/** 总数 */
|
|
22
|
-
total?: number;
|
|
23
|
-
/** 默认排序 */
|
|
24
|
-
defaultSort?: IDefaultSort;
|
|
25
|
-
/** 表格配置 */
|
|
26
|
-
tableConfig?: TableConfigProps;
|
|
27
|
-
/** 滚动条是否固定在底部 */
|
|
28
|
-
sticky?: boolean | stickyOption;
|
|
29
|
-
pagePlacement?: 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right';
|
|
30
|
-
pageOptions: Partial<PaginationProps>;
|
|
31
|
-
}
|
|
32
8
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
33
9
|
maxHeight: {
|
|
34
10
|
type: __PropType<number | undefined>;
|
|
@@ -54,6 +30,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
54
30
|
type: __PropType<number | undefined>;
|
|
55
31
|
required: false;
|
|
56
32
|
};
|
|
33
|
+
pageNum: {
|
|
34
|
+
type: __PropType<number | undefined>;
|
|
35
|
+
required: false;
|
|
36
|
+
};
|
|
57
37
|
total: {
|
|
58
38
|
type: __PropType<number | undefined>;
|
|
59
39
|
required: false;
|
|
@@ -105,6 +85,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
105
85
|
type: __PropType<number | undefined>;
|
|
106
86
|
required: false;
|
|
107
87
|
};
|
|
88
|
+
pageNum: {
|
|
89
|
+
type: __PropType<number | undefined>;
|
|
90
|
+
required: false;
|
|
91
|
+
};
|
|
108
92
|
total: {
|
|
109
93
|
type: __PropType<number | undefined>;
|
|
110
94
|
required: false;
|