@vunk/form 1.2.2 → 1.3.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.
Files changed (85) hide show
  1. package/components/button/src/index.vue.d.ts +282 -6
  2. package/components/cascader/src/ctx.d.ts +1 -1
  3. package/components/cascader/src/index.vue.d.ts +13672 -8
  4. package/components/checkbox/src/ctx.d.ts +1 -1
  5. package/components/checkbox/src/index.vue.d.ts +906 -10
  6. package/components/color-picker/src/index.vue.d.ts +10950 -7
  7. package/components/date-picker/src/ctx.d.ts +1 -1
  8. package/components/date-picker/src/index.vue.d.ts +225 -11
  9. package/components/date-picker-range/src/ctx.d.ts +1 -1
  10. package/components/date-picker-range/src/index.vue.d.ts +24 -12
  11. package/components/download-plus/index.cjs +4 -4
  12. package/components/download-plus/index.mjs +4 -4
  13. package/components/download-plus/src/index.vue.d.ts +822 -8
  14. package/components/esri-input-geojson/src/append.vue.d.ts +2232 -5
  15. package/components/esri-input-geojson/src/ctx.d.ts +1 -1
  16. package/components/esri-input-geojson/src/default-view.vue.d.ts +3 -3
  17. package/components/esri-input-geojson/src/index.vue.d.ts +723 -23
  18. package/components/esri-input-geojson/src/viewer.vue.d.ts +141 -10
  19. package/components/form/src/ctx.d.ts +1 -1
  20. package/components/form/src/index.vue.d.ts +373 -39
  21. package/components/form-item/index.cjs +3 -4
  22. package/components/form-item/index.mjs +3 -4
  23. package/components/form-item/src/index.vue.d.ts +185 -5
  24. package/components/form-item-renderer/src/index.vue.d.ts +5 -5
  25. package/components/form-item-renderer-template/src/index.vue.d.ts +4 -4
  26. package/components/geoinput/src/index.vue.d.ts +40 -17
  27. package/components/geoinput-read/src/append.vue.d.ts +379 -2
  28. package/components/geoinput-read/src/core.vue.d.ts +176 -14
  29. package/components/geoinput-read/src/ctx.d.ts +1 -1
  30. package/components/geoinput-read/src/index.vue.d.ts +743 -15
  31. package/components/geoinput-update/src/append.vue.d.ts +2231 -5
  32. package/components/geoinput-update/src/ctx.d.ts +1 -1
  33. package/components/geoinput-update/src/index.vue.d.ts +814 -20
  34. package/components/input/index.cjs +2 -2
  35. package/components/input/index.mjs +2 -2
  36. package/components/input/src/index.vue.d.ts +479 -13
  37. package/components/input-link/src/index.vue.d.ts +25 -13
  38. package/components/input-number/src/ctx.d.ts +1 -1
  39. package/components/input-number/src/index.vue.d.ts +1579 -12
  40. package/components/monaco-editor/index.cjs +83 -0
  41. package/components/monaco-editor/index.css +3 -0
  42. package/components/monaco-editor/index.d.ts +4 -0
  43. package/components/monaco-editor/index.mjs +77 -0
  44. package/components/monaco-editor/src/ctx.d.ts +70 -0
  45. package/components/monaco-editor/src/index.vue.d.ts +209 -0
  46. package/components/monaco-editor/src/types.d.ts +7 -0
  47. package/components/radio/src/index.vue.d.ts +444 -10
  48. package/components/select/src/ctx.d.ts +3 -3
  49. package/components/select/src/index.vue.d.ts +12944 -31
  50. package/components/slider/index.cjs +3 -3
  51. package/components/slider/index.mjs +3 -3
  52. package/components/slider/src/index.vue.d.ts +25 -12
  53. package/components/switch/src/index.vue.d.ts +319 -8
  54. package/components/templates-default/index.cjs +41 -26
  55. package/components/templates-default/index.mjs +41 -26
  56. package/components/templates-default/src/index.vue.d.ts +162 -7
  57. package/components/templates-element-plus/src/index.vue.d.ts +193 -6
  58. package/components/templates-esri/src/index.vue.d.ts +30 -7
  59. package/components/templates-layout/src/index.vue.d.ts +148 -6
  60. package/components/templates-mapbox/src/index.vue.d.ts +30 -7
  61. package/components/templates-variant/src/index.vue.d.ts +30 -7
  62. package/components/upload/index.cjs +2 -2
  63. package/components/upload/index.mjs +2 -2
  64. package/components/upload/src/ctx.d.ts +1 -1
  65. package/components/upload/src/file.vue.d.ts +263 -6
  66. package/components/upload/src/index.vue.d.ts +2366 -9
  67. package/components/upload-plus/index.cjs +19 -20
  68. package/components/upload-plus/index.mjs +19 -20
  69. package/components/upload-plus/src/index.vue.d.ts +874 -12
  70. package/components/van-cascader/src/index.vue.d.ts +13048 -11
  71. package/components/var-datetime-picker/src/index.vue.d.ts +624 -10
  72. package/components/vditor/index.cjs +43 -408
  73. package/components/vditor/index.mjs +44 -409
  74. package/components/vditor/src/ctx.d.ts +52 -6
  75. package/components/vditor/src/index.vue.d.ts +274 -16
  76. package/components/vditor/src/types.d.ts +7 -9
  77. package/composables/useSourceManager.d.ts +1 -1
  78. package/index.css +4 -13
  79. package/package.json +9 -4
  80. package/shared/element-plus/ctx.d.ts +3 -3
  81. package/shared/element-plus/instances.d.ts +2 -2
  82. package/components/vditor/index.css +0 -12
  83. package/components/vditor/src/handle-fullscreen.vue.d.ts +0 -18
  84. package/components/vditor/src/handle-value.vue.d.ts +0 -18
  85. package/components/vditor/src/use.d.ts +0 -4
