@jetlinks-web/components 2.4.16 → 2.4.18
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/DragModal/DragModal.js +2 -2
- package/es/EditTable/FormItem.js +1 -1
- package/es/FullPage/FullPage.js +1 -1
- package/es/ProLayout/PageContainer/index.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 +24 -12
- package/es/locale/en-US.js +6 -4
- package/es/locale/zh-CN.js +3 -1
- package/lib/DragModal/DragModal.js +2 -2
- package/lib/EditTable/FormItem.js +1 -1
- package/lib/FullPage/FullPage.js +1 -1
- package/lib/ProLayout/PageContainer/index.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 +24 -12
- package/lib/locale/en-US.js +6 -4
- package/lib/locale/zh-CN.js +3 -1
- package/package.json +3 -3
|
@@ -280,7 +280,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
280
280
|
onClick: _withModifiers(onCancel, ["stop"])
|
|
281
281
|
}, {
|
|
282
282
|
default: _withCtx(() => [
|
|
283
|
-
_createTextVNode(_toDisplayString(_unref(contextLocale).
|
|
283
|
+
_createTextVNode(_toDisplayString(_unref(contextLocale).cancel), 1 /* TEXT */)
|
|
284
284
|
]),
|
|
285
285
|
_: 1 /* STABLE */
|
|
286
286
|
}),
|
|
@@ -289,7 +289,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
289
289
|
onClick: _withModifiers(onOk, ["stop"])
|
|
290
290
|
}, {
|
|
291
291
|
default: _withCtx(() => [
|
|
292
|
-
_createTextVNode(_toDisplayString(_unref(contextLocale).
|
|
292
|
+
_createTextVNode(_toDisplayString(_unref(contextLocale).confirm), 1 /* TEXT */)
|
|
293
293
|
]),
|
|
294
294
|
_: 1 /* STABLE */
|
|
295
295
|
})
|
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-1738907934927"), 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-1738907935129"), 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';
|
|
@@ -210,7 +210,7 @@ var ProPageHeader = function ProPageHeader(props) {
|
|
|
210
210
|
showBack = props.showBack,
|
|
211
211
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
212
212
|
var value = useRouteContext();
|
|
213
|
-
var _useLocaleReceiver = useLocaleReceiver('
|
|
213
|
+
var _useLocaleReceiver = useLocaleReceiver('ProLayout'),
|
|
214
214
|
_useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 1),
|
|
215
215
|
contextLocale = _useLocaleReceiver2[0];
|
|
216
216
|
if (pageHeaderRender === false) {
|
|
@@ -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-1738907936233"), 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-1738907937000"), 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-1738907936445"), 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-1738907936594"), 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;
|
|
@@ -103,7 +115,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
103
115
|
};
|
|
104
116
|
const onChange = (e) => {
|
|
105
117
|
emit('update:modelValue', myValue.value);
|
|
106
|
-
emit('change', e);
|
|
118
|
+
emit('change', e && e.target ? e.target.value : e);
|
|
107
119
|
};
|
|
108
120
|
const handleFileChange = (info) => {
|
|
109
121
|
if (info.file.status === 'done') {
|
|
@@ -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/es/locale/en-US.js
CHANGED
|
@@ -13,7 +13,7 @@ export default {
|
|
|
13
13
|
reset: 'Reset',
|
|
14
14
|
more: 'More',
|
|
15
15
|
saveHistory: {
|
|
16
|
-
searchName: '
|
|
16
|
+
searchName: 'Search name',
|
|
17
17
|
placeholder: 'Please enter a name',
|
|
18
18
|
ruleName: 'Up to 64 characters',
|
|
19
19
|
save: 'Save',
|
|
@@ -26,8 +26,8 @@ export default {
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
item: {
|
|
29
|
-
firstGroup: '
|
|
30
|
-
secondGroup: '
|
|
29
|
+
firstGroup: 'Group One',
|
|
30
|
+
secondGroup: 'Group Two',
|
|
31
31
|
placeholder: 'Please select'
|
|
32
32
|
},
|
|
33
33
|
setting: {
|
|
@@ -51,7 +51,9 @@ export default {
|
|
|
51
51
|
alert: {
|
|
52
52
|
cancelChoose: 'Cancel selection',
|
|
53
53
|
selectItem: 'Select {0} items'
|
|
54
|
-
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
ProLayout: {
|
|
55
57
|
pageContainer: {
|
|
56
58
|
back: 'Back'
|
|
57
59
|
}
|
package/es/locale/zh-CN.js
CHANGED
|
@@ -280,7 +280,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
280
280
|
onClick: _withModifiers(onCancel, ["stop"])
|
|
281
281
|
}, {
|
|
282
282
|
default: _withCtx(() => [
|
|
283
|
-
_createTextVNode(_toDisplayString(_unref(contextLocale).
|
|
283
|
+
_createTextVNode(_toDisplayString(_unref(contextLocale).cancel), 1 /* TEXT */)
|
|
284
284
|
]),
|
|
285
285
|
_: 1 /* STABLE */
|
|
286
286
|
}),
|
|
@@ -289,7 +289,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
289
289
|
onClick: _withModifiers(onOk, ["stop"])
|
|
290
290
|
}, {
|
|
291
291
|
default: _withCtx(() => [
|
|
292
|
-
_createTextVNode(_toDisplayString(_unref(contextLocale).
|
|
292
|
+
_createTextVNode(_toDisplayString(_unref(contextLocale).confirm), 1 /* TEXT */)
|
|
293
293
|
]),
|
|
294
294
|
_: 1 /* STABLE */
|
|
295
295
|
})
|
|
@@ -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-1738907934905"), 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-1738907935123"), 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';
|
|
@@ -214,7 +214,7 @@ var ProPageHeader = function ProPageHeader(props) {
|
|
|
214
214
|
showBack = props.showBack,
|
|
215
215
|
restProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
216
216
|
var value = (0, _RouteContext.useRouteContext)();
|
|
217
|
-
var _useLocaleReceiver = (0, _LocaleReciver.useLocaleReceiver)('
|
|
217
|
+
var _useLocaleReceiver = (0, _LocaleReciver.useLocaleReceiver)('ProLayout'),
|
|
218
218
|
_useLocaleReceiver2 = (0, _slicedToArray2.default)(_useLocaleReceiver, 1),
|
|
219
219
|
contextLocale = _useLocaleReceiver2[0];
|
|
220
220
|
if (pageHeaderRender === false) {
|
|
@@ -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-1738907936243"), 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-1738907936988"), 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-1738907936497"), 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-1738907936568"), 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;
|
|
@@ -103,7 +115,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
103
115
|
};
|
|
104
116
|
const onChange = (e) => {
|
|
105
117
|
emit('update:modelValue', myValue.value);
|
|
106
|
-
emit('change', e);
|
|
118
|
+
emit('change', e && e.target ? e.target.value : e);
|
|
107
119
|
};
|
|
108
120
|
const handleFileChange = (info) => {
|
|
109
121
|
if (info.file.status === 'done') {
|
|
@@ -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/lib/locale/en-US.js
CHANGED
|
@@ -19,7 +19,7 @@ var _default = exports.default = {
|
|
|
19
19
|
reset: 'Reset',
|
|
20
20
|
more: 'More',
|
|
21
21
|
saveHistory: {
|
|
22
|
-
searchName: '
|
|
22
|
+
searchName: 'Search name',
|
|
23
23
|
placeholder: 'Please enter a name',
|
|
24
24
|
ruleName: 'Up to 64 characters',
|
|
25
25
|
save: 'Save',
|
|
@@ -32,8 +32,8 @@ var _default = exports.default = {
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
item: {
|
|
35
|
-
firstGroup: '
|
|
36
|
-
secondGroup: '
|
|
35
|
+
firstGroup: 'Group One',
|
|
36
|
+
secondGroup: 'Group Two',
|
|
37
37
|
placeholder: 'Please select'
|
|
38
38
|
},
|
|
39
39
|
setting: {
|
|
@@ -57,7 +57,9 @@ var _default = exports.default = {
|
|
|
57
57
|
alert: {
|
|
58
58
|
cancelChoose: 'Cancel selection',
|
|
59
59
|
selectItem: 'Select {0} items'
|
|
60
|
-
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
ProLayout: {
|
|
61
63
|
pageContainer: {
|
|
62
64
|
back: 'Back'
|
|
63
65
|
}
|
package/lib/locale/zh-CN.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetlinks-web/components",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.18",
|
|
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/",
|