hy-dispatch-ui-v3 0.2.31 → 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 (36) hide show
  1. package/dist/tailwind.css +8 -8
  2. package/es/components/hyButton/button.vue.mjs +112 -65
  3. package/es/components/hyButton/style/button.scss +282 -237
  4. package/es/components/hyForm/index.mjs +1 -1
  5. package/es/components/hyForm/js/useAppForm.mjs +1 -2
  6. package/es/components/hyMenu/menu.vue.mjs +1 -1
  7. package/es/components/hyMenu/style/menu.scss +1 -1
  8. package/es/components/hySearch/index.mjs +1 -1
  9. package/es/components/hyTable/cpns/virtualTable.vue.mjs +331 -319
  10. package/es/components/hyTable/js/index.mjs +7 -3
  11. package/es/components/hyTable/js/useAppTable.mjs +1 -1
  12. package/es/components/hyTable/table.vue.mjs +11 -7
  13. package/es/components/index.mjs +2 -2
  14. package/es/index.mjs +2 -2
  15. package/es/static/hy-svg-icons/hy-icon-dispatch-linear-map-treelist.js +8 -0
  16. package/es/static/hy-svg-icons/hy-icon-dispatch-share-guidao.js +8 -0
  17. package/es/utils/handler.mjs +4 -4
  18. package/es/version.mjs +1 -1
  19. package/lib/components/hyButton/button.vue.js +111 -64
  20. package/lib/components/hyButton/style/button.scss +282 -237
  21. package/lib/components/hyForm/index.js +1 -0
  22. package/lib/components/hyForm/js/useAppForm.js +1 -2
  23. package/lib/components/hyMenu/menu.vue.js +1 -1
  24. package/lib/components/hyMenu/style/menu.scss +1 -1
  25. package/lib/components/hySearch/index.js +1 -0
  26. package/lib/components/hyTable/cpns/virtualTable.vue.js +329 -317
  27. package/lib/components/hyTable/js/index.js +7 -3
  28. package/lib/components/hyTable/js/useAppTable.js +1 -1
  29. package/lib/components/hyTable/table.vue.js +11 -7
  30. package/lib/components/index.js +2 -0
  31. package/lib/index.js +2 -0
  32. package/lib/static/hy-svg-icons/hy-icon-dispatch-linear-map-treelist.js +8 -0
  33. package/lib/static/hy-svg-icons/hy-icon-dispatch-share-guidao.js +8 -0
  34. package/lib/utils/handler.js +4 -4
  35. package/lib/version.js +1 -1
  36. package/package.json +1 -1
package/dist/tailwind.css CHANGED
@@ -1211,10 +1211,6 @@ video {
1211
1211
  border-radius: 2px;
1212
1212
  }
1213
1213
 
1214
- .rounded-\[4px\] {
1215
- border-radius: 4px;
1216
- }
1217
-
1218
1214
  .rounded-\[6px\] {
1219
1215
  border-radius: 6px;
1220
1216
  }
@@ -1227,6 +1223,10 @@ video {
1227
1223
  border-radius: 0.375rem;
1228
1224
  }
1229
1225
 
1226
+ .rounded-sm {
1227
+ border-radius: 0.125rem;
1228
+ }
1229
+
1230
1230
  .border {
1231
1231
  border-width: 1px;
1232
1232
  }
@@ -1368,10 +1368,6 @@ video {
1368
1368
  padding: 1px;
1369
1369
  }
1370
1370
 
1371
- .p-\[2px\] {
1372
- padding: 2px;
1373
- }
1374
-
1375
1371
  .px-1\.5 {
1376
1372
  padding-left: 0.375rem;
1377
1373
  padding-right: 0.375rem;
@@ -1609,6 +1605,10 @@ video {
1609
1605
  color: rgb(var(--hy-warning), var(--tw-text-opacity, 1));
1610
1606
  }
1611
1607
 
1608
+ .underline {
1609
+ text-decoration-line: underline;
1610
+ }
1611
+
1612
1612
  .shadow-\[0_0_4px_0\] {
1613
1613
  --tw-shadow: 0 0 4px 0;
1614
1614
  --tw-shadow-colored: 0 0 4px 0 var(--tw-shadow-color);
@@ -1,4 +1,4 @@
1
- import { openBlock, createElementBlock, normalizeClass, createCommentVNode, createElementVNode, renderSlot, createBlock, unref, withCtx, createVNode, Fragment, defineComponent } from 'vue';
1
+ import { openBlock, createElementBlock, mergeProps, renderSlot, normalizeClass, createCommentVNode, createElementVNode, createBlock, unref, withCtx, createVNode, Fragment, defineComponent } from 'vue';
2
2
  import { ElIcon } from 'element-plus';
3
3
  import { Loading, ArrowDown } from '@element-plus/icons-vue';
4
4
  import { HyIcon } from '../hyIcon/index.mjs';
@@ -32,6 +32,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
32
32
  type: String
33
33
  },
34
34
  expand: {
35
+ // 展开,仅普通按钮支持
36
+ type: Boolean,
37
+ default: false
38
+ },
39
+ link: {
40
+ // 链接按钮
35
41
  type: Boolean,
36
42
  default: false
37
43
  }
@@ -51,14 +57,33 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
51
57
  emit("click", event);
52
58
  };
