@jetlinks-web/components 2.5.3 → 2.5.4

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.
@@ -41,7 +41,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
41
41
  "onDesc": "setup-const"
42
42
  } */
43
43
  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-1742388085232"), n = n(), _popScopeId(), n);
44
+ const _withScopeId = n => (_pushScopeId("data-v-1742785656943"), n = n(), _popScopeId(), n);
45
45
  const _hoisted_1 = { class: "jetlinks-table-sort-content" };
46
46
  const _hoisted_2 = { class: "jetlinks-table-sort-title" };
47
47
  const _hoisted_3 = { class: "table-sort-body" };
@@ -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-1742388081690"), n = n(), _popScopeId(), n);
12
+ const _withScopeId = n => (_pushScopeId("data-v-1742785653565"), n = n(), _popScopeId(), n);
13
13
  const _hoisted_1 = { class: "full-page-warp-content" };
14
14
  import { ref, inject } from 'vue';
15
15
  import { useElementBounding } from '@vueuse/core';
@@ -10,7 +10,7 @@
10
10
  "onClick": "setup-const"
11
11
  } */
12
12
  import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
13
- const _withScopeId = n => (_pushScopeId("data-v-1742388083470"), n = n(), _popScopeId(), n);
13
+ const _withScopeId = n => (_pushScopeId("data-v-1742785654577"), n = n(), _popScopeId(), n);
14
14
  const _hoisted_1 = ["onClick"];
