@jetlinks-web/components 2.6.4 → 2.6.6

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.
@@ -28,7 +28,7 @@ const __sfc_main__ = _defineComponent({
28
28
  setup(__props) {
29
29
  const props = __props;
30
30
  const echartsDom = ref();
31
- const { setOptions } = useECharts(echartsDom.value);
31
+ const { setOptions } = useECharts(echartsDom);
32
32
  watch(() => JSON.stringify(props.options), () => {
33
33
  if (props.options) {
34
34
  nextTick(() => {
@@ -16,6 +16,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
16
16
  } return value; }
17
17
  /* Analyzed bindings: {
18
18
  "columns": "props",
19
+ "searchColumns": "props",
19
20
  "serial": "props",
20
21
  "style": "props",
21
22
  "SearchModal": "setup-maybe-ref",
@@ -51,6 +52,10 @@ const __sfc_main__ = Object.assign({
51
52
  type: Array,
52
53
  default: () => []
53
54
  },
55
+ searchColumns: {
56
+ type: Array,
57
+ default: undefined
58
+ },
54
59
  serial: {
55
60
  type: Boolean,
56
61
  default: false
@@ -124,7 +129,7 @@ const __sfc_main__ = Object.assign({
124
129
  key: 0,
125
130
  searchKey: searchData.key,
126
131
  rowKey: _ctx.rowKey,
127
- columns: _ctx.searchColumns,
132
+ columns: __props.searchColumns,
128
133
  onClose: _cache[0] || (_cache[0] = $event => (searchData.visible = false))
129
134
  }, null, 8 /* PROPS */, ["searchKey", "rowKey", "columns"]))
130
135
  : _createCommentVNode("v-if", true)
@@ -16,6 +16,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
16
16
  } return value; }
17
17
  /* Analyzed bindings: {
18
18
  "searchKey": "props",
19
+ "columns": "props",
19
20
  "Table": "setup-const",
20
21
  "useTableDataSource": "setup-maybe-ref",
21
22
  "useTableOpenGroup": "setup-maybe-ref",
@@ -46,7 +47,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
46
47
  "tableHeight": "setup-ref",
47
48
  "selectedRowKeys": "setup-ref",
48
49
  "tableRef": "setup-ref",
49
- "columns": "setup-reactive-const",
50
+ "myColumns": "setup-reactive-const",
50
51
  "selectedTableRow": "setup-const",
51
52
  "handleFilterArray": "setup-const",
52
53
  "search": "setup-const",
@@ -79,6 +80,10 @@ const __sfc_main__ = Object.assign({
79
80
  searchKey: {
80
81
  type: String,
81
82
  default: 'id'
83
+ },
84
+ columns: {
85
+ type: Array,
86
+ default: undefined
82
87
  }
83
88
  },
84
89
  emits: ['close'],
@@ -98,7 +103,7 @@ const __sfc_main__ = Object.assign({
98
103
  const tableHeight = ref(230);
99
104
  const selectedRowKeys = ref([]);
100
105
  const tableRef = ref();
101
- const columns = reactive([
106
+ const myColumns = reactive([
102
107
  {
103
108
  title: contextLocale.value.columns.sign,
104
109
  dataIndex: 'id',
@@ -267,7 +272,7 @@ const __sfc_main__ = Object.assign({
267
272
  ref_key: "tableRef",
268
273
  ref: tableRef,
269
274
  "data-source": filterArray.value,
270
- columns: columns,
275
+ columns: __props.columns || myColumns,
271
276
  height: tableHeight.value,
272
277
  disableMenu: false,
273
278
  cellHeight: 36,
@@ -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-1744268546503"), n = n(), _popScopeId(), n);
45
+ const _withScopeId = n => (_pushScopeId("data-v-1744351961117"), 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" };
@@ -38,6 +38,10 @@ export var bodyProps = function bodyProps() {
38
38
  return [];
39
39
  }
40
40
  },
41
+ searchColumns: {
42
+ type: Array,
43
+ default: undefined
44
+ },
41
45
  cellHeight: {
42
46
  type: Number,
43
47
  default: 50
@@ -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-1744268539595"), n = n(), _popScopeId(), n);
12
+ const _withScopeId = n => (_pushScopeId("data-v-1744351958696"), 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-1744268546236"), n = n(), _popScopeId(), n);
26
+ const _withScopeId = n => (_pushScopeId("data-v-1744351960939"), 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-1744268543383"), n = n(), _popScopeId(), n);
83
+ const _withScopeId = n => (_pushScopeId("data-v-1744351960199"), n = n(), _popScopeId(), n);
84
84
  const _hoisted_1 = { class: "JSearch-item" };
85
85
  const _hoisted_2 = {
86
86
  key: 0,
@@ -28,7 +28,7 @@ const __sfc_main__ = _defineComponent({
28
28
  setup(__props) {
29
29
  const props = __props;
30
30
  const echartsDom = ref();
31
- const { setOptions } = useECharts(echartsDom.value);
31
+ const { setOptions } = useECharts(echartsDom);
32
32
  watch(() => JSON.stringify(props.options), () => {
33
33
  if (props.options) {
34
34
  nextTick(() => {
@@ -16,6 +16,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
16
16
  } return value; }
17
17
  /* Analyzed bindings: {
18
18
  "columns": "props",
19
+ "searchColumns": "props",
19
20
  "serial": "props",
20
21
  "style": "props",
21
22
  "SearchModal": "setup-maybe-ref",
@@ -51,6 +52,10 @@ const __sfc_main__ = Object.assign({
51
52
  type: Array,
52
53
  default: () => []
53
54
  },
55
+ searchColumns: {
56
+ type: Array,
57
+ default: undefined
58
+ },
54
59
  serial: {
55
60
  type: Boolean,
56
61
  default: false
@@ -124,7 +129,7 @@ const __sfc_main__ = Object.assign({
124
129
  key: 0,
125
130
  searchKey: searchData.key,
126
131
  rowKey: _ctx.rowKey,
127
- columns: _ctx.searchColumns,
132
+ columns: __props.searchColumns,
128
133
  onClose: _cache[0] || (_cache[0] = $event => (searchData.visible = false))
129
134
  }, null, 8 /* PROPS */, ["searchKey", "rowKey", "columns"]))
