@jetlinks-web/components 2.4.16 → 2.4.17
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/es/EditTable/FormItem.js +1 -1
- package/es/FullPage/FullPage.js +1 -1
- package/es/RadioButton/RadioButton.js +1 -1
- package/es/Search/Advanced/SaveHistory.js +1 -1
- package/es/Search/Item.js +1 -1
- package/es/Search/Search.js +1 -1
- package/es/ValueItem/ValueItem.js +23 -11
- package/lib/EditTable/FormItem.js +1 -1
- package/lib/FullPage/FullPage.js +1 -1
- package/lib/RadioButton/RadioButton.js +1 -1
- package/lib/Search/Advanced/SaveHistory.js +1 -1
- package/lib/Search/Item.js +1 -1
- package/lib/Search/Search.js +1 -1
- package/lib/ValueItem/ValueItem.js +23 -11
- package/package.json +3 -3
package/es/EditTable/FormItem.js
CHANGED
|
@@ -48,7 +48,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
48
48
|
"onFieldChange": "setup-const"
|
|
49
49
|
} */
|
|
50
50
|
import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
51
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
51
|
+
const _withScopeId = n => (_pushScopeId("data-v-1737342934637"), n = n(), _popScopeId(), n);
|
|
52
52
|
const _hoisted_1 = { style: { "color": "#1d2129" } };
|
|
53
53
|
const _hoisted_2 = {
|
|
54
54
|
key: 0,
|
package/es/FullPage/FullPage.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
} */
|
|
10
10
|
import { defineComponent as _defineComponent } from 'vue';
|
|
11
11
|
import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
12
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
12
|
+
const _withScopeId = n => (_pushScopeId("data-v-1737342935096"), n = n(), _popScopeId(), n);
|
|
13
13
|
const _hoisted_1 = { class: "full-page-warp-content" };
|
|
14
14
|
import { ref, inject } from 'vue';
|
|
15
15
|
import { useElementBounding } from '@vueuse/core';
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"onClick": "setup-const"
|
|
11
11
|
} */
|
|
12
12
|
import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
13
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
13
|
+
const _withScopeId = n => (_pushScopeId("data-v-1737342936115"), n = n(), _popScopeId(), n);
|
|
14
14
|
const _hoisted_1 = ["onClick"];
|
|
15
15
|
const __sfc_main__ = Object.assign({
|
|
16
16
|
name: 'JRadioButton',
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
} */
|
|
24
24
|
import { defineComponent as _defineComponent } from 'vue';
|
|
25
25
|
import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
26
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
26
|
+
const _withScopeId = n => (_pushScopeId("data-v-1737342936915"), n = n(), _popScopeId(), n);
|
|
27
27
|
const _hoisted_1 = {
|
|
28
28
|
key: 0,
|
|
29
29
|
style: { "width": "240px" }
|
package/es/Search/Item.js
CHANGED
|
@@ -80,7 +80,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
80
80
|
} */
|
|
81
81
|
import { defineComponent as _defineComponent } from 'vue';
|
|
82
82
|
import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
83
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
83
|
+
const _withScopeId = n => (_pushScopeId("data-v-1737342936339"), n = n(), _popScopeId(), n);
|
|
84
84
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
85
85
|
const _hoisted_2 = {
|
|
86
86
|
key: 0,
|
package/es/Search/Search.js
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
} */
|
|
46
46
|
import { defineComponent as _defineComponent } from 'vue';
|
|
47
47
|
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
48
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
48
|
+
const _withScopeId = n => (_pushScopeId("data-v-1737342936427"), n = n(), _popScopeId(), n);
|
|
49
49
|
const _hoisted_1 = { class: "JSearch-content simple" };
|
|
50
50
|
const _hoisted_2 = { class: "JSearch-items" };
|
|
51
51
|
import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
|
|
@@ -26,10 +26,12 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
26
26
|
"action": "props",
|
|
27
27
|
"headers": "props",
|
|
28
28
|
"disabled": "props",
|
|
29
|
+
"extraProps": "props",
|
|
29
30
|
"CSSProperties": "setup-const",
|
|
30
31
|
"PropType": "setup-const",
|
|
31
32
|
"ref": "setup-const",
|
|
32
33
|
"watch": "setup-const",
|
|
34
|
+
"computed": "setup-const",
|
|
33
35
|
"componentsType": "setup-maybe-ref",
|
|
34
36
|
"MonacoEditor": "setup-maybe-ref",
|
|
35
37
|
"Select": "setup-maybe-ref",
|
|
@@ -40,12 +42,14 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
40
42
|
"InputPassword": "setup-maybe-ref",
|
|
41
43
|
"Upload": "setup-maybe-ref",
|
|
42
44
|
"Modal": "setup-maybe-ref",
|
|
45
|
+
"omit": "setup-maybe-ref",
|
|
43
46
|
"emit": "setup-const",
|
|
44
47
|
"props": "setup-reactive-const",
|
|
45
48
|
"typeMap": "setup-maybe-ref",
|
|
46
49
|
"myValue": "setup-ref",
|
|
47
50
|
"modalVisible": "setup-ref",
|
|
48
51
|
"objectValue": "setup-ref",
|
|
52
|
+
"bindProps": "setup-ref",
|
|
49
53
|
"handleItemModalSubmit": "setup-const",
|
|
50
54
|
"onChange": "setup-const",
|
|
51
55
|
"handleFileChange": "setup-const"
|
|
@@ -54,10 +58,11 @@ import { defineComponent as _defineComponent } from 'vue';
|
|
|
54
58
|
import { unref as _unref, mergeProps as _mergeProps, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock } from "vue";
|
|
55
59
|
const _hoisted_1 = { class: "value-item-warp" };
|
|
56
60
|
const _hoisted_2 = { style: { "width": "100%", "height": "300px" } };
|
|
57
|
-
import { ref, watch } from 'vue';
|
|
61
|
+
import { ref, watch, computed } from 'vue';
|
|
58
62
|
import { componentsType } from './util';
|
|
59
|
-
import { MonacoEditor } from '
|
|
63
|
+
import { MonacoEditor } from '../index';
|
|
60
64
|
import { Select, DatePicker, TimePicker, Input, InputNumber, InputPassword, Upload, Modal, } from 'ant-design-vue';
|
|
65
|
+
import { omit } from "lodash-es";
|
|
61
66
|
const __sfc_main__ = _defineComponent({
|
|
62
67
|
...{
|
|
63
68
|
name: 'JValueItem',
|
|
@@ -85,7 +90,11 @@ const __sfc_main__ = _defineComponent({
|
|
|
85
90
|
valueFormat: String,
|
|
86
91
|
action: [String, Promise],
|
|
87
92
|
headers: Object,
|
|
88
|
-
disabled: Boolean
|
|
93
|
+
disabled: Boolean,
|
|
94
|
+
extraProps: {
|
|
95
|
+
type: Object,
|
|
96
|
+
default: () => ({})
|
|
97
|
+
}
|
|
89
98
|
},
|
|
90
99
|
emits: ["update:modelValue", "change"],
|
|
91
100
|
setup(__props, { emit: __emit }) {
|
|
@@ -95,6 +104,9 @@ const __sfc_main__ = _defineComponent({
|
|
|
95
104
|
const myValue = ref(undefined);
|
|
96
105
|
const modalVisible = ref(false);
|
|
97
106
|
const objectValue = ref('');
|
|
107
|
+
const bindProps = computed(() => {
|
|
108
|
+
return Object.assign(omit(props, ['extraProps']), props.extraProps);
|
|
109
|
+
});
|
|
98
110
|
const handleItemModalSubmit = () => {
|
|
99
111
|
myValue.value = objectValue.value.replace(/[\r\n]\s*/g, '');
|
|
100
112
|
modalVisible.value = false;
|
|
@@ -128,7 +140,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
128
140
|
value: myValue.value,
|
|
129
141
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => ((myValue).value = $event)),
|
|
130
142
|
allowClear: ""
|
|
131
|
-
},
|
|
143
|
+
}, bindProps.value, {
|
|
132
144
|
onChange: _cache[1] || (_cache[1] = (_, options) => onChange(options))
|
|
133
145
|
}), null, 16 /* FULL_PROPS */, ["value"]))
|
|
134
146
|
: (_unref(typeMap).get(__props.itemType) === 'date')
|
|
@@ -139,7 +151,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
139
151
|
valueFormat: __props.valueFormat || 'YYYY-MM-DD HH:mm:ss',
|
|
140
152
|
allowClear: "",
|
|
141
153
|
showTime: ""
|
|
142
|
-
},
|
|
154
|
+
}, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value", "valueFormat"]))
|
|
143
155
|
: (_unref(typeMap).get(__props.itemType) === 'time')
|
|
144
156
|
? (_openBlock(), _createBlock(_unref(TimePicker), _mergeProps({
|
|
145
157
|
key: 2,
|
|
@@ -147,21 +159,21 @@ const __sfc_main__ = _defineComponent({
|
|
|
147
159
|
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => ((myValue).value = $event)),
|
|
148
160
|
valueFormat: __props.valueFormat || 'HH:mm:ss',
|
|
149
161
|
allowClear: ""
|
|
150
|
-
},
|
|
162
|
+
}, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value", "valueFormat"]))
|
|
151
163
|
: (_unref(typeMap).get(__props.itemType) === 'inputNumber')
|
|
152
164
|
? (_openBlock(), _createBlock(_unref(InputNumber), _mergeProps({
|
|
153
165
|
key: 3,
|
|
154
166
|
value: myValue.value,
|
|
155
167
|
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => ((myValue).value = $event)),
|
|
156
168
|
allowClear: ""
|
|
157
|
-
},
|
|
169
|
+
}, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
|
|
158
170
|
: (_unref(typeMap).get(__props.itemType) === 'object')
|
|
159
171
|
? (_openBlock(), _createBlock(_unref(Input), _mergeProps({
|
|
160
172
|
key: 4,
|
|
161
173
|
value: myValue.value,
|
|
162
174
|
"onUpdate:value": _cache[6] || (_cache[6] = ($event) => ((myValue).value = $event)),
|
|
163
175
|
allowClear: ""
|
|
164
|
-
},
|
|
176
|
+
}, bindProps.value, { onChange: onChange }), {
|
|
165
177
|
addonAfter: _withCtx(() => [
|
|
166
178
|
_createVNode(_component_AIcon, {
|
|
167
179
|
type: "FormOutlined",
|
|
@@ -177,7 +189,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
177
189
|
"onUpdate:value": _cache[7] || (_cache[7] = ($event) => ((myValue).value = $event)),
|
|
178
190
|
allowClear: "",
|
|
179
191
|
placeholder: "请输入链接"
|
|
180
|
-
},
|
|
192
|
+
}, bindProps.value, { onChange: onChange }), {
|
|
181
193
|
addonAfter: _withCtx(() => [
|
|
182
194
|
_createVNode(_unref(Upload), {
|
|
183
195
|
action: __props.action,
|
|
@@ -201,14 +213,14 @@ const __sfc_main__ = _defineComponent({
|
|
|
201
213
|
"onUpdate:value": _cache[8] || (_cache[8] = ($event) => ((myValue).value = $event)),
|
|
202
214
|
allowClear: "",
|
|
203
215
|
type: "password"
|
|
204
|
-
},
|
|
216
|
+
}, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
|
|
205
217
|
: (_openBlock(), _createBlock(_unref(Input), _mergeProps({
|
|
206
218
|
key: 7,
|
|
207
219
|
value: myValue.value,
|
|
208
220
|
"onUpdate:value": _cache[9] || (_cache[9] = ($event) => ((myValue).value = $event)),
|
|
209
221
|
allowClear: "",
|
|
210
222
|
type: "text"
|
|
211
|
-
},
|
|
223
|
+
}, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"])),
|
|
212
224
|
_createCommentVNode(" 代码编辑器弹窗 "),
|
|
213
225
|
_createVNode(_unref(Modal), {
|
|
214
226
|
visible: modalVisible.value,
|
|
@@ -48,7 +48,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
48
48
|
"onFieldChange": "setup-const"
|
|
49
49
|
} */
|
|
50
50
|
import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
51
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
51
|
+
const _withScopeId = n => (_pushScopeId("data-v-1737342934615"), n = n(), _popScopeId(), n);
|
|
52
52
|
const _hoisted_1 = { style: { "color": "#1d2129" } };
|
|
53
53
|
const _hoisted_2 = {
|
|
54
54
|
key: 0,
|
package/lib/FullPage/FullPage.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
} */
|
|
10
10
|
import { defineComponent as _defineComponent } from 'vue';
|
|
11
11
|
import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
12
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
12
|
+
const _withScopeId = n => (_pushScopeId("data-v-1737342935089"), n = n(), _popScopeId(), n);
|
|
13
13
|
const _hoisted_1 = { class: "full-page-warp-content" };
|
|
14
14
|
import { ref, inject } from 'vue';
|
|
15
15
|
import { useElementBounding } from '@vueuse/core';
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"onClick": "setup-const"
|
|
11
11
|
} */
|
|
12
12
|
import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
13
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
13
|
+
const _withScopeId = n => (_pushScopeId("data-v-1737342936098"), n = n(), _popScopeId(), n);
|
|
14
14
|
const _hoisted_1 = ["onClick"];
|
|
15
15
|
const __sfc_main__ = Object.assign({
|
|
16
16
|
name: 'JRadioButton',
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
} */
|
|
24
24
|
import { defineComponent as _defineComponent } from 'vue';
|
|
25
25
|
import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
26
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
26
|
+
const _withScopeId = n => (_pushScopeId("data-v-1737342936896"), n = n(), _popScopeId(), n);
|
|
27
27
|
const _hoisted_1 = {
|
|
28
28
|
key: 0,
|
|
29
29
|
style: { "width": "240px" }
|
package/lib/Search/Item.js
CHANGED
|
@@ -80,7 +80,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
80
80
|
} */
|
|
81
81
|
import { defineComponent as _defineComponent } from 'vue';
|
|
82
82
|
import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
83
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
83
|
+
const _withScopeId = n => (_pushScopeId("data-v-1737342936285"), n = n(), _popScopeId(), n);
|
|
84
84
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
85
85
|
const _hoisted_2 = {
|
|
86
86
|
key: 0,
|
package/lib/Search/Search.js
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
} */
|
|
46
46
|
import { defineComponent as _defineComponent } from 'vue';
|
|
47
47
|
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
48
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
48
|
+
const _withScopeId = n => (_pushScopeId("data-v-1737342936400"), n = n(), _popScopeId(), n);
|
|
49
49
|
const _hoisted_1 = { class: "JSearch-content simple" };
|
|
50
50
|
const _hoisted_2 = { class: "JSearch-items" };
|
|
51
51
|
import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
|
|
@@ -26,10 +26,12 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
26
26
|
"action": "props",
|
|
27
27
|
"headers": "props",
|
|
28
28
|
"disabled": "props",
|
|
29
|
+
"extraProps": "props",
|
|
29
30
|
"CSSProperties": "setup-const",
|
|
30
31
|
"PropType": "setup-const",
|
|
31
32
|
"ref": "setup-const",
|
|
32
33
|
"watch": "setup-const",
|
|
34
|
+
"computed": "setup-const",
|
|
33
35
|
"componentsType": "setup-maybe-ref",
|
|
34
36
|
"MonacoEditor": "setup-maybe-ref",
|
|
35
37
|
"Select": "setup-maybe-ref",
|
|
@@ -40,12 +42,14 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
40
42
|
"InputPassword": "setup-maybe-ref",
|
|
41
43
|
"Upload": "setup-maybe-ref",
|
|
42
44
|
"Modal": "setup-maybe-ref",
|
|
45
|
+
"omit": "setup-maybe-ref",
|
|
43
46
|
"emit": "setup-const",
|
|
44
47
|
"props": "setup-reactive-const",
|
|
45
48
|
"typeMap": "setup-maybe-ref",
|
|
46
49
|
"myValue": "setup-ref",
|
|
47
50
|
"modalVisible": "setup-ref",
|
|
48
51
|
"objectValue": "setup-ref",
|
|
52
|
+
"bindProps": "setup-ref",
|
|
49
53
|
"handleItemModalSubmit": "setup-const",
|
|
50
54
|
"onChange": "setup-const",
|
|
51
55
|
"handleFileChange": "setup-const"
|
|
@@ -54,10 +58,11 @@ import { defineComponent as _defineComponent } from 'vue';
|
|
|
54
58
|
import { unref as _unref, mergeProps as _mergeProps, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock } from "vue";
|
|
55
59
|
const _hoisted_1 = { class: "value-item-warp" };
|
|
56
60
|
const _hoisted_2 = { style: { "width": "100%", "height": "300px" } };
|
|
57
|
-
import { ref, watch } from 'vue';
|
|
61
|
+
import { ref, watch, computed } from 'vue';
|
|
58
62
|
import { componentsType } from './util';
|
|
59
|
-
import { MonacoEditor } from '
|
|
63
|
+
import { MonacoEditor } from '../index';
|
|
60
64
|
import { Select, DatePicker, TimePicker, Input, InputNumber, InputPassword, Upload, Modal, } from 'ant-design-vue';
|
|
65
|
+
import { omit } from "lodash-es";
|
|
61
66
|
const __sfc_main__ = _defineComponent({
|
|
62
67
|
...{
|
|
63
68
|
name: 'JValueItem',
|
|
@@ -85,7 +90,11 @@ const __sfc_main__ = _defineComponent({
|
|
|
85
90
|
valueFormat: String,
|
|
86
91
|
action: [String, Promise],
|
|
87
92
|
headers: Object,
|
|
88
|
-
disabled: Boolean
|
|
93
|
+
disabled: Boolean,
|
|
94
|
+
extraProps: {
|
|
95
|
+
type: Object,
|
|
96
|
+
default: () => ({})
|
|
97
|
+
}
|
|
89
98
|
},
|
|
90
99
|
emits: ["update:modelValue", "change"],
|
|
91
100
|
setup(__props, { emit: __emit }) {
|
|
@@ -95,6 +104,9 @@ const __sfc_main__ = _defineComponent({
|
|
|
95
104
|
const myValue = ref(undefined);
|
|
96
105
|
const modalVisible = ref(false);
|
|
97
106
|
const objectValue = ref('');
|
|
107
|
+
const bindProps = computed(() => {
|
|
108
|
+
return Object.assign(omit(props, ['extraProps']), props.extraProps);
|
|
109
|
+
});
|
|
98
110
|
const handleItemModalSubmit = () => {
|
|
99
111
|
myValue.value = objectValue.value.replace(/[\r\n]\s*/g, '');
|
|
100
112
|
modalVisible.value = false;
|
|
@@ -128,7 +140,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
128
140
|
value: myValue.value,
|
|
129
141
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => ((myValue).value = $event)),
|
|
130
142
|
allowClear: ""
|
|
131
|
-
},
|
|
143
|
+
}, bindProps.value, {
|
|
132
144
|
onChange: _cache[1] || (_cache[1] = (_, options) => onChange(options))
|
|
133
145
|
}), null, 16 /* FULL_PROPS */, ["value"]))
|
|
134
146
|
: (_unref(typeMap).get(__props.itemType) === 'date')
|
|
@@ -139,7 +151,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
139
151
|
valueFormat: __props.valueFormat || 'YYYY-MM-DD HH:mm:ss',
|
|
140
152
|
allowClear: "",
|
|
141
153
|
showTime: ""
|
|
142
|
-
},
|
|
154
|
+
}, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value", "valueFormat"]))
|
|
143
155
|
: (_unref(typeMap).get(__props.itemType) === 'time')
|
|
144
156
|
? (_openBlock(), _createBlock(_unref(TimePicker), _mergeProps({
|
|
145
157
|
key: 2,
|
|
@@ -147,21 +159,21 @@ const __sfc_main__ = _defineComponent({
|
|
|
147
159
|
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => ((myValue).value = $event)),
|
|
148
160
|
valueFormat: __props.valueFormat || 'HH:mm:ss',
|
|
149
161
|
allowClear: ""
|
|
150
|
-
},
|
|
162
|
+
}, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value", "valueFormat"]))
|
|
151
163
|
: (_unref(typeMap).get(__props.itemType) === 'inputNumber')
|
|
152
164
|
? (_openBlock(), _createBlock(_unref(InputNumber), _mergeProps({
|
|
153
165
|
key: 3,
|
|
154
166
|
value: myValue.value,
|
|
155
167
|
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => ((myValue).value = $event)),
|
|
156
168
|
allowClear: ""
|
|
157
|
-
},
|
|
169
|
+
}, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
|
|
158
170
|
: (_unref(typeMap).get(__props.itemType) === 'object')
|
|
159
171
|
? (_openBlock(), _createBlock(_unref(Input), _mergeProps({
|
|
160
172
|
key: 4,
|
|
161
173
|
value: myValue.value,
|
|
162
174
|
"onUpdate:value": _cache[6] || (_cache[6] = ($event) => ((myValue).value = $event)),
|
|
163
175
|
allowClear: ""
|
|
164
|
-
},
|
|
176
|
+
}, bindProps.value, { onChange: onChange }), {
|
|
165
177
|
addonAfter: _withCtx(() => [
|
|
166
178
|
_createVNode(_component_AIcon, {
|
|
167
179
|
type: "FormOutlined",
|
|
@@ -177,7 +189,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
177
189
|
"onUpdate:value": _cache[7] || (_cache[7] = ($event) => ((myValue).value = $event)),
|
|
178
190
|
allowClear: "",
|
|
179
191
|
placeholder: "请输入链接"
|
|
180
|
-
},
|
|
192
|
+
}, bindProps.value, { onChange: onChange }), {
|
|
181
193
|
addonAfter: _withCtx(() => [
|
|
182
194
|
_createVNode(_unref(Upload), {
|
|
183
195
|
action: __props.action,
|
|
@@ -201,14 +213,14 @@ const __sfc_main__ = _defineComponent({
|
|
|
201
213
|
"onUpdate:value": _cache[8] || (_cache[8] = ($event) => ((myValue).value = $event)),
|
|
202
214
|
allowClear: "",
|
|
203
215
|
type: "password"
|
|
204
|
-
},
|
|
216
|
+
}, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
|
|
205
217
|
: (_openBlock(), _createBlock(_unref(Input), _mergeProps({
|
|
206
218
|
key: 7,
|
|
207
219
|
value: myValue.value,
|
|
208
220
|
"onUpdate:value": _cache[9] || (_cache[9] = ($event) => ((myValue).value = $event)),
|
|
209
221
|
allowClear: "",
|
|
210
222
|
type: "text"
|
|
211
|
-
},
|
|
223
|
+
}, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"])),
|
|
212
224
|
_createCommentVNode(" 代码编辑器弹窗 "),
|
|
213
225
|
_createVNode(_unref(Modal), {
|
|
214
226
|
visible: modalVisible.value,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetlinks-web/components",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.17",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -153,8 +153,8 @@
|
|
|
153
153
|
"webpack-merge": "^5.0.0",
|
|
154
154
|
"webpackbar": "^5.0.2",
|
|
155
155
|
"@jetlinks-web/constants": "^1.0.7",
|
|
156
|
-
"@jetlinks-web/
|
|
157
|
-
"@jetlinks-web/
|
|
156
|
+
"@jetlinks-web/utils": "^1.2.5",
|
|
157
|
+
"@jetlinks-web/hooks": "^1.0.21"
|
|
158
158
|
},
|
|
159
159
|
"publishConfig": {
|
|
160
160
|
"registry": "https://registry.npmjs.org/",
|