@antdv-next/x 1.2.4 → 1.2.6
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/folder/style/folder.js +4 -2
- package/dist/index.umd.js +54 -18
- package/dist/package.js +1 -1
- package/dist/sender/Sender.d.ts +15 -0
- package/dist/sender/Sender.js +18 -6
- package/dist/sender/SenderHeader.d.ts +15 -0
- package/dist/sender/SenderHeader.js +13 -2
- package/dist/sender/SenderSwitch.d.ts +15 -0
- package/dist/sender/SenderSwitch.js +16 -5
- package/dist/sender/components/SlotTextAreaProseMirror.js +1 -1
- package/dist/sender/components/TextArea.js +1 -1
- package/dist/sender/interface.d.ts +4 -0
- package/dist/x-provider/context.d.ts +1 -3
- package/dist/x-provider/index.d.ts +1 -3
- package/es/antdv-next-x.esm.js +53 -27
- package/package.json +1 -1
|
@@ -12,11 +12,13 @@ var genFolderStyle = (token) => {
|
|
|
12
12
|
paddingInline: token.padding,
|
|
13
13
|
paddingBlock: token.paddingXS
|
|
14
14
|
},
|
|
15
|
-
[`${antCls}-tree-switcher`]: {
|
|
15
|
+
[`${antCls}-tree ${antCls}-tree-switcher`]: {
|
|
16
16
|
width: "10px",
|
|
17
17
|
"&:before": {
|
|
18
18
|
width: "10px",
|
|
19
|
-
height: "10px"
|
|
19
|
+
height: "10px",
|
|
20
|
+
top: "50%",
|
|
21
|
+
transform: "translateY(-50%)"
|
|
20
22
|
}
|
|
21
23
|
},
|
|
22
24
|
[`${antCls}-tree-node-content-wrapper`]: { paddingInline: 0 },
|
package/dist/index.umd.js
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
shiki_dist_themes_vitesse_dark_mjs = __toESM(shiki_dist_themes_vitesse_dark_mjs, 1);
|
|
67
67
|
shiki_dist_themes_vitesse_light_mjs = __toESM(shiki_dist_themes_vitesse_light_mjs, 1);
|
|
68
68
|
//#region package.json
|
|
69
|
-
var version = "1.2.
|
|
69
|
+
var version = "1.2.6";
|
|
70
70
|
//#endregion
|
|
71
71
|
//#region components/x-provider/context.ts
|
|
72
72
|
var XProviderContextKey = Symbol("antdv-next-x-provider-context");
|
|
@@ -6505,11 +6505,13 @@
|
|
|
6505
6505
|
paddingInline: token.padding,
|
|
6506
6506
|
paddingBlock: token.paddingXS
|
|
6507
6507
|
},
|
|
6508
|
-
[`${antCls}-tree-switcher`]: {
|
|
6508
|
+
[`${antCls}-tree ${antCls}-tree-switcher`]: {
|
|
6509
6509
|
width: "10px",
|
|
6510
6510
|
"&:before": {
|
|
6511
6511
|
width: "10px",
|
|
6512
|
-
height: "10px"
|
|
6512
|
+
height: "10px",
|
|
6513
|
+
top: "50%",
|
|
6514
|
+
transform: "translateY(-50%)"
|
|
6513
6515
|
}
|
|
6514
6516
|
},
|
|
6515
6517
|
[`${antCls}-tree-node-content-wrapper`]: { paddingInline: 0 },
|
|
@@ -21441,7 +21443,7 @@
|
|
|
21441
21443
|
"class": (0, _v_c_util.classNames)([
|
|
21442
21444
|
inputCls,
|
|
21443
21445
|
`${inputCls}-slot`,
|
|
21444
|
-
senderCtx.value.classNames?.input
|
|
21446
|
+
senderCtx.value.classes?.input ?? senderCtx.value.classNames?.input
|
|
21445
21447
|
]),
|
|
21446
21448
|
"style": mergeInputStyle.value,
|
|
21447
21449
|
"data-placeholder": senderCtx.value.placeholder
|
|
@@ -21641,7 +21643,7 @@
|
|
|
21641
21643
|
"ref": inputRef,
|
|
21642
21644
|
"disabled": ctx.disabled,
|
|
21643
21645
|
"style": ctx.styles?.input,
|
|
21644
|
-
"class": [`${ctx.prefixCls}-input`, ctx.classNames?.input],
|
|
21646
|
+
"class": [`${ctx.prefixCls}-input`, ctx.classes?.input ?? ctx.classNames?.input],
|
|
21645
21647
|
"autoSize": ctx.autoSize,
|
|
21646
21648
|
"value": ctx.value,
|
|
21647
21649
|
"onChange": (e) => {
|
|
@@ -22199,6 +22201,13 @@
|
|
|
22199
22201
|
type: [Boolean, Object],
|
|
22200
22202
|
default: () => ({ maxRows: 8 })
|
|
22201
22203
|
},
|
|
22204
|
+
classes: {
|
|
22205
|
+
type: Object,
|
|
22206
|
+
default: () => ({})
|
|
22207
|
+
},
|
|
22208
|
+
/**
|
|
22209
|
+
* @deprecated Use `classes` instead.
|
|
22210
|
+
*/
|
|
22202
22211
|
classNames: {
|
|
22203
22212
|
type: Object,
|
|
22204
22213
|
default: () => ({})
|
|
@@ -22362,6 +22371,10 @@
|
|
|
22362
22371
|
return inputRef.value?.getValue() ?? { value: "" };
|
|
22363
22372
|
}
|
|
22364
22373
|
});
|
|
22374
|
+
const mergedClasses = (0, vue.computed)(() => ({
|
|
22375
|
+
...props.classNames,
|
|
22376
|
+
...props.classes
|
|
22377
|
+
}));
|
|
22365
22378
|
provideSenderContext((0, vue.computed)(() => ({
|
|
22366
22379
|
value: mergedValue.value,
|
|
22367
22380
|
onChange: triggerValueChange,
|
|
@@ -22376,7 +22389,8 @@
|
|
|
22376
22389
|
submitType: props.submitType,
|
|
22377
22390
|
prefixCls: prefixCls.value,
|
|
22378
22391
|
styles: props.styles,
|
|
22379
|
-
|
|
22392
|
+
classes: mergedClasses.value,
|
|
22393
|
+
classNames: mergedClasses.value,
|
|
22380
22394
|
autoSize: props.autoSize,
|
|
22381
22395
|
triggerSend,
|
|
22382
22396
|
placeholder: props.placeholder,
|
|
@@ -22426,7 +22440,7 @@
|
|
|
22426
22440
|
contextConfig.value.classes?.root,
|
|
22427
22441
|
props.class,
|
|
22428
22442
|
props.rootClass,
|
|
22429
|
-
|
|
22443
|
+
mergedClasses.value.root,
|
|
22430
22444
|
hashId.value,
|
|
22431
22445
|
cssVarCls.value,
|
|
22432
22446
|
`${cls}-main`,
|
|
@@ -22444,7 +22458,7 @@
|
|
|
22444
22458
|
}, attrs), [
|
|
22445
22459
|
headerNode,
|
|
22446
22460
|
(0, vue.createVNode)("div", {
|
|
22447
|
-
"class": [`${cls}-content`,
|
|
22461
|
+
"class": [`${cls}-content`, mergedClasses.value.content],
|
|
22448
22462
|
"style": props.styles.content,
|
|
22449
22463
|
"onMousedown": (e) => {
|
|
22450
22464
|
const inputNode = containerRef.value?.querySelector(`.${cls}-input`);
|
|
@@ -22456,7 +22470,7 @@
|
|
|
22456
22470
|
"class": [
|
|
22457
22471
|
`${cls}-prefix`,
|
|
22458
22472
|
contextConfig.value.classes?.prefix,
|
|
22459
|
-
|
|
22473
|
+
mergedClasses.value.prefix
|
|
22460
22474
|
],
|
|
22461
22475
|
"style": [contextConfig.value.styles?.prefix, props.styles.prefix]
|
|
22462
22476
|
}, [prefixNode]),
|
|
@@ -22465,7 +22479,7 @@
|
|
|
22465
22479
|
"class": [
|
|
22466
22480
|
actionListCls,
|
|
22467
22481
|
contextConfig.value.classes?.suffix,
|
|
22468
|
-
|
|
22482
|
+
mergedClasses.value.suffix
|
|
22469
22483
|
],
|
|
22470
22484
|
"style": [contextConfig.value.styles?.suffix, props.styles.suffix]
|
|
22471
22485
|
}, [suffixNode])
|
|
@@ -22474,7 +22488,7 @@
|
|
|
22474
22488
|
"class": [
|
|
22475
22489
|
`${cls}-footer`,
|
|
22476
22490
|
contextConfig.value.classes?.footer,
|
|
22477
|
-
|
|
22491
|
+
mergedClasses.value.footer
|
|
22478
22492
|
],
|
|
22479
22493
|
"style": [contextConfig.value.styles?.footer, props.styles.footer]
|
|
22480
22494
|
}, [footerNode])
|
|
@@ -22511,6 +22525,13 @@
|
|
|
22511
22525
|
type: [String, Object],
|
|
22512
22526
|
default: void 0
|
|
22513
22527
|
},
|
|
22528
|
+
classes: {
|
|
22529
|
+
type: Object,
|
|
22530
|
+
default: () => ({})
|
|
22531
|
+
},
|
|
22532
|
+
/**
|
|
22533
|
+
* @deprecated Use `classes` instead.
|
|
22534
|
+
*/
|
|
22514
22535
|
classNames: {
|
|
22515
22536
|
type: Object,
|
|
22516
22537
|
default: () => ({})
|
|
@@ -22536,6 +22557,10 @@
|
|
|
22536
22557
|
return `${props.prefixCls ?? senderPrefix ?? "antd-sender"}-header`;
|
|
22537
22558
|
});
|
|
22538
22559
|
const direction = (0, vue.computed)(() => configCtx.value.direction);
|
|
22560
|
+
const mergedClasses = (0, vue.computed)(() => ({
|
|
22561
|
+
...props.classNames,
|
|
22562
|
+
...props.classes
|
|
22563
|
+
}));
|
|
22539
22564
|
return () => {
|
|
22540
22565
|
const headerCls = prefixCls.value;
|
|
22541
22566
|
const contentNode = (0, vue.createVNode)("div", {
|
|
@@ -22546,7 +22571,7 @@
|
|
|
22546
22571
|
],
|
|
22547
22572
|
"style": props.style
|
|
22548
22573
|
}, [(props.closable || props.title) && (0, vue.createVNode)("div", {
|
|
22549
|
-
"class": [`${headerCls}-header`,
|
|
22574
|
+
"class": [`${headerCls}-header`, mergedClasses.value.header],
|
|
22550
22575
|
"style": props.styles.header
|
|
22551
22576
|
}, [(0, vue.createVNode)("div", { "class": `${headerCls}-title` }, [slots.title?.() ?? props.title]), props.closable && (0, vue.createVNode)("div", { "class": `${headerCls}-close` }, [(0, vue.createVNode)(antdv_next.Button, {
|
|
22552
22577
|
"type": "text",
|
|
@@ -22554,7 +22579,7 @@
|
|
|
22554
22579
|
"size": "small",
|
|
22555
22580
|
"onClick": () => props.onOpenChange?.(!props.open)
|
|
22556
22581
|
}, null)])]), slots.default && (0, vue.createVNode)("div", {
|
|
22557
|
-
"class": [`${headerCls}-content`,
|
|
22582
|
+
"class": [`${headerCls}-content`, mergedClasses.value.content],
|
|
22558
22583
|
"style": props.styles.content
|
|
22559
22584
|
}, [slots.default()])]);
|
|
22560
22585
|
return (0, vue.createVNode)(vue.Transition, {
|
|
@@ -22644,6 +22669,13 @@
|
|
|
22644
22669
|
type: Function,
|
|
22645
22670
|
default: void 0
|
|
22646
22671
|
},
|
|
22672
|
+
classes: {
|
|
22673
|
+
type: Object,
|
|
22674
|
+
default: () => ({})
|
|
22675
|
+
},
|
|
22676
|
+
/**
|
|
22677
|
+
* @deprecated Use `classes` instead.
|
|
22678
|
+
*/
|
|
22647
22679
|
classNames: {
|
|
22648
22680
|
type: Object,
|
|
22649
22681
|
default: () => ({})
|
|
@@ -22670,6 +22702,10 @@
|
|
|
22670
22702
|
if (val !== void 0) innerChecked.value = val;
|
|
22671
22703
|
}, { immediate: true });
|
|
22672
22704
|
const mergedChecked = (0, vue.computed)(() => props.value ?? innerChecked.value);
|
|
22705
|
+
const mergedClasses = (0, vue.computed)(() => ({
|
|
22706
|
+
...props.classNames,
|
|
22707
|
+
...props.classes
|
|
22708
|
+
}));
|
|
22673
22709
|
expose({ get nativeElement() {
|
|
22674
22710
|
return containerRef.value;
|
|
22675
22711
|
} });
|
|
@@ -22686,8 +22722,8 @@
|
|
|
22686
22722
|
props.class,
|
|
22687
22723
|
props.rootClass,
|
|
22688
22724
|
contextConfig.value.classes?.switch,
|
|
22689
|
-
senderCtx.value.classNames?.switch,
|
|
22690
|
-
|
|
22725
|
+
senderCtx.value.classes?.switch ?? senderCtx.value.classNames?.switch,
|
|
22726
|
+
mergedClasses.value.root,
|
|
22691
22727
|
{
|
|
22692
22728
|
[`${cls}-checked`]: mergedChecked.value,
|
|
22693
22729
|
[`${cls}-rtl`]: direction.value === "rtl"
|
|
@@ -22702,12 +22738,12 @@
|
|
|
22702
22738
|
}, attrs), [(0, vue.createVNode)(antdv_next.Button, (0, vue.mergeProps)({
|
|
22703
22739
|
"disabled": props.disabled,
|
|
22704
22740
|
"loading": props.loading,
|
|
22705
|
-
"class": [`${cls}-content`,
|
|
22741
|
+
"class": [`${cls}-content`, mergedClasses.value.content],
|
|
22706
22742
|
"style": props.styles.content
|
|
22707
22743
|
}, {
|
|
22708
22744
|
classes: {
|
|
22709
|
-
icon:
|
|
22710
|
-
content:
|
|
22745
|
+
icon: mergedClasses.value.icon,
|
|
22746
|
+
content: mergedClasses.value.title
|
|
22711
22747
|
},
|
|
22712
22748
|
styles: {
|
|
22713
22749
|
icon: props.styles.icon,
|
package/dist/package.js
CHANGED
package/dist/sender/Sender.d.ts
CHANGED
|
@@ -66,6 +66,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
66
66
|
maxRows: number;
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
|
+
classes: {
|
|
70
|
+
type: PropType<Record<string, string>>;
|
|
71
|
+
default: () => {};
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated Use `classes` instead.
|
|
75
|
+
*/
|
|
69
76
|
classNames: {
|
|
70
77
|
type: PropType<Record<string, string>>;
|
|
71
78
|
default: () => {};
|
|
@@ -200,6 +207,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
200
207
|
maxRows: number;
|
|
201
208
|
};
|
|
202
209
|
};
|
|
210
|
+
classes: {
|
|
211
|
+
type: PropType<Record<string, string>>;
|
|
212
|
+
default: () => {};
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* @deprecated Use `classes` instead.
|
|
216
|
+
*/
|
|
203
217
|
classNames: {
|
|
204
218
|
type: PropType<Record<string, string>>;
|
|
205
219
|
default: () => {};
|
|
@@ -278,6 +292,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
278
292
|
loading: boolean;
|
|
279
293
|
rootClass: string;
|
|
280
294
|
class: string;
|
|
295
|
+
classes: Record<string, string>;
|
|
281
296
|
styles: Record<string, CSSProperties>;
|
|
282
297
|
footer: BaseNode | NodeRender;
|
|
283
298
|
header: BaseNode | NodeRender;
|
package/dist/sender/Sender.js
CHANGED
|
@@ -87,6 +87,13 @@ var Sender_default = /* @__PURE__ */ defineComponent({
|
|
|
87
87
|
type: [Boolean, Object],
|
|
88
88
|
default: () => ({ maxRows: 8 })
|
|
89
89
|
},
|
|
90
|
+
classes: {
|
|
91
|
+
type: Object,
|
|
92
|
+
default: () => ({})
|
|
93
|
+
},
|
|
94
|
+
/**
|
|
95
|
+
* @deprecated Use `classes` instead.
|
|
96
|
+
*/
|
|
90
97
|
classNames: {
|
|
91
98
|
type: Object,
|
|
92
99
|
default: () => ({})
|
|
@@ -250,6 +257,10 @@ var Sender_default = /* @__PURE__ */ defineComponent({
|
|
|
250
257
|
return inputRef.value?.getValue() ?? { value: "" };
|
|
251
258
|
}
|
|
252
259
|
});
|
|
260
|
+
const mergedClasses = computed(() => ({
|
|
261
|
+
...props.classNames,
|
|
262
|
+
...props.classes
|
|
263
|
+
}));
|
|
253
264
|
provideSenderContext(computed(() => ({
|
|
254
265
|
value: mergedValue.value,
|
|
255
266
|
onChange: triggerValueChange,
|
|
@@ -264,7 +275,8 @@ var Sender_default = /* @__PURE__ */ defineComponent({
|
|
|
264
275
|
submitType: props.submitType,
|
|
265
276
|
prefixCls: prefixCls.value,
|
|
266
277
|
styles: props.styles,
|
|
267
|
-
|
|
278
|
+
classes: mergedClasses.value,
|
|
279
|
+
classNames: mergedClasses.value,
|
|
268
280
|
autoSize: props.autoSize,
|
|
269
281
|
triggerSend,
|
|
270
282
|
placeholder: props.placeholder,
|
|
@@ -314,7 +326,7 @@ var Sender_default = /* @__PURE__ */ defineComponent({
|
|
|
314
326
|
contextConfig.value.classes?.root,
|
|
315
327
|
props.class,
|
|
316
328
|
props.rootClass,
|
|
317
|
-
|
|
329
|
+
mergedClasses.value.root,
|
|
318
330
|
hashId.value,
|
|
319
331
|
cssVarCls.value,
|
|
320
332
|
`${cls}-main`,
|
|
@@ -332,7 +344,7 @@ var Sender_default = /* @__PURE__ */ defineComponent({
|
|
|
332
344
|
}, attrs), [
|
|
333
345
|
headerNode,
|
|
334
346
|
createVNode("div", {
|
|
335
|
-
"class": [`${cls}-content`,
|
|
347
|
+
"class": [`${cls}-content`, mergedClasses.value.content],
|
|
336
348
|
"style": props.styles.content,
|
|
337
349
|
"onMousedown": (e) => {
|
|
338
350
|
const inputNode = containerRef.value?.querySelector(`.${cls}-input`);
|
|
@@ -344,7 +356,7 @@ var Sender_default = /* @__PURE__ */ defineComponent({
|
|
|
344
356
|
"class": [
|
|
345
357
|
`${cls}-prefix`,
|
|
346
358
|
contextConfig.value.classes?.prefix,
|
|
347
|
-
|
|
359
|
+
mergedClasses.value.prefix
|
|
348
360
|
],
|
|
349
361
|
"style": [contextConfig.value.styles?.prefix, props.styles.prefix]
|
|
350
362
|
}, [prefixNode]),
|
|
@@ -353,7 +365,7 @@ var Sender_default = /* @__PURE__ */ defineComponent({
|
|
|
353
365
|
"class": [
|
|
354
366
|
actionListCls,
|
|
355
367
|
contextConfig.value.classes?.suffix,
|
|
356
|
-
|
|
368
|
+
mergedClasses.value.suffix
|
|
357
369
|
],
|
|
358
370
|
"style": [contextConfig.value.styles?.suffix, props.styles.suffix]
|
|
359
371
|
}, [suffixNode])
|
|
@@ -362,7 +374,7 @@ var Sender_default = /* @__PURE__ */ defineComponent({
|
|
|
362
374
|
"class": [
|
|
363
375
|
`${cls}-footer`,
|
|
364
376
|
contextConfig.value.classes?.footer,
|
|
365
|
-
|
|
377
|
+
mergedClasses.value.footer
|
|
366
378
|
],
|
|
367
379
|
"style": [contextConfig.value.styles?.footer, props.styles.footer]
|
|
368
380
|
}, [footerNode])
|
|
@@ -25,6 +25,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
25
25
|
type: PropType<string | CSSProperties>;
|
|
26
26
|
default: undefined;
|
|
27
27
|
};
|
|
28
|
+
classes: {
|
|
29
|
+
type: PropType<Partial<Record<HeaderSemanticType, string>>>;
|
|
30
|
+
default: () => {};
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated Use `classes` instead.
|
|
34
|
+
*/
|
|
28
35
|
classNames: {
|
|
29
36
|
type: PropType<Partial<Record<HeaderSemanticType, string>>>;
|
|
30
37
|
default: () => {};
|
|
@@ -66,6 +73,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
66
73
|
type: PropType<string | CSSProperties>;
|
|
67
74
|
default: undefined;
|
|
68
75
|
};
|
|
76
|
+
classes: {
|
|
77
|
+
type: PropType<Partial<Record<HeaderSemanticType, string>>>;
|
|
78
|
+
default: () => {};
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* @deprecated Use `classes` instead.
|
|
82
|
+
*/
|
|
69
83
|
classNames: {
|
|
70
84
|
type: PropType<Partial<Record<HeaderSemanticType, string>>>;
|
|
71
85
|
default: () => {};
|
|
@@ -87,6 +101,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
87
101
|
style: string | CSSProperties;
|
|
88
102
|
open: boolean;
|
|
89
103
|
class: string;
|
|
104
|
+
classes: Partial<Record<HeaderSemanticType, string>>;
|
|
90
105
|
styles: Partial<Record<HeaderSemanticType, CSSProperties>>;
|
|
91
106
|
title: string | Record<string, any>;
|
|
92
107
|
onOpenChange: (open: boolean) => void;
|
|
@@ -31,6 +31,13 @@ var SenderHeader_default = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
type: [String, Object],
|
|
32
32
|
default: void 0
|
|
33
33
|
},
|
|
34
|
+
classes: {
|
|
35
|
+
type: Object,
|
|
36
|
+
default: () => ({})
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated Use `classes` instead.
|
|
40
|
+
*/
|
|
34
41
|
classNames: {
|
|
35
42
|
type: Object,
|
|
36
43
|
default: () => ({})
|
|
@@ -56,6 +63,10 @@ var SenderHeader_default = /* @__PURE__ */ defineComponent({
|
|
|
56
63
|
return `${props.prefixCls ?? senderPrefix ?? "antd-sender"}-header`;
|
|
57
64
|
});
|
|
58
65
|
const direction = computed(() => configCtx.value.direction);
|
|
66
|
+
const mergedClasses = computed(() => ({
|
|
67
|
+
...props.classNames,
|
|
68
|
+
...props.classes
|
|
69
|
+
}));
|
|
59
70
|
return () => {
|
|
60
71
|
const headerCls = prefixCls.value;
|
|
61
72
|
const contentNode = createVNode("div", {
|
|
@@ -66,7 +77,7 @@ var SenderHeader_default = /* @__PURE__ */ defineComponent({
|
|
|
66
77
|
],
|
|
67
78
|
"style": props.style
|
|
68
79
|
}, [(props.closable || props.title) && createVNode("div", {
|
|
69
|
-
"class": [`${headerCls}-header`,
|
|
80
|
+
"class": [`${headerCls}-header`, mergedClasses.value.header],
|
|
70
81
|
"style": props.styles.header
|
|
71
82
|
}, [createVNode("div", { "class": `${headerCls}-title` }, [slots.title?.() ?? props.title]), props.closable && createVNode("div", { "class": `${headerCls}-close` }, [createVNode(Button, {
|
|
72
83
|
"type": "text",
|
|
@@ -74,7 +85,7 @@ var SenderHeader_default = /* @__PURE__ */ defineComponent({
|
|
|
74
85
|
"size": "small",
|
|
75
86
|
"onClick": () => props.onOpenChange?.(!props.open)
|
|
76
87
|
}, null)])]), slots.default && createVNode("div", {
|
|
77
|
-
"class": [`${headerCls}-content`,
|
|
88
|
+
"class": [`${headerCls}-content`, mergedClasses.value.content],
|
|
78
89
|
"style": props.styles.content
|
|
79
90
|
}, [slots.default()])]);
|
|
80
91
|
return createVNode(Transition, {
|
|
@@ -49,6 +49,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
49
49
|
type: PropType<(checked: boolean) => void>;
|
|
50
50
|
default: undefined;
|
|
51
51
|
};
|
|
52
|
+
classes: {
|
|
53
|
+
type: PropType<Partial<Record<SwitchSemanticType, string>>>;
|
|
54
|
+
default: () => {};
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated Use `classes` instead.
|
|
58
|
+
*/
|
|
52
59
|
classNames: {
|
|
53
60
|
type: PropType<Partial<Record<SwitchSemanticType, string>>>;
|
|
54
61
|
default: () => {};
|
|
@@ -106,6 +113,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
106
113
|
type: PropType<(checked: boolean) => void>;
|
|
107
114
|
default: undefined;
|
|
108
115
|
};
|
|
116
|
+
classes: {
|
|
117
|
+
type: PropType<Partial<Record<SwitchSemanticType, string>>>;
|
|
118
|
+
default: () => {};
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* @deprecated Use `classes` instead.
|
|
122
|
+
*/
|
|
109
123
|
classNames: {
|
|
110
124
|
type: PropType<Partial<Record<SwitchSemanticType, string>>>;
|
|
111
125
|
default: () => {};
|
|
@@ -123,6 +137,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
123
137
|
loading: boolean;
|
|
124
138
|
rootClass: string;
|
|
125
139
|
class: string;
|
|
140
|
+
classes: Partial<Record<SwitchSemanticType, string>>;
|
|
126
141
|
styles: Partial<Record<SwitchSemanticType, CSSProperties>>;
|
|
127
142
|
onChange: (checked: boolean) => void;
|
|
128
143
|
classNames: Partial<Record<SwitchSemanticType, string>>;
|
|
@@ -60,6 +60,13 @@ var SenderSwitch_default = /* @__PURE__ */ defineComponent({
|
|
|
60
60
|
type: Function,
|
|
61
61
|
default: void 0
|
|
62
62
|
},
|
|
63
|
+
classes: {
|
|
64
|
+
type: Object,
|
|
65
|
+
default: () => ({})
|
|
66
|
+
},
|
|
67
|
+
/**
|
|
68
|
+
* @deprecated Use `classes` instead.
|
|
69
|
+
*/
|
|
63
70
|
classNames: {
|
|
64
71
|
type: Object,
|
|
65
72
|
default: () => ({})
|
|
@@ -86,6 +93,10 @@ var SenderSwitch_default = /* @__PURE__ */ defineComponent({
|
|
|
86
93
|
if (val !== void 0) innerChecked.value = val;
|
|
87
94
|
}, { immediate: true });
|
|
88
95
|
const mergedChecked = computed(() => props.value ?? innerChecked.value);
|
|
96
|
+
const mergedClasses = computed(() => ({
|
|
97
|
+
...props.classNames,
|
|
98
|
+
...props.classes
|
|
99
|
+
}));
|
|
89
100
|
expose({ get nativeElement() {
|
|
90
101
|
return containerRef.value;
|
|
91
102
|
} });
|
|
@@ -102,8 +113,8 @@ var SenderSwitch_default = /* @__PURE__ */ defineComponent({
|
|
|
102
113
|
props.class,
|
|
103
114
|
props.rootClass,
|
|
104
115
|
contextConfig.value.classes?.switch,
|
|
105
|
-
senderCtx.value.classNames?.switch,
|
|
106
|
-
|
|
116
|
+
senderCtx.value.classes?.switch ?? senderCtx.value.classNames?.switch,
|
|
117
|
+
mergedClasses.value.root,
|
|
107
118
|
{
|
|
108
119
|
[`${cls}-checked`]: mergedChecked.value,
|
|
109
120
|
[`${cls}-rtl`]: direction.value === "rtl"
|
|
@@ -118,12 +129,12 @@ var SenderSwitch_default = /* @__PURE__ */ defineComponent({
|
|
|
118
129
|
}, attrs), [createVNode(Button, mergeProps({
|
|
119
130
|
"disabled": props.disabled,
|
|
120
131
|
"loading": props.loading,
|
|
121
|
-
"class": [`${cls}-content`,
|
|
132
|
+
"class": [`${cls}-content`, mergedClasses.value.content],
|
|
122
133
|
"style": props.styles.content
|
|
123
134
|
}, {
|
|
124
135
|
classes: {
|
|
125
|
-
icon:
|
|
126
|
-
content:
|
|
136
|
+
icon: mergedClasses.value.icon,
|
|
137
|
+
content: mergedClasses.value.title
|
|
127
138
|
},
|
|
128
139
|
styles: {
|
|
129
140
|
icon: props.styles.icon,
|
|
@@ -1160,7 +1160,7 @@ var SlotTextAreaProseMirror_default = /* @__PURE__ */ defineComponent({
|
|
|
1160
1160
|
"class": classNames([
|
|
1161
1161
|
inputCls,
|
|
1162
1162
|
`${inputCls}-slot`,
|
|
1163
|
-
senderCtx.value.classNames?.input
|
|
1163
|
+
senderCtx.value.classes?.input ?? senderCtx.value.classNames?.input
|
|
1164
1164
|
]),
|
|
1165
1165
|
"style": mergeInputStyle.value,
|
|
1166
1166
|
"data-placeholder": senderCtx.value.placeholder
|
|
@@ -113,7 +113,7 @@ var TextArea_default = /* @__PURE__ */ defineComponent({
|
|
|
113
113
|
"ref": inputRef,
|
|
114
114
|
"disabled": ctx.disabled,
|
|
115
115
|
"style": ctx.styles?.input,
|
|
116
|
-
"class": [`${ctx.prefixCls}-input`, ctx.classNames?.input],
|
|
116
|
+
"class": [`${ctx.prefixCls}-input`, ctx.classes?.input ?? ctx.classNames?.input],
|
|
117
117
|
"autoSize": ctx.autoSize,
|
|
118
118
|
"value": ctx.value,
|
|
119
119
|
"onChange": (e) => {
|
|
@@ -116,6 +116,10 @@ export interface SenderProps {
|
|
|
116
116
|
onCut?: (event: ClipboardEvent, info: SenderCopyInfo) => void;
|
|
117
117
|
onFocus?: (event: FocusEvent) => void;
|
|
118
118
|
onBlur?: (event: FocusEvent) => void;
|
|
119
|
+
classes?: Partial<Record<SemanticType, string>>;
|
|
120
|
+
/**
|
|
121
|
+
* @deprecated Use `classes` instead.
|
|
122
|
+
*/
|
|
119
123
|
classNames?: Partial<Record<SemanticType, string>>;
|
|
120
124
|
styles?: Partial<Record<SemanticType, CSSProperties>>;
|
|
121
125
|
rootClass?: string;
|
|
@@ -35,9 +35,7 @@ export interface XComponentsConfig {
|
|
|
35
35
|
folder?: Pick<FolderProps, "style" | "styles" | "classes">;
|
|
36
36
|
mermaid?: Pick<MermaidProps, "style" | "styles" | "classes">;
|
|
37
37
|
prompts?: Pick<PromptsProps, "style" | "styles" | "classes">;
|
|
38
|
-
sender?: Pick<SenderProps, "style" | "styles" | "
|
|
39
|
-
classes?: SenderProps["classNames"];
|
|
40
|
-
};
|
|
38
|
+
sender?: Pick<SenderProps, "style" | "styles" | "classes" | "classNames">;
|
|
41
39
|
suggestion?: Pick<SuggestionProps, "style" | "styles" | "classes">;
|
|
42
40
|
think?: Pick<ThinkProps, "style" | "styles" | "classes">;
|
|
43
41
|
thoughtChain?: Pick<ThoughtChainProps, "style" | "styles" | "classes">;
|
|
@@ -154,9 +154,7 @@ declare const XProvider: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
154
154
|
codeHighlighter: Pick<import('..').CodeHighlighterProps, "style" | "classes" | "styles"> | undefined;
|
|
155
155
|
mermaid: Pick<import('..').MermaidProps, "style" | "classes" | "styles"> | undefined;
|
|
156
156
|
prompts: Pick<import('..').PromptsProps, "style" | "classes" | "styles"> | undefined;
|
|
157
|
-
sender:
|
|
158
|
-
classes?: import('..').SenderProps["classNames"];
|
|
159
|
-
}) | undefined;
|
|
157
|
+
sender: Pick<import('..').SenderProps, "style" | "classes" | "styles" | "classNames"> | undefined;
|
|
160
158
|
suggestion: Pick<import('..').SuggestionProps<any>, "style" | "classes" | "styles"> | undefined;
|
|
161
159
|
think: Pick<import('..').ThinkProps, "style" | "classes" | "styles"> | undefined;
|
|
162
160
|
thoughtChain: Pick<import('..').ThoughtChainProps, "style" | "classes" | "styles"> | undefined;
|
package/es/antdv-next-x.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { S as e, _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v, v as y, x as b, y as x } from "./Serializer-Sc9uEpQk.js";
|
|
2
2
|
import { Comment as S, Fragment as C, Teleport as w, Text as T, Transition as E, TransitionGroup as D, cloneVNode as O, computed as k, createTextVNode as A, createVNode as j, defineComponent as M, getCurrentInstance as N, getCurrentScope as P, h as F, inject as I, isVNode as L, markRaw as R, mergeDefaults as z, mergeProps as B, nextTick as V, onBeforeMount as ee, onBeforeUnmount as H, onBeforeUpdate as U, onMounted as te, onScopeDispose as ne, onUnmounted as re, onUpdated as ie, provide as W, reactive as ae, ref as G, render as oe, resolveDynamicComponent as se, shallowReactive as ce, shallowRef as K, toRaw as le, toRef as ue, toRefs as de, toValue as fe, triggerRef as pe, unref as me, useAttrs as he, useId as ge, useSlots as _e, vShow as ve, watch as q, watchEffect as ye, withDirectives as be } from "vue";
|
|
3
3
|
//#region package.json
|
|
4
|
-
var xe = "1.2.
|
|
4
|
+
var xe = "1.2.6", Se = "anticon", Ce = {}, we = [
|
|
5
5
|
"outlined",
|
|
6
6
|
"borderless",
|
|
7
7
|
"filled",
|
|
@@ -50476,11 +50476,13 @@ var aF = /* @__PURE__ */ M({
|
|
|
50476
50476
|
paddingInline: e.padding,
|
|
50477
50477
|
paddingBlock: e.paddingXS
|
|
50478
50478
|
},
|
|
50479
|
-
[`${n}-tree-switcher`]: {
|
|
50479
|
+
[`${n}-tree ${n}-tree-switcher`]: {
|
|
50480
50480
|
width: "10px",
|
|
50481
50481
|
"&:before": {
|
|
50482
50482
|
width: "10px",
|
|
50483
|
-
height: "10px"
|
|
50483
|
+
height: "10px",
|
|
50484
|
+
top: "50%",
|
|
50485
|
+
transform: "translateY(-50%)"
|
|
50484
50486
|
}
|
|
50485
50487
|
},
|
|
50486
50488
|
[`${n}-tree-node-content-wrapper`]: { paddingInline: 0 },
|
|
@@ -60508,7 +60510,7 @@ var sG = /* @__PURE__ */ M({
|
|
|
60508
60510
|
class: Y([
|
|
60509
60511
|
e,
|
|
60510
60512
|
`${e}-slot`,
|
|
60511
|
-
n.value.classNames?.input
|
|
60513
|
+
n.value.classes?.input ?? n.value.classNames?.input
|
|
60512
60514
|
]),
|
|
60513
60515
|
style: v.value,
|
|
60514
60516
|
"data-placeholder": n.value.placeholder
|
|
@@ -60657,7 +60659,7 @@ var bG = /* @__PURE__ */ M({
|
|
|
60657
60659
|
ref: r,
|
|
60658
60660
|
disabled: e.disabled,
|
|
60659
60661
|
style: e.styles?.input,
|
|
60660
|
-
class: [`${e.prefixCls}-input`, e.classNames?.input],
|
|
60662
|
+
class: [`${e.prefixCls}-input`, e.classes?.input ?? e.classNames?.input],
|
|
60661
60663
|
autoSize: e.autoSize,
|
|
60662
60664
|
value: e.value,
|
|
60663
60665
|
onChange: (t) => {
|
|
@@ -61147,6 +61149,10 @@ var CG = (e) => {
|
|
|
61147
61149
|
type: [Boolean, Object],
|
|
61148
61150
|
default: () => ({ maxRows: 8 })
|
|
61149
61151
|
},
|
|
61152
|
+
classes: {
|
|
61153
|
+
type: Object,
|
|
61154
|
+
default: () => ({})
|
|
61155
|
+
},
|
|
61150
61156
|
classNames: {
|
|
61151
61157
|
type: Object,
|
|
61152
61158
|
default: () => ({})
|
|
@@ -61288,7 +61294,12 @@ var CG = (e) => {
|
|
|
61288
61294
|
getValue() {
|
|
61289
61295
|
return f.value?.getValue() ?? { value: "" };
|
|
61290
61296
|
}
|
|
61291
|
-
})
|
|
61297
|
+
});
|
|
61298
|
+
let C = k(() => ({
|
|
61299
|
+
...e.classNames,
|
|
61300
|
+
...e.classes
|
|
61301
|
+
}));
|
|
61302
|
+
UW(k(() => ({
|
|
61292
61303
|
value: h.value,
|
|
61293
61304
|
onChange: g,
|
|
61294
61305
|
onKeyUp: e.onKeyUp,
|
|
@@ -61302,7 +61313,8 @@ var CG = (e) => {
|
|
|
61302
61313
|
submitType: e.submitType,
|
|
61303
61314
|
prefixCls: s.value,
|
|
61304
61315
|
styles: e.styles,
|
|
61305
|
-
|
|
61316
|
+
classes: C.value,
|
|
61317
|
+
classNames: C.value,
|
|
61306
61318
|
autoSize: e.autoSize,
|
|
61307
61319
|
triggerSend: x,
|
|
61308
61320
|
placeholder: e.placeholder,
|
|
@@ -61314,9 +61326,9 @@ var CG = (e) => {
|
|
|
61314
61326
|
_.value = e;
|
|
61315
61327
|
}
|
|
61316
61328
|
})));
|
|
61317
|
-
let
|
|
61329
|
+
let w = k(() => `${s.value}-actions-btn`);
|
|
61318
61330
|
UF(k(() => ({
|
|
61319
|
-
prefixCls:
|
|
61331
|
+
prefixCls: w.value,
|
|
61320
61332
|
onSend: x,
|
|
61321
61333
|
onSendDisabled: _.value,
|
|
61322
61334
|
onClear: S,
|
|
@@ -61328,12 +61340,12 @@ var CG = (e) => {
|
|
|
61328
61340
|
speechRecording: b.value,
|
|
61329
61341
|
disabled: e.disabled
|
|
61330
61342
|
})));
|
|
61331
|
-
let
|
|
61343
|
+
let T = (e, t, r) => n[t] ? n[t]?.({
|
|
61332
61344
|
defaultNode: r,
|
|
61333
61345
|
components: OG
|
|
61334
61346
|
}) : typeof e == "function" ? e(r, { components: OG }) : e || e === !1 ? e : null;
|
|
61335
61347
|
return () => {
|
|
61336
|
-
let t = s.value, n = `${t}-actions-list`, r = j(HE, { class: `${n}-presets` }, { default: () => [e.allowSpeech && j(bG, null, null), e.loading ? j(YF, null, null) : j(ZF, null, null)] }), a =
|
|
61348
|
+
let t = s.value, n = `${t}-actions-list`, r = j(HE, { class: `${n}-presets` }, { default: () => [e.allowSpeech && j(bG, null, null), e.loading ? j(YF, null, null) : j(ZF, null, null)] }), a = T(e.suffix, "suffix", r) ?? r, m = T(e.prefix, "prefix", r), h = T(e.header, "header", r), g = T(e.footer, "footer", r);
|
|
61337
61349
|
return j("div", B({
|
|
61338
61350
|
ref: d,
|
|
61339
61351
|
class: [
|
|
@@ -61341,7 +61353,7 @@ var CG = (e) => {
|
|
|
61341
61353
|
o.value.classes?.root,
|
|
61342
61354
|
e.class,
|
|
61343
61355
|
e.rootClass,
|
|
61344
|
-
|
|
61356
|
+
C.value.root,
|
|
61345
61357
|
l.value,
|
|
61346
61358
|
u.value,
|
|
61347
61359
|
`${t}-main`,
|
|
@@ -61359,7 +61371,7 @@ var CG = (e) => {
|
|
|
61359
61371
|
}, i), [
|
|
61360
61372
|
h,
|
|
61361
61373
|
j("div", {
|
|
61362
|
-
class: [`${t}-content`,
|
|
61374
|
+
class: [`${t}-content`, C.value.content],
|
|
61363
61375
|
style: e.styles.content,
|
|
61364
61376
|
onMousedown: (e) => {
|
|
61365
61377
|
let n = d.value?.querySelector(`.${t}-input`);
|
|
@@ -61370,7 +61382,7 @@ var CG = (e) => {
|
|
|
61370
61382
|
class: [
|
|
61371
61383
|
`${t}-prefix`,
|
|
61372
61384
|
o.value.classes?.prefix,
|
|
61373
|
-
|
|
61385
|
+
C.value.prefix
|
|
61374
61386
|
],
|
|
61375
61387
|
style: [o.value.styles?.prefix, e.styles.prefix]
|
|
61376
61388
|
}, [m]),
|
|
@@ -61379,7 +61391,7 @@ var CG = (e) => {
|
|
|
61379
61391
|
class: [
|
|
61380
61392
|
n,
|
|
61381
61393
|
o.value.classes?.suffix,
|
|
61382
|
-
|
|
61394
|
+
C.value.suffix
|
|
61383
61395
|
],
|
|
61384
61396
|
style: [o.value.styles?.suffix, e.styles.suffix]
|
|
61385
61397
|
}, [a])
|
|
@@ -61388,7 +61400,7 @@ var CG = (e) => {
|
|
|
61388
61400
|
class: [
|
|
61389
61401
|
`${t}-footer`,
|
|
61390
61402
|
o.value.classes?.footer,
|
|
61391
|
-
|
|
61403
|
+
C.value.footer
|
|
61392
61404
|
],
|
|
61393
61405
|
style: [o.value.styles?.footer, e.styles.footer]
|
|
61394
61406
|
}, [g])
|
|
@@ -61422,6 +61434,10 @@ var CG = (e) => {
|
|
|
61422
61434
|
type: [String, Object],
|
|
61423
61435
|
default: void 0
|
|
61424
61436
|
},
|
|
61437
|
+
classes: {
|
|
61438
|
+
type: Object,
|
|
61439
|
+
default: () => ({})
|
|
61440
|
+
},
|
|
61425
61441
|
classNames: {
|
|
61426
61442
|
type: Object,
|
|
61427
61443
|
default: () => ({})
|
|
@@ -61443,7 +61459,10 @@ var CG = (e) => {
|
|
|
61443
61459
|
let n = Oe(), r = HW(), i = k(() => {
|
|
61444
61460
|
let t = r.value.prefixCls;
|
|
61445
61461
|
return `${e.prefixCls ?? t ?? "antd-sender"}-header`;
|
|
61446
|
-
}), a = k(() => n.value.direction)
|
|
61462
|
+
}), a = k(() => n.value.direction), o = k(() => ({
|
|
61463
|
+
...e.classNames,
|
|
61464
|
+
...e.classes
|
|
61465
|
+
}));
|
|
61447
61466
|
return () => {
|
|
61448
61467
|
let n = i.value, r = j("div", {
|
|
61449
61468
|
class: [
|
|
@@ -61453,7 +61472,7 @@ var CG = (e) => {
|
|
|
61453
61472
|
],
|
|
61454
61473
|
style: e.style
|
|
61455
61474
|
}, [(e.closable || e.title) && j("div", {
|
|
61456
|
-
class: [`${n}-header`,
|
|
61475
|
+
class: [`${n}-header`, o.value.header],
|
|
61457
61476
|
style: e.styles.header
|
|
61458
61477
|
}, [j("div", { class: `${n}-title` }, [t.title?.() ?? e.title]), e.closable && j("div", { class: `${n}-close` }, [j(_h, {
|
|
61459
61478
|
type: "text",
|
|
@@ -61461,7 +61480,7 @@ var CG = (e) => {
|
|
|
61461
61480
|
size: "small",
|
|
61462
61481
|
onClick: () => e.onOpenChange?.(!e.open)
|
|
61463
61482
|
}, null)])]), t.default && j("div", {
|
|
61464
|
-
class: [`${n}-content`,
|
|
61483
|
+
class: [`${n}-content`, o.value.content],
|
|
61465
61484
|
style: e.styles.content
|
|
61466
61485
|
}, [t.default()])]);
|
|
61467
61486
|
return j(E, {
|
|
@@ -61543,6 +61562,10 @@ var CG = (e) => {
|
|
|
61543
61562
|
type: Function,
|
|
61544
61563
|
default: void 0
|
|
61545
61564
|
},
|
|
61565
|
+
classes: {
|
|
61566
|
+
type: Object,
|
|
61567
|
+
default: () => ({})
|
|
61568
|
+
},
|
|
61546
61569
|
classNames: {
|
|
61547
61570
|
type: Object,
|
|
61548
61571
|
default: () => ({})
|
|
@@ -61560,11 +61583,14 @@ var CG = (e) => {
|
|
|
61560
61583
|
q(() => e.value, (e) => {
|
|
61561
61584
|
e !== void 0 && (d.value = e);
|
|
61562
61585
|
}, { immediate: !0 });
|
|
61563
|
-
let f = k(() => e.value ?? d.value)
|
|
61586
|
+
let f = k(() => e.value ?? d.value), p = k(() => ({
|
|
61587
|
+
...e.classNames,
|
|
61588
|
+
...e.classes
|
|
61589
|
+
}));
|
|
61564
61590
|
return t({ get nativeElement() {
|
|
61565
61591
|
return u.value;
|
|
61566
61592
|
} }), () => {
|
|
61567
|
-
let t = c.value, i = n.icon?.() ?? e.icon,
|
|
61593
|
+
let t = c.value, i = n.icon?.() ?? e.icon, m = n.checkedChildren?.() ?? e.checkedChildren, h = n.unCheckedChildren?.() ?? e.unCheckedChildren;
|
|
61568
61594
|
return j("div", B({
|
|
61569
61595
|
ref: u,
|
|
61570
61596
|
class: [
|
|
@@ -61573,8 +61599,8 @@ var CG = (e) => {
|
|
|
61573
61599
|
e.class,
|
|
61574
61600
|
e.rootClass,
|
|
61575
61601
|
o.value.classes?.switch,
|
|
61576
|
-
a.value.classNames?.switch,
|
|
61577
|
-
|
|
61602
|
+
a.value.classes?.switch ?? a.value.classNames?.switch,
|
|
61603
|
+
p.value.root,
|
|
61578
61604
|
{
|
|
61579
61605
|
[`${t}-checked`]: f.value,
|
|
61580
61606
|
[`${t}-rtl`]: l.value === "rtl"
|
|
@@ -61589,12 +61615,12 @@ var CG = (e) => {
|
|
|
61589
61615
|
}, r), [j(_h, B({
|
|
61590
61616
|
disabled: e.disabled,
|
|
61591
61617
|
loading: e.loading,
|
|
61592
|
-
class: [`${t}-content`,
|
|
61618
|
+
class: [`${t}-content`, p.value.content],
|
|
61593
61619
|
style: e.styles.content
|
|
61594
61620
|
}, {
|
|
61595
61621
|
classes: {
|
|
61596
|
-
icon:
|
|
61597
|
-
content:
|
|
61622
|
+
icon: p.value.icon,
|
|
61623
|
+
content: p.value.title
|
|
61598
61624
|
},
|
|
61599
61625
|
styles: {
|
|
61600
61626
|
icon: e.styles.icon,
|
|
@@ -61608,7 +61634,7 @@ var CG = (e) => {
|
|
|
61608
61634
|
let t = !f.value;
|
|
61609
61635
|
d.value = t, e.onChange?.(t);
|
|
61610
61636
|
}
|
|
61611
|
-
}), { default: () => [f.value ?
|
|
61637
|
+
}), { default: () => [f.value ? m : h, n.default?.()] })]);
|
|
61612
61638
|
};
|
|
61613
61639
|
}
|
|
61614
61640
|
}), MG = kG;
|