@jetlinks-web/components 2.5.0 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/EditTable/EditTable.js +4 -3
- package/es/EditTable/components/Search/sort.js +1 -1
- package/es/FullPage/FullPage.js +1 -1
- package/es/RadioButton/RadioButton.js +1 -1
- package/es/Search/Advanced/SaveHistory.js +1 -1
- package/es/Search/Item.js +1 -1
- package/es/Search/Search.js +1 -1
- package/es/ValueItem/ValueItem.js +7 -2
- package/lib/EditTable/EditTable.js +4 -3
- package/lib/EditTable/components/Search/sort.js +1 -1
- package/lib/FullPage/FullPage.js +1 -1
- package/lib/RadioButton/RadioButton.js +1 -1
- package/lib/Search/Advanced/SaveHistory.js +1 -1
- package/lib/Search/Item.js +1 -1
- package/lib/Search/Search.js +1 -1
- package/lib/ValueItem/ValueItem.js +7 -2
- package/package.json +1 -1
|
@@ -307,9 +307,10 @@ const __sfc_main__ = Object.assign({
|
|
|
307
307
|
function onResize({ width = 0 }) {
|
|
308
308
|
const _width = width - scrollWidth.value;
|
|
309
309
|
tableStyle.width = width || '100%';
|
|
310
|
-
const viewportDom = document.querySelector('.jetlinks-edit-table-body-viewport')
|
|
311
|
-
const viewportDivDom = viewportDom.querySelector('div')
|
|
312
|
-
|
|
310
|
+
// const viewportDom = document.querySelector('.jetlinks-edit-table-body-viewport')
|
|
311
|
+
// const viewportDivDom = viewportDom.querySelector('div')
|
|
312
|
+
//
|
|
313
|
+
// scrollDefaultWidth.value = viewportDom.offsetWidth - viewportDivDom.offsetWidth
|
|
313
314
|
let newColumns = [...props.columns];
|
|
314
315
|
if (props.serial) {
|
|
315
316
|
const serial = {
|
|
@@ -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-
|
|
44
|
+
const _withScopeId = n => (_pushScopeId("data-v-1742381695669"), 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" };
|
package/es/FullPage/FullPage.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
} */
|
|
10
10
|
import { defineComponent as _defineComponent } from 'vue';
|
|
11
11
|
import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
12
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
12
|
+
const _withScopeId = n => (_pushScopeId("data-v-1742381690961"), 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-
|
|
13
|
+
const _withScopeId = n => (_pushScopeId("data-v-1742381692511"), 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-
|
|
26
|
+
const _withScopeId = n => (_pushScopeId("data-v-1742381695001"), 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-
|
|
83
|
+
const _withScopeId = n => (_pushScopeId("data-v-1742381693875"), n = n(), _popScopeId(), n);
|
|
84
84
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
85
85
|
const _hoisted_2 = {
|
|
86
86
|
key: 0,
|
package/es/Search/Search.js
CHANGED
|
@@ -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-
|
|
48
|
+
const _withScopeId = n => (_pushScopeId("data-v-1742381694138"), 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] = (
|
|
244
|
+
onCancel: _cache[12] || (_cache[12] = () => monacoCancel),
|
|
240
245
|
onOk: handleItemModalSubmit
|
|
241
246
|
}, {
|
|
242
247
|
default: _withCtx(() => [
|
|
@@ -307,9 +307,10 @@ const __sfc_main__ = Object.assign({
|
|
|
307
307
|
function onResize({ width = 0 }) {
|
|
308
308
|
const _width = width - scrollWidth.value;
|
|
309
309
|
tableStyle.width = width || '100%';
|
|
310
|
-
const viewportDom = document.querySelector('.jetlinks-edit-table-body-viewport')
|
|
311
|
-
const viewportDivDom = viewportDom.querySelector('div')
|
|
312
|
-
|
|
310
|
+
// const viewportDom = document.querySelector('.jetlinks-edit-table-body-viewport')
|
|
311
|
+
// const viewportDivDom = viewportDom.querySelector('div')
|
|
312
|
+
//
|
|
313
|
+
// scrollDefaultWidth.value = viewportDom.offsetWidth - viewportDivDom.offsetWidth
|
|
313
314
|
let newColumns = [...props.columns];
|
|
314
315
|
if (props.serial) {
|
|
315
316
|
const serial = {
|
|
@@ -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-
|
|
44
|
+
const _withScopeId = n => (_pushScopeId("data-v-1742381695737"), 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" };
|
package/lib/FullPage/FullPage.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
} */
|
|
10
10
|
import { defineComponent as _defineComponent } from 'vue';
|
|
11
11
|
import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
12
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
12
|
+
const _withScopeId = n => (_pushScopeId("data-v-1742381690977"), 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-
|
|
13
|
+
const _withScopeId = n => (_pushScopeId("data-v-1742381692535"), 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-
|
|
26
|
+
const _withScopeId = n => (_pushScopeId("data-v-1742381695346"), n = n(), _popScopeId(), n);
|
|
27
27
|
const _hoisted_1 = {
|
|
28
28
|
key: 0,
|
|
29
29
|
style: { "width": "240px" }
|
package/lib/Search/Item.js
CHANGED
|
@@ -80,7 +80,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
80
80
|
} */
|
|
81
81
|
import { defineComponent as _defineComponent } from 'vue';
|
|
82
82
|
import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
83
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
83
|
+
const _withScopeId = n => (_pushScopeId("data-v-1742381693992"), n = n(), _popScopeId(), n);
|
|
84
84
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
85
85
|
const _hoisted_2 = {
|
|
86
86
|
key: 0,
|
package/lib/Search/Search.js
CHANGED
|
@@ -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-
|
|
48
|
+
const _withScopeId = n => (_pushScopeId("data-v-1742381694172"), 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] = (
|
|
244
|
+
onCancel: _cache[12] || (_cache[12] = () => monacoCancel),
|
|
240
245
|
onOk: handleItemModalSubmit
|
|
241
246
|
}, {
|
|
242
247
|
default: _withCtx(() => [
|