@deot/vc-components 1.0.23 → 1.0.24
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.cjs +42 -17
- package/dist/index.d.ts +70 -4
- package/dist/index.iife.js +42 -17
- package/dist/index.js +42 -17
- package/dist/index.style.css +1 -1
- package/dist/index.umd.cjs +42 -17
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8501,7 +8501,7 @@ const props$P = {
|
|
|
8501
8501
|
},
|
|
8502
8502
|
width: {
|
|
8503
8503
|
type: Number,
|
|
8504
|
-
default:
|
|
8504
|
+
default: 600
|
|
8505
8505
|
},
|
|
8506
8506
|
height: {
|
|
8507
8507
|
type: Number,
|
|
@@ -8527,6 +8527,8 @@ const props$P = {
|
|
|
8527
8527
|
maskStyle: [Object, String],
|
|
8528
8528
|
wrapperClass: [Object, String],
|
|
8529
8529
|
wrapperStyle: [Object, String],
|
|
8530
|
+
contentStyle: [Object, String],
|
|
8531
|
+
contentClass: [Object, String],
|
|
8530
8532
|
closeWithCancel: {
|
|
8531
8533
|
type: Boolean,
|
|
8532
8534
|
default: true
|
|
@@ -8686,7 +8688,8 @@ const DrawerView = /* @__PURE__ */ vue.defineComponent({
|
|
|
8686
8688
|
"class": "vc-drawer__content-container"
|
|
8687
8689
|
}, [vue.createVNode(Scroller, {
|
|
8688
8690
|
"native": false,
|
|
8689
|
-
"contentClass":
|
|
8691
|
+
"contentClass": [props.contentClass, 'vc-drawer__content'],
|
|
8692
|
+
"contentStyle": props.contentStyle
|
|
8690
8693
|
}, {
|
|
8691
8694
|
default: () => [typeof props.content === 'string' ? vue.createVNode("div", {
|
|
8692
8695
|
"innerHTML": props.content
|
|
@@ -8978,7 +8981,10 @@ const props$L = {
|
|
|
8978
8981
|
type: String,
|
|
8979
8982
|
default: "right"
|
|
8980
8983
|
},
|
|
8981
|
-
contentStyle: String
|
|
8984
|
+
contentStyle: [Object, String],
|
|
8985
|
+
contentClass: [Object, String],
|
|
8986
|
+
labelStyle: [Object, String],
|
|
8987
|
+
labelClass: [Object, String]
|
|
8982
8988
|
};
|
|
8983
8989
|
|
|
8984
8990
|
const filterEmpty = (val) => {
|
|
@@ -9053,10 +9059,13 @@ const useFormItem = (expose) => {
|
|
|
9053
9059
|
});
|
|
9054
9060
|
const labelStyle = vue.computed(() => {
|
|
9055
9061
|
const labelWidth = props.labelWidth === 0 || props.labelWidth ? props.labelWidth : isNest.value ? 0 : form.props.labelWidth;
|
|
9056
|
-
return
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9062
|
+
return [
|
|
9063
|
+
{
|
|
9064
|
+
width: labelPosition.value !== "top" && labelWidth && labelWidth > 0 ? `${labelWidth}px` : "auto",
|
|
9065
|
+
textAlign: labelPosition.value === "top" ? "left" : labelPosition.value
|
|
9066
|
+
},
|
|
9067
|
+
props.labelStyle
|
|
9068
|
+
];
|
|
9060
9069
|
});
|
|
9061
9070
|
const contentStyle = vue.computed(() => {
|
|
9062
9071
|
const labelWidth = props.labelWidth === 0 || props.labelWidth ? props.labelWidth : form.props.labelWidth;
|
|
@@ -9268,14 +9277,14 @@ const FormItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
9268
9277
|
})];
|
|
9269
9278
|
return vue.createVNode("div", {
|
|
9270
9279
|
"class": ['vc-form-item', classes.value]
|
|
9271
|
-
}, [vue.createVNode("div", {
|
|
9280
|
+
}, [(label || slots.label) && vue.createVNode("div", {
|
|
9272
9281
|
"style": labelStyle.value,
|
|
9273
|
-
"class":
|
|
9282
|
+
"class": ['vc-form-item__label', props.labelClass],
|
|
9274
9283
|
"for": labelFor
|
|
9275
9284
|
}, [vue.createVNode("label", null, [label || slots.label?.()])]), vue.createVNode("div", {
|
|
9276
9285
|
"class": "vc-form-item__wrapper"
|
|
9277
9286
|
}, [vue.createVNode("div", {
|
|
9278
|
-
"class":
|
|
9287
|
+
"class": ['vc-form-item__content', props.contentClass],
|
|
9279
9288
|
"style": contentStyle.value
|
|
9280
9289
|
}, [slots.default?.(), slots.error ? slots.error({
|
|
9281
9290
|
show: showError.value,
|
|
@@ -10308,10 +10317,14 @@ const props$z = {
|
|
|
10308
10317
|
validator: (v) => /(small|medium|large)/.test(v),
|
|
10309
10318
|
default: "small"
|
|
10310
10319
|
},
|
|
10320
|
+
contentStyle: [Object, String],
|
|
10311
10321
|
contentClass: [Object, String],
|
|
10312
10322
|
width: {
|
|
10313
10323
|
type: Number
|
|
10314
10324
|
},
|
|
10325
|
+
height: {
|
|
10326
|
+
type: Number
|
|
10327
|
+
},
|
|
10315
10328
|
mask: {
|
|
10316
10329
|
type: Boolean,
|
|
10317
10330
|
default: true
|
|
@@ -10403,6 +10416,9 @@ const ModalView = /* @__PURE__ */ vue.defineComponent({
|
|
|
10403
10416
|
const x = vue.ref(0);
|
|
10404
10417
|
const y = vue.ref(0);
|
|
10405
10418
|
const isActive = vue.ref(false);
|
|
10419
|
+
|
|
10420
|
+
// 注: 服务端渲染为0, 在客服端激活前,展示端存在问题【高度不定】
|
|
10421
|
+
const MAX_HEIGHT = vcShared.IS_SERVER ? 0 : window.innerHeight - 20;
|
|
10406
10422
|
const defaultSize = vue.computed(() => {
|
|
10407
10423
|
let width = 0;
|
|
10408
10424
|
let height = 0;
|
|
@@ -10422,16 +10438,20 @@ const ModalView = /* @__PURE__ */ vue.defineComponent({
|
|
|
10422
10438
|
}
|
|
10423
10439
|
return {
|
|
10424
10440
|
width: props.width || width,
|
|
10425
|
-
height
|
|
10441
|
+
height: Math.min(props.height || height, MAX_HEIGHT)
|
|
10426
10442
|
};
|
|
10427
10443
|
});
|
|
10428
10444
|
const basicStyle = vue.computed(() => {
|
|
10429
|
-
|
|
10445
|
+
const result = {
|
|
10430
10446
|
width: `${defaultSize.value.width}px`,
|
|
10431
|
-
|
|
10432
|
-
// 注: 服务端渲染为0, 在客服端激活前,展示端存在问题【高度不定】
|
|
10433
|
-
maxHeight: vcShared.IS_SERVER ? 0 : `${window.innerHeight - 20}px`
|
|
10447
|
+
maxHeight: `${MAX_HEIGHT}px`
|
|
10434
10448
|
};
|
|
10449
|
+
if (props.height) {
|
|
10450
|
+
result.height = `${defaultSize.value.height}px`;
|
|
10451
|
+
} else {
|
|
10452
|
+
result.minHeight = `${defaultSize.value.height}px`;
|
|
10453
|
+
}
|
|
10454
|
+
return result;
|
|
10435
10455
|
});
|
|
10436
10456
|
const draggableStyle = vue.computed(() => {
|
|
10437
10457
|
if (vcShared.IS_SERVER || !props.draggable) return {};
|
|
@@ -10554,6 +10574,7 @@ const ModalView = /* @__PURE__ */ vue.defineComponent({
|
|
|
10554
10574
|
* container在最大值时,需要移除,宽度才会缩回去
|
|
10555
10575
|
*/
|
|
10556
10576
|
const handleContentResize = () => {
|
|
10577
|
+
if (props.height) return;
|
|
10557
10578
|
const needRefreshScroller = !!scroller.value.wrapper.style.getPropertyValue('height');
|
|
10558
10579
|
const needRefreshContainer = !!container.value.style.getPropertyValue('height');
|
|
10559
10580
|
needRefreshContainer && container.value.style.removeProperty('height');
|
|
@@ -10699,7 +10720,8 @@ const ModalView = /* @__PURE__ */ vue.defineComponent({
|
|
|
10699
10720
|
"height": isTransitionEnd.value ? row.height : void 0,
|
|
10700
10721
|
"contentClass": [{
|
|
10701
10722
|
'is-confirm': props.mode
|
|
10702
|
-
}, props.contentClass, 'vc-modal__content']
|
|
10723
|
+
}, props.contentClass, 'vc-modal__content'],
|
|
10724
|
+
"contentStyle": props.contentStyle
|
|
10703
10725
|
}, {
|
|
10704
10726
|
default: () => [typeof props.content === 'string' ? vue.createVNode("div", {
|
|
10705
10727
|
"innerHTML": props.content
|
|
@@ -15638,6 +15660,8 @@ const props$c = {
|
|
|
15638
15660
|
stripe: Boolean,
|
|
15639
15661
|
// 是否带有纵向边框
|
|
15640
15662
|
border: Boolean,
|
|
15663
|
+
// 是否分割线
|
|
15664
|
+
divider: Boolean,
|
|
15641
15665
|
// 非常影响表格虚拟滚动的性能,按容器的高度手动优化该值
|
|
15642
15666
|
// 后续考虑移除,动态计算
|
|
15643
15667
|
rows: {
|
|
@@ -15778,6 +15802,7 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
15778
15802
|
'vc-table--fit': props.fit,
|
|
15779
15803
|
'vc-table--striped': props.stripe,
|
|
15780
15804
|
'vc-table--border': props.border || states.isGroup,
|
|
15805
|
+
'vc-table--divider': props.border || props.divider,
|
|
15781
15806
|
'vc-table--group': states.isGroup,
|
|
15782
15807
|
'vc-table--fluid-height': props.maxHeight,
|
|
15783
15808
|
'vc-table--scrollable-x': layout.states.scrollX,
|
|
@@ -16562,7 +16587,7 @@ const defaultRenderCell = (rowData = {}) => {
|
|
|
16562
16587
|
}
|
|
16563
16588
|
const line = column.line || VcInstance.options.TableColumn?.line;
|
|
16564
16589
|
if (line && value) {
|
|
16565
|
-
const base = rowData.isHead || rowData.isTail ?
|
|
16590
|
+
const base = rowData.isHead || rowData.isTail ? 36 : 24; // 目前gap是12
|
|
16566
16591
|
const style = {
|
|
16567
16592
|
// 目前左右pading为10
|
|
16568
16593
|
// TODO: 含有border还要-1
|
package/dist/index.d.ts
CHANGED
|
@@ -860,6 +860,8 @@ export declare const Drawer: {
|
|
|
860
860
|
maskStyle: (ObjectConstructor | StringConstructor)[];
|
|
861
861
|
wrapperClass: (ObjectConstructor | StringConstructor)[];
|
|
862
862
|
wrapperStyle: (ObjectConstructor | StringConstructor)[];
|
|
863
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
864
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
863
865
|
closeWithCancel: {
|
|
864
866
|
type: BooleanConstructor;
|
|
865
867
|
default: boolean;
|
|
@@ -953,6 +955,8 @@ export declare const Drawer: {
|
|
|
953
955
|
maskStyle: (ObjectConstructor | StringConstructor)[];
|
|
954
956
|
wrapperClass: (ObjectConstructor | StringConstructor)[];
|
|
955
957
|
wrapperStyle: (ObjectConstructor | StringConstructor)[];
|
|
958
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
959
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
956
960
|
closeWithCancel: {
|
|
957
961
|
type: BooleanConstructor;
|
|
958
962
|
default: boolean;
|
|
@@ -1043,6 +1047,8 @@ default: string;
|
|
|
1043
1047
|
maskStyle: (ObjectConstructor | StringConstructor)[];
|
|
1044
1048
|
wrapperClass: (ObjectConstructor | StringConstructor)[];
|
|
1045
1049
|
wrapperStyle: (ObjectConstructor | StringConstructor)[];
|
|
1050
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
1051
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
1046
1052
|
closeWithCancel: {
|
|
1047
1053
|
type: BooleanConstructor;
|
|
1048
1054
|
default: boolean;
|
|
@@ -1134,6 +1140,8 @@ default: string;
|
|
|
1134
1140
|
maskStyle: (ObjectConstructor | StringConstructor)[];
|
|
1135
1141
|
wrapperClass: (ObjectConstructor | StringConstructor)[];
|
|
1136
1142
|
wrapperStyle: (ObjectConstructor | StringConstructor)[];
|
|
1143
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
1144
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
1137
1145
|
closeWithCancel: {
|
|
1138
1146
|
type: BooleanConstructor;
|
|
1139
1147
|
default: boolean;
|
|
@@ -1201,6 +1209,8 @@ default: string;
|
|
|
1201
1209
|
maskStyle: (ObjectConstructor | StringConstructor)[];
|
|
1202
1210
|
wrapperClass: (ObjectConstructor | StringConstructor)[];
|
|
1203
1211
|
wrapperStyle: (ObjectConstructor | StringConstructor)[];
|
|
1212
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
1213
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
1204
1214
|
closeWithCancel: {
|
|
1205
1215
|
type: BooleanConstructor;
|
|
1206
1216
|
default: boolean;
|
|
@@ -1435,7 +1445,10 @@ labelPosition: {
|
|
|
1435
1445
|
type: PropType<"left" | "right" | "top">;
|
|
1436
1446
|
default: string;
|
|
1437
1447
|
};
|
|
1438
|
-
contentStyle: StringConstructor;
|
|
1448
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
1449
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
1450
|
+
labelStyle: (ObjectConstructor | StringConstructor)[];
|
|
1451
|
+
labelClass: (ObjectConstructor | StringConstructor)[];
|
|
1439
1452
|
}>, () => JSX_2.Element | (VNode<RendererNode, RendererElement, {
|
|
1440
1453
|
[key: string]: any;
|
|
1441
1454
|
}>[] | undefined)[], {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
@@ -1482,7 +1495,10 @@ labelPosition: {
|
|
|
1482
1495
|
type: PropType<"left" | "right" | "top">;
|
|
1483
1496
|
default: string;
|
|
1484
1497
|
};
|
|
1485
|
-
contentStyle: StringConstructor;
|
|
1498
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
1499
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
1500
|
+
labelStyle: (ObjectConstructor | StringConstructor)[];
|
|
1501
|
+
labelClass: (ObjectConstructor | StringConstructor)[];
|
|
1486
1502
|
}>> & Readonly<{}>, {
|
|
1487
1503
|
label: string;
|
|
1488
1504
|
styleless: boolean;
|
|
@@ -2904,6 +2920,8 @@ export declare const MDrawer: {
|
|
|
2904
2920
|
maskStyle: (ObjectConstructor | StringConstructor)[];
|
|
2905
2921
|
wrapperClass: (ObjectConstructor | StringConstructor)[];
|
|
2906
2922
|
wrapperStyle: (ObjectConstructor | StringConstructor)[];
|
|
2923
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
2924
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
2907
2925
|
closeWithCancel: {
|
|
2908
2926
|
type: BooleanConstructor;
|
|
2909
2927
|
default: boolean;
|
|
@@ -2997,6 +3015,8 @@ export declare const MDrawer: {
|
|
|
2997
3015
|
maskStyle: (ObjectConstructor | StringConstructor)[];
|
|
2998
3016
|
wrapperClass: (ObjectConstructor | StringConstructor)[];
|
|
2999
3017
|
wrapperStyle: (ObjectConstructor | StringConstructor)[];
|
|
3018
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
3019
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
3000
3020
|
closeWithCancel: {
|
|
3001
3021
|
type: BooleanConstructor;
|
|
3002
3022
|
default: boolean;
|
|
@@ -3087,6 +3107,8 @@ default: string;
|
|
|
3087
3107
|
maskStyle: (ObjectConstructor | StringConstructor)[];
|
|
3088
3108
|
wrapperClass: (ObjectConstructor | StringConstructor)[];
|
|
3089
3109
|
wrapperStyle: (ObjectConstructor | StringConstructor)[];
|
|
3110
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
3111
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
3090
3112
|
closeWithCancel: {
|
|
3091
3113
|
type: BooleanConstructor;
|
|
3092
3114
|
default: boolean;
|
|
@@ -3158,6 +3180,8 @@ cancelDisabled: boolean;
|
|
|
3158
3180
|
wrapperStyle?: string | Record<string, any> | undefined;
|
|
3159
3181
|
onOk?: Function | undefined;
|
|
3160
3182
|
wrapperClass?: string | Record<string, any> | undefined;
|
|
3183
|
+
contentStyle?: string | Record<string, any> | undefined;
|
|
3184
|
+
contentClass?: string | Record<string, any> | undefined;
|
|
3161
3185
|
maskStyle?: string | Record<string, any> | undefined;
|
|
3162
3186
|
} & {
|
|
3163
3187
|
onClose: (...args: any[]) => any;
|
|
@@ -3202,6 +3226,8 @@ default: string;
|
|
|
3202
3226
|
maskStyle: (ObjectConstructor | StringConstructor)[];
|
|
3203
3227
|
wrapperClass: (ObjectConstructor | StringConstructor)[];
|
|
3204
3228
|
wrapperStyle: (ObjectConstructor | StringConstructor)[];
|
|
3229
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
3230
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
3205
3231
|
closeWithCancel: {
|
|
3206
3232
|
type: BooleanConstructor;
|
|
3207
3233
|
default: boolean;
|
|
@@ -3269,6 +3295,8 @@ default: string;
|
|
|
3269
3295
|
maskStyle: (ObjectConstructor | StringConstructor)[];
|
|
3270
3296
|
wrapperClass: (ObjectConstructor | StringConstructor)[];
|
|
3271
3297
|
wrapperStyle: (ObjectConstructor | StringConstructor)[];
|
|
3298
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
3299
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
3272
3300
|
closeWithCancel: {
|
|
3273
3301
|
type: BooleanConstructor;
|
|
3274
3302
|
default: boolean;
|
|
@@ -3756,7 +3784,10 @@ labelPosition: {
|
|
|
3756
3784
|
type: PropType<"left" | "right" | "top">;
|
|
3757
3785
|
default: string;
|
|
3758
3786
|
};
|
|
3759
|
-
contentStyle: StringConstructor;
|
|
3787
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
3788
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
3789
|
+
labelStyle: (ObjectConstructor | StringConstructor)[];
|
|
3790
|
+
labelClass: (ObjectConstructor | StringConstructor)[];
|
|
3760
3791
|
}>, () => JSX_2.Element | (VNode<RendererNode, RendererElement, {
|
|
3761
3792
|
[key: string]: any;
|
|
3762
3793
|
}>[] | undefined)[], {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
@@ -3807,7 +3838,10 @@ labelPosition: {
|
|
|
3807
3838
|
type: PropType<"left" | "right" | "top">;
|
|
3808
3839
|
default: string;
|
|
3809
3840
|
};
|
|
3810
|
-
contentStyle: StringConstructor;
|
|
3841
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
3842
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
3843
|
+
labelStyle: (ObjectConstructor | StringConstructor)[];
|
|
3844
|
+
labelClass: (ObjectConstructor | StringConstructor)[];
|
|
3811
3845
|
}>> & Readonly<{}>, {
|
|
3812
3846
|
label: string;
|
|
3813
3847
|
styleless: boolean;
|
|
@@ -5256,10 +5290,14 @@ export declare const Modal: {
|
|
|
5256
5290
|
validator: (v: string) => boolean;
|
|
5257
5291
|
default: string;
|
|
5258
5292
|
};
|
|
5293
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
5259
5294
|
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
5260
5295
|
width: {
|
|
5261
5296
|
type: NumberConstructor;
|
|
5262
5297
|
};
|
|
5298
|
+
height: {
|
|
5299
|
+
type: NumberConstructor;
|
|
5300
|
+
};
|
|
5263
5301
|
mask: {
|
|
5264
5302
|
type: BooleanConstructor;
|
|
5265
5303
|
default: boolean;
|
|
@@ -5371,10 +5409,14 @@ export declare const Modal: {
|
|
|
5371
5409
|
validator: (v: string) => boolean;
|
|
5372
5410
|
default: string;
|
|
5373
5411
|
};
|
|
5412
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
5374
5413
|
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
5375
5414
|
width: {
|
|
5376
5415
|
type: NumberConstructor;
|
|
5377
5416
|
};
|
|
5417
|
+
height: {
|
|
5418
|
+
type: NumberConstructor;
|
|
5419
|
+
};
|
|
5378
5420
|
mask: {
|
|
5379
5421
|
type: BooleanConstructor;
|
|
5380
5422
|
default: boolean;
|
|
@@ -5483,10 +5525,14 @@ type: PropType<"small" | "medium" | "large">;
|
|
|
5483
5525
|
validator: (v: string) => boolean;
|
|
5484
5526
|
default: string;
|
|
5485
5527
|
};
|
|
5528
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
5486
5529
|
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
5487
5530
|
width: {
|
|
5488
5531
|
type: NumberConstructor;
|
|
5489
5532
|
};
|
|
5533
|
+
height: {
|
|
5534
|
+
type: NumberConstructor;
|
|
5535
|
+
};
|
|
5490
5536
|
mask: {
|
|
5491
5537
|
type: BooleanConstructor;
|
|
5492
5538
|
default: boolean;
|
|
@@ -5599,10 +5645,14 @@ type: PropType<"small" | "medium" | "large">;
|
|
|
5599
5645
|
validator: (v: string) => boolean;
|
|
5600
5646
|
default: string;
|
|
5601
5647
|
};
|
|
5648
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
5602
5649
|
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
5603
5650
|
width: {
|
|
5604
5651
|
type: NumberConstructor;
|
|
5605
5652
|
};
|
|
5653
|
+
height: {
|
|
5654
|
+
type: NumberConstructor;
|
|
5655
|
+
};
|
|
5606
5656
|
mask: {
|
|
5607
5657
|
type: BooleanConstructor;
|
|
5608
5658
|
default: boolean;
|
|
@@ -5683,10 +5733,14 @@ type: PropType<"small" | "medium" | "large">;
|
|
|
5683
5733
|
validator: (v: string) => boolean;
|
|
5684
5734
|
default: string;
|
|
5685
5735
|
};
|
|
5736
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
5686
5737
|
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
5687
5738
|
width: {
|
|
5688
5739
|
type: NumberConstructor;
|
|
5689
5740
|
};
|
|
5741
|
+
height: {
|
|
5742
|
+
type: NumberConstructor;
|
|
5743
|
+
};
|
|
5690
5744
|
mask: {
|
|
5691
5745
|
type: BooleanConstructor;
|
|
5692
5746
|
default: boolean;
|
|
@@ -7039,6 +7093,7 @@ default: boolean;
|
|
|
7039
7093
|
};
|
|
7040
7094
|
stripe: BooleanConstructor;
|
|
7041
7095
|
border: BooleanConstructor;
|
|
7096
|
+
divider: BooleanConstructor;
|
|
7042
7097
|
rows: {
|
|
7043
7098
|
type: NumberConstructor;
|
|
7044
7099
|
default: number;
|
|
@@ -7110,6 +7165,7 @@ default: boolean;
|
|
|
7110
7165
|
};
|
|
7111
7166
|
stripe: BooleanConstructor;
|
|
7112
7167
|
border: BooleanConstructor;
|
|
7168
|
+
divider: BooleanConstructor;
|
|
7113
7169
|
rows: {
|
|
7114
7170
|
type: NumberConstructor;
|
|
7115
7171
|
default: number;
|
|
@@ -7197,6 +7253,7 @@ showHeader: boolean;
|
|
|
7197
7253
|
rows: number;
|
|
7198
7254
|
defaultSort: Record<string, any>;
|
|
7199
7255
|
stripe: boolean;
|
|
7256
|
+
divider: boolean;
|
|
7200
7257
|
showSummary: boolean;
|
|
7201
7258
|
highlight: boolean;
|
|
7202
7259
|
treeMap: Record<string, any>;
|
|
@@ -9501,6 +9558,8 @@ declare const props_2: {
|
|
|
9501
9558
|
maskStyle: (ObjectConstructor | StringConstructor)[];
|
|
9502
9559
|
wrapperClass: (ObjectConstructor | StringConstructor)[];
|
|
9503
9560
|
wrapperStyle: (ObjectConstructor | StringConstructor)[];
|
|
9561
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
9562
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
9504
9563
|
closeWithCancel: {
|
|
9505
9564
|
type: BooleanConstructor;
|
|
9506
9565
|
default: boolean;
|
|
@@ -9627,10 +9686,14 @@ declare const props_5: {
|
|
|
9627
9686
|
validator: (v: string) => boolean;
|
|
9628
9687
|
default: string;
|
|
9629
9688
|
};
|
|
9689
|
+
contentStyle: (ObjectConstructor | StringConstructor)[];
|
|
9630
9690
|
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
9631
9691
|
width: {
|
|
9632
9692
|
type: NumberConstructor;
|
|
9633
9693
|
};
|
|
9694
|
+
height: {
|
|
9695
|
+
type: NumberConstructor;
|
|
9696
|
+
};
|
|
9634
9697
|
mask: {
|
|
9635
9698
|
type: BooleanConstructor;
|
|
9636
9699
|
default: boolean;
|
|
@@ -10791,6 +10854,7 @@ default: boolean;
|
|
|
10791
10854
|
};
|
|
10792
10855
|
stripe: BooleanConstructor;
|
|
10793
10856
|
border: BooleanConstructor;
|
|
10857
|
+
divider: BooleanConstructor;
|
|
10794
10858
|
rows: {
|
|
10795
10859
|
type: NumberConstructor;
|
|
10796
10860
|
default: number;
|
|
@@ -10862,6 +10926,7 @@ default: boolean;
|
|
|
10862
10926
|
};
|
|
10863
10927
|
stripe: BooleanConstructor;
|
|
10864
10928
|
border: BooleanConstructor;
|
|
10929
|
+
divider: BooleanConstructor;
|
|
10865
10930
|
rows: {
|
|
10866
10931
|
type: NumberConstructor;
|
|
10867
10932
|
default: number;
|
|
@@ -10949,6 +11014,7 @@ showHeader: boolean;
|
|
|
10949
11014
|
rows: number;
|
|
10950
11015
|
defaultSort: Record<string, any>;
|
|
10951
11016
|
stripe: boolean;
|
|
11017
|
+
divider: boolean;
|
|
10952
11018
|
showSummary: boolean;
|
|
10953
11019
|
highlight: boolean;
|
|
10954
11020
|
treeMap: Record<string, any>;
|
package/dist/index.iife.js
CHANGED
|
@@ -14697,7 +14697,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
14697
14697
|
},
|
|
14698
14698
|
width: {
|
|
14699
14699
|
type: Number,
|
|
14700
|
-
default:
|
|
14700
|
+
default: 600
|
|
14701
14701
|
},
|
|
14702
14702
|
height: {
|
|
14703
14703
|
type: Number,
|
|
@@ -14723,6 +14723,8 @@ var VcComponents = (function (exports, vue) {
|
|
|
14723
14723
|
maskStyle: [Object, String],
|
|
14724
14724
|
wrapperClass: [Object, String],
|
|
14725
14725
|
wrapperStyle: [Object, String],
|
|
14726
|
+
contentStyle: [Object, String],
|
|
14727
|
+
contentClass: [Object, String],
|
|
14726
14728
|
closeWithCancel: {
|
|
14727
14729
|
type: Boolean,
|
|
14728
14730
|
default: true
|
|
@@ -14882,7 +14884,8 @@ var VcComponents = (function (exports, vue) {
|
|
|
14882
14884
|
"class": "vc-drawer__content-container"
|
|
14883
14885
|
}, [vue.createVNode(Scroller, {
|
|
14884
14886
|
"native": false,
|
|
14885
|
-
"contentClass":
|
|
14887
|
+
"contentClass": [props.contentClass, 'vc-drawer__content'],
|
|
14888
|
+
"contentStyle": props.contentStyle
|
|
14886
14889
|
}, {
|
|
14887
14890
|
default: () => [typeof props.content === 'string' ? vue.createVNode("div", {
|
|
14888
14891
|
"innerHTML": props.content
|
|
@@ -15174,7 +15177,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
15174
15177
|
type: String,
|
|
15175
15178
|
default: "right"
|
|
15176
15179
|
},
|
|
15177
|
-
contentStyle: String
|
|
15180
|
+
contentStyle: [Object, String],
|
|
15181
|
+
contentClass: [Object, String],
|
|
15182
|
+
labelStyle: [Object, String],
|
|
15183
|
+
labelClass: [Object, String]
|
|
15178
15184
|
};
|
|
15179
15185
|
|
|
15180
15186
|
class Validator {
|
|
@@ -15381,10 +15387,13 @@ var VcComponents = (function (exports, vue) {
|
|
|
15381
15387
|
});
|
|
15382
15388
|
const labelStyle = vue.computed(() => {
|
|
15383
15389
|
const labelWidth = props.labelWidth === 0 || props.labelWidth ? props.labelWidth : isNest.value ? 0 : form.props.labelWidth;
|
|
15384
|
-
return
|
|
15385
|
-
|
|
15386
|
-
|
|
15387
|
-
|
|
15390
|
+
return [
|
|
15391
|
+
{
|
|
15392
|
+
width: labelPosition.value !== "top" && labelWidth && labelWidth > 0 ? `${labelWidth}px` : "auto",
|
|
15393
|
+
textAlign: labelPosition.value === "top" ? "left" : labelPosition.value
|
|
15394
|
+
},
|
|
15395
|
+
props.labelStyle
|
|
15396
|
+
];
|
|
15388
15397
|
});
|
|
15389
15398
|
const contentStyle = vue.computed(() => {
|
|
15390
15399
|
const labelWidth = props.labelWidth === 0 || props.labelWidth ? props.labelWidth : form.props.labelWidth;
|
|
@@ -15596,14 +15605,14 @@ var VcComponents = (function (exports, vue) {
|
|
|
15596
15605
|
})];
|
|
15597
15606
|
return vue.createVNode("div", {
|
|
15598
15607
|
"class": ['vc-form-item', classes.value]
|
|
15599
|
-
}, [vue.createVNode("div", {
|
|
15608
|
+
}, [(label || slots.label) && vue.createVNode("div", {
|
|
15600
15609
|
"style": labelStyle.value,
|
|
15601
|
-
"class":
|
|
15610
|
+
"class": ['vc-form-item__label', props.labelClass],
|
|
15602
15611
|
"for": labelFor
|
|
15603
15612
|
}, [vue.createVNode("label", null, [label || slots.label?.()])]), vue.createVNode("div", {
|
|
15604
15613
|
"class": "vc-form-item__wrapper"
|
|
15605
15614
|
}, [vue.createVNode("div", {
|
|
15606
|
-
"class":
|
|
15615
|
+
"class": ['vc-form-item__content', props.contentClass],
|
|
15607
15616
|
"style": contentStyle.value
|
|
15608
15617
|
}, [slots.default?.(), slots.error ? slots.error({
|
|
15609
15618
|
show: showError.value,
|
|
@@ -17057,10 +17066,14 @@ var VcComponents = (function (exports, vue) {
|
|
|
17057
17066
|
validator: (v) => /(small|medium|large)/.test(v),
|
|
17058
17067
|
default: "small"
|
|
17059
17068
|
},
|
|
17069
|
+
contentStyle: [Object, String],
|
|
17060
17070
|
contentClass: [Object, String],
|
|
17061
17071
|
width: {
|
|
17062
17072
|
type: Number
|
|
17063
17073
|
},
|
|
17074
|
+
height: {
|
|
17075
|
+
type: Number
|
|
17076
|
+
},
|
|
17064
17077
|
mask: {
|
|
17065
17078
|
type: Boolean,
|
|
17066
17079
|
default: true
|
|
@@ -17152,6 +17165,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
17152
17165
|
const x = vue.ref(0);
|
|
17153
17166
|
const y = vue.ref(0);
|
|
17154
17167
|
const isActive = vue.ref(false);
|
|
17168
|
+
|
|
17169
|
+
// 注: 服务端渲染为0, 在客服端激活前,展示端存在问题【高度不定】
|
|
17170
|
+
const MAX_HEIGHT = IS_SERVER$2 ? 0 : window.innerHeight - 20;
|
|
17155
17171
|
const defaultSize = vue.computed(() => {
|
|
17156
17172
|
let width = 0;
|
|
17157
17173
|
let height = 0;
|
|
@@ -17171,16 +17187,20 @@ var VcComponents = (function (exports, vue) {
|
|
|
17171
17187
|
}
|
|
17172
17188
|
return {
|
|
17173
17189
|
width: props.width || width,
|
|
17174
|
-
height
|
|
17190
|
+
height: Math.min(props.height || height, MAX_HEIGHT)
|
|
17175
17191
|
};
|
|
17176
17192
|
});
|
|
17177
17193
|
const basicStyle = vue.computed(() => {
|
|
17178
|
-
|
|
17194
|
+
const result = {
|
|
17179
17195
|
width: `${defaultSize.value.width}px`,
|
|
17180
|
-
|
|
17181
|
-
// 注: 服务端渲染为0, 在客服端激活前,展示端存在问题【高度不定】
|
|
17182
|
-
maxHeight: IS_SERVER$2 ? 0 : `${window.innerHeight - 20}px`
|
|
17196
|
+
maxHeight: `${MAX_HEIGHT}px`
|
|
17183
17197
|
};
|
|
17198
|
+
if (props.height) {
|
|
17199
|
+
result.height = `${defaultSize.value.height}px`;
|
|
17200
|
+
} else {
|
|
17201
|
+
result.minHeight = `${defaultSize.value.height}px`;
|
|
17202
|
+
}
|
|
17203
|
+
return result;
|
|
17184
17204
|
});
|
|
17185
17205
|
const draggableStyle = vue.computed(() => {
|
|
17186
17206
|
if (IS_SERVER$2 || !props.draggable) return {};
|
|
@@ -17303,6 +17323,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
17303
17323
|
* container在最大值时,需要移除,宽度才会缩回去
|
|
17304
17324
|
*/
|
|
17305
17325
|
const handleContentResize = () => {
|
|
17326
|
+
if (props.height) return;
|
|
17306
17327
|
const needRefreshScroller = !!scroller.value.wrapper.style.getPropertyValue('height');
|
|
17307
17328
|
const needRefreshContainer = !!container.value.style.getPropertyValue('height');
|
|
17308
17329
|
needRefreshContainer && container.value.style.removeProperty('height');
|
|
@@ -17448,7 +17469,8 @@ var VcComponents = (function (exports, vue) {
|
|
|
17448
17469
|
"height": isTransitionEnd.value ? row.height : void 0,
|
|
17449
17470
|
"contentClass": [{
|
|
17450
17471
|
'is-confirm': props.mode
|
|
17451
|
-
}, props.contentClass, 'vc-modal__content']
|
|
17472
|
+
}, props.contentClass, 'vc-modal__content'],
|
|
17473
|
+
"contentStyle": props.contentStyle
|
|
17452
17474
|
}, {
|
|
17453
17475
|
default: () => [typeof props.content === 'string' ? vue.createVNode("div", {
|
|
17454
17476
|
"innerHTML": props.content
|
|
@@ -39712,6 +39734,8 @@ var VcComponents = (function (exports, vue) {
|
|
|
39712
39734
|
stripe: Boolean,
|
|
39713
39735
|
// 是否带有纵向边框
|
|
39714
39736
|
border: Boolean,
|
|
39737
|
+
// 是否分割线
|
|
39738
|
+
divider: Boolean,
|
|
39715
39739
|
// 非常影响表格虚拟滚动的性能,按容器的高度手动优化该值
|
|
39716
39740
|
// 后续考虑移除,动态计算
|
|
39717
39741
|
rows: {
|
|
@@ -39852,6 +39876,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
39852
39876
|
'vc-table--fit': props.fit,
|
|
39853
39877
|
'vc-table--striped': props.stripe,
|
|
39854
39878
|
'vc-table--border': props.border || states.isGroup,
|
|
39879
|
+
'vc-table--divider': props.border || props.divider,
|
|
39855
39880
|
'vc-table--group': states.isGroup,
|
|
39856
39881
|
'vc-table--fluid-height': props.maxHeight,
|
|
39857
39882
|
'vc-table--scrollable-x': layout.states.scrollX,
|
|
@@ -40636,7 +40661,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
40636
40661
|
}
|
|
40637
40662
|
const line = column.line || VcInstance.options.TableColumn?.line;
|
|
40638
40663
|
if (line && value) {
|
|
40639
|
-
const base = rowData.isHead || rowData.isTail ?
|
|
40664
|
+
const base = rowData.isHead || rowData.isTail ? 36 : 24; // 目前gap是12
|
|
40640
40665
|
const style = {
|
|
40641
40666
|
// 目前左右pading为10
|
|
40642
40667
|
// TODO: 含有border还要-1
|