@qin-ui/antd-vue-pro 1.0.4 → 1.0.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/es/form/index.js +5348 -573
- package/es/index.d.ts +10 -22
- package/es/style.css +1 -1
- package/package.json +2 -2
package/es/index.d.ts
CHANGED
|
@@ -191,7 +191,7 @@ declare interface Common {
|
|
|
191
191
|
/** 中文名称 */
|
|
192
192
|
label?: SlotComponentType;
|
|
193
193
|
/** 插槽,可包含formItem插槽和component插槽 */
|
|
194
|
-
slots?: Record<(typeof FORM_ITEM_SLOT_KEYS)[number], SlotComponentType
|
|
194
|
+
slots?: Partial<Record<(typeof FORM_ITEM_SLOT_KEYS)[number], SlotComponentType>>;
|
|
195
195
|
/** 网格布局属性 */
|
|
196
196
|
grid?: Grid;
|
|
197
197
|
/** 子字段 */
|
|
@@ -234,26 +234,16 @@ export declare type Condition = {
|
|
|
234
234
|
disabled?: boolean;
|
|
235
235
|
};
|
|
236
236
|
|
|
237
|
-
export declare type ContainerComponent = FunctionalComponent
|
|
238
|
-
path?: string;
|
|
239
|
-
}> | DefineComponent<{
|
|
240
|
-
path?: string;
|
|
241
|
-
}, object, any>;
|
|
237
|
+
export declare type ContainerComponent = FunctionalComponent | DefineComponent;
|
|
242
238
|
|
|
243
239
|
export declare const ContainerFragment: __VLS_WithTemplateSlots_3<DefineComponent<{
|
|
244
240
|
component: {
|
|
245
241
|
type: PropType<any>;
|
|
246
242
|
};
|
|
247
|
-
path: {
|
|
248
|
-
type: PropType<string>;
|
|
249
|
-
};
|
|
250
243
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
251
244
|
component: {
|
|
252
245
|
type: PropType<any>;
|
|
253
246
|
};
|
|
254
|
-
path: {
|
|
255
|
-
type: PropType<string>;
|
|
256
|
-
};
|
|
257
247
|
}>>, {}, {}>, {
|
|
258
248
|
default?(_: {}): any;
|
|
259
249
|
}>;
|
|
@@ -273,7 +263,7 @@ declare const _default_2: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
273
263
|
type: PropType<string>;
|
|
274
264
|
};
|
|
275
265
|
size: {
|
|
276
|
-
type: PropType<"
|
|
266
|
+
type: PropType<"middle" | "small" | "large">;
|
|
277
267
|
};
|
|
278
268
|
disabled: {
|
|
279
269
|
type: PropType<boolean>;
|
|
@@ -450,7 +440,7 @@ declare const _default_2: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
450
440
|
type: PropType<string>;
|
|
451
441
|
};
|
|
452
442
|
size: {
|
|
453
|
-
type: PropType<"
|
|
443
|
+
type: PropType<"middle" | "small" | "large">;
|
|
454
444
|
};
|
|
455
445
|
disabled: {
|
|
456
446
|
type: PropType<boolean>;
|
|
@@ -630,7 +620,7 @@ declare type FieldAttrsType = {
|
|
|
630
620
|
|
|
631
621
|
export declare type Fields = Array<Field>;
|
|
632
622
|
|
|
633
|
-
declare type FieldSlot<T extends string> = Record<
|
|
623
|
+
declare type FieldSlot<T extends string> = Partial<Record<T, SlotComponentType>>;
|
|
634
624
|
|
|
635
625
|
/**
|
|
636
626
|
* @type {FieldType} 字段类型集合
|
|
@@ -991,7 +981,7 @@ export declare const ProForm: SFCWithInstall<{
|
|
|
991
981
|
autoCommandDisabled?: boolean | undefined;
|
|
992
982
|
readonly prefixCls?: string | undefined;
|
|
993
983
|
readonly name?: string | undefined;
|
|
994
|
-
readonly size?: "
|
|
984
|
+
readonly size?: "middle" | "small" | "large" | undefined;
|
|
995
985
|
readonly disabled?: boolean | undefined;
|
|
996
986
|
readonly labelCol?: (Partial<ExtractPropTypes<{
|
|
997
987
|
span: (StringConstructor | NumberConstructor)[];
|
|
@@ -1148,7 +1138,7 @@ export declare const ProForm: SFCWithInstall<{
|
|
|
1148
1138
|
type: PropType<string>;
|
|
1149
1139
|
};
|
|
1150
1140
|
size: {
|
|
1151
|
-
type: PropType<"
|
|
1141
|
+
type: PropType<"middle" | "small" | "large">;
|
|
1152
1142
|
};
|
|
1153
1143
|
disabled: {
|
|
1154
1144
|
type: PropType<boolean>;
|
|
@@ -1353,7 +1343,7 @@ export declare const ProForm: SFCWithInstall<{
|
|
|
1353
1343
|
type: PropType<string>;
|
|
1354
1344
|
};
|
|
1355
1345
|
size: {
|
|
1356
|
-
type: PropType<"
|
|
1346
|
+
type: PropType<"middle" | "small" | "large">;
|
|
1357
1347
|
};
|
|
1358
1348
|
disabled: {
|
|
1359
1349
|
type: PropType<boolean>;
|
|
@@ -1534,7 +1524,7 @@ export declare const ProForm: SFCWithInstall<{
|
|
|
1534
1524
|
type: PropType<string>;
|
|
1535
1525
|
};
|
|
1536
1526
|
size: {
|
|
1537
|
-
type: PropType<"
|
|
1527
|
+
type: PropType<"middle" | "small" | "large">;
|
|
1538
1528
|
};
|
|
1539
1529
|
disabled: {
|
|
1540
1530
|
type: PropType<boolean>;
|
|
@@ -1794,9 +1784,7 @@ export declare const SlotComponent: DefineComponent<{
|
|
|
1794
1784
|
};
|
|
1795
1785
|
}>>, {}, {}>;
|
|
1796
1786
|
|
|
1797
|
-
export declare type SlotComponentType = string | VNode | FunctionalComponent
|
|
1798
|
-
path?: string;
|
|
1799
|
-
}>;
|
|
1787
|
+
export declare type SlotComponentType = string | VNode | FunctionalComponent;
|
|
1800
1788
|
|
|
1801
1789
|
declare type SwitchSlots = FieldSlot<'checkedChildren' | 'unCheckedChildren'>;
|
|
1802
1790
|
|
package/es/style.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qin-ui/antd-vue-pro",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "二次封装antd vue组件",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"private": false,
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"ant-design-vue": "^4.0.
|
|
30
|
+
"ant-design-vue": "^4.0.6",
|
|
31
31
|
"vue": "^3.3.4"
|
|
32
32
|
},
|
|
33
33
|
"bugs": {
|