@dinert/element-plus 1.1.42 → 1.1.43
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/element-plus.umd.js +2 -2
- package/dist/element-plus.umd.js.map +1 -1
- package/es/packages/components/form/src/index.mjs +1 -1
- package/es/packages/components/form/src/index.mjs.map +1 -1
- package/es/packages/components/table/src/recuve-table-column.mjs +34 -34
- package/es/packages/components/table/src/recuve-table-column.mjs.map +1 -1
- package/es/src/components/form/index.d.ts +1407 -217
- package/es/src/components/form/src/index.d.ts +1408 -217
- package/es/src/components/table-page/index.d.ts +2814 -434
- package/es/src/components/table-page/src/index.d.ts +2814 -434
- package/es/style.css +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/src/components/form/index.d.ts +1407 -217
- package/lib/src/components/form/src/index.d.ts +1408 -217
- package/lib/src/components/table-page/index.d.ts +2814 -434
- package/lib/src/components/table-page/src/index.d.ts +2814 -434
- package/package.json +3 -4
- package/es/src/components/form/types/components.d.ts +0 -44
- package/lib/src/components/form/types/components.d.ts +0 -44
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dinert/element-plus",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.43",
|
|
4
4
|
"description": "基于vue3封装的element-plus包",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
"docs:dev": "cd docs && yarn dev",
|
|
9
9
|
"docs:build": "cd docs && yarn build",
|
|
10
10
|
"docs:preview": "cd docs && yarn preview"
|
|
11
|
-
|
|
12
11
|
},
|
|
13
12
|
"keywords": [
|
|
14
13
|
"@dinert/element-plus",
|
|
@@ -34,7 +33,7 @@
|
|
|
34
33
|
"import": "./es/style.css"
|
|
35
34
|
},
|
|
36
35
|
"./variables": {
|
|
37
|
-
|
|
36
|
+
"import": "es/packages/assets/scss/variables.scss"
|
|
38
37
|
},
|
|
39
38
|
"./theme": {
|
|
40
39
|
"import": "es/packages/assets/scss/index.scss"
|
|
@@ -56,7 +55,7 @@
|
|
|
56
55
|
"@vitejs/plugin-vue-jsx": "^3.0.2",
|
|
57
56
|
"@vue/runtime-core": "^3.3.8",
|
|
58
57
|
"@vuepress/client": "^2.0.0-rc.0",
|
|
59
|
-
"element-plus": "^2.
|
|
58
|
+
"element-plus": "^2.10.1",
|
|
60
59
|
"eslint": "^8.53.0",
|
|
61
60
|
"eslint-plugin-vue": "^9.18.1",
|
|
62
61
|
"husky": "^8.0.3",
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
|
2
|
-
import { MergeProp } from './utils';
|
|
3
|
-
import { InputProps, ElInput, SelectOptionProxy, ElSelect, cascaderProps, ElCascader, AutocompleteProps, ElAutocomplete, ElInputNumber, InputNumberProps, SwitchProps, DatePickerProps, ElDatePicker, RadioGroupProps, ElRadioGroup, CheckboxProps, RadioProps, CheckboxGroupProps, ElCheckbox, ElTreeSelect, RateProps, ElRate, CascaderProps, ElTree, ElSlider, SliderProps, TimePickerDefaultProps, ElTimePicker, ElTimeSelect } from 'element-plus';
|
|
4
|
-
import { TreeOptionProps } from 'element-plus/es/components/tree-v2/src/types';
|
|
5
|
-
import type { SelectProps } from 'element-plus/es/components/select/src/select';
|
|
6
|
-
import { TreeProps } from 'element-plus/es/components/tree-v2/src/types';
|
|
7
|
-
import { TimeSelectProps } from 'element-plus/es/components/time-select/src/time-select';
|
|
8
|
-
type CommonFn = 'onChange' | 'onClear' | 'onBlur' | 'onFocus';
|
|
9
|
-
export type RewriteInputProps = Partial<InputProps & Pick<typeof ElInput, 'onInput' | CommonFn>>;
|
|
10
|
-
export type RewriteTextareaProps = Partial<InputProps & Pick<typeof ElInput, 'onInput' | CommonFn>>;
|
|
11
|
-
export type RewriteSelectProps<O = any[]> = Partial<Omit<ExtractPropTypes<typeof SelectProps>, 'options'> & {
|
|
12
|
-
options: O | SelectOptionProxy[];
|
|
13
|
-
label: string;
|
|
14
|
-
value: string;
|
|
15
|
-
} & Pick<typeof ElSelect, CommonFn | 'onVisible-change' | 'onRemove-tag'>>;
|
|
16
|
-
export type RewriteCascaderProps<O = any[]> = Partial<Omit<ExtractPropTypes<typeof cascaderProps>, 'options' | 'props'> & {
|
|
17
|
-
options: O;
|
|
18
|
-
props: Partial<MergeProp<CascaderProps, TreeOptionProps>>;
|
|
19
|
-
} & Pick<typeof ElCascader, CommonFn | 'onVisible-change' | 'onRemove-tag'>>;
|
|
20
|
-
export type RewriteAutocompleteProps = Partial<AutocompleteProps & Pick<typeof ElAutocomplete, 'onSelect' | 'onChange'>>;
|
|
21
|
-
export type RewriteInputNumberProps = Partial<InputNumberProps & Pick<typeof ElInputNumber, CommonFn>>;
|
|
22
|
-
export type RewriteSwitchProps = Partial<SwitchProps & Pick<typeof ElInputNumber, 'onChange'>>;
|
|
23
|
-
export type RewriteDatePickerProps = Partial<DatePickerProps & Pick<typeof ElDatePicker, CommonFn | 'onVisible-change' | 'onCalendar-change' | 'onPanel-change'>>;
|
|
24
|
-
export type RewriteRadioGroupProps<O = any[]> = Partial<RadioGroupProps & {
|
|
25
|
-
options: O | RadioProps[];
|
|
26
|
-
value: string;
|
|
27
|
-
} & Pick<typeof ElRadioGroup, 'onChange'>>;
|
|
28
|
-
export type RewriteCheckboxGroupProps<O = any[]> = Partial<CheckboxGroupProps & {
|
|
29
|
-
options: O | CheckboxProps[];
|
|
30
|
-
value: string;
|
|
31
|
-
} & Pick<typeof ElCheckbox, 'onChange'>>;
|
|
32
|
-
export type RewriteTreeSelectProps<O = any[]> = Partial<TreeProps & Omit<ExtractPropTypes<typeof SelectProps>, 'options'> & {
|
|
33
|
-
options: O | SelectOptionProxy[];
|
|
34
|
-
label: string;
|
|
35
|
-
value: string;
|
|
36
|
-
data: O | SelectOptionProxy[];
|
|
37
|
-
} & Pick<typeof ElTreeSelect, CommonFn> & Pick<typeof ElTree, 'onCurrent-change' | 'onCheck' | 'onNode-click' | 'onCurrent-change' | 'onNode-expand' | 'onCheck-change' | 'onNode-click' | 'onNode-contextmenu' | 'onNode-collapse' | 'onNode-drag-start' | 'onNode-drag-end' | 'onNode-drop' | 'onNode-drag-leave' | 'onNode-drag-enter' | 'onNode-drag-over'>>;
|
|
38
|
-
export type RewriteRewriteRateProps<O = any[]> = Partial<Omit<RateProps, 'options'> & {
|
|
39
|
-
options: O;
|
|
40
|
-
} & Pick<typeof ElRate, 'onChange'>>;
|
|
41
|
-
export type RewriteSliderProps = Partial<SliderProps & Pick<typeof ElSlider, 'onChange' | 'onInput'>>;
|
|
42
|
-
export type RewriteTimePickerProps = Partial<TimePickerDefaultProps & Pick<typeof ElTimePicker, CommonFn | 'onVisible-change'>>;
|
|
43
|
-
export type RewriteTimeSelectProps = Partial<TimeSelectProps & Pick<typeof ElTimeSelect, CommonFn>>;
|
|
44
|
-
export {};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
|
2
|
-
import { MergeProp } from './utils';
|
|
3
|
-
import { InputProps, ElInput, SelectOptionProxy, ElSelect, cascaderProps, ElCascader, AutocompleteProps, ElAutocomplete, ElInputNumber, InputNumberProps, SwitchProps, DatePickerProps, ElDatePicker, RadioGroupProps, ElRadioGroup, CheckboxProps, RadioProps, CheckboxGroupProps, ElCheckbox, ElTreeSelect, RateProps, ElRate, CascaderProps, ElTree, ElSlider, SliderProps, TimePickerDefaultProps, ElTimePicker, ElTimeSelect } from 'element-plus';
|
|
4
|
-
import { TreeOptionProps } from 'element-plus/es/components/tree-v2/src/types';
|
|
5
|
-
import type { SelectProps } from 'element-plus/es/components/select/src/select';
|
|
6
|
-
import { TreeProps } from 'element-plus/es/components/tree-v2/src/types';
|
|
7
|
-
import { TimeSelectProps } from 'element-plus/es/components/time-select/src/time-select';
|
|
8
|
-
type CommonFn = 'onChange' | 'onClear' | 'onBlur' | 'onFocus';
|
|
9
|
-
export type RewriteInputProps = Partial<InputProps & Pick<typeof ElInput, 'onInput' | CommonFn>>;
|
|
10
|
-
export type RewriteTextareaProps = Partial<InputProps & Pick<typeof ElInput, 'onInput' | CommonFn>>;
|
|
11
|
-
export type RewriteSelectProps<O = any[]> = Partial<Omit<ExtractPropTypes<typeof SelectProps>, 'options'> & {
|
|
12
|
-
options: O | SelectOptionProxy[];
|
|
13
|
-
label: string;
|
|
14
|
-
value: string;
|
|
15
|
-
} & Pick<typeof ElSelect, CommonFn | 'onVisible-change' | 'onRemove-tag'>>;
|
|
16
|
-
export type RewriteCascaderProps<O = any[]> = Partial<Omit<ExtractPropTypes<typeof cascaderProps>, 'options' | 'props'> & {
|
|
17
|
-
options: O;
|
|
18
|
-
props: Partial<MergeProp<CascaderProps, TreeOptionProps>>;
|
|
19
|
-
} & Pick<typeof ElCascader, CommonFn | 'onVisible-change' | 'onRemove-tag'>>;
|
|
20
|
-
export type RewriteAutocompleteProps = Partial<AutocompleteProps & Pick<typeof ElAutocomplete, 'onSelect' | 'onChange'>>;
|
|
21
|
-
export type RewriteInputNumberProps = Partial<InputNumberProps & Pick<typeof ElInputNumber, CommonFn>>;
|
|
22
|
-
export type RewriteSwitchProps = Partial<SwitchProps & Pick<typeof ElInputNumber, 'onChange'>>;
|
|
23
|
-
export type RewriteDatePickerProps = Partial<DatePickerProps & Pick<typeof ElDatePicker, CommonFn | 'onVisible-change' | 'onCalendar-change' | 'onPanel-change'>>;
|
|
24
|
-
export type RewriteRadioGroupProps<O = any[]> = Partial<RadioGroupProps & {
|
|
25
|
-
options: O | RadioProps[];
|
|
26
|
-
value: string;
|
|
27
|
-
} & Pick<typeof ElRadioGroup, 'onChange'>>;
|
|
28
|
-
export type RewriteCheckboxGroupProps<O = any[]> = Partial<CheckboxGroupProps & {
|
|
29
|
-
options: O | CheckboxProps[];
|
|
30
|
-
value: string;
|
|
31
|
-
} & Pick<typeof ElCheckbox, 'onChange'>>;
|
|
32
|
-
export type RewriteTreeSelectProps<O = any[]> = Partial<TreeProps & Omit<ExtractPropTypes<typeof SelectProps>, 'options'> & {
|
|
33
|
-
options: O | SelectOptionProxy[];
|
|
34
|
-
label: string;
|
|
35
|
-
value: string;
|
|
36
|
-
data: O | SelectOptionProxy[];
|
|
37
|
-
} & Pick<typeof ElTreeSelect, CommonFn> & Pick<typeof ElTree, 'onCurrent-change' | 'onCheck' | 'onNode-click' | 'onCurrent-change' | 'onNode-expand' | 'onCheck-change' | 'onNode-click' | 'onNode-contextmenu' | 'onNode-collapse' | 'onNode-drag-start' | 'onNode-drag-end' | 'onNode-drop' | 'onNode-drag-leave' | 'onNode-drag-enter' | 'onNode-drag-over'>>;
|
|
38
|
-
export type RewriteRewriteRateProps<O = any[]> = Partial<Omit<RateProps, 'options'> & {
|
|
39
|
-
options: O;
|
|
40
|
-
} & Pick<typeof ElRate, 'onChange'>>;
|
|
41
|
-
export type RewriteSliderProps = Partial<SliderProps & Pick<typeof ElSlider, 'onChange' | 'onInput'>>;
|
|
42
|
-
export type RewriteTimePickerProps = Partial<TimePickerDefaultProps & Pick<typeof ElTimePicker, CommonFn | 'onVisible-change'>>;
|
|
43
|
-
export type RewriteTimeSelectProps = Partial<TimeSelectProps & Pick<typeof ElTimeSelect, CommonFn>>;
|
|
44
|
-
export {};
|