@dinert/element-plus 1.1.9 → 1.1.11

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.
@@ -30,12 +30,12 @@ export interface RewriteFormItemPropsMap<O = any[]> {
30
30
  'radio-button': RewriteRadioGroupProps<O>;
31
31
  'rate': RewriteRewriteRateProps<O>;
32
32
  }
33
- export interface CustomFormItemProps<D = any, O = any[], N extends keyof RewriteFormItemPropsMap = any> extends Partial<FormItemProps> {
33
+ export interface CustomFormItemProps<D = any, O = any[], N extends keyof RewriteFormItemPropsMap = any> extends Partial<Omit<FormItemProps, 'label'>> {
34
34
  key?: any;
35
35
  type: N extends keyof RewriteFormItemPropsMap ? N : keyof RewriteFormItemPropsMap;
36
36
  show?: boolean | ((model: D) => boolean);
37
37
  vif?: boolean | ((model: D) => boolean);
38
- label: string;
38
+ label: string | ((model: D) => string);
39
39
  sort?: number;
40
40
  options?: RewriteFormItemPropsMap<O>[N];
41
41
  showLabel?: boolean;
@@ -17,6 +17,7 @@ export interface OperationsProps<T = any> extends Partial<ButtonProps> {
17
17
  sort?: number;
18
18
  confirm?: Partial<PopconfirmProps>;
19
19
  key?: string;
20
+ second?: boolean;
20
21
  }
21
22
  export interface RewriteTableColumnCtx<T = any> extends Omit<Partial<TableColumnCtx<T>>, 'children'> {
22
23
  type?: 'default' | 'selection' | 'index' | 'expand';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dinert/element-plus",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "description": "基于vue3封装的element-plus包",
5
5
  "scripts": {
6
6
  "dev": "vite",