vft 0.0.63 → 0.0.66
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/back-top/back-top.vue2.js +3 -2
- 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/index.d.ts +1 -0
- package/es/components/index.js +98 -96
- 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/back-top/back-top.vue2.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/index.cjs +1 -1
- package/lib/components/index.d.ts +1 -0
- 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 +2 -2
- package/tags.json +1 -1
- package/theme-style/base.css +1 -1
- package/theme-style/dark/css-vars.css +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/common/var.scss +1 -3
- package/theme-style/src/dark/css-vars.scss +1 -0
- package/theme-style/src/date-time-select.scss +81 -0
- package/theme-style/src/index.scss +1 -0
- package/theme-style/src/side-menu.scss +0 -1
- package/theme-style/src/var.scss +1 -0
- package/theme-style/vft-date-time-select.css +1 -0
- package/theme-style/vft-icon.css +1 -1
- package/theme-style/vft-side-menu.css +1 -1
- package/theme-style/vft-var.css +1 -1
- package/web-types.json +1 -1
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { listenerRouteChange as Q, useRouterHelper as X } from "@vft/router";
|
|
3
|
-
import { useSortable as Z } from "@vft/use";
|
|
4
|
-
import { isUrl as I, addUnit as C, isNullOrUndefined as V, removeUnit as _ } from "@vft/utils";
|
|
5
|
-
import { useNamespace as ee } from "../../hooks/use-namespace/index.js";
|
|
6
|
-
import "@popperjs/core";
|
|
7
|
-
import "lodash";
|
|
8
|
-
import "../../hooks/use-z-index/index.js";
|
|
9
|
-
import "@vueuse/core";
|
|
10
|
-
import { generateCssVars as te, cssVarValue as oe } from "../../utils/ns-cover.js";
|
|
11
|
-
import "@vue/reactivity";
|
|
12
|
-
import "@vue/shared";
|
|
1
|
+
import { defineComponent as T, useSlots as Y, ref as g, computed as m, h as v, onMounted as F, nextTick as G, getCurrentInstance as J, createVNode as f } from "vue";
|
|
13
2
|
import "../divider/index.js";
|
|
14
|
-
import { VftIcon as
|
|
3
|
+
import { VftIcon as K } from "../icon/index.js";
|
|
15
4
|
import "../avatar/index.js";
|
|
16
5
|
import "../empty/index.js";
|
|
17
6
|
import "../result/index.js";
|
|
@@ -20,11 +9,14 @@ import "../popper/index.js";
|
|
|
20
9
|
import "../collapse-transition/index.js";
|
|
21
10
|
import "../tooltip/index.js";
|
|
22
11
|
import "../popover/index.js";
|
|
23
|
-
import { VftMenu as
|
|
12
|
+
import { VftMenu as Q, VftSubMenu as X, VftMenuItem as R } from "../menu/index.js";
|
|
13
|
+
import { isUrl as Z, addUnit as k, isNullOrUndefined as N, removeUnit as I } from "@vft/utils";
|
|
24
14
|
import "../context-menu/context-menu.vue2.js";
|
|
25
15
|
import "../multiple-tabs/multiple-tabs.vue2.js";
|
|
16
|
+
import { listenerRouteChange as _, useRouterHelper as ee } from "@vft/router";
|
|
26
17
|
import "@vft/store";
|
|
27
|
-
import {
|
|
18
|
+
import { useSortable as te } from "@vft/use";
|
|
19
|
+
import { useRouter as oe } from "vue-router";
|
|
28
20
|
import "../header-layout/index.js";
|
|
29
21
|
import "../footer-layout/index.js";
|
|
30
22
|
import "../iframe-layout/index.js";
|
|
@@ -67,6 +59,7 @@ import "../table/index.js";
|
|
|
67
59
|
import "../image-viewer/index.js";
|
|
68
60
|
import "../list-cell/index.js";
|
|
69
61
|
import "../dialog/index.js";
|
|
62
|
+
import "../date-time-select/index.js";
|
|
70
63
|
import "../md-container/index.js";
|
|
71
64
|
import "../md-comment/index.js";
|
|
72
65
|
import "../md-tabs/index.js";
|
|
@@ -74,14 +67,22 @@ import "../md-vue-playground/index.js";
|
|
|
74
67
|
import "../md-code-demo/index.js";
|
|
75
68
|
import "../md-code-tabs/index.js";
|
|
76
69
|
import "../message/index.js";
|
|
77
|
-
import {
|
|
70
|
+
import { useNamespace as ie } from "../../hooks/use-namespace/index.js";
|
|
71
|
+
import "@popperjs/core";
|
|
72
|
+
import "lodash";
|
|
73
|
+
import "../../hooks/use-z-index/index.js";
|
|
74
|
+
import "@vueuse/core";
|
|
75
|
+
import "../../utils/ns-cover.js";
|
|
76
|
+
import "@vue/reactivity";
|
|
77
|
+
import "@vue/shared";
|
|
78
|
+
import { useDragLine as le } from "./use-drag-line.js";
|
|
78
79
|
const a = (
|
|
79
80
|
/* hoist-static*/
|
|
80
|
-
|
|
81
|
-
),
|
|
81
|
+
ie("side-menu")
|
|
82
|
+
), ne = T({
|
|
82
83
|
name: a.b()
|
|
83
|
-
}), Tt = /* @__PURE__ */
|
|
84
|
-
...
|
|
84
|
+
}), Tt = /* @__PURE__ */ T({
|
|
85
|
+
...ne,
|
|
85
86
|
props: {
|
|
86
87
|
menus: null,
|
|
87
88
|
uniqueOpened: {
|
|
@@ -93,7 +94,7 @@ const a = (
|
|
|
93
94
|
default: !1
|
|
94
95
|
},
|
|
95
96
|
defaultActive: null,
|
|
96
|
-
|
|
97
|
+
sideWidth: null,
|
|
97
98
|
collapseWidth: {
|
|
98
99
|
default: 50
|
|
99
100
|
},
|
|
@@ -111,7 +112,7 @@ const a = (
|
|
|
111
112
|
dragOption: null,
|
|
112
113
|
dragWidth: {
|
|
113
114
|
type: Boolean,
|
|
114
|
-
default: !
|
|
115
|
+
default: !1
|
|
115
116
|
},
|
|
116
117
|
useMenuSelect: {
|
|
117
118
|
type: Boolean,
|
|
@@ -126,12 +127,12 @@ const a = (
|
|
|
126
127
|
},
|
|
127
128
|
defaultOpeneds: null
|
|
128
129
|
},
|
|
129
|
-
emits: ["update:collapse", "dragEnd", "select", "dragWidthEnd"],
|
|
130
|
+
emits: ["update:collapse", "update:sideWidth", "dragEnd", "select", "dragWidthEnd"],
|
|
130
131
|
setup(t, {
|
|
131
|
-
expose:
|
|
132
|
-
emit:
|
|
132
|
+
expose: A,
|
|
133
|
+
emit: h
|
|
133
134
|
}) {
|
|
134
|
-
const c =
|
|
135
|
+
const c = Y(), y = g(), l = m(() => ({
|
|
135
136
|
path: "path",
|
|
136
137
|
children: "children",
|
|
137
138
|
title: "title",
|
|
@@ -140,60 +141,60 @@ const a = (
|
|
|
140
141
|
disabled: "disabled",
|
|
141
142
|
...t.attrMapping
|
|
142
143
|
}));
|
|
143
|
-
|
|
144
|
+
_((e) => {
|
|
144
145
|
var o;
|
|
145
|
-
!e || (o = e.meta) != null && o.hideSide && !t.openListenRoute || (
|
|
146
|
+
!e || (o = e.meta) != null && o.hideSide && !t.openListenRoute || (y.value = e.path);
|
|
146
147
|
});
|
|
147
|
-
const
|
|
148
|
-
const
|
|
148
|
+
const C = (e, o) => {
|
|
149
|
+
const i = e[l.value.path], d = e[l.value.title], r = e == null ? void 0 : e[l.value.children], p = e == null ? void 0 : e[l.value.index], u = e == null ? void 0 : e[l.value.icon], s = !(e != null && e[l.value.disabled]);
|
|
149
150
|
return r != null && r.length ? v(
|
|
150
151
|
// @ts-ignore
|
|
151
|
-
|
|
152
|
+
X,
|
|
152
153
|
{
|
|
153
154
|
popperAppendToBody: !0,
|
|
154
|
-
key:
|
|
155
|
-
index:
|
|
156
|
-
title:
|
|
157
|
-
icon:
|
|
155
|
+
key: p || i,
|
|
156
|
+
index: p || i,
|
|
157
|
+
title: d,
|
|
158
|
+
icon: u,
|
|
158
159
|
popperClass: a.e("popper")
|
|
159
160
|
},
|
|
160
161
|
{
|
|
161
|
-
default: () => r == null ? void 0 : r.map((
|
|
162
|
-
var
|
|
163
|
-
const
|
|
164
|
-
return (
|
|
162
|
+
default: () => r == null ? void 0 : r.map((n, P) => {
|
|
163
|
+
var M;
|
|
164
|
+
const x = n[l.value.path], S = n[l.value.index], $ = n[l.value.icon], j = n[l.value.title], z = n[l.value.disabled];
|
|
165
|
+
return (M = n == null ? void 0 : n[l.value.children]) != null && M.length ? C(n, P) : (
|
|
165
166
|
// @ts-ignore
|
|
166
|
-
v(
|
|
167
|
-
key:
|
|
168
|
-
index:
|
|
169
|
-
route:
|
|
170
|
-
icon:
|
|
171
|
-
title:
|
|
172
|
-
disabled: t.openDisabled &&
|
|
167
|
+
v(R, {
|
|
168
|
+
key: S || x,
|
|
169
|
+
index: S || x,
|
|
170
|
+
route: x,
|
|
171
|
+
icon: $,
|
|
172
|
+
title: j,
|
|
173
|
+
disabled: t.openDisabled && z
|
|
173
174
|
})
|
|
174
175
|
);
|
|
175
176
|
})
|
|
176
177
|
}
|
|
177
|
-
) : v(
|
|
178
|
-
key:
|
|
179
|
-
index:
|
|
180
|
-
title:
|
|
181
|
-
route:
|
|
182
|
-
icon:
|
|
178
|
+
) : v(R, {
|
|
179
|
+
key: p || i,
|
|
180
|
+
index: p || i,
|
|
181
|
+
title: d,
|
|
182
|
+
route: i,
|
|
183
|
+
icon: u,
|
|
183
184
|
disabled: t.openDisabled && s
|
|
184
185
|
}, c.menuItem ? () => {
|
|
185
|
-
var
|
|
186
|
-
return (
|
|
186
|
+
var n;
|
|
187
|
+
return (n = c.menuItem) == null ? void 0 : n.call(c, {
|
|
187
188
|
item: e,
|
|
188
189
|
index: o
|
|
189
190
|
});
|
|
190
191
|
} : "");
|
|
191
|
-
},
|
|
192
|
+
}, D = m(() => {
|
|
192
193
|
var e, o;
|
|
193
|
-
return v(
|
|
194
|
+
return v(Q, {
|
|
194
195
|
onSelect: t.useMenuSelect ? H : () => {
|
|
195
196
|
},
|
|
196
|
-
defaultActive: t.defaultActive ||
|
|
197
|
+
defaultActive: t.defaultActive || y.value,
|
|
197
198
|
defaultOpeneds: t.defaultOpeneds,
|
|
198
199
|
class: [a.e("con"), (e = t.dragOption) != null && e.dragClassName ? a.e((o = t.dragOption) == null ? void 0 : o.dragClassName) : ""],
|
|
199
200
|
style: {
|
|
@@ -202,43 +203,41 @@ const a = (
|
|
|
202
203
|
uniqueOpened: t.uniqueOpened,
|
|
203
204
|
collapse: t.collapse,
|
|
204
205
|
"collapse-transition": !1
|
|
205
|
-
}, () => t.menus.map((
|
|
206
|
+
}, () => t.menus.map((i, d) => C(i, d)));
|
|
206
207
|
}), {
|
|
207
|
-
go:
|
|
208
|
-
} =
|
|
208
|
+
go: O
|
|
209
|
+
} = ee(), w = oe();
|
|
209
210
|
async function H(e) {
|
|
210
|
-
var r,
|
|
211
|
+
var r, p, u;
|
|
211
212
|
const o = e.route;
|
|
212
|
-
let
|
|
213
|
-
e.indexPath.some((s) =>
|
|
214
|
-
const
|
|
215
|
-
|
|
213
|
+
let i = e.route;
|
|
214
|
+
e.indexPath.some((s) => Z(s)) && (i = e.indexPath.slice(-2).join("/"));
|
|
215
|
+
const d = (u = (p = (r = w.getRoutes().filter((s) => s.path === i)) == null ? void 0 : r[0]) == null ? void 0 : p.meta) == null ? void 0 : u.linkTarget;
|
|
216
|
+
O(d ? {
|
|
216
217
|
url: o,
|
|
217
218
|
winOpenOpt: {
|
|
218
|
-
target:
|
|
219
|
+
target: d
|
|
219
220
|
}
|
|
220
|
-
} : o),
|
|
221
|
+
} : o), h("select", e);
|
|
221
222
|
}
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
width: t.collapse ? C(t.collapseWidth) : x.value ? C(x.value) : C(t.width)
|
|
225
|
-
}, "side-menu"),
|
|
223
|
+
const W = g(), V = m(() => ({
|
|
224
|
+
width: k(t.sideWidth),
|
|
226
225
|
height: `calc(100% - ${t.extraHeight}px)`
|
|
227
|
-
})),
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
var e, o,
|
|
226
|
+
})), q = m(() => [a.b(), a.m("fixed")]);
|
|
227
|
+
F(() => {
|
|
228
|
+
G(() => {
|
|
229
|
+
var e, o, i;
|
|
231
230
|
if ((e = t.dragOption) != null && e.dragClassName) {
|
|
232
|
-
const
|
|
231
|
+
const d = (i = document.querySelectorAll("." + a.e((o = t.dragOption) == null ? void 0 : o.dragClassName))) == null ? void 0 : i[0], {
|
|
233
232
|
initSortable: r
|
|
234
|
-
} =
|
|
233
|
+
} = te(d, {
|
|
235
234
|
draggable: ".vft-menu-item",
|
|
236
|
-
onEnd: (
|
|
235
|
+
onEnd: (p) => {
|
|
237
236
|
const {
|
|
238
|
-
oldIndex:
|
|
237
|
+
oldIndex: u,
|
|
239
238
|
newIndex: s
|
|
240
|
-
} =
|
|
241
|
-
|
|
239
|
+
} = p;
|
|
240
|
+
N(u) || N(s) || u === s || h("dragEnd", u, s);
|
|
242
241
|
},
|
|
243
242
|
...t.dragOption
|
|
244
243
|
});
|
|
@@ -246,35 +245,35 @@ const a = (
|
|
|
246
245
|
}
|
|
247
246
|
});
|
|
248
247
|
});
|
|
249
|
-
const
|
|
250
|
-
left:
|
|
248
|
+
const b = g(), B = g(), E = m(() => ({
|
|
249
|
+
left: k(t.sideWidth)
|
|
251
250
|
}));
|
|
252
|
-
function
|
|
253
|
-
t.collapse
|
|
251
|
+
function U() {
|
|
252
|
+
t.collapse ? h("update:sideWidth", W.value) : (W.value = t.sideWidth, h("update:sideWidth", t.collapseWidth)), h("update:collapse", !t.collapse);
|
|
254
253
|
}
|
|
255
|
-
const
|
|
256
|
-
return t.dragWidth &&
|
|
257
|
-
sideRef:
|
|
254
|
+
const L = J();
|
|
255
|
+
return t.dragWidth && le(b, B, m(() => I(t.collapseWidth)), L, m(() => t.collapse)), A({
|
|
256
|
+
sideRef: b
|
|
258
257
|
}), () => f("div", {
|
|
259
|
-
ref:
|
|
260
|
-
class:
|
|
261
|
-
style:
|
|
258
|
+
ref: b,
|
|
259
|
+
class: q.value,
|
|
260
|
+
style: V.value
|
|
262
261
|
}, [c.top ? f("div", {
|
|
263
262
|
class: a.e("top")
|
|
264
|
-
}, [c.top()]) : null,
|
|
263
|
+
}, [c.top()]) : null, D.value, c.bottom ? f("div", {
|
|
265
264
|
class: a.e("bottom")
|
|
266
265
|
}, [c.bottom()]) : t.showCollapse ? f("div", {
|
|
267
|
-
onClick:
|
|
266
|
+
onClick: U,
|
|
268
267
|
class: [a.e("bottom"), a.e("collapse")]
|
|
269
|
-
}, [f(
|
|
268
|
+
}, [f(K, {
|
|
270
269
|
style: {
|
|
271
270
|
transform: t.collapse ? "rotateY(180deg)" : ""
|
|
272
271
|
},
|
|
273
272
|
size: 20,
|
|
274
273
|
icon: "ico-iconoir:sidebar-collapse"
|
|
275
274
|
}, null)]) : null, t.dragWidth ? f("div", {
|
|
276
|
-
ref:
|
|
277
|
-
style:
|
|
275
|
+
ref: B,
|
|
276
|
+
style: E.value,
|
|
278
277
|
class: a.e("drag-bar")
|
|
279
278
|
}, null) : null]);
|
|
280
279
|
}
|
|
@@ -1,51 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { onMounted as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { setCssVar as y } from "../../utils/ns-cover.js";
|
|
6
|
-
import { useDebounceFn as M } from "@vft/use";
|
|
7
|
-
function $(i, c, a, m, p) {
|
|
8
|
-
v(() => {
|
|
1
|
+
import { useDebounceFn as v } from "@vft/use";
|
|
2
|
+
import { onMounted as x, nextTick as g, unref as r } from "vue";
|
|
3
|
+
function T(l, f, m, s, d) {
|
|
4
|
+
x(() => {
|
|
9
5
|
g(() => {
|
|
10
|
-
|
|
6
|
+
v(w, 100)();
|
|
11
7
|
});
|
|
12
8
|
});
|
|
13
|
-
function
|
|
14
|
-
var
|
|
15
|
-
const
|
|
16
|
-
return
|
|
9
|
+
function i(t) {
|
|
10
|
+
var n;
|
|
11
|
+
const o = r(t);
|
|
12
|
+
return o ? Reflect.has(o, "$el") ? (n = r(t)) == null ? void 0 : n.$el : r(t) : null;
|
|
17
13
|
}
|
|
18
|
-
function
|
|
14
|
+
function p(t, o, n) {
|
|
19
15
|
document.onmousemove = function(u) {
|
|
20
|
-
let
|
|
16
|
+
let e = t.left + (u.clientX - n);
|
|
21
17
|
u = u || window.event;
|
|
22
|
-
const
|
|
23
|
-
return
|
|
18
|
+
const a = 800, c = r(m);
|
|
19
|
+
return e < 0 && (e = 0), e > a && (e = a), e <= c && (e = c, s.emit("update:sideWidth", c), s.emit("update:collapse", !0)), t.style.left = e + "px", !1;
|
|
24
20
|
};
|
|
25
21
|
}
|
|
26
|
-
function
|
|
27
|
-
const
|
|
22
|
+
function h(t) {
|
|
23
|
+
const o = i(f), n = i(l);
|
|
28
24
|
document.onmouseup = function() {
|
|
29
|
-
var
|
|
30
|
-
document.onmousemove = null, document.onmouseup = null,
|
|
31
|
-
const u = parseInt(
|
|
32
|
-
|
|
25
|
+
var e;
|
|
26
|
+
document.onmousemove = null, document.onmouseup = null, n.style.transition = "width 0.2s";
|
|
27
|
+
const u = parseInt(o.style.left);
|
|
28
|
+
u > r(m) && d.value && s.emit("update:collapse", !1), s.emit("update:sideWidth", u), s.emit("dragWidthEnd"), (e = t.releaseCapture) == null || e.call(t);
|
|
33
29
|
};
|
|
34
30
|
}
|
|
35
|
-
function
|
|
36
|
-
const t =
|
|
31
|
+
function w() {
|
|
32
|
+
const t = i(f);
|
|
37
33
|
if (!t)
|
|
38
34
|
return;
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
const u =
|
|
44
|
-
return t.left = t.offsetLeft,
|
|
35
|
+
const o = i(l);
|
|
36
|
+
o && (t.onmousedown = (n) => {
|
|
37
|
+
var e;
|
|
38
|
+
o.style.transition = "unset";
|
|
39
|
+
const u = n == null ? void 0 : n.clientX;
|
|
40
|
+
return t.left = t.offsetLeft, p(t, o, u), h(t), (e = t.setCapture) == null || e.call(t), !1;
|
|
45
41
|
});
|
|
46
42
|
}
|
|
47
43
|
return {};
|
|
48
44
|
}
|
|
49
45
|
export {
|
|
50
|
-
|
|
46
|
+
T as useDragLine
|
|
51
47
|
};
|
|
@@ -63,6 +63,7 @@ import "../table/index.js";
|
|
|
63
63
|
import "../image-viewer/index.js";
|
|
64
64
|
import "../list-cell/index.js";
|
|
65
65
|
import "../dialog/index.js";
|
|
66
|
+
import "../date-time-select/index.js";
|
|
66
67
|
import "../md-container/index.js";
|
|
67
68
|
import "../md-comment/index.js";
|
|
68
69
|
import "../md-tabs/index.js";
|
|
@@ -83,7 +84,7 @@ const V = (
|
|
|
83
84
|
K("tab-nav")
|
|
84
85
|
), ct = E({
|
|
85
86
|
name: V.b()
|
|
86
|
-
}),
|
|
87
|
+
}), Ko = /* @__PURE__ */ E({
|
|
87
88
|
...ct,
|
|
88
89
|
props: {
|
|
89
90
|
panes: null,
|
|
@@ -237,5 +238,5 @@ const V = (
|
|
|
237
238
|
}
|
|
238
239
|
});
|
|
239
240
|
export {
|
|
240
|
-
|
|
241
|
+
Ko as default
|
|
241
242
|
};
|
|
File without changes
|
|
File without changes
|
|
@@ -95,7 +95,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
95
95
|
required: false;
|
|
96
96
|
};
|
|
97
97
|
appendTo: {
|
|
98
|
-
type: __PropType<
|
|
98
|
+
type: __PropType<any>;
|
|
99
99
|
required: false;
|
|
100
100
|
};
|
|
101
101
|
content: {
|
|
@@ -229,7 +229,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
229
229
|
required: false;
|
|
230
230
|
};
|
|
231
231
|
appendTo: {
|
|
232
|
-
type: __PropType<
|
|
232
|
+
type: __PropType<any>;
|
|
233
233
|
required: false;
|
|
234
234
|
};
|
|
235
235
|
content: {
|
|
@@ -153,7 +153,7 @@ export declare const VftTooltip: import("vft/es/utils").SFCWithInstall<import("v
|
|
|
153
153
|
required: false;
|
|
154
154
|
};
|
|
155
155
|
appendTo: {
|
|
156
|
-
type: import("vue").PropType<
|
|
156
|
+
type: import("vue").PropType<any>;
|
|
157
157
|
required: false;
|
|
158
158
|
};
|
|
159
159
|
content: {
|
|
@@ -350,7 +350,7 @@ export declare const VftTooltip: import("vft/es/utils").SFCWithInstall<import("v
|
|
|
350
350
|
required: false;
|
|
351
351
|
};
|
|
352
352
|
appendTo: {
|
|
353
|
-
type: import("vue").PropType<
|
|
353
|
+
type: import("vue").PropType<any>;
|
|
354
354
|
required: false;
|
|
355
355
|
};
|
|
356
356
|
content: {
|
|
@@ -42,7 +42,7 @@ export interface ToolTipProps {
|
|
|
42
42
|
zIndex?: number;
|
|
43
43
|
showAfter?: number;
|
|
44
44
|
hideAfter?: number;
|
|
45
|
-
appendTo?:
|
|
45
|
+
appendTo?: any;
|
|
46
46
|
content?: string;
|
|
47
47
|
rawContent?: boolean;
|
|
48
48
|
persistent?: boolean;
|
|
@@ -206,7 +206,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
206
206
|
required: false;
|
|
207
207
|
};
|
|
208
208
|
appendTo: {
|
|
209
|
-
type: __PropType<
|
|
209
|
+
type: __PropType<any>;
|
|
210
210
|
required: false;
|
|
211
211
|
};
|
|
212
212
|
content: {
|
|
@@ -424,7 +424,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
424
424
|
required: false;
|
|
425
425
|
};
|
|
426
426
|
appendTo: {
|
|
427
|
-
type: __PropType<
|
|
427
|
+
type: __PropType<any>;
|
|
428
428
|
required: false;
|
|
429
429
|
};
|
|
430
430
|
content: {
|