vue3-curd 1.0.1
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/index.d.ts +6 -0
- package/dist/src/api/app/translation/index.d.ts +9 -0
- package/dist/src/api/app/translation/types.d.ts +24 -0
- package/dist/src/api/system/commonDict/data/index.d.ts +8 -0
- package/dist/src/api/system/commonDict/data/types.d.ts +24 -0
- package/dist/src/api/system/dict/data/index.d.ts +8 -0
- package/dist/src/api/system/dict/data/types.d.ts +24 -0
- package/dist/src/api/system/oss/index.d.ts +6 -0
- package/dist/src/api/system/oss/types.d.ts +21 -0
- package/dist/src/components/CURD/composables/useDictData.d.ts +6 -0
- package/dist/src/components/CURD/composables/useFormData.d.ts +6 -0
- package/dist/src/components/CURD/composables/useTableData.d.ts +30 -0
- package/dist/src/components/CURD/constants.d.ts +20 -0
- package/dist/src/components/CURD/curdEdit.d.ts +55 -0
- package/dist/src/components/CURD/curdSearch.d.ts +17 -0
- package/dist/src/components/CURD/curdTable.d.ts +42 -0
- package/dist/src/components/CURD/index.d.ts +274 -0
- package/dist/src/components/CURD/types.d.ts +165 -0
- package/dist/src/components/CURD/utils.d.ts +15 -0
- package/dist/src/components/DictTag/index.d.ts +24 -0
- package/dist/src/components/Editor/index.d.ts +237 -0
- package/dist/src/components/FileUpload/index.d.ts +63 -0
- package/dist/src/components/ImageUpload/index.d.ts +107 -0
- package/dist/src/components/OssImagePreview/index.d.ts +26 -0
- package/dist/src/components/SvgIcon/index.d.ts +41 -0
- package/dist/src/components/TranslateInput/index.d.ts +27 -0
- package/dist/src/components/ossFile/index.d.ts +34 -0
- package/dist/src/directive/common/copyText.d.ts +5 -0
- package/dist/src/directive/curd-perm.d.ts +9 -0
- package/dist/src/index.d.ts +16 -0
- package/dist/src/plugin.d.ts +14 -0
- package/dist/src/plugins/modal.d.ts +20 -0
- package/dist/src/store/modules/dict.d.ts +56 -0
- package/dist/src/store/modules/translation.d.ts +88 -0
- package/dist/src/utils/dict.d.ts +8 -0
- package/dist/src/utils/download.d.ts +1 -0
- package/dist/src/utils/errorCode.d.ts +2 -0
- package/dist/src/utils/http.d.ts +7 -0
- package/dist/src/utils/index.d.ts +23 -0
- package/dist/src/utils/propTypes.d.ts +12 -0
- package/dist/src/utils/ruoyi.d.ts +15 -0
- package/dist/src/utils/translation.d.ts +5 -0
- package/dist/style.css +1 -0
- package/dist/vue3-curd.es.js +3089 -0
- package/dist/vue3-curd.es.js.map +1 -0
- package/dist/vue3-curd.umd.js +2 -0
- package/dist/vue3-curd.umd.js.map +1 -0
- package/package.json +103 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
export interface ColumnConfig {
|
|
2
|
+
fixed?: string | boolean;
|
|
3
|
+
prop: string;
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
slot?: string;
|
|
7
|
+
width?: string | number;
|
|
8
|
+
minWidth?: string | number;
|
|
9
|
+
align?: 'left' | 'center' | 'right';
|
|
10
|
+
type?: ColumnType;
|
|
11
|
+
sort?: boolean;
|
|
12
|
+
dictType?: string;
|
|
13
|
+
canEdit?: boolean;
|
|
14
|
+
canUpdate?: boolean;
|
|
15
|
+
canCreate?: boolean;
|
|
16
|
+
showOverflowTooltip?: boolean;
|
|
17
|
+
prefix?: string;
|
|
18
|
+
suffix?: string;
|
|
19
|
+
displayField?: string;
|
|
20
|
+
tagLabel?: string;
|
|
21
|
+
tagType?: string;
|
|
22
|
+
tagEffect?: 'dark' | 'light' | 'plain';
|
|
23
|
+
activeValue?: any;
|
|
24
|
+
inactiveValue?: any;
|
|
25
|
+
data?: any[];
|
|
26
|
+
form?: FormConfig;
|
|
27
|
+
search?: SearchConfig;
|
|
28
|
+
}
|
|
29
|
+
export type ColumnType = 'textarea' | 'text' | 'number' | 'date' | 'datetime' | 'timestamp' | 'image' | 'networkImage' | 'imageUrl' | 'bool' | 'switch' | 'color' | 'fromDict' | 'fromDataTag' | 'localDict' | 'tag' | 'tagArrayObj' | 'tags' | 'dictTag' | 'commonDictTag' | 'svg' | 'ossFile' | 'file' | 'password';
|
|
30
|
+
export interface FormConfig {
|
|
31
|
+
showWordLimit?: boolean;
|
|
32
|
+
type?: FormFieldType;
|
|
33
|
+
prop?: string;
|
|
34
|
+
order?: number;
|
|
35
|
+
required?: boolean;
|
|
36
|
+
rules?: any[];
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
rows?: number;
|
|
39
|
+
min?: number;
|
|
40
|
+
max?: number;
|
|
41
|
+
multiple?: boolean;
|
|
42
|
+
data?: any[];
|
|
43
|
+
value?: string;
|
|
44
|
+
label?: string;
|
|
45
|
+
dictType?: string;
|
|
46
|
+
api?: (...args: any[]) => Promise<any>;
|
|
47
|
+
props?: any;
|
|
48
|
+
valueKey?: string;
|
|
49
|
+
activeValue?: any;
|
|
50
|
+
inactiveValue?: any;
|
|
51
|
+
defaultValue?: any;
|
|
52
|
+
limit?: number;
|
|
53
|
+
fileType?: string[];
|
|
54
|
+
fileSize?: number;
|
|
55
|
+
list?: any[];
|
|
56
|
+
translate?: boolean;
|
|
57
|
+
inline?: boolean;
|
|
58
|
+
labelWidth?: string | number;
|
|
59
|
+
suffix?: any;
|
|
60
|
+
prefix?: any;
|
|
61
|
+
defaultExpandedKeys?: any[];
|
|
62
|
+
filterable?: boolean;
|
|
63
|
+
autoExpandFirstLevel?: boolean;
|
|
64
|
+
rangeBeginProp?: string;
|
|
65
|
+
rangeEndProp?: string;
|
|
66
|
+
apiParams?: any;
|
|
67
|
+
}
|
|
68
|
+
export type FormFieldType = 'text' | 'textarea' | 'number' | 'inputNumber' | 'password' | 'select' | 'selectDict' | 'selectCommonDict' | 'selectApi' | 'date' | 'datetime' | 'daterange' | 'timerange' | 'image' | 'file' | 'switch' | 'checkbox' | 'checkboxGroup' | 'checkboxCommonDict' | 'checkboxDict' | 'radioDict' | 'radioCommonDict' | 'radioLocalDict' | 'radioApi' | 'treeSelectApi' | 'color' | 'richtext';
|
|
69
|
+
export interface SearchConfig {
|
|
70
|
+
type?: SearchFieldType;
|
|
71
|
+
default?: any;
|
|
72
|
+
order?: number;
|
|
73
|
+
labelWidth?: string | number;
|
|
74
|
+
dictType?: string;
|
|
75
|
+
api?: (...args: any[]) => Promise<any>;
|
|
76
|
+
apiParams?: any;
|
|
77
|
+
label?: string;
|
|
78
|
+
value?: string;
|
|
79
|
+
data?: any[];
|
|
80
|
+
prop?: string;
|
|
81
|
+
props?: any;
|
|
82
|
+
valueKey?: string;
|
|
83
|
+
defaultExpandedKeys?: any[];
|
|
84
|
+
}
|
|
85
|
+
export type SearchFieldType = 'text' | 'number' | 'daterange' | 'timerange' | 'selectApi' | 'selectDict' | 'selectCommonDict' | 'treeSelectApi' | 'selectData';
|
|
86
|
+
export interface ActionConfig {
|
|
87
|
+
action: ActionType | ((...args: any[]) => any);
|
|
88
|
+
text?: string;
|
|
89
|
+
title?: string;
|
|
90
|
+
icon?: string;
|
|
91
|
+
cssType?: string;
|
|
92
|
+
position?: 'top' | 'table';
|
|
93
|
+
permission?: string | string[];
|
|
94
|
+
width?: string | number;
|
|
95
|
+
labelWidth?: string | number;
|
|
96
|
+
labelPosition?: 'left' | 'right' | 'top';
|
|
97
|
+
confirm?: string;
|
|
98
|
+
confirmText?: string;
|
|
99
|
+
url?: string;
|
|
100
|
+
pm?: string;
|
|
101
|
+
show?: Record<string, any>;
|
|
102
|
+
disable?: Record<string, any>;
|
|
103
|
+
enable?: Record<string, any>;
|
|
104
|
+
}
|
|
105
|
+
export type ActionType = 'create' | 'update' | 'delete' | 'view' | 'viewDetail' | 'export' | 'filter' | 'searchVisible' | 'back';
|
|
106
|
+
export interface DataSourceConfig {
|
|
107
|
+
columns: ColumnConfig[];
|
|
108
|
+
actions?: ActionConfig[];
|
|
109
|
+
rowKey: string;
|
|
110
|
+
listApi?: (...args: any[]) => Promise<any>;
|
|
111
|
+
addApi?: (...args: any[]) => Promise<any>;
|
|
112
|
+
updateApi?: (...args: any[]) => Promise<any>;
|
|
113
|
+
deleteApi?: (...args: any[]) => Promise<any>;
|
|
114
|
+
exportUrl?: string;
|
|
115
|
+
queryParams?: Record<string, any>;
|
|
116
|
+
initialPageSize?: number;
|
|
117
|
+
paging?: boolean;
|
|
118
|
+
showSelection?: boolean;
|
|
119
|
+
disabledCheckedRowKeys?: Array<string | number>;
|
|
120
|
+
checkedRowKeys?: Array<string | number>;
|
|
121
|
+
showIndex?: boolean;
|
|
122
|
+
align?: 'left' | 'center' | 'right';
|
|
123
|
+
treeProps?: any;
|
|
124
|
+
treeDefaultExpandAll?: boolean;
|
|
125
|
+
formInline?: boolean;
|
|
126
|
+
formLabelWidth?: string | number;
|
|
127
|
+
searchLabelWidth?: string | number;
|
|
128
|
+
showBatchDeleteButton?: boolean;
|
|
129
|
+
searchColumnsPerRow?: number;
|
|
130
|
+
searchActionColSpan?: number;
|
|
131
|
+
showSearchCard?: boolean;
|
|
132
|
+
exportFileName?: string;
|
|
133
|
+
beforeAction?: (ev: any, data: any) => Promise<any>;
|
|
134
|
+
beforeQuery?: (params: any) => Promise<any>;
|
|
135
|
+
beforeSave?: (data: any) => any;
|
|
136
|
+
beforeExport?: (queryParams: any) => Promise<boolean>;
|
|
137
|
+
beforeCreate?: (data: any) => boolean | Promise<boolean>;
|
|
138
|
+
beforeUpdate?: (data: any) => boolean | Promise<boolean>;
|
|
139
|
+
beforeDelete?: (data: any) => boolean | Promise<boolean>;
|
|
140
|
+
beforeInitEdit?: (data: any) => any;
|
|
141
|
+
initEditData?: (data: any) => void;
|
|
142
|
+
afterQuery?: (data: any) => Promise<void>;
|
|
143
|
+
selectionChange?: (val: any) => void;
|
|
144
|
+
rowClick?: (row: any, column?: any, event?: Event) => void;
|
|
145
|
+
actionColumnWidth?: number | string;
|
|
146
|
+
maxHeight?: number | string;
|
|
147
|
+
data?: any;
|
|
148
|
+
exportButtonName?: string;
|
|
149
|
+
}
|
|
150
|
+
export interface PageOptions {
|
|
151
|
+
pageSize: number;
|
|
152
|
+
pageNum: number;
|
|
153
|
+
total: number;
|
|
154
|
+
orderByColumn?: string;
|
|
155
|
+
isAsc?: string;
|
|
156
|
+
}
|
|
157
|
+
export interface DictItem {
|
|
158
|
+
label: string;
|
|
159
|
+
value: any;
|
|
160
|
+
tagType?: string;
|
|
161
|
+
}
|
|
162
|
+
export interface ActionEvent {
|
|
163
|
+
action: ActionType | string | ((...args: any[]) => any);
|
|
164
|
+
[key: string]: any;
|
|
165
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ColumnConfig } from './types';
|
|
2
|
+
export declare function deleteEmptyParams(params: any): Record<string, any>;
|
|
3
|
+
export declare function calculateColumnWidth(column: ColumnConfig): string;
|
|
4
|
+
export declare function getDeepProperty(data: any, column: ColumnConfig): any;
|
|
5
|
+
export declare function findDictLabel(dictData: any[], value: any): string;
|
|
6
|
+
export declare function findDictTagType(dictData: any[], value: any): string;
|
|
7
|
+
export declare function initializeColumns(columns: ColumnConfig[]): void;
|
|
8
|
+
export declare function initializeFormRules(columns: ColumnConfig[]): void;
|
|
9
|
+
export declare function sortColumns<T extends {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}>(columns: T[], key?: string): T[];
|
|
12
|
+
export declare function filterEditableColumns(columns: ColumnConfig[], isUpdate: boolean, hasKeyId: boolean): ColumnConfig[];
|
|
13
|
+
export declare function isButtonVisible(data: any, action: any): boolean;
|
|
14
|
+
export declare function isButtonDisabled(data: any, action: any): boolean;
|
|
15
|
+
export declare function formatDateRangeParams(queryParams: any, dateRange: any[], propName: string, proxy: any): void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
3
|
+
options: {
|
|
4
|
+
type: PropType<DictDataOption[]>;
|
|
5
|
+
default: any;
|
|
6
|
+
};
|
|
7
|
+
value: {
|
|
8
|
+
type: PropType<number | string | Array<number | string> | undefined>;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
12
|
+
options: {
|
|
13
|
+
type: PropType<DictDataOption[]>;
|
|
14
|
+
default: any;
|
|
15
|
+
};
|
|
16
|
+
value: {
|
|
17
|
+
type: PropType<number | string | Array<number | string> | undefined>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{}>, {
|
|
21
|
+
options: DictDataOption[];
|
|
22
|
+
value: string | number | (string | number)[];
|
|
23
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { Quill } from '@vueup/vue-quill';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, VNodeProps, AllowedComponentProps, ComponentCustomProps, GlobalComponents, GlobalDirectives } from 'vue';
|
|
3
|
+
import { VueTypeValidableDef } from 'vue-types';
|
|
4
|
+
import { b } from 'node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs';
|
|
5
|
+
declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
6
|
+
modelValue: VueTypeValidableDef<string, b<string>> & {
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
height: VueTypeValidableDef<number, b<number>> & {
|
|
10
|
+
default: number;
|
|
11
|
+
} & {
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
minHeight: VueTypeValidableDef<number, b<number>> & {
|
|
15
|
+
default: number;
|
|
16
|
+
} & {
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
readOnly: VueTypeValidableDef<boolean, b<boolean>> & {
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
fileSize: VueTypeValidableDef<number, b<number>> & {
|
|
23
|
+
default: number;
|
|
24
|
+
} & {
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
27
|
+
type: VueTypeValidableDef<string, b<string>> & {
|
|
28
|
+
default: string;
|
|
29
|
+
} & {
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
33
|
+
"update:modelValue": (...args: any[]) => void;
|
|
34
|
+
}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
35
|
+
modelValue: VueTypeValidableDef<string, b<string>> & {
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
height: VueTypeValidableDef<number, b<number>> & {
|
|
39
|
+
default: number;
|
|
40
|
+
} & {
|
|
41
|
+
default: number;
|
|
42
|
+
};
|
|
43
|
+
minHeight: VueTypeValidableDef<number, b<number>> & {
|
|
44
|
+
default: number;
|
|
45
|
+
} & {
|
|
46
|
+
default: number;
|
|
47
|
+
};
|
|
48
|
+
readOnly: VueTypeValidableDef<boolean, b<boolean>> & {
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
fileSize: VueTypeValidableDef<number, b<number>> & {
|
|
52
|
+
default: number;
|
|
53
|
+
} & {
|
|
54
|
+
default: number;
|
|
55
|
+
};
|
|
56
|
+
type: VueTypeValidableDef<string, b<string>> & {
|
|
57
|
+
default: string;
|
|
58
|
+
} & {
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
}>> & Readonly<{
|
|
62
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
63
|
+
}>, {
|
|
64
|
+
modelValue: string;
|
|
65
|
+
height: number;
|
|
66
|
+
type: string;
|
|
67
|
+
minHeight: number;
|
|
68
|
+
readOnly: boolean;
|
|
69
|
+
fileSize: number;
|
|
70
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
71
|
+
uploadRef: HTMLElement;
|
|
72
|
+
quillEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
73
|
+
content: {
|
|
74
|
+
type: PropType<string | import("quill-delta")>;
|
|
75
|
+
};
|
|
76
|
+
contentType: {
|
|
77
|
+
type: PropType<"delta" | "html" | "text">;
|
|
78
|
+
default: string;
|
|
79
|
+
validator: (value: string) => boolean;
|
|
80
|
+
};
|
|
81
|
+
enable: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
readOnly: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
placeholder: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
required: false;
|
|
92
|
+
};
|
|
93
|
+
theme: {
|
|
94
|
+
type: PropType<"" | "snow" | "bubble">;
|
|
95
|
+
default: string;
|
|
96
|
+
validator: (value: string) => boolean;
|
|
97
|
+
};
|
|
98
|
+
toolbar: {
|
|
99
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
100
|
+
required: false;
|
|
101
|
+
validator: (value: string | unknown) => boolean;
|
|
102
|
+
};
|
|
103
|
+
modules: {
|
|
104
|
+
type: PropType<{
|
|
105
|
+
name: string;
|
|
106
|
+
module: unknown;
|
|
107
|
+
options?: object;
|
|
108
|
+
} | {
|
|
109
|
+
name: string;
|
|
110
|
+
module: unknown;
|
|
111
|
+
options?: object;
|
|
112
|
+
}[]>;
|
|
113
|
+
required: false;
|
|
114
|
+
};
|
|
115
|
+
options: {
|
|
116
|
+
type: PropType<QuillOptionsStatic>;
|
|
117
|
+
required: false;
|
|
118
|
+
};
|
|
119
|
+
globalOptions: {
|
|
120
|
+
type: PropType<QuillOptionsStatic>;
|
|
121
|
+
required: false;
|
|
122
|
+
};
|
|
123
|
+
}>> & {
|
|
124
|
+
onTextChange?: ((...args: any[]) => any) | undefined;
|
|
125
|
+
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
|
126
|
+
onEditorChange?: ((...args: any[]) => any) | undefined;
|
|
127
|
+
"onUpdate:content"?: ((...args: any[]) => any) | undefined;
|
|
128
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
129
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
130
|
+
onReady?: ((...args: any[]) => any) | undefined;
|
|
131
|
+
}, {
|
|
132
|
+
editor: Ref<Element | undefined>;
|
|
133
|
+
getEditor: () => Element;
|
|
134
|
+
getToolbar: () => Element;
|
|
135
|
+
getQuill: () => Quill;
|
|
136
|
+
getContents: (index?: number, length?: number) => string | import("quill-delta") | undefined;
|
|
137
|
+
setContents: (content: string | import("quill-delta"), source?: Sources) => void;
|
|
138
|
+
getHTML: () => string;
|
|
139
|
+
setHTML: (html: string) => void;
|
|
140
|
+
pasteHTML: (html: string, source?: Sources) => void;
|
|
141
|
+
focus: () => void;
|
|
142
|
+
getText: (index?: number, length?: number) => string;
|
|
143
|
+
setText: (text: string, source?: Sources) => void;
|
|
144
|
+
reinit: () => void;
|
|
145
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("blur" | "selectionChange" | "focus" | "textChange" | "editorChange" | "update:content" | "ready")[], VNodeProps & AllowedComponentProps & ComponentCustomProps, {
|
|
146
|
+
contentType: "delta" | "html" | "text";
|
|
147
|
+
enable: boolean;
|
|
148
|
+
readOnly: boolean;
|
|
149
|
+
theme: "" | "snow" | "bubble";
|
|
150
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
151
|
+
P: {};
|
|
152
|
+
B: {};
|
|
153
|
+
D: {};
|
|
154
|
+
C: {};
|
|
155
|
+
M: {};
|
|
156
|
+
Defaults: {};
|
|
157
|
+
}, Readonly<globalThis.ExtractPropTypes<{
|
|
158
|
+
content: {
|
|
159
|
+
type: PropType<string | import("quill-delta")>;
|
|
160
|
+
};
|
|
161
|
+
contentType: {
|
|
162
|
+
type: PropType<"delta" | "html" | "text">;
|
|
163
|
+
default: string;
|
|
164
|
+
validator: (value: string) => boolean;
|
|
165
|
+
};
|
|
166
|
+
enable: {
|
|
167
|
+
type: BooleanConstructor;
|
|
168
|
+
default: boolean;
|
|
169
|
+
};
|
|
170
|
+
readOnly: {
|
|
171
|
+
type: BooleanConstructor;
|
|
172
|
+
default: boolean;
|
|
173
|
+
};
|
|
174
|
+
placeholder: {
|
|
175
|
+
type: StringConstructor;
|
|
176
|
+
required: false;
|
|
177
|
+
};
|
|
178
|
+
theme: {
|
|
179
|
+
type: PropType<"" | "snow" | "bubble">;
|
|
180
|
+
default: string;
|
|
181
|
+
validator: (value: string) => boolean;
|
|
182
|
+
};
|
|
183
|
+
toolbar: {
|
|
184
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
185
|
+
required: false;
|
|
186
|
+
validator: (value: string | unknown) => boolean;
|
|
187
|
+
};
|
|
188
|
+
modules: {
|
|
189
|
+
type: PropType<{
|
|
190
|
+
name: string;
|
|
191
|
+
module: unknown;
|
|
192
|
+
options?: object;
|
|
193
|
+
} | {
|
|
194
|
+
name: string;
|
|
195
|
+
module: unknown;
|
|
196
|
+
options?: object;
|
|
197
|
+
}[]>;
|
|
198
|
+
required: false;
|
|
199
|
+
};
|
|
200
|
+
options: {
|
|
201
|
+
type: PropType<QuillOptionsStatic>;
|
|
202
|
+
required: false;
|
|
203
|
+
};
|
|
204
|
+
globalOptions: {
|
|
205
|
+
type: PropType<QuillOptionsStatic>;
|
|
206
|
+
required: false;
|
|
207
|
+
};
|
|
208
|
+
}>> & {
|
|
209
|
+
onTextChange?: ((...args: any[]) => any) | undefined;
|
|
210
|
+
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
|
211
|
+
onEditorChange?: ((...args: any[]) => any) | undefined;
|
|
212
|
+
"onUpdate:content"?: ((...args: any[]) => any) | undefined;
|
|
213
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
214
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
215
|
+
onReady?: ((...args: any[]) => any) | undefined;
|
|
216
|
+
}, {
|
|
217
|
+
editor: Ref<Element | undefined>;
|
|
218
|
+
getEditor: () => Element;
|
|
219
|
+
getToolbar: () => Element;
|
|
220
|
+
getQuill: () => Quill;
|
|
221
|
+
getContents: (index?: number, length?: number) => string | import("quill-delta") | undefined;
|
|
222
|
+
setContents: (content: string | import("quill-delta"), source?: Sources) => void;
|
|
223
|
+
getHTML: () => string;
|
|
224
|
+
setHTML: (html: string) => void;
|
|
225
|
+
pasteHTML: (html: string, source?: Sources) => void;
|
|
226
|
+
focus: () => void;
|
|
227
|
+
getText: (index?: number, length?: number) => string;
|
|
228
|
+
setText: (text: string, source?: Sources) => void;
|
|
229
|
+
reinit: () => void;
|
|
230
|
+
}, {}, {}, {}, {
|
|
231
|
+
contentType: "delta" | "html" | "text";
|
|
232
|
+
enable: boolean;
|
|
233
|
+
readOnly: boolean;
|
|
234
|
+
theme: "" | "snow" | "bubble";
|
|
235
|
+
}>;
|
|
236
|
+
}, any>;
|
|
237
|
+
export default _default;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { VueTypeValidableDef } from 'vue-types';
|
|
3
|
+
import { b } from 'node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs';
|
|
4
|
+
declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
5
|
+
modelValue: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
6
|
+
limit: VueTypeValidableDef<number, b<number>> & {
|
|
7
|
+
default: number;
|
|
8
|
+
} & {
|
|
9
|
+
default: number;
|
|
10
|
+
};
|
|
11
|
+
fileSize: VueTypeValidableDef<number, b<number>> & {
|
|
12
|
+
default: number;
|
|
13
|
+
} & {
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
fileType: VueTypeValidableDef<unknown[], b<unknown[]>> & {
|
|
17
|
+
default: () => unknown[];
|
|
18
|
+
} & {
|
|
19
|
+
default: () => unknown[];
|
|
20
|
+
};
|
|
21
|
+
showTip: VueTypeValidableDef<boolean, b<boolean>> & {
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
showFileList: VueTypeValidableDef<boolean, b<boolean>> & {
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
28
|
+
"update:modelValue": (...args: any[]) => void;
|
|
29
|
+
}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
30
|
+
modelValue: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
31
|
+
limit: VueTypeValidableDef<number, b<number>> & {
|
|
32
|
+
default: number;
|
|
33
|
+
} & {
|
|
34
|
+
default: number;
|
|
35
|
+
};
|
|
36
|
+
fileSize: VueTypeValidableDef<number, b<number>> & {
|
|
37
|
+
default: number;
|
|
38
|
+
} & {
|
|
39
|
+
default: number;
|
|
40
|
+
};
|
|
41
|
+
fileType: VueTypeValidableDef<unknown[], b<unknown[]>> & {
|
|
42
|
+
default: () => unknown[];
|
|
43
|
+
} & {
|
|
44
|
+
default: () => unknown[];
|
|
45
|
+
};
|
|
46
|
+
showTip: VueTypeValidableDef<boolean, b<boolean>> & {
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
showFileList: VueTypeValidableDef<boolean, b<boolean>> & {
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
}>> & Readonly<{
|
|
53
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
54
|
+
}>, {
|
|
55
|
+
fileSize: number;
|
|
56
|
+
showFileList: boolean;
|
|
57
|
+
limit: number;
|
|
58
|
+
fileType: unknown[];
|
|
59
|
+
showTip: boolean;
|
|
60
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
61
|
+
fileUploadRef: unknown;
|
|
62
|
+
}, HTMLDivElement>;
|
|
63
|
+
export default _default;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { VueTypeValidableDef } from 'vue-types';
|
|
3
|
+
import { b } from 'node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs';
|
|
4
|
+
declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
7
|
+
default: () => any[];
|
|
8
|
+
};
|
|
9
|
+
limit: VueTypeValidableDef<number, b<number>> & {
|
|
10
|
+
default: number;
|
|
11
|
+
} & {
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
fileSize: VueTypeValidableDef<number, b<number>> & {
|
|
15
|
+
default: number;
|
|
16
|
+
} & {
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
fileType: VueTypeValidableDef<unknown[], b<unknown[]>> & {
|
|
20
|
+
default: () => unknown[];
|
|
21
|
+
} & {
|
|
22
|
+
default: () => unknown[];
|
|
23
|
+
};
|
|
24
|
+
isShowTip: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
imageSize: VueTypeValidableDef<string, b<string>> & {
|
|
29
|
+
default: string;
|
|
30
|
+
} & {
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
compressSupport: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
compressTargetSize: VueTypeValidableDef<number, b<number>> & {
|
|
38
|
+
default: number;
|
|
39
|
+
} & {
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
height: VueTypeValidableDef<string, b<string>> & {
|
|
43
|
+
default: string;
|
|
44
|
+
} & {
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
48
|
+
"update:modelValue": (...args: any[]) => void;
|
|
49
|
+
}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
50
|
+
modelValue: {
|
|
51
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
52
|
+
default: () => any[];
|
|
53
|
+
};
|
|
54
|
+
limit: VueTypeValidableDef<number, b<number>> & {
|
|
55
|
+
default: number;
|
|
56
|
+
} & {
|
|
57
|
+
default: number;
|
|
58
|
+
};
|
|
59
|
+
fileSize: VueTypeValidableDef<number, b<number>> & {
|
|
60
|
+
default: number;
|
|
61
|
+
} & {
|
|
62
|
+
default: number;
|
|
63
|
+
};
|
|
64
|
+
fileType: VueTypeValidableDef<unknown[], b<unknown[]>> & {
|
|
65
|
+
default: () => unknown[];
|
|
66
|
+
} & {
|
|
67
|
+
default: () => unknown[];
|
|
68
|
+
};
|
|
69
|
+
isShowTip: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
imageSize: VueTypeValidableDef<string, b<string>> & {
|
|
74
|
+
default: string;
|
|
75
|
+
} & {
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
compressSupport: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
compressTargetSize: VueTypeValidableDef<number, b<number>> & {
|
|
83
|
+
default: number;
|
|
84
|
+
} & {
|
|
85
|
+
default: number;
|
|
86
|
+
};
|
|
87
|
+
height: VueTypeValidableDef<string, b<string>> & {
|
|
88
|
+
default: string;
|
|
89
|
+
} & {
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
}>> & Readonly<{
|
|
93
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
94
|
+
}>, {
|
|
95
|
+
modelValue: string | unknown[] | Record<string, any>;
|
|
96
|
+
height: string;
|
|
97
|
+
fileSize: number;
|
|
98
|
+
limit: number;
|
|
99
|
+
fileType: unknown[];
|
|
100
|
+
isShowTip: boolean;
|
|
101
|
+
imageSize: string;
|
|
102
|
+
compressSupport: boolean;
|
|
103
|
+
compressTargetSize: number;
|
|
104
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
105
|
+
imageUploadRef: unknown;
|
|
106
|
+
}, HTMLDivElement>;
|
|
107
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
3
|
+
modelValue: (StringConstructor | ObjectConstructor | ArrayConstructor | NumberConstructor)[];
|
|
4
|
+
width: {
|
|
5
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
height: {
|
|
9
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
13
|
+
modelValue: (StringConstructor | ObjectConstructor | ArrayConstructor | NumberConstructor)[];
|
|
14
|
+
width: {
|
|
15
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
height: {
|
|
19
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
}>> & Readonly<{}>, {
|
|
23
|
+
width: string | number;
|
|
24
|
+
height: string | number;
|
|
25
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { VueTypeValidableDef } from 'vue-types';
|
|
3
|
+
import { b } from 'node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs';
|
|
4
|
+
declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
5
|
+
iconClass: VueTypeValidableDef<string, b<string>> & {
|
|
6
|
+
default: string;
|
|
7
|
+
} & {
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
className: VueTypeValidableDef<string, b<string>> & {
|
|
11
|
+
default: string;
|
|
12
|
+
} & {
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
color: VueTypeValidableDef<string, b<string>> & {
|
|
16
|
+
default: string;
|
|
17
|
+
} & {
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
21
|
+
iconClass: VueTypeValidableDef<string, b<string>> & {
|
|
22
|
+
default: string;
|
|
23
|
+
} & {
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
className: VueTypeValidableDef<string, b<string>> & {
|
|
27
|
+
default: string;
|
|
28
|
+
} & {
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
color: VueTypeValidableDef<string, b<string>> & {
|
|
32
|
+
default: string;
|
|
33
|
+
} & {
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
}>> & Readonly<{}>, {
|
|
37
|
+
iconClass: string;
|
|
38
|
+
color: string;
|
|
39
|
+
className: string;
|
|
40
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
41
|
+
export default _default;
|