@vue-start/element-pro 0.2.37 → 0.2.39
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/CHANGELOG.md +10 -0
- package/dist/index.css +99 -0
- package/dist/index.d.ts +149 -6
- package/dist/index.es.js +1050 -700
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
# 0.2.39
|
|
4
|
+
|
|
5
|
+
- feat: 添加样式文件;
|
|
6
|
+
- feat: 新增 ProTreeSelect、ProCascader 组件;
|
|
7
|
+
- perf:ProSelect、ProTreeSelect、ProCascader、ProCheckbox 等选择组件提供 value 自定义配置;
|
|
8
|
+
|
|
9
|
+
# 0.2.38
|
|
10
|
+
|
|
11
|
+
- fix: ProTableV2 虚拟表格
|
|
12
|
+
|
|
3
13
|
# 0.2.35
|
|
4
14
|
|
|
5
15
|
- fix: modal closed 事件;
|
package/dist/index.css
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/********************************** pro-form-list ***********************************/
|
|
2
|
+
.pro-form-list .el-form-item__content {
|
|
3
|
+
display: unset !important;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.pro-form-list .el-form-item {
|
|
7
|
+
margin-bottom: 18px !important;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/********************************** pro-table ***********************************/
|
|
11
|
+
/* table toolbar 中的form-item 样式 */
|
|
12
|
+
.pro-table .pro-table-toolbar .pro-table-toolbar-start .el-form-item {
|
|
13
|
+
margin-bottom: 0px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* 虚拟表格 */
|
|
17
|
+
.el-table-v2.dynamic-hei .el-table-v2__row-cell {
|
|
18
|
+
min-height: var(--estimated-hei);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.pro-table .el-table__header .pro-single .el-checkbox {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* 单选框样式 */
|
|
26
|
+
.pro-table .pro-single .el-checkbox__inner {
|
|
27
|
+
border-radius: 50%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/********************************** curd-list ***********************************/
|
|
31
|
+
|
|
32
|
+
.pro-page.curd-list .pro-curd-list .pro-table .el-table {
|
|
33
|
+
height: calc(100% - var(--pro-table-toolbar-hei));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.pro-page.curd-list .pro-table-v2-wrapper {
|
|
37
|
+
height: calc(100% - var(--pro-table-toolbar-hei));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/********************************** pro-modal ***********************************/
|
|
41
|
+
.pro-modal .el-dialog__header {
|
|
42
|
+
padding: 16px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.pro-modal .el-dialog__body {
|
|
46
|
+
padding: 0 16px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.pro-modal.scroll .el-dialog__body {
|
|
50
|
+
padding: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.pro-modal .pro-modal-scroll {
|
|
54
|
+
padding: 0 16px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.pro-modal .el-dialog__footer {
|
|
58
|
+
padding: 16px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/********************************** pro-drawer ***********************************/
|
|
62
|
+
|
|
63
|
+
.pro-drawer .el-drawer__header {
|
|
64
|
+
margin-bottom: 0px;
|
|
65
|
+
padding: 16px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.pro-drawer .el-drawer__body {
|
|
69
|
+
padding: 0 16px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.pro-drawer.scroll .el-drawer__body {
|
|
73
|
+
padding: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.pro-drawer .pro-drawer-scroll {
|
|
77
|
+
padding: 0 16px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.pro-drawer .el-drawer__footer {
|
|
81
|
+
padding: 16px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/***************************** pro-app-config ***********************************/
|
|
85
|
+
.pro-app-config_form .el-form-item {
|
|
86
|
+
margin-bottom: 8px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.pro-app-config_form .el-form-item__label {
|
|
90
|
+
padding: 0 !important;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.pro-app-config_form_title .el-form-item__content {
|
|
94
|
+
justify-content: center;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.pro-app-config_form .el-form-item__content {
|
|
98
|
+
flex-direction: row-reverse;
|
|
99
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as element_plus_es_components_descriptions_src_descriptions_type from '
|
|
|
3
3
|
import * as vue from 'vue';
|
|
4
4
|
import { VNode, ExtractPropTypes, PropType } from 'vue';
|
|
5
5
|
import * as element_plus from 'element-plus';
|
|
6
|
-
import { TableProps, DialogProps, DrawerProps, CheckboxGroupProps, ISelectProps, MenuProps, UploadProps, UploadFile, InputNumberProps, dropdownProps, FormItemProps } from 'element-plus';
|
|
6
|
+
import { TableProps, TableV2Props, DialogProps, DrawerProps, CheckboxGroupProps, ISelectProps, MenuProps, UploadProps, UploadFile, InputNumberProps, dropdownProps, FormItemProps } from 'element-plus';
|
|
7
7
|
import { FilterMethods, Filters } from 'element-plus/es/components/table/src/table-column/defaults';
|
|
8
8
|
import * as _vue_start_pro from '@vue-start/pro';
|
|
9
9
|
import { TColumns, TOption as TOption$1, TFile } from '@vue-start/pro';
|
|
@@ -11,6 +11,7 @@ import { TTableMergeOpts } from '@vue-start/hooks';
|
|
|
11
11
|
import * as _vue_shared from '@vue/shared';
|
|
12
12
|
import * as element_plus_es_utils from 'element-plus/es/utils';
|
|
13
13
|
import { TreeComponentProps } from 'element-plus/es/components/tree/src/tree.type';
|
|
14
|
+
import { SelectProps } from 'ant-design-vue/lib/vc-select';
|
|
14
15
|
|
|
15
16
|
declare type TOption = {
|
|
16
17
|
label?: string;
|
|
@@ -129,6 +130,35 @@ declare const ProTableOperateItem: vue.DefineComponent<any, () => JSX.Element, u
|
|
|
129
130
|
[x: string]: any;
|
|
130
131
|
}>;
|
|
131
132
|
|
|
133
|
+
declare type ProTableV2ColumnProps<T = Record<string, any>> = TableColumnCtx<T>;
|
|
134
|
+
declare const proTableV2Props: () => {
|
|
135
|
+
fixed: {
|
|
136
|
+
type: BooleanConstructor;
|
|
137
|
+
default: boolean;
|
|
138
|
+
};
|
|
139
|
+
dataSource: ArrayConstructor;
|
|
140
|
+
columns: {
|
|
141
|
+
type: PropType<TColumns>;
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* 默认启用动态计算行高度 estimatedRowHeight
|
|
145
|
+
*/
|
|
146
|
+
dynamicHei: {
|
|
147
|
+
type: BooleanConstructor;
|
|
148
|
+
default: boolean;
|
|
149
|
+
};
|
|
150
|
+
minWidth: {
|
|
151
|
+
type: NumberConstructor;
|
|
152
|
+
default: number;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
declare type ProTableV2Props<T = Record<string, any>> = Partial<ExtractPropTypes<ReturnType<typeof proTableV2Props>>> & TableV2Props;
|
|
156
|
+
declare const ProTableV2: vue.DefineComponent<ProTableV2Props<Record<string, any>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProTableV2Props<Record<string, any>>>, {
|
|
157
|
+
readonly headerProps?: any;
|
|
158
|
+
readonly headerCellProps?: any;
|
|
159
|
+
readonly rowProps?: any;
|
|
160
|
+
}>;
|
|
161
|
+
|
|
132
162
|
declare const createLoadingId: (prefix?: string) => string;
|
|
133
163
|
declare const proLoadingProps: () => {
|
|
134
164
|
loading: {
|
|
@@ -312,6 +342,9 @@ declare const proCheckboxProps: () => {
|
|
|
312
342
|
trueLabel?: string | number | undefined;
|
|
313
343
|
falseLabel?: string | number | undefined;
|
|
314
344
|
})[]>;
|
|
345
|
+
fieldNames: {
|
|
346
|
+
type: ObjectConstructor;
|
|
347
|
+
};
|
|
315
348
|
buttonStyle: {
|
|
316
349
|
type: PropType<"default" | "button">;
|
|
317
350
|
default: string;
|
|
@@ -320,6 +353,19 @@ declare const proCheckboxProps: () => {
|
|
|
320
353
|
type: PropType<"default" | "button">;
|
|
321
354
|
default: string;
|
|
322
355
|
};
|
|
356
|
+
expMethods: {
|
|
357
|
+
type: PropType<string[]>;
|
|
358
|
+
default: () => string[];
|
|
359
|
+
};
|
|
360
|
+
separator$: {
|
|
361
|
+
type: StringConstructor;
|
|
362
|
+
};
|
|
363
|
+
parseValue$: {
|
|
364
|
+
type: FunctionConstructor;
|
|
365
|
+
};
|
|
366
|
+
formatValue$: {
|
|
367
|
+
type: FunctionConstructor;
|
|
368
|
+
};
|
|
323
369
|
};
|
|
324
370
|
declare type ProCheckboxProps = Partial<ExtractPropTypes<ReturnType<typeof proCheckboxProps>>> & CheckboxGroupProps;
|
|
325
371
|
declare const ProCheckbox: vue.DefineComponent<ProCheckboxProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProCheckboxProps>, {}>;
|
|
@@ -368,6 +414,22 @@ declare const proSelectProps: () => {
|
|
|
368
414
|
style?: Record<string, any> | undefined;
|
|
369
415
|
item?: Record<string, any> | undefined;
|
|
370
416
|
})[]>;
|
|
417
|
+
fieldNames: {
|
|
418
|
+
type: ObjectConstructor;
|
|
419
|
+
};
|
|
420
|
+
expMethods: {
|
|
421
|
+
type: PropType<string[]>;
|
|
422
|
+
default: () => string[];
|
|
423
|
+
};
|
|
424
|
+
separator$: {
|
|
425
|
+
type: StringConstructor;
|
|
426
|
+
};
|
|
427
|
+
parseValue$: {
|
|
428
|
+
type: FunctionConstructor;
|
|
429
|
+
};
|
|
430
|
+
formatValue$: {
|
|
431
|
+
type: FunctionConstructor;
|
|
432
|
+
};
|
|
371
433
|
};
|
|
372
434
|
declare type ProSelectProps = Partial<ExtractPropTypes<ReturnType<typeof proSelectProps>>> & ISelectProps;
|
|
373
435
|
declare const ProSelect: vue.DefineComponent<ProSelectProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProSelectProps>, {
|
|
@@ -431,6 +493,9 @@ declare const uploadProps: () => {
|
|
|
431
493
|
beforeUpload: {
|
|
432
494
|
type: FunctionConstructor;
|
|
433
495
|
};
|
|
496
|
+
beforeUpload2: {
|
|
497
|
+
type: FunctionConstructor;
|
|
498
|
+
};
|
|
434
499
|
globalLoading: {
|
|
435
500
|
type: (BooleanConstructor | ObjectConstructor)[];
|
|
436
501
|
default: undefined;
|
|
@@ -472,6 +537,7 @@ declare const InputNumberRange: vue.DefineComponent<ProInputNumberRangeProps, {}
|
|
|
472
537
|
readonly valueOnClear: any;
|
|
473
538
|
}>;
|
|
474
539
|
|
|
540
|
+
declare const TreeMethods: string[];
|
|
475
541
|
declare type TFieldNames = {
|
|
476
542
|
key?: string;
|
|
477
543
|
children?: string;
|
|
@@ -535,6 +601,79 @@ declare const ProDropdown: vue.DefineComponent<ProDropdownProps, {}, {}, {}, {},
|
|
|
535
601
|
readonly loop: element_plus_es_utils.EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
536
602
|
}>;
|
|
537
603
|
|
|
604
|
+
declare const proTreeSelectProps: () => {
|
|
605
|
+
options: PropType<Record<string, any>[]>;
|
|
606
|
+
fieldNames: {
|
|
607
|
+
type: ObjectConstructor;
|
|
608
|
+
};
|
|
609
|
+
emitPath: {
|
|
610
|
+
type: BooleanConstructor;
|
|
611
|
+
default: boolean;
|
|
612
|
+
};
|
|
613
|
+
expMethods: {
|
|
614
|
+
type: PropType<string[]>;
|
|
615
|
+
default: () => string[];
|
|
616
|
+
};
|
|
617
|
+
separator$: {
|
|
618
|
+
type: StringConstructor;
|
|
619
|
+
};
|
|
620
|
+
itemSeparator$: {
|
|
621
|
+
type: StringConstructor;
|
|
622
|
+
};
|
|
623
|
+
parseValue$: {
|
|
624
|
+
type: FunctionConstructor;
|
|
625
|
+
};
|
|
626
|
+
formatValue$: {
|
|
627
|
+
type: FunctionConstructor;
|
|
628
|
+
};
|
|
629
|
+
};
|
|
630
|
+
declare type ProTreeSelectProps = Partial<ExtractPropTypes<ReturnType<typeof proTreeSelectProps>>> & SelectProps & TreeComponentProps;
|
|
631
|
+
declare const ProTreeSelect: vue.DefineComponent<any, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<any>, {} | {
|
|
632
|
+
[x: string]: any;
|
|
633
|
+
}>;
|
|
634
|
+
|
|
635
|
+
declare const proCascaderProps: () => {
|
|
636
|
+
expandTrigger: {
|
|
637
|
+
type: StringConstructor;
|
|
638
|
+
default: string;
|
|
639
|
+
};
|
|
640
|
+
multiple: {
|
|
641
|
+
type: BooleanConstructor;
|
|
642
|
+
default: boolean;
|
|
643
|
+
};
|
|
644
|
+
checkStrictly: {
|
|
645
|
+
type: BooleanConstructor;
|
|
646
|
+
default: boolean;
|
|
647
|
+
};
|
|
648
|
+
emitPath: {
|
|
649
|
+
type: BooleanConstructor;
|
|
650
|
+
default: boolean;
|
|
651
|
+
};
|
|
652
|
+
fieldNames: {
|
|
653
|
+
type: ObjectConstructor;
|
|
654
|
+
};
|
|
655
|
+
expMethods: {
|
|
656
|
+
type: PropType<string[]>;
|
|
657
|
+
default: () => string[];
|
|
658
|
+
};
|
|
659
|
+
separator$: {
|
|
660
|
+
type: StringConstructor;
|
|
661
|
+
};
|
|
662
|
+
itemSeparator$: {
|
|
663
|
+
type: StringConstructor;
|
|
664
|
+
};
|
|
665
|
+
parseValue$: {
|
|
666
|
+
type: FunctionConstructor;
|
|
667
|
+
};
|
|
668
|
+
formatValue$: {
|
|
669
|
+
type: FunctionConstructor;
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
declare type ProCascaderProps = Partial<ExtractPropTypes<ReturnType<typeof proCascaderProps>>>;
|
|
673
|
+
declare const ProCascader: vue.DefineComponent<any, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<any>, {} | {
|
|
674
|
+
[x: string]: any;
|
|
675
|
+
}>;
|
|
676
|
+
|
|
538
677
|
declare const proFormItemProps: () => {
|
|
539
678
|
name: {
|
|
540
679
|
type: PropType<string | (string | number)[]>;
|
|
@@ -1961,8 +2100,8 @@ declare const elementMap: {
|
|
|
1961
2100
|
}>>, {
|
|
1962
2101
|
render: Function;
|
|
1963
2102
|
splitStr: string;
|
|
1964
|
-
splitStr2: string;
|
|
1965
2103
|
multiple: boolean;
|
|
2104
|
+
splitStr2: string;
|
|
1966
2105
|
}> | vue.DefineComponent<{
|
|
1967
2106
|
value: {
|
|
1968
2107
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
@@ -2845,7 +2984,11 @@ declare const elementMap: {
|
|
|
2845
2984
|
}>>, {
|
|
2846
2985
|
readonly type: element_plus_es_utils.EpPropMergeType<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "danger" | "info", unknown>;
|
|
2847
2986
|
}>;
|
|
2848
|
-
}) |
|
|
2987
|
+
}) | vue.DefineComponent<ProTableV2Props<Record<string, any>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProTableV2Props<Record<string, any>>>, {
|
|
2988
|
+
readonly headerProps?: any;
|
|
2989
|
+
readonly headerCellProps?: any;
|
|
2990
|
+
readonly rowProps?: any;
|
|
2991
|
+
}> | (element_plus_es_utils.SFCWithInstall<vue.DefineComponent<{
|
|
2849
2992
|
readonly border: element_plus_es_utils.EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
2850
2993
|
readonly column: element_plus_es_utils.EpPropFinalized<NumberConstructor, unknown, unknown, 3, boolean>;
|
|
2851
2994
|
readonly direction: element_plus_es_utils.EpPropFinalized<StringConstructor, "vertical" | "horizontal", unknown, "horizontal", boolean>;
|
|
@@ -7526,8 +7669,8 @@ declare const elementMap: {
|
|
|
7526
7669
|
}>>, {
|
|
7527
7670
|
render: Function;
|
|
7528
7671
|
splitStr: string;
|
|
7529
|
-
splitStr2: string;
|
|
7530
7672
|
multiple: boolean;
|
|
7673
|
+
splitStr2: string;
|
|
7531
7674
|
}>;
|
|
7532
7675
|
cascader: vue.DefineComponent<{
|
|
7533
7676
|
value: {
|
|
@@ -7620,8 +7763,8 @@ declare const elementMap: {
|
|
|
7620
7763
|
}>>, {
|
|
7621
7764
|
render: Function;
|
|
7622
7765
|
splitStr: string;
|
|
7623
|
-
splitStr2: string;
|
|
7624
7766
|
multiple: boolean;
|
|
7767
|
+
splitStr2: string;
|
|
7625
7768
|
}>;
|
|
7626
7769
|
};
|
|
7627
7770
|
declare const formElementMap: {
|
|
@@ -8551,4 +8694,4 @@ declare const formElementMap: {
|
|
|
8551
8694
|
}>;
|
|
8552
8695
|
};
|
|
8553
8696
|
|
|
8554
|
-
export { FormMethods, InputNumberRange, ProCheckbox, ProCheckboxProps, ProDrawer, ProDrawerProps, ProDropdown, ProDropdownProps, ProForm, ProFormCascader, ProFormCheckbox, ProFormColor, ProFormDatePicker, ProFormInputNumberRange, ProFormItem, ProFormItemProps, ProFormRadio, ProFormSelect, ProFormSwitch, ProFormText, ProFormTextNumber, ProFormTimePicker, ProFormTreeSelect, ProInputNumberRangeProps, ProLoading, ProLoadingProps, ProMenus, ProMenusProps, ProModal, ProModalProps, ProPagination, ProPopover, ProRadio, ProRadioProps, ProSelect, ProSelectProps, ProTable, ProTableColumn, ProTableColumnProps, ProTableOperateItem, ProTableProps, ProTabs, ProTree, ProTreeProps, ProUploadProps, ProUploader, TableMethods, UploadMethods, createFormItemComponent, createLoadingId, elementMap, formElementMap };
|
|
8697
|
+
export { FormMethods, InputNumberRange, ProCascader, ProCascaderProps, ProCheckbox, ProCheckboxProps, ProDrawer, ProDrawerProps, ProDropdown, ProDropdownProps, ProForm, ProFormCascader, ProFormCheckbox, ProFormColor, ProFormDatePicker, ProFormInputNumberRange, ProFormItem, ProFormItemProps, ProFormRadio, ProFormSelect, ProFormSwitch, ProFormText, ProFormTextNumber, ProFormTimePicker, ProFormTreeSelect, ProInputNumberRangeProps, ProLoading, ProLoadingProps, ProMenus, ProMenusProps, ProModal, ProModalProps, ProPagination, ProPopover, ProRadio, ProRadioProps, ProSelect, ProSelectProps, ProTable, ProTableColumn, ProTableColumnProps, ProTableOperateItem, ProTableProps, ProTableV2, ProTableV2ColumnProps, ProTableV2Props, ProTabs, ProTree, ProTreeProps, ProTreeSelect, ProTreeSelectProps, ProUploadProps, ProUploader, TableMethods, TreeMethods, UploadMethods, createFormItemComponent, createLoadingId, elementMap, formElementMap };
|