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.
Files changed (54) hide show
  1. package/dist/tailwind.css +8 -8
  2. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +7 -7
  3. package/es/components/hyAudioPlayer/js/index.mjs +3 -3
  4. package/es/components/hyButton/button.vue.mjs +112 -65
  5. package/es/components/hyButton/style/button.scss +282 -237
  6. package/es/components/hyForm/index.mjs +1 -1
  7. package/es/components/hyForm/js/useAppForm.mjs +1 -2
  8. package/es/components/hyIcon/style/icon.scss +6 -0
  9. package/es/components/hyMenu/menu.vue.mjs +1 -1
  10. package/es/components/hyMenu/style/menu.scss +1 -1
  11. package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -1
  12. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -1
  13. package/es/components/hySearch/index.mjs +1 -1
  14. package/es/components/hyTable/cpns/virtualTable.vue.mjs +331 -319
  15. package/es/components/hyTable/js/index.mjs +7 -3
  16. package/es/components/hyTable/js/useAppTable.mjs +1 -1
  17. package/es/components/hyTable/table.vue.mjs +11 -7
  18. package/es/components/hyTree/tree.vue.mjs +6 -7
  19. package/es/components/hyUserAvatar/userAvatar.vue.mjs +2 -2
  20. package/es/components/hyVideoPlayer/js/index.mjs +3 -3
  21. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +11 -11
  22. package/es/components/index.mjs +2 -2
  23. package/es/index.mjs +2 -2
  24. package/es/static/hy-svg-icons/hy-icon-dispatch-linear-map-treelist.js +8 -0
  25. package/es/static/hy-svg-icons/hy-icon-dispatch-share-guidao.js +8 -0
  26. package/es/utils/handler.mjs +4 -4
  27. package/es/version.mjs +1 -1
  28. package/lib/components/hyAudioPlayer/audioPlayer.vue.js +7 -7
  29. package/lib/components/hyAudioPlayer/js/index.js +3 -3
  30. package/lib/components/hyButton/button.vue.js +111 -64
  31. package/lib/components/hyButton/style/button.scss +282 -237
  32. package/lib/components/hyForm/index.js +1 -0
  33. package/lib/components/hyForm/js/useAppForm.js +1 -2
  34. package/lib/components/hyIcon/style/icon.scss +6 -0
  35. package/lib/components/hyMenu/menu.vue.js +1 -1
  36. package/lib/components/hyMenu/style/menu.scss +1 -1
  37. package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -1
  38. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -1
  39. package/lib/components/hySearch/index.js +1 -0
  40. package/lib/components/hyTable/cpns/virtualTable.vue.js +329 -317
  41. package/lib/components/hyTable/js/index.js +7 -3
  42. package/lib/components/hyTable/js/useAppTable.js +1 -1
  43. package/lib/components/hyTable/table.vue.js +11 -7
  44. package/lib/components/hyTree/tree.vue.js +5 -6
  45. package/lib/components/hyUserAvatar/userAvatar.vue.js +2 -2
  46. package/lib/components/hyVideoPlayer/js/index.js +3 -3
  47. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +11 -11
  48. package/lib/components/index.js +2 -0
  49. package/lib/index.js +2 -0
  50. package/lib/static/hy-svg-icons/hy-icon-dispatch-linear-map-treelist.js +8 -0
  51. package/lib/static/hy-svg-icons/hy-icon-dispatch-share-guidao.js +8 -0
  52. package/lib/utils/handler.js +4 -4
  53. package/lib/version.js +1 -1
  54. 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
- type: "button",
64
+ return __props.link ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
65
+ key: 0,
66
+ type: __props.type,
60
67
  disabled: __props.disabled,
61
- class: vue.normalizeClass(["hy-button p-[2px] box-border rounded-md group", [
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("div", { class: "hy-button__border w-full h-full flex items-center justify-center p-[1px] box-border rounded-[4px]" }, [
75
- vue.createCommentVNode(" \u7B2C\u4E09\u5C42\u5BB9\u5668 d "),
76
- vue.createElementVNode("div", { class: "hy-button__inner w-full h-full flex items-center justify-center relative rounded-[4px]" }, [
77
- vue.createElementVNode("div", { class: "hy-button__text relative z-[1] w-full h-full flex items-center justify-center" }, [
78
- vue.renderSlot(_ctx.$slots, "content", {}, () => [
79
- vue.createElementVNode(
80
- "div",
81
- {
82
- class: vue.normalizeClass(["flex items-center text-main", {
83
- "px-3": !__props.expand,
84
- "pl-3 pr-1.5": __props.expand
85
- }])
86
- },
87
- [
88
- !__props.loading ? vue.renderSlot(_ctx.$slots, "svg", { key: 0 }, () => [
89
- __props.svgName ? (vue.openBlock(), vue.createBlock(vue.unref(index.HyIcon), {
90
- key: 0,
91
- "svg-name": __props.svgName,
92
- "class-name": "!w-3 !h-3 text-main mr-2"
93
- }, null, 8, ["svg-name"])) : vue.createCommentVNode("v-if", true)
94
- ]) : (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
95
- key: 1,
96
- color: "rgb(var(--hy-main))",
97
- class: "is-loading mr-2"
98
- }, {
99
- default: vue.withCtx(() => [
100
- vue.createVNode(vue.unref(iconsVue.Loading))
101
- ]),
102
- _: 1
103
- /* STABLE */
104
- })),
105
- vue.renderSlot(_ctx.$slots, "default")
106
- ],
107
- 2
108
- /* CLASS */
109
- )
110
- ]),
111
- __props.expand ? (vue.openBlock(), vue.createElementBlock(
112
- vue.Fragment,
113
- { key: 0 },
114
- [
115
- vue.createElementVNode("div", { class: "w-px h-full bg-success/50" }),
116
- vue.createElementVNode("div", { class: "w-[30px] flex items-center justify-center" }, [
117
- vue.createVNode(vue.unref(elementPlus.ElIcon), { color: "rgb(var(--hy-main))" }, {
118
- default: vue.withCtx(() => [
119
- vue.createVNode(vue.unref(iconsVue.ArrowDown))
120
- ]),
121
- _: 1
122
- /* STABLE */
123
- })
124
- ])
125
- ],
126
- 64
127
- /* STABLE_FRAGMENT */
128
- )) : vue.createCommentVNode("v-if", true)
129
- ]),
130
- vue.createCommentVNode(" \u6E10\u53D8\u906E\u7F69 e "),
131
- vue.createElementVNode("div", { class: "hy-button__mask w-full h-full absolute blur-[1px]" })
132
- ])
133
- ])
134
- ], 10, ["disabled"]);
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
  });