@jetlinks-web/components 2.6.13 → 2.6.15

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.
@@ -20,9 +20,10 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
20
20
  "autoCompleteProps": "setup-maybe-ref",
21
21
  "ref": "setup-const",
22
22
  "defineOptions": "setup-const",
23
+ "watch": "setup-const",
23
24
  "props": "setup-reactive-const",
24
25
  "emit": "setup-const",
25
- "options": "setup-ref",
26
+ "_options": "setup-ref",
26
27
  "onSearch": "setup-const",
27
28
  "dropdownVisibleChange": "setup-const"
28
29
  } */
@@ -30,7 +31,7 @@ import { defineComponent as _defineComponent } from 'vue';
30
31
  import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, unref as _unref, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
31
32
  import { AutoComplete } from 'ant-design-vue';
32
33
  import { autoCompleteProps } from 'ant-design-vue/lib/auto-complete';
33
- import { ref, } from 'vue';
34
+ import { ref, watch } from 'vue';
34
35
  const __sfc_main__ = _defineComponent({
35
36
  ...{
36
37
  name: 'JAutoComplete'
@@ -46,29 +47,33 @@ const __sfc_main__ = _defineComponent({
46
47
  setup(__props, { emit: __emit }) {
47
48
  const props = __props;
48
49
  const emit = __emit;
49
- const options = ref(props.options);
50
+ const _options = ref(props.options);
50
51
  /**
51
52
  * 根据关键词提示
52
53
  * @param searchText 关键词
53
54
  */
54
55
  const onSearch = (searchText) => {
55
- options.value = _optionalChain([props, 'access', _2 => _2.options, 'optionalAccess', _3 => _3.filter, 'call', _4 => _4((item) => !!_optionalChain([item, 'access', _5 => _5[props.searchKey], 'optionalAccess', _6 => _6.includes, 'call', _7 => _7(searchText)]))]) || [];
56
- if (!options.value.length) {
57
- options.value.unshift({ label: searchText, value: searchText });
56
+ _options.value = _optionalChain([props, 'access', _2 => _2.options, 'optionalAccess', _3 => _3.filter, 'call', _4 => _4((item) => !!_optionalChain([item, 'access', _5 => _5[props.searchKey], 'optionalAccess', _6 => _6.includes, 'call', _7 => _7(searchText)]))]) || [];
57
+ if (!_options.value.length) {
58
+ _options.value.unshift({ label: searchText, value: searchText });
58
59
  }
59
60
  };
60
61
  const dropdownVisibleChange = (open) => {
61
62
  if (!open) {
62
63
  // 关闭还原下拉options
63
64
  setTimeout(() => {
64
- options.value = props.options || [];
65
+ _options.value = props.options || [];
65
66
  });
66
67
  }
67
68
  };
69
+ watch(() => props.options, // 处理options变化
70
+ () => {
71
+ _options.value = props.options || [];
72
+ });
68
73
  return (_ctx, _cache) => {
69
74
  return (_openBlock(), _createBlock(_unref(AutoComplete), _mergeProps(props, {
70
75
  style: { "width": "100%" },
71
- options: options.value,
76
+ options: _options.value,
72
77
  onSearch: onSearch,
73
78
  onDropdownVisibleChange: dropdownVisibleChange
74
79
  }), {
@@ -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-1747734155642"), n = n(), _popScopeId(), n);
45
+ const _withScopeId = n => (_pushScopeId("data-v-1747818803777"), 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" };
@@ -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-1747734152390"), n = n(), _popScopeId(), n);
12
+ const _withScopeId = n => (_pushScopeId("data-v-1747818802220"), 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-1747734155100"), n = n(), _popScopeId(), n);
26
+ const _withScopeId = n => (_pushScopeId("data-v-1747818803669"), 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-1747734153945"), n = n(), _popScopeId(), n);
83
+ const _withScopeId = n => (_pushScopeId("data-v-1747818803063"), n = n(), _popScopeId(), n);
84
84
  const _hoisted_1 = { class: "JSearch-item" };
85
85
  const _hoisted_2 = {
86
86
  key: 0,
package/es/components.js CHANGED
@@ -8,6 +8,7 @@ export { default as Ellipsis } from './Ellipsis';
8
8
  export { default as Empty } from './Empty';
9
9
  export { default as FullPage } from './FullPage';
10
10
  export { default as AIcon } from './Icon';
11
+ export { default as MonacoEditor } from './MonacoEditor';
11
12
  export { default as PermissionButton } from './PermissionButton';
12
13
  export { default as ProLayout, PageContainer } from './ProLayout';
13
14
  export { default as ProTable } from './ProTable';
@@ -20,9 +20,10 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
20
20
  "autoCompleteProps": "setup-maybe-ref",
21
21
  "ref": "setup-const",
22
22
  "defineOptions": "setup-const",
23
+ "watch": "setup-const",
23
24
  "props": "setup-reactive-const",
24
25
  "emit": "setup-const",
25
- "options": "setup-ref",
26
+ "_options": "setup-ref",
26
27
  "onSearch": "setup-const",
27
28
  "dropdownVisibleChange": "setup-const"
28
29
  } */
@@ -30,7 +31,7 @@ import { defineComponent as _defineComponent } from 'vue';
30
31
  import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, unref as _unref, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
31
32
  import { AutoComplete } from 'ant-design-vue';
32
33
  import { autoCompleteProps } from 'ant-design-vue/lib/auto-complete';
33
- import { ref, } from 'vue';
34
+ import { ref, watch } from 'vue';
34
35
  const __sfc_main__ = _defineComponent({
35
36
  ...{
36
37
  name: 'JAutoComplete'
@@ -46,29 +47,33 @@ const __sfc_main__ = _defineComponent({
46
47
  setup(__props, { emit: __emit }) {
47
48
  const props = __props;
48
49
  const emit = __emit;
49
- const options = ref(props.options);
50
+ const _options = ref(props.options);
50
51
  /**
51
52
  * 根据关键词提示
52
53
  * @param searchText 关键词
53
54
  */
54
55
  const onSearch = (searchText) => {
55
- options.value = _optionalChain([props, 'access', _2 => _2.options, 'optionalAccess', _3 => _3.filter, 'call', _4 => _4((item) => !!_optionalChain([item, 'access', _5 => _5[props.searchKey], 'optionalAccess', _6 => _6.includes, 'call', _7 => _7(searchText)]))]) || [];
56
- if (!options.value.length) {
57
- options.value.unshift({ label: searchText, value: searchText });
56
+ _options.value = _optionalChain([props, 'access', _2 => _2.options, 'optionalAccess', _3 => _3.filter, 'call', _4 => _4((item) => !!_optionalChain([item, 'access', _5 => _5[props.searchKey], 'optionalAccess', _6 => _6.includes, 'call', _7 => _7(searchText)]))]) || [];
57
+ if (!_options.value.length) {
58
+ _options.value.unshift({ label: searchText, value: searchText });
58
59
  }
59
60
  };
60
61
  const dropdownVisibleChange = (open) => {
61
62
  if (!open) {
62
63
  // 关闭还原下拉options
63
64
  setTimeout(() => {
64
- options.value = props.options || [];
65
+ _options.value = props.options || [];
65
66
  });
66
67
  }
67
68
  };
69
+ watch(() => props.options, // 处理options变化
70
+ () => {
71
+ _options.value = props.options || [];
72
+ });
68
73
  return (_ctx, _cache) => {
69
74
  return (_openBlock(), _createBlock(_unref(AutoComplete), _mergeProps(props, {
70
75
  style: { "width": "100%" },
71
- options: options.value,
76
+ options: _options.value,
72
77
  onSearch: onSearch,
73
78
  onDropdownVisibleChange: dropdownVisibleChange
74
79
  }), {
@@ -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-1747734155676"), n = n(), _popScopeId(), n);
45
+ const _withScopeId = n => (_pushScopeId("data-v-1747818803793"), 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" };
@@ -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-1747734152402"), n = n(), _popScopeId(), n);
12
+ const _withScopeId = n => (_pushScopeId("data-v-1747818802227"), 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-1747734155064"), n = n(), _popScopeId(), n);
26
+ const _withScopeId = n => (_pushScopeId("data-v-1747818803680"), 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-1747734153799"), n = n(), _popScopeId(), n);
83
+ const _withScopeId = n => (_pushScopeId("data-v-1747818803112"), n = n(), _popScopeId(), n);
84
84
  const _hoisted_1 = { class: "JSearch-item" };
85
85
  const _hoisted_2 = {
86
86
  key: 0,
package/lib/components.js CHANGED
@@ -101,6 +101,12 @@ Object.defineProperty(exports, "Markdown", {
101
101
  return _Markdown.default;
102
102
  }
103
103
  });
104
+ Object.defineProperty(exports, "MonacoEditor", {
105
+ enumerable: true,
106
+ get: function get() {
107
+ return _MonacoEditor.default;
108
+ }
109
+ });
104
110
  Object.defineProperty(exports, "PageContainer", {
105
111
  enumerable: true,
106
112
  get: function get() {
@@ -165,6 +171,7 @@ var _Ellipsis = _interopRequireDefault(require("./Ellipsis"));
165
171
  var _Empty = _interopRequireDefault(require("./Empty"));
166
172
  var _FullPage = _interopRequireDefault(require("./FullPage"));
167
173
  var _Icon = _interopRequireDefault(require("./Icon"));
174
+ var _MonacoEditor = _interopRequireDefault(require("./MonacoEditor"));
168
175
  var _PermissionButton = _interopRequireDefault(require("./PermissionButton"));
169
176
  var _ProLayout = _interopRequireWildcard(require("./ProLayout"));
170
177
  var _ProTable = _interopRequireDefault(require("./ProTable"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetlinks-web/components",
3
- "version": "2.6.13",
3
+ "version": "2.6.15",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -159,8 +159,8 @@
159
159
  "webpack-merge": "^5.0.0",
160
160
  "webpackbar": "^5.0.2",
161
161
  "@jetlinks-web/constants": "^1.0.9",
162
- "@jetlinks-web/hooks": "^1.0.28",
163
- "@jetlinks-web/utils": "^1.2.12"
162
+ "@jetlinks-web/utils": "^1.2.12",
163
+ "@jetlinks-web/hooks": "^1.0.28"
164
164
  },
165
165
  "publishConfig": {
166
166
  "registry": "https://registry.npmjs.org/",