@hinen/pro-element-plus 1.4.0 → 1.6.0

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.
Files changed (66) hide show
  1. package/dist/components/CheckboxGroup/CheckboxGroup.vue.d.ts +2 -2
  2. package/dist/components/DataSelect/DataSelect.vue.d.ts +6 -6
  3. package/dist/components/DataTable/DataTable.vue.d.ts +7 -7
  4. package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
  5. package/dist/components/DataTable/types.d.ts +1 -1
  6. package/dist/components/DataTable/types.d.ts.map +1 -1
  7. package/dist/components/DataTable/useFixedScrollbar.d.ts +13 -0
  8. package/dist/components/DataTable/useFixedScrollbar.d.ts.map +1 -0
  9. package/dist/components/Drawer/Drawer.vue.d.ts +10 -10
  10. package/dist/components/Drawer/props.d.ts +2 -2
  11. package/dist/components/Drawer/props.d.ts.map +1 -1
  12. package/dist/components/EllipsisText/EllipsisText.vue.d.ts +1 -1
  13. package/dist/components/FormFields/FormCascadeSelect/FormCascadeSelect.vue.d.ts +8 -8
  14. package/dist/components/FormFields/FormCascadeSelect/props.d.ts +1 -1
  15. package/dist/components/FormFields/FormCheckboxGroup/FormCheckboxGroup.vue.d.ts +4 -4
  16. package/dist/components/FormFields/FormCheckboxGroup/props.d.ts +1 -1
  17. package/dist/components/FormFields/FormDatePicker/FormDatePicker.vue.d.ts +8 -8
  18. package/dist/components/FormFields/FormDatePicker/props.d.ts +1 -1
  19. package/dist/components/FormFields/FormItem/FormItem.vue.d.ts +3 -3
  20. package/dist/components/FormFields/FormItem/props.d.ts +1 -1
  21. package/dist/components/FormFields/FormItem/utils.d.ts +1 -1
  22. package/dist/components/FormFields/FormNumber/FormNumber.vue.d.ts +6 -6
  23. package/dist/components/FormFields/FormNumber/props.d.ts +1 -1
  24. package/dist/components/FormFields/FormRadioGroup/FormRadioGroup.vue.d.ts +4 -4
  25. package/dist/components/FormFields/FormRadioGroup/props.d.ts +1 -1
  26. package/dist/components/FormFields/FormRate/FormRate.vue.d.ts +5 -5
  27. package/dist/components/FormFields/FormRate/props.d.ts +1 -1
  28. package/dist/components/FormFields/FormSelect/FormSelect.vue.d.ts +8 -8
  29. package/dist/components/FormFields/FormSelect/props.d.ts +1 -1
  30. package/dist/components/FormFields/FormSwitch/FormSwitch.vue.d.ts +4 -4
  31. package/dist/components/FormFields/FormSwitch/props.d.ts +1 -1
  32. package/dist/components/FormFields/FormTagInput/FormTagInput.vue.d.ts +10 -10
  33. package/dist/components/FormFields/FormTagInput/props.d.ts +1 -1
  34. package/dist/components/FormFields/FormText/FormText.vue.d.ts +18 -18
  35. package/dist/components/FormFields/FormText/props.d.ts +1 -1
  36. package/dist/components/FormFields/FormTimePicker/FormTimePicker.vue.d.ts +8 -8
  37. package/dist/components/FormFields/FormTimePicker/props.d.ts +1 -1
  38. package/dist/components/FormFields/FormTreeSelect/FormTreeSelect.vue.d.ts +1 -1
  39. package/dist/components/FormFields/FormTreeSelect/props.d.ts +1 -1
  40. package/dist/components/FormFields/utils.d.ts +1 -1
  41. package/dist/components/Image/Image.vue.d.ts +14 -5
  42. package/dist/components/Image/Image.vue.d.ts.map +1 -1
  43. package/dist/components/Image/props.d.ts +4 -0
  44. package/dist/components/Image/props.d.ts.map +1 -1
  45. package/dist/components/Modal/Modal.vue.d.ts +10 -10
  46. package/dist/components/Modal/props.d.ts +2 -2
  47. package/dist/components/Modal/props.d.ts.map +1 -1
  48. package/dist/components/QueryForm/QueryForm.vue.d.ts +2 -2
  49. package/dist/components/QueryForm/QueryForm.vue.d.ts.map +1 -1
  50. package/dist/components/QueryForm/TagContent.vue.d.ts +16 -0
  51. package/dist/components/QueryForm/TagContent.vue.d.ts.map +1 -0
  52. package/dist/components/QueryForm/contants.d.ts +2 -0
  53. package/dist/components/QueryForm/contants.d.ts.map +1 -0
  54. package/dist/components/QueryForm/types.d.ts +5 -1
  55. package/dist/components/QueryForm/types.d.ts.map +1 -1
  56. package/dist/components/QueryForm/utils.d.ts +1 -0
  57. package/dist/components/QueryForm/utils.d.ts.map +1 -1
  58. package/dist/components/RadioGroup/RadioGroup.vue.d.ts +2 -2
  59. package/dist/components/Select/Select.vue.d.ts +7 -6
  60. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  61. package/dist/components/Select/types.d.ts +1 -0
  62. package/dist/components/Select/types.d.ts.map +1 -1
  63. package/dist/index.cjs +26 -26
  64. package/dist/index.js +2380 -2124
  65. package/dist/style.css +1 -1
  66. package/package.json +3 -2
