@jetlinks-web/components 2.6.12 → 2.6.13

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.
@@ -8,9 +8,9 @@ var colorMap = {
8
8
  export var getHexColor = function getHexColor(code) {
9
9
  var pe = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.1;
10
10
  var _color = colorMap[code] || colorMap.default;
11
- if (code === 'default') {
12
- pe = 0.1;
13
- }
11
+ // if (code === 'default') {
12
+ // pe = 0.1
13
+ // }
14
14
  return "rgba(".concat(_color, ", ").concat(pe, ")");
15
15
  };
16
16
  export default colorMap;
@@ -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-1744797585363"), n = n(), _popScopeId(), n);
45
+ const _withScopeId = n => (_pushScopeId("data-v-1747734155642"), 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-1744797583796"), n = n(), _popScopeId(), n);
12
+ const _withScopeId = n => (_pushScopeId("data-v-1747734152390"), 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';
@@ -1,4 +1,4 @@
1
- .j-monaco-editor {
2
- min-height: 50px;
3
- height: 100%;
4
- }
1
+ .j-monaco-editor {
2
+ min-height: 50px;
3
+ height: 100%;
4
+ }
@@ -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-1744797585097"), n = n(), _popScopeId(), n);
26
+ const _withScopeId = n => (_pushScopeId("data-v-1747734155100"), n = n(), _popScopeId(), n);
27
27
  const _hoisted_1 = {
28
28
  key: 0,
29
29
  style: { "width": "240px" }
@@ -17,7 +17,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
17
17
  /* Analyzed bindings: {
18
18
  "columns": "props",
19
19
  "type": "props",
20
- "target": "setup-maybe-ref",
20
+ "target": "setup-ref",
21
21
  "class": "props",
22
22
  "request": "props",
23
23
  "historyRequest": "props",
@@ -56,7 +56,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
56
56
  "searchRef": "setup-ref",
57
57
  "searchRefContentRef": "setup-ref",
58
58
  "width": "setup-maybe-ref",
59
- "q": "setup-maybe-ref",
59
+ "q": "setup-ref",
60
60
  "hasOnceSearch": "setup-ref",
61
61
  "expand": "setup-ref",
62
62
  "layout": "setup-ref",
@@ -103,7 +103,6 @@ const _hoisted_12 = { class: "JSearch-footer--btns" };
103
103
  import SearchItem from '../Item.js';
104
104
  import { optionsMapKey, typeOptions } from '../setting';
105
105
  import { useElementSize } from '@vueuse/core';
106
- import { useRouteQuery } from '@vueuse/router';
107
106
  import { ref, reactive, watch, provide } from 'vue';
108
107
  import SaveHistory from './SaveHistory.js';
109
108
  import History from './History.js';
@@ -171,8 +170,8 @@ const __sfc_main__ = _defineComponent({
171
170
  const searchRef = ref(null);
172
171
  const searchRefContentRef = ref(null);
173
172
  const { width } = useElementSize(searchRef);
174
- const q = useRouteQuery('q');
175
- const target = useRouteQuery('target');
173
+ const q = ref('q');
174
+ const target = ref('target');
176
175
  const hasOnceSearch = ref(false);
177
176
  // 是否展开更多筛选
178
177
  const expand = ref(false);
@@ -487,11 +486,11 @@ const __sfc_main__ = _defineComponent({
487
486
  }),
488
487
  _createVNode(SaveHistory, {
489
488
  terms: termsData,
490
- target: _unref(target),
489
+ target: target.value,
491
490
  request: __props.request
492
491
  }, null, 8 /* PROPS */, ["terms", "target", "request"]),
493
492
  _createVNode(History, {
494
- target: _unref(target),
493
+ target: target.value,
495
494
  request: __props.historyRequest,
496
495
  "delete-request": __props.deleteRequest,
497
496
  "delete-key": __props.deleteKey,
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-1744797584295"), n = n(), _popScopeId(), n);
83
+ const _withScopeId = n => (_pushScopeId("data-v-1747734153945"), n = n(), _popScopeId(), n);
84
84
  const _hoisted_1 = { class: "JSearch-item" };
85
85
  const _hoisted_2 = {
86
86
  key: 0,
@@ -1,25 +1,25 @@
1
- .j-title {
2
- display: flex;
3
- align-items: center;
4
- width: 100%;
5
- margin-bottom: 16px;
6
-
7
- .j-title-content {
8
- position: relative;
9
- padding-left: 10px;
10
- color: rgba(0, 0, 0, 0.8);
11
- font-weight: 600;
12
- line-height: 1;
13
-
14
- &::before {
15
- position: absolute;
16
- top: 0;
17
- left: 0;
18
- width: 4px;
19
- height: 100%;
20
- background-color: #1890ff;
21
- border-radius: 0 3px 3px 0;
22
- content: ' ';
23
- }
24
- }
25
- }
1
+ .j-title {
2
+ display: flex;
3
+ align-items: center;
4
+ width: 100%;
5
+ margin-bottom: 16px;
6
+
7
+ .j-title-content {
8
+ position: relative;
9
+ padding-left: 10px;
10
+ color: rgba(0, 0, 0, 0.8);
11
+ font-weight: 600;
12
+ line-height: 1;
13
+
14
+ &::before {
15
+ position: absolute;
16
+ top: 0;
17
+ left: 0;
18
+ width: 4px;
19
+ height: 100%;
20
+ background-color: #1890ff;
21
+ border-radius: 0 3px 3px 0;
22
+ content: ' ';
23
+ }
24
+ }
25
+ }
package/es/components.js CHANGED
@@ -8,7 +8,6 @@ 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';
12
11
  export { default as PermissionButton } from './PermissionButton';
13
12
  export { default as ProLayout, PageContainer } from './ProLayout';
14
13
  export { default as ProTable } from './ProTable';
@@ -14,9 +14,9 @@ var colorMap = {
14
14
  var getHexColor = exports.getHexColor = function getHexColor(code) {
15
15
  var pe = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.1;
16
16
  var _color = colorMap[code] || colorMap.default;
17
- if (code === 'default') {
18
- pe = 0.1;
19
- }
17
+ // if (code === 'default') {
18
+ // pe = 0.1
19
+ // }
20
20
  return "rgba(".concat(_color, ", ").concat(pe, ")");
21
21
  };
22
22
  var _default = exports.default = colorMap;
@@ -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-1744797585382"), n = n(), _popScopeId(), n);
45
+ const _withScopeId = n => (_pushScopeId("data-v-1747734155676"), 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-1744797583803"), n = n(), _popScopeId(), n);
12
+ const _withScopeId = n => (_pushScopeId("data-v-1747734152402"), 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';
@@ -1,4 +1,4 @@
1
- .j-monaco-editor {
2
- min-height: 50px;
3
- height: 100%;
4
- }
1
+ .j-monaco-editor {
2
+ min-height: 50px;
3
+ height: 100%;
4
+ }
@@ -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-1744797585115"), n = n(), _popScopeId(), n);
26
+ const _withScopeId = n => (_pushScopeId("data-v-1747734155064"), n = n(), _popScopeId(), n);
27
27
  const _hoisted_1 = {
28
28
  key: 0,
29
29
  style: { "width": "240px" }
@@ -17,7 +17,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
17
17
  /* Analyzed bindings: {
18
18
  "columns": "props",
19
19
  "type": "props",
20
- "target": "setup-maybe-ref",
20
+ "target": "setup-ref",
21
21
  "class": "props",
22
22
  "request": "props",
23
23
  "historyRequest": "props",
@@ -56,7 +56,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
56
56
  "searchRef": "setup-ref",
57
57
  "searchRefContentRef": "setup-ref",
58
58
  "width": "setup-maybe-ref",
59
- "q": "setup-maybe-ref",
59
+ "q": "setup-ref",
60
60
  "hasOnceSearch": "setup-ref",
61
61
  "expand": "setup-ref",
62
62
  "layout": "setup-ref",
@@ -103,7 +103,6 @@ const _hoisted_12 = { class: "JSearch-footer--btns" };
103
103
  import SearchItem from '../Item.js';
104
104
  import { optionsMapKey, typeOptions } from '../setting';
105
105
  import { useElementSize } from '@vueuse/core';
106
- import { useRouteQuery } from '@vueuse/router';
107
106
  import { ref, reactive, watch, provide } from 'vue';
108
107
  import SaveHistory from './SaveHistory.js';
109
108
  import History from './History.js';
@@ -171,8 +170,8 @@ const __sfc_main__ = _defineComponent({
171
170
  const searchRef = ref(null);
172
171
  const searchRefContentRef = ref(null);
173
172
  const { width } = useElementSize(searchRef);
174
- const q = useRouteQuery('q');
175
- const target = useRouteQuery('target');
173
+ const q = ref('q');
174
+ const target = ref('target');
176
175
  const hasOnceSearch = ref(false);
177
176
  // 是否展开更多筛选
178
177
  const expand = ref(false);
@@ -487,11 +486,11 @@ const __sfc_main__ = _defineComponent({
487
486
  }),
488
487
  _createVNode(SaveHistory, {
489
488
  terms: termsData,
490
- target: _unref(target),
489
+ target: target.value,
491
490
  request: __props.request
492
491
  }, null, 8 /* PROPS */, ["terms", "target", "request"]),
493
492
  _createVNode(History, {
494
- target: _unref(target),
493
+ target: target.value,
495
494
  request: __props.historyRequest,
496
495
  "delete-request": __props.deleteRequest,
497
496
  "delete-key": __props.deleteKey,
@@ -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-1744797584354"), n = n(), _popScopeId(), n);
83
+ const _withScopeId = n => (_pushScopeId("data-v-1747734153799"), n = n(), _popScopeId(), n);
84
84
  const _hoisted_1 = { class: "JSearch-item" };
85
85
  const _hoisted_2 = {
86
86
  key: 0,
@@ -1,25 +1,25 @@
1
- .j-title {
2
- display: flex;
3
- align-items: center;
4
- width: 100%;
5
- margin-bottom: 16px;
6
-
7
- .j-title-content {
8
- position: relative;
9
- padding-left: 10px;
10
- color: rgba(0, 0, 0, 0.8);
11
- font-weight: 600;
12
- line-height: 1;
13
-
14
- &::before {
15
- position: absolute;
16
- top: 0;
17
- left: 0;
18
- width: 4px;
19
- height: 100%;
20
- background-color: #1890ff;
21
- border-radius: 0 3px 3px 0;
22
- content: ' ';
23
- }
24
- }
25
- }
1
+ .j-title {
2
+ display: flex;
3
+ align-items: center;
4
+ width: 100%;
5
+ margin-bottom: 16px;
6
+
7
+ .j-title-content {
8
+ position: relative;
9
+ padding-left: 10px;
10
+ color: rgba(0, 0, 0, 0.8);
11
+ font-weight: 600;
12
+ line-height: 1;
13
+
14
+ &::before {
15
+ position: absolute;
16
+ top: 0;
17
+ left: 0;
18
+ width: 4px;
19
+ height: 100%;
20
+ background-color: #1890ff;
21
+ border-radius: 0 3px 3px 0;
22
+ content: ' ';
23
+ }
24
+ }
25
+ }
package/lib/components.js CHANGED
@@ -101,12 +101,6 @@ 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
- });
110
104
  Object.defineProperty(exports, "PageContainer", {
111
105
  enumerable: true,
112
106
  get: function get() {
@@ -171,7 +165,6 @@ var _Ellipsis = _interopRequireDefault(require("./Ellipsis"));
171
165
  var _Empty = _interopRequireDefault(require("./Empty"));
172
166
  var _FullPage = _interopRequireDefault(require("./FullPage"));
173
167
  var _Icon = _interopRequireDefault(require("./Icon"));
174
- var _MonacoEditor = _interopRequireDefault(require("./MonacoEditor"));
175
168
  var _PermissionButton = _interopRequireDefault(require("./PermissionButton"));
176
169
  var _ProLayout = _interopRequireWildcard(require("./ProLayout"));
177
170
  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.12",
3
+ "version": "2.6.13",
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/utils": "^1.2.9",
163
- "@jetlinks-web/hooks": "^1.0.25"
162
+ "@jetlinks-web/hooks": "^1.0.28",
163
+ "@jetlinks-web/utils": "^1.2.12"
164
164
  },
165
165
  "publishConfig": {
166
166
  "registry": "https://registry.npmjs.org/",