53
59
  return (_ctx, _cache) => {
54
- return openBlock(), createElementBlock("button", {
55
- type: "button",
60
+ return __props.link ? (openBlock(), createElementBlock("button", mergeProps({
61
+ key: 0,
62
+ type: __props.type,
56
63
  disabled: __props.disabled,
57
- class: normalizeClass(["hy-button p-[2px] box-border rounded-md group", [
64
+ loading: __props.loading,
65
+ link: "",
66
+ class: ["hy-button-text", [
58
67
  typeObj[props.type],
59
68
  {
60
69
  "hy-button--large": __props.size === "large",
70
+ "hy-button--default": __props.size === "default",
61
71
  "hy-button--small": __props.size === "small",
72
+ "is-disabled": __props.disabled
73
+ }
74
+ ]]
75
+ }, _ctx.$attrs), [
76
+ renderSlot(_ctx.$slots, "default")
77
+ ], 16, ["type", "disabled", "loading"])) : (openBlock(), createElementBlock("button", {
78
+ key: 1,
79
+ type: "button",
80
+ disabled: __props.disabled,
81
+ class: normalizeClass(["hy-button", [
82
+ typeObj[props.type],
83
+ {
84
+ "hy-button--large rounded-md": __props.size === "large",
85
+ "hy-button--default rounded-md": __props.size === "default",
86
+ "hy-button--small rounded": __props.size === "small",
62
87
  "is-disabled": __props.disabled,
63
88
  "is-loading": __props.loading,
64
89
  clickBox: !__props.disabled && !__props.loading
@@ -67,67 +92,89 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
67
92
  onClick: handleClick
68
93
  }, [
69
94
  createCommentVNode(" \u7B2C\u4E8C\u5C42\u5BB9\u5668 b "),
70
- createElementVNode("div", { class: "hy-button__border w-full h-full flex items-center justify-center p-[1px] box-border rounded-[4px]" }, [
71
- createCommentVNode(" \u7B2C\u4E09\u5C42\u5BB9\u5668 d "),
72
- createElementVNode("div", { class: "hy-button__inner w-full h-full flex items-center justify-center relative rounded-[4px]" }, [
73
- createElementVNode("div", { class: "hy-button__text relative z-[1] w-full h-full flex items-center justify-center" }, [
74
- renderSlot(_ctx.$slots, "content", {}, () => [
75
- createElementVNode(
76
- "div",
77
- {
78
- class: normalizeClass(["flex items-center text-main", {
79
- "px-3": !__props.expand,
80
- "pl-3 pr-1.5": __props.expand
81
- }])
82
- },
83
- [
84
- !__props.loading ? renderSlot(_ctx.$slots, "svg", { key: 0 }, () => [
85
- __props.svgName ? (openBlock(), createBlock(unref(HyIcon), {
86
- key: 0,
87
- "svg-name": __props.svgName,
88
- "class-name": "!w-3 !h-3 text-main mr-2"
89
- }, null, 8, ["svg-name"])) : createCommentVNode("v-if", true)
90
- ]) : (openBlock(), createBlock(unref(ElIcon), {
91
- key: 1,
92
- color: "rgb(var(--hy-main))",
93
- class: "is-loading mr-2"
94
- }, {
95
- default: withCtx(() => [
96
- createVNode(unref(Loading))
97
- ]),
98
- _: 1
99
- /* STABLE */
100
- })),
101
- renderSlot(_ctx.$slots, "default")
102
- ],
103
- 2
104
- /* CLASS */
105
- )
106
- ]),
107
- __props.expand ? (openBlock(), createElementBlock(
108
- Fragment,
109
- { key: 0 },
110
- [
111
- createElementVNode("div", { class: "w-px h-full bg-success/50" }),
112
- createElementVNode("div", { class: "w-[30px] flex items-center justify-center" }, [
113
- createVNode(unref(ElIcon), { color: "rgb(var(--hy-main))" }, {
114
- default: withCtx(() => [
115
- createVNode(unref(ArrowDown))
116
- ]),
117
- _: 1
118
- /* STABLE */
119
- })
120
- ])
121
- ],
122
- 64
123
- /* STABLE_FRAGMENT */
124
- )) : createCommentVNode("v-if", true)
125
- ]),
126
- createCommentVNode(" \u6E10\u53D8\u906E\u7F69 e "),
127
- createElementVNode("div", { class: "hy-button__mask w-full h-full absolute blur-[1px]" })
128
- ])
129
- ])
130
- ], 10, ["disabled"]);
95
+ createElementVNode(
96
+ "div",
97
+ {
98
+ class: normalizeClass(["hy-button__border w-full h-full flex items-center justify-center p-[1px] box-border", {
99
+ rounded: ["large", "default"].includes(__props.size),
100
+ "rounded-sm": __props.size === "small"
101
+ }])
102
+ },
103
+ [
104
+ createCommentVNode(" \u7B2C\u4E09\u5C42\u5BB9\u5668 d "),
105
+ createElementVNode(
106
+ "div",
107
+ {
108
+ class: normalizeClass(["hy-button__inner w-full h-full flex items-center justify-center relative", {
109
+ rounded: ["large", "default"].includes(__props.size),
110
+ "rounded-sm": __props.size === "small"
111
+ }])
112
+ },
113
+ [
114
+ createElementVNode("div", { class: "hy-button__text relative z-[1] w-full h-full flex items-center justify-center" }, [
115
+ renderSlot(_ctx.$slots, "content", {}, () => [
116
+ createElementVNode(
117
+ "div",
118
+ {
119
+ class: normalizeClass(["flex items-center text-main", {
120
+ "px-3": !__props.expand,
121
+ "pl-3 pr-1.5": __props.expand
122
+ }])
123
+ },
124
+ [
125
+ !__props.loading ? renderSlot(_ctx.$slots, "svg", { key: 0 }, () => [
126
+ __props.svgName ? (openBlock(), createBlock(unref(HyIcon), {
127
+ key: 0,
128
+ "svg-name": __props.svgName,
129
+ "class-name": "!w-3 !h-3 text-main mr-2"
130
+ }, null, 8, ["svg-name"])) : createCommentVNode("v-if", true)
131
+ ]) : (openBlock(), createBlock(unref(ElIcon), {
132
+ key: 1,
133
+ color: "rgb(var(--hy-main))",
134
+ class: "is-loading mr-2"
135
+ }, {
136
+ default: withCtx(() => [
137
+ createVNode(unref(Loading))
138
+ ]),
139
+ _: 1
140
+ /* STABLE */
141
+ })),
142
+ renderSlot(_ctx.$slots, "default")
143
+ ],
144
+ 2
145
+ /* CLASS */
146
+ )
147
+ ]),
148
+ __props.expand ? (openBlock(), createElementBlock(
149
+ Fragment,
150
+ { key: 0 },
151
+ [
152
+ createElementVNode("div", { class: "w-px h-full bg-success/50" }),
153
+ createElementVNode("div", { class: "w-[30px] flex items-center justify-center" }, [
154
+ createVNode(unref(ElIcon), { color: "rgb(var(--hy-main))" }, {
155
+ default: withCtx(() => [
156
+ createVNode(unref(ArrowDown))
157
+ ]),
158
+ _: 1
159
+ /* STABLE */
160
+ })
161
+ ])
162
+ ],
163
+ 64
164
+ /* STABLE_FRAGMENT */
165
+ )) : createCommentVNode("v-if", true)
166
+ ]),
167
+ createCommentVNode(" \u6E10\u53D8\u906E\u7F69 e "),
168
+ createElementVNode("div", { class: "hy-button__mask w-full h-full absolute blur-[1px]" })
169
+ ],
170
+ 2
171
+ /* CLASS */
172
+ )
173
+ ],
174
+ 2
175
+ /* CLASS */
176
+ )
177
+ ], 10, ["disabled"]));
131
178
  };
132
179
  }
133
180
  });