@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.
Files changed (51) hide show
  1. package/es/CardSelect/style/index.js +3 -3
  2. package/es/CheckButton/style/index.js +9 -9
  3. package/es/DragModal/style/index.js +6 -6
  4. package/es/EditTable/FormItem.js +18 -15
  5. package/es/EditTable/components/Search/sort.js +15 -1
  6. package/es/EditTable/style/body.js +8 -6
  7. package/es/EditTable/style/group.js +3 -3
  8. package/es/EditTable/style/header.js +3 -3
  9. package/es/EditTable/style/menu.js +3 -3
  10. package/es/EditTable/style/table.js +3 -3
  11. package/es/FullPage/FullPage.js +15 -5
  12. package/es/ProLayout/SiderMenu/style.js +105 -26
  13. package/es/ProLayout/TopHeader/style.js +55 -11
  14. package/es/ProTable/ProTable.js +2 -4
  15. package/es/ProTable/style/index.js +11 -8
  16. package/es/RadioButton/style/index.js +3 -2
  17. package/es/Scrollbar/style/index.js +9 -9
  18. package/es/Search/style/search.js +5 -5
  19. package/es/Skeleton/components/Page.js +18 -5
  20. package/es/Skeleton/style/index.js +12 -6
  21. package/es/Title/style/index.js +2 -2
  22. package/es/VirtualTable/style/index.js +7 -4
  23. package/es/style/scrollbar.js +24 -0
  24. package/es/style/styleRegister.js +45 -11
  25. package/es/style/variable.js +1 -4
  26. package/lib/CardSelect/style/index.js +3 -3
  27. package/lib/CheckButton/style/index.js +9 -9
  28. package/lib/DragModal/style/index.js +6 -6
  29. package/lib/EditTable/FormItem.js +18 -15
  30. package/lib/EditTable/components/Search/sort.js +15 -1
  31. package/lib/EditTable/style/body.js +8 -6
  32. package/lib/EditTable/style/group.js +3 -3
  33. package/lib/EditTable/style/header.js +3 -3
  34. package/lib/EditTable/style/menu.js +3 -3
  35. package/lib/EditTable/style/table.js +3 -3
  36. package/lib/FullPage/FullPage.js +15 -5
  37. package/lib/ProLayout/SiderMenu/style.js +104 -25
  38. package/lib/ProLayout/TopHeader/style.js +55 -11
  39. package/lib/ProTable/ProTable.js +2 -4
  40. package/lib/ProTable/style/index.js +10 -7
  41. package/lib/RadioButton/style/index.js +3 -2
  42. package/lib/Scrollbar/style/index.js +8 -8
  43. package/lib/Search/style/search.js +5 -5
  44. package/lib/Skeleton/components/Page.js +18 -5
  45. package/lib/Skeleton/style/index.js +12 -6
  46. package/lib/Title/style/index.js +2 -2
  47. package/lib/VirtualTable/style/index.js +6 -3
  48. package/lib/style/scrollbar.js +30 -0
  49. package/lib/style/styleRegister.js +44 -10
  50. package/lib/style/variable.js +1 -4
  51. 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 genVirtualTableStyle = function genVirtualTableStyle() {
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 (0, _internal.genComponentStyleHook)('jetlinks-components', function (_token, info) {
14
- var componentToken = {
15
- token: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _token), _variable.default),
16
- hashId: info.hashId,
17
- componentCls: ".".concat(_token.prefixCls)
18
- };
19
- return (0, _toConsumableArray2.default)(styleFn.map(function (item) {
20
- return item(componentToken);
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;
@@ -4,7 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = exports.default = {
8
- textColorTitle: '#000',
9
- textColorSubtitle: '#263237'
10
- };
7
+ var _default = exports.default = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetlinks-web/components",
3
- "version": "3.3.12",
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/",