@jetlinks-web/components 2.5.1 → 2.5.3

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-1742378518096"), n = n(), _popScopeId(), n);
44
+ const _withScopeId = n => (_pushScopeId("data-v-1742388085232"), 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-1742378515835"), n = n(), _popScopeId(), n);
12
+ const _withScopeId = n => (_pushScopeId("data-v-1742388081690"), 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-1742378516554"), n = n(), _popScopeId(), n);
13
+ const _withScopeId = n => (_pushScopeId("data-v-1742388083470"), 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-1742378517928"), n = n(), _popScopeId(), n);
26
+ const _withScopeId = n => (_pushScopeId("data-v-1742388084891"), n = n(), _popScopeId(), n);
27
27
  const _hoisted_1 = {
28
28
  key: 0,
29
29
  style: { "width": "240px" }
package/es/Search/Item.js CHANGED
@@ -80,7 +80,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
80
80
  } */
81
81
  import { defineComponent as _defineComponent } from 'vue';
82
82
  import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
83
- const _withScopeId = n => (_pushScopeId("data-v-1742378517302"), n = n(), _popScopeId(), n);
83
+ const _withScopeId = n => (_pushScopeId("data-v-1742388083880"), n = n(), _popScopeId(), n);
84
84
  const _hoisted_1 = { class: "JSearch-item" };
85
85
  const _hoisted_2 = {
86
86
  key: 0,
@@ -45,7 +45,7 @@
45
45
  } */
46
46
  import { defineComponent as _defineComponent } from 'vue';
47
47
  import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
48
- const _withScopeId = n => (_pushScopeId("data-v-1742378517441"), n = n(), _popScopeId(), n);
48
+ const _withScopeId = n => (_pushScopeId("data-v-1742388083993"), n = n(), _popScopeId(), n);
49
49
  const _hoisted_1 = { class: "JSearch-content simple" };
50
50
  const _hoisted_2 = { class: "JSearch-items" };
51
51
  import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
@@ -52,7 +52,8 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
52
52
  "objectValue": "setup-ref",
53
53
  "bindProps": "setup-ref",
54
54
  "handleItemModalSubmit": "setup-const",
55
- "onChange": "setup-const"
55
+ "onChange": "setup-const",
56
+ "monacoCancel": "setup-const"
56
57
  } */
57
58
  import { defineComponent as _defineComponent } from 'vue';
58
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";
@@ -120,6 +121,10 @@ const __sfc_main__ = _defineComponent({
120
121
  emit('update:modelValue', myValue.value);
121
122
  emit('change', e && e.target ? e.target.value : e);
122
123
  };
124
+ const monacoCancel = () => {
125
+ modalVisible.value = false;
126
+ objectValue.value = props.modelValue;
127
+ };
123
128
  const handleFileChange = async (info) => {
124
129
  if (info.file.status === 'done') {
125
130
  let url = _optionalChain([info, 'access', _2 => _2.file, 'access', _3 => _3.response, 'optionalAccess', _4 => _4.result, 'optionalAccess', _5 => _5.accessUrl]);
@@ -236,7 +241,7 @@ const __sfc_main__ = _defineComponent({
236
241
  "ok-text": "确认",
237
242
  title: "编辑",
238
243
  width: "700px",
239
- onCancel: _cache[12] || (_cache[12] = ($event) => (modalVisible.value = false)),
244
+ onCancel: monacoCancel,
240
245
  onOk: handleItemModalSubmit
241
246
  }, {
242
247
  default: _withCtx(() => [
@@ -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-1742378518115"), n = n(), _popScopeId(), n);
44
+ const _withScopeId = n => (_pushScopeId("data-v-1742388085201"), 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-1742378515841"), n = n(), _popScopeId(), n);
12
+ const _withScopeId = n => (_pushScopeId("data-v-1742388081683"), 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-1742378516565"), n = n(), _popScopeId(), n);
13
+ const _withScopeId = n => (_pushScopeId("data-v-1742388083459"), 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-1742378517940"), n = n(), _popScopeId(), n);
26
+ const _withScopeId = n => (_pushScopeId("data-v-1742388084736"), n = n(), _popScopeId(), n);
27
27
  const _hoisted_1 = {
28
28
  key: 0,
29
29
  style: { "width": "240px" }
@@ -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-1742378517368"), n = n(), _popScopeId(), n);
83
+ const _withScopeId = n => (_pushScopeId("data-v-1742388083795"), n = n(), _popScopeId(), n);
84
84
  const _hoisted_1 = { class: "JSearch-item" };
85
85
  const _hoisted_2 = {
86
86
  key: 0,
@@ -45,7 +45,7 @@
45
45
  } */
46
46
  import { defineComponent as _defineComponent } from 'vue';
47
47
  import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
48
- const _withScopeId = n => (_pushScopeId("data-v-1742378517465"), n = n(), _popScopeId(), n);
48
+ const _withScopeId = n => (_pushScopeId("data-v-1742388083969"), n = n(), _popScopeId(), n);
49
49
  const _hoisted_1 = { class: "JSearch-content simple" };
50
50
  const _hoisted_2 = { class: "JSearch-items" };
51
51
  import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
@@ -52,7 +52,8 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
52
52
  "objectValue": "setup-ref",
53
53
  "bindProps": "setup-ref",
54
54
  "handleItemModalSubmit": "setup-const",
55
- "onChange": "setup-const"
55
+ "onChange": "setup-const",
56
+ "monacoCancel": "setup-const"
56
57
  } */
57
58
  import { defineComponent as _defineComponent } from 'vue';
58
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";
@@ -120,6 +121,10 @@ const __sfc_main__ = _defineComponent({
120
121
  emit('update:modelValue', myValue.value);
121
122
  emit('change', e && e.target ? e.target.value : e);
122
123
  };
124
+ const monacoCancel = () => {
125
+ modalVisible.value = false;
126
+ objectValue.value = props.modelValue;
127
+ };
123
128
  const handleFileChange = async (info) => {
124
129
  if (info.file.status === 'done') {
125
130
  let url = _optionalChain([info, 'access', _2 => _2.file, 'access', _3 => _3.response, 'optionalAccess', _4 => _4.result, 'optionalAccess', _5 => _5.accessUrl]);
@@ -236,7 +241,7 @@ const __sfc_main__ = _defineComponent({
236
241
  "ok-text": "确认",
237
242
  title: "编辑",
238
243
  width: "700px",
239
- onCancel: _cache[12] || (_cache[12] = ($event) => (modalVisible.value = false)),
244
+ onCancel: monacoCancel,
240
245
  onOk: handleItemModalSubmit
241
246
  }, {
242
247
  default: _withCtx(() => [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetlinks-web/components",
3
- "version": "2.5.1",
3
+ "version": "2.5.3",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -156,9 +156,9 @@
156
156
  "webpack-dev-server": "^4.0.0",
157
157
  "webpack-merge": "^5.0.0",
158
158
  "webpackbar": "^5.0.2",
159
- "@jetlinks-web/utils": "^1.2.8",
159
+ "@jetlinks-web/hooks": "^1.0.24",
160
160
  "@jetlinks-web/constants": "^1.0.9",
161
- "@jetlinks-web/hooks": "^1.0.24"
161
+ "@jetlinks-web/utils": "^1.2.8"
162
162
  },
163
163
  "publishConfig": {
164
164
  "registry": "https://registry.npmjs.org/",