@@ -1,10 +1,14 @@
1
+ import { FormFieldInstanceType } from '../FormFields/types';
1
2
  import { queryFormProps } from './props';
2
3
  import { FormInstance } from 'element-plus';
3
- import { ExtractPropTypes } from 'vue';
4
+ import { ExtractPropTypes, ShallowRef } from 'vue';
4
5
 
5
6
  export type QueryFormPropsType = ExtractPropTypes<typeof queryFormProps>;
6
7
  export type QueryFormInstanceType = Pick<FormInstance, 'validate' | 'validateField' | 'resetFields' | 'clearValidate' | 'scrollToField'> & {
7
8
  getFormData: () => any;
8
9
  restore: () => void;
9
10
  };
11
+ export type QueryFormContextType = {
12
+ formItemRefs: ShallowRef<Record<string, FormFieldInstanceType<any>>>;
13
+ };
10
14
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QueryForm/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,OAAO,cAAc,CAAC,CAAC;AAEzE,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,YAAY,EACV,UAAU,GACV,eAAe,GACf,aAAa,GACb,eAAe,GACf,eAAe,CAClB,GAAG;IACF,WAAW,EAAE,MAAM,GAAG,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QueryForm/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,OAAO,cAAc,CAAC,CAAC;AAEzE,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,YAAY,EACV,UAAU,GACV,eAAe,GACf,aAAa,GACb,eAAe,GACf,eAAe,CAClB,GAAG;IACF,WAAW,EAAE,MAAM,GAAG,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,YAAY,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACtE,CAAC"}
@@ -5,4 +5,5 @@ export declare const buildResponsiveVars: (value: number | ResponsiveVars) => Re
5
5
  export declare const getItemsClassName: (gutter: QueryFormPropsType["gutter"]) => string;
6
6
  export declare const getItemWrapperClassName: (gutter: QueryFormPropsType["gutter"], width: QueryFormPropsType["width"]) => string;
7
7
  export declare const getItemWrapperWidth: (breakpoint: keyof ResponsiveVars, width: QueryFormPropsType["width"]) => number;
