@jetlinks-web/components 3.0.1-rc → 3.0.1
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/AutoComplete/AutoComplete.js +13 -9
- package/es/BadgeStatus/Badge.js +1 -2
- package/es/BadgeStatus/color.js +3 -3
- package/es/CardSelect/CardSelect.js +23 -13
- package/es/CardSelect/style/index.js +25 -1
- package/es/CheckButton/CheckButton.js +12 -4
- package/es/CheckButton/style/index.js +41 -1
- package/es/DragModal/DragModal.js +14 -8
- package/es/DragModal/style/index.js +64 -1
- package/es/EditTable/Body.js +10 -3
- package/es/EditTable/EditTable.js +13 -7
- package/es/EditTable/FormItem.js +18 -19
- package/es/EditTable/Header.js +16 -6
- package/es/EditTable/components/ContextMenu/Menu.js +11 -5
- package/es/EditTable/components/Search/search.js +1 -2
- package/es/EditTable/components/Search/sort.js +1 -3
- package/es/EditTable/group.js +23 -18
- package/es/EditTable/hooks/useValidate.js +1 -1
- package/es/EditTable/style/body.js +53 -0
- package/es/EditTable/style/form.js +24 -0
- package/es/EditTable/style/group.js +25 -0
- package/es/EditTable/style/header.js +58 -0
- package/es/EditTable/style/index.js +42 -1
- package/es/EditTable/style/menu.js +27 -0
- package/es/EditTable/style/table.js +46 -0
- package/es/EditTable/utils.js +30 -3
- package/es/Ellipsis/Ellipsis.js +10 -2
- package/es/Ellipsis/style/index.js +24 -1
- package/es/FullPage/FullPage.js +1 -2
- package/es/LocaleProvider/index.js +1 -2
- package/es/PermissionButton/index.js +6 -7
- package/es/ProLayout/Basic/BasicLayout.js +45 -41
- package/es/ProLayout/Basic/BasicLayoutStyle.js +39 -0
- package/es/ProLayout/Basic/Header.js +3 -7
- package/es/ProLayout/Basic/HeaderStyle.js +10 -0
- package/es/ProLayout/PageContainer/index.js +21 -17
- package/es/ProLayout/PageContainer/style.js +46 -0
- package/es/ProLayout/SiderMenu/BaseMenu.js +18 -42
- package/es/ProLayout/SiderMenu/SiderMenu.js +24 -36
- package/es/ProLayout/SiderMenu/style.js +166 -0
- package/es/ProLayout/TopHeader/index.js +13 -12
- package/es/ProLayout/TopHeader/style.js +126 -0
- package/es/ProLayout/style/index.js +7 -1
- package/es/ProLayout/util.js +5 -5
- package/es/ProTable/Alert.js +12 -4
- package/es/ProTable/Content.js +108 -28
- package/es/ProTable/Header.js +21 -11
- package/es/ProTable/Pagination.js +12 -4
- package/es/ProTable/ProTable.js +46 -34
- package/es/ProTable/hooks/index.js +2 -0
- package/es/ProTable/hooks/useTableInject.js +5 -0
- package/es/ProTable/hooks/useTableSelection.js +95 -0
- package/es/ProTable/setting.js +1 -1
- package/es/ProTable/style/index.js +109 -1
- package/es/RadioButton/RadioButton.js +10 -4
- package/es/RadioButton/style/index.js +23 -1
- package/es/Scrollbar/Scrollbar.js +10 -3
- package/es/Scrollbar/Thumb.js +36 -25
- package/es/Scrollbar/style/index.js +63 -1
- package/es/Search/Advanced/History.js +23 -16
- package/es/Search/Advanced/SaveHistory.js +1 -2
- package/es/Search/Advanced/index.js +212 -292
- package/es/Search/Item.js +175 -415
- package/es/Search/Search.js +78 -172
- package/es/Search/hooks/index.js +108 -1
- package/es/Search/hooks/useRouteQuery.js +57 -0
- package/es/Search/setting.js +132 -14
- package/es/Search/style/index.js +4 -2
- package/es/Search/style/item.js +28 -0
- package/es/Search/style/search.js +133 -0
- package/es/Search/util.js +116 -124
- package/es/Skeleton/components/DashBoardCard.js +19 -12
- package/es/Skeleton/components/DashBoardChart.js +48 -45
- package/es/Skeleton/components/Detail.js +27 -21
- package/es/Skeleton/components/Drawer.js +23 -14
- package/es/Skeleton/components/Item.js +9 -1
- package/es/Skeleton/components/List.js +0 -1
- package/es/Skeleton/components/ListCard.js +20 -13
- package/es/Skeleton/components/ListCardItem.js +12 -13
- package/es/Skeleton/components/ListTable.js +19 -10
- package/es/Skeleton/components/Page.js +0 -1
- package/es/Skeleton/components/Tree.js +21 -14
- package/es/Skeleton/skeleton.js +17 -8
- package/es/Skeleton/style/index.js +132 -1
- package/es/Title/style/index.js +29 -1
- package/es/Title/title.js +13 -5
- package/es/ValueItem/ValueItem.js +44 -39
- package/es/components.js +1 -5
- package/es/locale/en-US.js +3 -7
- package/es/locale/zh-CN.js +3 -7
- package/es/style/index.js +0 -3
- package/es/style/styleRegister.js +21 -0
- package/es/style/variable.js +4 -0
- package/es/style.js +0 -13
- package/lib/AutoComplete/AutoComplete.js +13 -9
- package/lib/BadgeStatus/Badge.js +1 -2
- package/lib/BadgeStatus/color.js +3 -3
- package/lib/CardSelect/CardSelect.js +23 -13
- package/lib/CardSelect/style/index.js +30 -1
- package/lib/CheckButton/CheckButton.js +12 -4
- package/lib/CheckButton/style/index.js +46 -1
- package/lib/DragModal/DragModal.js +14 -8
- package/lib/DragModal/style/index.js +69 -1
- package/lib/EditTable/Body.js +10 -3
- package/lib/EditTable/EditTable.js +13 -7
- package/lib/EditTable/FormItem.js +18 -19
- package/lib/EditTable/Header.js +16 -6
- package/lib/EditTable/components/ContextMenu/Menu.js +11 -5
- package/lib/EditTable/components/Search/search.js +1 -2
- package/lib/EditTable/components/Search/sort.js +1 -3
- package/lib/EditTable/group.js +23 -18
- package/lib/EditTable/hooks/useValidate.js +1 -1
- package/lib/EditTable/style/body.js +60 -0
- package/lib/EditTable/style/form.js +31 -0
- package/lib/EditTable/style/group.js +32 -0
- package/lib/EditTable/style/header.js +65 -0
- package/lib/EditTable/style/index.js +47 -1
- package/lib/EditTable/style/menu.js +33 -0
- package/lib/EditTable/style/table.js +52 -0
- package/lib/EditTable/utils.js +31 -3
- package/lib/Ellipsis/Ellipsis.js +10 -2
- package/lib/Ellipsis/style/index.js +29 -1
- package/lib/FullPage/FullPage.js +1 -2
- package/lib/Icon/icon.js +1 -2
- package/lib/LocaleProvider/index.js +1 -2
- package/lib/PermissionButton/index.js +6 -7
- package/lib/ProLayout/Basic/BasicLayout.js +45 -42
- package/lib/ProLayout/Basic/BasicLayoutStyle.js +46 -0
- package/lib/ProLayout/Basic/Header.js +2 -6
- package/lib/ProLayout/Basic/HeaderStyle.js +17 -0
- package/lib/ProLayout/PageContainer/index.js +19 -15
- package/lib/ProLayout/PageContainer/style.js +53 -0
- package/lib/ProLayout/SiderMenu/BaseMenu.js +19 -42
- package/lib/ProLayout/SiderMenu/SiderMenu.js +24 -37
- package/lib/ProLayout/SiderMenu/style.js +173 -0
- package/lib/ProLayout/TopHeader/index.js +14 -12
- package/lib/ProLayout/TopHeader/style.js +133 -0
- package/lib/ProLayout/style/index.js +12 -1
- package/lib/ProLayout/util.js +5 -5
- package/lib/ProTable/Alert.js +12 -4
- package/lib/ProTable/Content.js +108 -28
- package/lib/ProTable/Header.js +21 -11
- package/lib/ProTable/Pagination.js +12 -4
- package/lib/ProTable/ProTable.js +46 -34
- package/lib/ProTable/hooks/index.js +27 -0
- package/lib/ProTable/hooks/useTableInject.js +11 -0
- package/lib/ProTable/hooks/useTableSelection.js +102 -0
- package/lib/ProTable/setting.js +1 -1
- package/lib/ProTable/style/index.js +114 -1
- package/lib/RadioButton/RadioButton.js +10 -4
- package/lib/RadioButton/style/index.js +28 -1
- package/lib/Scrollbar/Scrollbar.js +10 -3
- package/lib/Scrollbar/Thumb.js +36 -25
- package/lib/Scrollbar/style/index.js +68 -1
- package/lib/Search/Advanced/History.js +23 -16
- package/lib/Search/Advanced/SaveHistory.js +1 -2
- package/lib/Search/Advanced/index.js +212 -292
- package/lib/Search/Item.js +175 -415
- package/lib/Search/Search.js +78 -172
- package/lib/Search/hooks/index.js +130 -1
- package/lib/Search/hooks/useRouteQuery.js +64 -0
- package/lib/Search/setting.js +133 -15
- package/lib/Search/style/index.js +9 -2
- package/lib/Search/style/item.js +35 -0
- package/lib/Search/style/search.js +140 -0
- package/lib/Search/util.js +116 -124
- package/lib/Skeleton/components/DashBoardCard.js +19 -12
- package/lib/Skeleton/components/DashBoardChart.js +48 -45
- package/lib/Skeleton/components/Detail.js +27 -21
- package/lib/Skeleton/components/Drawer.js +23 -14
- package/lib/Skeleton/components/Item.js +9 -1
- package/lib/Skeleton/components/List.js +0 -1
- package/lib/Skeleton/components/ListCard.js +20 -13
- package/lib/Skeleton/components/ListCardItem.js +12 -13
- package/lib/Skeleton/components/ListTable.js +19 -10
- package/lib/Skeleton/components/Page.js +0 -1
- package/lib/Skeleton/components/Tree.js +21 -14
- package/lib/Skeleton/skeleton.js +17 -8
- package/lib/Skeleton/style/index.js +137 -1
- package/lib/Title/style/index.js +34 -1
- package/lib/Title/title.js +13 -5
- package/lib/ValueItem/ValueItem.js +44 -39
- package/lib/components.js +1 -30
- package/lib/index.js +1 -2
- package/lib/locale/en-US.js +3 -7
- package/lib/locale/zh-CN.js +3 -7
- package/lib/style/components.less +0 -1
- package/lib/style/index.js +1 -4
- package/lib/style/styleRegister.js +28 -0
- package/lib/style/variable.js +10 -0
- package/lib/style.js +1 -15
- package/package.json +170 -173
- package/es/AMap/Map.js +0 -133
- package/es/AMap/index.js +0 -5
- package/es/AMap/util.js +0 -56
- package/es/CardSelect/style/index.css +0 -24
- package/es/CardSelect/style/index.less +0 -26
- package/es/CheckButton/style/index.css +0 -37
- package/es/CheckButton/style/index.less +0 -40
- package/es/DragModal/style/index.css +0 -82
- package/es/DragModal/style/index.less +0 -97
- package/es/Echarts/Echarts.js +0 -48
- package/es/Echarts/index.js +0 -5
- package/es/EditTable/style/body.less +0 -66
- package/es/EditTable/style/form.less +0 -33
- package/es/EditTable/style/group.less +0 -32
- package/es/EditTable/style/header.less +0 -77
- package/es/EditTable/style/index.css +0 -267
- package/es/EditTable/style/index.less +0 -41
- package/es/EditTable/style/menu.less +0 -25
- package/es/EditTable/style/table.less +0 -47
- package/es/Ellipsis/style/index.css +0 -17
- package/es/Ellipsis/style/index.less +0 -20
- package/es/FlameGraph/FlameGraph.js +0 -136
- package/es/FlameGraph/index.js +0 -5
- package/es/FlameGraph/style/index.css +0 -43
- package/es/FlameGraph/style/index.js +0 -1
- package/es/FlameGraph/style/index.less +0 -52
- package/es/ProLayout/Basic/BasicLayout.less +0 -66
- package/es/ProLayout/Basic/Header.less +0 -8
- package/es/ProLayout/PageContainer/index.less +0 -103
- package/es/ProLayout/SiderMenu/index.less +0 -231
- package/es/ProLayout/TopHeader/index.less +0 -174
- package/es/ProLayout/style/default.less +0 -4
- package/es/ProLayout/style/style.less +0 -7
- package/es/ProTable/style/ProTable.less +0 -139
- package/es/RadioButton/style/index.css +0 -20
- package/es/RadioButton/style/index.less +0 -19
- package/es/Scrollbar/style/index.css +0 -65
- package/es/Scrollbar/style/index.less +0 -83
- package/es/Search/style/Item.less +0 -33
- package/es/Search/style/Search.less +0 -179
- package/es/Skeleton/style/Skeleton.less +0 -166
- package/es/Title/style/index.css +0 -27
- package/es/Title/style/index.less +0 -27
- package/es/style/index.css +0 -5375
- package/es/style/index.less +0 -14
- package/es/style/variable.css +0 -4
- package/es/style/variable.less +0 -4
- package/lib/AMap/Map.js +0 -133
- package/lib/AMap/index.js +0 -12
- package/lib/AMap/util.js +0 -62
- package/lib/CardSelect/style/index.css +0 -24
- package/lib/CardSelect/style/index.less +0 -26
- package/lib/CheckButton/style/index.css +0 -37
- package/lib/CheckButton/style/index.less +0 -40
- package/lib/DragModal/style/index.css +0 -82
- package/lib/DragModal/style/index.less +0 -97
- package/lib/Echarts/Echarts.js +0 -48
- package/lib/Echarts/index.js +0 -12
- package/lib/EditTable/style/body.less +0 -66
- package/lib/EditTable/style/form.less +0 -33
- package/lib/EditTable/style/group.less +0 -32
- package/lib/EditTable/style/header.less +0 -77
- package/lib/EditTable/style/index.css +0 -267
- package/lib/EditTable/style/index.less +0 -41
- package/lib/EditTable/style/menu.less +0 -25
- package/lib/EditTable/style/table.less +0 -47
- package/lib/Ellipsis/style/index.css +0 -17
- package/lib/Ellipsis/style/index.less +0 -20
- package/lib/FlameGraph/FlameGraph.js +0 -136
- package/lib/FlameGraph/index.js +0 -12
- package/lib/FlameGraph/style/index.css +0 -43
- package/lib/FlameGraph/style/index.js +0 -3
- package/lib/FlameGraph/style/index.less +0 -52
- package/lib/ProLayout/Basic/BasicLayout.less +0 -66
- package/lib/ProLayout/Basic/Header.less +0 -8
- package/lib/ProLayout/PageContainer/index.less +0 -103
- package/lib/ProLayout/SiderMenu/index.less +0 -231
- package/lib/ProLayout/TopHeader/index.less +0 -174
- package/lib/ProLayout/style/default.less +0 -4
- package/lib/ProLayout/style/style.less +0 -7
- package/lib/ProTable/style/ProTable.less +0 -139
- package/lib/RadioButton/style/index.css +0 -20
- package/lib/RadioButton/style/index.less +0 -19
- package/lib/Scrollbar/style/index.css +0 -65
- package/lib/Scrollbar/style/index.less +0 -83
- package/lib/Search/style/Item.less +0 -33
- package/lib/Search/style/Search.less +0 -179
- package/lib/Skeleton/style/Skeleton.less +0 -166
- package/lib/Title/style/index.css +0 -27
- package/lib/Title/style/index.less +0 -27
- package/lib/style/index.css +0 -5375
- package/lib/style/index.less +0 -14
- package/lib/style/variable.css +0 -4
- package/lib/style/variable.less +0 -4
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
|
+
var _internal = require("ant-design-vue/es/theme/internal");
|
|
11
|
+
var _antDesignVue = require("ant-design-vue");
|
|
12
|
+
var _variable = _interopRequireDefault(require("./variable"));
|
|
13
|
+
var genCompoentStyle = function genCompoentStyle(styleFn) {
|
|
14
|
+
return (0, _internal.genComponentStyleHook)('jetlinks-components', function (_token) {
|
|
15
|
+
var _theme$useToken = _antDesignVue.theme.useToken(),
|
|
16
|
+
token = _theme$useToken.token,
|
|
17
|
+
hashId = _theme$useToken.hashId;
|
|
18
|
+
var componentToken = {
|
|
19
|
+
token: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _token), _variable.default),
|
|
20
|
+
hashId: hashId.value,
|
|
21
|
+
componentCls: ".".concat(_token.prefixCls)
|
|
22
|
+
};
|
|
23
|
+
return (0, _toConsumableArray2.default)(styleFn.map(function (item) {
|
|
24
|
+
return item(componentToken);
|
|
25
|
+
}));
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
var _default = exports.default = genCompoentStyle;
|
package/lib/style.js
CHANGED
|
@@ -1,15 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("./Ellipsis/style");
|
|
4
|
-
require("./CheckButton/style");
|
|
5
|
-
require("./ProLayout/style");
|
|
6
|
-
require("./ProTable/style");
|
|
7
|
-
require("./Search/style");
|
|
8
|
-
require("./CardSelect/style");
|
|
9
|
-
require("./DragModal/style");
|
|
10
|
-
require("./EditTable/style");
|
|
11
|
-
require("./Scrollbar/style");
|
|
12
|
-
require("./Title/style");
|
|
13
|
-
require("./RadioButton/style");
|
|
14
|
-
require("./FlameGraph/style");
|
|
15
|
-
require("./Skeketon/style");
|
|
1
|
+
"use strict";
|
package/package.json
CHANGED
|
@@ -1,173 +1,170 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@jetlinks-web/components",
|
|
3
|
-
"version": "3.0.1
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "lib/index.js",
|
|
6
|
-
"module": "es/index.js",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"jetlinks",
|
|
13
|
-
"jetlinks-web"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
],
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"markdown-it": "^
|
|
36
|
-
"markdown-it-
|
|
37
|
-
"markdown-it-
|
|
38
|
-
"markdown-it-
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"@babel/
|
|
54
|
-
"@babel/
|
|
55
|
-
"@babel/plugin-
|
|
56
|
-
"@babel/plugin-
|
|
57
|
-
"@babel/
|
|
58
|
-
"@babel/
|
|
59
|
-
"@babel/
|
|
60
|
-
"@babel/
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@
|
|
66
|
-
"@
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"@
|
|
73
|
-
"@
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
"access": "public"
|
|
172
|
-
}
|
|
173
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@jetlinks-web/components",
|
|
3
|
+
"version": "3.0.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"module": "es/index.js",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"jetlinks",
|
|
9
|
+
"jetlinks-web",
|
|
10
|
+
"components",
|
|
11
|
+
"jetlinks-web/components",
|
|
12
|
+
"@jetlinks-web",
|
|
13
|
+
"@jetlinks-web/components"
|
|
14
|
+
],
|
|
15
|
+
"files": [
|
|
16
|
+
"lib",
|
|
17
|
+
"es"
|
|
18
|
+
],
|
|
19
|
+
"private": false,
|
|
20
|
+
"author": "",
|
|
21
|
+
"license": "ISC",
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@vueuse/core": "^10.2.1",
|
|
24
|
+
"@vueuse/router": "^12.1.0",
|
|
25
|
+
"async-validator": "^4.2.5",
|
|
26
|
+
"markdown-it": "^14.1.0",
|
|
27
|
+
"markdown-it-abbr": "^2.0.0",
|
|
28
|
+
"markdown-it-anchor": "^9.1.0",
|
|
29
|
+
"markdown-it-deflist": "^3.0.0",
|
|
30
|
+
"markdown-it-emoji": "^3.0.0",
|
|
31
|
+
"markdown-it-footnote": "^4.0.0",
|
|
32
|
+
"markdown-it-highlightjs": "^4.1.0",
|
|
33
|
+
"markdown-it-ins": "^4.0.0",
|
|
34
|
+
"markdown-it-mark": "^4.0.0",
|
|
35
|
+
"markdown-it-sub": "^2.0.0",
|
|
36
|
+
"markdown-it-sup": "^2.0.0",
|
|
37
|
+
"markdown-it-task-lists": "^2.1.1",
|
|
38
|
+
"markdown-it-toc-done-right": "^4.2.0",
|
|
39
|
+
"resize-observer-polyfill": "^1.5.1"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@ant-design/icons-vue": "^7.0.1",
|
|
43
|
+
"@babel/cli": "^7.8.4",
|
|
44
|
+
"@babel/core": "^7.10.5",
|
|
45
|
+
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
|
46
|
+
"@babel/plugin-proposal-export-default-from": "^7.8.3",
|
|
47
|
+
"@babel/plugin-proposal-export-namespace-from": "^7.12.1",
|
|
48
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.9.6",
|
|
49
|
+
"@babel/plugin-proposal-optional-chaining": "^7.10.1",
|
|
50
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
51
|
+
"@babel/plugin-transform-member-expression-literals": "^7.8.3",
|
|
52
|
+
"@babel/plugin-transform-object-assign": "^7.8.3",
|
|
53
|
+
"@babel/plugin-transform-property-literals": "^7.8.3",
|
|
54
|
+
"@babel/plugin-transform-runtime": "^7.10.5",
|
|
55
|
+
"@babel/plugin-transform-template-literals": "^7.8.3",
|
|
56
|
+
"@babel/plugin-transform-typescript": "^7.12.1",
|
|
57
|
+
"@babel/polyfill": "^7.8.7",
|
|
58
|
+
"@babel/preset-env": "^7.9.6",
|
|
59
|
+
"@babel/preset-typescript": "^7.10.4",
|
|
60
|
+
"@babel/runtime": "^7.24.4",
|
|
61
|
+
"@commitlint/cli": "^17.4.2",
|
|
62
|
+
"@commitlint/config-conventional": "^17.4.2",
|
|
63
|
+
"@rollup/plugin-commonjs": "^22.0.1",
|
|
64
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
65
|
+
"@types/eslint": "^8.21.0",
|
|
66
|
+
"@types/lodash-es": "^4.17.6",
|
|
67
|
+
"@types/node": "^18.13.0",
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^5.50.0",
|
|
69
|
+
"@typescript-eslint/parser": "^5.50.0",
|
|
70
|
+
"@vitejs/plugin-vue": "^2.3.3",
|
|
71
|
+
"@vitejs/plugin-vue-jsx": "^1.3.10",
|
|
72
|
+
"@vue/babel-plugin-jsx": "^1.0.0",
|
|
73
|
+
"@vue/compiler-sfc": "^3.4.21",
|
|
74
|
+
"ant-design-vue": "^4.0.0",
|
|
75
|
+
"autoprefixer": "^10.2.0",
|
|
76
|
+
"babel-eslint": "^10.0.1",
|
|
77
|
+
"babel-loader": "^8.0.0",
|
|
78
|
+
"babel-plugin-import": "^1.1.1",
|
|
79
|
+
"babel-plugin-inline-import-data-uri": "^1.0.1",
|
|
80
|
+
"babel-plugin-istanbul": "^6.0.0",
|
|
81
|
+
"babel-plugin-transform-require-context": "^0.1.1",
|
|
82
|
+
"case-sensitive-paths-webpack-plugin": "^2.1.2",
|
|
83
|
+
"child_process": "^1.0.2",
|
|
84
|
+
"colorful": "^2.1.0",
|
|
85
|
+
"commander": "^6.1.0",
|
|
86
|
+
"commitlint": "^17.4.2",
|
|
87
|
+
"compute-scroll-into-view": "^3.0.0",
|
|
88
|
+
"css-loader": "^6.7.3",
|
|
89
|
+
"css-minimizer-webpack-plugin": "^3.0.0",
|
|
90
|
+
"dayjs": "^1.11.8",
|
|
91
|
+
"duplicate-package-checker-webpack-plugin": "^3.0.0",
|
|
92
|
+
"esbuild": "~0.12.29",
|
|
93
|
+
"esbuild-loader": "^2.18.0",
|
|
94
|
+
"escape-html": "^1.0.3",
|
|
95
|
+
"eslint": "^8.33.0",
|
|
96
|
+
"eslint-config-prettier": "^8.0.0",
|
|
97
|
+
"eslint-plugin-html": "^6.0.0",
|
|
98
|
+
"eslint-plugin-import": "^2.24.2",
|
|
99
|
+
"eslint-plugin-markdown": "^2.0.0",
|
|
100
|
+
"eslint-plugin-vue": "^8.1.1",
|
|
101
|
+
"fast-glob": "^3.2.12",
|
|
102
|
+
"glob": "^11.0.3",
|
|
103
|
+
"globby": "^11.1.0",
|
|
104
|
+
"gray-matter": "^4.0.3",
|
|
105
|
+
"gulp": "^4.0.2",
|
|
106
|
+
"gulp-babel": "^8.0.0",
|
|
107
|
+
"gulp-strip-code": "^0.1.4",
|
|
108
|
+
"gulp-typescript": "^6.0.0-alpha.1",
|
|
109
|
+
"is-windows": "^1.0.2",
|
|
110
|
+
"json5": "^2.2.3",
|
|
111
|
+
"less": "^4.1.3",
|
|
112
|
+
"less-loader": "^11.1.0",
|
|
113
|
+
"less-plugin-npm-import": "^2.1.0",
|
|
114
|
+
"less-vars-to-js": "^1.3.0",
|
|
115
|
+
"lint-staged": "^13.1.0",
|
|
116
|
+
"lru-cache": "^7.14.1",
|
|
117
|
+
"marked": "0.3.18",
|
|
118
|
+
"merge2": "^1.4.1",
|
|
119
|
+
"mini-css-extract-plugin": "^2.4.5",
|
|
120
|
+
"minimist": "^1.2.0",
|
|
121
|
+
"mkdirp": "^0.5.1",
|
|
122
|
+
"object-assign": "^4.1.1",
|
|
123
|
+
"postcss": "^8.2.12",
|
|
124
|
+
"postcss-loader": "^6.0.0",
|
|
125
|
+
"prettier": "^2.8.3",
|
|
126
|
+
"prismjs": "^1.29.0",
|
|
127
|
+
"remove-files-webpack-plugin": "^1.5.0",
|
|
128
|
+
"rollup-plugin-esbuild": "^4.9.1",
|
|
129
|
+
"rollup-plugin-typescript2": "^0.34.1",
|
|
130
|
+
"rollup-plugin-vue": "^6.0.0",
|
|
131
|
+
"slash": "^3.0.0",
|
|
132
|
+
"string-replace-loader": "^3.1.0",
|
|
133
|
+
"style-loader": "^3.3.1",
|
|
134
|
+
"sucrase": "^3.29.0",
|
|
135
|
+
"terser-webpack-plugin": "^5.1.1",
|
|
136
|
+
"through2": "^4.0.2",
|
|
137
|
+
"ts-loader": "^9.1.0",
|
|
138
|
+
"ts-morph": "^17.0.1",
|
|
139
|
+
"typescript": "^4.9.3",
|
|
140
|
+
"unplugin-vue-macros": "^0.11.2",
|
|
141
|
+
"unplugin-vue-setup-extend": "^0.3.5",
|
|
142
|
+
"url": "^0.11.0",
|
|
143
|
+
"url-loader": "^3.0.0",
|
|
144
|
+
"vite": "^4.0.0",
|
|
145
|
+
"vite-plugin-vue-setup-extend": "^0.4.0",
|
|
146
|
+
"vue": "^3.2.45",
|
|
147
|
+
"vue-loader": "^17.4.2",
|
|
148
|
+
"vue-eslint-parser": "^9.1.0",
|
|
149
|
+
"vue-router": "4",
|
|
150
|
+
"vue-tsc": "^1.0.11",
|
|
151
|
+
"webpack": "^5.75.0",
|
|
152
|
+
"webpack-bundle-analyzer": "^4.4.2",
|
|
153
|
+
"webpack-cli": "^4.6.0",
|
|
154
|
+
"webpack-dev-server": "^4.0.0",
|
|
155
|
+
"webpack-merge": "^5.0.0",
|
|
156
|
+
"webpackbar": "^5.0.2",
|
|
157
|
+
"@jetlinks-web/constants": "^1.0.9",
|
|
158
|
+
"@jetlinks-web/utils": "^1.2.12",
|
|
159
|
+
"@jetlinks-web/hooks": "^1.1.1"
|
|
160
|
+
},
|
|
161
|
+
"publishConfig": {
|
|
162
|
+
"registry": "https://registry.npmjs.org/",
|
|
163
|
+
"access": "public"
|
|
164
|
+
},
|
|
165
|
+
"scripts": {
|
|
166
|
+
"compile": "node tools/cli/run.js compile",
|
|
167
|
+
"dist": "node --max_old_space_size=8192 tools/cli/run.js dist",
|
|
168
|
+
"clean": "pnpm rimraf node_modules && pnpm rimraf .turbo"
|
|
169
|
+
}
|
|
170
|
+
}
|
package/es/AMap/Map.js
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
/* Analyzed bindings: {
|
|
2
|
-
"style": "props",
|
|
3
|
-
"class": "props",
|
|
4
|
-
"AMapUI": "props",
|
|
5
|
-
"center": "props",
|
|
6
|
-
"plugins": "props",
|
|
7
|
-
"zooms": "props",
|
|
8
|
-
"JSKey": "props",
|
|
9
|
-
"WebKey": "props",
|
|
10
|
-
"ref": "setup-const",
|
|
11
|
-
"computed": "setup-const",
|
|
12
|
-
"inject": "setup-const",
|
|
13
|
-
"defineOptions": "setup-const",
|
|
14
|
-
"initAMapApiLoader": "setup-maybe-ref",
|
|
15
|
-
"ElAmap": "setup-maybe-ref",
|
|
16
|
-
"getAMapUiPromise": "setup-maybe-ref",
|
|
17
|
-
"MapProps": "setup-maybe-ref",
|
|
18
|
-
"MAPConfig": "setup-maybe-ref",
|
|
19
|
-
"Empty": "setup-maybe-ref",
|
|
20
|
-
"useLocaleReceiver": "setup-maybe-ref",
|
|
21
|
-
"emit": "setup-const",
|
|
22
|
-
"props": "setup-reactive-const",
|
|
23
|
-
"contextLocale": "setup-maybe-ref",
|
|
24
|
-
"config": "setup-maybe-ref",
|
|
25
|
-
"_mapStyle": "setup-ref",
|
|
26
|
-
"hasAMapKey": "setup-ref",
|
|
27
|
-
"uiLoading": "setup-ref",
|
|
28
|
-
"map": "setup-ref",
|
|
29
|
-
"isOpenUi": "setup-ref",
|
|
30
|
-
"getAMapUI": "setup-const",
|
|
31
|
-
"initMap": "setup-const"
|
|
32
|
-
} */
|
|
33
|
-
import { defineComponent as _defineComponent } from 'vue';
|
|
34
|
-
import { renderSlot as _renderSlot, unref as _unref, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementBlock as _createElementBlock } from "vue";
|
|
35
|
-
import { ref, computed, inject, } from 'vue';
|
|
36
|
-
import { initAMapApiLoader, ElAmap } from '@vuemap/vue-amap';
|
|
37
|
-
import { getAMapUiPromise } from '@jetlinks-web/utils';
|
|
38
|
-
import { MapProps } from './util';
|
|
39
|
-
import { MAPConfig } from "../utils/constants";
|
|
40
|
-
import Empty from '../Empty';
|
|
41
|
-
import '@vuemap/vue-amap/dist/style.css';
|
|
42
|
-
import { useLocaleReceiver } from "../LocaleReciver/index";
|
|
43
|
-
const __sfc_main__ = _defineComponent({
|
|
44
|
-
...{
|
|
45
|
-
name: 'JAMap'
|
|
46
|
-
},
|
|
47
|
-
props: {
|
|
48
|
-
...MapProps(),
|
|
49
|
-
style: Object,
|
|
50
|
-
class: String,
|
|
51
|
-
AMapUI: [String, Boolean],
|
|
52
|
-
center: Array,
|
|
53
|
-
plugins: Array,
|
|
54
|
-
zooms: {
|
|
55
|
-
type: Array,
|
|
56
|
-
default: () => [3, 20]
|
|
57
|
-
},
|
|
58
|
-
JSKey: String,
|
|
59
|
-
WebKey: String,
|
|
60
|
-
},
|
|
61
|
-
emits: [
|
|
62
|
-
'initMap',
|
|
63
|
-
],
|
|
64
|
-
setup(__props, { emit: __emit }) {
|
|
65
|
-
const emit = __emit;
|
|
66
|
-
const props = __props;
|
|
67
|
-
const [contextLocale] = useLocaleReceiver('AMap');
|
|
68
|
-
const config = inject(MAPConfig);
|
|
69
|
-
const _mapStyle = computed(() => {
|
|
70
|
-
if (props.mapStyle) {
|
|
71
|
-
return `amap://styles/${props.mapStyle}`;
|
|
72
|
-
}
|
|
73
|
-
if (config.mapStyle) {
|
|
74
|
-
return config.mapStyle;
|
|
75
|
-
}
|
|
76
|
-
return undefined;
|
|
77
|
-
});
|
|
78
|
-
const hasAMapKey = computed(() => {
|
|
79
|
-
return !!(props.JSKey || config.JSKey);
|
|
80
|
-
});
|
|
81
|
-
initAMapApiLoader({
|
|
82
|
-
key: props.JSKey || config.JSKey || '',
|
|
83
|
-
securityJsCode: props.WebKey || config.WebKey,
|
|
84
|
-
plugins: props.plugins
|
|
85
|
-
});
|
|
86
|
-
const uiLoading = ref(false);
|
|
87
|
-
const map = ref(null);
|
|
88
|
-
const isOpenUi = computed(() => {
|
|
89
|
-
return 'AMapUI' in props || props.AMapUI;
|
|
90
|
-
});
|
|
91
|
-
const getAMapUI = () => {
|
|
92
|
-
const version = typeof props.AMapUI === 'string' ? props.AMapUI : '1.1';
|
|
93
|
-
getAMapUiPromise(version).then(() => {
|
|
94
|
-
uiLoading.value = true;
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
const initMap = (e) => {
|
|
98
|
-
map.value = e;
|
|
99
|
-
emit('initMap', e);
|
|
100
|
-
if (isOpenUi.value) {
|
|
101
|
-
getAMapUI();
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
return (_ctx, _cache) => {
|
|
105
|
-
return (_openBlock(), _createElementBlock("div", {
|
|
106
|
-
style: _normalizeStyle(props.style || { width: '100%', height: '100%' }),
|
|
107
|
-
class: _normalizeClass(props.class)
|
|
108
|
-
}, [
|
|
109
|
-
(hasAMapKey.value)
|
|
110
|
-
? (_openBlock(), _createBlock(_unref(ElAmap), _mergeProps({
|
|
111
|
-
key: 0,
|
|
112
|
-
"map-style": _mapStyle.value
|
|
113
|
-
}, {
|
|
114
|
-
...props,
|
|
115
|
-
..._ctx.$attrs
|
|
116
|
-
}, { onInit: initMap }), {
|
|
117
|
-
default: _withCtx(() => [
|
|
118
|
-
(uiLoading.value)
|
|
119
|
-
? _renderSlot(_ctx.$slots, "default", { key: 0 })
|
|
120
|
-
: _renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
121
|
-
]),
|
|
122
|
-
_: 3 /* FORWARDED */
|
|
123
|
-
}, 16 /* FULL_PROPS */, ["map-style"]))
|
|
124
|
-
: (_openBlock(), _createBlock(_unref(Empty), {
|
|
125
|
-
key: 1,
|
|
126
|
-
description: _unref(contextLocale).description,
|
|
127
|
-
style: { "padding": "20%" }
|
|
128
|
-
}, null, 8 /* PROPS */, ["description"]))
|
|
129
|
-
], 6 /* CLASS, STYLE */));
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
export default __sfc_main__;
|
package/es/AMap/index.js
DELETED
package/es/AMap/util.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export var MapProps = function MapProps() {
|
|
2
|
-
return {
|
|
3
|
-
// 响应式
|
|
4
|
-
center: Array,
|
|
5
|
-
labelzIndex: Number,
|
|
6
|
-
lang: String,
|
|
7
|
-
mapStyle: String,
|
|
8
|
-
// 静态属性
|
|
9
|
-
vid: String,
|
|
10
|
-
amapManager: Object,
|
|
11
|
-
defaultCursor: String,
|
|
12
|
-
animateEnable: {
|
|
13
|
-
type: Boolean,
|
|
14
|
-
default: true
|
|
15
|
-
},
|
|
16
|
-
isHotspot: Boolean,
|
|
17
|
-
rotateEnable: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: true
|
|
20
|
-
},
|
|
21
|
-
resizeEnable: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: true
|
|
24
|
-
},
|
|
25
|
-
showIndoorMap: Boolean,
|
|
26
|
-
expandZoomRange: Boolean,
|
|
27
|
-
dragEnable: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: true
|
|
30
|
-
},
|
|
31
|
-
zoomEnable: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: true
|
|
34
|
-
},
|
|
35
|
-
doubleClickZoom: {
|
|
36
|
-
type: Boolean,
|
|
37
|
-
default: true
|
|
38
|
-
},
|
|
39
|
-
keyboardEnable: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default: true
|
|
42
|
-
},
|
|
43
|
-
jogEnable: {
|
|
44
|
-
type: Boolean,
|
|
45
|
-
default: true
|
|
46
|
-
},
|
|
47
|
-
scrollWheel: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: true
|
|
50
|
-
},
|
|
51
|
-
touchZoom: {
|
|
52
|
-
type: Boolean,
|
|
53
|
-
default: true
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
|
|
2
|
-
/* stylelint-disable no-duplicate-selectors */
|
|
3
|
-
/* stylelint-disable */
|
|
4
|
-
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
|
|
5
|
-
.j-card-select {
|
|
6
|
-
display: grid;
|
|
7
|
-
gap: 12px;
|
|
8
|
-
}
|
|
9
|
-
.j-card-select .j-card-select-item {
|
|
10
|
-
padding: 12px;
|
|
11
|
-
border: 1px solid #e6e6e6;
|
|
12
|
-
border-radius: 2px;
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
}
|
|
15
|
-
.j-card-select .j-card-select-item.active {
|
|
16
|
-
border-color: #1890ff;
|
|
17
|
-
}
|
|
18
|
-
.j-card-select .j-card-select-item.disabled {
|
|
19
|
-
cursor: not-allowed;
|
|
20
|
-
opacity: 0.75;
|
|
21
|
-
}
|
|
22
|
-
.j-card-select .j-card-select-item .j-card-select-describe {
|
|
23
|
-
color: #263237;
|
|
24
|
-
}
|