@@ -1,435 +1,70 @@
1
- import Vditor from 'vditor';
2
- import { inject, unref, ref, getCurrentScope, onScopeDispose, watch, defineComponent, nextTick, shallowRef, provide, onMounted, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, createBlock, withCtx, normalizeClass, renderSlot, createCommentVNode } from 'vue';
1
+ import { defineComponent, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, mergeProps, toHandlers, renderSlot } from 'vue';
2
+ import { _VkVditorCtx, VkVditor } from '@vunk/plus/components/vditor';
3
+ import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
4
+ import { useComputedReadonly } from '@vunk/form/composables';
3
5
  import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
4
- import { VkAsyncTeleport } from '@vunk/core';
5
6
 
6
7
  const props = {
7
- modelValue: {
8
- type: String,
9
- default: ""
10
- },
11
- defaultOptions: {
12
- type: Object,
13
- default: () => ({})
14
- },
15
- placeholder: {
16
- type: String,
17
- default: "\u95EE\u6211\u4EFB\u4F55\u95EE\u9898...(Crtl + Enter \u53D1\u9001)"
18
- },
19
- toolbar: {
20
- type: Array,
21
- default: () => [
22
- "headings",
23
- "bold",
24
- "italic",
25
- "strike",
26
- "link",
27
- "|",
28
- "list",
29
- "ordered-list",
30
- "outdent",
31
- "indent",
32
- "|",
33
- "line",
34
- "code",
35
- "inline-code",
36
- "insert-before",
37
- "insert-after",
38
- "|",
39
- "table",
40
- "|",
41
- "undo",
42
- "redo",
43
- "|",
44
- "fullscreen",
45
- "outline",
46
- "export",
47
- "|"
48
- ]
49
- },
50
- fullscreen: {
8
+ ..._VkfFormItemCtx.props,
9
+ ..._VkVditorCtx.props,
10
+ readonly: {
51
11
  type: Boolean,
52
- default: false
12
+ default: void 0
53
13
  }
54
14
  };
55
15
  const emits = {
56
- load: (e) => e,
57
- "update:modelValue": (e) => e,
58
- ctrlEnter: (e) => e,
59
- "update:fullscreen": (e) => e
16
+ ..._VkVditorCtx.emits
60
17
  };
61
18
 
62
- function mitt(n){return {all:n=n||new Map,on:function(t,e){var i=n.get(t);i?i.push(e):n.set(t,[e]);},off:function(t,e){var i=n.get(t);i&&(e?i.splice(i.indexOf(e)>>>0,1):n.set(t,[]));},emit:function(t,e){var i=n.get(t);i&&i.slice().map(function(n){n(e);}),(i=n.get("*"))&&i.slice().map(function(n){n(t,e);});}}}
63
-
64
- const useVditor = () => {
65
- const core = inject("vkfVditorRef", null);
66
- if (!core) {
67
- throw new Error("useVditor must be used after VditorProvider");
68
- }
69
- return unref(core);
70
- };
71
- const useVditorMitter = () => {
72
- const core = inject("vkfVditorMitter", null);
73
- if (!core) {
74
- throw new Error("useVditorMitter must be used after VditorProvider");
75
- }
76
- return core;
77
- };
78
-
79
- var _a;
80
- const isClient = typeof window !== "undefined";
81
- isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
82
-
83
- function createFilterWrapper(filter, fn) {
84
- function wrapper(...args) {
85
- filter(() => fn.apply(this, args), { fn, thisArg: this, args });
86
- }
87
- return wrapper;
88
- }
89
- const bypassFilter = (invoke) => {
90
- return invoke();
91
- };
92
- function pausableFilter(extendFilter = bypassFilter) {
93
- const isActive = ref(true);
94
- function pause() {
95
- isActive.value = false;
96
- }
97
- function resume() {
98
- isActive.value = true;
99
- }
100
- const eventFilter = (...args) => {
101
- if (isActive.value)
102
- extendFilter(...args);
103
- };
104
- return { isActive, pause, resume, eventFilter };
105
- }
106
-
107
- function tryOnScopeDispose(fn) {
108
- if (getCurrentScope()) {
109
- onScopeDispose(fn);
110
- return true;
111
- }
112
- return false;
113
- }
114
-
115
- var __getOwnPropSymbols$6$1 = Object.getOwnPropertySymbols;
116
- var __hasOwnProp$6$1 = Object.prototype.hasOwnProperty;
117
- var __propIsEnum$6$1 = Object.prototype.propertyIsEnumerable;
118
- var __objRest$5 = (source, exclude) => {
119
- var target = {};
120
- for (var prop in source)
121
- if (__hasOwnProp$6$1.call(source, prop) && exclude.indexOf(prop) < 0)
122
- target[prop] = source[prop];
123
- if (source != null && __getOwnPropSymbols$6$1)
124
- for (var prop of __getOwnPropSymbols$6$1(source)) {
125
- if (exclude.indexOf(prop) < 0 && __propIsEnum$6$1.call(source, prop))
126
- target[prop] = source[prop];
127
- }
128
- return target;
129
- };
130
- function watchWithFilter(source, cb, options = {}) {
131
- const _a = options, {
132
- eventFilter = bypassFilter
133
- } = _a, watchOptions = __objRest$5(_a, [
134
- "eventFilter"
135
- ]);
136
- return watch(source, createFilterWrapper(eventFilter, cb), watchOptions);
137
- }
138
-
139
- var __defProp$2 = Object.defineProperty;
140
- var __defProps$2 = Object.defineProperties;
141
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
142
- var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
143
- var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
144
- var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
145
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
146
- var __spreadValues$2 = (a, b) => {
147
- for (var prop in b || (b = {}))
148
- if (__hasOwnProp$2.call(b, prop))
149
- __defNormalProp$2(a, prop, b[prop]);
150
- if (__getOwnPropSymbols$2)
151
- for (var prop of __getOwnPropSymbols$2(b)) {
152
- if (__propIsEnum$2.call(b, prop))
153
- __defNormalProp$2(a, prop, b[prop]);
154
- }
155
- return a;
156
- };
157
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
158
- var __objRest$1$1 = (source, exclude) => {
159
- var target = {};
160
- for (var prop in source)
161
- if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
162
- target[prop] = source[prop];
163
- if (source != null && __getOwnPropSymbols$2)
164
- for (var prop of __getOwnPropSymbols$2(source)) {
165
- if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
166
- target[prop] = source[prop];
167
- }
168
- return target;
169
- };
170
- function watchPausable(source, cb, options = {}) {
171
- const _a = options, {
172
- eventFilter: filter
173
- } = _a, watchOptions = __objRest$1$1(_a, [
174
- "eventFilter"
175
- ]);
176
- const { eventFilter, pause, resume, isActive } = pausableFilter(filter);
177
- const stop = watchWithFilter(source, cb, __spreadProps$2(__spreadValues$2({}, watchOptions), {
178
- eventFilter
179
- }));
180
- return { stop, pause, resume, isActive };
181
- }
182
-
183
- function unrefElement(elRef) {
184
- var _a;
185
- const plain = unref(elRef);
186
- return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
187
- }
188
-
189
- const defaultWindow = isClient ? window : void 0;
190
-
191
- const _global = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
192
- const globalKey = "__vueuse_ssr_handlers__";
193
- _global[globalKey] = _global[globalKey] || {};
194
-
195
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
196
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
197
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
198
- var __objRest$1 = (source, exclude) => {
199
- var target = {};
200
- for (var prop in source)
201
- if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
202
- target[prop] = source[prop];
203
- if (source != null && __getOwnPropSymbols$6)
204
- for (var prop of __getOwnPropSymbols$6(source)) {
205
- if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
206
- target[prop] = source[prop];
207
- }
208
- return target;
209
- };
210
- function useMutationObserver(target, callback, options = {}) {
211
- const _a = options, { window = defaultWindow } = _a, mutationOptions = __objRest$1(_a, ["window"]);
212
- let observer;
213
- const isSupported = window && "MutationObserver" in window;
214
- const cleanup = () => {
215
- if (observer) {
216
- observer.disconnect();
217
- observer = void 0;
218
- }
219
- };
220
- const stopWatch = watch(() => unrefElement(target), (el) => {
221
- cleanup();
222
- if (isSupported && window && el) {
223
- observer = new MutationObserver(callback);
224
- observer.observe(el, mutationOptions);
225
- }
226
- }, { immediate: true });
227
- const stop = () => {
228
- cleanup();
229
- stopWatch();
230
- };
231
- tryOnScopeDispose(stop);
232
- return {
233
- isSupported,
234
- stop
235
- };
236
- }
237
-
238
- var SwipeDirection;
239
- (function(SwipeDirection2) {
240
- SwipeDirection2["UP"] = "UP";
241
- SwipeDirection2["RIGHT"] = "RIGHT";
242
- SwipeDirection2["DOWN"] = "DOWN";
243
- SwipeDirection2["LEFT"] = "LEFT";
244
- SwipeDirection2["NONE"] = "NONE";
245
- })(SwipeDirection || (SwipeDirection = {}));
246
-
247
- var _sfc_main$2 = defineComponent({
248
- props: {
249
- modelValue: {
250
- type: String,
251
- default: ""
252
- }
253
- },
254
- emits: {
255
- "update:modelValue": null
256
- },
257
- setup(props, { emit }) {
258
- const vditor = useVditor();
259
- const mitter = useVditorMitter();
260
- if (props.modelValue) {
261
- vditor.setValue(props.modelValue, true);
262
- }
263
- const { pause, resume } = watchPausable(() => props.modelValue, (value) => {
264
- vditor.setValue(value, true);
265
- });
266
- mitter.on("input", (value) => {
267
- pause();
268
- emit("update:modelValue", value);
269
- nextTick(resume);
270
- });
271
- return () => null;
272
- }
273
- });
274
-
275
- var HandleValue = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/vditor/src/handle-value.vue"]]);
276
-
277
- var _sfc_main$1 = defineComponent({
278
- props: {
279
- fullscreen: {
280
- type: Boolean,
281
- default: false
282
- }
283
- },
284
- emits: {
285
- "update:fullscreen": null
286
- },
287
- setup(props, { emit }) {
288
- const vditor = useVditor();
289
- const el = vditor.vditor.element;
290
- const domFullscreen = ref(false);
291
- useMutationObserver(el, () => {
292
- if (el.classList.contains("vditor--fullscreen")) {
293
- domFullscreen.value = true;
294
- } else {
295
- domFullscreen.value = false;
296
- }
297
- }, {
298
- attributes: true
299
- });
300
- watch(() => props.fullscreen, (value) => {
301
- if (value !== domFullscreen.value) {
302
- const ir = vditor.vditor.ir?.element;
303
- if (!ir) return;
304
- ir.dispatchEvent(new KeyboardEvent("keydown", {
305
- key: "'",
306
- ctrlKey: true
307
- }));
308
- }
309
- }, { immediate: true });
310
- watch(() => domFullscreen.value, (value) => {
311
- emit("update:fullscreen", value);
312
- });
313
- return () => null;
314
- }
315
- });
316
-
317
- var HandleFullscreen = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/vditor/src/handle-fullscreen.vue"]]);
318
-
319
19
  var _sfc_main = defineComponent({
320
20
  name: "VkfVditor",
321
21
  components: {
322
- HandleValue,
323
- HandleFullscreen,
324
- VkAsyncTeleport
22
+ VkfFormItem,
23
+ VkVditor
325
24
  },
326
25
  props,
327
26
  emits,
328
27
  setup(props2, { emit }) {
329
- const vditorNode = ref();
330
- const ready = ref(false);
331
- const mitter = mitt();
332
- const vditorRef = shallowRef();
333
- const isTextareaFocus = ref(false);
334
- provide("vkfVditorMitter", mitter);
335
- provide("vkfVditorRef", vditorRef);
336
- onMounted(() => {
337
- const vditor = new Vditor(vditorNode.value, {
338
- ...props2.defaultOptions,
339
- placeholder: props2.placeholder,
340
- cache: {
341
- enable: true,
342
- id: "VkfVditorCache",
343
- ...props2.defaultOptions.cache || {}
344
- },
345
- after() {
346
- vditorRef.value = vditor;
347
- ready.value = true;
348
- emit("load", vditor);
349
- props2.defaultOptions.after?.();
350
- },
351
- input(value) {
352
- mitter.emit("input", value);
353
- props2.defaultOptions.input?.(value);
354
- },
355
- ctrlEnter(value) {
356
- emit("update:modelValue", value);
357
- emit("ctrlEnter", value);
358
- },
359
- focus(v) {
360
- isTextareaFocus.value = true;
361
- props2.defaultOptions.focus?.(v);
362
- },
363
- blur(v) {
364
- isTextareaFocus.value = false;
365
- props2.defaultOptions.blur?.(v);
366
- },
367
- toolbar: props2.toolbar
368
- });
369
- });
28
+ const coreProps = _VkVditorCtx.createBindProps(props2);
29
+ const coreEmits = _VkVditorCtx.createOnEmits(emit);
30
+ const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
31
+ const readonly = useComputedReadonly(props2);
370
32
  return {
371
- vditorNode,
372
- isTextareaFocus,
373
- ready
33
+ formItemBindProps,
34
+ coreProps,
35
+ coreEmits,
36
+ readonly
374
37
  };
375
38
  }
376
39
  });
377
40
 
378
- const _hoisted_1 = {
379
- ref: "vditorNode",
380
- class: "vkf-vditor"
381
- };
382
41
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
383
- const _component_VkAsyncTeleport = resolveComponent("VkAsyncTeleport");
384
- const _component_HandleValue = resolveComponent("HandleValue");
385
- const _component_HandleFullscreen = resolveComponent("HandleFullscreen");
386
- return openBlock(), createElementBlock(
387
- Fragment,
388
- null,
389
- [
390
- createElementVNode(
391
- "div",
392
- _hoisted_1,
393
- null,
394
- 512
395
- /* NEED_PATCH */
396
- ),
397
- _ctx.ready ? (openBlock(), createBlock(_component_VkAsyncTeleport, {
398
- key: 0,
399
- to: _ctx.vditorNode
400
- }, {
401
- default: withCtx(() => [
402
- createElementVNode(
403
- "div",
404
- {
405
- class: normalizeClass(["vkf-vditor-footer", {
406
- "is-textarea-focus": _ctx.isTextareaFocus
407
- }])
408
- },
409
- [
42
+ const _component_VkVditor = resolveComponent("VkVditor");
43
+ const _component_VkfFormItem = resolveComponent("VkfFormItem");
44
+ return openBlock(), createBlock(
45
+ _component_VkfFormItem,
46
+ normalizeProps(guardReactiveProps(_ctx.formItemBindProps)),
47
+ {
48
+ default: withCtx(() => [
49
+ createVNode(
50
+ _component_VkVditor,
51
+ mergeProps(_ctx.coreProps, toHandlers(_ctx.coreEmits)),
52
+ {
53
+ footer: withCtx(() => [
410
54
  renderSlot(_ctx.$slots, "footer")
411
- ],
412
- 2
413
- /* CLASS */
414
- )
415
- ]),
416
- _: 3
417
- /* FORWARDED */
418
- }, 8, ["to"])) : createCommentVNode("v-if", true),
419
- _ctx.ready ? (openBlock(), createBlock(_component_HandleValue, {
420
- key: 1,
421
- "model-value": _ctx.modelValue,
422
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event))
423
- }, null, 8, ["model-value"])) : createCommentVNode("v-if", true),
424
- _ctx.ready ? (openBlock(), createBlock(_component_HandleFullscreen, {
425
- key: 2,
426
- fullscreen: _ctx.fullscreen,
427
- "onUpdate:fullscreen": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:fullscreen", $event))
428
- }, null, 8, ["fullscreen"])) : createCommentVNode("v-if", true),
429
- _ctx.ready ? renderSlot(_ctx.$slots, "default", { key: 3 }) : createCommentVNode("v-if", true)
430
- ],
431
- 64
432
- /* STABLE_FRAGMENT */
55
+ ]),
56
+ _: 3
57
+ /* FORWARDED */
58
+ },
59
+ 16
60
+ /* FULL_PROPS */
61
+ )
62
+ ]),
63
+ _: 3
64
+ /* FORWARDED */
65
+ },
66
+ 16
67
+ /* FULL_PROPS */
433
68
  );
