@vunk/form 1.2.0 → 1.3.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/components/download-plus/index.cjs +4 -4
- package/components/download-plus/index.mjs +4 -4
- package/components/form-item/index.cjs +3 -4
- package/components/form-item/index.mjs +3 -4
- package/components/input/index.cjs +2 -2
- package/components/input/index.mjs +2 -2
- package/components/monaco-editor/index.cjs +83 -0
- package/components/monaco-editor/index.css +3 -0
- package/components/monaco-editor/index.mjs +77 -0
- package/components/slider/index.cjs +3 -3
- package/components/slider/index.mjs +3 -3
- package/components/templates-default/index.cjs +41 -26
- package/components/templates-default/index.mjs +41 -26
- package/components/upload/index.cjs +2 -2
- package/components/upload/index.mjs +2 -2
- package/components/upload-plus/index.cjs +19 -20
- package/components/upload-plus/index.mjs +19 -20
- package/components/vditor/index.cjs +43 -408
- package/components/vditor/index.mjs +44 -409
- package/composables/useSourceManager.d.ts +1 -1
- package/index.css +4 -13
- package/package.json +9 -7
- package/shared/element-plus/ctx.d.ts +3 -3
- package/shared/element-plus/instances.d.ts +2 -2
- package/components/button/index.d.ts +0 -4
- package/components/button/src/ctx.d.ts +0 -96
- package/components/button/src/index.vue.d.ts +0 -219
- package/components/button/src/types.d.ts +0 -13
- package/components/cascader/index.d.ts +0 -6
- package/components/cascader/src/ctx.d.ts +0 -120
- package/components/cascader/src/index.vue.d.ts +0 -291
- package/components/cascader/src/types.d.ts +0 -7
- package/components/cascader/src/use.d.ts +0 -5
- package/components/checkbox/index.d.ts +0 -5
- package/components/checkbox/src/ctx.d.ts +0 -89
- package/components/checkbox/src/index.vue.d.ts +0 -203
- package/components/checkbox/src/types.d.ts +0 -8
- package/components/color-picker/index.d.ts +0 -4
- package/components/color-picker/src/ctx.d.ts +0 -80
- package/components/color-picker/src/index.vue.d.ts +0 -192
- package/components/color-picker/src/types.d.ts +0 -7
- package/components/date-picker/index.d.ts +0 -5
- package/components/date-picker/src/ctx.d.ts +0 -158
- package/components/date-picker/src/index.vue.d.ts +0 -376
- package/components/date-picker/src/types.d.ts +0 -20
- package/components/date-picker-range/index.d.ts +0 -4
- package/components/date-picker-range/src/ctx.d.ts +0 -177
- package/components/date-picker-range/src/index.vue.d.ts +0 -398
- package/components/date-picker-range/src/types.d.ts +0 -12
- package/components/download-plus/index.d.ts +0 -4
- package/components/download-plus/src/api.d.ts +0 -13
- package/components/download-plus/src/const.d.ts +0 -9
- package/components/download-plus/src/ctx.d.ts +0 -84
- package/components/download-plus/src/index.vue.d.ts +0 -206
- package/components/download-plus/src/types.d.ts +0 -17
- package/components/esri-input-geojson/index.d.ts +0 -6
- package/components/esri-input-geojson/src/append.vue.d.ts +0 -32
- package/components/esri-input-geojson/src/const.d.ts +0 -12
- package/components/esri-input-geojson/src/ctx.d.ts +0 -223
- package/components/esri-input-geojson/src/default-view.vue.d.ts +0 -133
- package/components/esri-input-geojson/src/index.vue.d.ts +0 -549
- package/components/esri-input-geojson/src/types.d.ts +0 -22
- package/components/esri-input-geojson/src/viewer.vue.d.ts +0 -296
- package/components/form/index.d.ts +0 -5
- package/components/form/src/ctx.d.ts +0 -84
- package/components/form/src/index.vue.d.ts +0 -455
- package/components/form/src/types.d.ts +0 -12
- package/components/form/src/utils.d.ts +0 -15
- package/components/form-item/index.d.ts +0 -5
- package/components/form-item/src/ctx.d.ts +0 -62
- package/components/form-item/src/index.vue.d.ts +0 -140
- package/components/form-item/src/types.d.ts +0 -6
- package/components/form-item-renderer/index.d.ts +0 -5
- package/components/form-item-renderer/src/ctx.d.ts +0 -16
- package/components/form-item-renderer/src/index.vue.d.ts +0 -38
- package/components/form-item-renderer/src/symbols.d.ts +0 -2
- package/components/form-item-renderer/src/types.d.ts +0 -7
- package/components/form-item-renderer-template/index.d.ts +0 -4
- package/components/form-item-renderer-template/src/ctx.d.ts +0 -7
- package/components/form-item-renderer-template/src/index.vue.d.ts +0 -16
- package/components/form-item-renderer-template/src/types.d.ts +0 -1
- package/components/geoinput/index.d.ts +0 -4
- package/components/geoinput/src/ctx.d.ts +0 -228
- package/components/geoinput/src/index.vue.d.ts +0 -496
- package/components/geoinput/src/types.d.ts +0 -12
- package/components/geoinput-read/index.d.ts +0 -5
- package/components/geoinput-read/src/append.vue.d.ts +0 -6
- package/components/geoinput-read/src/core.vue.d.ts +0 -482
- package/components/geoinput-read/src/ctx.d.ts +0 -199
- package/components/geoinput-read/src/index.vue.d.ts +0 -441
- package/components/geoinput-read/src/types.d.ts +0 -3
- package/components/geoinput-update/index.d.ts +0 -5
- package/components/geoinput-update/src/append.vue.d.ts +0 -20
- package/components/geoinput-update/src/ctx.d.ts +0 -207
- package/components/geoinput-update/src/index.vue.d.ts +0 -508
- package/components/geoinput-update/src/types.d.ts +0 -6
- package/components/input/index.d.ts +0 -5
- package/components/input/src/ctx.d.ts +0 -148
- package/components/input/src/index.vue.d.ts +0 -343
- package/components/input/src/types.d.ts +0 -13
- package/components/input-link/index.d.ts +0 -4
- package/components/input-link/src/ctx.d.ts +0 -179
- package/components/input-link/src/index.vue.d.ts +0 -373
- package/components/input-link/src/types.d.ts +0 -7
- package/components/input-number/index.d.ts +0 -4
- package/components/input-number/src/ctx.d.ts +0 -90
- package/components/input-number/src/index.vue.d.ts +0 -216
- package/components/input-number/src/types.d.ts +0 -8
- package/components/radio/index.d.ts +0 -4
- package/components/radio/src/ctx.d.ts +0 -82
- package/components/radio/src/index.vue.d.ts +0 -195
- package/components/radio/src/types.d.ts +0 -8
- package/components/select/index.d.ts +0 -4
- package/components/select/src/ctx.d.ts +0 -156
- package/components/select/src/index.vue.d.ts +0 -492
- package/components/select/src/types.d.ts +0 -11
- package/components/slider/index.d.ts +0 -4
- package/components/slider/src/ctx.d.ts +0 -127
- package/components/slider/src/index.vue.d.ts +0 -328
- package/components/slider/src/types.d.ts +0 -7
- package/components/switch/index.d.ts +0 -4
- package/components/switch/src/ctx.d.ts +0 -114
- package/components/switch/src/index.vue.d.ts +0 -273
- package/components/switch/src/types.d.ts +0 -8
- package/components/templates-default/index.d.ts +0 -4
- package/components/templates-default/src/ctx.d.ts +0 -19
- package/components/templates-default/src/index.vue.d.ts +0 -43
- package/components/templates-default/src/types.d.ts +0 -53
- package/components/templates-element-plus/index.d.ts +0 -4
- package/components/templates-element-plus/src/ctx.d.ts +0 -9
- package/components/templates-element-plus/src/index.vue.d.ts +0 -19
- package/components/templates-element-plus/src/types.d.ts +0 -13
- package/components/templates-esri/index.d.ts +0 -4
- package/components/templates-esri/src/ctx.d.ts +0 -11
- package/components/templates-esri/src/index.vue.d.ts +0 -20
- package/components/templates-esri/src/types.d.ts +0 -2
- package/components/templates-layout/index.d.ts +0 -4
- package/components/templates-layout/src/ctx.d.ts +0 -9
- package/components/templates-layout/src/index.vue.d.ts +0 -19
- package/components/templates-layout/src/types.d.ts +0 -32
- package/components/templates-mapbox/index.d.ts +0 -4
- package/components/templates-mapbox/src/ctx.d.ts +0 -11
- package/components/templates-mapbox/src/index.vue.d.ts +0 -20
- package/components/templates-mapbox/src/types.d.ts +0 -3
- package/components/templates-variant/index.d.ts +0 -4
- package/components/templates-variant/src/ctx.d.ts +0 -11
- package/components/templates-variant/src/index.vue.d.ts +0 -20
- package/components/templates-variant/src/types.d.ts +0 -2
- package/components/upload/index.d.ts +0 -5
- package/components/upload/src/ctx.d.ts +0 -180
- package/components/upload/src/file.vue.d.ts +0 -106
- package/components/upload/src/index.vue.d.ts +0 -427
- package/components/upload/src/types.d.ts +0 -7
- package/components/upload-plus/index.d.ts +0 -6
- package/components/upload-plus/src/api.d.ts +0 -38
- package/components/upload-plus/src/const.d.ts +0 -9
- package/components/upload-plus/src/ctx.d.ts +0 -103
- package/components/upload-plus/src/index.vue.d.ts +0 -215
- package/components/upload-plus/src/types.d.ts +0 -32
- package/components/van-cascader/index.d.ts +0 -4
- package/components/van-cascader/src/ctx.d.ts +0 -118
- package/components/van-cascader/src/index.vue.d.ts +0 -275
- package/components/van-cascader/src/types.d.ts +0 -1
- package/components/var-datetime-picker/index.d.ts +0 -4
- package/components/var-datetime-picker/src/const.d.ts +0 -10
- package/components/var-datetime-picker/src/ctx.d.ts +0 -67
- package/components/var-datetime-picker/src/index.vue.d.ts +0 -157
- package/components/var-datetime-picker/src/types.d.ts +0 -22
- package/components/vditor/index.css +0 -12
- package/components/vditor/index.d.ts +0 -4
- package/components/vditor/src/ctx.d.ts +0 -31
- package/components/vditor/src/handle-fullscreen.vue.d.ts +0 -18
- package/components/vditor/src/handle-value.vue.d.ts +0 -18
- package/components/vditor/src/index.vue.d.ts +0 -66
- package/components/vditor/src/types.d.ts +0 -9
- package/components/vditor/src/use.d.ts +0 -4
|
@@ -398,9 +398,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
398
398
|
type: "danger",
|
|
399
399
|
onClick: _ctx.handlePause
|
|
400
400
|
}, {
|
|
401
|
-
default: vue.withCtx(() => [
|
|
401
|
+
default: vue.withCtx(() => _cache[0] || (_cache[0] = [
|
|
402
402
|
vue.createTextVNode(" \u6682\u505C ")
|
|
403
|
-
]),
|
|
403
|
+
])),
|
|
404
404
|
_: 1
|
|
405
405
|
/* STABLE */
|
|
406
406
|
}, 8, ["onClick"])) : (vue.openBlock(), vue.createBlock(_component_el_button, {
|
|
@@ -408,9 +408,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
408
408
|
type: "primary",
|
|
409
409
|
onClick: _ctx.handleDownload
|
|
410
410
|
}, {
|
|
411
|
-
default: vue.withCtx(() => [
|
|
411
|
+
default: vue.withCtx(() => _cache[1] || (_cache[1] = [
|
|
412
412
|
vue.createTextVNode(" \u4E0B\u8F7D ")
|
|
413
|
-
]),
|
|
413
|
+
])),
|
|
414
414
|
_: 1
|
|
415
415
|
/* STABLE */
|
|
416
416
|
}, 8, ["onClick"]))
|
|
@@ -394,9 +394,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
394
394
|
type: "danger",
|
|
395
395
|
onClick: _ctx.handlePause
|
|
396
396
|
}, {
|
|
397
|
-
default: withCtx(() => [
|
|
397
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
398
398
|
createTextVNode(" \u6682\u505C ")
|
|
399
|
-
]),
|
|
399
|
+
])),
|
|
400
400
|
_: 1
|
|
401
401
|
/* STABLE */
|
|
402
402
|
}, 8, ["onClick"])) : (openBlock(), createBlock(_component_el_button, {
|
|
@@ -404,9 +404,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
404
404
|
type: "primary",
|
|
405
405
|
onClick: _ctx.handleDownload
|
|
406
406
|
}, {
|
|
407
|
-
default: withCtx(() => [
|
|
407
|
+
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
408
408
|
createTextVNode(" \u4E0B\u8F7D ")
|
|
409
|
-
]),
|
|
409
|
+
])),
|
|
410
410
|
_: 1
|
|
411
411
|
/* STABLE */
|
|
412
412
|
}, 8, ["onClick"]))
|
|
@@ -119,15 +119,14 @@ var _sfc_main = vue.defineComponent({
|
|
|
119
119
|
|
|
120
120
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
121
121
|
const _component_ElFormItem = vue.resolveComponent("ElFormItem");
|
|
122
|
-
return vue.openBlock(), vue.createBlock(_component_ElFormItem, vue.mergeProps({
|
|
122
|
+
return vue.openBlock(), vue.createBlock(_component_ElFormItem, vue.mergeProps(_ctx.formItemBindProps, {
|
|
123
|
+
ref: _ctx.elRef,
|
|
123
124
|
class: ["vkf-form-item", {
|
|
124
125
|
"is-readonly": _ctx.readonly,
|
|
125
126
|
"vkf-form-item--inline": _ctx.inline,
|
|
126
127
|
"vkf-form-item--label-right": _ctx.labelPosition === "right"
|
|
127
|
-
}]
|
|
128
|
-
}, _ctx.formItemBindProps, {
|
|
128
|
+
}],
|
|
129
129
|
size: _ctx.formItemSize,
|
|
130
|
-
ref: _ctx.elRef,
|
|
131
130
|
rules: _ctx.rules
|
|
132
131
|
}), vue.createSlots({
|
|
133
132
|
default: vue.withCtx(() => [
|
|
@@ -115,15 +115,14 @@ var _sfc_main = defineComponent({
|
|
|
115
115
|
|
|
116
116
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
117
117
|
const _component_ElFormItem = resolveComponent("ElFormItem");
|
|
118
|
-
return openBlock(), createBlock(_component_ElFormItem, mergeProps({
|
|
118
|
+
return openBlock(), createBlock(_component_ElFormItem, mergeProps(_ctx.formItemBindProps, {
|
|
119
|
+
ref: _ctx.elRef,
|
|
119
120
|
class: ["vkf-form-item", {
|
|
120
121
|
"is-readonly": _ctx.readonly,
|
|
121
122
|
"vkf-form-item--inline": _ctx.inline,
|
|
122
123
|
"vkf-form-item--label-right": _ctx.labelPosition === "right"
|
|
123
|
-
}]
|
|
124
|
-
}, _ctx.formItemBindProps, {
|
|
124
|
+
}],
|
|
125
125
|
size: _ctx.formItemSize,
|
|
126
|
-
ref: _ctx.elRef,
|
|
127
126
|
rules: _ctx.rules
|
|
128
127
|
}), createSlots({
|
|
129
128
|
default: withCtx(() => [
|
|
@@ -50,8 +50,8 @@ var _sfc_main = vue.defineComponent({
|
|
|
50
50
|
ElInput: elementPlus.ElInput,
|
|
51
51
|
VkfFormItem: formItem.VkfFormItem
|
|
52
52
|
},
|
|
53
|
-
emits,
|
|
54
53
|
props,
|
|
54
|
+
emits,
|
|
55
55
|
setup(props2, { emit }) {
|
|
56
56
|
const inputBindProps = elementPlus$1.createInputBindProps(props2, ["readonly", "label"]);
|
|
57
57
|
const inputOnEmits = elementPlus$1.createInputOnEmits(emit);
|
|
@@ -78,7 +78,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78
78
|
maxlength: _ctx.maxlength,
|
|
79
79
|
minlength: _ctx.minlength,
|
|
80
80
|
rows: _ctx.rows
|
|
81
|
-
}, _ctx.inputBindProps,
|
|
81
|
+
}, _ctx.inputBindProps, { readonly: _ctx.readonly }, vue.toHandlers(_ctx.inputOnEmits)), vue.createSlots({
|
|
82
82
|
default: vue.withCtx(() => [
|
|
83
83
|
vue.renderSlot(_ctx.$slots, "default")
|
|
84
84
|
]),
|
|
@@ -46,8 +46,8 @@ var _sfc_main = defineComponent({
|
|
|
46
46
|
ElInput,
|
|
47
47
|
VkfFormItem
|
|
48
48
|
},
|
|
49
|
-
emits,
|
|
50
49
|
props,
|
|
50
|
+
emits,
|
|
51
51
|
setup(props2, { emit }) {
|
|
52
52
|
const inputBindProps = createInputBindProps(props2, ["readonly", "label"]);
|
|
53
53
|
const inputOnEmits = createInputOnEmits(emit);
|
|
@@ -74,7 +74,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
74
74
|
maxlength: _ctx.maxlength,
|
|
75
75
|
minlength: _ctx.minlength,
|
|
76
76
|
rows: _ctx.rows
|
|
77
|
-
}, _ctx.inputBindProps,
|
|
77
|
+
}, _ctx.inputBindProps, { readonly: _ctx.readonly }, toHandlers(_ctx.inputOnEmits)), createSlots({
|
|
78
78
|
default: withCtx(() => [
|
|
79
79
|
renderSlot(_ctx.$slots, "default")
|
|
80
80
|
]),
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var formItem = require('@vunk/form/components/form-item');
|
|
6
|
+
var monacoEditor = require('@vunk/plus/components/monaco-editor');
|
|
7
|
+
var vue = require('vue');
|
|
8
|
+
var composables = require('@vunk/form/composables');
|
|
9
|
+
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
10
|
+
|
|
11
|
+
const props = {
|
|
12
|
+
...formItem._VkfFormItemCtx.props,
|
|
13
|
+
...monacoEditor._VkMonacoEditorCtx.props,
|
|
14
|
+
readonly: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: void 0
|
|
17
|
+
},
|
|
18
|
+
height: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "200px"
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const emits = {
|
|
24
|
+
...monacoEditor._VkMonacoEditorCtx.emits
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
var _sfc_main = vue.defineComponent({
|
|
28
|
+
name: "VkfMonacoEditor",
|
|
29
|
+
components: {
|
|
30
|
+
VkMonacoEditor: monacoEditor.VkMonacoEditor,
|
|
31
|
+
VkfFormItem: formItem.VkfFormItem
|
|
32
|
+
},
|
|
33
|
+
props,
|
|
34
|
+
emits,
|
|
35
|
+
setup(props2, { emit }) {
|
|
36
|
+
const coreProps = monacoEditor._VkMonacoEditorCtx.createBindProps(props2, ["readOnly"]);
|
|
37
|
+
const coreEmits = monacoEditor._VkMonacoEditorCtx.createOnEmits(emit);
|
|
38
|
+
const formItemBindProps = formItem._VkfFormItemCtx.createBindProps(props2);
|
|
39
|
+
const readonly = composables.useComputedReadonly(props2);
|
|
40
|
+
return {
|
|
41
|
+
formItemBindProps,
|
|
42
|
+
readonly,
|
|
43
|
+
coreProps,
|
|
44
|
+
coreEmits
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
50
|
+
const _component_VkMonacoEditor = vue.resolveComponent("VkMonacoEditor");
|
|
51
|
+
const _component_VkfFormItem = vue.resolveComponent("VkfFormItem");
|
|
52
|
+
return vue.openBlock(), vue.createBlock(
|
|
53
|
+
_component_VkfFormItem,
|
|
54
|
+
vue.normalizeProps(vue.guardReactiveProps(_ctx.formItemBindProps)),
|
|
55
|
+
{
|
|
56
|
+
default: vue.withCtx(() => [
|
|
57
|
+
vue.createVNode(_component_VkMonacoEditor, vue.mergeProps({
|
|
58
|
+
style: {
|
|
59
|
+
height: _ctx.height
|
|
60
|
+
},
|
|
61
|
+
"read-only": _ctx.readonly
|
|
62
|
+
}, _ctx.coreProps, vue.toHandlers(_ctx.coreEmits)), null, 16, ["style", "read-only"])
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
/* STABLE */
|
|
66
|
+
},
|
|
67
|
+
16
|
|
68
|
+
/* FULL_PROPS */
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
var VkfMonacoEditor = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/monaco-editor/src/index.vue"]]);
|
|
72
|
+
|
|
73
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
74
|
+
__proto__: null
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
VkfMonacoEditor.install = (app) => {
|
|
78
|
+
app.component(VkfMonacoEditor.name || "VkfMonacoEditor", VkfMonacoEditor);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
exports.VkfMonacoEditor = VkfMonacoEditor;
|
|
82
|
+
exports.__VkfMonacoEditor = types;
|
|
83
|
+
exports.default = VkfMonacoEditor;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
|
|
2
|
+
import { _VkMonacoEditorCtx, VkMonacoEditor } from '@vunk/plus/components/monaco-editor';
|
|
3
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, mergeProps, toHandlers } from 'vue';
|
|
4
|
+
import { useComputedReadonly } from '@vunk/form/composables';
|
|
5
|
+
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
6
|
+
|
|
7
|
+
const props = {
|
|
8
|
+
..._VkfFormItemCtx.props,
|
|
9
|
+
..._VkMonacoEditorCtx.props,
|
|
10
|
+
readonly: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: void 0
|
|
13
|
+
},
|
|
14
|
+
height: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "200px"
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
const emits = {
|
|
20
|
+
..._VkMonacoEditorCtx.emits
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
var _sfc_main = defineComponent({
|
|
24
|
+
name: "VkfMonacoEditor",
|
|
25
|
+
components: {
|
|
26
|
+
VkMonacoEditor,
|
|
27
|
+
VkfFormItem
|
|
28
|
+
},
|
|
29
|
+
props,
|
|
30
|
+
emits,
|
|
31
|
+
setup(props2, { emit }) {
|
|
32
|
+
const coreProps = _VkMonacoEditorCtx.createBindProps(props2, ["readOnly"]);
|
|
33
|
+
const coreEmits = _VkMonacoEditorCtx.createOnEmits(emit);
|
|
34
|
+
const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
|
|
35
|
+
const readonly = useComputedReadonly(props2);
|
|
36
|
+
return {
|
|
37
|
+
formItemBindProps,
|
|
38
|
+
readonly,
|
|
39
|
+
coreProps,
|
|
40
|
+
coreEmits
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
46
|
+
const _component_VkMonacoEditor = resolveComponent("VkMonacoEditor");
|
|
47
|
+
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
48
|
+
return openBlock(), createBlock(
|
|
49
|
+
_component_VkfFormItem,
|
|
50
|
+
normalizeProps(guardReactiveProps(_ctx.formItemBindProps)),
|
|
51
|
+
{
|
|
52
|
+
default: withCtx(() => [
|
|
53
|
+
createVNode(_component_VkMonacoEditor, mergeProps({
|
|
54
|
+
style: {
|
|
55
|
+
height: _ctx.height
|
|
56
|
+
},
|
|
57
|
+
"read-only": _ctx.readonly
|
|
58
|
+
}, _ctx.coreProps, toHandlers(_ctx.coreEmits)), null, 16, ["style", "read-only"])
|
|
59
|
+
]),
|
|
60
|
+
_: 1
|
|
61
|
+
/* STABLE */
|
|
62
|
+
},
|
|
63
|
+
16
|
|
64
|
+
/* FULL_PROPS */
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
var VkfMonacoEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/monaco-editor/src/index.vue"]]);
|
|
68
|
+
|
|
69
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
70
|
+
__proto__: null
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
VkfMonacoEditor.install = (app) => {
|
|
74
|
+
app.component(VkfMonacoEditor.name || "VkfMonacoEditor", VkfMonacoEditor);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export { VkfMonacoEditor, types as __VkfMonacoEditor, VkfMonacoEditor as default };
|
|
@@ -25,8 +25,8 @@ var _sfc_main = vue.defineComponent({
|
|
|
25
25
|
ElSlider: elementPlus.ElSlider,
|
|
26
26
|
VkfFormItem: formItem.VkfFormItem
|
|
27
27
|
},
|
|
28
|
-
emits,
|
|
29
28
|
props,
|
|
29
|
+
emits,
|
|
30
30
|
setup(props2, { emit }) {
|
|
31
31
|
const formItemBindProps = formItem._VkfFormItemCtx.createBindProps(props2);
|
|
32
32
|
const readonly = composables.useComputedReadonly(props2);
|
|
@@ -56,10 +56,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
56
56
|
class: {
|
|
57
57
|
"is-readonly": _ctx.readonly
|
|
58
58
|
}
|
|
59
|
-
}, _ctx.coreProps,
|
|
59
|
+
}, _ctx.coreProps, {
|
|
60
60
|
"model-value": _ctx.modelValue ?? _ctx.defaultModelValue,
|
|
61
61
|
disabled: _ctx.readonly || _ctx.disabled
|
|
62
|
-
}), {
|
|
62
|
+
}, vue.toHandlers(_ctx.coreEmits)), {
|
|
63
63
|
default: vue.withCtx(() => [
|
|
64
64
|
vue.renderSlot(_ctx.$slots, "default")
|
|
65
65
|
]),
|
|
@@ -21,8 +21,8 @@ var _sfc_main = defineComponent({
|
|
|
21
21
|
ElSlider,
|
|
22
22
|
VkfFormItem
|
|
23
23
|
},
|
|
24
|
-
emits,
|
|
25
24
|
props,
|
|
25
|
+
emits,
|
|
26
26
|
setup(props2, { emit }) {
|
|
27
27
|
const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
|
|
28
28
|
const readonly = useComputedReadonly(props2);
|
|
@@ -52,10 +52,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52
52
|
class: {
|
|
53
53
|
"is-readonly": _ctx.readonly
|
|
54
54
|
}
|
|
55
|
-
}, _ctx.coreProps,
|
|
55
|
+
}, _ctx.coreProps, {
|
|
56
56
|
"model-value": _ctx.modelValue ?? _ctx.defaultModelValue,
|
|
57
57
|
disabled: _ctx.readonly || _ctx.disabled
|
|
58
|
-
}), {
|
|
58
|
+
}, toHandlers(_ctx.coreEmits)), {
|
|
59
59
|
default: withCtx(() => [
|
|
60
60
|
renderSlot(_ctx.$slots, "default")
|
|
61
61
|
]),
|
|
@@ -55,8 +55,8 @@ var _sfc_main = vue.defineComponent({
|
|
|
55
55
|
VkfInputLink: inputLink.VkfInputLink,
|
|
56
56
|
VkfSlider: slider.VkfSlider
|
|
57
57
|
},
|
|
58
|
-
emits,
|
|
59
58
|
props,
|
|
59
|
+
emits,
|
|
60
60
|
setup(props2) {
|
|
61
61
|
const getFormDataValue = (raw) => {
|
|
62
62
|
const prop = raw.prop;
|
|
@@ -109,12 +109,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
109
109
|
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
110
110
|
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfColorPicker, vue.mergeProps({
|
|
111
111
|
key: 0,
|
|
112
|
-
|
|
112
|
+
"model-value": _ctx.getFormDataValue(raw)
|
|
113
|
+
}, sourceData, {
|
|
113
114
|
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
114
115
|
k: sourceData.prop,
|
|
115
116
|
v: $event
|
|
116
117
|
})
|
|
117
|
-
}
|
|
118
|
+
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
118
119
|
]),
|
|
119
120
|
_: 1
|
|
120
121
|
/* STABLE */
|
|
@@ -123,12 +124,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
123
124
|
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
124
125
|
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfUpload, vue.mergeProps({
|
|
125
126
|
key: 0,
|
|
126
|
-
|
|
127
|
+
"file-list": _ctx.getFormDataValue(raw)
|
|
128
|
+
}, sourceData, {
|
|
127
129
|
"onUpdate:fileList": ($event) => _ctx.$emit("setData", {
|
|
128
130
|
k: sourceData.prop,
|
|
129
131
|
v: $event
|
|
130
132
|
})
|
|
131
|
-
}
|
|
133
|
+
}), null, 16, ["file-list", "onUpdate:fileList"])) : vue.createCommentVNode("v-if", true)
|
|
132
134
|
]),
|
|
133
135
|
_: 1
|
|
134
136
|
/* STABLE */
|
|
@@ -137,12 +139,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
137
139
|
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
138
140
|
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfCheckbox, vue.mergeProps({
|
|
139
141
|
key: 0,
|
|
140
|
-
|
|
142
|
+
"model-value": _ctx.getFormDataValue(raw)
|
|
143
|
+
}, sourceData, {
|
|
141
144
|
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
142
145
|
k: sourceData.prop,
|
|
143
146
|
v: $event
|
|
144
147
|
})
|
|
145
|
-
}
|
|
148
|
+
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
146
149
|
]),
|
|
147
150
|
_: 1
|
|
148
151
|
/* STABLE */
|
|
@@ -151,12 +154,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
151
154
|
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
152
155
|
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfRadio, vue.mergeProps({
|
|
153
156
|
key: 0,
|
|
154
|
-
|
|
157
|
+
"model-value": _ctx.getFormDataValue(raw)
|
|
158
|
+
}, sourceData, {
|
|
155
159
|
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
156
160
|
k: sourceData.prop,
|
|
157
161
|
v: $event
|
|
158
162
|
})
|
|
159
|
-
}
|
|
163
|
+
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
160
164
|
]),
|
|
161
165
|
_: 1
|
|
162
166
|
/* STABLE */
|
|
@@ -165,12 +169,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
165
169
|
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
166
170
|
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfInput, vue.mergeProps({
|
|
167
171
|
key: 0,
|
|
168
|
-
|
|
172
|
+
"model-value": _ctx.getFormDataValue(raw)
|
|
173
|
+
}, sourceData, {
|
|
169
174
|
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
170
175
|
k: sourceData.prop,
|
|
171
176
|
v: $event
|
|
172
177
|
})
|
|
173
|
-
}
|
|
178
|
+
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
174
179
|
]),
|
|
175
180
|
_: 1
|
|
176
181
|
/* STABLE */
|
|
@@ -179,12 +184,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
179
184
|
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
180
185
|
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfSwitch, vue.mergeProps({
|
|
181
186
|
key: 0,
|
|
182
|
-
|
|
187
|
+
"model-value": _ctx.getFormDataValue(raw)
|
|
188
|
+
}, sourceData, {
|
|
183
189
|
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
184
190
|
k: sourceData.prop,
|
|
185
191
|
v: $event
|
|
186
192
|
})
|
|
187
|
-
}
|
|
193
|
+
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
188
194
|
]),
|
|
189
195
|
_: 1
|
|
190
196
|
/* STABLE */
|
|
@@ -193,12 +199,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
193
199
|
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
194
200
|
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfSelect, vue.mergeProps({
|
|
195
201
|
key: 0,
|
|
196
|
-
|
|
202
|
+
"model-value": _ctx.getFormDataValue(raw)
|
|
203
|
+
}, sourceData, {
|
|
197
204
|
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
198
205
|
k: sourceData.prop,
|
|
199
206
|
v: $event
|
|
200
207
|
})
|
|
201
|
-
}
|
|
208
|
+
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
202
209
|
]),
|
|
203
210
|
_: 1
|
|
204
211
|
/* STABLE */
|
|
@@ -207,12 +214,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
207
214
|
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
208
215
|
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfDatePicker, vue.mergeProps({
|
|
209
216
|
key: 0,
|
|
210
|
-
|
|
217
|
+
"model-value": _ctx.getFormDataValue(raw)
|
|
218
|
+
}, sourceData, {
|
|
211
219
|
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
212
220
|
k: sourceData.prop,
|
|
213
221
|
v: $event
|
|
214
222
|
})
|
|
215
|
-
}
|
|
223
|
+
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
216
224
|
]),
|
|
217
225
|
_: 1
|
|
218
226
|
/* STABLE */
|
|
@@ -221,12 +229,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
221
229
|
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
222
230
|
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfInputNumber, vue.mergeProps({
|
|
223
231
|
key: 0,
|
|
224
|
-
|
|
232
|
+
"model-value": _ctx.getFormDataValue(raw)
|
|
233
|
+
}, sourceData, {
|
|
225
234
|
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
226
235
|
k: sourceData.prop,
|
|
227
236
|
v: $event
|
|
228
237
|
})
|
|
229
|
-
}
|
|
238
|
+
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
230
239
|
]),
|
|
231
240
|
_: 1
|
|
232
241
|
/* STABLE */
|
|
@@ -235,12 +244,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
235
244
|
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
236
245
|
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfCascader, vue.mergeProps({
|
|
237
246
|
key: 0,
|
|
238
|
-
|
|
247
|
+
"model-value": _ctx.getFormDataValue(raw)
|
|
248
|
+
}, sourceData, {
|
|
239
249
|
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
240
250
|
k: sourceData.prop,
|
|
241
251
|
v: $event
|
|
242
252
|
})
|
|
243
|
-
}
|
|
253
|
+
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
244
254
|
]),
|
|
245
255
|
_: 1
|
|
246
256
|
/* STABLE */
|
|
@@ -250,12 +260,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
250
260
|
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
251
261
|
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfInputLink, vue.mergeProps({
|
|
252
262
|
key: 0,
|
|
253
|
-
|
|
263
|
+
"model-value": _ctx.getFormDataValue(raw)
|
|
264
|
+
}, sourceData, {
|
|
254
265
|
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
255
266
|
k: sourceData.prop,
|
|
256
267
|
v: $event
|
|
257
268
|
})
|
|
258
|
-
}
|
|
269
|
+
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
259
270
|
]),
|
|
260
271
|
_: 1
|
|
261
272
|
/* STABLE */
|
|
@@ -265,12 +276,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
265
276
|
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
266
277
|
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfSlider, vue.mergeProps({
|
|
267
278
|
key: 0,
|
|
268
|
-
|
|
279
|
+
"model-value": _ctx.getFormDataValue(raw)
|
|
280
|
+
}, sourceData, {
|
|
269
281
|
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
270
282
|
k: sourceData.prop,
|
|
271
283
|
v: $event
|
|
272
284
|
})
|
|
273
|
-
}
|
|
285
|
+
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
274
286
|
]),
|
|
275
287
|
_: 1
|
|
276
288
|
/* STABLE */
|
|
@@ -300,7 +312,10 @@ var types = /*#__PURE__*/Object.freeze({
|
|
|
300
312
|
});
|
|
301
313
|
|
|
302
314
|
VkfTemplatesDefault.install = (app) => {
|
|
303
|
-
app.component(
|
|
315
|
+
app.component(
|
|
316
|
+
VkfTemplatesDefault.name || "VkfTemplatesDefault",
|
|
317
|
+
VkfTemplatesDefault
|
|
318
|
+
);
|
|
304
319
|
};
|
|
305
320
|
|
|
306
321
|
exports.VkfTemplatesDefault = VkfTemplatesDefault;
|