cloud-b2b 1.0.0 → 1.0.3
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/Area/Area.js +166 -0
- package/es/Area/package.json +6 -0
- package/es/Card/Card.js +20 -0
- package/es/Card/package.json +6 -0
- package/es/Control/Control.js +428 -0
- package/es/Control/event.js +57 -0
- package/es/Control/package.json +6 -0
- package/es/Enhance/Dialogs.js +67 -0
- package/es/Enhance/Loading.js +151 -0
- package/es/Enhance/index.js +8 -0
- package/es/Enhance/package.json +6 -0
- package/es/Header/Header.js +194 -0
- package/es/Header/Header.less +95 -0
- package/es/Header/Vertical.js +129 -0
- package/es/Header/Vertical.less +60 -0
- package/es/Header/package.json +6 -0
- package/es/HomeHeader/Header.js +75 -0
- package/es/HomeHeader/Header.less +73 -0
- package/es/HomeHeader/package.json +6 -0
- package/es/ImageView/ImageView.js +117 -0
- package/es/ImageView/ImageView.less +14 -0
- package/es/ImageView/package.json +6 -0
- package/es/InpurCascader/InputCascader.js +135 -0
- package/es/InpurCascader/package.json +6 -0
- package/es/InputEditor/InputEditor.js +118 -0
- package/es/InputEditor/inputEditor.less +8 -0
- package/es/InputEditor/package.json +6 -0
- package/es/InputSearch/InputSearch.js +306 -0
- package/es/InputSearch/package.json +6 -0
- package/es/InputSelect/InputSelect.js +185 -0
- package/es/InputSelect/package.json +6 -0
- package/es/InputWriting/InputWriting.js +107 -0
- package/es/InputWriting/package.json +6 -0
- package/es/Layout/Layout.js +232 -0
- package/es/Layout/Layout.less +28 -0
- package/es/Layout/package.json +6 -0
- package/es/LayoutLink/LayoutLink.js +82 -0
- package/es/LayoutLink/LayoutLink.less +53 -0
- package/es/LayoutLink/package.json +6 -0
- package/es/Link/Link.js +108 -0
- package/es/Link/package.json +6 -0
- package/es/Loading/Loading.js +15 -0
- package/es/Loading/Loading.less +13 -0
- package/es/Loading/package.json +6 -0
- package/es/Loading2/Loading2.js +11 -0
- package/es/Loading2/Loading2.less +19 -0
- package/es/Loading2/package.json +6 -0
- package/es/ModalWithDrag/ModalWithDrag.js +34 -0
- package/es/ModalWithDrag/ModalWithDrag.less +6 -0
- package/es/ModalWithDrag/drag.js +133 -0
- package/es/ModalWithDrag/package.json +6 -0
- package/es/NumberInput/NumberInput.js +237 -0
- package/es/NumberInput/package.json +6 -0
- package/es/Search/Search.js +581 -0
- package/es/Search/Search.less +63 -0
- package/es/Search/package.json +6 -0
- package/es/Sidebar/Sidebar.js +165 -0
- package/es/Sidebar/Sidebar.less +78 -0
- package/es/Sidebar/package.json +6 -0
- package/es/Sidebar2/Sidebar.js +192 -0
- package/es/Sidebar2/Sidebar.less +153 -0
- package/es/Sidebar2/package.json +6 -0
- package/es/SuperForm/SuperForm.js +688 -0
- package/es/SuperForm/SuperForm.less +52 -0
- package/es/SuperForm/package.json +6 -0
- package/es/SuperIcon/SuperIcon.js +30 -0
- package/es/SuperIcon/package.json +6 -0
- package/es/SuperPagination/SuperPagination.js +126 -0
- package/es/SuperPagination/package.json +6 -0
- package/es/SuperTable/DragSortRow.js +125 -0
- package/es/SuperTable/DragSortRow.less +17 -0
- package/es/SuperTable/FilterDropDown.js +188 -0
- package/es/SuperTable/FilterDropDown.less +30 -0
- package/es/SuperTable/SuperTable.js +933 -0
- package/es/SuperTable/SuperTable.less +135 -0
- package/es/SuperTable/fixed.js +42 -0
- package/es/SuperTable/package.json +6 -0
- package/es/SuperTable2/SuperTable2.js +700 -0
- package/es/SuperTable2/SuperTable2.less +100 -0
- package/es/SuperTable2/SuperTableCell.js +215 -0
- package/es/SuperTable2/package.json +6 -0
- package/es/SuperToolbar/SuperToolbar.js +223 -0
- package/es/SuperToolbar/SuperToolbar.less +17 -0
- package/es/SuperToolbar/package.json +6 -0
- package/es/SuperUpload/SuperUpload.js +282 -0
- package/es/SuperUpload/SuperUpload.less +27 -0
- package/es/SuperUpload/package.json +6 -0
- package/es/Title/Title.less +35 -35
- package/es/Title/package.json +6 -6
- package/es/Viewer/ImageViews.js +311 -0
- package/es/Viewer/Viewer.js +149 -0
- package/es/Viewer/Viewer.less +67 -0
- package/es/Viewer/imgView.less +59 -0
- package/es/Viewer/package.json +7 -0
- package/es/WingBlank/WingBlank.js +20 -0
- package/es/WingBlank/WingBlank.less +12 -0
- package/es/WingBlank/package.json +6 -0
- package/es/adjust.less +89 -0
- package/es/helper.js +118 -0
- package/es/history.js +5 -0
- package/es/index.js +27 -1
- package/es/style.less +20 -1
- package/es/variables.less +73 -73
- package/lib/Area/Area.js +194 -0
- package/lib/Area/package.json +6 -0
- package/lib/Card/Card.js +38 -0
- package/lib/Card/package.json +6 -0
- package/lib/Control/Control.js +477 -0
- package/lib/Control/event.js +68 -0
- package/lib/Control/package.json +6 -0
- package/lib/Enhance/Dialogs.js +87 -0
- package/lib/Enhance/Loading.js +175 -0
- package/lib/Enhance/index.js +35 -0
- package/lib/Enhance/package.json +6 -0
- package/lib/Header/Header.js +215 -0
- package/lib/Header/Header.less +95 -0
- package/lib/Header/Vertical.js +150 -0
- package/lib/Header/Vertical.less +60 -0
- package/lib/Header/package.json +6 -0
- package/lib/HomeHeader/Header.js +95 -0
- package/lib/HomeHeader/Header.less +73 -0
- package/lib/HomeHeader/package.json +6 -0
- package/lib/ImageView/ImageView.js +134 -0
- package/lib/ImageView/ImageView.less +14 -0
- package/lib/ImageView/package.json +6 -0
- package/lib/InpurCascader/InputCascader.js +156 -0
- package/lib/InpurCascader/package.json +6 -0
- package/lib/InputEditor/InputEditor.js +136 -0
- package/lib/InputEditor/inputEditor.less +8 -0
- package/lib/InputEditor/package.json +6 -0
- package/lib/InputSearch/InputSearch.js +322 -0
- package/lib/InputSearch/package.json +6 -0
- package/lib/InputSelect/InputSelect.js +208 -0
- package/lib/InputSelect/package.json +6 -0
- package/lib/InputWriting/InputWriting.js +123 -0
- package/lib/InputWriting/package.json +6 -0
- package/lib/Layout/Layout.js +258 -0
- package/lib/Layout/Layout.less +28 -0
- package/lib/Layout/package.json +6 -0
- package/lib/LayoutLink/LayoutLink.js +114 -0
- package/lib/LayoutLink/LayoutLink.less +53 -0
- package/lib/LayoutLink/package.json +6 -0
- package/lib/Link/Link.js +130 -0
- package/lib/Link/package.json +6 -0
- package/lib/Loading/Loading.js +30 -0
- package/lib/Loading/Loading.less +13 -0
- package/lib/Loading/package.json +6 -0
- package/lib/Loading2/Loading2.js +26 -0
- package/lib/Loading2/Loading2.less +19 -0
- package/lib/Loading2/package.json +6 -0
- package/lib/ModalWithDrag/ModalWithDrag.js +53 -0
- package/lib/ModalWithDrag/ModalWithDrag.less +6 -0
- package/lib/ModalWithDrag/drag.js +147 -0
- package/lib/ModalWithDrag/package.json +6 -0
- package/lib/NumberInput/NumberInput.js +259 -0
- package/lib/NumberInput/package.json +6 -0
- package/lib/Search/Search.js +603 -0
- package/lib/Search/Search.less +63 -0
- package/lib/Search/package.json +6 -0
- package/lib/Sidebar/Sidebar.js +186 -0
- package/lib/Sidebar/Sidebar.less +78 -0
- package/lib/Sidebar/package.json +6 -0
- package/lib/Sidebar2/Sidebar.js +213 -0
- package/lib/Sidebar2/Sidebar.less +153 -0
- package/lib/Sidebar2/package.json +6 -0
- package/lib/SuperForm/SuperForm.js +702 -0
- package/lib/SuperForm/SuperForm.less +52 -0
- package/lib/SuperForm/package.json +6 -0
- package/lib/SuperIcon/SuperIcon.js +47 -0
- package/lib/SuperIcon/package.json +6 -0
- package/lib/SuperPagination/SuperPagination.js +145 -0
- package/lib/SuperPagination/package.json +6 -0
- package/lib/SuperTable/DragSortRow.js +142 -0
- package/lib/SuperTable/DragSortRow.less +17 -0
- package/lib/SuperTable/FilterDropDown.js +205 -0
- package/lib/SuperTable/FilterDropDown.less +30 -0
- package/lib/SuperTable/SuperTable.js +937 -0
- package/lib/SuperTable/SuperTable.less +135 -0
- package/lib/SuperTable/fixed.js +55 -0
- package/lib/SuperTable/package.json +6 -0
- package/lib/SuperTable2/SuperTable2.js +725 -0
- package/lib/SuperTable2/SuperTable2.less +100 -0
- package/lib/SuperTable2/SuperTableCell.js +231 -0
- package/lib/SuperTable2/package.json +6 -0
- package/lib/SuperToolbar/SuperToolbar.js +248 -0
- package/lib/SuperToolbar/SuperToolbar.less +17 -0
- package/lib/SuperToolbar/package.json +6 -0
- package/lib/SuperUpload/SuperUpload.js +324 -0
- package/lib/SuperUpload/SuperUpload.less +27 -0
- package/lib/SuperUpload/package.json +6 -0
- package/lib/Title/Title.less +35 -35
- package/lib/Title/package.json +6 -6
- package/lib/Viewer/ImageViews.js +323 -0
- package/lib/Viewer/Viewer.js +167 -0
- package/lib/Viewer/Viewer.less +67 -0
- package/lib/Viewer/imgView.less +59 -0
- package/lib/Viewer/package.json +7 -0
- package/lib/WingBlank/WingBlank.js +37 -0
- package/lib/WingBlank/WingBlank.less +12 -0
- package/lib/WingBlank/package.json +6 -0
- package/lib/adjust.less +89 -0
- package/lib/helper.js +147 -0
- package/lib/history.js +18 -0
- package/lib/index.js +235 -1
- package/lib/index.less +25 -1
- package/lib/style.less +20 -1
- package/lib/variables.less +73 -73
- package/package.json +3 -2
package/lib/adjust.less
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
|
|
2
|
+
.ant-table-small {
|
|
3
|
+
.ant-table-thead {
|
|
4
|
+
background-color: @table-header-bg;
|
|
5
|
+
|
|
6
|
+
> tr > th {
|
|
7
|
+
padding: 12px 8px 11px !important;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ant-table-tbody > tr > td {
|
|
12
|
+
padding: 8px 8px 7px !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.ant-table-tbody > tr.ant-table-row-selected td {
|
|
16
|
+
background-color: @primary-1 !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td {
|
|
20
|
+
background-color: @table-header-bg !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ant-table-selection-column {
|
|
24
|
+
min-width: 62px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
table {
|
|
28
|
+
border-collapse: separate;
|
|
29
|
+
border-spacing: 0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.ant-modal {
|
|
34
|
+
top: 50px;
|
|
35
|
+
padding-bottom: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.ant-form-item {
|
|
39
|
+
margin-bottom: 6px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.ant-select-sm .ant-select-selection--single {
|
|
43
|
+
height: @input-height-sm !important;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ant-form-vertical .ant-form-item {
|
|
48
|
+
padding-bottom: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.ant-form-item-control {
|
|
52
|
+
line-height: @input-height-sm;
|
|
53
|
+
|
|
54
|
+
> .ant-form-explain-holder[aria-hidden='true'] {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.ant-form-vertical .ant-form-item-label {
|
|
60
|
+
padding: 0;
|
|
61
|
+
line-height: 1.2;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ant-input-lg {
|
|
65
|
+
font-size: 12px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ant-btn-lg {
|
|
69
|
+
height: @input-height-lg;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.ant-menu-inline .ant-menu-item {
|
|
73
|
+
margin-top: 0;
|
|
74
|
+
margin-bottom: 0 !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.ant-modal-header {
|
|
78
|
+
padding: 13px 16px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ant-modal-body {
|
|
82
|
+
padding: 16px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.ant-btn-primary:focus {
|
|
86
|
+
background-color: white;
|
|
87
|
+
color: @primary-color;
|
|
88
|
+
text-shadow: none;
|
|
89
|
+
}
|
package/lib/helper.js
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
4
|
+
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
+
|
|
7
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
exports.showSuccessMsg = exports.showError = exports.isEmpty2 = exports.isEmpty = exports.getUsername = exports.getPathValue = exports.getObjectExclude = exports["default"] = void 0;
|
|
12
|
+
|
|
13
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/typeof"));
|
|
14
|
+
|
|
15
|
+
var _some = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/some"));
|
|
16
|
+
|
|
17
|
+
var _reduce = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/reduce"));
|
|
18
|
+
|
|
19
|
+
var _keys = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/keys"));
|
|
20
|
+
|
|
21
|
+
var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/index-of"));
|
|
22
|
+
|
|
23
|
+
var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/is-array"));
|
|
24
|
+
|
|
25
|
+
var _message = _interopRequireDefault(require("antd/lib/message"));
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* 功能:从obj中取出不包含keys指定的属性,并组成一个新的子对象
|
|
29
|
+
*/
|
|
30
|
+
var getObjectExclude = function getObjectExclude(obj, keys) {
|
|
31
|
+
var _context;
|
|
32
|
+
|
|
33
|
+
var inKeys = function inKeys(key) {
|
|
34
|
+
return (0, _some["default"])(keys).call(keys, function (k) {
|
|
35
|
+
return k === key;
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
return (0, _reduce["default"])(_context = (0, _keys["default"])(obj)).call(_context, function (newObj, key) {
|
|
40
|
+
!inKeys(key) && (newObj[key] = obj[key]);
|
|
41
|
+
return newObj;
|
|
42
|
+
}, {});
|
|
43
|
+
}; // 获取当前登录的用户名
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
exports.getObjectExclude = getObjectExclude;
|
|
47
|
+
|
|
48
|
+
var getUsername = function getUsername() {
|
|
49
|
+
var username = 'username=';
|
|
50
|
+
var cookie = document.cookie;
|
|
51
|
+
var begin = (0, _indexOf["default"])(cookie).call(cookie, username) + username.length;
|
|
52
|
+
var end = (0, _indexOf["default"])(cookie).call(cookie, ';', begin);
|
|
53
|
+
return unescape(cookie.substring(begin, end < 0 ? cookie.length : end));
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* 确保path为数组
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
exports.getUsername = getUsername;
|
|
61
|
+
|
|
62
|
+
var makeArray = function makeArray(path) {
|
|
63
|
+
if ((0, _isArray["default"])(path)) {
|
|
64
|
+
return path;
|
|
65
|
+
} else if (!path) {
|
|
66
|
+
return [];
|
|
67
|
+
} else {
|
|
68
|
+
return [path];
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* 功能:获取对象关键路径的值,不存在则返回undefined
|
|
73
|
+
* obj:对象
|
|
74
|
+
* path:字符串或字符串数组,指定关键路径
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
var getPathValue = function getPathValue(obj, path) {
|
|
79
|
+
if (!path) {
|
|
80
|
+
return undefined;
|
|
81
|
+
} else {
|
|
82
|
+
var _context2;
|
|
83
|
+
|
|
84
|
+
return (0, _reduce["default"])(_context2 = makeArray(path)).call(_context2, function (value, key) {
|
|
85
|
+
return (0, _typeof2["default"])(value) !== 'object' ? undefined : value[key];
|
|
86
|
+
}, obj);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* 功能:判断一个值是否为空(null,undefined和''属于空)
|
|
91
|
+
*/
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
exports.getPathValue = getPathValue;
|
|
95
|
+
|
|
96
|
+
var isEmpty = function isEmpty(value) {
|
|
97
|
+
var type = (0, _typeof2["default"])(value);
|
|
98
|
+
|
|
99
|
+
if (type === 'number' || type === 'boolean') {
|
|
100
|
+
return false;
|
|
101
|
+
} else {
|
|
102
|
+
return !value;
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* 功能:判断一个值是否为空(null,undefined,''和[]属于空)
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
exports.isEmpty = isEmpty;
|
|
111
|
+
|
|
112
|
+
var isEmpty2 = function isEmpty2(value) {
|
|
113
|
+
var type = (0, _typeof2["default"])(value);
|
|
114
|
+
|
|
115
|
+
if (type === 'number' || type === 'boolean') {
|
|
116
|
+
return false;
|
|
117
|
+
} else if ((0, _isArray["default"])(value)) {
|
|
118
|
+
return !value.length;
|
|
119
|
+
} else {
|
|
120
|
+
return !value;
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
exports.isEmpty2 = isEmpty2;
|
|
125
|
+
|
|
126
|
+
var showError = function showError(msg) {
|
|
127
|
+
_message["default"].error(msg);
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
exports.showError = showError;
|
|
131
|
+
|
|
132
|
+
var showSuccessMsg = function showSuccessMsg(msg) {
|
|
133
|
+
_message["default"].success(msg);
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
exports.showSuccessMsg = showSuccessMsg;
|
|
137
|
+
var helper = {
|
|
138
|
+
getObjectExclude: getObjectExclude,
|
|
139
|
+
getUsername: getUsername,
|
|
140
|
+
getPathValue: getPathValue,
|
|
141
|
+
isEmpty: isEmpty,
|
|
142
|
+
isEmpty2: isEmpty2,
|
|
143
|
+
showError: showError,
|
|
144
|
+
showSuccessMsg: showSuccessMsg
|
|
145
|
+
};
|
|
146
|
+
var _default = helper;
|
|
147
|
+
exports["default"] = _default;
|
package/lib/history.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
4
|
+
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
exports["default"] = void 0;
|
|
10
|
+
|
|
11
|
+
var _history = require("history");
|
|
12
|
+
|
|
13
|
+
// import createBrowserHistory from 'history/createBrowserHistory';
|
|
14
|
+
// Navigation manager, e.g. history.push('/home')
|
|
15
|
+
// https://github.com/mjackson/history
|
|
16
|
+
var _default = process.env.BROWSER && (0, _history.createBrowserHistory)();
|
|
17
|
+
|
|
18
|
+
exports["default"] = _default;
|
package/lib/index.js
CHANGED
|
@@ -8,6 +8,174 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
10
|
|
|
11
|
+
_Object$defineProperty(exports, "Area", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function get() {
|
|
14
|
+
return _Area["default"];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
_Object$defineProperty(exports, "Card", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _Card["default"];
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
_Object$defineProperty(exports, "Control", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function get() {
|
|
28
|
+
return _Control["default"];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
_Object$defineProperty(exports, "Enhance", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function get() {
|
|
35
|
+
return _Enhance["default"];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
_Object$defineProperty(exports, "Header", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function get() {
|
|
42
|
+
return _Header["default"];
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
_Object$defineProperty(exports, "ImageView", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function get() {
|
|
49
|
+
return _ImageView["default"];
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
_Object$defineProperty(exports, "InpurCascader", {
|
|
54
|
+
enumerable: true,
|
|
55
|
+
get: function get() {
|
|
56
|
+
return _InpurCascader["default"];
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
_Object$defineProperty(exports, "InputSearch", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function get() {
|
|
63
|
+
return _InputSearch["default"];
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
_Object$defineProperty(exports, "InputSelect", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function get() {
|
|
70
|
+
return _InputSelect["default"];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
_Object$defineProperty(exports, "InputWriting", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function get() {
|
|
77
|
+
return _InputWriting["default"];
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
_Object$defineProperty(exports, "Layout", {
|
|
82
|
+
enumerable: true,
|
|
83
|
+
get: function get() {
|
|
84
|
+
return _Layout["default"];
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
_Object$defineProperty(exports, "LayoutLink", {
|
|
89
|
+
enumerable: true,
|
|
90
|
+
get: function get() {
|
|
91
|
+
return _LayoutLink["default"];
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
_Object$defineProperty(exports, "Link", {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get: function get() {
|
|
98
|
+
return _Link["default"];
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
_Object$defineProperty(exports, "Loading", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function get() {
|
|
105
|
+
return _Loading["default"];
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
_Object$defineProperty(exports, "ModalWithDrag", {
|
|
110
|
+
enumerable: true,
|
|
111
|
+
get: function get() {
|
|
112
|
+
return _ModalWithDrag["default"];
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
_Object$defineProperty(exports, "NumberInput", {
|
|
117
|
+
enumerable: true,
|
|
118
|
+
get: function get() {
|
|
119
|
+
return _NumberInput["default"];
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
_Object$defineProperty(exports, "Search", {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
get: function get() {
|
|
126
|
+
return _Search["default"];
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
_Object$defineProperty(exports, "Sidebar", {
|
|
131
|
+
enumerable: true,
|
|
132
|
+
get: function get() {
|
|
133
|
+
return _Sidebar["default"];
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
_Object$defineProperty(exports, "SuperForm", {
|
|
138
|
+
enumerable: true,
|
|
139
|
+
get: function get() {
|
|
140
|
+
return _SuperForm["default"];
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
_Object$defineProperty(exports, "SuperIcon", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function get() {
|
|
147
|
+
return _SuperIcon["default"];
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
_Object$defineProperty(exports, "SuperTable", {
|
|
152
|
+
enumerable: true,
|
|
153
|
+
get: function get() {
|
|
154
|
+
return _SuperTable2["default"];
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
_Object$defineProperty(exports, "SuperTable2", {
|
|
159
|
+
enumerable: true,
|
|
160
|
+
get: function get() {
|
|
161
|
+
return _SuperTable["default"];
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
_Object$defineProperty(exports, "SuperToolbar", {
|
|
166
|
+
enumerable: true,
|
|
167
|
+
get: function get() {
|
|
168
|
+
return _SuperToolbar["default"];
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
_Object$defineProperty(exports, "SuperUpload", {
|
|
173
|
+
enumerable: true,
|
|
174
|
+
get: function get() {
|
|
175
|
+
return _SuperUpload["default"];
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
|
|
11
179
|
_Object$defineProperty(exports, "Title", {
|
|
12
180
|
enumerable: true,
|
|
13
181
|
get: function get() {
|
|
@@ -15,4 +183,70 @@ _Object$defineProperty(exports, "Title", {
|
|
|
15
183
|
}
|
|
16
184
|
});
|
|
17
185
|
|
|
18
|
-
|
|
186
|
+
_Object$defineProperty(exports, "Viewer", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function get() {
|
|
189
|
+
return _Viewer["default"];
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
_Object$defineProperty(exports, "WingBlank", {
|
|
194
|
+
enumerable: true,
|
|
195
|
+
get: function get() {
|
|
196
|
+
return _WingBlank["default"];
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
var _Title = _interopRequireDefault(require("./Title"));
|
|
201
|
+
|
|
202
|
+
var _Card = _interopRequireDefault(require("./Card"));
|
|
203
|
+
|
|
204
|
+
var _Control = _interopRequireDefault(require("./Control"));
|
|
205
|
+
|
|
206
|
+
var _Enhance = _interopRequireDefault(require("./Enhance"));
|
|
207
|
+
|
|
208
|
+
var _Header = _interopRequireDefault(require("./Header"));
|
|
209
|
+
|
|
210
|
+
var _ImageView = _interopRequireDefault(require("./ImageView"));
|
|
211
|
+
|
|
212
|
+
var _InpurCascader = _interopRequireDefault(require("./InpurCascader"));
|
|
213
|
+
|
|
214
|
+
var _InputSearch = _interopRequireDefault(require("./InputSearch"));
|
|
215
|
+
|
|
216
|
+
var _InputSelect = _interopRequireDefault(require("./InputSelect"));
|
|
217
|
+
|
|
218
|
+
var _InputWriting = _interopRequireDefault(require("./InputWriting"));
|
|
219
|
+
|
|
220
|
+
var _Layout = _interopRequireDefault(require("./Layout"));
|
|
221
|
+
|
|
222
|
+
var _LayoutLink = _interopRequireDefault(require("./LayoutLink"));
|
|
223
|
+
|
|
224
|
+
var _Link = _interopRequireDefault(require("./Link"));
|
|
225
|
+
|
|
226
|
+
var _Loading = _interopRequireDefault(require("./Loading"));
|
|
227
|
+
|
|
228
|
+
var _ModalWithDrag = _interopRequireDefault(require("./ModalWithDrag"));
|
|
229
|
+
|
|
230
|
+
var _NumberInput = _interopRequireDefault(require("./NumberInput"));
|
|
231
|
+
|
|
232
|
+
var _Search = _interopRequireDefault(require("./Search"));
|
|
233
|
+
|
|
234
|
+
var _Sidebar = _interopRequireDefault(require("./Sidebar"));
|
|
235
|
+
|
|
236
|
+
var _SuperForm = _interopRequireDefault(require("./SuperForm"));
|
|
237
|
+
|
|
238
|
+
var _SuperIcon = _interopRequireDefault(require("./SuperIcon"));
|
|
239
|
+
|
|
240
|
+
var _SuperToolbar = _interopRequireDefault(require("./SuperToolbar"));
|
|
241
|
+
|
|
242
|
+
var _SuperUpload = _interopRequireDefault(require("./SuperUpload"));
|
|
243
|
+
|
|
244
|
+
var _Viewer = _interopRequireDefault(require("./Viewer"));
|
|
245
|
+
|
|
246
|
+
var _WingBlank = _interopRequireDefault(require("./WingBlank"));
|
|
247
|
+
|
|
248
|
+
var _Area = _interopRequireDefault(require("./Area"));
|
|
249
|
+
|
|
250
|
+
var _SuperTable = _interopRequireDefault(require("./SuperTable2"));
|
|
251
|
+
|
|
252
|
+
var _SuperTable2 = _interopRequireDefault(require("./SuperTable"));
|
package/lib/index.less
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
@import "./adjust.less";
|
|
2
|
+
@import "./Header/Header.less";
|
|
3
|
+
@import "./Header/Vertical.less";
|
|
4
|
+
@import "./HomeHeader/Header.less";
|
|
5
|
+
@import "./ImageView/ImageView.less";
|
|
6
|
+
@import "./InputEditor/inputEditor.less";
|
|
7
|
+
@import "./Layout/Layout.less";
|
|
8
|
+
@import "./LayoutLink/LayoutLink.less";
|
|
9
|
+
@import "./Loading/Loading.less";
|
|
10
|
+
@import "./Loading2/Loading2.less";
|
|
11
|
+
@import "./ModalWithDrag/ModalWithDrag.less";
|
|
12
|
+
@import "./Search/Search.less";
|
|
13
|
+
@import "./Sidebar/Sidebar.less";
|
|
14
|
+
@import "./Sidebar2/Sidebar.less";
|
|
1
15
|
@import "./style.less";
|
|
16
|
+
@import "./SuperForm/SuperForm.less";
|
|
17
|
+
@import "./SuperTable/DragSortRow.less";
|
|
18
|
+
@import "./SuperTable/FilterDropDown.less";
|
|
19
|
+
@import "./SuperTable/SuperTable.less";
|
|
20
|
+
@import "./SuperTable2/SuperTable2.less";
|
|
21
|
+
@import "./SuperToolbar/SuperToolbar.less";
|
|
22
|
+
@import "./SuperUpload/SuperUpload.less";
|
|
2
23
|
@import "./Title/Title.less";
|
|
3
|
-
@import "./variables.less";
|
|
24
|
+
@import "./variables.less";
|
|
25
|
+
@import "./Viewer/imgView.less";
|
|
26
|
+
@import "./Viewer/Viewer.less";
|
|
27
|
+
@import "./WingBlank/WingBlank.less";
|
package/lib/style.less
CHANGED
|
@@ -1 +1,20 @@
|
|
|
1
|
-
@import "./
|
|
1
|
+
@import "./adjust.less";
|
|
2
|
+
@import "./Title/Title.less";
|
|
3
|
+
@import "./Search/Search.less";
|
|
4
|
+
@import "./SuperForm/SuperForm.less";
|
|
5
|
+
@import "./SuperTable/SuperTable.less";
|
|
6
|
+
@import "./SuperTable2/SuperTable2.less";
|
|
7
|
+
@import "./Header/Header.less";
|
|
8
|
+
@import "./HomeHeader/Header.less";
|
|
9
|
+
@import "./InputEditor/InputEditor.less";
|
|
10
|
+
@import "./Layout/Layout.less";
|
|
11
|
+
@import "./LayoutLink/LayoutLink.less";
|
|
12
|
+
@import "./Loading/Loading.less";
|
|
13
|
+
@import "./Loading2/Loading2.less";
|
|
14
|
+
@import "./ModalWithDrag/ModalWithDrag.less";
|
|
15
|
+
@import "./Search/Search.less";
|
|
16
|
+
@import "./Sidebar/Sidebar.less";
|
|
17
|
+
@import "./Sidebar2/Sidebar.less";
|
|
18
|
+
@import "./SuperToolbar/SuperToolbar.less";
|
|
19
|
+
@import "./SuperUpload/SuperUpload.less";
|
|
20
|
+
@import "./Viewer/Viewer.less";
|
package/lib/variables.less
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
@cloudlink-prefix: cloudlink;
|
|
2
|
-
@default-font-size: 14px;
|
|
3
|
-
@font-size-base: ceil((@default-font-size * 0.85));
|
|
4
|
-
@default-line-color:#d7d7d7;
|
|
5
|
-
@padding-horizontal: 10px;
|
|
6
|
-
@padding-vertical: 10px;
|
|
7
|
-
@padding-horizontal-sm: 5px;
|
|
8
|
-
@padding-vertical-sm: 5px;
|
|
9
|
-
@background-color: white;
|
|
10
|
-
@box-shadow-color: rgba(0, 0, 0, 0.15);
|
|
11
|
-
@brand-primary: #
|
|
12
|
-
@font-family-base: '微软雅黑', '宋体', sans-serif;
|
|
13
|
-
@one-pixel: 0.0625vw;
|
|
14
|
-
@one-pixel-v: 0.1111vh;
|
|
15
|
-
|
|
16
|
-
// antd变量
|
|
17
|
-
@text-color: rgba(0, 0, 0, 0.80);
|
|
18
|
-
@primary-color:
|
|
19
|
-
@primary-1: tint(@primary-color, 85%);
|
|
20
|
-
@primary-5: tint(@primary-color, 20%);
|
|
21
|
-
@border-radius-base: 4px;
|
|
22
|
-
@border-radius-sm: 2px;
|
|
23
|
-
@border-radius-lg: 8px;
|
|
24
|
-
@table-header-bg: #f0f0f0;
|
|
25
|
-
@table-row-hover-bg: @primary-1;
|
|
26
|
-
@input-height-base: 28px;
|
|
27
|
-
@input-height-lg: 32px;
|
|
28
|
-
@input-height-sm: 22px;
|
|
29
|
-
@btn-height-base: @input-height-base;
|
|
30
|
-
@btn-height-lg: @input-height-lg;
|
|
31
|
-
@btn-height-sm: @input-height-sm;
|
|
32
|
-
@pagination-item-size: @input-height-base;
|
|
33
|
-
|
|
34
|
-
// layout外观
|
|
35
|
-
@layout-font-size: @default-font-size;
|
|
36
|
-
@layout-font-family: @font-family-base;
|
|
37
|
-
|
|
38
|
-
// 页眉外观(header)
|
|
39
|
-
@header-height: 40px;
|
|
40
|
-
@header-font-size: @default-font-size + 2;
|
|
41
|
-
@header-color: #fff;
|
|
42
|
-
@header-color-bg: #0175DA;
|
|
43
|
-
@header-hover-bg: fade(darken(@header-color-bg, 15%), 50%);
|
|
44
|
-
@header-active-bg: @header-hover-bg;
|
|
45
|
-
|
|
46
|
-
// 侧边栏外观(sidebar)
|
|
47
|
-
@sidebar-width: 160px;
|
|
48
|
-
@sidebar-min-width: 43px;
|
|
49
|
-
@sidebar-color: black;
|
|
50
|
-
@sidebar-border-color: #d7d7d7;
|
|
51
|
-
@sidebar-color-bg: #f7f4f9;
|
|
52
|
-
@sidebar-hover-bg: #e4e4e4;
|
|
53
|
-
@sidebar-active-bg: @sidebar-hover-bg;
|
|
54
|
-
|
|
55
|
-
// Form
|
|
56
|
-
@form-group-margin-bottom: 0;
|
|
57
|
-
@legend-color: black;
|
|
58
|
-
|
|
59
|
-
//门户相关页面变量
|
|
60
|
-
@max-width: 1180px;
|
|
61
|
-
@padding: 15px;
|
|
62
|
-
|
|
63
|
-
//媒体查询定义
|
|
64
|
-
@screen-small: 768px;
|
|
65
|
-
@screen-low-middle: 1024px;
|
|
66
|
-
@screen-middle: 1180px;
|
|
67
|
-
|
|
68
|
-
@screen-sm-max: @screen-small;
|
|
69
|
-
@screen-lm-min: @screen-small + 1;
|
|
70
|
-
@screen-lm-max: @screen-low-middle;
|
|
71
|
-
@screen-md-min: @screen-low-middle + 1;
|
|
72
|
-
@screen-md-max: @screen-middle + 50;
|
|
73
|
-
@screen-lg-min: @screen-middle + 1 + 50;
|
|
1
|
+
@cloudlink-prefix: cloudlink;
|
|
2
|
+
@default-font-size: 14px;
|
|
3
|
+
@font-size-base: ceil((@default-font-size * 0.85));
|
|
4
|
+
@default-line-color:#d7d7d7;
|
|
5
|
+
@padding-horizontal: 10px;
|
|
6
|
+
@padding-vertical: 10px;
|
|
7
|
+
@padding-horizontal-sm: 5px;
|
|
8
|
+
@padding-vertical-sm: 5px;
|
|
9
|
+
@background-color: white;
|
|
10
|
+
@box-shadow-color: rgba(0, 0, 0, 0.15);
|
|
11
|
+
@brand-primary: #fdae63;
|
|
12
|
+
@font-family-base: '微软雅黑', '宋体', sans-serif;
|
|
13
|
+
@one-pixel: 0.0625vw;
|
|
14
|
+
@one-pixel-v: 0.1111vh;
|
|
15
|
+
|
|
16
|
+
// antd变量
|
|
17
|
+
@text-color: rgba(0, 0, 0, 0.80);
|
|
18
|
+
@primary-color: #FE7F0B;
|
|
19
|
+
@primary-1: tint(@primary-color, 85%);
|
|
20
|
+
@primary-5: tint(@primary-color, 20%);
|
|
21
|
+
@border-radius-base: 4px;
|
|
22
|
+
@border-radius-sm: 2px;
|
|
23
|
+
@border-radius-lg: 8px;
|
|
24
|
+
@table-header-bg: #f0f0f0;
|
|
25
|
+
@table-row-hover-bg: @primary-1;
|
|
26
|
+
@input-height-base: 28px;
|
|
27
|
+
@input-height-lg: 32px;
|
|
28
|
+
@input-height-sm: 22px;
|
|
29
|
+
@btn-height-base: @input-height-base;
|
|
30
|
+
@btn-height-lg: @input-height-lg;
|
|
31
|
+
@btn-height-sm: @input-height-sm;
|
|
32
|
+
@pagination-item-size: @input-height-base;
|
|
33
|
+
|
|
34
|
+
// layout外观
|
|
35
|
+
@layout-font-size: @default-font-size;
|
|
36
|
+
@layout-font-family: @font-family-base;
|
|
37
|
+
|
|
38
|
+
// 页眉外观(header)
|
|
39
|
+
@header-height: 40px;
|
|
40
|
+
@header-font-size: @default-font-size + 2;
|
|
41
|
+
@header-color: #fff;
|
|
42
|
+
@header-color-bg: #0175DA;
|
|
43
|
+
@header-hover-bg: fade(darken(@header-color-bg, 15%), 50%);
|
|
44
|
+
@header-active-bg: @header-hover-bg;
|
|
45
|
+
|
|
46
|
+
// 侧边栏外观(sidebar)
|
|
47
|
+
@sidebar-width: 160px;
|
|
48
|
+
@sidebar-min-width: 43px;
|
|
49
|
+
@sidebar-color: black;
|
|
50
|
+
@sidebar-border-color: #d7d7d7;
|
|
51
|
+
@sidebar-color-bg: #f7f4f9;
|
|
52
|
+
@sidebar-hover-bg: #e4e4e4;
|
|
53
|
+
@sidebar-active-bg: @sidebar-hover-bg;
|
|
54
|
+
|
|
55
|
+
// Form
|
|
56
|
+
@form-group-margin-bottom: 0;
|
|
57
|
+
@legend-color: black;
|
|
58
|
+
|
|
59
|
+
//门户相关页面变量
|
|
60
|
+
@max-width: 1180px;
|
|
61
|
+
@padding: 15px;
|
|
62
|
+
|
|
63
|
+
//媒体查询定义
|
|
64
|
+
@screen-small: 768px;
|
|
65
|
+
@screen-low-middle: 1024px;
|
|
66
|
+
@screen-middle: 1180px;
|
|
67
|
+
|
|
68
|
+
@screen-sm-max: @screen-small;
|
|
69
|
+
@screen-lm-min: @screen-small + 1;
|
|
70
|
+
@screen-lm-max: @screen-low-middle;
|
|
71
|
+
@screen-md-min: @screen-low-middle + 1;
|
|
72
|
+
@screen-md-max: @screen-middle + 50;
|
|
73
|
+
@screen-lg-min: @screen-middle + 1 + 50;
|