vft 0.0.503 → 0.0.505
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/es/components/alert/alert.vue2.js +46 -41
- package/es/components/cascader/cascader.vue2.js +217 -211
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +87 -83
- package/es/components/multiple-tabs/use/use-tab-dropdown.js +55 -39
- package/es/hooks/use-z-index/index.js +3 -3
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/components/alert/alert.vue2.cjs +1 -1
- package/lib/components/cascader/cascader.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-tab-dropdown.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/dark/css-vars.css +1 -1
- package/theme-style/display.css +1 -1
- package/theme-style/src/common/icon.scss +3 -0
- package/theme-style/src/multiple-tabs.scss +8 -0
- package/theme-style/vft-affix.css +1 -1
- package/theme-style/vft-alert.css +1 -1
- package/theme-style/vft-aside.css +1 -1
- package/theme-style/vft-autocomplete.css +1 -1
- package/theme-style/vft-avatar-stack.css +1 -1
- package/theme-style/vft-avatar.css +1 -1
- package/theme-style/vft-backtop.css +1 -1
- package/theme-style/vft-badge.css +1 -1
- package/theme-style/vft-breadcrumb.css +1 -1
- package/theme-style/vft-button-group.css +1 -1
- package/theme-style/vft-button.css +1 -1
- package/theme-style/vft-calendar.css +1 -1
- package/theme-style/vft-card.css +1 -1
- package/theme-style/vft-carousel-item.css +1 -1
- package/theme-style/vft-carousel.css +1 -1
- package/theme-style/vft-cascader-panel.css +1 -1
- package/theme-style/vft-cascader.css +1 -1
- package/theme-style/vft-check-tag.css +1 -1
- package/theme-style/vft-checkbox-button.css +1 -1
- package/theme-style/vft-checkbox-group.css +1 -1
- package/theme-style/vft-checkbox.css +1 -1
- package/theme-style/vft-clamp-toggle.css +1 -1
- package/theme-style/vft-col.css +1 -1
- package/theme-style/vft-collapse.css +1 -1
- package/theme-style/vft-color-picker.css +1 -1
- package/theme-style/vft-container.css +1 -1
- package/theme-style/vft-date-picker.css +1 -1
- package/theme-style/vft-date-time-select.css +1 -1
- package/theme-style/vft-descriptions-item.css +1 -1
- package/theme-style/vft-descriptions.css +1 -1
- package/theme-style/vft-dialog.css +1 -1
- package/theme-style/vft-divider.css +1 -1
- package/theme-style/vft-drawer.css +1 -1
- package/theme-style/vft-dropdown.css +1 -1
- package/theme-style/vft-empty.css +1 -1
- package/theme-style/vft-footer-layout.css +1 -1
- package/theme-style/vft-footer.css +1 -1
- package/theme-style/vft-form.css +1 -1
- package/theme-style/vft-full-screen.css +1 -1
- package/theme-style/vft-header-layout.css +1 -1
- package/theme-style/vft-header.css +1 -1
- package/theme-style/vft-horizontal-menu.css +1 -1
- package/theme-style/vft-icon-text.css +1 -1
- package/theme-style/vft-icon.css +1 -1
- package/theme-style/vft-iframe-layout.css +1 -1
- package/theme-style/vft-image-viewer.css +1 -1
- package/theme-style/vft-image.css +1 -1
- package/theme-style/vft-input-number.css +1 -1
- package/theme-style/vft-input-tag.css +1 -1
- package/theme-style/vft-input.css +1 -1
- package/theme-style/vft-link.css +1 -1
- package/theme-style/vft-list-cell.css +1 -1
- package/theme-style/vft-loading.css +1 -1
- package/theme-style/vft-logo.css +1 -1
- package/theme-style/vft-main.css +1 -1
- package/theme-style/vft-md-code-demo.css +1 -1
- package/theme-style/vft-md-code-tabs.css +1 -1
- package/theme-style/vft-md-comment.css +1 -1
- package/theme-style/vft-md-container.css +1 -1
- package/theme-style/vft-md-tabs.css +1 -1
- package/theme-style/vft-md-vue-playground.css +1 -1
- package/theme-style/vft-menu.css +1 -1
- package/theme-style/vft-message-box.css +1 -1
- package/theme-style/vft-message.css +1 -1
- package/theme-style/vft-multiple-tabs.css +1 -1
- package/theme-style/vft-notification.css +1 -1
- package/theme-style/vft-option-group.css +1 -1
- package/theme-style/vft-option-item.css +1 -1
- package/theme-style/vft-option.css +1 -1
- package/theme-style/vft-overlay.css +1 -1
- package/theme-style/vft-page-wrapper.css +1 -1
- package/theme-style/vft-pagination.css +1 -1
- package/theme-style/vft-popconfirm.css +1 -1
- package/theme-style/vft-popover.css +1 -1
- package/theme-style/vft-popper.css +1 -1
- package/theme-style/vft-progress.css +1 -1
- package/theme-style/vft-radio-button.css +1 -1
- package/theme-style/vft-radio-group.css +1 -1
- package/theme-style/vft-rate.css +1 -1
- package/theme-style/vft-result.css +1 -1
- package/theme-style/vft-row.css +1 -1
- package/theme-style/vft-scrollbar.css +1 -1
- package/theme-style/vft-search.css +1 -1
- package/theme-style/vft-segmented.css +1 -1
- package/theme-style/vft-select-dropdown-v2.css +1 -1
- package/theme-style/vft-select-dropdown.css +1 -1
- package/theme-style/vft-select.css +1 -1
- package/theme-style/vft-side-menu.css +1 -1
- package/theme-style/vft-skeleton-item.css +1 -1
- package/theme-style/vft-skeleton.css +1 -1
- package/theme-style/vft-slider.css +1 -1
- package/theme-style/vft-space.css +1 -1
- package/theme-style/vft-spinner.css +1 -1
- package/theme-style/vft-statistic.css +1 -1
- package/theme-style/vft-step.css +1 -1
- package/theme-style/vft-steps.css +1 -1
- package/theme-style/vft-super-form.css +1 -1
- package/theme-style/vft-switch.css +1 -1
- package/theme-style/vft-table.css +1 -1
- package/theme-style/vft-tabs.css +1 -1
- package/theme-style/vft-tag.css +1 -1
- package/theme-style/vft-time-picker.css +1 -1
- package/theme-style/vft-time-select.css +1 -1
- package/theme-style/vft-timeline-item.css +1 -1
- package/theme-style/vft-timeline.css +1 -1
- package/theme-style/vft-transfer.css +1 -1
- package/theme-style/vft-tree-select.css +1 -1
- package/theme-style/vft-tree.css +1 -1
- package/theme-style/vft-virtual-list.css +1 -1
- package/web-types.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as C, useSlots as
|
|
2
|
-
import { VftIcon as
|
|
1
|
+
import { defineComponent as C, useSlots as N, ref as S, computed as a, createBlock as r, openBlock as l, Transition as V, unref as o, withCtx as $, withDirectives as x, createElementVNode as v, normalizeClass as n, createCommentVNode as s, createElementBlock as c, renderSlot as k, createTextVNode as p, toDisplayString as u, Fragment as E, vShow as I } from "vue";
|
|
2
|
+
import { VftIcon as b } from "../icon/index.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import "@vft/utils";
|
|
5
5
|
import "../config-provider/hooks/use-global-config.js";
|
|
6
6
|
import "lodash-es";
|
|
7
7
|
import "../form/index.js";
|
|
8
|
-
import { useNamespace as
|
|
8
|
+
import { useNamespace as D } from "../../hooks/use-namespace/index.js";
|
|
9
9
|
import "../../hooks/use-model-toggle/index.js";
|
|
10
10
|
import "@popperjs/core";
|
|
11
11
|
import "../../hooks/use-z-index/index.js";
|
|
12
|
-
const
|
|
12
|
+
const M = C({
|
|
13
13
|
name: "vft-alert"
|
|
14
|
-
}),
|
|
15
|
-
...
|
|
14
|
+
}), Q = /* @__PURE__ */ C({
|
|
15
|
+
...M,
|
|
16
16
|
props: {
|
|
17
17
|
title: { default: "" },
|
|
18
18
|
description: { default: "" },
|
|
@@ -27,59 +27,64 @@ const D = C({
|
|
|
27
27
|
close: (e) => e instanceof MouseEvent
|
|
28
28
|
},
|
|
29
29
|
setup(e, { emit: h }) {
|
|
30
|
-
const
|
|
30
|
+
const w = h, t = D("alert"), B = {
|
|
31
|
+
success: "icon-success-filled",
|
|
32
|
+
warning: "icon-warning-filled",
|
|
33
|
+
error: "icon-error-filled",
|
|
34
|
+
info: "icon-info-filled"
|
|
35
|
+
}, d = N(), f = S(!0), m = a(() => B[e.type] || e.type), T = a(() => [
|
|
31
36
|
t.e("icon"),
|
|
32
|
-
{ [t.is("big")]: !!e.description || !!
|
|
33
|
-
]),
|
|
34
|
-
|
|
37
|
+
{ [t.is("big")]: !!e.description || !!d.default }
|
|
38
|
+
]), g = a(() => ({ [t.is("bold")]: e.description || d.default })), y = (i) => {
|
|
39
|
+
f.value = !1, w("close", i);
|
|
35
40
|
};
|
|
36
|
-
return (
|
|
37
|
-
name:
|
|
41
|
+
return (i, z) => (l(), r(V, {
|
|
42
|
+
name: o(t).b("fade")
|
|
38
43
|
}, {
|
|
39
|
-
default:
|
|
40
|
-
|
|
41
|
-
class:
|
|
44
|
+
default: $(() => [
|
|
45
|
+
x(v("div", {
|
|
46
|
+
class: n([o(t).b(), o(t).m(e.type), o(t).is("center", e.center), o(t).is(e.effect)]),
|
|
42
47
|
role: "alert"
|
|
43
48
|
}, [
|
|
44
|
-
e.showIcon &&
|
|
49
|
+
e.showIcon && m.value ? (l(), r(o(b), {
|
|
45
50
|
key: 0,
|
|
46
|
-
class:
|
|
47
|
-
icon:
|
|
48
|
-
}, null, 8, ["class", "icon"])) :
|
|
49
|
-
|
|
50
|
-
class:
|
|
51
|
+
class: n(T.value),
|
|
52
|
+
icon: m.value
|
|
53
|
+
}, null, 8, ["class", "icon"])) : s("", !0),
|
|
54
|
+
v("div", {
|
|
55
|
+
class: n(o(t).e("content"))
|
|
51
56
|
}, [
|
|
52
|
-
e.title ||
|
|
57
|
+
e.title || i.$slots.title ? (l(), c("span", {
|
|
53
58
|
key: 0,
|
|
54
|
-
class:
|
|
59
|
+
class: n([o(t).e("title"), g.value])
|
|
55
60
|
}, [
|
|
56
|
-
k(
|
|
57
|
-
|
|
61
|
+
k(i.$slots, "title", {}, () => [
|
|
62
|
+
p(u(e.title), 1)
|
|
58
63
|
])
|
|
59
|
-
], 2)) :
|
|
60
|
-
|
|
64
|
+
], 2)) : s("", !0),
|
|
65
|
+
i.$slots.default || e.description ? (l(), c("p", {
|
|
61
66
|
key: 1,
|
|
62
|
-
class:
|
|
67
|
+
class: n(o(t).e("description"))
|
|
63
68
|
}, [
|
|
64
|
-
k(
|
|
65
|
-
|
|
69
|
+
k(i.$slots, "default", {}, () => [
|
|
70
|
+
p(u(e.description), 1)
|
|
66
71
|
])
|
|
67
|
-
], 2)) :
|
|
68
|
-
e.closable ? (
|
|
69
|
-
e.closeText ? (
|
|
72
|
+
], 2)) : s("", !0),
|
|
73
|
+
e.closable ? (l(), c(E, { key: 2 }, [
|
|
74
|
+
e.closeText ? (l(), c("div", {
|
|
70
75
|
key: 0,
|
|
71
|
-
class:
|
|
72
|
-
onClick:
|
|
73
|
-
}, u(e.closeText), 3)) : (
|
|
76
|
+
class: n([o(t).e("close-btn"), o(t).is("customed")]),
|
|
77
|
+
onClick: y
|
|
78
|
+
}, u(e.closeText), 3)) : (l(), r(o(b), {
|
|
74
79
|
key: 1,
|
|
75
|
-
class:
|
|
76
|
-
onClick:
|
|
80
|
+
class: n(o(t).e("close-btn")),
|
|
81
|
+
onClick: y,
|
|
77
82
|
icon: "icon-close"
|
|
78
83
|
}, null, 8, ["class"]))
|
|
79
|
-
], 64)) :
|
|
84
|
+
], 64)) : s("", !0)
|
|
80
85
|
], 2)
|
|
81
86
|
], 2), [
|
|
82
|
-
[
|
|
87
|
+
[I, f.value]
|
|
83
88
|
])
|
|
84
89
|
]),
|
|
85
90
|
_: 3
|
|
@@ -87,5 +92,5 @@ const D = C({
|
|
|
87
92
|
}
|
|
88
93
|
});
|
|
89
94
|
export {
|
|
90
|
-
|
|
95
|
+
Q as default
|
|
91
96
|
};
|