15
15
  const __sfc_main__ = Object.assign({
16
16
  name: 'JRadioButton',
@@ -23,7 +23,7 @@
23
23
  } */
24
24
  import { defineComponent as _defineComponent } from 'vue';
25
25
  import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
26
- const _withScopeId = n => (_pushScopeId("data-v-1742388084891"), n = n(), _popScopeId(), n);
26
+ const _withScopeId = n => (_pushScopeId("data-v-1742785656792"), n = n(), _popScopeId(), n);
27
27
  const _hoisted_1 = {
28
28
  key: 0,
29
29
  style: { "width": "240px" }
@@ -373,6 +373,7 @@ const __sfc_main__ = _defineComponent({
373
373
  handleItems();
374
374
  __expose({
375
375
  setValues: handleDefaultValues,
376
+ reset
376
377
  });
377
378
  return (_ctx, _cache) => {
378
379
  return (_openBlock(), _createBlock(_unref(Form), {
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-1742388083880"), n = n(), _popScopeId(), n);
83
+ const _withScopeId = n => (_pushScopeId("data-v-1742785655761"), n = n(), _popScopeId(), n);
84
84
  const _hoisted_1 = { class: "JSearch-item" };
85
85
  const _hoisted_2 = {
86
86
  key: 0,
@@ -44,8 +44,7 @@
44
44
  "reset": "setup-const"
45
45
  } */
46
46
  import { defineComponent as _defineComponent } from 'vue';
47
- import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
48
- const _withScopeId = n => (_pushScopeId("data-v-1742388083993"), n = n(), _popScopeId(), n);
47
+ import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from "vue";
49
48
  const _hoisted_1 = { class: "JSearch-content simple" };
50
49
  const _hoisted_2 = { class: "JSearch-items" };
51
50
  import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
@@ -99,7 +98,7 @@ const __sfc_main__ = _defineComponent({
99
98
  }
100
99
  },
101
100
  emits: ["search"],
102
- setup(__props, { emit: __emit }) {
101
+ setup(__props, { expose: __expose, emit: __emit }) {
103
102
  const props = __props;
104
103
  const [contextLocale] = useLocaleReceiver('Search');
105
104
  const columnOptionMap = ref(new Map());
@@ -184,6 +183,9 @@ const __sfc_main__ = _defineComponent({
184
183
  watch(() => props.columns, () => {
185
184
  handleItems();
186
185
  }, { immediate: true, deep: true });
186
+ __expose({
187
+ reset
188
+ });
187
189
  return (_ctx, _cache) => {
188
190
  return (_openBlock(), _createBlock(_unref(Form), {
189
191
  model: terms,
@@ -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
  ]),
@@ -41,7 +41,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
41
41
  "onDesc": "setup-const"
42
42
  } */
43
43
  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);
44
+ const _withScopeId = n => (_pushScopeId("data-v-1742785656958"), n = n(), _popScopeId(), n);
45
45
  const _hoisted_1 = { class: "jetlinks-table-sort-content" };
46
46
  const _hoisted_2 = { class: "jetlinks-table-sort-title" };
47
47
  const _hoisted_3 = { class: "table-sort-body" };
@@ -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-1742785653553"), n = n(), _popScopeId(), n);
13
13
  const _hoisted_1 = { class: "full-page-warp-content" };
14
14
  import { ref, inject } from 'vue';
15
15
  import { useElementBounding } from '@vueuse/core';
@@ -10,7 +10,7 @@
10
10
  "onClick": "setup-const"
11
11
  } */
12
12
  import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
13
- const _withScopeId = n => (_pushScopeId("data-v-1742388083459"), n = n(), _popScopeId(), n);
13
+ const _withScopeId = n => (_pushScopeId("data-v-1742785654566"), n = n(), _popScopeId(), n);
14
14
  const _hoisted_1 = ["onClick"];
15
15
  const __sfc_main__ = Object.assign({
16
16
  name: 'JRadioButton',
@@ -23,7 +23,7 @@
23
23
  } */
24
24
  import { defineComponent as _defineComponent } from 'vue';
25
25
  import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
26
- const _withScopeId = n => (_pushScopeId("data-v-1742388084736"), n = n(), _popScopeId(), n);
26
+ const _withScopeId = n => (_pushScopeId("data-v-1742785656806"), n = n(), _popScopeId(), n);
27
27
  const _hoisted_1 = {
28
28
  key: 0,
29
29
  style: { "width": "240px" }
@@ -373,6 +373,7 @@ const __sfc_main__ = _defineComponent({
373
373
  handleItems();
374
374
  __expose({
375
375
  setValues: handleDefaultValues,
376
+ reset
376
377
  });
377
378
  return (_ctx, _cache) => {
378
379
  return (_openBlock(), _createBlock(_unref(Form), {
@@ -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-1742388083795"), n = n(), _popScopeId(), n);
83
+ const _withScopeId = n => (_pushScopeId("data-v-1742785655893"), n = n(), _popScopeId(), n);
84
84
  const _hoisted_1 = { class: "JSearch-item" };
85
85
  const _hoisted_2 = {
86
86
  key: 0,
@@ -44,8 +44,7 @@
44
44
  "reset": "setup-const"
45
45
  } */
46
46
  import { defineComponent as _defineComponent } from 'vue';
47
- import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
48
- const _withScopeId = n => (_pushScopeId("data-v-1742388083969"), n = n(), _popScopeId(), n);
47
+ import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from "vue";
49
48
  const _hoisted_1 = { class: "JSearch-content simple" };
50
49
  const _hoisted_2 = { class: "JSearch-items" };
51
50
  import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
@@ -99,7 +98,7 @@ const __sfc_main__ = _defineComponent({
99
98
  }
100
99
  },
101
100
  emits: ["search"],
102
- setup(__props, { emit: __emit }) {
101
+ setup(__props, { expose: __expose, emit: __emit }) {
103
102
  const props = __props;
104
103
  const [contextLocale] = useLocaleReceiver('Search');
105
104
  const columnOptionMap = ref(new Map());
@@ -184,6 +183,9 @@ const __sfc_main__ = _defineComponent({
184
183
  watch(() => props.columns, () => {
185
184
  handleItems();
186
185
  }, { immediate: true, deep: true });
186
+ __expose({
187
+ reset
188
+ });
187
189
  return (_ctx, _cache) => {
188
190
  return (_openBlock(), _createBlock(_unref(Form), {
189
191
  model: terms,
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetlinks-web/components",
3
- "version": "2.5.3",
3
+ "version": "2.5.4",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -156,8 +156,8 @@
156
156
  "webpack-dev-server": "^4.0.0",
157
157
  "webpack-merge": "^5.0.0",
158
158
  "webpackbar": "^5.0.2",
159
- "@jetlinks-web/hooks": "^1.0.24",
160
159
  "@jetlinks-web/constants": "^1.0.9",
160
+ "@jetlinks-web/hooks": "^1.0.24",
161
161
  "@jetlinks-web/utils": "^1.2.8"
162
162
  },
163
163
  "publishConfig": {