@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.
- package/es/AutoComplete/AutoComplete.md +41 -0
- package/es/BadgeStatus/BadgeStatus.md +37 -0
- package/es/CardSelect/CardSelect.md +56 -0
- package/es/CardSelect/style/index.js +3 -3
- package/es/CheckButton/CheckButton.md +37 -0
- package/es/CheckButton/style/index.js +9 -9
- package/es/ConfigProvider/ConfigProvider.md +40 -0
- package/es/DragModal/DragModal.md +47 -0
- package/es/DragModal/style/index.js +6 -6
- package/es/EditTable/EditTable.md +62 -0
- 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/Ellipsis/Ellipsis.md +45 -0
- package/es/Empty/Empty.md +34 -0
- package/es/FullPage/FullPage.js +15 -5
- package/es/FullPage/FullPage.md +31 -0
- package/es/Icon/Icon.md +33 -0
- package/es/LocaleProvider/LocaleProvider.md +25 -0
- package/es/LocaleReciver/LocaleReciver.md +42 -0
- package/es/Markdown/Markdown.md +40 -0
- package/es/PermissionButton/PermissionButton.md +40 -0
- package/es/ProLayout/ProLayout.md +63 -0
- 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/ProTable.md +70 -0
- package/es/ProTable/style/index.js +11 -8
- package/es/RadioButton/RadioButton.md +32 -0
- package/es/RadioButton/style/index.js +3 -2
- package/es/Scrollbar/Scrollbar.md +43 -0
- package/es/Scrollbar/style/index.js +9 -9
- package/es/Search/Search.md +60 -0
- package/es/Search/style/search.js +5 -5
- package/es/Skeleton/Skeleton.md +50 -0
- package/es/Skeleton/components/Page.js +18 -5
- package/es/Skeleton/style/index.js +12 -6
- package/es/TimeFormat/TimeFormat.md +25 -0
- package/es/Title/Title.md +33 -0
- package/es/Title/style/index.js +2 -2
- package/es/ValueItem/ValueItem.md +58 -0
- package/es/VirtualTable/VirtualTable.md +42 -0
- package/es/VirtualTable/style/index.js +7 -4
- package/es/components.md +108 -0
- package/es/style/scrollbar.js +24 -0
- package/es/style/styleRegister.js +45 -11
- package/es/style/variable.js +1 -4
- package/lib/AutoComplete/AutoComplete.md +41 -0
- package/lib/BadgeStatus/BadgeStatus.md +37 -0
- package/lib/CardSelect/CardSelect.md +56 -0
- package/lib/CardSelect/style/index.js +3 -3
- package/lib/CheckButton/CheckButton.md +37 -0
- package/lib/CheckButton/style/index.js +9 -9
- package/lib/ConfigProvider/ConfigProvider.md +40 -0
- package/lib/DragModal/DragModal.md +47 -0
- package/lib/DragModal/style/index.js +6 -6
- package/lib/EditTable/EditTable.md +62 -0
- 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/Ellipsis/Ellipsis.md +45 -0
- package/lib/Empty/Empty.md +34 -0
- package/lib/FullPage/FullPage.js +15 -5
- package/lib/FullPage/FullPage.md +31 -0
- package/lib/Icon/Icon.md +33 -0
- package/lib/LocaleProvider/LocaleProvider.md +25 -0
- package/lib/LocaleReciver/LocaleReciver.md +42 -0
- package/lib/Markdown/Markdown.md +40 -0
- package/lib/PermissionButton/PermissionButton.md +40 -0
- package/lib/ProLayout/ProLayout.md +63 -0
- 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/ProTable.md +70 -0
- package/lib/ProTable/style/index.js +10 -7
- package/lib/RadioButton/RadioButton.md +32 -0
- package/lib/RadioButton/style/index.js +3 -2
- package/lib/Scrollbar/Scrollbar.md +43 -0
- package/lib/Scrollbar/style/index.js +8 -8
- package/lib/Search/Search.md +60 -0
- package/lib/Search/style/search.js +5 -5
- package/lib/Skeleton/Skeleton.md +50 -0
- package/lib/Skeleton/components/Page.js +18 -5
- package/lib/Skeleton/style/index.js +12 -6
- package/lib/TimeFormat/TimeFormat.md +25 -0
- package/lib/Title/Title.md +33 -0
- package/lib/Title/style/index.js +2 -2
- package/lib/ValueItem/ValueItem.md +58 -0
- package/lib/VirtualTable/VirtualTable.md +42 -0
- package/lib/VirtualTable/style/index.js +6 -3
- package/lib/components.md +108 -0
- package/lib/style/scrollbar.js +30 -0
- package/lib/style/styleRegister.js +44 -10
- package/lib/style/variable.js +1 -4
- 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
|
|
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