@squirrel-cloud/ui-vue 0.5.8 → 0.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.
- package/dist/index.js +2167 -2959
- package/dist/style.css +1 -1
- package/dist/types/components/alert/index.d.ts +1 -1
- package/dist/types/components/article/Article.d.ts +18 -0
- package/dist/types/components/article/index.d.ts +1 -1
- package/dist/types/components/avatar/index.d.ts +1 -1
- package/dist/types/components/backtop/index.d.ts +1 -1
- package/dist/types/components/badge/index.d.ts +1 -1
- package/dist/types/components/blur/index.d.ts +1 -1
- package/dist/types/components/button/index.d.ts +2 -2
- package/dist/types/components/card/index.d.ts +1 -1
- package/dist/types/components/checkbox/index.d.ts +2 -2
- package/dist/types/components/code/{code.d.ts → Code.d.ts} +1 -1
- package/dist/types/components/code/index.d.ts +1 -1
- package/dist/types/components/dialog/index.d.ts +1 -1
- package/dist/types/components/divider/index.d.ts +1 -1
- package/dist/types/components/form/index.d.ts +1 -1
- package/dist/types/components/image/index.d.ts +2 -2
- package/dist/types/components/image-crop/index.d.ts +1 -1
- package/dist/types/components/index.d.ts +0 -1
- package/dist/types/components/input/index.d.ts +1 -1
- package/dist/types/components/mask/index.d.ts +1 -1
- package/dist/types/components/menu/{menu.d.ts → Menu.d.ts} +1 -1
- package/dist/types/components/menu/index.d.ts +1 -1
- package/dist/types/components/only-child/index.d.ts +1 -1
- package/dist/types/components/pagination/index.d.ts +1 -1
- package/dist/types/components/popover/index.d.ts +1 -1
- package/dist/types/components/progress/index.d.ts +1 -1
- package/dist/types/components/radio/index.d.ts +2 -2
- package/dist/types/components/segmented/index.d.ts +2 -2
- package/dist/types/components/select/{select.d.ts → Select.d.ts} +5 -7
- package/dist/types/components/select/index.d.ts +1 -1
- package/dist/types/components/swipe/index.d.ts +1 -1
- package/dist/types/components/switch/index.d.ts +1 -1
- package/dist/types/components/table/index.d.ts +1 -1
- package/dist/types/components/tag/index.d.ts +2 -2
- package/dist/types/components/text/index.d.ts +1 -1
- package/dist/types/components/timeline/index.d.ts +2 -2
- package/dist/types/components/tooltip/index.d.ts +1 -1
- package/dist/types/components/upload/index.d.ts +1 -1
- package/dist/types/components/vnode-renderer/index.d.ts +1 -1
- package/dist/types/custom/{Form.d.ts → components/Form.d.ts} +2 -2
- package/dist/types/custom/{MenuItem.d.ts → components/MenuItem.d.ts} +1 -1
- package/dist/types/custom/{Message.d.ts → components/Message.d.ts} +1 -1
- package/dist/types/custom/{MessageBox.d.ts → components/MessageBox.d.ts} +1 -1
- package/dist/types/custom/{SegmentedItem.d.ts → components/SegmentedItem.d.ts} +1 -1
- package/dist/types/custom/{SelectItem.d.ts → components/SelectItem.d.ts} +1 -1
- package/dist/types/custom/{TableColItem.d.ts → components/TableColItem.d.ts} +1 -1
- package/dist/types/custom/components/index.d.ts +9 -0
- package/dist/types/custom/index.d.ts +8 -31
- package/dist/types/custom/{Point.d.ts → models/Point.d.ts} +3 -3
- package/dist/types/custom/{RequiredMarkType.d.ts → state/RequiredMarkType.d.ts} +1 -1
- package/dist/types/custom/state/index.d.ts +20 -0
- package/dist/types/props/article/article.d.ts +9 -0
- package/dist/types/props/article/index.d.ts +1 -0
- package/dist/types/props/code/code.d.ts +3 -2
- package/dist/types/props/index.d.ts +0 -1
- package/package.json +19 -10
- package/dist/token-t-oBPrg_.js +0 -31
- package/dist/types/components/article/article.d.ts +0 -38
- package/dist/types/components/editor/editor-blur.d.ts +0 -10
- package/dist/types/components/editor/editor-bold.d.ts +0 -16
- package/dist/types/components/editor/editor-italic.d.ts +0 -16
- package/dist/types/components/editor/editor-ol.d.ts +0 -10
- package/dist/types/components/editor/editor-strikethrough.d.ts +0 -10
- package/dist/types/components/editor/editor-ul.d.ts +0 -10
- package/dist/types/components/editor/editor-underline.d.ts +0 -16
- package/dist/types/components/editor/editor.d.ts +0 -432
- package/dist/types/components/editor/index.d.ts +0 -1
- package/dist/types/custom/MarkdownItPlugin.d.ts +0 -13
- package/dist/types/custom/MdNodeItem.d.ts +0 -21
- package/dist/types/props/editor/editor-control.d.ts +0 -25
- package/dist/types/props/editor/editor.d.ts +0 -38
- package/dist/types/props/editor/index.d.ts +0 -2
- package/dist/types/components/alert/{alert.d.ts → Alert.d.ts} +0 -0
- package/dist/types/components/avatar/{avatar.d.ts → Avatar.d.ts} +0 -0
- package/dist/types/components/backtop/{backtop.d.ts → Backtop.d.ts} +0 -0
- package/dist/types/components/badge/{badge.d.ts → Badge.d.ts} +0 -0
- package/dist/types/components/blur/{blur.d.ts → Blur.d.ts} +0 -0
- package/dist/types/components/button/{button.d.ts → Button.d.ts} +0 -0
- package/dist/types/components/button/{button-group.d.ts → ButtonGroup.d.ts} +0 -0
- package/dist/types/components/card/{card.d.ts → Card.d.ts} +0 -0
- package/dist/types/components/checkbox/{checkbox.d.ts → Checkbox.d.ts} +0 -0
- package/dist/types/components/checkbox/{checkbox-group.d.ts → CheckboxGroup.d.ts} +0 -0
- package/dist/types/components/dialog/{dialog.d.ts → Dialog.d.ts} +0 -0
- package/dist/types/components/divider/{divider.d.ts → Divider.d.ts} +0 -0
- package/dist/types/components/form/{form.d.ts → Form.d.ts} +1 -1
- package/dist/types/components/form/{form-item.d.ts → FormItem.d.ts} +0 -0
- package/dist/types/components/image/{image.d.ts → Image.d.ts} +0 -0
- package/dist/types/components/image/{image-viewer.d.ts → ImageViewer.d.ts} +0 -0
- package/dist/types/components/image-crop/{image-crop.d.ts → ImageCrop.d.ts} +0 -0
- package/dist/types/components/input/{input.d.ts → Input.d.ts} +1 -1
- package/dist/types/components/mask/{mask.d.ts → Mask.d.ts} +0 -0
- package/dist/types/components/message/{message.d.ts → Message.d.ts} +0 -0
- package/dist/types/components/message-box/{message-box.d.ts → MessageBox.d.ts} +0 -0
- package/dist/types/components/only-child/{only-child.d.ts → OnlyChild.d.ts} +0 -0
- package/dist/types/components/pagination/{pagination.d.ts → Pagination.d.ts} +0 -0
- package/dist/types/components/pagination/{pagination-next.d.ts → PaginationNext.d.ts} +0 -0
- package/dist/types/components/pagination/{pagination-pager.d.ts → PaginationPager.d.ts} +0 -0
- package/dist/types/components/pagination/{pagination-prev.d.ts → PaginationPrev.d.ts} +0 -0
- package/dist/types/components/pagination/{pagination-total.d.ts → PaginationTotal.d.ts} +0 -0
- package/dist/types/components/popover/{popover.d.ts → Popover.d.ts} +1 -1
- /package/dist/types/components/progress/{progress.d.ts → Progress.d.ts} +0 -0
- /package/dist/types/components/radio/{radio.d.ts → Radio.d.ts} +0 -0
- /package/dist/types/components/radio/{radio-group.d.ts → RadioGroup.d.ts} +0 -0
- /package/dist/types/components/segmented/{segmented.d.ts → Segmented.d.ts} +0 -0
- /package/dist/types/components/segmented/{segmented-item.d.ts → SegmentedItem.d.ts} +0 -0
- /package/dist/types/components/select/{select-item.d.ts → SelectItem.d.ts} +0 -0
- /package/dist/types/components/swipe/{swipe.d.ts → Swipe.d.ts} +0 -0
- /package/dist/types/components/switch/{switch.d.ts → Switch.d.ts} +0 -0
- /package/dist/types/components/table/{table.d.ts → Table.d.ts} +0 -0
- /package/dist/types/components/tag/{check-tag.d.ts → CheckTag.d.ts} +0 -0
- /package/dist/types/components/tag/{tag.d.ts → Tag.d.ts} +0 -0
- /package/dist/types/components/text/{text.d.ts → Text.d.ts} +0 -0
- /package/dist/types/components/timeline/{timeline.d.ts → Timeline.d.ts} +0 -0
- /package/dist/types/components/timeline/{timeline-item.d.ts → TimelineItem.d.ts} +0 -0
- /package/dist/types/components/tooltip/{tooltip.d.ts → Tooltip.d.ts} +0 -0
- /package/dist/types/components/upload/{upload.d.ts → Upload.d.ts} +0 -0
- /package/dist/types/components/vnode-renderer/{vnode-renderer.d.ts → VnodeRenderer.d.ts} +0 -0
- /package/dist/types/custom/{Image.d.ts → components/Image.d.ts} +0 -0
- /package/dist/types/custom/{MessageQueueItem.d.ts → components/MessageQueueItem.d.ts} +0 -0
- /package/dist/types/custom/{Alignment.d.ts → state/Alignment.d.ts} +0 -0
- /package/dist/types/custom/{ButtonType.d.ts → state/ButtonType.d.ts} +0 -0
- /package/dist/types/custom/{ComponentSize.d.ts → state/ComponentSize.d.ts} +0 -0
- /package/dist/types/custom/{ComponentType.d.ts → state/ComponentType.d.ts} +0 -0
- /package/dist/types/custom/{CropFormat.d.ts → state/CropFormat.d.ts} +0 -0
- /package/dist/types/custom/{Direction.d.ts → state/Direction.d.ts} +0 -0
- /package/dist/types/custom/{InputMode.d.ts → state/InputMode.d.ts} +0 -0
- /package/dist/types/custom/{InputType.d.ts → state/InputType.d.ts} +0 -0
- /package/dist/types/custom/{LineType.d.ts → state/LineType.d.ts} +0 -0
- /package/dist/types/custom/{PaginationLayout.d.ts → state/PaginationLayout.d.ts} +0 -0
- /package/dist/types/custom/{PopoverPlacement.d.ts → state/PopoverPlacement.d.ts} +0 -0
- /package/dist/types/custom/{PopoverTrigger.d.ts → state/PopoverTrigger.d.ts} +0 -0
- /package/dist/types/custom/{ProgressVariant.d.ts → state/ProgressVariant.d.ts} +0 -0
- /package/dist/types/custom/{SelectionVariant.d.ts → state/SelectionVariant.d.ts} +0 -0
- /package/dist/types/custom/{SwitchVariant.d.ts → state/SwitchVariant.d.ts} +0 -0
- /package/dist/types/custom/{TagVariant.d.ts → state/TagVariant.d.ts} +0 -0
- /package/dist/types/custom/{TextareaResizeType.d.ts → state/TextareaResizeType.d.ts} +0 -0
- /package/dist/types/custom/{TimelineVariant.d.ts → state/TimelineVariant.d.ts} +0 -0
- /package/dist/types/custom/{TriggerType.d.ts → state/TriggerType.d.ts} +0 -0
|
@@ -1,432 +0,0 @@
|
|
|
1
|
-
import { nextTick } from 'vue';
|
|
2
|
-
import { EditorProps } from '../../props';
|
|
3
|
-
type __VLS_Props = EditorProps;
|
|
4
|
-
type __VLS_PublicProps = {
|
|
5
|
-
'value'?: string;
|
|
6
|
-
} & __VLS_Props;
|
|
7
|
-
declare function __VLS_template(): {
|
|
8
|
-
attrs: Partial<{}>;
|
|
9
|
-
slots: {
|
|
10
|
-
control?(_: {}): any;
|
|
11
|
-
};
|
|
12
|
-
refs: {
|
|
13
|
-
boldRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
14
|
-
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
15
|
-
}>, {
|
|
16
|
-
setBold: () => void;
|
|
17
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
-
updateText: (list: string[], startOffset: number, endOffset: number) => any;
|
|
19
|
-
}, import('vue').PublicProps, {
|
|
20
|
-
rows: string[];
|
|
21
|
-
selectInfo: Record<string, number>;
|
|
22
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
23
|
-
P: {};
|
|
24
|
-
B: {};
|
|
25
|
-
D: {};
|
|
26
|
-
C: {};
|
|
27
|
-
M: {};
|
|
28
|
-
Defaults: {};
|
|
29
|
-
}, Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
30
|
-
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
31
|
-
}>, {
|
|
32
|
-
setBold: () => void;
|
|
33
|
-
}, {}, {}, {}, {
|
|
34
|
-
rows: string[];
|
|
35
|
-
selectInfo: Record<string, number>;
|
|
36
|
-
}> | null;
|
|
37
|
-
italicRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
38
|
-
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
39
|
-
}>, {
|
|
40
|
-
setItalic: () => void;
|
|
41
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
42
|
-
updateText: (list: string[], startOffset: number, endOffset: number) => any;
|
|
43
|
-
}, import('vue').PublicProps, {
|
|
44
|
-
rows: string[];
|
|
45
|
-
selectInfo: Record<string, number>;
|
|
46
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
47
|
-
P: {};
|
|
48
|
-
B: {};
|
|
49
|
-
D: {};
|
|
50
|
-
C: {};
|
|
51
|
-
M: {};
|
|
52
|
-
Defaults: {};
|
|
53
|
-
}, Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
54
|
-
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
55
|
-
}>, {
|
|
56
|
-
setItalic: () => void;
|
|
57
|
-
}, {}, {}, {}, {
|
|
58
|
-
rows: string[];
|
|
59
|
-
selectInfo: Record<string, number>;
|
|
60
|
-
}> | null;
|
|
61
|
-
underlineRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
62
|
-
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
63
|
-
}>, {
|
|
64
|
-
setUnderline: () => void;
|
|
65
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
66
|
-
updateText: (list: string[], startOffset: number, endOffset: number) => any;
|
|
67
|
-
}, import('vue').PublicProps, {
|
|
68
|
-
rows: string[];
|
|
69
|
-
selectInfo: Record<string, number>;
|
|
70
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
71
|
-
P: {};
|
|
72
|
-
B: {};
|
|
73
|
-
D: {};
|
|
74
|
-
C: {};
|
|
75
|
-
M: {};
|
|
76
|
-
Defaults: {};
|
|
77
|
-
}, Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
78
|
-
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
79
|
-
}>, {
|
|
80
|
-
setUnderline: () => void;
|
|
81
|
-
}, {}, {}, {}, {
|
|
82
|
-
rows: string[];
|
|
83
|
-
selectInfo: Record<string, number>;
|
|
84
|
-
}> | null;
|
|
85
|
-
inputRef: ({
|
|
86
|
-
$: import('vue').ComponentInternalInstance;
|
|
87
|
-
$data: {};
|
|
88
|
-
$props: {
|
|
89
|
-
readonly value?: string | undefined;
|
|
90
|
-
readonly status?: import('../../../types').ComponentWarnType | undefined;
|
|
91
|
-
readonly round?: boolean | undefined;
|
|
92
|
-
readonly prefixIcon?: import('vue').Component | undefined;
|
|
93
|
-
readonly suffixIcon?: import('vue').Component | undefined;
|
|
94
|
-
readonly disabled?: boolean | undefined;
|
|
95
|
-
readonly readonly?: boolean | undefined;
|
|
96
|
-
readonly clearable?: boolean | undefined;
|
|
97
|
-
readonly placeholder?: string | undefined;
|
|
98
|
-
readonly maxlength?: number | string | undefined;
|
|
99
|
-
readonly minlength?: number | string | undefined;
|
|
100
|
-
readonly autocomplete?: string | undefined;
|
|
101
|
-
readonly name?: string | undefined;
|
|
102
|
-
readonly form?: string | undefined;
|
|
103
|
-
readonly loading?: boolean | undefined;
|
|
104
|
-
readonly inputmode?: import('../../../types').InputMode | undefined;
|
|
105
|
-
readonly autofocus?: boolean | undefined;
|
|
106
|
-
readonly type?: import('../../../types').InputType | undefined;
|
|
107
|
-
readonly size?: import('../../../types').ComponentSize | undefined;
|
|
108
|
-
readonly resize?: import('../../../types').TextareaResizeType | undefined;
|
|
109
|
-
readonly rows?: number | string | undefined;
|
|
110
|
-
readonly cols?: number | string | undefined;
|
|
111
|
-
readonly onClick?: ((e: MouseEvent) => any) | undefined;
|
|
112
|
-
readonly onClear?: (() => any) | undefined;
|
|
113
|
-
readonly onInput?: ((e: Event) => any) | undefined;
|
|
114
|
-
readonly onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
115
|
-
readonly onChange?: ((e: Event) => any) | undefined;
|
|
116
|
-
readonly onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
117
|
-
readonly "onUpdate:value"?: ((value: string) => any) | undefined;
|
|
118
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
119
|
-
$attrs: {
|
|
120
|
-
[x: string]: unknown;
|
|
121
|
-
};
|
|
122
|
-
$refs: {
|
|
123
|
-
[x: string]: unknown;
|
|
124
|
-
} & {
|
|
125
|
-
inputRef: HTMLTextAreaElement;
|
|
126
|
-
};
|
|
127
|
-
$slots: Readonly<{
|
|
128
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
129
|
-
}>;
|
|
130
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
131
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
132
|
-
$host: Element | null;
|
|
133
|
-
$emit: ((event: "click", e: MouseEvent) => void) & ((event: "clear") => void) & ((event: "input", e: Event) => void) & ((event: "blur", e: FocusEvent) => void) & ((event: "change", e: Event) => void) & ((event: "focus", e: FocusEvent) => void) & ((event: "update:value", value: string) => void);
|
|
134
|
-
$el: HTMLDivElement;
|
|
135
|
-
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
136
|
-
value?: string;
|
|
137
|
-
} & import('../../props').InputProps> & Readonly<{
|
|
138
|
-
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
139
|
-
onClear?: (() => any) | undefined;
|
|
140
|
-
onInput?: ((e: Event) => any) | undefined;
|
|
141
|
-
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
142
|
-
onChange?: ((e: Event) => any) | undefined;
|
|
143
|
-
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
144
|
-
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
145
|
-
}>, {
|
|
146
|
-
focus: () => void;
|
|
147
|
-
blur: () => void;
|
|
148
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
149
|
-
click: (e: MouseEvent) => any;
|
|
150
|
-
clear: () => any;
|
|
151
|
-
input: (e: Event) => any;
|
|
152
|
-
blur: (e: FocusEvent) => any;
|
|
153
|
-
change: (e: Event) => any;
|
|
154
|
-
focus: (e: FocusEvent) => any;
|
|
155
|
-
"update:value": (value: string) => any;
|
|
156
|
-
}, string, {
|
|
157
|
-
type: import('../../../types').InputType;
|
|
158
|
-
round: boolean;
|
|
159
|
-
disabled: boolean;
|
|
160
|
-
resize: import('../../../types').TextareaResizeType;
|
|
161
|
-
rows: number | string;
|
|
162
|
-
readonly: boolean;
|
|
163
|
-
autocomplete: string;
|
|
164
|
-
cols: number | string;
|
|
165
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
166
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
167
|
-
created?: (() => void) | (() => void)[];
|
|
168
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
169
|
-
mounted?: (() => void) | (() => void)[];
|
|
170
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
171
|
-
updated?: (() => void) | (() => void)[];
|
|
172
|
-
activated?: (() => void) | (() => void)[];
|
|
173
|
-
deactivated?: (() => void) | (() => void)[];
|
|
174
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
175
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
176
|
-
destroyed?: (() => void) | (() => void)[];
|
|
177
|
-
unmounted?: (() => void) | (() => void)[];
|
|
178
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
179
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
180
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
181
|
-
};
|
|
182
|
-
$forceUpdate: () => void;
|
|
183
|
-
$nextTick: typeof nextTick;
|
|
184
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
185
|
-
} & Readonly<{
|
|
186
|
-
type: import('../../../types').InputType;
|
|
187
|
-
round: boolean;
|
|
188
|
-
disabled: boolean;
|
|
189
|
-
resize: import('../../../types').TextareaResizeType;
|
|
190
|
-
rows: number | string;
|
|
191
|
-
readonly: boolean;
|
|
192
|
-
autocomplete: string;
|
|
193
|
-
cols: number | string;
|
|
194
|
-
}> & Omit<Readonly<{
|
|
195
|
-
value?: string;
|
|
196
|
-
} & import('../../props').InputProps> & Readonly<{
|
|
197
|
-
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
198
|
-
onClear?: (() => any) | undefined;
|
|
199
|
-
onInput?: ((e: Event) => any) | undefined;
|
|
200
|
-
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
201
|
-
onChange?: ((e: Event) => any) | undefined;
|
|
202
|
-
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
203
|
-
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
204
|
-
}>, "blur" | "focus" | ("type" | "round" | "disabled" | "resize" | "rows" | "readonly" | "autocomplete" | "cols")> & import('vue').ShallowUnwrapRef<{
|
|
205
|
-
focus: () => void;
|
|
206
|
-
blur: () => void;
|
|
207
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
208
|
-
$slots: {
|
|
209
|
-
prefix?(_: {}): any;
|
|
210
|
-
suffix?(_: {}): any;
|
|
211
|
-
};
|
|
212
|
-
}) | null;
|
|
213
|
-
};
|
|
214
|
-
rootEl: HTMLDivElement;
|
|
215
|
-
};
|
|
216
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
217
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
218
|
-
"update:value": (value: string) => any;
|
|
219
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
220
|
-
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
221
|
-
}>, {
|
|
222
|
-
md: boolean;
|
|
223
|
-
size: import('../../../types').ComponentSize;
|
|
224
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
225
|
-
boldRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
226
|
-
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
227
|
-
}>, {
|
|
228
|
-
setBold: () => void;
|
|
229
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
230
|
-
updateText: (list: string[], startOffset: number, endOffset: number) => any;
|
|
231
|
-
}, import('vue').PublicProps, {
|
|
232
|
-
rows: string[];
|
|
233
|
-
selectInfo: Record<string, number>;
|
|
234
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
235
|
-
P: {};
|
|
236
|
-
B: {};
|
|
237
|
-
D: {};
|
|
238
|
-
C: {};
|
|
239
|
-
M: {};
|
|
240
|
-
Defaults: {};
|
|
241
|
-
}, Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
242
|
-
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
243
|
-
}>, {
|
|
244
|
-
setBold: () => void;
|
|
245
|
-
}, {}, {}, {}, {
|
|
246
|
-
rows: string[];
|
|
247
|
-
selectInfo: Record<string, number>;
|
|
248
|
-
}> | null;
|
|
249
|
-
italicRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
250
|
-
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
251
|
-
}>, {
|
|
252
|
-
setItalic: () => void;
|
|
253
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
254
|
-
updateText: (list: string[], startOffset: number, endOffset: number) => any;
|
|
255
|
-
}, import('vue').PublicProps, {
|
|
256
|
-
rows: string[];
|
|
257
|
-
selectInfo: Record<string, number>;
|
|
258
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
259
|
-
P: {};
|
|
260
|
-
B: {};
|
|
261
|
-
D: {};
|
|
262
|
-
C: {};
|
|
263
|
-
M: {};
|
|
264
|
-
Defaults: {};
|
|
265
|
-
}, Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
266
|
-
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
267
|
-
}>, {
|
|
268
|
-
setItalic: () => void;
|
|
269
|
-
}, {}, {}, {}, {
|
|
270
|
-
rows: string[];
|
|
271
|
-
selectInfo: Record<string, number>;
|
|
272
|
-
}> | null;
|
|
273
|
-
underlineRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
274
|
-
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
275
|
-
}>, {
|
|
276
|
-
setUnderline: () => void;
|
|
277
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
278
|
-
updateText: (list: string[], startOffset: number, endOffset: number) => any;
|
|
279
|
-
}, import('vue').PublicProps, {
|
|
280
|
-
rows: string[];
|
|
281
|
-
selectInfo: Record<string, number>;
|
|
282
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
283
|
-
P: {};
|
|
284
|
-
B: {};
|
|
285
|
-
D: {};
|
|
286
|
-
C: {};
|
|
287
|
-
M: {};
|
|
288
|
-
Defaults: {};
|
|
289
|
-
}, Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
290
|
-
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
291
|
-
}>, {
|
|
292
|
-
setUnderline: () => void;
|
|
293
|
-
}, {}, {}, {}, {
|
|
294
|
-
rows: string[];
|
|
295
|
-
selectInfo: Record<string, number>;
|
|
296
|
-
}> | null;
|
|
297
|
-
inputRef: ({
|
|
298
|
-
$: import('vue').ComponentInternalInstance;
|
|
299
|
-
$data: {};
|
|
300
|
-
$props: {
|
|
301
|
-
readonly value?: string | undefined;
|
|
302
|
-
readonly status?: import('../../../types').ComponentWarnType | undefined;
|
|
303
|
-
readonly round?: boolean | undefined;
|
|
304
|
-
readonly prefixIcon?: import('vue').Component | undefined;
|
|
305
|
-
readonly suffixIcon?: import('vue').Component | undefined;
|
|
306
|
-
readonly disabled?: boolean | undefined;
|
|
307
|
-
readonly readonly?: boolean | undefined;
|
|
308
|
-
readonly clearable?: boolean | undefined;
|
|
309
|
-
readonly placeholder?: string | undefined;
|
|
310
|
-
readonly maxlength?: number | string | undefined;
|
|
311
|
-
readonly minlength?: number | string | undefined;
|
|
312
|
-
readonly autocomplete?: string | undefined;
|
|
313
|
-
readonly name?: string | undefined;
|
|
314
|
-
readonly form?: string | undefined;
|
|
315
|
-
readonly loading?: boolean | undefined;
|
|
316
|
-
readonly inputmode?: import('../../../types').InputMode | undefined;
|
|
317
|
-
readonly autofocus?: boolean | undefined;
|
|
318
|
-
readonly type?: import('../../../types').InputType | undefined;
|
|
319
|
-
readonly size?: import('../../../types').ComponentSize | undefined;
|
|
320
|
-
readonly resize?: import('../../../types').TextareaResizeType | undefined;
|
|
321
|
-
readonly rows?: number | string | undefined;
|
|
322
|
-
readonly cols?: number | string | undefined;
|
|
323
|
-
readonly onClick?: ((e: MouseEvent) => any) | undefined;
|
|
324
|
-
readonly onClear?: (() => any) | undefined;
|
|
325
|
-
readonly onInput?: ((e: Event) => any) | undefined;
|
|
326
|
-
readonly onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
327
|
-
readonly onChange?: ((e: Event) => any) | undefined;
|
|
328
|
-
readonly onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
329
|
-
readonly "onUpdate:value"?: ((value: string) => any) | undefined;
|
|
330
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
331
|
-
$attrs: {
|
|
332
|
-
[x: string]: unknown;
|
|
333
|
-
};
|
|
334
|
-
$refs: {
|
|
335
|
-
[x: string]: unknown;
|
|
336
|
-
} & {
|
|
337
|
-
inputRef: HTMLTextAreaElement;
|
|
338
|
-
};
|
|
339
|
-
$slots: Readonly<{
|
|
340
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
341
|
-
}>;
|
|
342
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
343
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
344
|
-
$host: Element | null;
|
|
345
|
-
$emit: ((event: "click", e: MouseEvent) => void) & ((event: "clear") => void) & ((event: "input", e: Event) => void) & ((event: "blur", e: FocusEvent) => void) & ((event: "change", e: Event) => void) & ((event: "focus", e: FocusEvent) => void) & ((event: "update:value", value: string) => void);
|
|
346
|
-
$el: HTMLDivElement;
|
|
347
|
-
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
348
|
-
value?: string;
|
|
349
|
-
} & import('../../props').InputProps> & Readonly<{
|
|
350
|
-
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
351
|
-
onClear?: (() => any) | undefined;
|
|
352
|
-
onInput?: ((e: Event) => any) | undefined;
|
|
353
|
-
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
354
|
-
onChange?: ((e: Event) => any) | undefined;
|
|
355
|
-
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
356
|
-
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
357
|
-
}>, {
|
|
358
|
-
focus: () => void;
|
|
359
|
-
blur: () => void;
|
|
360
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
361
|
-
click: (e: MouseEvent) => any;
|
|
362
|
-
clear: () => any;
|
|
363
|
-
input: (e: Event) => any;
|
|
364
|
-
blur: (e: FocusEvent) => any;
|
|
365
|
-
change: (e: Event) => any;
|
|
366
|
-
focus: (e: FocusEvent) => any;
|
|
367
|
-
"update:value": (value: string) => any;
|
|
368
|
-
}, string, {
|
|
369
|
-
type: import('../../../types').InputType;
|
|
370
|
-
round: boolean;
|
|
371
|
-
disabled: boolean;
|
|
372
|
-
resize: import('../../../types').TextareaResizeType;
|
|
373
|
-
rows: number | string;
|
|
374
|
-
readonly: boolean;
|
|
375
|
-
autocomplete: string;
|
|
376
|
-
cols: number | string;
|
|
377
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
378
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
379
|
-
created?: (() => void) | (() => void)[];
|
|
380
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
381
|
-
mounted?: (() => void) | (() => void)[];
|
|
382
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
383
|
-
updated?: (() => void) | (() => void)[];
|
|
384
|
-
activated?: (() => void) | (() => void)[];
|
|
385
|
-
deactivated?: (() => void) | (() => void)[];
|
|
386
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
387
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
388
|
-
destroyed?: (() => void) | (() => void)[];
|
|
389
|
-
unmounted?: (() => void) | (() => void)[];
|
|
390
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
391
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
392
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
393
|
-
};
|
|
394
|
-
$forceUpdate: () => void;
|
|
395
|
-
$nextTick: typeof nextTick;
|
|
396
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
397
|
-
} & Readonly<{
|
|
398
|
-
type: import('../../../types').InputType;
|
|
399
|
-
round: boolean;
|
|
400
|
-
disabled: boolean;
|
|
401
|
-
resize: import('../../../types').TextareaResizeType;
|
|
402
|
-
rows: number | string;
|
|
403
|
-
readonly: boolean;
|
|
404
|
-
autocomplete: string;
|
|
405
|
-
cols: number | string;
|
|
406
|
-
}> & Omit<Readonly<{
|
|
407
|
-
value?: string;
|
|
408
|
-
} & import('../../props').InputProps> & Readonly<{
|
|
409
|
-
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
410
|
-
onClear?: (() => any) | undefined;
|
|
411
|
-
onInput?: ((e: Event) => any) | undefined;
|
|
412
|
-
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
413
|
-
onChange?: ((e: Event) => any) | undefined;
|
|
414
|
-
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
415
|
-
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
416
|
-
}>, "blur" | "focus" | ("type" | "round" | "disabled" | "resize" | "rows" | "readonly" | "autocomplete" | "cols")> & import('vue').ShallowUnwrapRef<{
|
|
417
|
-
focus: () => void;
|
|
418
|
-
blur: () => void;
|
|
419
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
420
|
-
$slots: {
|
|
421
|
-
prefix?(_: {}): any;
|
|
422
|
-
suffix?(_: {}): any;
|
|
423
|
-
};
|
|
424
|
-
}) | null;
|
|
425
|
-
}, HTMLDivElement>;
|
|
426
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
427
|
-
export default _default;
|
|
428
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
429
|
-
new (): {
|
|
430
|
-
$slots: S;
|
|
431
|
-
};
|
|
432
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as SqEditor } from './editor';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Component } from 'vue'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Markdown 节点元素
|
|
5
|
-
*/
|
|
6
|
-
export declare interface MdNodeItem {
|
|
7
|
-
/**
|
|
8
|
-
* 节点标签
|
|
9
|
-
*/
|
|
10
|
-
tag?: string | Component
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* 节点属性
|
|
14
|
-
*/
|
|
15
|
-
attrs?: Record<string, string>
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* 节点子集
|
|
19
|
-
*/
|
|
20
|
-
children?: (MdNodeItem | string)[]
|
|
21
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 编辑器控制器属性
|
|
3
|
-
*/
|
|
4
|
-
export interface EditorControlProps {
|
|
5
|
-
/**
|
|
6
|
-
* 是否禁用
|
|
7
|
-
*/
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* 编辑器行集合
|
|
11
|
-
*/
|
|
12
|
-
rows?: string[];
|
|
13
|
-
/**
|
|
14
|
-
* 编辑器选中值
|
|
15
|
-
*/
|
|
16
|
-
selectedVal?: string;
|
|
17
|
-
/**
|
|
18
|
-
* 编辑器选中行
|
|
19
|
-
*/
|
|
20
|
-
selectedRow?: number;
|
|
21
|
-
/**
|
|
22
|
-
* 编辑器选区
|
|
23
|
-
*/
|
|
24
|
-
selectInfo?: Record<string, number>;
|
|
25
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ComponentSize } from '../../custom';
|
|
2
|
-
/**
|
|
3
|
-
* 编辑器属性
|
|
4
|
-
*/
|
|
5
|
-
export interface EditorProps {
|
|
6
|
-
/**
|
|
7
|
-
* 是否圆角编辑器
|
|
8
|
-
*/
|
|
9
|
-
round?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* 是否禁用
|
|
12
|
-
*/
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* 占位文本
|
|
16
|
-
*/
|
|
17
|
-
placeholder?: string;
|
|
18
|
-
/**
|
|
19
|
-
* 最大长度
|
|
20
|
-
*/
|
|
21
|
-
maxlength?: number | string;
|
|
22
|
-
/**
|
|
23
|
-
* 最小长度
|
|
24
|
-
*/
|
|
25
|
-
minlength?: number | string;
|
|
26
|
-
/**
|
|
27
|
-
* 是否MD格式
|
|
28
|
-
*/
|
|
29
|
-
md?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* 编辑器大小
|
|
32
|
-
*/
|
|
33
|
-
size?: ComponentSize;
|
|
34
|
-
/**
|
|
35
|
-
* 预览内容前处理
|
|
36
|
-
*/
|
|
37
|
-
beforePreview?: (input: string) => string;
|
|
38
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -28,9 +28,9 @@ declare const __VLS_component: import('vue').DefineComponent<FormProps, {
|
|
|
28
28
|
size: import('../../../types').ComponentSize;
|
|
29
29
|
round: boolean;
|
|
30
30
|
disabled: boolean;
|
|
31
|
-
readonly: boolean;
|
|
32
31
|
layout: import('../../../types').Direction;
|
|
33
32
|
invalidStatus: import('../../../types').ComponentWarnType;
|
|
33
|
+
readonly: boolean;
|
|
34
34
|
hasFeedback: boolean;
|
|
35
35
|
requiredMark: import('../../../types').RequiredMarkType;
|
|
36
36
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFormElement>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -47,9 +47,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
47
47
|
round: boolean;
|
|
48
48
|
disabled: boolean;
|
|
49
49
|
resize: import('../..').TextareaResizeType;
|
|
50
|
-
rows: number | string;
|
|
51
50
|
readonly: boolean;
|
|
52
51
|
autocomplete: string;
|
|
52
|
+
rows: number | string;
|
|
53
53
|
cols: number | string;
|
|
54
54
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
55
55
|
inputRef: HTMLTextAreaElement;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -37,10 +37,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
37
37
|
transition: string;
|
|
38
38
|
placement: import('../..').PopoverPlacement;
|
|
39
39
|
teleported: boolean;
|
|
40
|
-
shadow: boolean;
|
|
41
40
|
trigger: import('../..').PopoverTrigger;
|
|
42
41
|
showAfter: number;
|
|
43
42
|
hideAfter: number;
|
|
43
|
+
shadow: boolean;
|
|
44
44
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
45
45
|
triggerRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|