hy-dispatch-ui-v3 0.2.37 → 0.2.39
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 +2 -6
- package/es/components/hyDialog/dialog.vue.mjs +89 -79
- package/es/components/hyTableActionButton/style/tableActionButton.scss +7 -3
- package/es/components/hyTableActionButton/tableActionButton.vue.mjs +2 -2
- package/es/version.mjs +1 -1
- package/lib/components/hyDialog/dialog.vue.js +88 -78
- package/lib/components/hyTableActionButton/style/tableActionButton.scss +7 -3
- package/lib/components/hyTableActionButton/tableActionButton.vue.js +2 -2
- package/lib/version.js +1 -1
- package/package.json +1 -1
package/dist/tailwind.css
CHANGED
|
@@ -268,10 +268,6 @@
|
|
|
268
268
|
margin-bottom: 0.375rem;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
.\!ml-4 {
|
|
272
|
-
margin-left: 1rem !important;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
271
|
.\!ml-auto {
|
|
276
272
|
margin-left: auto !important;
|
|
277
273
|
}
|
|
@@ -560,8 +556,8 @@
|
|
|
560
556
|
height: 54px;
|
|
561
557
|
}
|
|
562
558
|
|
|
563
|
-
.h-\[
|
|
564
|
-
height:
|
|
559
|
+
.h-\[97vh\] {
|
|
560
|
+
height: 97vh;
|
|
565
561
|
}
|
|
566
562
|
|
|
567
563
|
.h-full {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useModel, ref, computed, openBlock, createElementBlock, Fragment, createCommentVNode, createVNode, unref, mergeProps, withCtx, createElementVNode,
|
|
1
|
+
import { useModel, ref, computed, openBlock, createElementBlock, Fragment, createCommentVNode, createVNode, unref, mergeProps, withCtx, createElementVNode, renderSlot, normalizeClass, createBlock, withModifiers, createTextVNode, toDisplayString, mergeModels, defineComponent } from 'vue';
|
|
2
2
|
import { ElDialog } from 'element-plus';
|
|
3
3
|
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
4
4
|
import { HyButton } from '../hyButton/index.mjs';
|
|
@@ -17,19 +17,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
17
17
|
dialogType: {
|
|
18
18
|
type: String,
|
|
19
19
|
default: "default"
|
|
20
|
-
// default-默认类型 right-右侧弹窗
|
|
20
|
+
// default-默认类型 right-右侧弹窗
|
|
21
21
|
},
|
|
22
22
|
dialogClass: {
|
|
23
23
|
type: String,
|
|
24
24
|
default: "default"
|
|
25
25
|
},
|
|
26
|
-
// zIndex: {
|
|
27
|
-
// type: Number,
|
|
28
|
-
// default: null, // default-默认类型 right-右侧弹窗 fullscreen-全屏
|
|
29
|
-
// },
|
|
30
26
|
top: String,
|
|
31
|
-
//
|
|
32
|
-
|
|
27
|
+
// 是否可缩小化
|
|
28
|
+
ifShrink: { type: Boolean, default: false },
|
|
29
|
+
// 是否拖拽
|
|
30
|
+
ifDraggable: { type: Boolean, default: false },
|
|
33
31
|
showOperate: { type: Boolean, default: true },
|
|
34
32
|
showClose: { type: Boolean, default: true },
|
|
35
33
|
showCancel: {
|
|
@@ -74,6 +72,15 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
74
72
|
const { t } = useLocale();
|
|
75
73
|
const visible = useModel(__props, "modelValue");
|
|
76
74
|
const loading = ref(false);
|
|
75
|
+
const dialogTypeRight = computed(() => {
|
|
76
|
+
return props.dialogType === "right";
|
|
77
|
+
});
|
|
78
|
+
const ifDraggable = computed(() => {
|
|
79
|
+
if (props.ifShrink) {
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
return props.ifDraggable;
|
|
83
|
+
});
|
|
77
84
|
const dragLevelIndex = ref(null);
|
|
78
85
|
const minimized = ref(false);
|
|
79
86
|
const animating = ref(false);
|
|
@@ -167,15 +174,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
167
174
|
Fragment,
|
|
168
175
|
null,
|
|
169
176
|
[
|
|
170
|
-
createCommentVNode("
|
|
171
|
-
createCommentVNode(
|
|
172
|
-
createCommentVNode(
|
|
173
|
-
createCommentVNode(' :class="dialogClass"'),
|
|
177
|
+
createCommentVNode(" draggable \u4E3A Dialog \u542F\u7528\u53EF\u62D6\u62FD\u529F\u80FD"),
|
|
178
|
+
createCommentVNode(" modal \u662F\u5426\u9700\u8981\u906E\u7F69\u5C42"),
|
|
179
|
+
createCommentVNode(" overflow \u62D6\u52A8\u8303\u56F4\u53EF\u4EE5\u8D85\u51FA\u53EF\u89C6\u533A"),
|
|
174
180
|
createVNode(unref(ElDialog), mergeProps({
|
|
181
|
+
draggable: ifDraggable.value,
|
|
182
|
+
modal: !ifDraggable.value,
|
|
183
|
+
overflow: !ifDraggable.value,
|
|
175
184
|
"z-index": dragLevelIndex.value,
|
|
176
|
-
draggable: props.showShrink,
|
|
177
|
-
modal: !props.showShrink,
|
|
178
|
-
overflow: !props.showShrink,
|
|
179
185
|
"modal-penetrable": "",
|
|
180
186
|
ref_key: "dialogTestRef",
|
|
181
187
|
ref: dialogTestRef,
|
|
@@ -188,7 +194,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
188
194
|
modelValue: visible.value,
|
|
189
195
|
"onUpdate:modelValue": ($event) => visible.value = $event,
|
|
190
196
|
width: props.width,
|
|
191
|
-
top:
|
|
197
|
+
top: dialogTypeRight.value ? "16px" : props.top || null,
|
|
198
|
+
class: dialogTypeRight.value ? "h-[97vh] flex flex-col !my-4 !mr-4 !ml-auto" : null,
|
|
199
|
+
"body-class": dialogTypeRight.value ? "flex-grow h-0" : null
|
|
192
200
|
}, _ctx.$attrs), {
|
|
193
201
|
header: withCtx(() => [
|
|
194
202
|
createElementVNode(
|
|
@@ -206,7 +214,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
206
214
|
),
|
|
207
215
|
createElementVNode("div", { class: "text-lg cursor-pointer" }, [
|
|
208
216
|
renderSlot(_ctx.$slots, "title-operate-box"),
|
|
209
|
-
__props.
|
|
217
|
+
__props.ifShrink ? (openBlock(), createBlock(unref(HyIcon), {
|
|
210
218
|
key: 0,
|
|
211
219
|
onClick: hideToWorkspace,
|
|
212
220
|
"svg-name": "layout-dialog-narrow",
|
|
@@ -225,72 +233,74 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
225
233
|
)
|
|
226
234
|
]),
|
|
227
235
|
default: withCtx(() => [
|
|
228
|
-
createElementVNode(
|
|
229
|
-
"
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
+
createElementVNode("div", { class: "h-full flex flex-col text-main" }, [
|
|
237
|
+
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
238
|
+
createElementVNode(
|
|
239
|
+
"div",
|
|
240
|
+
{
|
|
241
|
+
class: normalizeClass([{
|
|
242
|
+
"flex-grow h-0": dialogTypeRight.value
|
|
243
|
+
}, "scroll-body overflow-auto px-6 py-4"])
|
|
244
|
+
},
|
|
245
|
+
[
|
|
236
246
|
renderSlot(_ctx.$slots, "default")
|
|
237
|
-
]
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
)
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
)
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
)
|
|
247
|
+
],
|
|
248
|
+
2
|
|
249
|
+
/* CLASS */
|
|
250
|
+
)
|
|
251
|
+
]),
|
|
252
|
+
__props.showOperate ? (openBlock(), createElementBlock("div", {
|
|
253
|
+
key: 0,
|
|
254
|
+
class: "flex items-center flex-row-reverse justify-between p-5 pr-[26px] mt-auto box-border"
|
|
255
|
+
}, [
|
|
256
|
+
renderSlot(_ctx.$slots, "operate-left-box"),
|
|
257
|
+
createElementVNode("div", { class: "flex items-center" }, [
|
|
258
|
+
renderSlot(_ctx.$slots, "operate", {}, () => [
|
|
259
|
+
__props.showCancel ? (openBlock(), createBlock(unref(HyButton), {
|
|
260
|
+
key: 0,
|
|
261
|
+
type: __props.cancelType,
|
|
262
|
+
disabled: loading.value,
|
|
263
|
+
class: "!min-w-[120px]",
|
|
264
|
+
onMousedown: withModifiers(() => {
|
|
265
|
+
}, ["stop"]),
|
|
266
|
+
onClick: onCancelHandler
|
|
267
|
+
}, {
|
|
268
|
+
default: withCtx(() => [
|
|
269
|
+
createTextVNode(
|
|
270
|
+
toDisplayString(unref(t)("dialog.cancel")),
|
|
271
|
+
1
|
|
272
|
+
/* TEXT */
|
|
273
|
+
)
|
|
274
|
+
]),
|
|
275
|
+
_: 1
|
|
276
|
+
/* STABLE */
|
|
277
|
+
}, 8, ["type", "disabled", "onMousedown"])) : createCommentVNode("v-if", true),
|
|
278
|
+
__props.showSubmit ? (openBlock(), createBlock(unref(HyButton), {
|
|
279
|
+
key: 1,
|
|
280
|
+
type: __props.submitType,
|
|
281
|
+
disabled: loading.value,
|
|
282
|
+
class: "!min-w-[120px]",
|
|
283
|
+
onClick: onSubmitHandler
|
|
284
|
+
}, {
|
|
285
|
+
default: withCtx(() => [
|
|
286
|
+
createTextVNode(
|
|
287
|
+
toDisplayString(unref(t)("dialog.confirm")),
|
|
288
|
+
1
|
|
289
|
+
/* TEXT */
|
|
290
|
+
)
|
|
291
|
+
]),
|
|
292
|
+
_: 1
|
|
293
|
+
/* STABLE */
|
|
294
|
+
}, 8, ["type", "disabled"])) : createCommentVNode("v-if", true)
|
|
295
|
+
]),
|
|
296
|
+
renderSlot(_ctx.$slots, "operate-right-box")
|
|
297
|
+
])
|
|
298
|
+
])) : createCommentVNode("v-if", true)
|
|
299
|
+
])
|
|
290
300
|
]),
|
|
291
301
|
_: 3
|
|
292
302
|
/* FORWARDED */
|
|
293
|
-
}, 16, ["
|
|
303
|
+
}, 16, ["draggable", "modal", "overflow", "z-index", "modal-class", "modelValue", "onUpdate:modelValue", "width", "top", "class", "body-class"])
|
|
294
304
|
],
|
|
295
305
|
2112
|
|
296
306
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
.hy-action-button
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
.hy-table-action-button {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.hy-table-action-button + .hy-table-action-button,
|
|
6
|
+
.hy-table-action-button + .hy-button,
|
|
7
|
+
.hy-button + .hy-table-action-button {
|
|
4
8
|
margin-left: 12px;
|
|
5
9
|
}
|
|
@@ -22,7 +22,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
22
22
|
size: {
|
|
23
23
|
type: String,
|
|
24
24
|
default: () => {
|
|
25
|
-
return "
|
|
25
|
+
return "default";
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
disabled: {
|
|
@@ -122,7 +122,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
122
122
|
const _component_ArrowDown = resolveComponent("ArrowDown");
|
|
123
123
|
return dataList.value.length ? (openBlock(), createElementBlock("div", {
|
|
124
124
|
key: 0,
|
|
125
|
-
class: "hy-action-button"
|
|
125
|
+
class: "hy-table-action-button"
|
|
126
126
|
}, [
|
|
127
127
|
selectedData.value ? (openBlock(), createBlock(unref(HyTooltip), {
|
|
128
128
|
key: 0,
|
package/es/version.mjs
CHANGED
|
@@ -21,19 +21,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
21
21
|
dialogType: {
|
|
22
22
|
type: String,
|
|
23
23
|
default: "default"
|
|
24
|
-
// default-默认类型 right-右侧弹窗
|
|
24
|
+
// default-默认类型 right-右侧弹窗
|
|
25
25
|
},
|
|
26
26
|
dialogClass: {
|
|
27
27
|
type: String,
|
|
28
28
|
default: "default"
|
|
29
29
|
},
|
|
30
|
-
// zIndex: {
|
|
31
|
-
// type: Number,
|
|
32
|
-
// default: null, // default-默认类型 right-右侧弹窗 fullscreen-全屏
|
|
33
|
-
// },
|
|
34
30
|
top: String,
|
|
35
|
-
//
|
|
36
|
-
|
|
31
|
+
// 是否可缩小化
|
|
32
|
+
ifShrink: { type: Boolean, default: false },
|
|
33
|
+
// 是否拖拽
|
|
34
|
+
ifDraggable: { type: Boolean, default: false },
|
|
37
35
|
showOperate: { type: Boolean, default: true },
|
|
38
36
|
showClose: { type: Boolean, default: true },
|
|
39
37
|
showCancel: {
|
|
@@ -78,6 +76,15 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
78
76
|
const { t } = useLocale.useLocale();
|
|
79
77
|
const visible = vue.useModel(__props, "modelValue");
|
|
80
78
|
const loading = vue.ref(false);
|
|
79
|
+
const dialogTypeRight = vue.computed(() => {
|
|
80
|
+
return props.dialogType === "right";
|
|
81
|
+
});
|
|
82
|
+
const ifDraggable = vue.computed(() => {
|
|
83
|
+
if (props.ifShrink) {
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
return props.ifDraggable;
|
|
87
|
+
});
|
|
81
88
|
const dragLevelIndex = vue.ref(null);
|
|
82
89
|
const minimized = vue.ref(false);
|
|
83
90
|
const animating = vue.ref(false);
|
|
@@ -171,15 +178,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
171
178
|
vue.Fragment,
|
|
172
179
|
null,
|
|
173
180
|
[
|
|
174
|
-
vue.createCommentVNode("
|
|
175
|
-
vue.createCommentVNode(
|
|
176
|
-
vue.createCommentVNode(
|
|
177
|
-
vue.createCommentVNode(' :class="dialogClass"'),
|
|
181
|
+
vue.createCommentVNode(" draggable \u4E3A Dialog \u542F\u7528\u53EF\u62D6\u62FD\u529F\u80FD"),
|
|
182
|
+
vue.createCommentVNode(" modal \u662F\u5426\u9700\u8981\u906E\u7F69\u5C42"),
|
|
183
|
+
vue.createCommentVNode(" overflow \u62D6\u52A8\u8303\u56F4\u53EF\u4EE5\u8D85\u51FA\u53EF\u89C6\u533A"),
|
|
178
184
|
vue.createVNode(vue.unref(elementPlus.ElDialog), vue.mergeProps({
|
|
185
|
+
draggable: ifDraggable.value,
|
|
186
|
+
modal: !ifDraggable.value,
|
|
187
|
+
overflow: !ifDraggable.value,
|
|
179
188
|
"z-index": dragLevelIndex.value,
|
|
180
|
-
draggable: props.showShrink,
|
|
181
|
-
modal: !props.showShrink,
|
|
182
|
-
overflow: !props.showShrink,
|
|
183
189
|
"modal-penetrable": "",
|
|
184
190
|
ref_key: "dialogTestRef",
|
|
185
191
|
ref: dialogTestRef,
|
|
@@ -192,7 +198,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
192
198
|
modelValue: visible.value,
|
|
193
199
|
"onUpdate:modelValue": ($event) => visible.value = $event,
|
|
194
200
|
width: props.width,
|
|
195
|
-
top:
|
|
201
|
+
top: dialogTypeRight.value ? "16px" : props.top || null,
|
|
202
|
+
class: dialogTypeRight.value ? "h-[97vh] flex flex-col !my-4 !mr-4 !ml-auto" : null,
|
|
203
|
+
"body-class": dialogTypeRight.value ? "flex-grow h-0" : null
|
|
196
204
|
}, _ctx.$attrs), {
|
|
197
205
|
header: vue.withCtx(() => [
|
|
198
206
|
vue.createElementVNode(
|
|
@@ -210,7 +218,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
210
218
|
),
|
|
211
219
|
vue.createElementVNode("div", { class: "text-lg cursor-pointer" }, [
|
|
212
220
|
vue.renderSlot(_ctx.$slots, "title-operate-box"),
|
|
213
|
-
__props.
|
|
221
|
+
__props.ifShrink ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyIcon), {
|
|
214
222
|
key: 0,
|
|
215
223
|
onClick: hideToWorkspace,
|
|
216
224
|
"svg-name": "layout-dialog-narrow",
|
|
@@ -229,72 +237,74 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
229
237
|
)
|
|
230
238
|
]),
|
|
231
239
|
default: vue.withCtx(() => [
|
|
232
|
-
vue.createElementVNode(
|
|
233
|
-
"
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
+
vue.createElementVNode("div", { class: "h-full flex flex-col text-main" }, [
|
|
241
|
+
vue.renderSlot(_ctx.$slots, "content", {}, () => [
|
|
242
|
+
vue.createElementVNode(
|
|
243
|
+
"div",
|
|
244
|
+
{
|
|
245
|
+
class: vue.normalizeClass([{
|
|
246
|
+
"flex-grow h-0": dialogTypeRight.value
|
|
247
|
+
}, "scroll-body overflow-auto px-6 py-4"])
|
|
248
|
+
},
|
|
249
|
+
[
|
|
240
250
|
vue.renderSlot(_ctx.$slots, "default")
|
|
241
|
-
]
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
)
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
)
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
)
|
|
251
|
+
],
|
|
252
|
+
2
|
|
253
|
+
/* CLASS */
|
|
254
|
+
)
|
|
255
|
+
]),
|
|
256
|
+
__props.showOperate ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
257
|
+
key: 0,
|
|
258
|
+
class: "flex items-center flex-row-reverse justify-between p-5 pr-[26px] mt-auto box-border"
|
|
259
|
+
}, [
|
|
260
|
+
vue.renderSlot(_ctx.$slots, "operate-left-box"),
|
|
261
|
+
vue.createElementVNode("div", { class: "flex items-center" }, [
|
|
262
|
+
vue.renderSlot(_ctx.$slots, "operate", {}, () => [
|
|
263
|
+
__props.showCancel ? (vue.openBlock(), vue.createBlock(vue.unref(index.HyButton), {
|
|
264
|
+
key: 0,
|
|
265
|
+
type: __props.cancelType,
|
|
266
|
+
disabled: loading.value,
|
|
267
|
+
class: "!min-w-[120px]",
|
|
268
|
+
onMousedown: vue.withModifiers(() => {
|
|
269
|
+
}, ["stop"]),
|
|
270
|
+
onClick: onCancelHandler
|
|
271
|
+
}, {
|
|
272
|
+
default: vue.withCtx(() => [
|
|
273
|
+
vue.createTextVNode(
|
|
274
|
+
vue.toDisplayString(vue.unref(t)("dialog.cancel")),
|
|
275
|
+
1
|
|
276
|
+
/* TEXT */
|
|
277
|
+
)
|
|
278
|
+
]),
|
|
279
|
+
_: 1
|
|
280
|
+
/* STABLE */
|
|
281
|
+
}, 8, ["type", "disabled", "onMousedown"])) : vue.createCommentVNode("v-if", true),
|
|
282
|
+
__props.showSubmit ? (vue.openBlock(), vue.createBlock(vue.unref(index.HyButton), {
|
|
283
|
+
key: 1,
|
|
284
|
+
type: __props.submitType,
|
|
285
|
+
disabled: loading.value,
|
|
286
|
+
class: "!min-w-[120px]",
|
|
287
|
+
onClick: onSubmitHandler
|
|
288
|
+
}, {
|
|
289
|
+
default: vue.withCtx(() => [
|
|
290
|
+
vue.createTextVNode(
|
|
291
|
+
vue.toDisplayString(vue.unref(t)("dialog.confirm")),
|
|
292
|
+
1
|
|
293
|
+
/* TEXT */
|
|
294
|
+
)
|
|
295
|
+
]),
|
|
296
|
+
_: 1
|
|
297
|
+
/* STABLE */
|
|
298
|
+
}, 8, ["type", "disabled"])) : vue.createCommentVNode("v-if", true)
|
|
299
|
+
]),
|
|
300
|
+
vue.renderSlot(_ctx.$slots, "operate-right-box")
|
|
301
|
+
])
|
|
302
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
303
|
+
])
|
|
294
304
|
]),
|
|
295
305
|
_: 3
|
|
296
306
|
/* FORWARDED */
|
|
297
|
-
}, 16, ["
|
|
307
|
+
}, 16, ["draggable", "modal", "overflow", "z-index", "modal-class", "modelValue", "onUpdate:modelValue", "width", "top", "class", "body-class"])
|
|
298
308
|
],
|
|
299
309
|
2112
|
|
300
310
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
.hy-action-button
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
.hy-table-action-button {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.hy-table-action-button + .hy-table-action-button,
|
|
6
|
+
.hy-table-action-button + .hy-button,
|
|
7
|
+
.hy-button + .hy-table-action-button {
|
|
4
8
|
margin-left: 12px;
|
|
5
9
|
}
|
|
@@ -26,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
26
26
|
size: {
|
|
27
27
|
type: String,
|
|
28
28
|
default: () => {
|
|
29
|
-
return "
|
|
29
|
+
return "default";
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
disabled: {
|
|
@@ -126,7 +126,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
126
126
|
const _component_ArrowDown = vue.resolveComponent("ArrowDown");
|
|
127
127
|
return dataList.value.length ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
128
128
|
key: 0,
|
|
129
|
-
class: "hy-action-button"
|
|
129
|
+
class: "hy-table-action-button"
|
|
130
130
|
}, [
|
|
131
131
|
selectedData.value ? (vue.openBlock(), vue.createBlock(vue.unref(index.HyTooltip), {
|
|
132
132
|
key: 0,
|
package/lib/version.js
CHANGED