@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.
Files changed (40) hide show
  1. package/es/EditTable/Body.js +0 -1
  2. package/es/EditTable/components/Search/sort.js +1 -1
  3. package/es/EditTable/style/body.less +1 -0
  4. package/es/EditTable/style/index.css +4 -3
  5. package/es/EditTable/style/table.less +3 -3
  6. package/es/FullPage/FullPage.js +1 -1
  7. package/es/Search/Advanced/SaveHistory.js +1 -1
  8. package/es/Search/Advanced/index.js +6 -7
  9. package/es/Search/Item.js +1 -1
  10. package/es/ValueItem/ValueItem.js +9 -57
  11. package/es/components.js +0 -1
  12. package/es/style/index.css +4 -7
  13. package/es/style/index.less +0 -1
  14. package/es/style.js +0 -1
  15. package/lib/EditTable/Body.js +0 -1
  16. package/lib/EditTable/components/Search/sort.js +1 -1
  17. package/lib/EditTable/style/body.less +1 -0
  18. package/lib/EditTable/style/index.css +4 -3
  19. package/lib/EditTable/style/table.less +3 -3
  20. package/lib/FullPage/FullPage.js +1 -1
  21. package/lib/Search/Advanced/SaveHistory.js +1 -1
  22. package/lib/Search/Advanced/index.js +6 -7
  23. package/lib/Search/Item.js +1 -1
  24. package/lib/ValueItem/ValueItem.js +9 -57
  25. package/lib/components.js +0 -7
  26. package/lib/style/components.less +0 -1
  27. package/lib/style/index.css +4 -7
  28. package/lib/style/index.less +0 -1
  29. package/lib/style.js +0 -1
  30. package/package.json +4 -4
  31. package/es/MonacoEditor/Monaco.js +0 -242
  32. package/es/MonacoEditor/index.js +0 -5
  33. package/es/MonacoEditor/style/index.css +0 -4
  34. package/es/MonacoEditor/style/index.js +0 -1
  35. package/es/MonacoEditor/style/index.less +0 -4
  36. package/lib/MonacoEditor/Monaco.js +0 -242
  37. package/lib/MonacoEditor/index.js +0 -12
  38. package/lib/MonacoEditor/style/index.css +0 -4
  39. package/lib/MonacoEditor/style/index.js +0 -3
  40. package/lib/MonacoEditor/style/index.less +0 -4
@@ -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-1744796323662"), n = n(), _popScopeId(), n);
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" };
@@ -25,6 +25,7 @@
25
25
 
26
26
  .jetlinks-edit-table-row {
27
27
  width: 100%;
28
+ display: flex;
28
29
  align-items: center;
29
30
  transition: top .2s, height .2s, background-color .1s;
30
31
  border-bottom: 1px solid #ebebeb;
@@ -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: 10px;
38
- min-height: 10px;
39
- max-height: 10px;
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;
@@ -33,9 +33,9 @@
33
33
 
34
34
  .jetlinks-table-horizontal-scroll {
35
35
  width: 100%;
36
- height: 10px;
37
- min-height: 10px;
38
- max-height: 10px;
36
+ height: 15px;
37
+ min-height: 15px;
38
+ max-height: 15px;
39
39
  display: flex;
40
40
 
41
41
  .jetlinks-table-horizontal-scroll-bar {
@@ -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-1744796320079"), n = n(), _popScopeId(), n);
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-1744796322747"), n = n(), _popScopeId(), n);
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-maybe-ref",
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-maybe-ref",
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 = useRouteQuery('q');
175
- const target = useRouteQuery('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: _unref(target),
489
+ target: target.value,
491
490
  request: __props.request
492
491
  }, null, 8 /* PROPS */, ["terms", "target", "request"]),
493
492
  _createVNode(History, {
494
- target: _unref(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-1744796321419"), n = n(), _popScopeId(), n);
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
- "handleItemModalSubmit": "setup-const",
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, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock } from "vue";
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 { MonacoEditor } from '../index';
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[8] || (_cache[8] = ($event) => ((myValue).value = $event)),
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[9] || (_cache[9] = ($event) => ((myValue).value = $event)),
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[10] || (_cache[10] = ($event) => ((myValue).value = $event)),
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[11] || (_cache[11] = ($event) => ((myValue).value = $event)),
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';
@@ -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: 10px;
4862
- min-height: 10px;
4863
- max-height: 10px;
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;
@@ -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
@@ -6,7 +6,6 @@ import './Search/style';
6
6
  import './CardSelect/style';
7
7
  import './DragModal/style';
8
8
  import './EditTable/style';
9
- import './MonacoEditor/style';
10
9
  import './Scrollbar/style';
11
10
  import './Title/style';
12
11
  import './RadioButton/style';
@@ -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-1744796323717"), n = n(), _popScopeId(), n);
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" };
@@ -25,6 +25,7 @@
25
25
 
26
26
  .jetlinks-edit-table-row {
27
27
  width: 100%;
28
+ display: flex;
28
29
  align-items: center;
29
30
  transition: top .2s, height .2s, background-color .1s;
30
31
  border-bottom: 1px solid #ebebeb;
@@ -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: 10px;
38
- min-height: 10px;
39
- max-height: 10px;
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;
@@ -33,9 +33,9 @@
33
33
 
34
34
  .jetlinks-table-horizontal-scroll {
35
35
  width: 100%;
36
- height: 10px;
37
- min-height: 10px;
38
- max-height: 10px;
36
+ height: 15px;
37
+ min-height: 15px;
38
+ max-height: 15px;
39
39
  display: flex;
40
40
 
41
41
  .jetlinks-table-horizontal-scroll-bar {
@@ -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-1744796320097"), n = n(), _popScopeId(), n);
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-1744796322792"), n = n(), _popScopeId(), n);
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-maybe-ref",
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-maybe-ref",
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 = useRouteQuery('q');
175
- const target = useRouteQuery('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: _unref(target),
489
+ target: target.value,
491
490
  request: __props.request
492
491
  }, null, 8 /* PROPS */, ["terms", "target", "request"]),
493
492
  _createVNode(History, {
494
- target: _unref(target),
493
+ target: target.value,
495
494
  request: __props.historyRequest,
496
495
  "delete-request": __props.deleteRequest,
497
496
  "delete-key": __props.deleteKey,
@@ -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-1744796321563"), n = n(), _popScopeId(), n);
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
- "handleItemModalSubmit": "setup-const",
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, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock } from "vue";
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 { MonacoEditor } from '../index';
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[8] || (_cache[8] = ($event) => ((myValue).value = $event)),
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[9] || (_cache[9] = ($event) => ((myValue).value = $event)),
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[10] || (_cache[10] = ($event) => ((myValue).value = $event)),
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[11] || (_cache[11] = ($event) => ((myValue).value = $event)),
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
  }