@aloudata/aloudata-design 0.1.0-beta1 → 0.1.1
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/README.md +22 -13
- package/es/Button/demo/Icon/index.d.ts +3 -0
- package/es/Button/demo/Icon/index.js +67 -0
- package/{src → es}/Button/demo/Icon/index.less +0 -0
- package/es/Button/demo/basic/index.d.ts +4 -0
- package/es/Button/demo/basic/index.js +57 -0
- package/{src → es}/Button/demo/basic/index.less +0 -1
- package/es/Button/demo/disable/index.d.ts +3 -0
- package/es/Button/demo/disable/index.js +23 -0
- package/{src → es}/Button/demo/disable/index.less +0 -0
- package/es/Button/demo/href/index.d.ts +2 -0
- package/es/Button/demo/href/index.js +17 -0
- package/es/Button/demo/loading/index.d.ts +3 -0
- package/es/Button/demo/loading/index.js +37 -0
- package/{src → es}/Button/demo/loading/index.less +0 -0
- package/es/Button/index.d.ts +50 -0
- package/es/Button/index.js +108 -0
- package/es/Button/style/index.d.ts +2 -0
- package/es/Button/style/index.js +2 -0
- package/{src → es}/Button/style/index.less +5 -5
- package/es/Dropdown/Button.d.ts +69 -0
- package/es/Dropdown/Button.js +39 -0
- package/es/Dropdown/demo/basic/index.d.ts +4 -0
- package/es/Dropdown/demo/basic/index.js +18 -0
- package/es/Dropdown/demo/button/index.d.ts +3 -0
- package/es/Dropdown/demo/button/index.js +159 -0
- package/{src → es}/Dropdown/demo/button/index.less +0 -0
- package/es/Dropdown/demo/placement/index.d.ts +2 -0
- package/es/Dropdown/demo/placement/index.js +40 -0
- package/es/Dropdown/demo/subMenu/index.d.ts +2 -0
- package/es/Dropdown/demo/subMenu/index.js +42 -0
- package/es/Dropdown/demo/trigger/index.d.ts +2 -0
- package/es/Dropdown/demo/trigger/index.js +17 -0
- package/es/Dropdown/index.d.ts +59 -0
- package/es/Dropdown/index.js +33 -0
- package/es/Dropdown/style/index.d.ts +2 -0
- package/es/Dropdown/style/index.js +2 -0
- package/{src → es}/Dropdown/style/index.less +0 -0
- package/{src → es}/Icon/iconfont/demo.css +0 -0
- package/{src → es}/Icon/iconfont/demo_index.html +49 -3
- package/es/Icon/iconfont/iconfont.css +101 -0
- package/es/Icon/iconfont/iconfont.js +46 -0
- package/{src → es}/Icon/iconfont/iconfont.json +14 -0
- package/es/Icon/iconfont/iconfont.ttf +0 -0
- package/es/Icon/iconfont/iconfont.woff +0 -0
- package/es/Icon/iconfont/iconfont.woff2 +0 -0
- package/es/Icon/index.d.ts +11 -0
- package/es/Icon/index.js +42 -0
- package/{src → es}/Icon/index.less +3 -3
- package/es/Input/components/Group/index.d.ts +15 -0
- package/es/Input/components/Group/index.js +12 -0
- package/es/Input/components/Password/index.d.ts +10 -0
- package/es/Input/components/Password/index.js +20 -0
- package/es/Input/components/TextArea/index.d.ts +52 -0
- package/es/Input/components/TextArea/index.js +14 -0
- package/es/Input/demo/allowClear/index.d.ts +3 -0
- package/es/Input/demo/allowClear/index.js +11 -0
- package/{src → es}/Input/demo/allowClear/index.less +0 -0
- package/es/Input/demo/basic/index.d.ts +4 -0
- package/es/Input/demo/basic/index.js +65 -0
- package/{src → es}/Input/demo/basic/index.less +1 -1
- package/es/Input/demo/gourp/index.d.ts +2 -0
- package/es/Input/demo/gourp/index.js +67 -0
- package/es/Input/demo/password/index.d.ts +3 -0
- package/es/Input/demo/password/index.js +21 -0
- package/{src → es}/Input/demo/password/index.less +0 -0
- package/es/Input/demo/prefix/index.d.ts +3 -0
- package/es/Input/demo/prefix/index.js +17 -0
- package/{src → es}/Input/demo/prefix/index.less +0 -0
- package/es/Input/demo/showCount/index.d.ts +3 -0
- package/es/Input/demo/showCount/index.js +17 -0
- package/{src → es}/Input/demo/showCount/index.less +0 -0
- package/es/Input/demo/textArea/autoSize.d.ts +2 -0
- package/es/Input/demo/textArea/autoSize.js +50 -0
- package/es/Input/index.d.ts +65 -0
- package/es/Input/index.js +46 -0
- package/es/Input/style/index.d.ts +2 -0
- package/es/Input/style/index.js +2 -0
- package/{src → es}/Input/style/index.less +4 -1
- package/es/Menu/Divider.d.ts +5 -0
- package/es/Menu/Divider.js +15 -0
- package/es/Menu/MenuItem.d.ts +17 -0
- package/es/Menu/MenuItem.js +15 -0
- package/es/Menu/SubMenu.d.ts +26 -0
- package/es/Menu/SubMenu.js +29 -0
- package/es/Menu/index.d.ts +20 -0
- package/es/Menu/index.js +31 -0
- package/es/Menu/style/index.d.ts +2 -0
- package/es/Menu/style/index.js +2 -0
- package/{src → es}/Menu/style/index.less +0 -0
- package/es/Select/BaseSelect.d.ts +5 -0
- package/es/Select/BaseSelect.js +400 -0
- package/{src/Select/OptionsList/OptGroup.tsx → es/Select/OptionsList/OptGroup.d.ts} +2 -4
- package/es/Select/OptionsList/OptGroup.js +6 -0
- package/es/Select/OptionsList/OptionItem/RenderGroup.d.ts +9 -0
- package/es/Select/OptionsList/OptionItem/RenderGroup.js +16 -0
- package/es/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +8 -0
- package/es/Select/OptionsList/OptionItem/RenderLabelIcon.js +44 -0
- package/es/Select/OptionsList/OptionItem/RenderOption.d.ts +16 -0
- package/es/Select/OptionsList/OptionItem/RenderOption.js +79 -0
- package/es/Select/OptionsList/OptionItem/RenderTooltip.d.ts +8 -0
- package/es/Select/OptionsList/OptionItem/RenderTooltip.js +25 -0
- package/es/Select/OptionsList/OptionItem.d.ts +4 -0
- package/es/Select/OptionsList/OptionItem.js +4 -0
- package/es/Select/OptionsList/Options.d.ts +7 -0
- package/es/Select/OptionsList/Options.js +6 -0
- package/es/Select/OptionsList/index.d.ts +4 -0
- package/es/Select/OptionsList/index.js +187 -0
- package/es/Select/Selector/index.d.ts +4 -0
- package/es/Select/Selector/index.js +252 -0
- package/es/Select/VirtualList.d.ts +5 -0
- package/es/Select/VirtualList.js +29 -0
- package/es/Select/demo/disabled/index.d.ts +2 -0
- package/es/Select/demo/disabled/index.js +50 -0
- package/es/Select/demo/multiple/index.d.ts +2 -0
- package/es/Select/demo/multiple/index.js +140 -0
- package/es/Select/demo/options/index.d.ts +2 -0
- package/es/Select/demo/options/index.js +55 -0
- package/es/Select/demo/single/index.d.ts +3 -0
- package/es/Select/demo/single/index.js +89 -0
- package/es/Select/demo/single/index.less +5 -0
- package/es/Select/hooks/useCacheOption.d.ts +9 -0
- package/es/Select/hooks/useCacheOption.js +107 -0
- package/es/Select/index.d.ts +12 -0
- package/es/Select/index.js +9 -0
- package/es/Select/interface.d.ts +227 -0
- package/es/Select/interface.js +1 -0
- package/es/Select/style/index.d.ts +2 -0
- package/es/Select/style/index.js +2 -0
- package/{src → es}/Select/style/index.less +3 -10
- package/es/Select/utils.d.ts +21 -0
- package/es/Select/utils.js +193 -0
- package/es/Tabs/TabPane.d.ts +21 -0
- package/es/Tabs/TabPane.js +12 -0
- package/es/Tabs/demo/adaptHeight/index.d.ts +3 -0
- package/es/Tabs/demo/adaptHeight/index.js +19 -0
- package/{src → es}/Tabs/demo/adaptHeight/index.less +0 -0
- package/es/Tabs/demo/basic/index.d.ts +4 -0
- package/es/Tabs/demo/basic/index.js +44 -0
- package/{src → es}/Tabs/demo/basic/index.less +0 -0
- package/es/Tabs/demo/horizontalScroll/index.d.ts +3 -0
- package/es/Tabs/demo/horizontalScroll/index.js +30 -0
- package/{src → es}/Tabs/demo/horizontalScroll/index.less +0 -0
- package/es/Tabs/index.d.ts +41 -0
- package/es/Tabs/index.js +42 -0
- package/es/Tabs/style/index.d.ts +2 -0
- package/es/Tabs/style/index.js +2 -0
- package/{src → es}/Tabs/style/index.less +0 -0
- package/es/Tooltip/demo/basic/index.d.ts +2 -0
- package/es/Tooltip/demo/basic/index.js +7 -0
- package/es/Tooltip/demo/overflow/index.d.ts +2 -0
- package/es/Tooltip/demo/overflow/index.js +7 -0
- package/es/Tooltip/demo/placement/index.d.ts +6 -0
- package/es/Tooltip/demo/placement/index.js +70 -0
- package/{src → es}/Tooltip/demo/placement/index.less +0 -0
- package/es/Tooltip/demo/trigger/index.d.ts +3 -0
- package/es/Tooltip/demo/trigger/index.js +20 -0
- package/{src → es}/Tooltip/demo/trigger/index.less +0 -0
- package/es/Tooltip/index.d.ts +64 -0
- package/es/Tooltip/index.js +33 -0
- package/es/Tooltip/style/index.d.ts +2 -0
- package/es/Tooltip/style/index.js +2 -0
- package/{src → es}/Tooltip/style/index.less +0 -0
- package/es/_utils/hooks/useControlledState.d.ts +2 -0
- package/es/_utils/hooks/useControlledState.js +54 -0
- package/es/_utils/hooks/usePrefixCls.d.ts +2 -0
- package/es/_utils/hooks/usePrefixCls.js +14 -0
- package/es/index.d.ts +8 -0
- package/{src/index.ts → es/index.js} +0 -0
- package/es/style/index.d.ts +2 -0
- package/{src/style/index.ts → es/style/index.js} +0 -0
- package/{src → es}/style/index.less +0 -0
- package/{src → es}/style/mixins/index.less +0 -0
- package/{src → es}/style/themes/default/index.less +1 -1
- package/{lib/style/themes/default/themeColor.less → es/style/themes/default/themeColor.module.less} +0 -0
- package/es/style/themes/default/themeColor.module.less.d.ts +108 -0
- package/lib/Button/demo/basic/index.less +0 -1
- package/lib/Button/index.js +2 -2
- package/lib/Button/style/index.less +5 -5
- package/lib/Dropdown/demo/button/index.js +1 -1
- package/lib/Icon/iconfont/demo_index.html +49 -3
- package/lib/Icon/iconfont/iconfont.css +11 -3
- package/lib/Icon/iconfont/iconfont.js +1 -1
- package/lib/Icon/iconfont/iconfont.json +14 -0
- package/lib/Icon/iconfont/iconfont.ttf +0 -0
- package/lib/Icon/iconfont/iconfont.woff +0 -0
- package/lib/Icon/iconfont/iconfont.woff2 +0 -0
- package/lib/Icon/index.less +3 -3
- package/lib/Input/demo/basic/index.less +1 -1
- package/lib/Input/style/index.less +4 -1
- package/lib/Select/OptionsList/OptionItem/RenderGroup.d.ts +9 -0
- package/lib/Select/OptionsList/OptionItem/RenderGroup.js +27 -0
- package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +8 -0
- package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.js +58 -0
- package/lib/Select/OptionsList/OptionItem/RenderOption.d.ts +16 -0
- package/lib/Select/OptionsList/OptionItem/RenderOption.js +94 -0
- package/lib/Select/OptionsList/OptionItem/RenderTooltip.d.ts +8 -0
- package/lib/Select/OptionsList/OptionItem/RenderTooltip.js +37 -0
- package/lib/Select/OptionsList/OptionItem.d.ts +4 -35
- package/lib/Select/OptionsList/OptionItem.js +26 -172
- package/lib/Select/OptionsList/Options.d.ts +2 -2
- package/lib/Select/OptionsList/index.js +1 -1
- package/lib/Select/Selector/index.d.ts +2 -2
- package/lib/Select/Selector/index.js +13 -10
- package/lib/Select/demo/single/index.d.ts +1 -0
- package/lib/Select/demo/single/index.js +5 -1
- package/lib/Select/demo/single/index.less +5 -0
- package/lib/Select/interface.d.ts +8 -2
- package/lib/Select/style/index.less +3 -10
- package/lib/Tooltip/index.d.ts +1 -0
- package/lib/Tooltip/index.js +3 -1
- package/lib/style/themes/default/index.less +1 -1
- package/{src/style/themes/default/themeColor.less → lib/style/themes/default/themeColor.module.less} +0 -0
- package/lib/style/themes/default/themeColor.module.less.d.ts +108 -0
- package/package.json +17 -7
- package/.editorconfig +0 -16
- package/.eslintrc.js +0 -43
- package/.fatherrc.ts +0 -16
- package/.prettierignore +0 -7
- package/.prettierrc.js +0 -1
- package/.stylelintrc.json +0 -36
- package/.umirc.ts +0 -15
- package/commitlint.config.js +0 -21
- package/docs/index.md +0 -21
- package/jest/setupTests.js +0 -1
- package/public/favicon.ico +0 -0
- package/src/Button/demo/Icon/index.tsx +0 -41
- package/src/Button/demo/basic/index.tsx +0 -26
- package/src/Button/demo/disable/index.tsx +0 -16
- package/src/Button/demo/href/index.tsx +0 -14
- package/src/Button/demo/loading/index.tsx +0 -21
- package/src/Button/index.md +0 -25
- package/src/Button/index.test.tsx +0 -58
- package/src/Button/index.tsx +0 -136
- package/src/Button/style/index.ts +0 -2
- package/src/Dropdown/Button.tsx +0 -93
- package/src/Dropdown/demo/basic/index.tsx +0 -20
- package/src/Dropdown/demo/button/index.tsx +0 -98
- package/src/Dropdown/demo/placement/index.tsx +0 -47
- package/src/Dropdown/demo/subMenu/index.tsx +0 -35
- package/src/Dropdown/demo/trigger/index.tsx +0 -19
- package/src/Dropdown/index.md +0 -35
- package/src/Dropdown/index.test.tsx +0 -185
- package/src/Dropdown/index.tsx +0 -71
- package/src/Dropdown/style/index.ts +0 -2
- package/src/Icon/iconfont/iconfont.css +0 -93
- package/src/Icon/iconfont/iconfont.js +0 -1
- package/src/Icon/iconfont/iconfont.ttf +0 -0
- package/src/Icon/iconfont/iconfont.woff +0 -0
- package/src/Icon/iconfont/iconfont.woff2 +0 -0
- package/src/Icon/index.tsx +0 -38
- package/src/Input/components/Group/index.tsx +0 -21
- package/src/Input/components/Password/index.tsx +0 -23
- package/src/Input/components/TextArea/index.tsx +0 -57
- package/src/Input/demo/allowClear/index.tsx +0 -10
- package/src/Input/demo/basic/index.tsx +0 -25
- package/src/Input/demo/gourp/index.tsx +0 -30
- package/src/Input/demo/password/index.tsx +0 -11
- package/src/Input/demo/prefix/index.tsx +0 -13
- package/src/Input/demo/showCount/index.tsx +0 -16
- package/src/Input/demo/textArea/autoSize.tsx +0 -21
- package/src/Input/index.md +0 -37
- package/src/Input/index.test.tsx +0 -78
- package/src/Input/index.tsx +0 -91
- package/src/Input/style/index.ts +0 -2
- package/src/Menu/Divider.tsx +0 -12
- package/src/Menu/MenuItem.tsx +0 -24
- package/src/Menu/SubMenu.tsx +0 -37
- package/src/Menu/index.md +0 -36
- package/src/Menu/index.test.tsx +0 -144
- package/src/Menu/index.tsx +0 -27
- package/src/Menu/style/index.ts +0 -2
- package/src/Select/BaseSelect.tsx +0 -321
- package/src/Select/OptionsList/OptionItem.tsx +0 -151
- package/src/Select/OptionsList/Options.tsx +0 -11
- package/src/Select/OptionsList/index.tsx +0 -169
- package/src/Select/Selector/index.tsx +0 -211
- package/src/Select/VirtualList.tsx +0 -36
- package/src/Select/demo/disabled/index.tsx +0 -44
- package/src/Select/demo/multiple/index.tsx +0 -77
- package/src/Select/demo/options/index.tsx +0 -63
- package/src/Select/demo/single/index.tsx +0 -50
- package/src/Select/hooks/useCacheOption.ts +0 -67
- package/src/Select/index.md +0 -72
- package/src/Select/index.tsx +0 -23
- package/src/Select/interface.ts +0 -231
- package/src/Select/style/index.ts +0 -2
- package/src/Select/utils.tsx +0 -133
- package/src/Tabs/TabPane.tsx +0 -28
- package/src/Tabs/demo/adaptHeight/index.tsx +0 -33
- package/src/Tabs/demo/basic/index.tsx +0 -30
- package/src/Tabs/demo/horizontalScroll/index.tsx +0 -36
- package/src/Tabs/index.md +0 -30
- package/src/Tabs/index.test.tsx +0 -100
- package/src/Tabs/index.tsx +0 -64
- package/src/Tabs/style/index.ts +0 -2
- package/src/Tooltip/demo/basic/index.tsx +0 -10
- package/src/Tooltip/demo/overflow/index.tsx +0 -10
- package/src/Tooltip/demo/placement/index.tsx +0 -60
- package/src/Tooltip/demo/trigger/index.tsx +0 -22
- package/src/Tooltip/index.md +0 -28
- package/src/Tooltip/index.test.tsx +0 -152
- package/src/Tooltip/index.tsx +0 -113
- package/src/Tooltip/style/index.ts +0 -2
- package/src/_utils/hooks/useControlledState.ts +0 -39
- package/src/_utils/hooks/usePrefixCls.ts +0 -11
- package/tsconfig.json +0 -13
- package/typings.d.ts +0 -3
|
@@ -7,10 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
require("antd/es/tooltip/style");
|
|
11
|
-
|
|
12
|
-
var _tooltip = _interopRequireDefault(require("antd/es/tooltip"));
|
|
13
|
-
|
|
14
10
|
var _Icon = _interopRequireDefault(require("../../Icon"));
|
|
15
11
|
|
|
16
12
|
var _classnames3 = _interopRequireDefault(require("classnames"));
|
|
@@ -19,8 +15,12 @@ var _lodash = require("lodash");
|
|
|
19
15
|
|
|
20
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
21
17
|
|
|
18
|
+
var _Tooltip = _interopRequireDefault(require("../../Tooltip"));
|
|
19
|
+
|
|
22
20
|
var _rcOverflow = _interopRequireDefault(require("rc-overflow"));
|
|
23
21
|
|
|
22
|
+
var _themeColorModule = _interopRequireDefault(require("../../style/themes/default/themeColor.module.less"));
|
|
23
|
+
|
|
24
24
|
var _excluded = ["input", "disabled", "prefix", "size", "multiple", "bordered", "isFocused", "className", "visible", "style", "allowClear", "label", "mode", "value", "searchType", "arrowComponent", "closeComponent", "placeholder", "deleteValue", "optionLabelRenderer", "getOptionByValue", "onInputChange", "onAllowClear", "filteredOptions"];
|
|
25
25
|
|
|
26
26
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -67,7 +67,8 @@ var defaultArrowComponent = function defaultArrowComponent(prefix, size) {
|
|
|
67
67
|
return /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
68
68
|
className: "".concat(prefix, "-icon-arrow"),
|
|
69
69
|
size: size === 'large' ? ICON_LARGE_SIZE : ICON_SMALL_SIZE,
|
|
70
|
-
type: "expand_more1"
|
|
70
|
+
type: "expand_more1",
|
|
71
|
+
color: _themeColorModule.default.NL40
|
|
71
72
|
});
|
|
72
73
|
};
|
|
73
74
|
|
|
@@ -75,7 +76,8 @@ var defaultCloseComponent = function defaultCloseComponent(prefix, size) {
|
|
|
75
76
|
return /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
76
77
|
className: "".concat(prefix, "-icon-close"),
|
|
77
78
|
size: size === 'large' ? ICON_LARGE_SIZE : ICON_SMALL_SIZE,
|
|
78
|
-
type: "cancel"
|
|
79
|
+
type: "cancel",
|
|
80
|
+
color: _themeColorModule.default.NL40
|
|
79
81
|
});
|
|
80
82
|
};
|
|
81
83
|
|
|
@@ -205,10 +207,11 @@ var Selector = function Selector(props, ref) {
|
|
|
205
207
|
return /*#__PURE__*/_react.default.createElement("span", null, "\u7B49", valueItems.length, "\u9879");
|
|
206
208
|
};
|
|
207
209
|
|
|
208
|
-
return !input && !(0, _lodash.isNil)(value) ? /*#__PURE__*/_react.default.createElement(
|
|
210
|
+
return !input && !(0, _lodash.isNil)(value) ? /*#__PURE__*/_react.default.createElement(_Tooltip.default // @ts-ignore
|
|
211
|
+
, {
|
|
209
212
|
// @ts-ignore
|
|
210
213
|
title: allValueLabel === null || allValueLabel === void 0 ? void 0 : allValueLabel.join(','),
|
|
211
|
-
placement: "
|
|
214
|
+
placement: "top",
|
|
212
215
|
getTooltipContainer: function getTooltipContainer() {
|
|
213
216
|
var _selectorRef$current4;
|
|
214
217
|
|
|
@@ -234,8 +237,8 @@ var Selector = function Selector(props, ref) {
|
|
|
234
237
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
235
238
|
ref: selectorAllRef,
|
|
236
239
|
className: (0, _classnames3.default)("".concat(prefix, "-item-text"))
|
|
237
|
-
}, text))
|
|
238
|
-
null;
|
|
240
|
+
}, text)) // </Text>
|
|
241
|
+
: null;
|
|
239
242
|
};
|
|
240
243
|
|
|
241
244
|
return /*#__PURE__*/_react.default.createElement("div", _objectSpread({
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _index = _interopRequireDefault(require("../../index"));
|
|
11
11
|
|
|
12
|
+
require("./index.less");
|
|
13
|
+
|
|
12
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
15
|
|
|
14
16
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -66,7 +68,9 @@ var _default = function _default() {
|
|
|
66
68
|
value: "f"
|
|
67
69
|
}, "f"), /*#__PURE__*/_react.default.createElement(Option, {
|
|
68
70
|
key: "g",
|
|
69
|
-
|
|
71
|
+
title: "gg",
|
|
72
|
+
value: "g",
|
|
73
|
+
tooltip: "a"
|
|
70
74
|
}, "g")), /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
71
75
|
className: 'ald-select',
|
|
72
76
|
style: {
|
|
@@ -8,7 +8,7 @@ export interface IOption {
|
|
|
8
8
|
/**
|
|
9
9
|
列表单项主要文字
|
|
10
10
|
*/
|
|
11
|
-
label
|
|
11
|
+
label?: string | React.ReactNode;
|
|
12
12
|
/**
|
|
13
13
|
作为列表的 `key` 来使用
|
|
14
14
|
*/
|
|
@@ -16,7 +16,6 @@ export interface IOption {
|
|
|
16
16
|
/**
|
|
17
17
|
列表次要文字
|
|
18
18
|
*/
|
|
19
|
-
description?: string;
|
|
20
19
|
/**
|
|
21
20
|
是否禁用
|
|
22
21
|
*/
|
|
@@ -47,7 +46,14 @@ export interface IOptGroupProps {
|
|
|
47
46
|
}
|
|
48
47
|
export interface IOptionProps {
|
|
49
48
|
children?: React.ReactNode;
|
|
49
|
+
/**
|
|
50
|
+
* @description 默认根据次属性值进行筛选
|
|
51
|
+
*/
|
|
50
52
|
value: string | number;
|
|
53
|
+
/**
|
|
54
|
+
* @description 是否禁用
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
51
57
|
disabled?: boolean;
|
|
52
58
|
title?: string;
|
|
53
59
|
}
|
|
@@ -130,7 +130,8 @@
|
|
|
130
130
|
// box-shadow: 0 0 6px 0 @color-box-shadow-focused;
|
|
131
131
|
|
|
132
132
|
.@{select-prefix-cls-legacy} {
|
|
133
|
-
&-item-all
|
|
133
|
+
&-item-all,
|
|
134
|
+
&-item {
|
|
134
135
|
opacity: 0.5;
|
|
135
136
|
}
|
|
136
137
|
}
|
|
@@ -165,6 +166,7 @@
|
|
|
165
166
|
line-height: 22px;
|
|
166
167
|
white-space: nowrap;
|
|
167
168
|
text-overflow: ellipsis;
|
|
169
|
+
color: @NL0;
|
|
168
170
|
}
|
|
169
171
|
}
|
|
170
172
|
|
|
@@ -351,15 +353,6 @@
|
|
|
351
353
|
}
|
|
352
354
|
}
|
|
353
355
|
|
|
354
|
-
&-single,
|
|
355
|
-
&-focused {
|
|
356
|
-
.@{select-prefix-cls-legacy} {
|
|
357
|
-
&-item {
|
|
358
|
-
opacity: 0.5;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
|
|
363
356
|
// rc-trigger
|
|
364
357
|
&-dropdown {
|
|
365
358
|
position: absolute;
|
package/lib/Tooltip/index.d.ts
CHANGED
package/lib/Tooltip/index.js
CHANGED
|
@@ -27,6 +27,7 @@ function Tooltip(props) {
|
|
|
27
27
|
mouseLeaveDelay = props.mouseLeaveDelay,
|
|
28
28
|
getPopupContainer = props.getPopupContainer,
|
|
29
29
|
destroyTooltipOnHide = props.destroyTooltipOnHide,
|
|
30
|
+
getTooltipContainer = props.getTooltipContainer,
|
|
30
31
|
overlayClassName = props.overlayClassName;
|
|
31
32
|
return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
32
33
|
title: title,
|
|
@@ -39,6 +40,7 @@ function Tooltip(props) {
|
|
|
39
40
|
mouseEnterDelay: mouseEnterDelay,
|
|
40
41
|
mouseLeaveDelay: mouseLeaveDelay,
|
|
41
42
|
getPopupContainer: getPopupContainer,
|
|
42
|
-
destroyTooltipOnHide: destroyTooltipOnHide
|
|
43
|
+
destroyTooltipOnHide: destroyTooltipOnHide,
|
|
44
|
+
getTooltipContainer: getTooltipContainer
|
|
43
45
|
}, children);
|
|
44
46
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import './themeColor.less';
|
|
1
|
+
@import './themeColor.module.less';
|
|
2
2
|
@font-family:sans-serif,-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol','Noto Color Emoji';
|
|
3
3
|
@ald-prefix: 'ald';
|
|
4
4
|
|
package/{src/style/themes/default/themeColor.less → lib/style/themes/default/themeColor.module.less}
RENAMED
|
File without changes
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// This file is automatically generated.
|
|
2
|
+
// Please do not change this file!
|
|
3
|
+
interface CssExports {
|
|
4
|
+
'B10': string;
|
|
5
|
+
'B20': string;
|
|
6
|
+
'B30': string;
|
|
7
|
+
'B40': string;
|
|
8
|
+
'B50': string;
|
|
9
|
+
'B60': string;
|
|
10
|
+
'B70': string;
|
|
11
|
+
'B80': string;
|
|
12
|
+
'B90': string;
|
|
13
|
+
'B95': string;
|
|
14
|
+
'B98': string;
|
|
15
|
+
'BBG10': string;
|
|
16
|
+
'BBG15': string;
|
|
17
|
+
'BBG20': string;
|
|
18
|
+
'BBG30': string;
|
|
19
|
+
'BBG40': string;
|
|
20
|
+
'BBG50': string;
|
|
21
|
+
'BBG60': string;
|
|
22
|
+
'BBG70': string;
|
|
23
|
+
'BBG80': string;
|
|
24
|
+
'BBG90': string;
|
|
25
|
+
'BBG95': string;
|
|
26
|
+
'BBG97': string;
|
|
27
|
+
'BBG98': string;
|
|
28
|
+
'BG0': string;
|
|
29
|
+
'BG10': string;
|
|
30
|
+
'BG100': string;
|
|
31
|
+
'BG20': string;
|
|
32
|
+
'BG30': string;
|
|
33
|
+
'BG40': string;
|
|
34
|
+
'BG50': string;
|
|
35
|
+
'BG60': string;
|
|
36
|
+
'BG70': string;
|
|
37
|
+
'BG80': string;
|
|
38
|
+
'BG90': string;
|
|
39
|
+
'BG95': string;
|
|
40
|
+
'BG97': string;
|
|
41
|
+
'BLACK': string;
|
|
42
|
+
'IMAGE_HOLDER': string;
|
|
43
|
+
'MATE': string;
|
|
44
|
+
'ND0': string;
|
|
45
|
+
'ND10': string;
|
|
46
|
+
'ND20': string;
|
|
47
|
+
'ND30': string;
|
|
48
|
+
'ND40': string;
|
|
49
|
+
'ND50': string;
|
|
50
|
+
'ND60': string;
|
|
51
|
+
'ND70': string;
|
|
52
|
+
'ND80': string;
|
|
53
|
+
'ND90': string;
|
|
54
|
+
'ND95': string;
|
|
55
|
+
'ND97': string;
|
|
56
|
+
'NL0': string;
|
|
57
|
+
'NL10': string;
|
|
58
|
+
'NL20': string;
|
|
59
|
+
'NL30': string;
|
|
60
|
+
'NL40': string;
|
|
61
|
+
'NL50': string;
|
|
62
|
+
'NL60': string;
|
|
63
|
+
'NL70': string;
|
|
64
|
+
'NL80': string;
|
|
65
|
+
'NL90': string;
|
|
66
|
+
'NL95': string;
|
|
67
|
+
'NL97': string;
|
|
68
|
+
'SA10': string;
|
|
69
|
+
'SA20': string;
|
|
70
|
+
'SA30': string;
|
|
71
|
+
'SA40': string;
|
|
72
|
+
'SA50': string;
|
|
73
|
+
'SA60': string;
|
|
74
|
+
'SA70': string;
|
|
75
|
+
'SA80': string;
|
|
76
|
+
'SA90': string;
|
|
77
|
+
'SA95': string;
|
|
78
|
+
'SA98': string;
|
|
79
|
+
'SB10': string;
|
|
80
|
+
'SB20': string;
|
|
81
|
+
'SB30': string;
|
|
82
|
+
'SB40': string;
|
|
83
|
+
'SB50': string;
|
|
84
|
+
'SB60': string;
|
|
85
|
+
'SB70': string;
|
|
86
|
+
'SB80': string;
|
|
87
|
+
'SB90': string;
|
|
88
|
+
'SB95': string;
|
|
89
|
+
'SB98': string;
|
|
90
|
+
'SC10': string;
|
|
91
|
+
'SC20': string;
|
|
92
|
+
'SC30': string;
|
|
93
|
+
'SC40': string;
|
|
94
|
+
'SC50': string;
|
|
95
|
+
'SC60': string;
|
|
96
|
+
'SC70': string;
|
|
97
|
+
'SC80': string;
|
|
98
|
+
'SC90': string;
|
|
99
|
+
'SC95': string;
|
|
100
|
+
'SC98': string;
|
|
101
|
+
'SHADOW_ACTIONSHEET': string;
|
|
102
|
+
'SHADOW_CARD': string;
|
|
103
|
+
'SHADOW_NOTIFICATION': string;
|
|
104
|
+
'SHADOW_OPTION': string;
|
|
105
|
+
'WHITE': string;
|
|
106
|
+
}
|
|
107
|
+
export const cssExports: CssExports;
|
|
108
|
+
export default cssExports;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aloudata/aloudata-design",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
14
14
|
"test": "umi-test",
|
|
15
15
|
"test:coverage": "umi-test --coverage",
|
|
16
|
-
"prepublishOnly": "npm run build"
|
|
16
|
+
"prepublishOnly": "npm run build",
|
|
17
|
+
"release": "npm publish --access public",
|
|
18
|
+
"postpublish": "PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$PACKAGE_VERSION && git push --tags"
|
|
17
19
|
},
|
|
18
20
|
"module": "es/index.js",
|
|
19
21
|
"typings": "es/index.d.ts",
|
|
@@ -23,6 +25,10 @@
|
|
|
23
25
|
"pre-commit": "npm run lint && npm run stylelint && npm run test"
|
|
24
26
|
}
|
|
25
27
|
},
|
|
28
|
+
"files": [
|
|
29
|
+
"es",
|
|
30
|
+
"lib"
|
|
31
|
+
],
|
|
26
32
|
"gitHooks": {
|
|
27
33
|
"pre-commit": "lint-staged"
|
|
28
34
|
},
|
|
@@ -43,9 +49,7 @@
|
|
|
43
49
|
"rc-menu": "^9.3.2",
|
|
44
50
|
"rc-overflow": "^1.2.3",
|
|
45
51
|
"rc-trigger": "^5.2.10",
|
|
46
|
-
"rc-virtual-list": "^3.4.2"
|
|
47
|
-
"react": "^16.12.0 || ^17.0.0",
|
|
48
|
-
"react-dom": "^16.12.0 || ^17.0.0"
|
|
52
|
+
"rc-virtual-list": "^3.4.2"
|
|
49
53
|
},
|
|
50
54
|
"devDependencies": {
|
|
51
55
|
"@aloudata/eslint-config-base": "^0.0.6",
|
|
@@ -69,12 +73,18 @@
|
|
|
69
73
|
"gh-pages": "^3.0.0",
|
|
70
74
|
"husky": "^3.0.9",
|
|
71
75
|
"lint-staged": "^10.0.7",
|
|
72
|
-
"postcss": "8.4.
|
|
76
|
+
"postcss": "^8.4.7",
|
|
77
|
+
"postcss-less": "^6.0.0",
|
|
73
78
|
"prettier": "^2.2.1",
|
|
74
79
|
"stylelint": "^14.5.3",
|
|
75
|
-
"stylelint-config-standard": "^
|
|
80
|
+
"stylelint-config-standard": "^25.0.0",
|
|
81
|
+
"typescript": "4.1.2",
|
|
76
82
|
"yorkie": "^2.0.0"
|
|
77
83
|
},
|
|
84
|
+
"peerDependencies": {
|
|
85
|
+
"react": "^16.12.0 || ^17.0.0",
|
|
86
|
+
"react-dom": "^16.12.0 || ^17.0.0"
|
|
87
|
+
},
|
|
78
88
|
"jest": {
|
|
79
89
|
"setupFiles": [
|
|
80
90
|
"./jest/setupTests.js"
|
package/.editorconfig
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# http://editorconfig.org
|
|
2
|
-
root = true
|
|
3
|
-
|
|
4
|
-
[*]
|
|
5
|
-
indent_style = space
|
|
6
|
-
indent_size = 2
|
|
7
|
-
end_of_line = lf
|
|
8
|
-
charset = utf-8
|
|
9
|
-
trim_trailing_whitespace = true
|
|
10
|
-
insert_final_newline = true
|
|
11
|
-
|
|
12
|
-
[*.md]
|
|
13
|
-
trim_trailing_whitespace = false
|
|
14
|
-
|
|
15
|
-
[Makefile]
|
|
16
|
-
indent_style = tab
|
package/.eslintrc.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
extends: [
|
|
3
|
-
'@aloudata/eslint-config-base'
|
|
4
|
-
],
|
|
5
|
-
parserOptions: {
|
|
6
|
-
project: './tsconfig.json',
|
|
7
|
-
},
|
|
8
|
-
ignorePatterns: [
|
|
9
|
-
'**/*.less.d.ts',
|
|
10
|
-
'**/demo/*',
|
|
11
|
-
"**/iconfont.js",
|
|
12
|
-
"jest"
|
|
13
|
-
],
|
|
14
|
-
rules: {
|
|
15
|
-
'react/require-default-props': 'off',
|
|
16
|
-
'linebreak-style': 'off',
|
|
17
|
-
curly: ['error', 'all'],
|
|
18
|
-
'import/extensions': 'off',
|
|
19
|
-
'@typescript-eslint/type-annotation-spacing': ['error', { after: true }],
|
|
20
|
-
'@typescript-eslint/no-unsafe-member-access': ['error'],
|
|
21
|
-
// 'id-length': ['error', { properties: 'never', exceptions: ['i', 'j', 'e', '_'] }],
|
|
22
|
-
// 'react/jsx-key': ['error'],
|
|
23
|
-
'@typescript-eslint/naming-convention': [
|
|
24
|
-
'error',
|
|
25
|
-
{
|
|
26
|
-
selector: 'interface',
|
|
27
|
-
format: ['PascalCase'],
|
|
28
|
-
custom: {
|
|
29
|
-
regex: '^I[A-Z]',
|
|
30
|
-
match: true
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
selector: 'enum',
|
|
35
|
-
format: ['PascalCase'],
|
|
36
|
-
custom: {
|
|
37
|
-
regex: '^E[A-Z]',
|
|
38
|
-
match: true
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
}
|
|
43
|
-
};
|
package/.fatherrc.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
esm: 'babel', // 通过 babel 编译相关组件即可,而无需打包在一个文件中,实现在使用时可按需加载。
|
|
3
|
-
cjs: 'babel',
|
|
4
|
-
// lessInBabelMode: true, // less 转 css
|
|
5
|
-
// 打包的产物若需引入 antd ,则通过按需加载形式引入。
|
|
6
|
-
extraBabelPlugins: [
|
|
7
|
-
[
|
|
8
|
-
'babel-plugin-import',
|
|
9
|
-
{
|
|
10
|
-
libraryName: 'antd',
|
|
11
|
-
libraryDirectory: 'es',
|
|
12
|
-
style: true,
|
|
13
|
-
},
|
|
14
|
-
],
|
|
15
|
-
],
|
|
16
|
-
}
|
package/.prettierignore
DELETED
package/.prettierrc.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('@umijs/fabric').prettier;
|
package/.stylelintrc.json
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "stylelint-config-standard",
|
|
3
|
-
"ignoreFiles": [
|
|
4
|
-
"src/style/**/*",
|
|
5
|
-
"**/*.tsx",
|
|
6
|
-
"**/*.js",
|
|
7
|
-
"**/*.ts",
|
|
8
|
-
"**/*.png",
|
|
9
|
-
"**/*.css",
|
|
10
|
-
"**/*.json",
|
|
11
|
-
"**/*.md",
|
|
12
|
-
"**/*.ttf",
|
|
13
|
-
"**/*.woff",
|
|
14
|
-
"**/*.woff2",
|
|
15
|
-
"**/*.html"
|
|
16
|
-
],
|
|
17
|
-
"overrides": [{
|
|
18
|
-
"files": ["**/*.less"],
|
|
19
|
-
"customSyntax": "postcss-less",
|
|
20
|
-
"rules": {
|
|
21
|
-
"no-missing-end-of-source-newline": null,
|
|
22
|
-
"no-empty-source": null,
|
|
23
|
-
"selector-pseudo-class-no-unknown": [
|
|
24
|
-
true,
|
|
25
|
-
{
|
|
26
|
-
"ignorePseudoClasses": ["global", "local"]
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
"selector-class-pattern": ["^([a-z][a-zA-Z0-9]+)|(([a-z][a-z0-9]*)(-[a-z0-9]+)*$)$"],
|
|
30
|
-
"alpha-value-notation": null,
|
|
31
|
-
"color-function-notation": null,
|
|
32
|
-
"keyframes-name-pattern": "^[a-z][a-zA-Z0-9]+$",
|
|
33
|
-
"string-quotes": "single"
|
|
34
|
-
}
|
|
35
|
-
}]
|
|
36
|
-
}
|
package/.umirc.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'dumi';
|
|
2
|
-
export default defineConfig({
|
|
3
|
-
// mode:'site',
|
|
4
|
-
title: 'design',
|
|
5
|
-
logo: 'https://cdn.aloudata.com/source/workstation_test/static/logo.8b20330e.svg',
|
|
6
|
-
outputPath: 'docs-dist',
|
|
7
|
-
apiParser:{
|
|
8
|
-
propFilter:{
|
|
9
|
-
skipNodeModules: true,
|
|
10
|
-
skipPropsWithoutDoc:true
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
// mode:'site'
|
|
14
|
-
// more config: https://d.umijs.org/config
|
|
15
|
-
});
|
package/commitlint.config.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const OFF_NUM = 0;
|
|
2
|
-
const ERROR_NUM = 2;
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
extends: ['@commitlint/config-angular'],
|
|
6
|
-
rules: {
|
|
7
|
-
'type-enum': [ERROR_NUM, 'always', [
|
|
8
|
-
'feat', // 新功能(feature)
|
|
9
|
-
'fix', // 修补bug
|
|
10
|
-
'style', // 样式(不影响代码运行的变动)
|
|
11
|
-
'refactor', // 重构(即不是新增功能,也不是修改bug的代码变动)
|
|
12
|
-
'test', // 增加测试
|
|
13
|
-
'chore', // 构建过程或辅助工具的变动
|
|
14
|
-
'delete', // 删除内容
|
|
15
|
-
'doc', // 文档类修改
|
|
16
|
-
]],
|
|
17
|
-
'subject-full-stop': [OFF_NUM, 'never'],
|
|
18
|
-
'subject-case': [OFF_NUM, 'never']
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
};
|
package/docs/index.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
hero:
|
|
3
|
-
title: design
|
|
4
|
-
desc: design site example
|
|
5
|
-
actions:
|
|
6
|
-
- text: Getting Started
|
|
7
|
-
link: /components
|
|
8
|
-
features:
|
|
9
|
-
- icon: https://gw.alipayobjects.com/zos/bmw-prod/881dc458-f20b-407b-947a-95104b5ec82b/k79dm8ih_w144_h144.png
|
|
10
|
-
title: Feature 1
|
|
11
|
-
desc: Balabala
|
|
12
|
-
- icon: https://gw.alipayobjects.com/zos/bmw-prod/d60657df-0822-4631-9d7c-e7a869c2f21c/k79dmz3q_w126_h126.png
|
|
13
|
-
title: Feature 2
|
|
14
|
-
desc: Balabala
|
|
15
|
-
- icon: https://gw.alipayobjects.com/zos/bmw-prod/d1ee0c6f-5aed-4a45-a507-339a4bfe076c/k7bjsocq_w144_h144.png
|
|
16
|
-
title: Feature 3
|
|
17
|
-
desc: Balabala
|
|
18
|
-
footer: Open-source MIT Licensed | Copyright © 2020<br />Powered by [dumi](https://d.umijs.org)
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## Hello design!
|
package/jest/setupTests.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
jest.mock('../src/Icon/iconfont/iconfont.js', () => {});
|
package/public/favicon.ico
DELETED
|
Binary file
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Button } from '@aloudata/aloudata-design';
|
|
3
|
-
import './index.less';
|
|
4
|
-
import Icon from '../../../Icon'
|
|
5
|
-
export default () => {
|
|
6
|
-
return (
|
|
7
|
-
<div className="ald-button-demo">
|
|
8
|
-
<Button type="primary" icon={<Icon type="add" size={20} />}>
|
|
9
|
-
Search
|
|
10
|
-
</Button>
|
|
11
|
-
<Button type="secondary" icon={<Icon type="add" size={20} />}>
|
|
12
|
-
Search
|
|
13
|
-
</Button>
|
|
14
|
-
<Button type="text" icon={<Icon type="add" size={20} />}>
|
|
15
|
-
Search
|
|
16
|
-
</Button>
|
|
17
|
-
<Button type="danger" icon={<Icon type="add" size={20} />}>
|
|
18
|
-
Search
|
|
19
|
-
</Button>
|
|
20
|
-
<Button type="link" icon={<Icon type="add" size={20} />}>
|
|
21
|
-
Search
|
|
22
|
-
</Button>
|
|
23
|
-
<br />
|
|
24
|
-
<Button icon={<Icon type="add" size={20} />}>
|
|
25
|
-
</Button>
|
|
26
|
-
<Button shape='circle' icon={<Icon type="add" size={20} />}>
|
|
27
|
-
</Button>
|
|
28
|
-
<Button shape='circle'>
|
|
29
|
-
S
|
|
30
|
-
</Button>
|
|
31
|
-
<br />
|
|
32
|
-
<Button size='small' icon={<Icon type="add" size={20} />}>
|
|
33
|
-
</Button>
|
|
34
|
-
<Button shape='circle' size="large" icon={<Icon type="add" size={20} />}>
|
|
35
|
-
</Button>
|
|
36
|
-
<Button shape='circle'>
|
|
37
|
-
M
|
|
38
|
-
</Button>
|
|
39
|
-
</div>
|
|
40
|
-
)
|
|
41
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Button } from '@aloudata/aloudata-design';
|
|
3
|
-
import '../../style/index.less';
|
|
4
|
-
import { Radio } from 'antd';
|
|
5
|
-
import './index.less';
|
|
6
|
-
export default () => {
|
|
7
|
-
const [size, setSize] = React.useState('default');
|
|
8
|
-
const handleSizeChange = (e: any) => {
|
|
9
|
-
setSize(e.target.value);
|
|
10
|
-
}
|
|
11
|
-
return (
|
|
12
|
-
<div className='ald-button-demo'>
|
|
13
|
-
<Radio.Group value={size} onChange={handleSizeChange}>
|
|
14
|
-
<Radio.Button value="small">Small</Radio.Button>
|
|
15
|
-
<Radio.Button value='default'>Default</Radio.Button>
|
|
16
|
-
<Radio.Button value="large">Large</Radio.Button>
|
|
17
|
-
</Radio.Group>
|
|
18
|
-
<br />
|
|
19
|
-
<Button type="primary" size={size}>Primary Button</Button>
|
|
20
|
-
<Button type="danger" size={size}>danger Button</Button>
|
|
21
|
-
<Button type="secondary" size={size}>secondary Button</Button>
|
|
22
|
-
<Button type="text" size={size}>Text Button</Button>
|
|
23
|
-
<Button type="link" size={size}>Link Button</Button>
|
|
24
|
-
</div>
|
|
25
|
-
)
|
|
26
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Button } from '@aloudata/aloudata-design';
|
|
3
|
-
import './index.less';
|
|
4
|
-
|
|
5
|
-
export default () => {
|
|
6
|
-
|
|
7
|
-
return (
|
|
8
|
-
<div className="ald-button-demo">
|
|
9
|
-
<Button type="primary" disabled>primary disable</Button>
|
|
10
|
-
<Button type="secondary" disabled>secondary disable</Button>
|
|
11
|
-
<Button type="text" disabled>text disable</Button>
|
|
12
|
-
<Button type="danger" disabled>danger disable</Button>
|
|
13
|
-
<Button type="link" disabled>link disable</Button>
|
|
14
|
-
</div>
|
|
15
|
-
)
|
|
16
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Button } from '@aloudata/aloudata-design';
|
|
3
|
-
|
|
4
|
-
export default () => {
|
|
5
|
-
|
|
6
|
-
return (
|
|
7
|
-
<div className="ald-button-demo">
|
|
8
|
-
<Button href="https://www.aloudata.com/">aloudata</Button>
|
|
9
|
-
<Button href="https://www.aloudata.com/" target="_blank">target _blank aloudata</Button>
|
|
10
|
-
<Button href="https://www.aloudata.com/" target="_self">target _self aloudata</Button>
|
|
11
|
-
<Button target="_blank"> 无href target _blank</Button>
|
|
12
|
-
</div>
|
|
13
|
-
)
|
|
14
|
-
}
|