vft 0.0.65 → 0.0.67
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/component.js +24 -22
- 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/back-top/back-top.vue2.js +3 -2
- 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/context-menu/context-menu.vue2.js +3 -2
- package/es/components/date-time-select/date-time-select.vue.d.ts +38 -0
- package/es/components/date-time-select/date-time-select.vue.js +4 -0
- package/es/components/date-time-select/date-time-select.vue2.js +130 -0
- package/es/components/date-time-select/index.d.ts +30 -0
- package/es/components/date-time-select/index.js +12 -0
- package/es/components/date-time-select/style/css.d.ts +0 -0
- package/es/components/date-time-select/style/css.js +5 -0
- package/es/components/date-time-select/style/index.d.ts +0 -0
- package/es/components/date-time-select/style/index.js +5 -0
- package/es/components/date-time-select/types.d.ts +10 -0
- package/es/components/date-time-select/types.js +1 -0
- package/es/components/dropdown/dropdown.vue.d.ts +4 -4
- package/es/components/dropdown/index.d.ts +4 -4
- 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/index.d.ts +1 -0
- package/es/components/index.js +98 -96
- package/es/components/loading/index.d.ts +2 -2
- package/es/components/loading/loading.d.ts +2 -2
- package/es/components/md-container/md-container.vue2.js +3 -2
- package/es/components/menu/menu-item.vue2.js +3 -2
- package/es/components/menu/sub-menu.vue2.js +3 -2
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +3 -2
- package/es/components/result/result.vue2.js +3 -2
- package/es/components/search/search.vue2.js +3 -2
- package/es/components/select-v2/index.d.ts +8 -8
- package/es/components/select-v2/select.vue.d.ts +4 -4
- package/es/components/select-v2/useSelect.d.ts +3 -3
- package/es/components/side-menu/index.d.ts +4 -3
- package/es/components/side-menu/side-menu.vue.d.ts +4 -3
- package/es/components/side-menu/side-menu.vue2.js +95 -96
- package/es/components/side-menu/use-drag-line.js +28 -32
- package/es/components/tabs/tab-nav.vue2.js +3 -2
- package/es/components/time-select-extend/style/css.d.ts +0 -0
- package/es/components/time-select-extend/style/css.js +2 -0
- package/es/components/time-select-extend/style/index.d.ts +0 -0
- package/es/components/time-select-extend/style/index.js +2 -0
- package/es/components/tooltip/content.vue.d.ts +2 -2
- package/es/components/tooltip/index.d.ts +2 -2
- package/es/components/tooltip/tooltip.vue.d.ts +3 -3
- package/es/index.js +224 -222
- package/es/package.json.js +1 -1
- package/lib/component.cjs +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/back-top/back-top.vue2.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/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/date-time-select/date-time-select.vue.cjs +1 -0
- package/lib/components/date-time-select/date-time-select.vue.d.ts +38 -0
- package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -0
- package/lib/components/date-time-select/index.cjs +1 -0
- package/lib/components/date-time-select/index.d.ts +30 -0
- package/lib/components/date-time-select/style/css.cjs +1 -0
- package/lib/components/date-time-select/style/css.d.ts +0 -0
- package/lib/components/date-time-select/style/index.cjs +1 -0
- package/lib/components/date-time-select/style/index.d.ts +0 -0
- package/lib/components/date-time-select/types.cjs +1 -0
- package/lib/components/date-time-select/types.d.ts +10 -0
- package/lib/components/dropdown/dropdown.vue.d.ts +4 -4
- package/lib/components/dropdown/index.d.ts +4 -4
- 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/index.cjs +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/loading/index.d.ts +2 -2
- package/lib/components/loading/loading.d.ts +2 -2
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/select-v2/index.d.ts +8 -8
- package/lib/components/select-v2/select.vue.d.ts +4 -4
- package/lib/components/select-v2/useSelect.d.ts +3 -3
- package/lib/components/side-menu/index.d.ts +4 -3
- package/lib/components/side-menu/side-menu.vue.d.ts +4 -3
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/side-menu/use-drag-line.cjs +1 -1
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/time-select-extend/style/css.cjs +1 -0
- package/lib/components/time-select-extend/style/css.d.ts +0 -0
- package/lib/components/time-select-extend/style/index.cjs +1 -0
- package/lib/components/time-select-extend/style/index.d.ts +0 -0
- package/lib/components/tooltip/content.vue.d.ts +2 -2
- package/lib/components/tooltip/index.d.ts +2 -2
- package/lib/components/tooltip/tooltip.vue.d.ts +3 -3
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/package.json +3 -3
- package/tags.json +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/common/var.scss +5 -4
- package/theme-style/src/date-time-select.scss +81 -0
- 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/index.scss +1 -0
- 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/src/side-menu.scss +0 -1
- package/theme-style/vft-date-time-select.css +1 -0
- 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/theme-style/vft-side-menu.css +1 -1
- package/web-types.json +1 -1
package/es/component.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VftDivider as o } from "./components/divider/index.js";
|
|
2
2
|
import { VftConfigProvider as t } from "./components/config-provider/index.js";
|
|
3
3
|
import { VftIcon as r } from "./components/icon/index.js";
|
|
4
|
-
import { VftAvatar as
|
|
5
|
-
import { VftEmpty as
|
|
4
|
+
import { VftAvatar as m } from "./components/avatar/index.js";
|
|
5
|
+
import { VftEmpty as f } from "./components/empty/index.js";
|
|
6
6
|
import { VftResult as i } from "./components/result/index.js";
|
|
7
7
|
import { VftTooltip as p } from "./components/tooltip/index.js";
|
|
8
8
|
import { VftBackTop as V } from "./components/back-top/index.js";
|
|
@@ -10,8 +10,8 @@ import { VftPopover as e } from "./components/popover/index.js";
|
|
|
10
10
|
import { VftPopper as a } from "./components/popper/index.js";
|
|
11
11
|
import { VftLogo as n } from "./components/logo/index.js";
|
|
12
12
|
import { VftIconText as u } from "./components/icon-text/index.js";
|
|
13
|
-
import { VftImage as
|
|
14
|
-
import { VftFullScreen as
|
|
13
|
+
import { VftImage as l } from "./components/image/index.js";
|
|
14
|
+
import { VftFullScreen as d } from "./components/full-screen/index.js";
|
|
15
15
|
import { VftInput as c } from "./components/input/index.js";
|
|
16
16
|
import { VftLink as C } from "./components/link/index.js";
|
|
17
17
|
import { VftTag as s } from "./components/tag/index.js";
|
|
@@ -22,8 +22,8 @@ import { VftClamp as g } from "./components/clamp/index.js";
|
|
|
22
22
|
import { VftPageWrapper as I } from "./components/page-wrapper/index.js";
|
|
23
23
|
import { VftClampToggle as D } from "./components/clamp-toggle/index.js";
|
|
24
24
|
import { VftRouterViewContent as P } from "./components/router-view-content/index.js";
|
|
25
|
-
import { VftIframeLayout as
|
|
26
|
-
import { VftFooterLayout as
|
|
25
|
+
import { VftIframeLayout as S } from "./components/iframe-layout/index.js";
|
|
26
|
+
import { VftFooterLayout as y } from "./components/footer-layout/index.js";
|
|
27
27
|
import { VftHeaderLayout as k } from "./components/header-layout/index.js";
|
|
28
28
|
import { VftPagination as w } from "./components/pagination/index.js";
|
|
29
29
|
import { VftTabs as x, VftTabPane as L } from "./components/tabs/index.js";
|
|
@@ -42,29 +42,31 @@ import { VftColorPicker as Z } from "./components/color-picker/index.js";
|
|
|
42
42
|
import { VftScrollbar as _ } from "./components/scrollbar/index.js";
|
|
43
43
|
import { VftDropdownItem as $, VftDropdownMenu as oo, VftDropdown as to } from "./components/dropdown/index.js";
|
|
44
44
|
import { VftSelectV2 as ro } from "./components/select-v2/index.js";
|
|
45
|
-
import { VftVerifyCode as
|
|
46
|
-
import { VftTable as
|
|
45
|
+
import { VftVerifyCode as mo } from "./components/verify-code/index.js";
|
|
46
|
+
import { VftTable as fo } from "./components/table/index.js";
|
|
47
47
|
import { VftImageViewer as io } from "./components/image-viewer/index.js";
|
|
48
48
|
import { VftListCell as po } from "./components/list-cell/index.js";
|
|
49
49
|
import { VftDialog as Vo } from "./components/dialog/index.js";
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
|
|
50
|
+
import { VftDateTimeSelect as eo } from "./components/date-time-select/index.js";
|
|
51
|
+
import { VftMdComment as ao } from "./components/md-comment/index.js";
|
|
52
|
+
import { VftMdTabs as no } from "./components/md-tabs/index.js";
|
|
53
|
+
import { VftMdVuePlayground as uo } from "./components/md-vue-playground/index.js";
|
|
54
|
+
import { VftMdCodeDemo as lo } from "./components/md-code-demo/index.js";
|
|
55
|
+
import { VftMdCodeTabs as co } from "./components/md-code-tabs/index.js";
|
|
56
|
+
import { VftMdContainer as Co } from "./components/md-container/index.js";
|
|
57
|
+
const Tt = [
|
|
58
|
+
Co,
|
|
57
59
|
co,
|
|
58
60
|
lo,
|
|
59
61
|
uo,
|
|
60
62
|
no,
|
|
61
63
|
ao,
|
|
62
|
-
eo,
|
|
63
64
|
Vo,
|
|
65
|
+
eo,
|
|
64
66
|
po,
|
|
65
67
|
io,
|
|
66
|
-
mo,
|
|
67
68
|
fo,
|
|
69
|
+
mo,
|
|
68
70
|
ro,
|
|
69
71
|
$,
|
|
70
72
|
oo,
|
|
@@ -93,16 +95,16 @@ const st = [
|
|
|
93
95
|
w,
|
|
94
96
|
C,
|
|
95
97
|
c,
|
|
96
|
-
d,
|
|
97
|
-
u,
|
|
98
98
|
l,
|
|
99
|
+
u,
|
|
100
|
+
d,
|
|
99
101
|
B,
|
|
100
102
|
R,
|
|
101
103
|
t,
|
|
102
104
|
V,
|
|
103
105
|
P,
|
|
104
|
-
y,
|
|
105
106
|
S,
|
|
107
|
+
y,
|
|
106
108
|
k,
|
|
107
109
|
n,
|
|
108
110
|
F,
|
|
@@ -113,8 +115,8 @@ const st = [
|
|
|
113
115
|
G,
|
|
114
116
|
o,
|
|
115
117
|
r,
|
|
116
|
-
f,
|
|
117
118
|
m,
|
|
119
|
+
f,
|
|
118
120
|
i,
|
|
119
121
|
x,
|
|
120
122
|
L,
|
|
@@ -124,5 +126,5 @@ const st = [
|
|
|
124
126
|
Q
|
|
125
127
|
];
|
|
126
128
|
export {
|
|
127
|
-
|
|
129
|
+
Tt as default
|
|
128
130
|
};
|
|
@@ -59,6 +59,7 @@ import "../table/index.js";
|
|
|
59
59
|
import "../image-viewer/index.js";
|
|
60
60
|
import "../list-cell/index.js";
|
|
61
61
|
import "../dialog/index.js";
|
|
62
|
+
import "../date-time-select/index.js";
|
|
62
63
|
import "../md-container/index.js";
|
|
63
64
|
import "../md-comment/index.js";
|
|
64
65
|
import "../md-tabs/index.js";
|
|
@@ -80,7 +81,7 @@ const r = (
|
|
|
80
81
|
_("back-top")
|
|
81
82
|
), N = c({
|
|
82
83
|
name: r.b()
|
|
83
|
-
}),
|
|
84
|
+
}), ro = /* @__PURE__ */ c({
|
|
84
85
|
...N,
|
|
85
86
|
props: {
|
|
86
87
|
visibilityHeight: { default: 200 },
|
|
@@ -123,5 +124,5 @@ const r = (
|
|
|
123
124
|
}
|
|
124
125
|
});
|
|
125
126
|
export {
|
|
126
|
-
|
|
127
|
+
ro as default
|
|
127
128
|
};
|
|
@@ -66,6 +66,7 @@ import "../table/index.js";
|
|
|
66
66
|
import "../image-viewer/index.js";
|
|
67
67
|
import "../list-cell/index.js";
|
|
68
68
|
import "../dialog/index.js";
|
|
69
|
+
import "../date-time-select/index.js";
|
|
69
70
|
import "../md-container/index.js";
|
|
70
71
|
import "../md-comment/index.js";
|
|
71
72
|
import "../md-tabs/index.js";
|
|
@@ -78,7 +79,7 @@ const N = { class: "vft-sub-menu" }, x = (
|
|
|
78
79
|
F("context-menu")
|
|
79
80
|
), R = f({
|
|
80
81
|
name: x.b()
|
|
81
|
-
}),
|
|
82
|
+
}), mo = /* @__PURE__ */ f({
|
|
82
83
|
...R,
|
|
83
84
|
props: {
|
|
84
85
|
axis: null,
|
|
@@ -152,5 +153,5 @@ const N = { class: "vft-sub-menu" }, x = (
|
|
|
152
153
|
}
|
|
153
154
|
});
|
|
154
155
|
export {
|
|
155
|
-
|
|
156
|
+
mo as default
|
|
156
157
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
import { DateConfigProps } from './types';
|
|
3
|
+
import { type ToolTipProps } from 'vft/es/components/tooltip';
|
|
4
|
+
export interface DateTimeSelectProps {
|
|
5
|
+
dateList: Partial<DateConfigProps>[][];
|
|
6
|
+
defaultFormat?: string;
|
|
7
|
+
placement?: ToolTipProps['placement'];
|
|
8
|
+
}
|
|
9
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
10
|
+
dateList: {
|
|
11
|
+
type: __PropType<Partial<DateConfigProps>[][]>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
defaultFormat: {
|
|
15
|
+
type: __PropType<string | undefined>;
|
|
16
|
+
required: false;
|
|
17
|
+
};
|
|
18
|
+
placement: {
|
|
19
|
+
type: __PropType<import("@popperjs/core").Placement | undefined>;
|
|
20
|
+
required: false;
|
|
21
|
+
};
|
|
22
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
dateList: {
|
|
24
|
+
type: __PropType<Partial<DateConfigProps>[][]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
defaultFormat: {
|
|
28
|
+
type: __PropType<string | undefined>;
|
|
29
|
+
required: false;
|
|
30
|
+
};
|
|
31
|
+
placement: {
|
|
32
|
+
type: __PropType<import("@popperjs/core").Placement | undefined>;
|
|
33
|
+
required: false;
|
|
34
|
+
};
|
|
35
|
+
}>> & {
|
|
36
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
}, {}>;
|
|
38
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { defineComponent as H, ref as d, computed as Y, withDirectives as J, openBlock as c, createElementBlock as C, normalizeClass as n, unref as t, createVNode as B, withCtx as T, createElementVNode as b, Fragment as F, renderList as M, createBlock as S, createTextVNode as K, toDisplayString as z, withModifiers as Q, createCommentVNode as W } from "vue";
|
|
2
|
+
import { useNamespace as X } from "../../hooks/use-namespace/index.js";
|
|
3
|
+
import "@popperjs/core";
|
|
4
|
+
import "lodash";
|
|
5
|
+
import "../../hooks/use-z-index/index.js";
|
|
6
|
+
import "@vueuse/core";
|
|
7
|
+
import { isArray as Z } from "@vft/utils";
|
|
8
|
+
import "../../utils/ns-cover.js";
|
|
9
|
+
import "@vue/reactivity";
|
|
10
|
+
import "@vue/shared";
|
|
11
|
+
import y from "dayjs";
|
|
12
|
+
import { VftTooltip as ee } from "../tooltip/index.js";
|
|
13
|
+
import { VftLink as te } from "../link/index.js";
|
|
14
|
+
import { VftIcon as E } from "../icon/index.js";
|
|
15
|
+
import { ClickOutside as ae } from "@vft/directives";
|
|
16
|
+
const u = (
|
|
17
|
+
/* hoist-static*/
|
|
18
|
+
X("date-time-select")
|
|
19
|
+
), oe = H({
|
|
20
|
+
name: u.b()
|
|
21
|
+
}), ye = /* @__PURE__ */ H({
|
|
22
|
+
...oe,
|
|
23
|
+
props: {
|
|
24
|
+
dateList: { default: [] },
|
|
25
|
+
defaultFormat: { default: "YYYY-MM-DD HH:mm:ss" },
|
|
26
|
+
placement: { default: "bottom-start" }
|
|
27
|
+
},
|
|
28
|
+
emits: ["change"],
|
|
29
|
+
setup(D, { emit: P }) {
|
|
30
|
+
const l = d(!1), $ = d("请选择时间"), o = d("");
|
|
31
|
+
function j(a) {
|
|
32
|
+
const { count: e, type: i, format: R, dateRange: p = !0, startOfType: v, endOfType: h } = a;
|
|
33
|
+
let k, r, N;
|
|
34
|
+
const g = R || D.defaultFormat;
|
|
35
|
+
let s = y().format(g);
|
|
36
|
+
const _ = (m, G = !0) => {
|
|
37
|
+
let w, L = G ? "startOf" : "endOf";
|
|
38
|
+
return m === "week" ? w = y().add(e, m)[L](m).add(1, "day").format(g) : w = y().add(e, m)[L](m).format(g), w;
|
|
39
|
+
};
|
|
40
|
+
v && (k = _(v)), h && (r = _(h, !1)), N = y().add(e, i).format(g);
|
|
41
|
+
let f = k || r || N;
|
|
42
|
+
return p ? k && r ? [f, r] : e > 0 ? [f !== r && r || s, f] : e === 0 ? [k || s, r || s] : [f, f !== r && r || s] : f;
|
|
43
|
+
}
|
|
44
|
+
function A(a) {
|
|
45
|
+
l.value = !1, o.value = j(a), P("change", o.value);
|
|
46
|
+
}
|
|
47
|
+
const x = d(), O = d();
|
|
48
|
+
function I() {
|
|
49
|
+
l.value = !1;
|
|
50
|
+
}
|
|
51
|
+
const U = Y(() => {
|
|
52
|
+
var a, e;
|
|
53
|
+
return (e = (a = O.value) == null ? void 0 : a.popperRef) == null ? void 0 : e.contentRef;
|
|
54
|
+
});
|
|
55
|
+
function q() {
|
|
56
|
+
o.value = "";
|
|
57
|
+
}
|
|
58
|
+
const V = Y(() => {
|
|
59
|
+
var a;
|
|
60
|
+
return Z(o.value) && ((a = o.value) != null && a.length) ? o.value[0] + " - " + o.value[1] : o.value;
|
|
61
|
+
});
|
|
62
|
+
return (a, e) => J((c(), C("div", {
|
|
63
|
+
class: n(t(u).b()),
|
|
64
|
+
ref_key: "dateTimeSelectRef",
|
|
65
|
+
ref: x
|
|
66
|
+
}, [
|
|
67
|
+
B(t(ee), {
|
|
68
|
+
width: "auto",
|
|
69
|
+
ref_key: "popperRef",
|
|
70
|
+
ref: O,
|
|
71
|
+
placement: D.placement,
|
|
72
|
+
visible: l.value,
|
|
73
|
+
"onUpdate:visible": e[1] || (e[1] = (i) => l.value = i),
|
|
74
|
+
effect: "light",
|
|
75
|
+
transition: "vft-zoom-in-top",
|
|
76
|
+
"append-to": x.value
|
|
77
|
+
}, {
|
|
78
|
+
content: T(() => [
|
|
79
|
+
b("div", {
|
|
80
|
+
class: n(t(u).e("content"))
|
|
81
|
+
}, [
|
|
82
|
+
(c(!0), C(F, null, M(D.dateList, (i, R) => (c(), C("div", {
|
|
83
|
+
class: n(t(u).m("item")),
|
|
84
|
+
key: R
|
|
85
|
+
}, [
|
|
86
|
+
(c(!0), C(F, null, M(i, (p, v) => (c(), S(t(te), {
|
|
87
|
+
onClick: (h) => A(p),
|
|
88
|
+
type: "primary",
|
|
89
|
+
class: n(t(u).m("date-item")),
|
|
90
|
+
key: v
|
|
91
|
+
}, {
|
|
92
|
+
default: T(() => [
|
|
93
|
+
K(z(p.text), 1)
|
|
94
|
+
]),
|
|
95
|
+
_: 2
|
|
96
|
+
}, 1032, ["onClick", "class"]))), 128))
|
|
97
|
+
], 2))), 128))
|
|
98
|
+
], 2)
|
|
99
|
+
]),
|
|
100
|
+
default: T(() => [
|
|
101
|
+
b("span", {
|
|
102
|
+
onClick: e[0] || (e[0] = (i) => l.value = !l.value),
|
|
103
|
+
class: n(t(u).e("trigger"))
|
|
104
|
+
}, [
|
|
105
|
+
b("span", {
|
|
106
|
+
class: n([t(V) ? "text" : "placeholder"])
|
|
107
|
+
}, z(t(V) || $.value), 3),
|
|
108
|
+
o.value ? (c(), S(t(E), {
|
|
109
|
+
key: 0,
|
|
110
|
+
onClick: Q(q, ["stop"]),
|
|
111
|
+
cursor: "",
|
|
112
|
+
icon: "ico-ep:circle-close",
|
|
113
|
+
class: "hover:text-black"
|
|
114
|
+
}, null, 8, ["onClick"])) : W("", !0),
|
|
115
|
+
B(t(E), {
|
|
116
|
+
icon: "ico-ep:arrow-down",
|
|
117
|
+
class: n([{ "rotate-180": l.value }])
|
|
118
|
+
}, null, 8, ["class"])
|
|
119
|
+
], 2)
|
|
120
|
+
]),
|
|
121
|
+
_: 1
|
|
122
|
+
}, 8, ["placement", "visible", "append-to"])
|
|
123
|
+
], 2)), [
|
|
124
|
+
[t(ae), I, t(U)]
|
|
125
|
+
]);
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
export {
|
|
129
|
+
ye as default
|
|
130
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const VftDateTimeSelect: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
dateList: {
|
|
3
|
+
type: import("vue").PropType<Partial<import("./types").DateConfigProps>[][]>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
defaultFormat: {
|
|
7
|
+
type: import("vue").PropType<string | undefined>;
|
|
8
|
+
required: false;
|
|
9
|
+
};
|
|
10
|
+
placement: {
|
|
11
|
+
type: import("vue").PropType<import("@popperjs/core").Placement | undefined>;
|
|
12
|
+
required: false;
|
|
13
|
+
};
|
|
14
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
dateList: {
|
|
16
|
+
type: import("vue").PropType<Partial<import("./types").DateConfigProps>[][]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
defaultFormat: {
|
|
20
|
+
type: import("vue").PropType<string | undefined>;
|
|
21
|
+
required: false;
|
|
22
|
+
};
|
|
23
|
+
placement: {
|
|
24
|
+
type: import("vue").PropType<import("@popperjs/core").Placement | undefined>;
|
|
25
|
+
required: false;
|
|
26
|
+
};
|
|
27
|
+
}>> & {
|
|
28
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
}, {}>> & Record<string, any>;
|
|
30
|
+
export default VftDateTimeSelect;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { withInstall as t } from "../../utils/vue/install.js";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "@vft/utils";
|
|
4
|
+
import "lodash";
|
|
5
|
+
import "@vueuse/core";
|
|
6
|
+
import "../../utils/ns-cover.js";
|
|
7
|
+
import m from "./date-time-select.vue2.js";
|
|
8
|
+
const l = t(m);
|
|
9
|
+
export {
|
|
10
|
+
l as VftDateTimeSelect,
|
|
11
|
+
l as default
|
|
12
|
+
};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type DateType = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | 'date';
|
|
2
|
+
export interface DateConfigProps {
|
|
3
|
+
count: number;
|
|
4
|
+
text: string;
|
|
5
|
+
type: DateType;
|
|
6
|
+
startOfType: DateType;
|
|
7
|
+
endOfType: DateType;
|
|
8
|
+
format: string;
|
|
9
|
+
dateRange: boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -254,7 +254,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
254
254
|
required: false;
|
|
255
255
|
};
|
|
256
256
|
appendTo: {
|
|
257
|
-
type: import("vue").PropType<
|
|
257
|
+
type: import("vue").PropType<any>;
|
|
258
258
|
required: false;
|
|
259
259
|
};
|
|
260
260
|
content: {
|
|
@@ -464,7 +464,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
464
464
|
required: false;
|
|
465
465
|
};
|
|
466
466
|
appendTo: {
|
|
467
|
-
type: import("vue").PropType<
|
|
467
|
+
type: import("vue").PropType<any>;
|
|
468
468
|
required: false;
|
|
469
469
|
};
|
|
470
470
|
content: {
|
|
@@ -688,7 +688,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
688
688
|
required: false;
|
|
689
689
|
};
|
|
690
690
|
appendTo: {
|
|
691
|
-
type: import("vue").PropType<
|
|
691
|
+
type: import("vue").PropType<any>;
|
|
692
692
|
required: false;
|
|
693
693
|
};
|
|
694
694
|
content: {
|
|
@@ -811,9 +811,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
811
811
|
onCommand?: ((...args: any[]) => any) | undefined;
|
|
812
812
|
}, {
|
|
813
813
|
maxHeight: string | number;
|
|
814
|
+
placement: string;
|
|
814
815
|
popperClass: string;
|
|
815
816
|
disabled: boolean;
|
|
816
|
-
placement: string;
|
|
817
817
|
effect: string;
|
|
818
818
|
popperOptions: Record<string, any>;
|
|
819
819
|
size: string;
|
|
@@ -254,7 +254,7 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<import("
|
|
|
254
254
|
required: false;
|
|
255
255
|
};
|
|
256
256
|
appendTo: {
|
|
257
|
-
type: import("vue").PropType<
|
|
257
|
+
type: import("vue").PropType<any>;
|
|
258
258
|
required: false;
|
|
259
259
|
};
|
|
260
260
|
content: {
|
|
@@ -464,7 +464,7 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<import("
|
|
|
464
464
|
required: false;
|
|
465
465
|
};
|
|
466
466
|
appendTo: {
|
|
467
|
-
type: import("vue").PropType<
|
|
467
|
+
type: import("vue").PropType<any>;
|
|
468
468
|
required: false;
|
|
469
469
|
};
|
|
470
470
|
content: {
|
|
@@ -688,7 +688,7 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<import("
|
|
|
688
688
|
required: false;
|
|
689
689
|
};
|
|
690
690
|
appendTo: {
|
|
691
|
-
type: import("vue").PropType<
|
|
691
|
+
type: import("vue").PropType<any>;
|
|
692
692
|
required: false;
|
|
693
693
|
};
|
|
694
694
|
content: {
|
|
@@ -811,9 +811,9 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<import("
|
|
|
811
811
|
onCommand?: ((...args: any[]) => any) | undefined;
|
|
812
812
|
}, {
|
|
813
813
|
maxHeight: string | number;
|
|
814
|
+
placement: string;
|
|
814
815
|
popperClass: string;
|
|
815
816
|
disabled: boolean;
|
|
816
|
-
placement: string;
|
|
817
817
|
effect: string;
|
|
818
818
|
popperOptions: Record<string, any>;
|
|
819
819
|
size: string;
|
|
@@ -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
|
};
|