@vue-start/element-pro 0.2.38 → 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 CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  # 0.2.38
4
10
 
5
11
  - fix: ProTableV2 虚拟表格
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
@@ -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;
@@ -341,6 +342,9 @@ declare const proCheckboxProps: () => {
341
342
  trueLabel?: string | number | undefined;
342
343
  falseLabel?: string | number | undefined;
343
344
  })[]>;
345
+ fieldNames: {
346
+ type: ObjectConstructor;
347
+ };
344
348
  buttonStyle: {
345
349
  type: PropType<"default" | "button">;
346
350
  default: string;
@@ -349,6 +353,19 @@ declare const proCheckboxProps: () => {
349
353
  type: PropType<"default" | "button">;
350
354
  default: string;
351
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
+ };
352
369
  };
353
370
  declare type ProCheckboxProps = Partial<ExtractPropTypes<ReturnType<typeof proCheckboxProps>>> & CheckboxGroupProps;
354
371
  declare const ProCheckbox: vue.DefineComponent<ProCheckboxProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProCheckboxProps>, {}>;
@@ -397,6 +414,22 @@ declare const proSelectProps: () => {
397
414
  style?: Record<string, any> | undefined;
398
415
  item?: Record<string, any> | undefined;
399
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
+ };
400
433
  };
401
434
  declare type ProSelectProps = Partial<ExtractPropTypes<ReturnType<typeof proSelectProps>>> & ISelectProps;
402
435
  declare const ProSelect: vue.DefineComponent<ProSelectProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProSelectProps>, {
@@ -460,6 +493,9 @@ declare const uploadProps: () => {
460
493
  beforeUpload: {
461
494
  type: FunctionConstructor;
462
495
  };
496
+ beforeUpload2: {
497
+ type: FunctionConstructor;
498
+ };
463
499
  globalLoading: {
464
500
  type: (BooleanConstructor | ObjectConstructor)[];
465
501
  default: undefined;
@@ -501,6 +537,7 @@ declare const InputNumberRange: vue.DefineComponent<ProInputNumberRangeProps, {}
501
537
  readonly valueOnClear: any;
502
538
  }>;
503
539
 
540
+ declare const TreeMethods: string[];
504
541
  declare type TFieldNames = {
505
542
  key?: string;
506
543
  children?: string;
@@ -564,6 +601,79 @@ declare const ProDropdown: vue.DefineComponent<ProDropdownProps, {}, {}, {}, {},
564
601
  readonly loop: element_plus_es_utils.EpPropMergeType<BooleanConstructor, unknown, unknown>;
565
602
  }>;
566
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
+
567
677
  declare const proFormItemProps: () => {
568
678
  name: {
569
679
  type: PropType<string | (string | number)[]>;
@@ -1990,8 +2100,8 @@ declare const elementMap: {
1990
2100
  }>>, {
1991
2101
  render: Function;
1992
2102
  splitStr: string;
1993
- splitStr2: string;
1994
2103
  multiple: boolean;
2104
+ splitStr2: string;
1995
2105
  }> | vue.DefineComponent<{
1996
2106
  value: {
1997
2107
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
@@ -7559,8 +7669,8 @@ declare const elementMap: {
7559
7669
  }>>, {
7560
7670
  render: Function;
7561
7671
  splitStr: string;
7562
- splitStr2: string;
7563
7672
  multiple: boolean;
7673
+ splitStr2: string;
7564
7674
  }>;
7565
7675
  cascader: vue.DefineComponent<{
7566
7676
  value: {
@@ -7653,8 +7763,8 @@ declare const elementMap: {
7653
7763
  }>>, {
7654
7764
  render: Function;
7655
7765
  splitStr: string;
7656
- splitStr2: string;
7657
7766
  multiple: boolean;
7767
+ splitStr2: string;
7658
7768
  }>;
7659
7769
  };
7660
7770
  declare const formElementMap: {
@@ -8584,4 +8694,4 @@ declare const formElementMap: {
8584
8694
  }>;
8585
8695
  };
8586
8696
 
8587
- 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, ProTableV2, ProTableV2ColumnProps, ProTableV2Props, 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 };