@borurio-print/print-designer 1.0.8 → 1.0.10

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 (31) hide show
  1. package/README.md +2 -1
  2. package/dist-lib/components/ElButton.vue.d.ts +28 -0
  3. package/dist-lib/components/ElButtonGroup.vue.d.ts +13 -0
  4. package/dist-lib/components/ElCheckbox.vue.d.ts +26 -0
  5. package/dist-lib/components/ElDatePicker.vue.d.ts +18 -0
  6. package/dist-lib/components/ElDialog.vue.d.ts +39 -0
  7. package/dist-lib/components/ElDivider.vue.d.ts +8 -0
  8. package/dist-lib/components/ElDropdown.vue.d.ts +32 -0
  9. package/dist-lib/components/ElDropdownItem.vue.d.ts +19 -0
  10. package/dist-lib/components/ElDropdownMenu.vue.d.ts +13 -0
  11. package/dist-lib/components/ElEmpty.vue.d.ts +20 -0
  12. package/dist-lib/components/ElForm.vue.d.ts +25 -0
  13. package/dist-lib/components/ElFormItem.vue.d.ts +20 -0
  14. package/dist-lib/components/ElInput.vue.d.ts +27 -0
  15. package/dist-lib/components/ElInputNumber.vue.d.ts +25 -0
  16. package/dist-lib/components/ElOption.vue.d.ts +22 -0
  17. package/dist-lib/components/ElRadio.vue.d.ts +20 -0
  18. package/dist-lib/components/ElRadioGroup.vue.d.ts +25 -0
  19. package/dist-lib/components/ElSelect.vue.d.ts +28 -0
  20. package/dist-lib/components/ElSlider.vue.d.ts +24 -0
  21. package/dist-lib/components/ElTooltip.vue.d.ts +20 -0
  22. package/dist-lib/components/uiDropdownContext.d.ts +6 -0
  23. package/dist-lib/components/uiFormContext.d.ts +20 -0
  24. package/dist-lib/components/uiRadioContext.d.ts +7 -0
  25. package/dist-lib/{index-DHRuruEA.js → index-BSUORujY.js} +5083 -4499
  26. package/dist-lib/index.d.ts +1 -1
  27. package/dist-lib/{index.es-DhfItxVp.js → index.es-CImGQms4.js} +2 -2
  28. package/dist-lib/index.js +1 -1
  29. package/dist-lib/{pdfGenerator-d10V0deV.js → pdfGenerator-BlIFWfaN.js} +1 -1
  30. package/dist-lib/style.css +1 -1
  31. package/package.json +1 -4
package/README.md CHANGED
@@ -36,9 +36,10 @@
36
36
  当前包名为 `@borurio-print/print-designer`。业务项目需要已安装下列 peer dependencies:
37
37
 
38
38
  - Vue `>=3.2.45 <4.0.0`
39
- - Element Plus `>=2.3.2 <3.0.0`
40
39
  - vue-i18n `>=9.2.2 <12.0.0`
41
40
 
41
+ 设计器使用内置原生 UI 控件,不依赖业务系统的 Element Plus 版本或样式。
42
+
42
43
  ```bash
43
44
  npm install @borurio-print/print-designer
44
45
  ```