130
135
  : _createCommentVNode("v-if", true)
@@ -16,6 +16,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
16
16
  } return value; }
17
17
  /* Analyzed bindings: {
18
18
  "searchKey": "props",
19
+ "columns": "props",
19
20
  "Table": "setup-const",
20
21
  "useTableDataSource": "setup-maybe-ref",
21
22
  "useTableOpenGroup": "setup-maybe-ref",
@@ -46,7 +47,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
46
47
  "tableHeight": "setup-ref",
47
48
  "selectedRowKeys": "setup-ref",
48
49
  "tableRef": "setup-ref",
49
- "columns": "setup-reactive-const",
50
+ "myColumns": "setup-reactive-const",
50
51
  "selectedTableRow": "setup-const",
51
52
  "handleFilterArray": "setup-const",
52
53
  "search": "setup-const",
@@ -79,6 +80,10 @@ const __sfc_main__ = Object.assign({
79
80
  searchKey: {
80
81
  type: String,
81
82
  default: 'id'
83
+ },
84
+ columns: {
85
+ type: Array,
86
+ default: undefined
82
87
  }
83
88
  },
84
89
  emits: ['close'],
@@ -98,7 +103,7 @@ const __sfc_main__ = Object.assign({
98
103
  const tableHeight = ref(230);
99
104
  const selectedRowKeys = ref([]);
100
105
  const tableRef = ref();
101
- const columns = reactive([
106
+ const myColumns = reactive([
102
107
  {
103
108
  title: contextLocale.value.columns.sign,
104
109
  dataIndex: 'id',
@@ -267,7 +272,7 @@ const __sfc_main__ = Object.assign({
267
272
  ref_key: "tableRef",
268
273
  ref: tableRef,
269
274
  "data-source": filterArray.value,
270
- columns: columns,
275
+ columns: __props.columns || myColumns,
271
276
  height: tableHeight.value,
272
277
  disableMenu: false,
273
278
  cellHeight: 36,
@@ -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-1744268546535"), n = n(), _popScopeId(), n);
45
+ const _withScopeId = n => (_pushScopeId("data-v-1744351961100"), 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" };
@@ -44,6 +44,10 @@ var bodyProps = exports.bodyProps = function bodyProps() {
44
44
  return [];
45
45
  }
46
46
  },
47
+ searchColumns: {
48
+ type: Array,
49
+ default: undefined
50
+ },
47
51
  cellHeight: {
48
52
  type: Number,
49
53
  default: 50
@@ -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-1744268539612"), n = n(), _popScopeId(), n);
12
+ const _withScopeId = n => (_pushScopeId("data-v-1744351958690"), 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-1744268546263"), n = n(), _popScopeId(), n);
26
+ const _withScopeId = n => (_pushScopeId("data-v-1744351960925"), 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-1744268543538"), n = n(), _popScopeId(), n);
83
+ const _withScopeId = n => (_pushScopeId("data-v-1744351960141"), n = n(), _popScopeId(), n);
84
84
  const _hoisted_1 = { class: "JSearch-item" };
85
85
  const _hoisted_2 = {
86
86
  key: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetlinks-web/components",
3
- "version": "2.6.4",
3
+ "version": "2.6.6",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",