@jetlinks-web/components 2.0.4-1 → 2.0.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 +3 -0
- package/es/AMap/index.js +3 -0
- package/es/BadgeStatus/Badge.js +3 -0
- package/es/BadgeStatus/index.js +3 -0
- package/es/CardSelect/CardSelect.js +4 -2
- package/es/CardSelect/index.js +3 -0
- package/es/CheckButton/CheckButton.js +3 -0
- package/es/CheckButton/index.js +3 -0
- package/es/ConfigProvider/index.js +3 -0
- package/es/Echarts/Echarts.js +3 -0
- package/es/Echarts/index.js +3 -0
- package/es/Ellipsis/Ellipsis.js +23 -15
- package/es/Ellipsis/index.js +3 -0
- package/es/Empty/Empty.js +3 -0
- package/es/Empty/index.js +3 -0
- package/es/FullPage/FullPage.js +4 -1
- package/es/FullPage/index.js +3 -0
- package/es/Icon/index.js +3 -0
- package/es/MonacoEditor/Monaco.js +4 -2
- package/es/MonacoEditor/index.js +3 -0
- package/es/PermissionButton/index.js +4 -1
- package/es/ProLayout/index.js +3 -0
- package/es/ProTable/index.js +4 -1
- package/es/Scrollbar/index.js +3 -0
- package/es/Search/Advanced/SaveHistory.js +1 -1
- package/es/Search/Advanced/index.js +3 -0
- package/es/Search/Item.js +1 -1
- package/es/Search/Search.js +4 -1
- package/es/Search/index.js +3 -0
- package/es/ValueItem/ValueItem.js +3 -0
- package/es/ValueItem/index.js +3 -0
- package/es/components.js +17 -0
- package/es/index.js +13 -22
- package/es/style/index.css +287 -0
- package/es/style/index.less +6 -0
- package/lib/AMap/Map.js +3 -0
- package/lib/AMap/index.js +3 -0
- package/lib/BadgeStatus/Badge.js +3 -0
- package/lib/BadgeStatus/index.js +3 -0
- package/lib/CardSelect/CardSelect.js +4 -2
- package/lib/CardSelect/index.js +3 -0
- package/lib/CheckButton/CheckButton.js +3 -0
- package/lib/CheckButton/index.js +3 -0
- package/lib/ConfigProvider/index.js +3 -0
- package/lib/Echarts/Echarts.js +3 -0
- package/lib/Echarts/index.js +3 -0
- package/lib/Ellipsis/Ellipsis.js +23 -15
- package/lib/Ellipsis/index.js +3 -0
- package/lib/Empty/Empty.js +3 -0
- package/lib/Empty/index.js +3 -0
- package/lib/FullPage/FullPage.js +4 -1
- package/lib/FullPage/index.js +3 -0
- package/lib/Icon/index.js +3 -0
- package/lib/MonacoEditor/Monaco.js +4 -2
- package/lib/MonacoEditor/index.js +3 -0
- package/lib/PermissionButton/index.js +4 -1
- package/lib/ProLayout/index.js +3 -0
- package/lib/ProTable/index.js +4 -1
- package/lib/Scrollbar/index.js +3 -0
- package/lib/Search/Advanced/SaveHistory.js +1 -1
- package/lib/Search/Advanced/index.js +3 -0
- package/lib/Search/Item.js +1 -1
- package/lib/Search/Search.js +4 -1
- package/lib/Search/index.js +3 -0
- package/lib/ValueItem/ValueItem.js +3 -0
- package/lib/ValueItem/index.js +3 -0
- package/lib/components.js +134 -0
- package/lib/index.js +18 -138
- package/lib/style/index.css +287 -0
- package/lib/style/index.less +6 -0
- package/package.json +8 -10
package/es/AMap/Map.js
CHANGED
package/es/AMap/index.js
CHANGED
package/es/BadgeStatus/Badge.js
CHANGED
|
@@ -12,6 +12,9 @@ import { resolveComponent as _resolveComponent, openBlock as _openBlock, createB
|
|
|
12
12
|
import { computed } from 'vue';
|
|
13
13
|
import { getHexColor } from './color';
|
|
14
14
|
const __sfc_main__ = _defineComponent({
|
|
15
|
+
...{
|
|
16
|
+
name: 'JBadgeStatus'
|
|
17
|
+
},
|
|
15
18
|
props: {
|
|
16
19
|
text: {
|
|
17
20
|
type: String,
|
package/es/BadgeStatus/index.js
CHANGED
|
@@ -20,7 +20,9 @@ const _hoisted_2 = { class: "j-card-select-item-content" };
|
|
|
20
20
|
const _hoisted_3 = { class: "j-card-select-title" };
|
|
21
21
|
const _hoisted_4 = { class: "j-card-select-describe" };
|
|
22
22
|
import { has } from 'lodash-es';
|
|
23
|
-
const __sfc_main__ = {
|
|
23
|
+
const __sfc_main__ = Object.assign({
|
|
24
|
+
name: 'JCardSelect'
|
|
25
|
+
}, {
|
|
24
26
|
props: {
|
|
25
27
|
layout: {
|
|
26
28
|
type: String,
|
|
@@ -119,5 +121,5 @@ const __sfc_main__ = {
|
|
|
119
121
|
], 4 /* STYLE */));
|
|
120
122
|
};
|
|
121
123
|
}
|
|
122
|
-
};
|
|
124
|
+
});
|
|
123
125
|
export default __sfc_main__;
|
package/es/CardSelect/index.js
CHANGED
|
@@ -24,6 +24,9 @@ const _hoisted_1 = ["onClick"];
|
|
|
24
24
|
import { computed, ref, watch } from 'vue';
|
|
25
25
|
import { isArray } from '@jetlinks-web/utils';
|
|
26
26
|
const __sfc_main__ = _defineComponent({
|
|
27
|
+
...{
|
|
28
|
+
name: 'JCheckButton'
|
|
29
|
+
},
|
|
27
30
|
props: {
|
|
28
31
|
value: {
|
|
29
32
|
type: [String, Array],
|
package/es/CheckButton/index.js
CHANGED
package/es/Echarts/Echarts.js
CHANGED
|
@@ -16,6 +16,9 @@ import { normalizeStyle as _normalizeStyle, openBlock as _openBlock, createEleme
|
|
|
16
16
|
import { nextTick, ref, watch, } from 'vue';
|
|
17
17
|
import { useECharts } from '@jetlinks-web/hooks';
|
|
18
18
|
const __sfc_main__ = _defineComponent({
|
|
19
|
+
...{
|
|
20
|
+
name: 'JEcharts'
|
|
21
|
+
},
|
|
19
22
|
props: {
|
|
20
23
|
options: {
|
|
21
24
|
type: Object,
|
package/es/Echarts/index.js
CHANGED
package/es/Ellipsis/Ellipsis.js
CHANGED
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"syncCursorStyle": "setup-const",
|
|
26
26
|
"getTooltipDisabled": "setup-const"
|
|
27
27
|
} */
|
|
28
|
-
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass,
|
|
28
|
+
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, mergeProps as _mergeProps, unref as _unref, withCtx as _withCtx, createSlots as _createSlots, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
29
29
|
import { Tooltip } from 'ant-design-vue';
|
|
30
30
|
import { computed, mergeProps, ref, useAttrs } from 'vue';
|
|
31
31
|
const jEllipsis = 'j-ellipsis';
|
|
32
32
|
const jEllipsisCursorClass = 'j-ellipsis-cursor';
|
|
33
33
|
const jEllipsisLineClampClass = 'j-ellipsis-line-clamp';
|
|
34
34
|
const __sfc_main__ = Object.assign({
|
|
35
|
-
name: '
|
|
35
|
+
name: 'JEllipsis',
|
|
36
36
|
}, {
|
|
37
37
|
props: {
|
|
38
38
|
expandTrigger: {
|
|
@@ -154,17 +154,8 @@ const __sfc_main__ = Object.assign({
|
|
|
154
154
|
ref_key: "tooltipRef",
|
|
155
155
|
ref: tooltipRef,
|
|
156
156
|
placement: "top"
|
|
157
|
-
}, __props.tooltip, { visible: visible.value }), {
|
|
157
|
+
}, __props.tooltip, { visible: visible.value }), _createSlots({
|
|
158
158
|
default: _withCtx(() => [
|
|
159
|
-
(__props.tooltip)
|
|
160
|
-
? (_openBlock(), _createElementBlock("div", {
|
|
161
|
-
key: 0,
|
|
162
|
-
class: _normalizeClass([jEllipsisLineClampClass, jEllipsis, 'j-ellipsis-deep'])
|
|
163
|
-
}, [
|
|
164
|
-
_renderSlot(_ctx.$slots, "default"),
|
|
165
|
-
_renderSlot(_ctx.$slots, "tooltip")
|
|
166
|
-
], 2 /* CLASS */))
|
|
167
|
-
: _createCommentVNode("v-if", true),
|
|
168
159
|
_createElementVNode("span", _mergeProps({
|
|
169
160
|
ref_key: "triggerRef",
|
|
170
161
|
ref: triggerRef
|
|
@@ -174,10 +165,27 @@ const __sfc_main__ = Object.assign({
|
|
|
174
165
|
onMouseenter: _cache[2] || (_cache[2] = $event => (props.expandTrigger === 'click'
|
|
175
166
|
? getTooltipDisabled()
|
|
176
167
|
: showTooltip()))
|
|
177
|
-
}),
|
|
168
|
+
}), [
|
|
169
|
+
_renderSlot(_ctx.$slots, "default")
|
|
170
|
+
], 16 /* FULL_PROPS */)
|
|
178
171
|
]),
|
|
179
|
-
_:
|
|
180
|
-
},
|
|
172
|
+
_: 2 /* DYNAMIC */
|
|
173
|
+
}, [
|
|
174
|
+
(__props.tooltip)
|
|
175
|
+
? {
|
|
176
|
+
name: "title",
|
|
177
|
+
fn: _withCtx(() => [
|
|
178
|
+
_createElementVNode("div", {
|
|
179
|
+
class: _normalizeClass([jEllipsisLineClampClass, jEllipsis, 'j-ellipsis-deep'])
|
|
180
|
+
}, [
|
|
181
|
+
_renderSlot(_ctx.$slots, "default"),
|
|
182
|
+
_renderSlot(_ctx.$slots, "tooltip")
|
|
183
|
+
], 2 /* CLASS */)
|
|
184
|
+
]),
|
|
185
|
+
key: "0"
|
|
186
|
+
}
|
|
187
|
+
: undefined
|
|
188
|
+
]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["visible"]));
|
|
181
189
|
};
|
|
182
190
|
}
|
|
183
191
|
});
|
package/es/Ellipsis/index.js
CHANGED
package/es/Empty/Empty.js
CHANGED
package/es/Empty/index.js
CHANGED
package/es/FullPage/FullPage.js
CHANGED
|
@@ -6,11 +6,14 @@
|
|
|
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-
|
|
9
|
+
const _withScopeId = n => (_pushScopeId("data-v-1713250344966"), 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';
|
|
13
13
|
const __sfc_main__ = _defineComponent({
|
|
14
|
+
...{
|
|
15
|
+
name: 'JFullPage'
|
|
16
|
+
},
|
|
14
17
|
setup(__props) {
|
|
15
18
|
const fullPage = ref(null);
|
|
16
19
|
const { y } = useElementBounding(fullPage);
|
package/es/FullPage/index.js
CHANGED
package/es/Icon/index.js
CHANGED
|
@@ -51,7 +51,9 @@ import { openBlock as _openBlock, createElementBlock as _createElementBlock } fr
|
|
|
51
51
|
import { ref, onMounted, watch, onUnmounted, toRaw, nextTick } from 'vue';
|
|
52
52
|
import * as monaco from 'monaco-editor';
|
|
53
53
|
import { omit } from 'lodash-es';
|
|
54
|
-
const __sfc_main__ = {
|
|
54
|
+
const __sfc_main__ = Object.assign({
|
|
55
|
+
name: 'JMonacoEditor'
|
|
56
|
+
}, {
|
|
55
57
|
props: {
|
|
56
58
|
modelValue: [String, Number],
|
|
57
59
|
theme: { type: String, default: 'vs-dark' },
|
|
@@ -234,5 +236,5 @@ const __sfc_main__ = {
|
|
|
234
236
|
}, null, 512 /* NEED_PATCH */));
|
|
235
237
|
};
|
|
236
238
|
}
|
|
237
|
-
};
|
|
239
|
+
});
|
|
238
240
|
export default __sfc_main__;
|
package/es/MonacoEditor/index.js
CHANGED
|
@@ -27,7 +27,7 @@ var definedProps = _objectSpread({
|
|
|
27
27
|
}
|
|
28
28
|
}, omit(buttonProps(), 'icon'));
|
|
29
29
|
var PermissionButton = defineComponent({
|
|
30
|
-
name: '
|
|
30
|
+
name: 'JPermissionButton',
|
|
31
31
|
// @ts-ignore
|
|
32
32
|
slots: ['button', 'icon'],
|
|
33
33
|
props: definedProps,
|
|
@@ -114,4 +114,7 @@ var PermissionButton = defineComponent({
|
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
|
+
PermissionButton.install = function (app) {
|
|
118
|
+
app.component(PermissionButton.name, PermissionButton);
|
|
119
|
+
};
|
|
117
120
|
export default PermissionButton;
|
package/es/ProLayout/index.js
CHANGED
package/es/ProTable/index.js
CHANGED
|
@@ -111,7 +111,7 @@ var tableProps = function tableProps() {
|
|
|
111
111
|
});
|
|
112
112
|
};
|
|
113
113
|
var ProTable = defineComponent({
|
|
114
|
-
name: '
|
|
114
|
+
name: 'JProTable',
|
|
115
115
|
slots: ['headerTitle', 'card', 'rightExtraRender', 'paginationRender' // 分页
|
|
116
116
|
],
|
|
117
117
|
props: tableProps(),
|
|
@@ -408,4 +408,7 @@ var ProTable = defineComponent({
|
|
|
408
408
|
};
|
|
409
409
|
}
|
|
410
410
|
});
|
|
411
|
+
ProTable.install = function (app) {
|
|
412
|
+
app.component(ProTable.name, ProTable);
|
|
413
|
+
};
|
|
411
414
|
export default ProTable;
|
package/es/Scrollbar/index.js
CHANGED
|
@@ -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-1713250346464"), n = n(), _popScopeId(), n);
|
|
25
25
|
const _hoisted_1 = {
|
|
26
26
|
key: 0,
|
|
27
27
|
style: { "width": "240px" }
|
|
@@ -105,6 +105,9 @@ import { Select, Button, Form, FormItemRest } from 'ant-design-vue';
|
|
|
105
105
|
import { AIcon } from '../../../';
|
|
106
106
|
import { cloneDeep } from 'lodash-es';
|
|
107
107
|
const __sfc_main__ = _defineComponent({
|
|
108
|
+
...{
|
|
109
|
+
name: 'JAdvancedSearch',
|
|
110
|
+
},
|
|
108
111
|
props: {
|
|
109
112
|
columns: {
|
|
110
113
|
type: Array,
|
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-1713250345910"), 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
|
@@ -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-
|
|
39
|
+
const _withScopeId = n => (_pushScopeId("data-v-1713250346159"), 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';
|
|
@@ -46,6 +46,9 @@ import { termsParamsFormat } from './util';
|
|
|
46
46
|
import SearchItem from './Item.js';
|
|
47
47
|
import { optionsMapKey } from './setting';
|
|
48
48
|
const __sfc_main__ = _defineComponent({
|
|
49
|
+
...{
|
|
50
|
+
name: 'JSearch',
|
|
51
|
+
},
|
|
49
52
|
props: {
|
|
50
53
|
columns: {
|
|
51
54
|
type: Array,
|
package/es/Search/index.js
CHANGED
|
@@ -58,6 +58,9 @@ import { componentsType } from './util';
|
|
|
58
58
|
import { MonacoEditor } from '../../';
|
|
59
59
|
import { Select, DatePicker, TimePicker, Input, InputNumber, InputPassword, Upload, Modal, } from 'ant-design-vue';
|
|
60
60
|
const __sfc_main__ = _defineComponent({
|
|
61
|
+
...{
|
|
62
|
+
name: 'JValueItem',
|
|
63
|
+
},
|
|
61
64
|
props: {
|
|
62
65
|
// 组件双向绑定的值
|
|
63
66
|
modelValue: {
|
package/es/ValueItem/index.js
CHANGED
package/es/components.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import './AMap';
|
|
2
|
+
export { default as BadgeStatus } from './BadgeStatus';
|
|
3
|
+
export { default as CardSelect } from './CardSelect';
|
|
4
|
+
export { default as CheckButton } from './CheckButton';
|
|
5
|
+
export { default as ConfigProvider } from './ConfigProvider';
|
|
6
|
+
export { default as Echarts } from './Echarts';
|
|
7
|
+
export { default as Ellipsis } from './Ellipsis';
|
|
8
|
+
export { default as Empty } from './Empty';
|
|
9
|
+
export { default as FullPage } from './FullPage';
|
|
10
|
+
export { default as AIcon } from './Icon';
|
|
11
|
+
export { default as MonacoEditor } from './MonacoEditor';
|
|
12
|
+
export { default as PermissionButton } from './PermissionButton';
|
|
13
|
+
export { default as ProLayout, PageContainer } from './ProLayout';
|
|
14
|
+
export { default as ProTable } from './ProTable';
|
|
15
|
+
export { default as Scrollbar } from './Scrollbar';
|
|
16
|
+
export { default as Search, AdvancedSearch } from './Search';
|
|
17
|
+
export { default as ValueItem } from './ValueItem';
|
package/es/index.js
CHANGED
|
@@ -1,24 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import ProLayout, { PageContainer } from './ProLayout';
|
|
14
|
-
import ProTable from './ProTable';
|
|
15
|
-
import Scrollbar from './Scrollbar';
|
|
16
|
-
import Search, { AdvancedSearch } from './Search';
|
|
17
|
-
import ValueItem from './ValueItem';
|
|
18
|
-
export * from './style';
|
|
19
|
-
export { BadgeStatus, CardSelect, CheckButton, Echarts, Ellipsis, Empty, FullPage, AIcon, MonacoEditor, PermissionButton, ValueItem, ProTable, Scrollbar, Search, AdvancedSearch, ConfigProvider };
|
|
1
|
+
/*eslint import/namespace: ['error', { allowComputed: true }]*/
|
|
2
|
+
import * as components from './components';
|
|
3
|
+
export * from './components';
|
|
4
|
+
export var install = function install(app) {
|
|
5
|
+
Object.keys(components).forEach(function (key) {
|
|
6
|
+
var component = components[key];
|
|
7
|
+
if (component.install) {
|
|
8
|
+
app.use(component);
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
return app;
|
|
12
|
+
};
|
|
20
13
|
export default {
|
|
21
|
-
install:
|
|
22
|
-
app.component('JAMap', InitAMap).component('JBadgeStatus', BadgeStatus).component('JCardSelect', CardSelect).component('JCheckButton', CheckButton).component('JConfigProvider', ConfigProvider).component('JEcharts', Echarts).component('JEllipsis', Ellipsis).component('JEmpty', Empty).component('JFullPage', FullPage).component('AIcon', AIcon).component('JMonacoEditor', MonacoEditor).component('JPermissionButton', PermissionButton).component('JProLayout', ProLayout).component('JPageContainer', PageContainer).component('JProTable', ProTable).component('JScrollbar', Scrollbar).component('JSearch', Search).component('JAdvancedSearch', AdvancedSearch).component('JValueItem', ValueItem);
|
|
23
|
-
}
|
|
14
|
+
install: install
|
|
24
15
|
};
|