@@ -0,0 +1,28 @@
1
+ type __VLS_Props = {
2
+ type?: 'primary' | 'danger' | 'default' | string;
3
+ link?: boolean;
4
+ plain?: boolean;
5
+ loading?: boolean;
6
+ disabled?: boolean;
7
+ nativeType?: 'button' | 'submit' | 'reset';
8
+ };
9
+ declare var __VLS_1: {};
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_1) => any;
12
+ };
13
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
14
+ link: boolean;
15
+ type: "primary" | "danger" | "default" | string;
16
+ loading: boolean;
17
+ plain: boolean;
18
+ disabled: boolean;
19
+ nativeType: "button" | "submit" | "reset";
20
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,26 @@
1
+ type __VLS_Props = {
2
+ modelValue?: boolean | string | number;
3
+ disabled?: boolean;
4
+ };
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ change: (value: boolean) => any;
11
+ "update:modelValue": (value: boolean) => any;
12
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ onChange?: (value: boolean) => any;
14
+ "onUpdate:modelValue"?: (value: boolean) => any;
15
+ }>, {
16
+ disabled: boolean;
17
+ modelValue: boolean | string | number;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ modelValue?: string;
3
+ disabled?: boolean;
4
+ placeholder?: string;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ change: (value: string) => any;
8
+ "update:modelValue": (value: string) => any;
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onChange?: (value: string) => any;
11
+ "onUpdate:modelValue"?: (value: string) => any;
12
+ }>, {
13
+ disabled: boolean;
14
+ modelValue: string;
15
+ placeholder: string;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
@@ -0,0 +1,39 @@
1
+ type __VLS_Props = {
2
+ modelValue: boolean;
3
+ title?: string;
4
+ width?: string | number;
5
+ modalClass?: string;
6
+ closeOnClickModal?: boolean;
7
+ closeOnPressEscape?: boolean;
8
+ showClose?: boolean;
9
+ };
10
+ declare var __VLS_7: {}, __VLS_9: {};
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_7) => any;
13
+ } & {
14
+ footer?: (props: typeof __VLS_9) => any;
15
+ };
16
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ close: () => any;
18
+ "update:modelValue": (value: boolean) => any;
19
+ open: () => any;
20
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
21
+ onClose?: () => any;
22
+ "onUpdate:modelValue"?: (value: boolean) => any;
23
+ onOpen?: () => any;
24
+ }>, {
25
+ width: string | number;
26
+ title: string;
27
+ modalClass: string;
28
+ closeOnClickModal: boolean;
29
+ closeOnPressEscape: boolean;
30
+ showClose: boolean;
31
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
33
+ declare const _default: typeof __VLS_export;
34
+ export default _default;
35
+ type __VLS_WithSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
@@ -0,0 +1,8 @@
1
+ type __VLS_Props = {
2
+ direction?: 'horizontal' | 'vertical';
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
5
+ direction: "horizontal" | "vertical";
6
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,32 @@
1
+ import { type CSSProperties } from 'vue';
2
+ type __VLS_Props = {
3
+ disabled?: boolean;
4
+ trigger?: string;
5
+ placement?: string;
6
+ popperClass?: string;
7
+ popperStyle?: CSSProperties | string;
8
+ };
9
+ declare var __VLS_1: {}, __VLS_3: {};
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_1) => any;
12
+ } & {
13
+ dropdown?: (props: typeof __VLS_3) => any;
14
+ };
15
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ command: (value: unknown) => any;
17
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ onCommand?: (value: unknown) => any;
19
+ }>, {
20
+ disabled: boolean;
21
+ popperClass: string;
22
+ placement: string;
23
+ trigger: string;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ type __VLS_WithSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,19 @@
1
+ type __VLS_Props = {
2
+ command?: unknown;
3
+ disabled?: boolean;
4
+ };
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
+ disabled: boolean;
11
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,20 @@
1
+ type __VLS_Props = {
2
+ description?: string;
3
+ imageSize?: number;
4
+ };
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
+ description: string;
11
+ imageSize: number;
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,25 @@
1
+ import { type FormInstance, type FormRules } from './uiFormContext';
2
+ type __VLS_Props = {
3
+ model?: Record<string, unknown>;
4
+ rules?: FormRules;
5
+ labelWidth?: string;
6
+ labelPosition?: 'left' | 'right' | 'top';
7
+ };
8
+ declare var __VLS_1: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_1) => any;
11
+ };
12
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, FormInstance, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
+ model: Record<string, unknown>;
14
+ rules: FormRules;
15
+ labelWidth: string;
16
+ labelPosition: "left" | "right" | "top";
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,20 @@
1
+ type __VLS_Props = {
2
+ label?: string;
3
+ prop?: string;
4
+ };
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
+ label: string;
11
+ prop: string;
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,27 @@
1
+ type __VLS_Props = {
2
+ modelValue?: string | number | null | undefined;
3
+ type?: string;
4
+ rows?: number;
5
+ resize?: string;
6
+ disabled?: boolean;
7
+ maxlength?: number | string | undefined;
8
+ placeholder?: string;
9
+ clearable?: boolean;
10
+ };
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ change: (value: string) => any;
13
+ "update:modelValue": (value: string) => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onChange?: (value: string) => any;
16
+ "onUpdate:modelValue"?: (value: string) => any;
17
+ }>, {
18
+ type: string;
19
+ resize: string;
20
+ disabled: boolean;
21
+ modelValue: string | number | null | undefined;
22
+ rows: number;
23
+ placeholder: string;
24
+ clearable: boolean;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
@@ -0,0 +1,25 @@
1
+ type __VLS_Props = {
2
+ modelValue?: number | undefined;
3
+ min?: number;
4
+ max?: number;
5
+ step?: number;
6
+ precision?: number | undefined;
7
+ controls?: boolean;
8
+ disabled?: boolean;
9
+ valueOnClear?: number | undefined;
10
+ };
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ change: (value: number | undefined) => any;
13
+ "update:modelValue": (value: number | undefined) => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onChange?: (value: number | undefined) => any;
16
+ "onUpdate:modelValue"?: (value: number | undefined) => any;
17
+ }>, {
18
+ disabled: boolean;
19
+ min: number;
20
+ max: number;
21
+ step: number;
22
+ controls: boolean;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ value?: string | number | boolean;
3
+ label?: string | number;
4
+ disabled?: boolean;
5
+ };
6
+ declare var __VLS_1: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_1) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
+ label: string | number;
12
+ disabled: boolean;
13
+ value: string | number | boolean;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
18
+ type __VLS_WithSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,20 @@
1
+ type __VLS_Props = {
2
+ value?: string | number | boolean | undefined;
3
+ label?: string | number | boolean | undefined;
4
+ disabled?: boolean;
5
+ };
6
+ declare var __VLS_1: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_1) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
+ disabled: boolean;
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,25 @@
1
+ type __VLS_Props = {
2
+ modelValue?: string | number | boolean | undefined;
3
+ disabled?: boolean;
4
+ };
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ change: (value: string | number | boolean | undefined) => any;
11
+ "update:modelValue": (value: string | number | boolean | undefined) => any;
12
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ onChange?: (value: string | number | boolean | undefined) => any;
14
+ "onUpdate:modelValue"?: (value: string | number | boolean | undefined) => any;
15
+ }>, {
16
+ disabled: boolean;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,28 @@
1
+ type __VLS_Props = {
2
+ modelValue?: string | number | boolean;
3
+ disabled?: boolean;
4
+ placeholder?: string;
5
+ };
6
+ declare var __VLS_1: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_1) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ change: (value: string) => any;
12
+ "update:modelValue": (value: string) => any;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onChange?: (value: string) => any;
15
+ "onUpdate:modelValue"?: (value: string) => any;
16
+ }>, {
17
+ disabled: boolean;
18
+ modelValue: string | number | boolean;
19
+ placeholder: string;
20
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,24 @@
1
+ type __VLS_Props = {
2
+ modelValue?: number;
3
+ min?: number;
4
+ max?: number;
5
+ step?: number;
6
+ disabled?: boolean;
7
+ showTooltip?: boolean;
8
+ };
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ change: (value: number) => any;
11
+ "update:modelValue": (value: number) => any;
12
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ onChange?: (value: number) => any;
14
+ "onUpdate:modelValue"?: (value: number) => any;
15
+ }>, {
16
+ disabled: boolean;
17
+ modelValue: number;
18
+ min: number;
19
+ max: number;
20
+ step: number;
21
+ showTooltip: boolean;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
@@ -0,0 +1,20 @@
1
+ type __VLS_Props = {
2
+ content?: string;
3
+ disabled?: boolean;
4
+ };
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
+ content: string;
11
+ disabled: boolean;
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,6 @@
1
+ import type { InjectionKey } from 'vue';
2
+ export interface DropdownContext {
3
+ select: (command: unknown) => void;
4
+ close: () => void;
5
+ }
6
+ export declare const dropdownContextKey: InjectionKey<DropdownContext>;
@@ -0,0 +1,20 @@
1
+ import type { InjectionKey, Ref } from 'vue';
2
+ export interface FormItemRule {
3
+ required?: boolean;
4
+ max?: number;
5
+ message?: string;
6
+ trigger?: string | string[];
7
+ validator?: (rule: FormItemRule, value: unknown, callback: (error?: Error) => void) => void | Promise<void>;
8
+ }
9
+ export type FormRules<T extends object = Record<string, unknown>> = Partial<Record<keyof T | string, FormItemRule[]>>;
10
+ export interface FormInstance {
11
+ validate: () => Promise<boolean>;
12
+ clearValidate: () => void;
13
+ }
14
+ export interface FormContext {
15
+ model: Record<string, unknown>;
16
+ errors: Ref<Record<string, string>>;
17
+ validateField: (prop: string) => Promise<boolean>;
18
+ clearValidate: (prop?: string) => void;
19
+ }
20
+ export declare const formContextKey: InjectionKey<FormContext>;
@@ -0,0 +1,7 @@
1
+ import type { InjectionKey } from 'vue';
2
+ export interface RadioContext {
3
+ modelValue: () => unknown;
4
+ update: (value: unknown) => void;
5
+ disabled: () => boolean;
6
+ }
7
+ export declare const radioContextKey: InjectionKey<RadioContext>;