8
+ export declare const getIsTagShow: (value: any) => boolean;
8
9
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/QueryForm/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAS7C,eAAO,MAAM,mBAAmB,UAAW,MAAM,GAAG,cAAc,mBAajE,CAAC;AAEF,eAAO,MAAM,iBAAiB,WAAY,kBAAkB,CAAC,QAAQ,CAAC,WAgCrE,CAAC;AAEF,eAAO,MAAM,uBAAuB,WAC1B,kBAAkB,CAAC,QAAQ,CAAC,SAC7B,kBAAkB,CAAC,OAAO,CAAC,WAwCnC,CAAC;AAEF,eAAO,MAAM,mBAAmB,eAClB,MAAM,cAAc,SACzB,kBAAkB,CAAC,OAAO,CAAC,WAKnC,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/QueryForm/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAS7C,eAAO,MAAM,mBAAmB,UAAW,MAAM,GAAG,cAAc,mBAajE,CAAC;AAEF,eAAO,MAAM,iBAAiB,WAAY,kBAAkB,CAAC,QAAQ,CAAC,WAgCrE,CAAC;AAEF,eAAO,MAAM,uBAAuB,WAC1B,kBAAkB,CAAC,QAAQ,CAAC,SAC7B,kBAAkB,CAAC,OAAO,CAAC,WAwCnC,CAAC;AAEF,eAAO,MAAM,mBAAmB,eAClB,MAAM,cAAc,SACzB,kBAAkB,CAAC,OAAO,CAAC,WAKnC,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,GAAG,YAQtC,CAAC"}
@@ -60,8 +60,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
60
60
  readonly default: true;
61
61
  };
62
62
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
63
- "update:modelValue": (val: string | number | boolean | undefined) => void;
64
63
  change: (val: string | number | boolean | undefined) => void;
64
+ "update:modelValue": (val: string | number | boolean | undefined) => void;
65
65
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
66
66
  options: import('vue').PropType<import('./props').RadioGroupOptionType[]>;
67
67
  ariaLabel: StringConstructor;
@@ -121,8 +121,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
121
121
  readonly default: true;
122
122
  };
123
123
  }>> & Readonly<{
124
- "onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
125
124
  onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
125
+ "onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
126
126
  }>, {
127
127
  modelValue: string | number | boolean;
128
128
  disabled: boolean;
@@ -232,13 +232,14 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
232
232
  }>, {
233
233
  focus: () => void;
234
234
  blur: () => void;
235
+ selectedLabel: import('vue').ComputedRef<string | string[] | undefined>;
235
236
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
236
237
  search: (value?: string | undefined) => void;
237
- "update:modelValue": (value: any) => void;
238
+ blur: (value: FocusEvent) => void;
238
239
  change: (value: any) => void;
239
- clear: () => void;
240
240
  focus: (value: FocusEvent) => void;
241
- blur: (value: FocusEvent) => void;
241
+ "update:modelValue": (value: any) => void;
242
+ clear: () => void;
242
243
  "visible-change": (visible: boolean) => void;
243
244
  "remove-tag": (value: any) => void;
244
245
  "popup-scroll": (data: {
@@ -475,11 +476,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
475
476
  };
476
477
  }>> & Readonly<{
477
478
  onSearch?: ((value?: string | undefined) => any) | undefined;
478
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
479
+ onBlur?: ((value: FocusEvent) => any) | undefined;
479
480
  onChange?: ((value: any) => any) | undefined;
480
- onClear?: (() => any) | undefined;
481
481
  onFocus?: ((value: FocusEvent) => any) | undefined;
482
- onBlur?: ((value: FocusEvent) => any) | undefined;
482
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
483
+ onClear?: (() => any) | undefined;
483
484
  "onVisible-change"?: ((visible: boolean) => any) | undefined;
484
485
  "onRemove-tag"?: ((value: any) => any) | undefined;
485
486
  "onPopup-scroll"?: ((data: {
@@ -1 +1 @@
1
- {"version":3,"file":"Select.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.vue"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAsB,eAAe,EAAE,MAAM,SAAS,CAAC;AAoCnE,iBAAS,cAAc,gDAqUtB;AAcD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AACxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"Select.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.vue"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAsC/C,iBAAS,cAAc,gDAqUtB;AAcD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AACxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -21,5 +21,6 @@ export type SelectSlotsType = {
21
21
  export type SelectInstanceType = {
22
22
  focus: () => void;
23
23
  blur: () => void;
24
+ selectedLabel: string | string[] | undefined;
24
25
  };
25
26
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Select/types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