nuxt-hs-ui 2.2.0 → 2.3.0
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/module.json
CHANGED
|
@@ -260,11 +260,16 @@ const baseCardHeader = [
|
|
|
260
260
|
{{ tx(activeItem.data.message) }}
|
|
261
261
|
</div>
|
|
262
262
|
<div :class="btnBaseStyle">
|
|
263
|
-
<div>
|
|
263
|
+
<div class="flex-cc">
|
|
264
264
|
<Btn
|
|
265
265
|
v-if="activeItem.data.option.btnLeft.isShow"
|
|
266
|
-
:class="
|
|
267
|
-
|
|
266
|
+
:class="[
|
|
267
|
+
btnStyle,
|
|
268
|
+
activeItem.data.option.btnLeft.variant === 'outlined'
|
|
269
|
+
? 'bg-white'
|
|
270
|
+
: '',
|
|
271
|
+
]"
|
|
272
|
+
:variant="activeItem.data.option.btnLeft.variant"
|
|
268
273
|
:theme="activeItem.data.option.btnLeft.theme"
|
|
269
274
|
@click="clickLeft()"
|
|
270
275
|
@ref="(e:any) => (leftBtnElm = e)"
|
|
@@ -273,11 +278,16 @@ const baseCardHeader = [
|
|
|
273
278
|
{{ tx(activeItem.data.option.btnLeft.title) }}
|
|
274
279
|
</Btn>
|
|
275
280
|
</div>
|
|
276
|
-
<div>
|
|
281
|
+
<div class="flex-cc">
|
|
277
282
|
<Btn
|
|
278
283
|
v-if="activeItem.data.option.btnRight.isShow"
|
|
279
|
-
:class="
|
|
280
|
-
|
|
284
|
+
:class="[
|
|
285
|
+
btnStyle,
|
|
286
|
+
activeItem.data.option.btnRight.variant === 'outlined'
|
|
287
|
+
? 'bg-white'
|
|
288
|
+
: '',
|
|
289
|
+
]"
|
|
290
|
+
:variant="activeItem.data.option.btnRight.variant"
|
|
281
291
|
:theme="activeItem.data.option.btnRight.theme"
|
|
282
292
|
@click="clickRight()"
|
|
283
293
|
@ref="(e:any) => (rightBtnElm = e)"
|
|
@@ -18,11 +18,13 @@ export interface DialogOption {
|
|
|
18
18
|
isShow: boolean;
|
|
19
19
|
title: MultiLang;
|
|
20
20
|
theme: Theme;
|
|
21
|
+
variant: "flat" | "text" | "outlined";
|
|
21
22
|
};
|
|
22
23
|
btnRight: {
|
|
23
24
|
isShow: boolean;
|
|
24
25
|
title: MultiLang;
|
|
25
26
|
theme: Theme;
|
|
27
|
+
variant: "flat" | "text" | "outlined";
|
|
26
28
|
};
|
|
27
29
|
btnCancel: {
|
|
28
30
|
isShow: boolean;
|
|
@@ -12,12 +12,14 @@ export const InitDialogOption = () => {
|
|
|
12
12
|
btnLeft: {
|
|
13
13
|
isShow: true,
|
|
14
14
|
title: "no",
|
|
15
|
-
theme: "dark"
|
|
15
|
+
theme: "dark",
|
|
16
|
+
variant: "flat"
|
|
16
17
|
},
|
|
17
18
|
btnRight: {
|
|
18
19
|
isShow: true,
|
|
19
20
|
title: "Yes",
|
|
20
|
-
theme: "accent1"
|
|
21
|
+
theme: "accent1",
|
|
22
|
+
variant: "flat"
|
|
21
23
|
},
|
|
22
24
|
btnCancel: {
|
|
23
25
|
isShow: true,
|