@jetlinks-web/components 3.3.12 → 3.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/CardSelect/style/index.js +3 -3
- package/es/CheckButton/style/index.js +9 -9
- package/es/DragModal/style/index.js +6 -6
- package/es/EditTable/FormItem.js +18 -15
- package/es/EditTable/components/Search/sort.js +15 -1
- package/es/EditTable/style/body.js +8 -6
- package/es/EditTable/style/group.js +3 -3
- package/es/EditTable/style/header.js +3 -3
- package/es/EditTable/style/menu.js +3 -3
- package/es/EditTable/style/table.js +3 -3
- package/es/FullPage/FullPage.js +15 -5
- package/es/ProLayout/SiderMenu/style.js +105 -26
- package/es/ProLayout/TopHeader/style.js +55 -11
- package/es/ProTable/ProTable.js +2 -4
- package/es/ProTable/style/index.js +11 -8
- package/es/RadioButton/style/index.js +3 -2
- package/es/Scrollbar/style/index.js +9 -9
- package/es/Search/style/search.js +5 -5
- package/es/Skeleton/components/Page.js +18 -5
- package/es/Skeleton/style/index.js +12 -6
- package/es/Title/style/index.js +2 -2
- package/es/VirtualTable/style/index.js +7 -4
- package/es/style/scrollbar.js +24 -0
- package/es/style/styleRegister.js +45 -11
- package/es/style/variable.js +1 -4
- package/lib/CardSelect/style/index.js +3 -3
- package/lib/CheckButton/style/index.js +9 -9
- package/lib/DragModal/style/index.js +6 -6
- package/lib/EditTable/FormItem.js +18 -15
- package/lib/EditTable/components/Search/sort.js +15 -1
- package/lib/EditTable/style/body.js +8 -6
- package/lib/EditTable/style/group.js +3 -3
- package/lib/EditTable/style/header.js +3 -3
- package/lib/EditTable/style/menu.js +3 -3
- package/lib/EditTable/style/table.js +3 -3
- package/lib/FullPage/FullPage.js +15 -5
- package/lib/ProLayout/SiderMenu/style.js +104 -25
- package/lib/ProLayout/TopHeader/style.js +55 -11
- package/lib/ProTable/ProTable.js +2 -4
- package/lib/ProTable/style/index.js +10 -7
- package/lib/RadioButton/style/index.js +3 -2
- package/lib/Scrollbar/style/index.js +8 -8
- package/lib/Search/style/search.js +5 -5
- package/lib/Skeleton/components/Page.js +18 -5
- package/lib/Skeleton/style/index.js +12 -6
- package/lib/Title/style/index.js +2 -2
- package/lib/VirtualTable/style/index.js +6 -3
- package/lib/style/scrollbar.js +30 -0
- package/lib/style/styleRegister.js +44 -10
- package/lib/style/variable.js +1 -4
- package/package.json +3 -3
|
@@ -5,8 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
8
9
|
var _styleRegister = _interopRequireDefault(require("../../style/styleRegister"));
|
|
9
|
-
var
|
|
10
|
+
var _scrollbar = require("../../style/scrollbar");
|
|
11
|
+
var genVirtualTableStyle = function genVirtualTableStyle(config) {
|
|
12
|
+
var token = config.token;
|
|
10
13
|
return {
|
|
11
14
|
'.virtual-table-wrapper': {
|
|
12
15
|
display: 'flex',
|
|
@@ -24,11 +27,11 @@ var genVirtualTableStyle = function genVirtualTableStyle() {
|
|
|
24
27
|
}
|
|
25
28
|
}
|
|
26
29
|
},
|
|
27
|
-
'.virtual-table-body': {
|
|
30
|
+
'.virtual-table-body': (0, _objectSpread2.default)({
|
|
28
31
|
'overflow-y': 'auto',
|
|
29
32
|
position: 'relative',
|
|
30
33
|
'min-height': '100px'
|
|
31
|
-
},
|
|
34
|
+
}, (0, _scrollbar.genTokenScrollbarStyle)(token)),
|
|
32
35
|
'.virtual-table-header-fixed': {
|
|
33
36
|
// 位移的容器,提升位移动画性能
|
|
34
37
|
'will-change': 'transform'
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.genTokenScrollbarStyle = void 0;
|
|
7
|
+
var genTokenScrollbarStyle = exports.genTokenScrollbarStyle = function genTokenScrollbarStyle(token) {
|
|
8
|
+
return {
|
|
9
|
+
scrollbarWidth: 'thin',
|
|
10
|
+
scrollbarColor: "".concat(token.colorFillSecondary, " ").concat(token.colorFillQuaternary),
|
|
11
|
+
'&::-webkit-scrollbar': {
|
|
12
|
+
width: 10,
|
|
13
|
+
height: 10
|
|
14
|
+
},
|
|
15
|
+
'&::-webkit-scrollbar-track': {
|
|
16
|
+
backgroundColor: token.colorFillQuaternary
|
|
17
|
+
},
|
|
18
|
+
'&::-webkit-scrollbar-thumb': {
|
|
19
|
+
backgroundColor: token.colorFillSecondary,
|
|
20
|
+
borderRadius: token.borderRadiusLG,
|
|
21
|
+
border: "".concat(token.lineWidth * 2, "px solid ").concat(token.colorFillQuaternary)
|
|
22
|
+
},
|
|
23
|
+
'&::-webkit-scrollbar-thumb:hover': {
|
|
24
|
+
backgroundColor: token.colorFill
|
|
25
|
+
},
|
|
26
|
+
'&::-webkit-scrollbar-corner': {
|
|
27
|
+
backgroundColor: token.colorFillQuaternary
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -7,18 +7,52 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
|
+
var _vue = require("vue");
|
|
11
|
+
var _antDesignVue = require("ant-design-vue");
|
|
10
12
|
var _internal = require("ant-design-vue/es/theme/internal");
|
|
13
|
+
var _context = require("ant-design-vue/es/config-provider/context");
|
|
14
|
+
var _style = require("ant-design-vue/es/style");
|
|
11
15
|
var _variable = _interopRequireDefault(require("./variable"));
|
|
12
16
|
var genCompoentStyle = function genCompoentStyle(styleFn) {
|
|
13
|
-
return
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
return function (_prefixCls) {
|
|
18
|
+
var prefixCls = (0, _vue.computed)(function () {
|
|
19
|
+
return (0, _vue.unref)(_prefixCls);
|
|
20
|
+
});
|
|
21
|
+
var _theme$useToken = _antDesignVue.theme.useToken(),
|
|
22
|
+
themeRef = _theme$useToken.theme,
|
|
23
|
+
token = _theme$useToken.token,
|
|
24
|
+
hashId = _theme$useToken.hashId;
|
|
25
|
+
var _useConfigContextInje = (0, _context.useConfigContextInject)(),
|
|
26
|
+
getPrefixCls = _useConfigContextInje.getPrefixCls,
|
|
27
|
+
iconPrefixCls = _useConfigContextInje.iconPrefixCls;
|
|
28
|
+
var rootPrefixCls = (0, _vue.computed)(function () {
|
|
29
|
+
return getPrefixCls();
|
|
30
|
+
});
|
|
31
|
+
var componentInfo = (0, _vue.computed)(function () {
|
|
32
|
+
return {
|
|
33
|
+
theme: themeRef.value,
|
|
34
|
+
token: token.value,
|
|
35
|
+
hashId: hashId.value,
|
|
36
|
+
path: ['jetlinks-components', prefixCls.value, rootPrefixCls.value, iconPrefixCls.value]
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
var wrapSSR = (0, _internal.useStyleRegister)(componentInfo, function () {
|
|
40
|
+
var componentCls = ".".concat(prefixCls.value);
|
|
41
|
+
var componentToken = {
|
|
42
|
+
token: (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, token.value), _variable.default), {}, {
|
|
43
|
+
componentCls: componentCls,
|
|
44
|
+
prefixCls: prefixCls.value,
|
|
45
|
+
iconCls: ".".concat(iconPrefixCls.value),
|
|
46
|
+
antCls: ".".concat(rootPrefixCls.value)
|
|
47
|
+
}),
|
|
48
|
+
hashId: hashId.value,
|
|
49
|
+
componentCls: componentCls
|
|
50
|
+
};
|
|
51
|
+
return [(0, _style.genCommonStyle)(token.value, prefixCls.value)].concat((0, _toConsumableArray2.default)(styleFn.map(function (item) {
|
|
52
|
+
return item(componentToken);
|
|
53
|
+
})));
|
|
54
|
+
});
|
|
55
|
+
return [wrapSSR, hashId];
|
|
56
|
+
};
|
|
23
57
|
};
|
|
24
58
|
var _default = exports.default = genCompoentStyle;
|
package/lib/style/variable.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetlinks-web/components",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -154,9 +154,9 @@
|
|
|
154
154
|
"webpack-dev-server": "^4.0.0",
|
|
155
155
|
"webpack-merge": "^5.0.0",
|
|
156
156
|
"webpackbar": "^5.0.2",
|
|
157
|
-
"@jetlinks-web/utils": "^1.3.6",
|
|
158
157
|
"@jetlinks-web/hooks": "^1.1.2",
|
|
159
|
-
"@jetlinks-web/constants": "^1.0.9"
|
|
158
|
+
"@jetlinks-web/constants": "^1.0.9",
|
|
159
|
+
"@jetlinks-web/utils": "^1.3.6"
|
|
160
160
|
},
|
|
161
161
|
"publishConfig": {
|
|
162
162
|
"registry": "https://registry.npmjs.org/",
|