434
69
  }
435
70
  var VkfVditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/vditor/src/index.vue"]]);
@@ -1,13 +1,14 @@
1
- import { PropType } from 'vue';
2
- import { DefaultOptions } from './types';
3
- import Vditor from 'vditor';
4
1
  export declare const props: {
2
+ readonly: {
3
+ type: BooleanConstructor;
4
+ default: any;
5
+ };
5
6
  modelValue: {
6
7
  type: StringConstructor;
7
8
  default: string;
8
9
  };
9
10
  defaultOptions: {
10
- type: PropType<DefaultOptions>;
11
+ type: import("vue").PropType<IOptions>;
11
12
  default: () => IOptions;
12
13
  };
13
14
  placeholder: {
@@ -15,16 +16,61 @@ export declare const props: {
15
16
  default: string;
16
17
  };
17
18
  toolbar: {
18
- type: PropType<string[]>;
19
+ type: import("vue").PropType<string[]>;
19
20
  default: () => string[];
20
21
  };
21
22
  fullscreen: {
22
23
  type: BooleanConstructor;
23
24
  default: boolean;
24
25
  };
26
+ required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
27
+ formItemSize: {
28
+ type: import("vue").PropType<"default" | "small" | "large">;
29
+ default: "default" | "small" | "large";
30
+ };
31
+ formItemSlots: {
32
+ type: import("vue").PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
33
+ default: any;
34
+ };
35
+ elRef: {
36
+ type: import("vue").PropType<any>;
37
+ required: boolean;
38
+ };
39
+ inline: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ labelPosition: {
44
+ type: import("vue").PropType<"right">;
45
+ default: string;
46
+ };
47
+ label: StringConstructor;
48
+ labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
49
+ prop: {
50
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
51
+ readonly required: false;
52
+ readonly validator: ((val: unknown) => boolean) | undefined;
53
+ __epPropKey: true;
54
+ };
55
+ rules: {
56
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
57
+ readonly required: false;
58
+ readonly validator: ((val: unknown) => boolean) | undefined;
59
+ __epPropKey: true;
60
+ };
61
+ error: StringConstructor;
62
+ validateStatus: {
63
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
64
+ readonly required: false;
65
+ readonly validator: ((val: unknown) => boolean) | undefined;
66
+ __epPropKey: true;
67
+ };
68
+ for: StringConstructor;
69
+ inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
70
+ showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
25
71
  };
26
72
  export declare const emits: {
27
- load: (e: Vditor) => Vditor;
73
+ load: (e: import("vditor").default) => import("vditor").default;
28
74
  'update:modelValue': (e: string) => string;
29
75
  ctrlEnter: (e: string) => string;
30
76
  'update:fullscreen': (e: boolean) => boolean;