@jetlinks-web/components 2.0.27 → 2.0.29

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.
@@ -7,19 +7,23 @@
7
7
  "value": "props",
8
8
  "itemLayout": "props",
9
9
  "has": "setup-maybe-ref",
10
+ "computed": "setup-const",
11
+ "ref": "setup-const",
12
+ "watch": "setup-const",
10
13
  "props": "setup-reactive-const",
11
14
  "emit": "setup-const",
12
- "selectKeys": "setup-maybe-ref",
13
- "CardSelectStyle": "setup-maybe-ref",
14
- "isMultiple": "setup-maybe-ref",
15
+ "selectKeys": "setup-ref",
16
+ "CardSelectStyle": "setup-ref",
17
+ "isMultiple": "setup-ref",
15
18
  "handleSelect": "setup-const"
16
19
  } */
17
- import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle } from "vue";
20
+ import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle } from "vue";
18
21
  const _hoisted_1 = ["onClick"];
19
22
  const _hoisted_2 = { class: "j-card-select-item-content" };
20
23
  const _hoisted_3 = { class: "j-card-select-title" };
21
24
  const _hoisted_4 = { class: "j-card-select-describe" };
22
25
  import { has } from 'lodash-es';
26
+ import { computed, ref, watch } from 'vue';
23
27
  const __sfc_main__ = Object.assign({
24
28
  name: 'JCardSelect'
25
29
  }, {
@@ -99,14 +103,14 @@ const __sfc_main__ = Object.assign({
99
103
  return (_ctx, _cache) => {
100
104
  return (_openBlock(), _createElementBlock("div", {
101
105
  class: "j-card-select",
102
- style: _normalizeStyle(_unref(CardSelectStyle))
106
+ style: _normalizeStyle(CardSelectStyle.value)
103
107
  }, [
104
108
  (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.options, (item) => {
105
109
  return (_openBlock(), _createElementBlock("div", {
106
110
  class: _normalizeClass({
107
111
  'j-card-select-item': true,
108
112
  'disabled': __props.disabled || item.disabled,
109
- 'active': _unref(selectKeys).includes(item.value)
113
+ 'active': selectKeys.value.includes(item.value)
110
114
  }),
111
115
  onClick: () => handleSelect(item.value, item)
112
116
  }, [
@@ -6,7 +6,7 @@
6
6
  } */
7
7
  import { defineComponent as _defineComponent } from 'vue';
8
8
  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";
9
- const _withScopeId = n => (_pushScopeId("data-v-1715679981327"), n = n(), _popScopeId(), n);
9
+ const _withScopeId = n => (_pushScopeId("data-v-1715740403882"), n = n(), _popScopeId(), n);
10
10
  const _hoisted_1 = { class: "full-page-warp-content" };
11
11
  import { ref } from 'vue';
12
12
  import { useElementBounding } from '@vueuse/core';
@@ -338,7 +338,7 @@ export default defineComponent({
338
338
  }
339
339
  }), _createVNode(LayoutContent, {
340
340
  "style": {
341
- flex: '1 1 0%',
341
+ flex: '1 1 0',
342
342
  overflow: 'auto'
343
343
  }
344
344
  }, {
@@ -21,7 +21,7 @@
21
21
  } */
22
22
  import { defineComponent as _defineComponent } from 'vue';
23
23
  import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
24
- const _withScopeId = n => (_pushScopeId("data-v-1715679982497"), n = n(), _popScopeId(), n);
24
+ const _withScopeId = n => (_pushScopeId("data-v-1715740406215"), n = n(), _popScopeId(), n);
25
25
  const _hoisted_1 = {
26
26
  key: 0,
27
27
  style: { "width": "240px" }
package/es/Search/Item.js CHANGED
@@ -78,7 +78,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
78
78
  } */
79
79
  import { defineComponent as _defineComponent } from 'vue';
80
80
  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";
81
- const _withScopeId = n => (_pushScopeId("data-v-1715679981884"), n = n(), _popScopeId(), n);
81
+ const _withScopeId = n => (_pushScopeId("data-v-1715740404880"), n = n(), _popScopeId(), n);
82
82
  const _hoisted_1 = { class: "JSearch-item" };
83
83
  const _hoisted_2 = {
84
84
  key: 0,
@@ -36,7 +36,7 @@
36
36
  } */
37
37
  import { defineComponent as _defineComponent } from 'vue';
38
38
  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";
39
- const _withScopeId = n => (_pushScopeId("data-v-1715679982063"), n = n(), _popScopeId(), n);
39
+ const _withScopeId = n => (_pushScopeId("data-v-1715740405123"), n = n(), _popScopeId(), n);
40
40
  const _hoisted_1 = { class: "JSearch-content simple" };
41
41
  const _hoisted_2 = { class: "JSearch-items" };
42
42
  import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
@@ -7,19 +7,23 @@
7
7
  "value": "props",
8
8
  "itemLayout": "props",
9
9
  "has": "setup-maybe-ref",
10
+ "computed": "setup-const",
11
+ "ref": "setup-const",
12
+ "watch": "setup-const",
10
13
  "props": "setup-reactive-const",
11
14
  "emit": "setup-const",
12
- "selectKeys": "setup-maybe-ref",
13
- "CardSelectStyle": "setup-maybe-ref",
14
- "isMultiple": "setup-maybe-ref",
15
+ "selectKeys": "setup-ref",
16
+ "CardSelectStyle": "setup-ref",
17
+ "isMultiple": "setup-ref",
15
18
  "handleSelect": "setup-const"
16
19
  } */
17
- import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle } from "vue";
20
+ import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle } from "vue";
18
21
  const _hoisted_1 = ["onClick"];
19
22
  const _hoisted_2 = { class: "j-card-select-item-content" };
20
23
  const _hoisted_3 = { class: "j-card-select-title" };
21
24
  const _hoisted_4 = { class: "j-card-select-describe" };
22
25
  import { has } from 'lodash-es';
26
+ import { computed, ref, watch } from 'vue';
23
27
  const __sfc_main__ = Object.assign({
24
28
  name: 'JCardSelect'
25
29
  }, {
@@ -99,14 +103,14 @@ const __sfc_main__ = Object.assign({
99
103
  return (_ctx, _cache) => {
100
104
  return (_openBlock(), _createElementBlock("div", {
101
105
  class: "j-card-select",
102
- style: _normalizeStyle(_unref(CardSelectStyle))
106
+ style: _normalizeStyle(CardSelectStyle.value)
103
107
  }, [
104
108
  (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.options, (item) => {
105
109
  return (_openBlock(), _createElementBlock("div", {
106
110
  class: _normalizeClass({
107
111
  'j-card-select-item': true,
108
112
  'disabled': __props.disabled || item.disabled,
109
- 'active': _unref(selectKeys).includes(item.value)
113
+ 'active': selectKeys.value.includes(item.value)
110
114
  }),
111
115
  onClick: () => handleSelect(item.value, item)
112
116
  }, [
@@ -6,7 +6,7 @@
6
6
  } */
7
7
  import { defineComponent as _defineComponent } from 'vue';
8
8
  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";
9
- const _withScopeId = n => (_pushScopeId("data-v-1715679981335"), n = n(), _popScopeId(), n);
9
+ const _withScopeId = n => (_pushScopeId("data-v-1715740403873"), n = n(), _popScopeId(), n);
10
10
  const _hoisted_1 = { class: "full-page-warp-content" };
11
11
  import { ref } from 'vue';
12
12
  import { useElementBounding } from '@vueuse/core';
@@ -347,7 +347,7 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
347
347
  }
348
348
  }), (0, _vue.createVNode)(_antDesignVue.LayoutContent, {
349
349
  "style": {
350
- flex: '1 1 0%',
350
+ flex: '1 1 0',
351
351
  overflow: 'auto'
352
352
  }
353
353
  }, {
@@ -21,7 +21,7 @@
21
21
  } */
22
22
  import { defineComponent as _defineComponent } from 'vue';
23
23
  import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
24
- const _withScopeId = n => (_pushScopeId("data-v-1715679982485"), n = n(), _popScopeId(), n);
24
+ const _withScopeId = n => (_pushScopeId("data-v-1715740406247"), n = n(), _popScopeId(), n);
25
25
  const _hoisted_1 = {
26
26
  key: 0,
27
27
  style: { "width": "240px" }
@@ -78,7 +78,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
78
78
  } */
79
79
  import { defineComponent as _defineComponent } from 'vue';
80
80
  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";
81
- const _withScopeId = n => (_pushScopeId("data-v-1715679981960"), n = n(), _popScopeId(), n);
81
+ const _withScopeId = n => (_pushScopeId("data-v-1715740404741"), n = n(), _popScopeId(), n);
82
82
  const _hoisted_1 = { class: "JSearch-item" };
83
83
  const _hoisted_2 = {
84
84
  key: 0,
@@ -36,7 +36,7 @@
36
36
  } */
37
37
  import { defineComponent as _defineComponent } from 'vue';
38
38
  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";
39
- const _withScopeId = n => (_pushScopeId("data-v-1715679982041"), n = n(), _popScopeId(), n);
39
+ const _withScopeId = n => (_pushScopeId("data-v-1715740405094"), n = n(), _popScopeId(), n);
40
40
  const _hoisted_1 = { class: "JSearch-content simple" };
41
41
  const _hoisted_2 = { class: "JSearch-items" };
42
42
  import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetlinks-web/components",
3
- "version": "2.0.27",
3
+ "version": "2.0.29",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -135,8 +135,8 @@
135
135
  "webpack-merge": "^5.0.0",
136
136
  "webpackbar": "^5.0.2",
137
137
  "@jetlinks-web/constants": "^1.0.2",
138
- "@jetlinks-web/hooks": "^1.0.12",
139
- "@jetlinks-web/utils": "^1.0.7"
138
+ "@jetlinks-web/utils": "^1.0.7",
139
+ "@jetlinks-web/hooks": "^1.0.13"
140
140
  },
141
141
  "publishConfig": {
142
142
  "registry": "https://registry.npmjs.org/",