@jetlinks-web/components 2.5.3 → 2.5.5

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 (78) hide show
  1. package/es/AMap/Map.js +1 -1
  2. package/es/CardSelect/CardSelect.js +1 -1
  3. package/es/CheckButton/CheckButton.js +1 -1
  4. package/es/ConfigProvider/index.js +2 -1
  5. package/es/DragModal/DragModal.js +19 -13
  6. package/es/DragModal/style/index.css +1 -0
  7. package/es/DragModal/style/index.less +1 -0
  8. package/es/EditTable/components/Search/search.js +28 -11
  9. package/es/EditTable/components/Search/sort.js +5 -4
  10. package/es/EditTable/style/body.less +8 -8
  11. package/es/EditTable/style/index.css +1 -1
  12. package/es/FullPage/FullPage.js +1 -1
  13. package/es/LocaleReciver/index.js +3 -1
  14. package/es/PermissionButton/index.js +13 -20
  15. package/es/ProTable/Alert.js +3 -3
  16. package/es/ProTable/Pagination.js +17 -1
  17. package/es/RadioButton/RadioButton.js +10 -7
  18. package/es/RadioButton/style/index.js +1 -0
  19. package/es/RadioButton/style/index.less +18 -0
  20. package/es/Search/Advanced/SaveHistory.js +1 -1
  21. package/es/Search/Advanced/index.js +1 -0
  22. package/es/Search/Item.js +1 -1
  23. package/es/Search/Search.js +6 -4
  24. package/es/Title/index.js +5 -0
  25. package/es/ValueItem/ValueItem.js +73 -51
  26. package/es/components.js +3 -2
  27. package/es/locale/en-US.js +3 -0
  28. package/es/locale/zh-CN.js +3 -0
  29. package/es/style/index.css +41 -1
  30. package/es/style/index.less +2 -0
  31. package/es/style.js +3 -1
  32. package/lib/AMap/Map.js +1 -1
  33. package/lib/CardSelect/CardSelect.js +1 -1
  34. package/lib/CheckButton/CheckButton.js +1 -1
  35. package/lib/ConfigProvider/index.js +2 -1
  36. package/lib/DragModal/DragModal.js +19 -13
  37. package/lib/DragModal/style/index.css +1 -0
  38. package/lib/DragModal/style/index.less +1 -0
  39. package/lib/EditTable/components/Search/search.js +28 -11
  40. package/lib/EditTable/components/Search/sort.js +5 -4
  41. package/lib/EditTable/style/body.less +8 -8
  42. package/lib/EditTable/style/index.css +1 -1
  43. package/lib/FullPage/FullPage.js +1 -1
  44. package/lib/LocaleReciver/index.js +3 -1
  45. package/lib/PermissionButton/index.js +12 -19
  46. package/lib/ProTable/Alert.js +3 -3
  47. package/lib/ProTable/Pagination.js +17 -1
  48. package/lib/RadioButton/RadioButton.js +10 -7
  49. package/lib/RadioButton/style/index.js +3 -0
  50. package/lib/RadioButton/style/index.less +18 -0
  51. package/lib/Search/Advanced/SaveHistory.js +1 -1
  52. package/lib/Search/Advanced/index.js +1 -0
  53. package/lib/Search/Item.js +1 -1
  54. package/lib/Search/Search.js +6 -4
  55. package/lib/Title/index.js +12 -0
  56. package/lib/ValueItem/ValueItem.js +73 -51
  57. package/lib/components.js +14 -1
  58. package/lib/locale/en-US.js +3 -0
  59. package/lib/locale/zh-CN.js +3 -0
  60. package/lib/style/index.css +41 -1
  61. package/lib/style/index.less +2 -0
  62. package/lib/style.js +3 -1
  63. package/package.json +2 -2
  64. package/es/ProTable/style/ProTable.less +0 -139
  65. package/es/Scrollbar/style/index.css +0 -61
  66. package/es/Scrollbar/style/index.less +0 -82
  67. package/es/Search/style/Item.less +0 -33
  68. package/es/Search/style/Search.less +0 -179
  69. package/es/Title/style/index.css +0 -23
  70. package/es/Title/style/index.less +0 -25
  71. package/lib/ProTable/style/ProTable.less +0 -139
  72. package/lib/Scrollbar/style/index.css +0 -61
  73. package/lib/Scrollbar/style/index.less +0 -82
  74. package/lib/Search/style/Item.less +0 -33
  75. package/lib/Search/style/Search.less +0 -179
  76. package/lib/Title/style/index.css +0 -23
  77. package/lib/Title/style/index.less +0 -25
  78. package/lib/style/components.less +0 -8
