@jetlinks-web/components 3.3.12 → 3.3.14

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 (103) hide show
  1. package/es/AutoComplete/AutoComplete.md +41 -0
  2. package/es/BadgeStatus/BadgeStatus.md +37 -0
  3. package/es/CardSelect/CardSelect.md +56 -0
  4. package/es/CardSelect/style/index.js +3 -3
  5. package/es/CheckButton/CheckButton.md +37 -0
  6. package/es/CheckButton/style/index.js +9 -9
  7. package/es/ConfigProvider/ConfigProvider.md +40 -0
  8. package/es/DragModal/DragModal.md +47 -0
  9. package/es/DragModal/style/index.js +6 -6
  10. package/es/EditTable/EditTable.md +62 -0
  11. package/es/EditTable/FormItem.js +18 -15
  12. package/es/EditTable/components/Search/sort.js +15 -1
  13. package/es/EditTable/style/body.js +8 -6
  14. package/es/EditTable/style/group.js +3 -3
  15. package/es/EditTable/style/header.js +3 -3
  16. package/es/EditTable/style/menu.js +3 -3
  17. package/es/EditTable/style/table.js +3 -3
  18. package/es/Ellipsis/Ellipsis.md +45 -0
  19. package/es/Empty/Empty.md +34 -0
  20. package/es/FullPage/FullPage.js +15 -5
  21. package/es/FullPage/FullPage.md +31 -0
  22. package/es/Icon/Icon.md +33 -0
  23. package/es/LocaleProvider/LocaleProvider.md +25 -0
  24. package/es/LocaleReciver/LocaleReciver.md +42 -0
  25. package/es/Markdown/Markdown.md +40 -0
  26. package/es/PermissionButton/PermissionButton.md +40 -0
  27. package/es/ProLayout/ProLayout.md +63 -0
  28. package/es/ProLayout/SiderMenu/style.js +105 -26
  29. package/es/ProLayout/TopHeader/style.js +55 -11
  30. package/es/ProTable/ProTable.js +2 -4
  31. package/es/ProTable/ProTable.md +70 -0
  32. package/es/ProTable/style/index.js +11 -8
  33. package/es/RadioButton/RadioButton.md +32 -0
  34. package/es/RadioButton/style/index.js +3 -2
  35. package/es/Scrollbar/Scrollbar.md +43 -0
  36. package/es/Scrollbar/style/index.js +9 -9
  37. package/es/Search/Search.md +60 -0
  38. package/es/Search/style/search.js +5 -5
  39. package/es/Skeleton/Skeleton.md +50 -0
  40. package/es/Skeleton/components/Page.js +18 -5
  41. package/es/Skeleton/style/index.js +12 -6
  42. package/es/TimeFormat/TimeFormat.md +25 -0
  43. package/es/Title/Title.md +33 -0
  44. package/es/Title/style/index.js +2 -2
  45. package/es/ValueItem/ValueItem.md +58 -0
  46. package/es/VirtualTable/VirtualTable.md +42 -0
  47. package/es/VirtualTable/style/index.js +7 -4
  48. package/es/components.md +108 -0
  49. package/es/style/scrollbar.js +24 -0
  50. package/es/style/styleRegister.js +45 -11
  51. package/es/style/variable.js +1 -4
  52. package/lib/AutoComplete/AutoComplete.md +41 -0
  53. package/lib/BadgeStatus/BadgeStatus.md +37 -0
  54. package/lib/CardSelect/CardSelect.md +56 -0
  55. package/lib/CardSelect/style/index.js +3 -3
  56. package/lib/CheckButton/CheckButton.md +37 -0
  57. package/lib/CheckButton/style/index.js +9 -9
  58. package/lib/ConfigProvider/ConfigProvider.md +40 -0
  59. package/lib/DragModal/DragModal.md +47 -0
  60. package/lib/DragModal/style/index.js +6 -6
  61. package/lib/EditTable/EditTable.md +62 -0
  62. package/lib/EditTable/FormItem.js +18 -15
  63. package/lib/EditTable/components/Search/sort.js +15 -1
  64. package/lib/EditTable/style/body.js +8 -6
  65. package/lib/EditTable/style/group.js +3 -3
  66. package/lib/EditTable/style/header.js +3 -3
  67. package/lib/EditTable/style/menu.js +3 -3
  68. package/lib/EditTable/style/table.js +3 -3
  69. package/lib/Ellipsis/Ellipsis.md +45 -0
  70. package/lib/Empty/Empty.md +34 -0
  71. package/lib/FullPage/FullPage.js +15 -5
  72. package/lib/FullPage/FullPage.md +31 -0
  73. package/lib/Icon/Icon.md +33 -0
  74. package/lib/LocaleProvider/LocaleProvider.md +25 -0
  75. package/lib/LocaleReciver/LocaleReciver.md +42 -0
  76. package/lib/Markdown/Markdown.md +40 -0
  77. package/lib/PermissionButton/PermissionButton.md +40 -0
  78. package/lib/ProLayout/ProLayout.md +63 -0
  79. package/lib/ProLayout/SiderMenu/style.js +104 -25
  80. package/lib/ProLayout/TopHeader/style.js +55 -11
  81. package/lib/ProTable/ProTable.js +2 -4
  82. package/lib/ProTable/ProTable.md +70 -0
  83. package/lib/ProTable/style/index.js +10 -7
  84. package/lib/RadioButton/RadioButton.md +32 -0
  85. package/lib/RadioButton/style/index.js +3 -2
  86. package/lib/Scrollbar/Scrollbar.md +43 -0
  87. package/lib/Scrollbar/style/index.js +8 -8
  88. package/lib/Search/Search.md +60 -0
  89. package/lib/Search/style/search.js +5 -5
  90. package/lib/Skeleton/Skeleton.md +50 -0
  91. package/lib/Skeleton/components/Page.js +18 -5
  92. package/lib/Skeleton/style/index.js +12 -6
  93. package/lib/TimeFormat/TimeFormat.md +25 -0
  94. package/lib/Title/Title.md +33 -0
  95. package/lib/Title/style/index.js +2 -2
  96. package/lib/ValueItem/ValueItem.md +58 -0
  97. package/lib/VirtualTable/VirtualTable.md +42 -0
  98. package/lib/VirtualTable/style/index.js +6 -3
  99. package/lib/components.md +108 -0
  100. package/lib/style/scrollbar.js +30 -0
  101. package/lib/style/styleRegister.js +44 -10
  102. package/lib/style/variable.js +1 -4
  103. package/package.json +1 -1
@@ -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.14",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",