@jetlinks-web/components 2.6.11 → 3.0.0-rc
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/Body.js +0 -1
- package/es/EditTable/components/Search/sort.js +1 -1
- package/es/EditTable/style/body.less +1 -0
- package/es/EditTable/style/index.css +4 -3
- package/es/EditTable/style/table.less +3 -3
- package/es/FullPage/FullPage.js +1 -1
- package/es/Search/Advanced/SaveHistory.js +1 -1
- package/es/Search/Advanced/index.js +6 -7
- package/es/Search/Item.js +1 -1
- package/es/ValueItem/ValueItem.js +9 -57
- package/es/components.js +0 -1
- package/es/style/index.css +4 -7
- package/es/style/index.less +0 -1
- package/es/style.js +0 -1
- package/lib/EditTable/Body.js +0 -1
- package/lib/EditTable/components/Search/sort.js +1 -1
- package/lib/EditTable/style/body.less +1 -0
- package/lib/EditTable/style/index.css +4 -3
- package/lib/EditTable/style/table.less +3 -3
- package/lib/FullPage/FullPage.js +1 -1
- package/lib/Search/Advanced/SaveHistory.js +1 -1
- package/lib/Search/Advanced/index.js +6 -7
- package/lib/Search/Item.js +1 -1
- package/lib/ValueItem/ValueItem.js +9 -57
- package/lib/components.js +0 -7
- package/lib/style/components.less +0 -1
- package/lib/style/index.css +4 -7
- package/lib/style/index.less +0 -1
- package/lib/style.js +0 -1
- package/package.json +4 -4
- package/es/MonacoEditor/Monaco.js +0 -242
- package/es/MonacoEditor/index.js +0 -5
- package/es/MonacoEditor/style/index.css +0 -4
- package/es/MonacoEditor/style/index.js +0 -1
- package/es/MonacoEditor/style/index.less +0 -4
- package/lib/MonacoEditor/Monaco.js +0 -242
- package/lib/MonacoEditor/index.js +0 -12
- package/lib/MonacoEditor/style/index.css +0 -4
- package/lib/MonacoEditor/style/index.js +0 -3
- package/lib/MonacoEditor/style/index.less +0 -4
package/es/EditTable/Body.js
CHANGED
|
@@ -240,7 +240,6 @@ const __sfc_main__ = Object.assign({
|
|
|
240
240
|
key: `record_${item.__key}`,
|
|
241
241
|
style: _normalizeStyle({
|
|
242
242
|
height: `${_ctx.cellHeight}px`,
|
|
243
|
-
lineHeight: `${_ctx.cellHeight}px`,
|
|
244
243
|
transform: `-${_unref(hScroll) || 0}px`
|
|
245
244
|
}),
|
|
246
245
|
"data-row-key": item[_ctx.rowKey] || virtualRang.start + index + 1,
|
|
@@ -42,7 +42,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
42
42
|
"onDesc": "setup-const"
|
|
43
43
|
} */
|
|
44
44
|
import { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
45
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
45
|
+
const _withScopeId = n => (_pushScopeId("data-v-1745819698356"), n = n(), _popScopeId(), n);
|
|
46
46
|
const _hoisted_1 = { class: "jetlinks-table-sort-content" };
|
|
47
47
|
const _hoisted_2 = { class: "jetlinks-table-sort-title" };
|
|
48
48
|
const _hoisted_3 = { class: "table-sort-body" };
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
}
|
|
35
35
|
.jetlinks-edit-table-wrapper .jetlinks-edit-table .jetlinks-table-horizontal-scroll {
|
|
36
36
|
width: 100%;
|
|
37
|
-
height:
|
|
38
|
-
min-height:
|
|
39
|
-
max-height:
|
|
37
|
+
height: 15px;
|
|
38
|
+
min-height: 15px;
|
|
39
|
+
max-height: 15px;
|
|
40
40
|
display: flex;
|
|
41
41
|
}
|
|
42
42
|
.jetlinks-edit-table-wrapper .jetlinks-edit-table .jetlinks-table-horizontal-scroll .jetlinks-table-horizontal-scroll-bar {
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row {
|
|
70
70
|
width: 100%;
|
|
71
|
+
display: flex;
|
|
71
72
|
align-items: center;
|
|
72
73
|
transition: top 0.2s, height 0.2s, background-color 0.1s;
|
|
73
74
|
border-bottom: 1px solid #ebebeb;
|
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-1745819696751"), 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';
|
|
@@ -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-1745819698180"), n = n(), _popScopeId(), n);
|
|
27
27
|
const _hoisted_1 = {
|
|
28
28
|
key: 0,
|
|
29
29
|
style: { "width": "240px" }
|
|
@@ -17,7 +17,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
17
17
|
/* Analyzed bindings: {
|
|
18
18
|
"columns": "props",
|
|
19
19
|
"type": "props",
|
|
20
|
-
"target": "setup-
|
|
20
|
+
"target": "setup-ref",
|
|
21
21
|
"class": "props",
|
|
22
22
|
"request": "props",
|
|
23
23
|
"historyRequest": "props",
|
|
@@ -56,7 +56,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
56
56
|
"searchRef": "setup-ref",
|
|
57
57
|
"searchRefContentRef": "setup-ref",
|
|
58
58
|
"width": "setup-maybe-ref",
|
|
59
|
-
"q": "setup-
|
|
59
|
+
"q": "setup-ref",
|
|
60
60
|
"hasOnceSearch": "setup-ref",
|
|
61
61
|
"expand": "setup-ref",
|
|
62
62
|
"layout": "setup-ref",
|
|
@@ -103,7 +103,6 @@ const _hoisted_12 = { class: "JSearch-footer--btns" };
|
|
|
103
103
|
import SearchItem from '../Item.js';
|
|
104
104
|
import { optionsMapKey, typeOptions } from '../setting';
|
|
105
105
|
import { useElementSize } from '@vueuse/core';
|
|
106
|
-
import { useRouteQuery } from '@vueuse/router';
|
|
107
106
|
import { ref, reactive, watch, provide } from 'vue';
|
|
108
107
|
import SaveHistory from './SaveHistory.js';
|
|
109
108
|
import History from './History.js';
|
|
@@ -171,8 +170,8 @@ const __sfc_main__ = _defineComponent({
|
|
|
171
170
|
const searchRef = ref(null);
|
|
172
171
|
const searchRefContentRef = ref(null);
|
|
173
172
|
const { width } = useElementSize(searchRef);
|
|
174
|
-
const q =
|
|
175
|
-
const target =
|
|
173
|
+
const q = ref('q');
|
|
174
|
+
const target = ref('target');
|
|
176
175
|
const hasOnceSearch = ref(false);
|
|
177
176
|
// 是否展开更多筛选
|
|
178
177
|
const expand = ref(false);
|
|
@@ -487,11 +486,11 @@ const __sfc_main__ = _defineComponent({
|
|
|
487
486
|
}),
|
|
488
487
|
_createVNode(SaveHistory, {
|
|
489
488
|
terms: termsData,
|
|
490
|
-
target:
|
|
489
|
+
target: target.value,
|
|
491
490
|
request: __props.request
|
|
492
491
|
}, null, 8 /* PROPS */, ["terms", "target", "request"]),
|
|
493
492
|
_createVNode(History, {
|
|
494
|
-
target:
|
|
493
|
+
target: target.value,
|
|
495
494
|
request: __props.historyRequest,
|
|
496
495
|
"delete-request": __props.deleteRequest,
|
|
497
496
|
"delete-key": __props.deleteKey,
|
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-1745819697261"), n = n(), _popScopeId(), n);
|
|
84
84
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
85
85
|
const _hoisted_2 = {
|
|
86
86
|
key: 0,
|
|
@@ -34,7 +34,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
34
34
|
"watch": "setup-const",
|
|
35
35
|
"computed": "setup-const",
|
|
36
36
|
"componentsType": "setup-maybe-ref",
|
|
37
|
-
"MonacoEditor": "setup-maybe-ref",
|
|
38
37
|
"Select": "setup-maybe-ref",
|
|
39
38
|
"DatePicker": "setup-maybe-ref",
|
|
40
39
|
"TimePicker": "setup-maybe-ref",
|
|
@@ -42,27 +41,21 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
42
41
|
"InputNumber": "setup-maybe-ref",
|
|
43
42
|
"InputPassword": "setup-maybe-ref",
|
|
44
43
|
"Upload": "setup-maybe-ref",
|
|
45
|
-
"Modal": "setup-maybe-ref",
|
|
46
44
|
"omit": "setup-maybe-ref",
|
|
47
45
|
"emit": "setup-const",
|
|
48
46
|
"props": "setup-reactive-const",
|
|
49
47
|
"typeMap": "setup-maybe-ref",
|
|
50
48
|
"myValue": "setup-ref",
|
|
51
|
-
"modalVisible": "setup-ref",
|
|
52
49
|
"objectValue": "setup-ref",
|
|
53
50
|
"bindProps": "setup-ref",
|
|
54
|
-
"
|
|
55
|
-
"onChange": "setup-const",
|
|
56
|
-
"monacoCancel": "setup-const"
|
|
51
|
+
"onChange": "setup-const"
|
|
57
52
|
} */
|
|
58
53
|
import { defineComponent as _defineComponent } from 'vue';
|
|
59
|
-
import { unref as _unref, mergeProps as _mergeProps, openBlock as _openBlock, createBlock as _createBlock,
|
|
54
|
+
import { unref as _unref, mergeProps as _mergeProps, openBlock as _openBlock, createBlock as _createBlock, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createElementBlock as _createElementBlock } from "vue";
|
|
60
55
|
const _hoisted_1 = { class: "value-item-warp" };
|
|
61
|
-
const _hoisted_2 = { style: { "width": "100%", "height": "300px" } };
|
|
62
56
|
import { ref, watch, computed } from 'vue';
|
|
63
57
|
import { componentsType } from './util';
|
|
64
|
-
import {
|
|
65
|
-
import { Select, DatePicker, TimePicker, Input, InputNumber, InputPassword, Upload, Modal, } from 'ant-design-vue';
|
|
58
|
+
import { Select, DatePicker, TimePicker, Input, InputNumber, InputPassword, Upload, } from 'ant-design-vue';
|
|
66
59
|
import { omit } from "lodash-es";
|
|
67
60
|
const __sfc_main__ = _defineComponent({
|
|
68
61
|
...{
|
|
@@ -106,25 +99,14 @@ const __sfc_main__ = _defineComponent({
|
|
|
106
99
|
const props = __props;
|
|
107
100
|
const typeMap = new Map(Object.entries(componentsType));
|
|
108
101
|
const myValue = ref(undefined);
|
|
109
|
-
const modalVisible = ref(false);
|
|
110
102
|
const objectValue = ref('');
|
|
111
103
|
const bindProps = computed(() => {
|
|
112
104
|
return Object.assign(omit(props, ['extraProps']), props.extraProps);
|
|
113
105
|
});
|
|
114
|
-
const handleItemModalSubmit = () => {
|
|
115
|
-
myValue.value = objectValue.value.replace(/[\r\n]\s*/g, '');
|
|
116
|
-
modalVisible.value = false;
|
|
117
|
-
emit('update:modelValue', objectValue.value);
|
|
118
|
-
emit('change', objectValue.value);
|
|
119
|
-
};
|
|
120
106
|
const onChange = (e) => {
|
|
121
107
|
emit('update:modelValue', myValue.value);
|
|
122
108
|
emit('change', e && e.target ? e.target.value : e);
|
|
123
109
|
};
|
|
124
|
-
const monacoCancel = () => {
|
|
125
|
-
modalVisible.value = false;
|
|
126
|
-
objectValue.value = props.modelValue;
|
|
127
|
-
};
|
|
128
110
|
const handleFileChange = async (info) => {
|
|
129
111
|
if (info.file.status === 'done') {
|
|
130
112
|
let url = _optionalChain([info, 'access', _2 => _2.file, 'access', _3 => _3.response, 'optionalAccess', _4 => _4.result, 'optionalAccess', _5 => _5.accessUrl]);
|
|
@@ -204,22 +186,14 @@ const __sfc_main__ = _defineComponent({
|
|
|
204
186
|
? (_openBlock(), _createBlock(_unref(Input), _mergeProps({
|
|
205
187
|
key: 6,
|
|
206
188
|
value: myValue.value,
|
|
207
|
-
"onUpdate:value": _cache[
|
|
189
|
+
"onUpdate:value": _cache[7] || (_cache[7] = ($event) => ((myValue).value = $event)),
|
|
208
190
|
allowClear: ""
|
|
209
|
-
}, bindProps.value, { onChange: onChange }),
|
|
210
|
-
addonAfter: _withCtx(() => [
|
|
211
|
-
_createVNode(_component_AIcon, {
|
|
212
|
-
type: "FormOutlined",
|
|
213
|
-
onClick: _cache[7] || (_cache[7] = ($event) => (modalVisible.value = true))
|
|
214
|
-
})
|
|
215
|
-
]),
|
|
216
|
-
_: 1 /* STABLE */
|
|
217
|
-
}, 16 /* FULL_PROPS */, ["value"]))
|
|
191
|
+
}, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
|
|
218
192
|
: (_unref(typeMap).get(__props.itemType) === 'file')
|
|
219
193
|
? (_openBlock(), _createBlock(_unref(Input), _mergeProps({
|
|
220
194
|
key: 7,
|
|
221
195
|
value: myValue.value,
|
|
222
|
-
"onUpdate:value": _cache[
|
|
196
|
+
"onUpdate:value": _cache[8] || (_cache[8] = ($event) => ((myValue).value = $event)),
|
|
223
197
|
allowClear: "",
|
|
224
198
|
placeholder: "请输入链接"
|
|
225
199
|
}, bindProps.value, { onChange: onChange }), {
|
|
@@ -243,39 +217,17 @@ const __sfc_main__ = _defineComponent({
|
|
|
243
217
|
? (_openBlock(), _createBlock(_unref(InputPassword), _mergeProps({
|
|
244
218
|
key: 8,
|
|
245
219
|
value: myValue.value,
|
|
246
|
-
"onUpdate:value": _cache[
|
|
220
|
+
"onUpdate:value": _cache[9] || (_cache[9] = ($event) => ((myValue).value = $event)),
|
|
247
221
|
allowClear: "",
|
|
248
222
|
type: "password"
|
|
249
223
|
}, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
|
|
250
224
|
: (_openBlock(), _createBlock(_unref(Input), _mergeProps({
|
|
251
225
|
key: 9,
|
|
252
226
|
value: myValue.value,
|
|
253
|
-
"onUpdate:value": _cache[
|
|
227
|
+
"onUpdate:value": _cache[10] || (_cache[10] = ($event) => ((myValue).value = $event)),
|
|
254
228
|
allowClear: "",
|
|
255
229
|
type: "text"
|
|
256
|
-
}, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
|
|
257
|
-
_createCommentVNode(" 代码编辑器弹窗 "),
|
|
258
|
-
_createVNode(_unref(Modal), {
|
|
259
|
-
visible: modalVisible.value,
|
|
260
|
-
"onUpdate:visible": _cache[13] || (_cache[13] = ($event) => ((modalVisible).value = $event)),
|
|
261
|
-
zIndex: 1100,
|
|
262
|
-
"cancel-text": "取消",
|
|
263
|
-
"ok-text": "确认",
|
|
264
|
-
title: "编辑",
|
|
265
|
-
width: "700px",
|
|
266
|
-
onCancel: monacoCancel,
|
|
267
|
-
onOk: handleItemModalSubmit
|
|
268
|
-
}, {
|
|
269
|
-
default: _withCtx(() => [
|
|
270
|
-
_createElementVNode("div", _hoisted_2, [
|
|
271
|
-
_createVNode(_unref(MonacoEditor), {
|
|
272
|
-
modelValue: objectValue.value,
|
|
273
|
-
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => ((objectValue).value = $event))
|
|
274
|
-
}, null, 8 /* PROPS */, ["modelValue"])
|
|
275
|
-
])
|
|
276
|
-
]),
|
|
277
|
-
_: 1 /* STABLE */
|
|
278
|
-
}, 8 /* PROPS */, ["visible"])
|
|
230
|
+
}, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
|
|
279
231
|
]));
|
|
280
232
|
};
|
|
281
233
|
}
|
package/es/components.js
CHANGED
|
@@ -8,7 +8,6 @@ export { default as Ellipsis } from './Ellipsis';
|
|
|
8
8
|
export { default as Empty } from './Empty';
|
|
9
9
|
export { default as FullPage } from './FullPage';
|
|
10
10
|
export { default as AIcon } from './Icon';
|
|
11
|
-
export { default as MonacoEditor } from './MonacoEditor';
|
|
12
11
|
export { default as PermissionButton } from './PermissionButton';
|
|
13
12
|
export { default as ProLayout, PageContainer } from './ProLayout';
|
|
14
13
|
export { default as ProTable } from './ProTable';
|
package/es/style/index.css
CHANGED
|
@@ -4858,9 +4858,9 @@ span.ant-radio + * {
|
|
|
4858
4858
|
}
|
|
4859
4859
|
.jetlinks-edit-table-wrapper .jetlinks-edit-table .jetlinks-table-horizontal-scroll {
|
|
4860
4860
|
width: 100%;
|
|
4861
|
-
height:
|
|
4862
|
-
min-height:
|
|
4863
|
-
max-height:
|
|
4861
|
+
height: 15px;
|
|
4862
|
+
min-height: 15px;
|
|
4863
|
+
max-height: 15px;
|
|
4864
4864
|
display: flex;
|
|
4865
4865
|
}
|
|
4866
4866
|
.jetlinks-edit-table-wrapper .jetlinks-edit-table .jetlinks-table-horizontal-scroll .jetlinks-table-horizontal-scroll-bar {
|
|
@@ -4892,6 +4892,7 @@ span.ant-radio + * {
|
|
|
4892
4892
|
}
|
|
4893
4893
|
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row {
|
|
4894
4894
|
width: 100%;
|
|
4895
|
+
display: flex;
|
|
4895
4896
|
align-items: center;
|
|
4896
4897
|
transition: top 0.2s, height 0.2s, background-color 0.1s;
|
|
4897
4898
|
border-bottom: 1px solid #ebebeb;
|
|
@@ -5088,10 +5089,6 @@ span.ant-radio + * {
|
|
|
5088
5089
|
height: 100%;
|
|
5089
5090
|
overflow-x: hidden;
|
|
5090
5091
|
}
|
|
5091
|
-
.j-monaco-editor {
|
|
5092
|
-
min-height: 50px;
|
|
5093
|
-
height: 100%;
|
|
5094
|
-
}
|
|
5095
5092
|
.j-scrollbar {
|
|
5096
5093
|
overflow: hidden;
|
|
5097
5094
|
position: relative;
|
package/es/style/index.less
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
@import '../CardSelect/style/index.less';
|
|
8
8
|
@import '../DragModal/style/index.less';
|
|
9
9
|
@import "../EditTable/style/index.less";
|
|
10
|
-
@import "../MonacoEditor/style/index.less";
|
|
11
10
|
@import '../Scrollbar/style/index.less';
|
|
12
11
|
@import '../Title/style/index.less';
|
|
13
12
|
@import '../RadioButton/style/index.less';
|
package/es/style.js
CHANGED
package/lib/EditTable/Body.js
CHANGED
|
@@ -240,7 +240,6 @@ const __sfc_main__ = Object.assign({
|
|
|
240
240
|
key: `record_${item.__key}`,
|
|
241
241
|
style: _normalizeStyle({
|
|
242
242
|
height: `${_ctx.cellHeight}px`,
|
|
243
|
-
lineHeight: `${_ctx.cellHeight}px`,
|
|
244
243
|
transform: `-${_unref(hScroll) || 0}px`
|
|
245
244
|
}),
|
|
246
245
|
"data-row-key": item[_ctx.rowKey] || virtualRang.start + index + 1,
|
|
@@ -42,7 +42,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
42
42
|
"onDesc": "setup-const"
|
|
43
43
|
} */
|
|
44
44
|
import { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
45
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
45
|
+
const _withScopeId = n => (_pushScopeId("data-v-1745819698332"), n = n(), _popScopeId(), n);
|
|
46
46
|
const _hoisted_1 = { class: "jetlinks-table-sort-content" };
|
|
47
47
|
const _hoisted_2 = { class: "jetlinks-table-sort-title" };
|
|
48
48
|
const _hoisted_3 = { class: "table-sort-body" };
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
}
|
|
35
35
|
.jetlinks-edit-table-wrapper .jetlinks-edit-table .jetlinks-table-horizontal-scroll {
|
|
36
36
|
width: 100%;
|
|
37
|
-
height:
|
|
38
|
-
min-height:
|
|
39
|
-
max-height:
|
|
37
|
+
height: 15px;
|
|
38
|
+
min-height: 15px;
|
|
39
|
+
max-height: 15px;
|
|
40
40
|
display: flex;
|
|
41
41
|
}
|
|
42
42
|
.jetlinks-edit-table-wrapper .jetlinks-edit-table .jetlinks-table-horizontal-scroll .jetlinks-table-horizontal-scroll-bar {
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row {
|
|
70
70
|
width: 100%;
|
|
71
|
+
display: flex;
|
|
71
72
|
align-items: center;
|
|
72
73
|
transition: top 0.2s, height 0.2s, background-color 0.1s;
|
|
73
74
|
border-bottom: 1px solid #ebebeb;
|
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-1745819696744"), 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';
|
|
@@ -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-1745819698162"), n = n(), _popScopeId(), n);
|
|
27
27
|
const _hoisted_1 = {
|
|
28
28
|
key: 0,
|
|
29
29
|
style: { "width": "240px" }
|
|
@@ -17,7 +17,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
17
17
|
/* Analyzed bindings: {
|
|
18
18
|
"columns": "props",
|
|
19
19
|
"type": "props",
|
|
20
|
-
"target": "setup-
|
|
20
|
+
"target": "setup-ref",
|
|
21
21
|
"class": "props",
|
|
22
22
|
"request": "props",
|
|
23
23
|
"historyRequest": "props",
|
|
@@ -56,7 +56,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
56
56
|
"searchRef": "setup-ref",
|
|
57
57
|
"searchRefContentRef": "setup-ref",
|
|
58
58
|
"width": "setup-maybe-ref",
|
|
59
|
-
"q": "setup-
|
|
59
|
+
"q": "setup-ref",
|
|
60
60
|
"hasOnceSearch": "setup-ref",
|
|
61
61
|
"expand": "setup-ref",
|
|
62
62
|
"layout": "setup-ref",
|
|
@@ -103,7 +103,6 @@ const _hoisted_12 = { class: "JSearch-footer--btns" };
|
|
|
103
103
|
import SearchItem from '../Item.js';
|
|
104
104
|
import { optionsMapKey, typeOptions } from '../setting';
|
|
105
105
|
import { useElementSize } from '@vueuse/core';
|
|
106
|
-
import { useRouteQuery } from '@vueuse/router';
|
|
107
106
|
import { ref, reactive, watch, provide } from 'vue';
|
|
108
107
|
import SaveHistory from './SaveHistory.js';
|
|
109
108
|
import History from './History.js';
|
|
@@ -171,8 +170,8 @@ const __sfc_main__ = _defineComponent({
|
|
|
171
170
|
const searchRef = ref(null);
|
|
172
171
|
const searchRefContentRef = ref(null);
|
|
173
172
|
const { width } = useElementSize(searchRef);
|
|
174
|
-
const q =
|
|
175
|
-
const target =
|
|
173
|
+
const q = ref('q');
|
|
174
|
+
const target = ref('target');
|
|
176
175
|
const hasOnceSearch = ref(false);
|
|
177
176
|
// 是否展开更多筛选
|
|
178
177
|
const expand = ref(false);
|
|
@@ -487,11 +486,11 @@ const __sfc_main__ = _defineComponent({
|
|
|
487
486
|
}),
|
|
488
487
|
_createVNode(SaveHistory, {
|
|
489
488
|
terms: termsData,
|
|
490
|
-
target:
|
|
489
|
+
target: target.value,
|
|
491
490
|
request: __props.request
|
|
492
491
|
}, null, 8 /* PROPS */, ["terms", "target", "request"]),
|
|
493
492
|
_createVNode(History, {
|
|
494
|
-
target:
|
|
493
|
+
target: target.value,
|
|
495
494
|
request: __props.historyRequest,
|
|
496
495
|
"delete-request": __props.deleteRequest,
|
|
497
496
|
"delete-key": __props.deleteKey,
|
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-1745819697205"), n = n(), _popScopeId(), n);
|
|
84
84
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
85
85
|
const _hoisted_2 = {
|
|
86
86
|
key: 0,
|
|
@@ -34,7 +34,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
34
34
|
"watch": "setup-const",
|
|
35
35
|
"computed": "setup-const",
|
|
36
36
|
"componentsType": "setup-maybe-ref",
|
|
37
|
-
"MonacoEditor": "setup-maybe-ref",
|
|
38
37
|
"Select": "setup-maybe-ref",
|
|
39
38
|
"DatePicker": "setup-maybe-ref",
|
|
40
39
|
"TimePicker": "setup-maybe-ref",
|
|
@@ -42,27 +41,21 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
42
41
|
"InputNumber": "setup-maybe-ref",
|
|
43
42
|
"InputPassword": "setup-maybe-ref",
|
|
44
43
|
"Upload": "setup-maybe-ref",
|
|
45
|
-
"Modal": "setup-maybe-ref",
|
|
46
44
|
"omit": "setup-maybe-ref",
|
|
47
45
|
"emit": "setup-const",
|
|
48
46
|
"props": "setup-reactive-const",
|
|
49
47
|
"typeMap": "setup-maybe-ref",
|
|
50
48
|
"myValue": "setup-ref",
|
|
51
|
-
"modalVisible": "setup-ref",
|
|
52
49
|
"objectValue": "setup-ref",
|
|
53
50
|
"bindProps": "setup-ref",
|
|
54
|
-
"
|
|
55
|
-
"onChange": "setup-const",
|
|
56
|
-
"monacoCancel": "setup-const"
|
|
51
|
+
"onChange": "setup-const"
|
|
57
52
|
} */
|
|
58
53
|
import { defineComponent as _defineComponent } from 'vue';
|
|
59
|
-
import { unref as _unref, mergeProps as _mergeProps, openBlock as _openBlock, createBlock as _createBlock,
|
|
54
|
+
import { unref as _unref, mergeProps as _mergeProps, openBlock as _openBlock, createBlock as _createBlock, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createElementBlock as _createElementBlock } from "vue";
|
|
60
55
|
const _hoisted_1 = { class: "value-item-warp" };
|
|
61
|
-
const _hoisted_2 = { style: { "width": "100%", "height": "300px" } };
|
|
62
56
|
import { ref, watch, computed } from 'vue';
|
|
63
57
|
import { componentsType } from './util';
|
|
64
|
-
import {
|
|
65
|
-
import { Select, DatePicker, TimePicker, Input, InputNumber, InputPassword, Upload, Modal, } from 'ant-design-vue';
|
|
58
|
+
import { Select, DatePicker, TimePicker, Input, InputNumber, InputPassword, Upload, } from 'ant-design-vue';
|
|
66
59
|
import { omit } from "lodash-es";
|
|
67
60
|
const __sfc_main__ = _defineComponent({
|
|
68
61
|
...{
|
|
@@ -106,25 +99,14 @@ const __sfc_main__ = _defineComponent({
|
|
|
106
99
|
const props = __props;
|
|
107
100
|
const typeMap = new Map(Object.entries(componentsType));
|
|
108
101
|
const myValue = ref(undefined);
|
|
109
|
-
const modalVisible = ref(false);
|
|
110
102
|
const objectValue = ref('');
|
|
111
103
|
const bindProps = computed(() => {
|
|
112
104
|
return Object.assign(omit(props, ['extraProps']), props.extraProps);
|
|
113
105
|
});
|
|
114
|
-
const handleItemModalSubmit = () => {
|
|
115
|
-
myValue.value = objectValue.value.replace(/[\r\n]\s*/g, '');
|
|
116
|
-
modalVisible.value = false;
|
|
117
|
-
emit('update:modelValue', objectValue.value);
|
|
118
|
-
emit('change', objectValue.value);
|
|
119
|
-
};
|
|
120
106
|
const onChange = (e) => {
|
|
121
107
|
emit('update:modelValue', myValue.value);
|
|
122
108
|
emit('change', e && e.target ? e.target.value : e);
|
|
123
109
|
};
|
|
124
|
-
const monacoCancel = () => {
|
|
125
|
-
modalVisible.value = false;
|
|
126
|
-
objectValue.value = props.modelValue;
|
|
127
|
-
};
|
|
128
110
|
const handleFileChange = async (info) => {
|
|
129
111
|
if (info.file.status === 'done') {
|
|
130
112
|
let url = _optionalChain([info, 'access', _2 => _2.file, 'access', _3 => _3.response, 'optionalAccess', _4 => _4.result, 'optionalAccess', _5 => _5.accessUrl]);
|
|
@@ -204,22 +186,14 @@ const __sfc_main__ = _defineComponent({
|
|
|
204
186
|
? (_openBlock(), _createBlock(_unref(Input), _mergeProps({
|
|
205
187
|
key: 6,
|
|
206
188
|
value: myValue.value,
|
|
207
|
-
"onUpdate:value": _cache[
|
|
189
|
+
"onUpdate:value": _cache[7] || (_cache[7] = ($event) => ((myValue).value = $event)),
|
|
208
190
|
allowClear: ""
|
|
209
|
-
}, bindProps.value, { onChange: onChange }),
|
|
210
|
-
addonAfter: _withCtx(() => [
|
|
211
|
-
_createVNode(_component_AIcon, {
|
|
212
|
-
type: "FormOutlined",
|
|
213
|
-
onClick: _cache[7] || (_cache[7] = ($event) => (modalVisible.value = true))
|
|
214
|
-
})
|
|
215
|
-
]),
|
|
216
|
-
_: 1 /* STABLE */
|
|
217
|
-
}, 16 /* FULL_PROPS */, ["value"]))
|
|
191
|
+
}, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
|
|
218
192
|
: (_unref(typeMap).get(__props.itemType) === 'file')
|
|
219
193
|
? (_openBlock(), _createBlock(_unref(Input), _mergeProps({
|
|
220
194
|
key: 7,
|
|
221
195
|
value: myValue.value,
|
|
222
|
-
"onUpdate:value": _cache[
|
|
196
|
+
"onUpdate:value": _cache[8] || (_cache[8] = ($event) => ((myValue).value = $event)),
|
|
223
197
|
allowClear: "",
|
|
224
198
|
placeholder: "请输入链接"
|
|
225
199
|
}, bindProps.value, { onChange: onChange }), {
|
|
@@ -243,39 +217,17 @@ const __sfc_main__ = _defineComponent({
|
|
|
243
217
|
? (_openBlock(), _createBlock(_unref(InputPassword), _mergeProps({
|
|
244
218
|
key: 8,
|
|
245
219
|
value: myValue.value,
|
|
246
|
-
"onUpdate:value": _cache[
|
|
220
|
+
"onUpdate:value": _cache[9] || (_cache[9] = ($event) => ((myValue).value = $event)),
|
|
247
221
|
allowClear: "",
|
|
248
222
|
type: "password"
|
|
249
223
|
}, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
|
|
250
224
|
: (_openBlock(), _createBlock(_unref(Input), _mergeProps({
|
|
251
225
|
key: 9,
|
|
252
226
|
value: myValue.value,
|
|
253
|
-
"onUpdate:value": _cache[
|
|
227
|
+
"onUpdate:value": _cache[10] || (_cache[10] = ($event) => ((myValue).value = $event)),
|
|
254
228
|
allowClear: "",
|
|
255
229
|
type: "text"
|
|
256
|
-
}, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
|
|
257
|
-
_createCommentVNode(" 代码编辑器弹窗 "),
|
|
258
|
-
_createVNode(_unref(Modal), {
|
|
259
|
-
visible: modalVisible.value,
|
|
260
|
-
"onUpdate:visible": _cache[13] || (_cache[13] = ($event) => ((modalVisible).value = $event)),
|
|
261
|
-
zIndex: 1100,
|
|
262
|
-
"cancel-text": "取消",
|
|
263
|
-
"ok-text": "确认",
|
|
264
|
-
title: "编辑",
|
|
265
|
-
width: "700px",
|
|
266
|
-
onCancel: monacoCancel,
|
|
267
|
-
onOk: handleItemModalSubmit
|
|
268
|
-
}, {
|
|
269
|
-
default: _withCtx(() => [
|
|
270
|
-
_createElementVNode("div", _hoisted_2, [
|
|
271
|
-
_createVNode(_unref(MonacoEditor), {
|
|
272
|
-
modelValue: objectValue.value,
|
|
273
|
-
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => ((objectValue).value = $event))
|
|
274
|
-
}, null, 8 /* PROPS */, ["modelValue"])
|
|
275
|
-
])
|
|
276
|
-
]),
|
|
277
|
-
_: 1 /* STABLE */
|
|
278
|
-
}, 8 /* PROPS */, ["visible"])
|
|
230
|
+
}, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
|
|
279
231
|
]));
|
|
280
232
|
};
|
|
281
233
|
}
|