@deot/vc 1.0.13 → 1.0.14
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/index.d.ts +37 -9
- package/dist/index.iife.js +15 -7
- package/dist/index.umd.cjs +15 -7
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -4175,7 +4175,7 @@ export declare const Components: {
|
|
|
4175
4175
|
validator: (v: string) => boolean;
|
|
4176
4176
|
default: string;
|
|
4177
4177
|
};
|
|
4178
|
-
|
|
4178
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
4179
4179
|
width: {
|
|
4180
4180
|
type: NumberConstructor;
|
|
4181
4181
|
};
|
|
@@ -4223,6 +4223,10 @@ export declare const Components: {
|
|
|
4223
4223
|
type: BooleanConstructor;
|
|
4224
4224
|
default: boolean;
|
|
4225
4225
|
};
|
|
4226
|
+
border: {
|
|
4227
|
+
type: BooleanConstructor;
|
|
4228
|
+
default: boolean;
|
|
4229
|
+
};
|
|
4226
4230
|
onOk: {
|
|
4227
4231
|
type: FunctionConstructor;
|
|
4228
4232
|
};
|
|
@@ -4242,6 +4246,7 @@ export declare const Components: {
|
|
|
4242
4246
|
mask: boolean;
|
|
4243
4247
|
modelValue: boolean;
|
|
4244
4248
|
closable: boolean;
|
|
4249
|
+
border: boolean;
|
|
4245
4250
|
content: string | ((props: Record<string, unknown>, context: SetupContext) => any);
|
|
4246
4251
|
maskClosable: boolean;
|
|
4247
4252
|
scrollable: boolean;
|
|
@@ -4275,7 +4280,7 @@ export declare const Components: {
|
|
|
4275
4280
|
validator: (v: string) => boolean;
|
|
4276
4281
|
default: string;
|
|
4277
4282
|
};
|
|
4278
|
-
|
|
4283
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
4279
4284
|
width: {
|
|
4280
4285
|
type: NumberConstructor;
|
|
4281
4286
|
};
|
|
@@ -4323,6 +4328,10 @@ export declare const Components: {
|
|
|
4323
4328
|
type: BooleanConstructor;
|
|
4324
4329
|
default: boolean;
|
|
4325
4330
|
};
|
|
4331
|
+
border: {
|
|
4332
|
+
type: BooleanConstructor;
|
|
4333
|
+
default: boolean;
|
|
4334
|
+
};
|
|
4326
4335
|
onOk: {
|
|
4327
4336
|
type: FunctionConstructor;
|
|
4328
4337
|
};
|
|
@@ -4342,6 +4351,7 @@ export declare const Components: {
|
|
|
4342
4351
|
mask: boolean;
|
|
4343
4352
|
modelValue: boolean;
|
|
4344
4353
|
closable: boolean;
|
|
4354
|
+
border: boolean;
|
|
4345
4355
|
content: string | ((props: Record<string, unknown>, context: SetupContext) => any);
|
|
4346
4356
|
maskClosable: boolean;
|
|
4347
4357
|
scrollable: boolean;
|
|
@@ -4372,7 +4382,7 @@ export declare const Components: {
|
|
|
4372
4382
|
validator: (v: string) => boolean;
|
|
4373
4383
|
default: string;
|
|
4374
4384
|
};
|
|
4375
|
-
|
|
4385
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
4376
4386
|
width: {
|
|
4377
4387
|
type: NumberConstructor;
|
|
4378
4388
|
};
|
|
@@ -4420,6 +4430,10 @@ export declare const Components: {
|
|
|
4420
4430
|
type: BooleanConstructor;
|
|
4421
4431
|
default: boolean;
|
|
4422
4432
|
};
|
|
4433
|
+
border: {
|
|
4434
|
+
type: BooleanConstructor;
|
|
4435
|
+
default: boolean;
|
|
4436
|
+
};
|
|
4423
4437
|
onOk: {
|
|
4424
4438
|
type: FunctionConstructor;
|
|
4425
4439
|
};
|
|
@@ -4439,6 +4453,7 @@ export declare const Components: {
|
|
|
4439
4453
|
mask: boolean;
|
|
4440
4454
|
modelValue: boolean;
|
|
4441
4455
|
closable: boolean;
|
|
4456
|
+
border: boolean;
|
|
4442
4457
|
content: string | ((props: Record<string, unknown>, context: SetupContext) => any);
|
|
4443
4458
|
maskClosable: boolean;
|
|
4444
4459
|
scrollable: boolean;
|
|
@@ -4455,6 +4470,7 @@ export declare const Components: {
|
|
|
4455
4470
|
mask: boolean;
|
|
4456
4471
|
modelValue: boolean;
|
|
4457
4472
|
closable: boolean;
|
|
4473
|
+
border: boolean;
|
|
4458
4474
|
content: string | ((props: Record<string, unknown>, context: SetupContext) => any);
|
|
4459
4475
|
maskClosable: boolean;
|
|
4460
4476
|
scrollable: boolean;
|
|
@@ -4467,10 +4483,10 @@ export declare const Components: {
|
|
|
4467
4483
|
title?: string | undefined;
|
|
4468
4484
|
mode?: "error" | "success" | "info" | "warning" | undefined;
|
|
4469
4485
|
onCancel?: Function | undefined;
|
|
4470
|
-
portalClass?: string | Record<string, any> | undefined;
|
|
4471
4486
|
width?: number | undefined;
|
|
4472
4487
|
wrapperStyle?: string | Record<string, any> | undefined;
|
|
4473
4488
|
onOk?: Function | undefined;
|
|
4489
|
+
contentClass?: string | Record<string, any> | undefined;
|
|
4474
4490
|
} & {
|
|
4475
4491
|
onClose: (...args: any[]) => any;
|
|
4476
4492
|
}>) => PortalLeaf;
|
|
@@ -4480,6 +4496,7 @@ export declare const Components: {
|
|
|
4480
4496
|
mask: boolean;
|
|
4481
4497
|
modelValue: boolean;
|
|
4482
4498
|
closable: boolean;
|
|
4499
|
+
border: boolean;
|
|
4483
4500
|
content: string | ((props: Record<string, unknown>, context: SetupContext) => any);
|
|
4484
4501
|
maskClosable: boolean;
|
|
4485
4502
|
scrollable: boolean;
|
|
@@ -4492,10 +4509,10 @@ export declare const Components: {
|
|
|
4492
4509
|
title?: string | undefined;
|
|
4493
4510
|
mode?: "error" | "success" | "info" | "warning" | undefined;
|
|
4494
4511
|
onCancel?: Function | undefined;
|
|
4495
|
-
portalClass?: string | Record<string, any> | undefined;
|
|
4496
4512
|
width?: number | undefined;
|
|
4497
4513
|
wrapperStyle?: string | Record<string, any> | undefined;
|
|
4498
4514
|
onOk?: Function | undefined;
|
|
4515
|
+
contentClass?: string | Record<string, any> | undefined;
|
|
4499
4516
|
} & {
|
|
4500
4517
|
onClose: (...args: any[]) => any;
|
|
4501
4518
|
}>) => PortalLeaf;
|
|
@@ -4505,6 +4522,7 @@ export declare const Components: {
|
|
|
4505
4522
|
mask: boolean;
|
|
4506
4523
|
modelValue: boolean;
|
|
4507
4524
|
closable: boolean;
|
|
4525
|
+
border: boolean;
|
|
4508
4526
|
content: string | ((props: Record<string, unknown>, context: SetupContext) => any);
|
|
4509
4527
|
maskClosable: boolean;
|
|
4510
4528
|
scrollable: boolean;
|
|
@@ -4517,10 +4535,10 @@ export declare const Components: {
|
|
|
4517
4535
|
title?: string | undefined;
|
|
4518
4536
|
mode?: "error" | "success" | "info" | "warning" | undefined;
|
|
4519
4537
|
onCancel?: Function | undefined;
|
|
4520
|
-
portalClass?: string | Record<string, any> | undefined;
|
|
4521
4538
|
width?: number | undefined;
|
|
4522
4539
|
wrapperStyle?: string | Record<string, any> | undefined;
|
|
4523
4540
|
onOk?: Function | undefined;
|
|
4541
|
+
contentClass?: string | Record<string, any> | undefined;
|
|
4524
4542
|
} & {
|
|
4525
4543
|
onClose: (...args: any[]) => any;
|
|
4526
4544
|
}>) => PortalLeaf;
|
|
@@ -4530,6 +4548,7 @@ export declare const Components: {
|
|
|
4530
4548
|
mask: boolean;
|
|
4531
4549
|
modelValue: boolean;
|
|
4532
4550
|
closable: boolean;
|
|
4551
|
+
border: boolean;
|
|
4533
4552
|
content: string | ((props: Record<string, unknown>, context: SetupContext) => any);
|
|
4534
4553
|
maskClosable: boolean;
|
|
4535
4554
|
scrollable: boolean;
|
|
@@ -4542,10 +4561,10 @@ export declare const Components: {
|
|
|
4542
4561
|
title?: string | undefined;
|
|
4543
4562
|
mode?: "error" | "success" | "info" | "warning" | undefined;
|
|
4544
4563
|
onCancel?: Function | undefined;
|
|
4545
|
-
portalClass?: string | Record<string, any> | undefined;
|
|
4546
4564
|
width?: number | undefined;
|
|
4547
4565
|
wrapperStyle?: string | Record<string, any> | undefined;
|
|
4548
4566
|
onOk?: Function | undefined;
|
|
4567
|
+
contentClass?: string | Record<string, any> | undefined;
|
|
4549
4568
|
} & {
|
|
4550
4569
|
onClose: (...args: any[]) => any;
|
|
4551
4570
|
}>) => PortalLeaf;
|
|
@@ -4569,7 +4588,7 @@ export declare const Components: {
|
|
|
4569
4588
|
validator: (v: string) => boolean;
|
|
4570
4589
|
default: string;
|
|
4571
4590
|
};
|
|
4572
|
-
|
|
4591
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
4573
4592
|
width: {
|
|
4574
4593
|
type: NumberConstructor;
|
|
4575
4594
|
};
|
|
@@ -4617,6 +4636,10 @@ export declare const Components: {
|
|
|
4617
4636
|
type: BooleanConstructor;
|
|
4618
4637
|
default: boolean;
|
|
4619
4638
|
};
|
|
4639
|
+
border: {
|
|
4640
|
+
type: BooleanConstructor;
|
|
4641
|
+
default: boolean;
|
|
4642
|
+
};
|
|
4620
4643
|
onOk: {
|
|
4621
4644
|
type: FunctionConstructor;
|
|
4622
4645
|
};
|
|
@@ -4641,7 +4664,7 @@ export declare const Components: {
|
|
|
4641
4664
|
validator: (v: string) => boolean;
|
|
4642
4665
|
default: string;
|
|
4643
4666
|
};
|
|
4644
|
-
|
|
4667
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
4645
4668
|
width: {
|
|
4646
4669
|
type: NumberConstructor;
|
|
4647
4670
|
};
|
|
@@ -4689,6 +4712,10 @@ export declare const Components: {
|
|
|
4689
4712
|
type: BooleanConstructor;
|
|
4690
4713
|
default: boolean;
|
|
4691
4714
|
};
|
|
4715
|
+
border: {
|
|
4716
|
+
type: BooleanConstructor;
|
|
4717
|
+
default: boolean;
|
|
4718
|
+
};
|
|
4692
4719
|
onOk: {
|
|
4693
4720
|
type: FunctionConstructor;
|
|
4694
4721
|
};
|
|
@@ -4708,6 +4735,7 @@ export declare const Components: {
|
|
|
4708
4735
|
mask: boolean;
|
|
4709
4736
|
modelValue: boolean;
|
|
4710
4737
|
closable: boolean;
|
|
4738
|
+
border: boolean;
|
|
4711
4739
|
content: string | ((props: Record<string, unknown>, context: SetupContext) => any);
|
|
4712
4740
|
maskClosable: boolean;
|
|
4713
4741
|
scrollable: boolean;
|
package/dist/index.iife.js
CHANGED
|
@@ -33841,7 +33841,7 @@ var Vc = (function (exports, vue) {
|
|
|
33841
33841
|
validator: (v) => /(small|medium|large)/.test(v),
|
|
33842
33842
|
default: "small"
|
|
33843
33843
|
},
|
|
33844
|
-
|
|
33844
|
+
contentClass: [Object, String],
|
|
33845
33845
|
width: {
|
|
33846
33846
|
type: Number
|
|
33847
33847
|
},
|
|
@@ -33890,6 +33890,10 @@ var Vc = (function (exports, vue) {
|
|
|
33890
33890
|
type: Boolean,
|
|
33891
33891
|
default: true
|
|
33892
33892
|
},
|
|
33893
|
+
border: {
|
|
33894
|
+
type: Boolean,
|
|
33895
|
+
default: false
|
|
33896
|
+
},
|
|
33893
33897
|
/**
|
|
33894
33898
|
* 兼容portal设计, 实现Promise方式
|
|
33895
33899
|
*/
|
|
@@ -34142,7 +34146,8 @@ var Vc = (function (exports, vue) {
|
|
|
34142
34146
|
"class": [{
|
|
34143
34147
|
"is-drag": props2.draggable,
|
|
34144
34148
|
"is-large": props2.size === "large" || props2.size === "medium",
|
|
34145
|
-
"
|
|
34149
|
+
"has-footer": props2.footer && (props2.cancelText || props2.okText),
|
|
34150
|
+
"has-border": props2.border
|
|
34146
34151
|
}, "vc-modal__container"],
|
|
34147
34152
|
"style": [basicStyle.value, draggableStyle.value]
|
|
34148
34153
|
}, [vue.createVNode("div", {
|
|
@@ -34174,7 +34179,7 @@ var Vc = (function (exports, vue) {
|
|
|
34174
34179
|
"height": isTransitionEnd.value ? row.height : void 0,
|
|
34175
34180
|
"contentClass": [{
|
|
34176
34181
|
"is-confirm": props2.mode
|
|
34177
|
-
}, props2.
|
|
34182
|
+
}, props2.contentClass, "vc-modal__content"]
|
|
34178
34183
|
}, {
|
|
34179
34184
|
default: () => [typeof props2.content === "string" ? vue.createVNode("div", {
|
|
34180
34185
|
"innerHTML": props2.content
|
|
@@ -39105,7 +39110,8 @@ var Vc = (function (exports, vue) {
|
|
|
39105
39110
|
};
|
|
39106
39111
|
}
|
|
39107
39112
|
return {
|
|
39108
|
-
height: layout.states.viewportHeight ? layout.states.viewportHeight + "px" : ""
|
|
39113
|
+
height: layout.states.viewportHeight ? layout.states.viewportHeight + "px" : "",
|
|
39114
|
+
bottom: 0
|
|
39109
39115
|
};
|
|
39110
39116
|
}
|
|
39111
39117
|
});
|
|
@@ -39392,7 +39398,9 @@ var Vc = (function (exports, vue) {
|
|
|
39392
39398
|
}, null), props2.data.length === 0 && vue.createVNode("div", {
|
|
39393
39399
|
"ref": emptyBlock,
|
|
39394
39400
|
"style": bodyWidthStyle.value,
|
|
39395
|
-
"class":
|
|
39401
|
+
"class": [{
|
|
39402
|
+
"is-absolute": !!props2.height
|
|
39403
|
+
}, "vc-table__empty-wrapper"]
|
|
39396
39404
|
}, [vue.createVNode("span", {
|
|
39397
39405
|
"class": "vc-table__empty-text"
|
|
39398
39406
|
}, [slots.empty ? slots.empty() : props2.emptyText || "暂无数据"])]), slots.append && vue.createVNode("div", {
|
|
@@ -40079,7 +40087,7 @@ var Vc = (function (exports, vue) {
|
|
|
40079
40087
|
if (!Array.from(items).length) return;
|
|
40080
40088
|
let offset = 0;
|
|
40081
40089
|
if (index > 0) {
|
|
40082
|
-
const gutter =
|
|
40090
|
+
const gutter = 12;
|
|
40083
40091
|
for (let i = 0; i < index; i++) {
|
|
40084
40092
|
offset += parseFloat(items[i].offsetWidth) + gutter;
|
|
40085
40093
|
}
|
|
@@ -40143,7 +40151,7 @@ var Vc = (function (exports, vue) {
|
|
|
40143
40151
|
}, [slots.extra?.()]), vue.createVNode("div", {
|
|
40144
40152
|
"ref": wrapper,
|
|
40145
40153
|
"style": {
|
|
40146
|
-
padding: tabs.scrollable.value
|
|
40154
|
+
padding: tabs.scrollable.value ? "0 24px" : 0
|
|
40147
40155
|
},
|
|
40148
40156
|
"class": "vc-tabs__bar"
|
|
40149
40157
|
}, [tabs.scrollable.value && vue.createVNode(Icon, {
|
package/dist/index.umd.cjs
CHANGED
|
@@ -33844,7 +33844,7 @@
|
|
|
33844
33844
|
validator: (v) => /(small|medium|large)/.test(v),
|
|
33845
33845
|
default: "small"
|
|
33846
33846
|
},
|
|
33847
|
-
|
|
33847
|
+
contentClass: [Object, String],
|
|
33848
33848
|
width: {
|
|
33849
33849
|
type: Number
|
|
33850
33850
|
},
|
|
@@ -33893,6 +33893,10 @@
|
|
|
33893
33893
|
type: Boolean,
|
|
33894
33894
|
default: true
|
|
33895
33895
|
},
|
|
33896
|
+
border: {
|
|
33897
|
+
type: Boolean,
|
|
33898
|
+
default: false
|
|
33899
|
+
},
|
|
33896
33900
|
/**
|
|
33897
33901
|
* 兼容portal设计, 实现Promise方式
|
|
33898
33902
|
*/
|
|
@@ -34145,7 +34149,8 @@
|
|
|
34145
34149
|
"class": [{
|
|
34146
34150
|
"is-drag": props2.draggable,
|
|
34147
34151
|
"is-large": props2.size === "large" || props2.size === "medium",
|
|
34148
|
-
"
|
|
34152
|
+
"has-footer": props2.footer && (props2.cancelText || props2.okText),
|
|
34153
|
+
"has-border": props2.border
|
|
34149
34154
|
}, "vc-modal__container"],
|
|
34150
34155
|
"style": [basicStyle.value, draggableStyle.value]
|
|
34151
34156
|
}, [vue.createVNode("div", {
|
|
@@ -34177,7 +34182,7 @@
|
|
|
34177
34182
|
"height": isTransitionEnd.value ? row.height : void 0,
|
|
34178
34183
|
"contentClass": [{
|
|
34179
34184
|
"is-confirm": props2.mode
|
|
34180
|
-
}, props2.
|
|
34185
|
+
}, props2.contentClass, "vc-modal__content"]
|
|
34181
34186
|
}, {
|
|
34182
34187
|
default: () => [typeof props2.content === "string" ? vue.createVNode("div", {
|
|
34183
34188
|
"innerHTML": props2.content
|
|
@@ -39108,7 +39113,8 @@
|
|
|
39108
39113
|
};
|
|
39109
39114
|
}
|
|
39110
39115
|
return {
|
|
39111
|
-
height: layout.states.viewportHeight ? layout.states.viewportHeight + "px" : ""
|
|
39116
|
+
height: layout.states.viewportHeight ? layout.states.viewportHeight + "px" : "",
|
|
39117
|
+
bottom: 0
|
|
39112
39118
|
};
|
|
39113
39119
|
}
|
|
39114
39120
|
});
|
|
@@ -39395,7 +39401,9 @@
|
|
|
39395
39401
|
}, null), props2.data.length === 0 && vue.createVNode("div", {
|
|
39396
39402
|
"ref": emptyBlock,
|
|
39397
39403
|
"style": bodyWidthStyle.value,
|
|
39398
|
-
"class":
|
|
39404
|
+
"class": [{
|
|
39405
|
+
"is-absolute": !!props2.height
|
|
39406
|
+
}, "vc-table__empty-wrapper"]
|
|
39399
39407
|
}, [vue.createVNode("span", {
|
|
39400
39408
|
"class": "vc-table__empty-text"
|
|
39401
39409
|
}, [slots.empty ? slots.empty() : props2.emptyText || "暂无数据"])]), slots.append && vue.createVNode("div", {
|
|
@@ -40082,7 +40090,7 @@
|
|
|
40082
40090
|
if (!Array.from(items).length) return;
|
|
40083
40091
|
let offset = 0;
|
|
40084
40092
|
if (index > 0) {
|
|
40085
|
-
const gutter =
|
|
40093
|
+
const gutter = 12;
|
|
40086
40094
|
for (let i = 0; i < index; i++) {
|
|
40087
40095
|
offset += parseFloat(items[i].offsetWidth) + gutter;
|
|
40088
40096
|
}
|
|
@@ -40146,7 +40154,7 @@
|
|
|
40146
40154
|
}, [slots.extra?.()]), vue.createVNode("div", {
|
|
40147
40155
|
"ref": wrapper,
|
|
40148
40156
|
"style": {
|
|
40149
|
-
padding: tabs.scrollable.value
|
|
40157
|
+
padding: tabs.scrollable.value ? "0 24px" : 0
|
|
40150
40158
|
},
|
|
40151
40159
|
"class": "vc-tabs__bar"
|
|
40152
40160
|
}, [tabs.scrollable.value && vue.createVNode(Icon, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deot/vc",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@deot/vc-components": "^1.0.
|
|
23
|
-
"@deot/vc-hooks": "^1.0.
|
|
24
|
-
"@deot/vc-shared": "^1.0.
|
|
22
|
+
"@deot/vc-components": "^1.0.14",
|
|
23
|
+
"@deot/vc-hooks": "^1.0.14",
|
|
24
|
+
"@deot/vc-shared": "^1.0.14"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"vue": "*"
|