@jetlinks-web/components 2.4.7 → 2.4.10
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/AMap/Map.js +1 -1
- package/es/ConfigProvider/context.js +3 -1
- package/es/ConfigProvider/index.js +3 -2
- package/es/EditTable/FormItem.js +1 -1
- package/es/FullPage/FullPage.js +8 -3
- package/es/Icon/icon.js +3 -3
- package/es/PermissionButton/index.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 +2 -2
- package/es/ValueItem/ValueItem.js +2 -0
- package/es/utils/constants.js +8 -0
- package/lib/AMap/Map.js +1 -1
- package/lib/ConfigProvider/context.js +3 -1
- package/lib/ConfigProvider/index.js +3 -2
- package/lib/EditTable/FormItem.js +1 -1
- package/lib/FullPage/FullPage.js +8 -3
- package/lib/Icon/icon.js +2 -2
- package/lib/PermissionButton/index.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 +2 -2
- package/lib/ValueItem/ValueItem.js +2 -0
- package/lib/utils/constants.js +14 -0
- package/package.json +3 -3
package/es/AMap/Map.js
CHANGED
|
@@ -34,7 +34,7 @@ import { ref, computed, inject, } from 'vue';
|
|
|
34
34
|
import { initAMapApiLoader, ElAmap } from '@vuemap/vue-amap';
|
|
35
35
|
import { getAMapUiPromise } from '@jetlinks-web/utils';
|
|
36
36
|
import { MapProps } from './util';
|
|
37
|
-
import { MAPConfig } from "
|
|
37
|
+
import { MAPConfig } from "../utils/constants";
|
|
38
38
|
import Empty from '../Empty';
|
|
39
39
|
import '@vuemap/vue-amap/dist/style.css';
|
|
40
40
|
const __sfc_main__ = _defineComponent({
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import { configProviderProps } from 'ant-design-vue/es/config-provider/context';
|
|
3
|
-
import "@jetlinks-web/constants";
|
|
4
3
|
export var configProps = function configProps() {
|
|
5
4
|
return _objectSpread(_objectSpread({}, configProviderProps()), {}, {
|
|
6
5
|
IconConfig: {
|
|
@@ -14,6 +13,9 @@ export var configProps = function configProps() {
|
|
|
14
13
|
},
|
|
15
14
|
PermissionButtonConfig: {
|
|
16
15
|
type: Object
|
|
16
|
+
},
|
|
17
|
+
FullPageConfig: {
|
|
18
|
+
reduceHeight: Number
|
|
17
19
|
}
|
|
18
20
|
});
|
|
19
21
|
};
|
|
@@ -2,7 +2,7 @@ import { createVNode as _createVNode } from "vue";
|
|
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
3
|
import { defineComponent, provide, reactive, h } from 'vue';
|
|
4
4
|
import { configProps } from './context';
|
|
5
|
-
import { ComponentsEnum, MAPConfig, PermissionButtonConfig, SearchConfig } from '
|
|
5
|
+
import { ComponentsEnum, MAPConfig, PermissionButtonConfig, SearchConfig, FullPageConfig } from '../utils/constants';
|
|
6
6
|
import { ConfigProvider } from 'ant-design-vue';
|
|
7
7
|
import { omit } from 'lodash-es';
|
|
8
8
|
import Empty from '../Empty';
|
|
@@ -16,11 +16,12 @@ var JConfigProvider = defineComponent({
|
|
|
16
16
|
var _mapConfig = reactive(props.MapConfig || {});
|
|
17
17
|
var _searchConfig = reactive(props.SearchConfig || {});
|
|
18
18
|
var _PermissionButtonConfig = reactive(props.PermissionButtonConfig || {});
|
|
19
|
+
var _FullPageConfig = reactive(props.FullPageConfig || {});
|
|
19
20
|
provide(ComponentsEnum.Icon, _iconConfig); // 全局Icon 配置
|
|
20
21
|
provide(MAPConfig, _mapConfig); // 全局地图配置
|
|
21
22
|
provide(SearchConfig, _searchConfig); // 全局搜索配置
|
|
22
23
|
provide(PermissionButtonConfig, _PermissionButtonConfig); // 权限组件
|
|
23
|
-
|
|
24
|
+
provide(FullPageConfig, _FullPageConfig); // 权限组件
|
|
24
25
|
return function () {
|
|
25
26
|
return h(ConfigProvider, _objectSpread({}, omit(props, ['IconConfig', 'MapConfig', 'SearchConfig'])), {
|
|
26
27
|
default: slots.default,
|
package/es/EditTable/FormItem.js
CHANGED
|
@@ -48,7 +48,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
48
48
|
"onFieldChange": "setup-const"
|
|
49
49
|
} */
|
|
50
50
|
import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
51
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
51
|
+
const _withScopeId = n => (_pushScopeId("data-v-1732609591895"), n = n(), _popScopeId(), n);
|
|
52
52
|
const _hoisted_1 = { style: { "color": "#1d2129" } };
|
|
53
53
|
const _hoisted_2 = {
|
|
54
54
|
key: 0,
|
package/es/FullPage/FullPage.js
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
/* Analyzed bindings: {
|
|
2
2
|
"ref": "setup-const",
|
|
3
|
+
"inject": "setup-const",
|
|
3
4
|
"useElementBounding": "setup-maybe-ref",
|
|
5
|
+
"FullPageConfig": "setup-maybe-ref",
|
|
6
|
+
"config": "setup-maybe-ref",
|
|
4
7
|
"fullPage": "setup-ref",
|
|
5
8
|
"y": "setup-maybe-ref"
|
|
6
9
|
} */
|
|
7
10
|
import { defineComponent as _defineComponent } from 'vue';
|
|
8
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";
|
|
9
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
12
|
+
const _withScopeId = n => (_pushScopeId("data-v-1732609590837"), n = n(), _popScopeId(), n);
|
|
10
13
|
const _hoisted_1 = { class: "full-page-warp-content" };
|
|
11
|
-
import { ref } from 'vue';
|
|
14
|
+
import { ref, inject } from 'vue';
|
|
12
15
|
import { useElementBounding } from '@vueuse/core';
|
|
16
|
+
import { FullPageConfig } from "../utils/constants";
|
|
13
17
|
const __sfc_main__ = _defineComponent({
|
|
14
18
|
...{
|
|
15
19
|
name: 'JFullPage'
|
|
16
20
|
},
|
|
17
21
|
setup(__props) {
|
|
22
|
+
const config = inject(FullPageConfig, { reduceHeight: 24 });
|
|
18
23
|
const fullPage = ref(null);
|
|
19
24
|
const { y } = useElementBounding(fullPage);
|
|
20
25
|
return (_ctx, _cache) => {
|
|
@@ -22,7 +27,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
22
27
|
class: "full-page-warp",
|
|
23
28
|
ref_key: "fullPage",
|
|
24
29
|
ref: fullPage,
|
|
25
|
-
style: _normalizeStyle({ minHeight: `calc(100vh - ${_unref(y) +
|
|
30
|
+
style: _normalizeStyle({ minHeight: `calc(100vh - ${_unref(y) + _unref(config).reduceHeight}px)` })
|
|
26
31
|
}, [
|
|
27
32
|
_createElementVNode("div", _hoisted_1, [
|
|
28
33
|
_renderSlot(_ctx.$slots, "default")
|
package/es/Icon/icon.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import { defineComponent, createVNode, watchEffect, createVNode as _createVNode } from 'vue';
|
|
2
|
+
import { defineComponent, createVNode, watchEffect, inject, createVNode as _createVNode } from 'vue';
|
|
3
3
|
import * as aIcon from '@ant-design/icons-vue';
|
|
4
4
|
import { createFromIconfontCN } from '@ant-design/icons-vue';
|
|
5
|
-
import {
|
|
5
|
+
import { ComponentsEnum } from "../utils/constants";
|
|
6
6
|
var MyIcon = createFromIconfontCN({
|
|
7
7
|
scriptUrl: '//at.alicdn.com/t/c/font_3183515_i7oma42he.js' // 在 iconfont.cn 上生成
|
|
8
8
|
});
|
|
@@ -20,7 +20,7 @@ export default defineComponent({
|
|
|
20
20
|
setup: function setup(props, _ref) {
|
|
21
21
|
var emit = _ref.emit,
|
|
22
22
|
attrs = _ref.attrs;
|
|
23
|
-
var config =
|
|
23
|
+
var config = inject(ComponentsEnum.Icon, {});
|
|
24
24
|
watchEffect(function () {
|
|
25
25
|
var url = props.scriptUrl || config.scriptUrl;
|
|
26
26
|
if (url) {
|
|
@@ -9,7 +9,7 @@ import { omit } from "lodash-es";
|
|
|
9
9
|
import { buttonProps } from "ant-design-vue/es/button/button";
|
|
10
10
|
import { usePermission } from '@jetlinks-web/hooks';
|
|
11
11
|
import confirm from './confirm';
|
|
12
|
-
import { PermissionButtonConfig } from "
|
|
12
|
+
import { PermissionButtonConfig } from "../utils/constants";
|
|
13
13
|
var definedProps = _objectSpread({
|
|
14
14
|
tooltip: {
|
|
15
15
|
type: Object
|
|
@@ -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-1732609599500"), n = n(), _popScopeId(), n);
|
|
14
14
|
const _hoisted_1 = ["onClick"];
|
|
15
15
|
const __sfc_main__ = Object.assign({
|
|
16
16
|
name: 'JRadioButton',
|
|
@@ -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-
|
|
24
|
+
const _withScopeId = n => (_pushScopeId("data-v-1732609601407"), 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-
|
|
81
|
+
const _withScopeId = n => (_pushScopeId("data-v-1732609599557"), n = n(), _popScopeId(), n);
|
|
82
82
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
83
83
|
const _hoisted_2 = {
|
|
84
84
|
key: 0,
|
package/es/Search/Search.js
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
} */
|
|
44
44
|
import { defineComponent as _defineComponent } from 'vue';
|
|
45
45
|
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";
|
|
46
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
46
|
+
const _withScopeId = n => (_pushScopeId("data-v-1732609599834"), n = n(), _popScopeId(), n);
|
|
47
47
|
const _hoisted_1 = { class: "JSearch-content simple" };
|
|
48
48
|
const _hoisted_2 = { class: "JSearch-items" };
|
|
49
49
|
import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
|
|
@@ -52,7 +52,7 @@ import { reactive, ref, provide, watch, computed, inject } from 'vue';
|
|
|
52
52
|
import { termsParamsFormat } from './util';
|
|
53
53
|
import SearchItem from './Item.js';
|
|
54
54
|
import { optionsMapKey } from './setting';
|
|
55
|
-
import { SearchConfig } from '
|
|
55
|
+
import { SearchConfig } from '../utils/constants';
|
|
56
56
|
const __sfc_main__ = _defineComponent({
|
|
57
57
|
...{
|
|
58
58
|
name: 'JSearch',
|
|
@@ -25,6 +25,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
25
25
|
"valueFormat": "props",
|
|
26
26
|
"action": "props",
|
|
27
27
|
"headers": "props",
|
|
28
|
+
"disabled": "props",
|
|
28
29
|
"CSSProperties": "setup-const",
|
|
29
30
|
"PropType": "setup-const",
|
|
30
31
|
"ref": "setup-const",
|
|
@@ -84,6 +85,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
84
85
|
valueFormat: String,
|
|
85
86
|
action: [String, Promise],
|
|
86
87
|
headers: Object,
|
|
88
|
+
disabled: Boolean
|
|
87
89
|
},
|
|
88
90
|
emits: ["update:modelValue", "change"],
|
|
89
91
|
setup(__props, { emit: __emit }) {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var ComponentsEnum = {
|
|
2
|
+
Icon: Symbol('jetlinks-icon'),
|
|
3
|
+
Permission: Symbol('permission')
|
|
4
|
+
};
|
|
5
|
+
export var MAPConfig = Symbol('map_key');
|
|
6
|
+
export var SearchConfig = Symbol('search-config');
|
|
7
|
+
export var PermissionButtonConfig = Symbol('permission-button');
|
|
8
|
+
export var FullPageConfig = Symbol('full-page');
|
package/lib/AMap/Map.js
CHANGED
|
@@ -34,7 +34,7 @@ import { ref, computed, inject, } from 'vue';
|
|
|
34
34
|
import { initAMapApiLoader, ElAmap } from '@vuemap/vue-amap';
|
|
35
35
|
import { getAMapUiPromise } from '@jetlinks-web/utils';
|
|
36
36
|
import { MapProps } from './util';
|
|
37
|
-
import { MAPConfig } from "
|
|
37
|
+
import { MAPConfig } from "../utils/constants";
|
|
38
38
|
import Empty from '../Empty';
|
|
39
39
|
import '@vuemap/vue-amap/dist/style.css';
|
|
40
40
|
const __sfc_main__ = _defineComponent({
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.configProps = void 0;
|
|
8
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
9
|
var _context = require("ant-design-vue/es/config-provider/context");
|
|
10
|
-
require("@jetlinks-web/constants");
|
|
11
10
|
var configProps = exports.configProps = function configProps() {
|
|
12
11
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _context.configProviderProps)()), {}, {
|
|
13
12
|
IconConfig: {
|
|
@@ -21,6 +20,9 @@ var configProps = exports.configProps = function configProps() {
|
|
|
21
20
|
},
|
|
22
21
|
PermissionButtonConfig: {
|
|
23
22
|
type: Object
|
|
23
|
+
},
|
|
24
|
+
FullPageConfig: {
|
|
25
|
+
reduceHeight: Number
|
|
24
26
|
}
|
|
25
27
|
});
|
|
26
28
|
};
|
|
@@ -8,7 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _vue = require("vue");
|
|
9
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
10
|
var _context = require("./context");
|
|
11
|
-
var _constants = require("
|
|
11
|
+
var _constants = require("../utils/constants");
|
|
12
12
|
var _antDesignVue = require("ant-design-vue");
|
|
13
13
|
var _lodashEs = require("lodash");
|
|
14
14
|
var _Empty = _interopRequireDefault(require("../Empty"));
|
|
@@ -22,11 +22,12 @@ var JConfigProvider = (0, _vue.defineComponent)({
|
|
|
22
22
|
var _mapConfig = (0, _vue.reactive)(props.MapConfig || {});
|
|
23
23
|
var _searchConfig = (0, _vue.reactive)(props.SearchConfig || {});
|
|
24
24
|
var _PermissionButtonConfig = (0, _vue.reactive)(props.PermissionButtonConfig || {});
|
|
25
|
+
var _FullPageConfig = (0, _vue.reactive)(props.FullPageConfig || {});
|
|
25
26
|
(0, _vue.provide)(_constants.ComponentsEnum.Icon, _iconConfig); // 全局Icon 配置
|
|
26
27
|
(0, _vue.provide)(_constants.MAPConfig, _mapConfig); // 全局地图配置
|
|
27
28
|
(0, _vue.provide)(_constants.SearchConfig, _searchConfig); // 全局搜索配置
|
|
28
29
|
(0, _vue.provide)(_constants.PermissionButtonConfig, _PermissionButtonConfig); // 权限组件
|
|
29
|
-
|
|
30
|
+
(0, _vue.provide)(_constants.FullPageConfig, _FullPageConfig); // 权限组件
|
|
30
31
|
return function () {
|
|
31
32
|
return (0, _vue.h)(_antDesignVue.ConfigProvider, (0, _objectSpread2.default)({}, (0, _lodashEs.omit)(props, ['IconConfig', 'MapConfig', 'SearchConfig'])), {
|
|
32
33
|
default: slots.default,
|
|
@@ -48,7 +48,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
48
48
|
"onFieldChange": "setup-const"
|
|
49
49
|
} */
|
|
50
50
|
import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
51
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
51
|
+
const _withScopeId = n => (_pushScopeId("data-v-1732609591772"), n = n(), _popScopeId(), n);
|
|
52
52
|
const _hoisted_1 = { style: { "color": "#1d2129" } };
|
|
53
53
|
const _hoisted_2 = {
|
|
54
54
|
key: 0,
|
package/lib/FullPage/FullPage.js
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
/* Analyzed bindings: {
|
|
2
2
|
"ref": "setup-const",
|
|
3
|
+
"inject": "setup-const",
|
|
3
4
|
"useElementBounding": "setup-maybe-ref",
|
|
5
|
+
"FullPageConfig": "setup-maybe-ref",
|
|
6
|
+
"config": "setup-maybe-ref",
|
|
4
7
|
"fullPage": "setup-ref",
|
|
5
8
|
"y": "setup-maybe-ref"
|
|
6
9
|
} */
|
|
7
10
|
import { defineComponent as _defineComponent } from 'vue';
|
|
8
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";
|
|
9
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
12
|
+
const _withScopeId = n => (_pushScopeId("data-v-1732609590888"), n = n(), _popScopeId(), n);
|
|
10
13
|
const _hoisted_1 = { class: "full-page-warp-content" };
|
|
11
|
-
import { ref } from 'vue';
|
|
14
|
+
import { ref, inject } from 'vue';
|
|
12
15
|
import { useElementBounding } from '@vueuse/core';
|
|
16
|
+
import { FullPageConfig } from "../utils/constants";
|
|
13
17
|
const __sfc_main__ = _defineComponent({
|
|
14
18
|
...{
|
|
15
19
|
name: 'JFullPage'
|
|
16
20
|
},
|
|
17
21
|
setup(__props) {
|
|
22
|
+
const config = inject(FullPageConfig, { reduceHeight: 24 });
|
|
18
23
|
const fullPage = ref(null);
|
|
19
24
|
const { y } = useElementBounding(fullPage);
|
|
20
25
|
return (_ctx, _cache) => {
|
|
@@ -22,7 +27,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
22
27
|
class: "full-page-warp",
|
|
23
28
|
ref_key: "fullPage",
|
|
24
29
|
ref: fullPage,
|
|
25
|
-
style: _normalizeStyle({ minHeight: `calc(100vh - ${_unref(y) +
|
|
30
|
+
style: _normalizeStyle({ minHeight: `calc(100vh - ${_unref(y) + _unref(config).reduceHeight}px)` })
|
|
26
31
|
}, [
|
|
27
32
|
_createElementVNode("div", _hoisted_1, [
|
|
28
33
|
_renderSlot(_ctx.$slots, "default")
|
package/lib/Icon/icon.js
CHANGED
|
@@ -10,7 +10,7 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/obje
|
|
|
10
10
|
var _vue = require("vue");
|
|
11
11
|
var _iconsVue = _interopRequireWildcard(require("@ant-design/icons-vue/lib/icons"));
|
|
12
12
|
var aIcon = _iconsVue;
|
|
13
|
-
var
|
|
13
|
+
var _constants = require("../utils/constants");
|
|
14
14
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
15
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
16
|
var MyIcon = (0, _iconsVue.createFromIconfontCN)({
|
|
@@ -30,7 +30,7 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
30
30
|
setup: function setup(props, _ref) {
|
|
31
31
|
var emit = _ref.emit,
|
|
32
32
|
attrs = _ref.attrs;
|
|
33
|
-
var config = (0,
|
|
33
|
+
var config = (0, _vue.inject)(_constants.ComponentsEnum.Icon, {});
|
|
34
34
|
(0, _vue.watchEffect)(function () {
|
|
35
35
|
var url = props.scriptUrl || config.scriptUrl;
|
|
36
36
|
if (url) {
|
|
@@ -15,7 +15,7 @@ var _lodashEs = require("lodash");
|
|
|
15
15
|
var _button = require("ant-design-vue/es/button/button");
|
|
16
16
|
var _hooks = require("@jetlinks-web/hooks");
|
|
17
17
|
var _confirm = _interopRequireDefault(require("./confirm"));
|
|
18
|
-
var _constants = require("
|
|
18
|
+
var _constants = require("../utils/constants");
|
|
19
19
|
var _excluded = ["popConfirm", "tooltip", "hasPermission", "noPermissionTitle"];
|
|
20
20
|
var definedProps = (0, _objectSpread2.default)({
|
|
21
21
|
tooltip: {
|
|
@@ -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-1732609599519"), n = n(), _popScopeId(), n);
|
|
14
14
|
const _hoisted_1 = ["onClick"];
|
|
15
15
|
const __sfc_main__ = Object.assign({
|
|
16
16
|
name: 'JRadioButton',
|
|
@@ -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-
|
|
24
|
+
const _withScopeId = n => (_pushScopeId("data-v-1732609601388"), n = n(), _popScopeId(), n);
|
|
25
25
|
const _hoisted_1 = {
|
|
26
26
|
key: 0,
|
|
27
27
|
style: { "width": "240px" }
|
package/lib/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-
|
|
81
|
+
const _withScopeId = n => (_pushScopeId("data-v-1732609599715"), n = n(), _popScopeId(), n);
|
|
82
82
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
83
83
|
const _hoisted_2 = {
|
|
84
84
|
key: 0,
|
package/lib/Search/Search.js
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
} */
|
|
44
44
|
import { defineComponent as _defineComponent } from 'vue';
|
|
45
45
|
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";
|
|
46
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
46
|
+
const _withScopeId = n => (_pushScopeId("data-v-1732609599869"), n = n(), _popScopeId(), n);
|
|
47
47
|
const _hoisted_1 = { class: "JSearch-content simple" };
|
|
48
48
|
const _hoisted_2 = { class: "JSearch-items" };
|
|
49
49
|
import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
|
|
@@ -52,7 +52,7 @@ import { reactive, ref, provide, watch, computed, inject } from 'vue';
|
|
|
52
52
|
import { termsParamsFormat } from './util';
|
|
53
53
|
import SearchItem from './Item.js';
|
|
54
54
|
import { optionsMapKey } from './setting';
|
|
55
|
-
import { SearchConfig } from '
|
|
55
|
+
import { SearchConfig } from '../utils/constants';
|
|
56
56
|
const __sfc_main__ = _defineComponent({
|
|
57
57
|
...{
|
|
58
58
|
name: 'JSearch',
|
|
@@ -25,6 +25,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
25
25
|
"valueFormat": "props",
|
|
26
26
|
"action": "props",
|
|
27
27
|
"headers": "props",
|
|
28
|
+
"disabled": "props",
|
|
28
29
|
"CSSProperties": "setup-const",
|
|
29
30
|
"PropType": "setup-const",
|
|
30
31
|
"ref": "setup-const",
|
|
@@ -84,6 +85,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
84
85
|
valueFormat: String,
|
|
85
86
|
action: [String, Promise],
|
|
86
87
|
headers: Object,
|
|
88
|
+
disabled: Boolean
|
|
87
89
|
},
|
|
88
90
|
emits: ["update:modelValue", "change"],
|
|
89
91
|
setup(__props, { emit: __emit }) {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SearchConfig = exports.PermissionButtonConfig = exports.MAPConfig = exports.FullPageConfig = exports.ComponentsEnum = void 0;
|
|
7
|
+
var ComponentsEnum = exports.ComponentsEnum = {
|
|
8
|
+
Icon: Symbol('jetlinks-icon'),
|
|
9
|
+
Permission: Symbol('permission')
|
|
10
|
+
};
|
|
11
|
+
var MAPConfig = exports.MAPConfig = Symbol('map_key');
|
|
12
|
+
var SearchConfig = exports.SearchConfig = Symbol('search-config');
|
|
13
|
+
var PermissionButtonConfig = exports.PermissionButtonConfig = Symbol('permission-button');
|
|
14
|
+
var FullPageConfig = exports.FullPageConfig = Symbol('full-page');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetlinks-web/components",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -152,9 +152,9 @@
|
|
|
152
152
|
"webpack-dev-server": "^4.0.0",
|
|
153
153
|
"webpack-merge": "^5.0.0",
|
|
154
154
|
"webpackbar": "^5.0.2",
|
|
155
|
+
"@jetlinks-web/hooks": "^1.0.20",
|
|
155
156
|
"@jetlinks-web/constants": "^1.0.7",
|
|
156
|
-
"@jetlinks-web/utils": "^1.2.5"
|
|
157
|
-
"@jetlinks-web/hooks": "^1.0.17"
|
|
157
|
+
"@jetlinks-web/utils": "^1.2.5"
|
|
158
158
|
},
|
|
159
159
|
"publishConfig": {
|
|
160
160
|
"registry": "https://registry.npmjs.org/",
|