@@ -171,71 +171,93 @@ const __sfc_main__ = _defineComponent({
171
171
  valueFormat: __props.valueFormat || 'HH:mm:ss',
172
172
  allowClear: ""
173
173
  }, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value", "valueFormat"]))
174
- : (_unref(typeMap).get(__props.itemType) === 'inputNumber')
174
+ : (__props.itemType === 'int')
175
175
  ? (_openBlock(), _createBlock(_unref(InputNumber), _mergeProps({
176
176
  key: 3,
177
177
  value: myValue.value,
178
178
  "onUpdate:value": _cache[4] || (_cache[4] = ($event) => ((myValue).value = $event)),
179
- allowClear: ""
179
+ precision: 0,
180
+ max: 2147483647,
181
+ min: -2147483648,
182
+ style: { "width": "100%" }
180
183
  }, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
181
- : (_unref(typeMap).get(__props.itemType) === 'object')
182
- ? (_openBlock(), _createBlock(_unref(Input), _mergeProps({
184
+ : (__props.itemType === 'long')
185
+ ? (_openBlock(), _createBlock(_unref(InputNumber), _mergeProps({
183
186
  key: 4,
184
187
  value: myValue.value,
185
- "onUpdate:value": _cache[6] || (_cache[6] = ($event) => ((myValue).value = $event)),
186
- allowClear: ""
187
- }, bindProps.value, { onChange: onChange }), {
188
- addonAfter: _withCtx(() => [
189
- _createVNode(_component_AIcon, {
190
- type: "FormOutlined",
191
- onClick: _cache[5] || (_cache[5] = ($event) => (modalVisible.value = true))
192
- })
193
- ]),
194
- _: 1 /* STABLE */
195
- }, 16 /* FULL_PROPS */, ["value"]))
196
- : (_unref(typeMap).get(__props.itemType) === 'file')
197
- ? (_openBlock(), _createBlock(_unref(Input), _mergeProps({
188
+ "onUpdate:value": _cache[5] || (_cache[5] = ($event) => ((myValue).value = $event)),
189
+ max: 999999999999999,
190
+ min: -999999999999999,
191
+ precision: 0,
192
+ style: { "width": "100%" }
193
+ }, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
194
+ : (['float', 'double'].includes(__props.itemType))
195
+ ? (_openBlock(), _createBlock(_unref(InputNumber), _mergeProps({
198
196
  key: 5,
199
197
  value: myValue.value,
200
- "onUpdate:value": _cache[7] || (_cache[7] = ($event) => ((myValue).value = $event)),
201
- allowClear: "",
202
- placeholder: "请输入链接"
203
- }, bindProps.value, { onChange: onChange }), {
204
- addonAfter: _withCtx(() => [
205
- _createVNode(_unref(Upload), {
206
- action: __props.action,
207
- headers: __props.headers,
208
- showUploadList: false,
209
- name: "file",
210
- onChange: handleFileChange
211
- }, {
212
- default: _withCtx(() => [
213
- _createVNode(_component_AIcon, { type: "UploadOutlined" })
214
- ]),
215
- _: 1 /* STABLE */
216
- }, 8 /* PROPS */, ["action", "headers"])
217
- ]),
218
- _: 1 /* STABLE */
219
- }, 16 /* FULL_PROPS */, ["value"]))
220
- : (_unref(typeMap).get(__props.itemType) === 'password')
221
- ? (_openBlock(), _createBlock(_unref(InputPassword), _mergeProps({
198
+ "onUpdate:value": _cache[6] || (_cache[6] = ($event) => ((myValue).value = $event)),
199
+ max: 999999999999999,
200
+ min: -999999999999999,
201
+ style: { "width": "100%" }
202
+ }, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
203
+ : (_unref(typeMap).get(__props.itemType) === 'object')
204
+ ? (_openBlock(), _createBlock(_unref(Input), _mergeProps({
222
205
  key: 6,
223
206
  value: myValue.value,
224
207
  "onUpdate:value": _cache[8] || (_cache[8] = ($event) => ((myValue).value = $event)),
225
- allowClear: "",
226
- type: "password"
227
- }, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
228
- : (_openBlock(), _createBlock(_unref(Input), _mergeProps({
229
- key: 7,
230
- value: myValue.value,
231
- "onUpdate:value": _cache[9] || (_cache[9] = ($event) => ((myValue).value = $event)),
232
- allowClear: "",
233
- type: "text"
234
- }, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"])),
208
+ 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"]))
218
+ : (_unref(typeMap).get(__props.itemType) === 'file')
219
+ ? (_openBlock(), _createBlock(_unref(Input), _mergeProps({
220
+ key: 7,
221
+ value: myValue.value,
222
+ "onUpdate:value": _cache[9] || (_cache[9] = ($event) => ((myValue).value = $event)),
223
+ allowClear: "",
224
+ placeholder: "请输入链接"
225
+ }, bindProps.value, { onChange: onChange }), {
226
+ addonAfter: _withCtx(() => [
227
+ _createVNode(_unref(Upload), {
228
+ action: __props.action,
229
+ headers: __props.headers,
230
+ showUploadList: false,
231
+ name: "file",
232
+ onChange: handleFileChange
233
+ }, {
234
+ default: _withCtx(() => [
235
+ _createVNode(_component_AIcon, { type: "UploadOutlined" })
236
+ ]),
237
+ _: 1 /* STABLE */
238
+ }, 8 /* PROPS */, ["action", "headers"])
239
+ ]),
240
+ _: 1 /* STABLE */
241
+ }, 16 /* FULL_PROPS */, ["value"]))
242
+ : (_unref(typeMap).get(__props.itemType) === 'password')
243
+ ? (_openBlock(), _createBlock(_unref(InputPassword), _mergeProps({
244
+ key: 8,
245
+ value: myValue.value,
246
+ "onUpdate:value": _cache[10] || (_cache[10] = ($event) => ((myValue).value = $event)),
247
+ allowClear: "",
248
+ type: "password"
249
+ }, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
250
+ : (_openBlock(), _createBlock(_unref(Input), _mergeProps({
251
+ key: 9,
252
+ value: myValue.value,
253
+ "onUpdate:value": _cache[11] || (_cache[11] = ($event) => ((myValue).value = $event)),
254
+ allowClear: "",
255
+ type: "text"
256
+ }, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"])),
235
257
  _createCommentVNode(" 代码编辑器弹窗 "),
236
258
  _createVNode(_unref(Modal), {
237
259
  visible: modalVisible.value,
238
- "onUpdate:visible": _cache[11] || (_cache[11] = ($event) => ((modalVisible).value = $event)),
260
+ "onUpdate:visible": _cache[13] || (_cache[13] = ($event) => ((modalVisible).value = $event)),
239
261
  zIndex: 1100,
240
262
  "cancel-text": "取消",
241
263
  "ok-text": "确认",
@@ -248,7 +270,7 @@ const __sfc_main__ = _defineComponent({
248
270
  _createElementVNode("div", _hoisted_2, [
249
271
  _createVNode(_unref(MonacoEditor), {
250
272
  modelValue: objectValue.value,
251
- "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => ((objectValue).value = $event))
273
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => ((objectValue).value = $event))
252
274
  }, null, 8 /* PROPS */, ["modelValue"])
253
275
  ])
254
276
  ]),
package/es/components.js CHANGED
@@ -1,4 +1,4 @@
1
- import './AMap';
1
+ export { default as Map } from './AMap';
2
2
  export { default as BadgeStatus } from './BadgeStatus';
3
3
  export { default as CardSelect } from './CardSelect';
4
4
  export { default as CheckButton } from './CheckButton';
@@ -19,4 +19,5 @@ export { default as TimeFormat } from './TimeFormat';
19
19
  export { default as DragModal } from './DragModal';
20
20
  export { default as EditTable } from './EditTable';
21
21
  export { default as Markdown } from './Markdown';
22
- export { default as AutoComplete } from './AutoComplete';
22
+ export { default as AutoComplete } from './AutoComplete';
23
+ export { default as Title } from './Title';
@@ -111,5 +111,8 @@ export default {
111
111
  cancel: 'Cancel',
112
112
  confirm: 'Confirm',
113
113
  title: 'Edit'
114
+ },
115
+ PermissionButton: {
116
+ hasPermission: 'No permission, please contact the administrator'
114
117
  }
115
118
  };
@@ -111,5 +111,8 @@ export default {
111
111
  cancel: '取消',
112
112
  confirm: '确定',
113
113
  title: '编辑'
114
+ },
115
+ PermissionButton: {
116
+ hasPermission: '暂无权限,请联系管理员'
114
117
  }
115
118
  };
@@ -4793,6 +4793,7 @@ span.ant-radio + * {
4793
4793
  .jetlinks-drag-modal .jetlinks-drag-modal-sprite .jetlinks-drag-modal-footer {
4794
4794
  border-top: 1px solid #f0f0f0;
4795
4795
  padding: 5px 15px;
4796
+ text-align: right;
4796
4797
  }
4797
4798
  .jetlinks-drag-modal .jetlinks-drag-modal-range {
4798
4799
  position: absolute;
@@ -4898,7 +4899,7 @@ span.ant-radio + * {
4898
4899
  padding: 0 12px;
4899
4900
  position: relative;
4900
4901
  }
4901
- .jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row .readonly-mask {
4902
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .readonly-mask {
4902
4903
  position: absolute;
4903
4904
  top: 0;
4904
4905
  left: 0;
@@ -5137,3 +5138,42 @@ span.ant-radio + * {
5137
5138
  .j-scrollbar-fade-leave-active {
5138
5139
  opacity: 0;
5139
5140
  }
5141
+ .j-title {
5142
+ display: flex;
5143
+ align-items: center;
5144
+ width: 100%;
5145
+ margin-bottom: 16px;
5146
+ }
5147
+ .j-title .j-title-content {
5148
+ position: relative;
5149
+ padding-left: 10px;
5150
+ color: rgba(0, 0, 0, 0.8);
5151
+ font-weight: 600;
5152
+ line-height: 1;
5153
+ }
5154
+ .j-title .j-title-content::before {
5155
+ position: absolute;
5156
+ top: 0;
5157
+ left: 0;
5158
+ width: 4px;
5159
+ height: 100%;
5160
+ background-color: #1890ff;
5161
+ border-radius: 0 3px 3px 0;
5162
+ content: ' ';
5163
+ }
5164
+ .j-radio-button {
5165
+ display: grid;
5166
+ gap: 16px;
5167
+ }
5168
+ .j-radio-button .j-radio-button-item {
5169
+ padding: 6px 12px;
5170
+ text-align: center;
5171
+ height: 100%;
5172
+ border-radius: 2px;
5173
+ background-color: #f5f5f5;
5174
+ cursor: pointer;
5175
+ }
5176
+ .j-radio-button .j-radio-button-item.active {
5177
+ color: #fff;
5178
+ background-color: #1890ff;
5179
+ }
@@ -9,3 +9,5 @@
9
9
  @import "../EditTable/style/index.less";
10
10
  @import "../MonacoEditor/style/index.less";
11
11
  @import '../Scrollbar/style/index.less';
12
+ @import '../Title/style/index.less';
13
+ @import '../RadioButton/style/index.less';
package/es/style.js CHANGED
@@ -7,4 +7,6 @@ import './CardSelect/style';
7
7
  import './DragModal/style';
8
8
  import './EditTable/style';
9
9
  import './MonacoEditor/style';
10
- import './Scrollbar/style';
10
+ import './Scrollbar/style';
11
+ import './Title/style';
12
+ import './RadioButton/style';
package/lib/AMap/Map.js CHANGED
@@ -53,7 +53,7 @@ const __sfc_main__ = _defineComponent({
53
53
  plugins: Array,
54
54
  zooms: {
55
55
  type: Array,
56
- default: [3, 20]
56
+ default: () => [3, 20]
57
57
  },
58
58
  JSKey: String,
59
59
  WebKey: String,
@@ -99,7 +99,7 @@ const __sfc_main__ = Object.assign({
99
99
  }
100
100
  };
101
101
  watch(() => props.value, () => {
102
- selectKeys.value = isMultiple.value ? props.value : [props.value];
102
+ selectKeys.value = isMultiple.value ? (props.value || []) : [props.value];
103
103
  }, { immediate: true });
104
104
  return (_ctx, _cache) => {
105
105
  return (_openBlock(), _createElementBlock("div", {
@@ -61,7 +61,7 @@ const __sfc_main__ = _defineComponent({
61
61
  const _options = computed(() => {
62
62
  props.options.forEach((item) => {
63
63
  if (props.disabled) {
64
- item.display = props.disabled;
64
+ item.disabled = props.disabled;
65
65
  }
66
66
  optionsMap.value.set(item.value, item);
67
67
  });
@@ -13,6 +13,7 @@ var _antDesignVue = require("ant-design-vue");
13
13
  var _index = _interopRequireDefault(require("../LocaleProvider/index.js"));
14
14
  var _lodashEs = require("lodash");
15
15
  var _Empty = _interopRequireDefault(require("../Empty"));
16
+ var _zhCN = _interopRequireDefault(require("../locale/zh-CN"));
16
17
  var JConfigProvider = (0, _vue.defineComponent)({
17
18
  name: 'JConfigProvider',
18
19
  inheritAttrs: false,
@@ -33,7 +34,7 @@ var JConfigProvider = (0, _vue.defineComponent)({
33
34
  (0, _vue.provide)(_constants.TableConfig, _TableConfig); // ProTable配置
34
35
  return function () {
35
36
  return (0, _vue.h)(_antDesignVue.ConfigProvider, (0, _objectSpread2.default)({}, (0, _lodashEs.omit)(props, ['IconConfig', 'MapConfig', 'SearchConfig'])), [(0, _vue.h)(_index.default, {
36
- locale: props.componentsLocale
37
+ locale: props.componentsLocale || _zhCN.default
37
38
  }, {
38
39
  default: slots.default,
39
40
  renderEmpty: function renderEmpty() {
@@ -239,6 +239,7 @@ const __sfc_main__ = _defineComponent({
239
239
  return (_ctx, _cache) => {
240
240
  const _component_AIcon = _resolveComponent("AIcon");
241
241
  const _component_a_button = _resolveComponent("a-button");
242
+ const _component_a_space = _resolveComponent("a-space");
242
243
  return (_openBlock(), _createElementBlock("div", {
243
244
  ref_key: "dialog",
244
245
  ref: dialog,
@@ -276,20 +277,25 @@ const __sfc_main__ = _defineComponent({
276
277
  (__props.footer !== false)
277
278
  ? (_openBlock(), _createElementBlock("div", _hoisted_2, [
278
279
  _renderSlot(_ctx.$slots, "footer", {}, () => [
279
- _createVNode(_unref(Button), {
280
- onClick: _withModifiers(onCancel, ["stop"])
281
- }, {
280
+ _createVNode(_component_a_space, null, {
282
281
  default: _withCtx(() => [
283
- _createTextVNode(_toDisplayString(_unref(contextLocale).cancel), 1 /* TEXT */)
284
- ]),
285
- _: 1 /* STABLE */
286
- }),
287
- _createVNode(_unref(Button), {
288
- type: "primary",
289
- onClick: _withModifiers(onOk, ["stop"])
290
- }, {
291
- default: _withCtx(() => [
292
- _createTextVNode(_toDisplayString(_unref(contextLocale).confirm), 1 /* TEXT */)
282
+ _createVNode(_unref(Button), {
283
+ onClick: _withModifiers(onCancel, ["stop"])
284
+ }, {
285
+ default: _withCtx(() => [
286
+ _createTextVNode(_toDisplayString(_unref(contextLocale).cancel), 1 /* TEXT */)
287
+ ]),
288
+ _: 1 /* STABLE */
289
+ }),
290
+ _createVNode(_unref(Button), {
291
+ type: "primary",
292
+ onClick: _withModifiers(onOk, ["stop"])
293
+ }, {
294
+ default: _withCtx(() => [
295
+ _createTextVNode(_toDisplayString(_unref(contextLocale).confirm), 1 /* TEXT */)
296
+ ]),
297
+ _: 1 /* STABLE */
298
+ })
293
299
  ]),
294
300
  _: 1 /* STABLE */
295
301
  })
@@ -47,6 +47,7 @@
47
47
  .jetlinks-drag-modal .jetlinks-drag-modal-sprite .jetlinks-drag-modal-footer {
48
48
  border-top: 1px solid #f0f0f0;
49
49
  padding: 5px 15px;
50
+ text-align: right;
50
51
  }
51
52
  .jetlinks-drag-modal .jetlinks-drag-modal-range {
52
53
  position: absolute;
@@ -51,6 +51,7 @@
51
51
  .jetlinks-drag-modal-footer {
52
52
  border-top: 1px solid #f0f0f0;
53
53
  padding: 5px 15px;
54
+ text-align: right;
54
55
  }
55
56
  }
56
57
 
@@ -22,10 +22,15 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
22
22
  "useTableTool": "setup-maybe-ref",
23
23
  "useGroupOptions": "setup-maybe-ref",
24
24
  "ref": "setup-const",
25
+ "reactive": "setup-const",
25
26
  "defineOptions": "setup-const",
26
27
  "Ellipsis": "setup-const",
27
28
  "DragModal": "setup-const",
28
29
  "useLocaleReceiver": "setup-maybe-ref",
30
+ "isNumber": "setup-maybe-ref",
31
+ "isArray": "setup-maybe-ref",
32
+ "isObject": "setup-maybe-ref",
33
+ "isBoolean": "setup-maybe-ref",
29
34
  "props": "setup-reactive-const",
30
35
  "emit": "setup-const",
31
36
  "contextLocale": "setup-maybe-ref",
@@ -41,7 +46,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
41
46
  "tableHeight": "setup-ref",
42
47
  "selectedRowKeys": "setup-ref",
43
48
  "tableRef": "setup-ref",
44
- "columns": "setup-maybe-ref",
49
+ "columns": "setup-reactive-const",
45
50
  "selectedTableRow": "setup-const",
46
51
  "handleFilterArray": "setup-const",
47
52
  "search": "setup-const",
@@ -49,7 +54,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
49
54
  "onClose": "setup-const",
50
55
  "onSelect": "setup-const"
51
56
  } */
52
- import { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, withModifiers as _withModifiers, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock } from "vue";
57
+ import { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withModifiers as _withModifiers, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock } from "vue";
53
58
  const _hoisted_1 = { class: "jetlinks-table-search" };
54
59
  const _hoisted_2 = { class: "jetlinks-table-search-header" };
55
60
  const _hoisted_3 = {
@@ -62,10 +67,11 @@ const _hoisted_6 = { key: 1 };
62
67
  const _hoisted_7 = { class: "jetlinks-table-search-result-total" };
63
68
  import Table from '../../EditTable.js';
64
69
  import { useTableDataSource, useTableOpenGroup, useTableTool, useGroupOptions } from "../../context";
65
- import { ref, } from "vue";
70
+ import { ref, reactive, } from "vue";
66
71
  import Ellipsis from '../../../Ellipsis/Ellipsis.js';
67
72
  import DragModal from '../../../DragModal/DragModal.js';
68
73
  import { useLocaleReceiver } from "../../../LocaleReciver/index";
74
+ import { isNumber, isArray, isObject, isBoolean } from 'lodash-es';
69
75
  const __sfc_main__ = Object.assign({
70
76
  name: 'JEditTableSearch'
71
77
  }, {
@@ -105,15 +111,23 @@ const __sfc_main__ = Object.assign({
105
111
  const selectedTableRow = (record) => {
106
112
  tableTool.scrollTo({
107
113
  ...record,
108
- __serial: record.__serial - 1
114
+ __serial: record.__oldSerial - 1
109
115
  });
110
116
  tableTool.selected([record.id]);
111
117
  };
112
118
  const handleFilterArray = () => {
113
119
  const cloneDataSource = JSON.parse(JSON.stringify(dataSource.value || '[]')).map(item => Object.assign(item, { __oldSerial: item.__serial }));
114
120
  const _filterArray = cloneDataSource.filter(item => {
115
- if (item[props.searchKey]) {
116
- return item[props.searchKey].includes(searchValue.value);
121
+ let targetValue = item[props.searchKey];
122
+ if (targetValue) {
123
+ // 判断是否为string
124
+ if (isNumber(targetValue) || isBoolean(targetValue)) {
125
+ targetValue = toString(targetValue);
126
+ }
127
+ else if (isArray(targetValue) || isObject(targetValue)) {
128
+ targetValue = JSON.stringify(targetValue);
129
+ }
130
+ return targetValue.includes(searchValue.value);
117
131
  }
118
132
  return false;
119
133
  });
@@ -179,6 +193,7 @@ const __sfc_main__ = Object.assign({
179
193
  width: 800,
180
194
  height: modalHeight.value,
181
195
  title: false,
196
+ footer: false,
182
197
  dragRang: [600, 200],
183
198
  bodyStyle: {
184
199
  overflow: 'hidden'
@@ -195,13 +210,15 @@ const __sfc_main__ = Object.assign({
195
210
  _createVNode(_component_a_input, {
196
211
  value: searchValue.value,
197
212
  "onUpdate:value": _cache[0] || (_cache[0] = $event => ((searchValue).value = $event)),
213
+ "allow-clear": "",
198
214
  maxlength: 64,
199
- placeholder: _unref(contextLocale).Search.placeholder
215
+ placeholder: _unref(contextLocale).Search.placeholder,
216
+ onDrag: _cache[1] || (_cache[1] = _withModifiers(() => { }, ["stop"]))
200
217
  }, null, 8 /* PROPS */, ["value", "placeholder"]),
201
218
  _createVNode(_component_a_button, {
202
219
  type: "primary",
203
220
  ghost: "",
204
- onClick: _cache[1] || (_cache[1] = () => search('all'))
221
+ onClick: _cache[2] || (_cache[2] = () => search('all'))
205
222
  }, {
206
223
  default: _withCtx(() => [
207
224
  _createTextVNode(_toDisplayString(_unref(contextLocale).Search.all), 1 /* TEXT */)
@@ -211,7 +228,7 @@ const __sfc_main__ = Object.assign({
211
228
  _createVNode(_component_a_button, {
212
229
  type: "primary",
213
230
  ghost: "",
214
- onClick: _cache[2] || (_cache[2] = () => search('prev'))
231
+ onClick: _cache[3] || (_cache[3] = () => search('prev'))
215
232
  }, {
216
233
  default: _withCtx(() => [
217
234
  _createTextVNode(_toDisplayString(_unref(contextLocale).Search.prev), 1 /* TEXT */)
@@ -221,7 +238,7 @@ const __sfc_main__ = Object.assign({
221
238
  _createVNode(_component_a_button, {
222
239
  type: "primary",
223
240
  ghost: "",
224
- onClick: _cache[3] || (_cache[3] = () => search('next'))
241
+ onClick: _cache[4] || (_cache[4] = () => search('next'))
225
242
  }, {
226
243
  default: _withCtx(() => [
227
244
  _createTextVNode(_toDisplayString(_unref(contextLocale).Search.next), 1 /* TEXT */)
@@ -250,7 +267,7 @@ const __sfc_main__ = Object.assign({
250
267
  ref_key: "tableRef",
251
268
  ref: tableRef,
252
269
  "data-source": filterArray.value,
253
- columns: _unref(columns),
270
+ columns: columns,
254
271
  height: tableHeight.value,
255
272
  disableMenu: false,
256
273
  cellHeight: 36,
@@ -24,6 +24,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
24
24
  "useTableWrapper": "setup-maybe-ref",
25
25
  "defineOptions": "setup-const",
26
26
  "ref": "setup-const",
27
+ "reactive": "setup-const",
27
28
  "useLocaleReceiver": "setup-maybe-ref",
28
29
  "props": "setup-reactive-const",
29
30
  "emit": "setup-const",
@@ -32,7 +33,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
32
33
  "tableTool": "setup-maybe-ref",
33
34
  "visible": "setup-ref",
34
35
  "mySelectedRowKeys": "setup-ref",
35
- "columns": "setup-maybe-ref",
36
+ "columns": "setup-reactive-const",
36
37
  "visibleChange": "setup-const",
37
38
  "onSelectChange": "setup-const",
38
39
  "cleanParams": "setup-const",
@@ -41,13 +42,13 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
41
42
  "onDesc": "setup-const"
42
43
  } */
43
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";
44
- const _withScopeId = n => (_pushScopeId("data-v-1742388085201"), n = n(), _popScopeId(), n);
45
+ const _withScopeId = n => (_pushScopeId("data-v-1743503004519"), n = n(), _popScopeId(), n);
45
46
  const _hoisted_1 = { class: "jetlinks-table-sort-content" };
46
47
  const _hoisted_2 = { class: "jetlinks-table-sort-title" };
47
48
  const _hoisted_3 = { class: "table-sort-body" };
48
49
  const _hoisted_4 = { class: "jetlinks-table-sort-footer" };
49
50
  import { useTableTool, useTableWrapper } from "../../context";
50
- import { ref } from 'vue';
51
+ import { ref, reactive } from 'vue';
51
52
  import { useLocaleReceiver } from "../../../LocaleReciver";
52
53
  const __sfc_main__ = Object.assign({
53
54
  name: 'JEditTableSearchSort'
@@ -153,7 +154,7 @@ const __sfc_main__ = Object.assign({
153
154
  ? (_openBlock(), _createBlock(_component_a_table, {
154
155
  key: 0,
155
156
  size: "small",
156
- columns: _unref(columns),
157
+ columns: columns,
157
158
  dataSource: dataSource.value,
158
159
  "row-selection": { selectedRowKeys: mySelectedRowKeys.value, onChange: onSelectChange },
159
160
  pagination: false,
@@ -46,15 +46,15 @@
46
46
  padding: 0 12px;
47
47
  position: relative;
48
48
  }
49
+ }
49
50
 
50
- .readonly-mask {
51
- position: absolute;
52
- top: 0;
53
- left: 0;
54
- right: 0;
55
- bottom: 0;
56
- z-index: 4;
57
- }
51
+ .readonly-mask {
52
+ position: absolute;
53
+ top: 0;
54
+ left: 0;
55
+ right: 0;
56
+ bottom: 0;
57
+ z-index: 4;
58
58
  }
59
59
  }
60
60
  }
@@ -75,7 +75,7 @@
75
75
  padding: 0 12px;
76
76
  position: relative;
77
77
  }
78
- .jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row .readonly-mask {
78
+ .jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .readonly-mask {
79
79
  position: absolute;
80
80
  top: 0;
81
81
  left: 0;
@@ -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-1742388081683"), n = n(), _popScopeId(), n);
12
+ const _withScopeId = n => (_pushScopeId("data-v-1743503002482"), 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';
@@ -7,10 +7,12 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.useLocaleReceiver = useLocaleReceiver;
8
8
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
9
9
  var _vue = require("vue");
10
+ var _zhCN = _interopRequireDefault(require("../locale/zh-CN"));
10
11
  function useLocaleReceiver(componentName, defaultLocale, propsLocale) {
11
12
  var localeData = (0, _vue.inject)('componentLocaleData', {});
12
13
  var componentLocale = (0, _vue.computed)(function () {
13
- var antLocale = localeData.antLocale;
14
+ var _localeData$antLocale = localeData.antLocale,
15
+ antLocale = _localeData$antLocale === void 0 ? _zhCN.default : _localeData$antLocale;
14
16
  var locale = (0, _vue.unref)(defaultLocale) || [componentName || 'global'];
15
17
  var localeFromContext = componentName && antLocale ? antLocale[componentName] : {};
16
18
  return (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, typeof locale === 'function' ? locale() : locale), localeFromContext || {}), (0, _vue.unref)(propsLocale) || {});