hy-dispatch-ui-v3 0.2.30 → 0.2.32
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/tailwind.css +8 -8
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +7 -7
- package/es/components/hyAudioPlayer/js/index.mjs +3 -3
- package/es/components/hyButton/button.vue.mjs +112 -65
- package/es/components/hyButton/style/button.scss +282 -237
- package/es/components/hyForm/index.mjs +1 -1
- package/es/components/hyForm/js/useAppForm.mjs +1 -2
- package/es/components/hyIcon/style/icon.scss +6 -0
- package/es/components/hyMenu/menu.vue.mjs +1 -1
- package/es/components/hyMenu/style/menu.scss +1 -1
- package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -1
- package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -1
- package/es/components/hySearch/index.mjs +1 -1
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +331 -319
- package/es/components/hyTable/js/index.mjs +7 -3
- package/es/components/hyTable/js/useAppTable.mjs +1 -1
- package/es/components/hyTable/table.vue.mjs +11 -7
- package/es/components/hyTree/tree.vue.mjs +6 -7
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +2 -2
- package/es/components/hyVideoPlayer/js/index.mjs +3 -3
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +11 -11
- package/es/components/index.mjs +2 -2
- package/es/index.mjs +2 -2
- package/es/static/hy-svg-icons/hy-icon-dispatch-linear-map-treelist.js +8 -0
- package/es/static/hy-svg-icons/hy-icon-dispatch-share-guidao.js +8 -0
- package/es/utils/handler.mjs +4 -4
- package/es/version.mjs +1 -1
- package/lib/components/hyAudioPlayer/audioPlayer.vue.js +7 -7
- package/lib/components/hyAudioPlayer/js/index.js +3 -3
- package/lib/components/hyButton/button.vue.js +111 -64
- package/lib/components/hyButton/style/button.scss +282 -237
- package/lib/components/hyForm/index.js +1 -0
- package/lib/components/hyForm/js/useAppForm.js +1 -2
- package/lib/components/hyIcon/style/icon.scss +6 -0
- package/lib/components/hyMenu/menu.vue.js +1 -1
- package/lib/components/hyMenu/style/menu.scss +1 -1
- package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -1
- package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -1
- package/lib/components/hySearch/index.js +1 -0
- package/lib/components/hyTable/cpns/virtualTable.vue.js +329 -317
- package/lib/components/hyTable/js/index.js +7 -3
- package/lib/components/hyTable/js/useAppTable.js +1 -1
- package/lib/components/hyTable/table.vue.js +11 -7
- package/lib/components/hyTree/tree.vue.js +5 -6
- package/lib/components/hyUserAvatar/userAvatar.vue.js +2 -2
- package/lib/components/hyVideoPlayer/js/index.js +3 -3
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +11 -11
- package/lib/components/index.js +2 -0
- package/lib/index.js +2 -0
- package/lib/static/hy-svg-icons/hy-icon-dispatch-linear-map-treelist.js +8 -0
- package/lib/static/hy-svg-icons/hy-icon-dispatch-share-guidao.js +8 -0
- package/lib/utils/handler.js +4 -4
- package/lib/version.js +1 -1
- package/package.json +1 -1
|
@@ -36,6 +36,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
36
36
|
type: String
|
|
37
37
|
},
|
|
38
38
|
expand: {
|
|
39
|
+
// 展开,仅普通按钮支持
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: false
|
|
42
|
+
},
|
|
43
|
+
link: {
|
|
44
|
+
// 链接按钮
|
|
39
45
|
type: Boolean,
|
|
40
46
|
default: false
|
|
41
47
|
}
|
|
@@ -55,14 +61,33 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
55
61
|
emit("click", event);
|
|
56
62
|
};
|
|
57
63
|
return (_ctx, _cache) => {
|
|
58
|
-
return vue.openBlock(), vue.createElementBlock("button", {
|
|
59
|
-
|
|
64
|
+
return __props.link ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
65
|
+
key: 0,
|
|
66
|
+
type: __props.type,
|
|
60
67
|
disabled: __props.disabled,
|
|
61
|
-
|
|
68
|
+
loading: __props.loading,
|
|
69
|
+
link: "",
|
|
70
|
+
class: ["hy-button-text", [
|
|
62
71
|
typeObj[props.type],
|
|
63
72
|
{
|
|
64
73
|
"hy-button--large": __props.size === "large",
|
|
74
|
+
"hy-button--default": __props.size === "default",
|
|
65
75
|
"hy-button--small": __props.size === "small",
|
|
76
|
+
"is-disabled": __props.disabled
|
|
77
|
+
}
|
|
78
|
+
]]
|
|
79
|
+
}, _ctx.$attrs), [
|
|
80
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
81
|
+
], 16, ["type", "disabled", "loading"])) : (vue.openBlock(), vue.createElementBlock("button", {
|
|
82
|
+
key: 1,
|
|
83
|
+
type: "button",
|
|
84
|
+
disabled: __props.disabled,
|
|
85
|
+
class: vue.normalizeClass(["hy-button", [
|
|
86
|
+
typeObj[props.type],
|
|
87
|
+
{
|
|
88
|
+
"hy-button--large rounded-md": __props.size === "large",
|
|
89
|
+
"hy-button--default rounded-md": __props.size === "default",
|
|
90
|
+
"hy-button--small rounded": __props.size === "small",
|
|
66
91
|
"is-disabled": __props.disabled,
|
|
67
92
|
"is-loading": __props.loading,
|
|
68
93
|
clickBox: !__props.disabled && !__props.loading
|
|
@@ -71,67 +96,89 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
71
96
|
onClick: handleClick
|
|
72
97
|
}, [
|
|
73
98
|
vue.createCommentVNode(" \u7B2C\u4E8C\u5C42\u5BB9\u5668 b "),
|
|
74
|
-
vue.createElementVNode(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
vue.
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
99
|
+
vue.createElementVNode(
|
|
100
|
+
"div",
|
|
101
|
+
{
|
|
102
|
+
class: vue.normalizeClass(["hy-button__border w-full h-full flex items-center justify-center p-[1px] box-border", {
|
|
103
|
+
rounded: ["large", "default"].includes(__props.size),
|
|
104
|
+
"rounded-sm": __props.size === "small"
|
|
105
|
+
}])
|
|
106
|
+
},
|
|
107
|
+
[
|
|
108
|
+
vue.createCommentVNode(" \u7B2C\u4E09\u5C42\u5BB9\u5668 d "),
|
|
109
|
+
vue.createElementVNode(
|
|
110
|
+
"div",
|
|
111
|
+
{
|
|
112
|
+
class: vue.normalizeClass(["hy-button__inner w-full h-full flex items-center justify-center relative", {
|
|
113
|
+
rounded: ["large", "default"].includes(__props.size),
|
|
114
|
+
"rounded-sm": __props.size === "small"
|
|
115
|
+
}])
|
|
116
|
+
},
|
|
117
|
+
[
|
|
118
|
+
vue.createElementVNode("div", { class: "hy-button__text relative z-[1] w-full h-full flex items-center justify-center" }, [
|
|
119
|
+
vue.renderSlot(_ctx.$slots, "content", {}, () => [
|
|
120
|
+
vue.createElementVNode(
|
|
121
|
+
"div",
|
|
122
|
+
{
|
|
123
|
+
class: vue.normalizeClass(["flex items-center text-main", {
|
|
124
|
+
"px-3": !__props.expand,
|
|
125
|
+
"pl-3 pr-1.5": __props.expand
|
|
126
|
+
}])
|
|
127
|
+
},
|
|
128
|
+
[
|
|
129
|
+
!__props.loading ? vue.renderSlot(_ctx.$slots, "svg", { key: 0 }, () => [
|
|
130
|
+
__props.svgName ? (vue.openBlock(), vue.createBlock(vue.unref(index.HyIcon), {
|
|
131
|
+
key: 0,
|
|
132
|
+
"svg-name": __props.svgName,
|
|
133
|
+
"class-name": "!w-3 !h-3 text-main mr-2"
|
|
134
|
+
}, null, 8, ["svg-name"])) : vue.createCommentVNode("v-if", true)
|
|
135
|
+
]) : (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
|
|
136
|
+
key: 1,
|
|
137
|
+
color: "rgb(var(--hy-main))",
|
|
138
|
+
class: "is-loading mr-2"
|
|
139
|
+
}, {
|
|
140
|
+
default: vue.withCtx(() => [
|
|
141
|
+
vue.createVNode(vue.unref(iconsVue.Loading))
|
|
142
|
+
]),
|
|
143
|
+
_: 1
|
|
144
|
+
/* STABLE */
|
|
145
|
+
})),
|
|
146
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
147
|
+
],
|
|
148
|
+
2
|
|
149
|
+
/* CLASS */
|
|
150
|
+
)
|
|
151
|
+
]),
|
|
152
|
+
__props.expand ? (vue.openBlock(), vue.createElementBlock(
|
|
153
|
+
vue.Fragment,
|
|
154
|
+
{ key: 0 },
|
|
155
|
+
[
|
|
156
|
+
vue.createElementVNode("div", { class: "w-px h-full bg-success/50" }),
|
|
157
|
+
vue.createElementVNode("div", { class: "w-[30px] flex items-center justify-center" }, [
|
|
158
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), { color: "rgb(var(--hy-main))" }, {
|
|
159
|
+
default: vue.withCtx(() => [
|
|
160
|
+
vue.createVNode(vue.unref(iconsVue.ArrowDown))
|
|
161
|
+
]),
|
|
162
|
+
_: 1
|
|
163
|
+
/* STABLE */
|
|
164
|
+
})
|
|
165
|
+
])
|
|
166
|
+
],
|
|
167
|
+
64
|
|
168
|
+
/* STABLE_FRAGMENT */
|
|
169
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
170
|
+
]),
|
|
171
|
+
vue.createCommentVNode(" \u6E10\u53D8\u906E\u7F69 e "),
|
|
172
|
+
vue.createElementVNode("div", { class: "hy-button__mask w-full h-full absolute blur-[1px]" })
|
|
173
|
+
],
|
|
174
|
+
2
|
|
175
|
+
/* CLASS */
|
|
176
|
+
)
|
|
177
|
+
],
|
|
178
|
+
2
|
|
179
|
+
/* CLASS */
|
|
180
|
+
)
|
|
181
|
+
], 10, ["disabled"]));
|
|
135
182
|
};
|
|
136
183
|
}
|
|
137
184
|
});
|