@aloudata/aloudata-design 0.3.0-beta.1 → 0.3.2
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 +15 -5
- package/es/Breadcrumb/index.d.ts +0 -1
- package/es/Breadcrumb/style/index.less +11 -3
- package/es/Button/index.js +17 -2
- package/es/Button/style/index.less +41 -39
- package/es/Button/style/variables.less +9 -2
- package/es/Card/index.d.ts +3 -0
- package/es/Card/index.js +3 -0
- package/es/{Message → Card}/style/index.d.ts +0 -0
- package/es/{Message → Card}/style/index.js +0 -0
- package/es/{Message → Card}/style/index.less +0 -0
- package/es/Checkbox/index.d.ts +0 -1
- package/es/Checkbox/style/index.less +19 -0
- package/es/Drawer/index.d.ts +4 -0
- package/es/Drawer/index.js +3 -0
- package/es/{Notification → Drawer}/style/index.d.ts +0 -0
- package/es/{Notification → Drawer}/style/index.js +0 -0
- package/es/{Notification → Drawer}/style/index.less +0 -0
- package/es/Dropdown/Button.js +3 -3
- package/es/Empty/image/Authority.d.ts +0 -1
- package/es/Empty/image/Dataspace.d.ts +0 -1
- package/es/Empty/image/Search.d.ts +0 -1
- package/es/Empty/image/Simple.d.ts +0 -1
- package/es/Empty/image/Worksheet.d.ts +0 -1
- package/es/Empty/image/empty.d.ts +0 -1
- package/es/Form/style/index.less +8 -0
- package/es/Icon/antdIconfont.d.ts +4 -0
- package/es/Icon/antdIconfont.js +2 -0
- package/es/Icon/components/Icon.d.ts +32 -0
- package/es/Icon/components/Icon.js +27 -0
- package/es/Icon/components/createFromScripts.d.ts +1 -0
- package/es/Icon/components/createFromScripts.js +35 -0
- package/es/Icon/iconSvgs/arrows_right_sm.svg +3 -0
- package/es/Icon/icons/AddLine.d.ts +13 -0
- package/es/Icon/icons/AddLine.js +66 -0
- package/es/Icon/icons/AlertFill.d.ts +13 -0
- package/es/Icon/icons/AlertFill.js +73 -0
- package/es/Icon/icons/ArrowsDownLine.d.ts +13 -0
- package/es/Icon/icons/ArrowsDownLine.js +66 -0
- package/es/Icon/icons/CancelFill.d.ts +13 -0
- package/es/Icon/icons/CancelFill.js +73 -0
- package/es/Icon/icons/CheckFill.d.ts +13 -0
- package/es/Icon/icons/CheckFill.js +73 -0
- package/es/Icon/icons/CheckLine.d.ts +13 -0
- package/es/Icon/icons/CheckLine.js +73 -0
- package/es/Icon/icons/CloseLine.d.ts +13 -0
- package/es/Icon/icons/CloseLine.js +66 -0
- package/es/Icon/icons/DatabaseLine.d.ts +13 -0
- package/es/Icon/icons/DatabaseLine.js +66 -0
- package/es/Icon/icons/Deleteline.d.ts +13 -0
- package/es/Icon/icons/Deleteline.js +66 -0
- package/es/Icon/icons/DownloadLine.d.ts +13 -0
- package/es/Icon/icons/DownloadLine.js +73 -0
- package/es/Icon/icons/ErrorFill.d.ts +13 -0
- package/es/Icon/icons/ErrorFill.js +73 -0
- package/es/Icon/icons/EyeOffLine.d.ts +13 -0
- package/es/Icon/icons/EyeOffLine.js +73 -0
- package/es/Icon/icons/EyeOnLine.d.ts +13 -0
- package/es/Icon/icons/EyeOnLine.js +66 -0
- package/es/Icon/icons/FileLine.d.ts +13 -0
- package/es/Icon/icons/FileLine.js +73 -0
- package/es/Icon/icons/HomeFill.d.ts +13 -0
- package/es/Icon/icons/HomeFill.js +73 -0
- package/es/Icon/icons/IconBase.withSpan.tpl +58 -0
- package/es/Icon/icons/LightningLine.d.ts +13 -0
- package/es/Icon/icons/LightningLine.js +66 -0
- package/es/Icon/icons/Loading.d.ts +13 -0
- package/es/Icon/icons/Loading.js +66 -0
- package/es/Icon/icons/More.d.ts +13 -0
- package/es/Icon/icons/More.js +66 -0
- package/es/Icon/icons/NewWindowsLine.d.ts +13 -0
- package/es/Icon/icons/NewWindowsLine.js +74 -0
- package/es/Icon/icons/SearchLine.d.ts +13 -0
- package/es/Icon/icons/SearchLine.js +73 -0
- package/es/Icon/icons/SortAscendingLine.d.ts +13 -0
- package/es/Icon/icons/SortAscendingLine.js +66 -0
- package/es/Icon/icons/SortDescendingLine.d.ts +13 -0
- package/es/Icon/icons/SortDescendingLine.js +66 -0
- package/es/Icon/icons/TextLine.d.ts +13 -0
- package/es/Icon/icons/TextLine.js +73 -0
- package/es/Icon/icons/UserLine.d.ts +13 -0
- package/es/Icon/icons/UserLine.js +73 -0
- package/es/Icon/icons/style.css +9 -0
- package/es/Icon/icons/style.css.d.ts +10 -0
- package/es/Icon/index.d.ts +2 -13
- package/es/Icon/index.js +2 -53
- package/es/Icon/index.less +9 -17
- package/es/Icon/style/index.d.ts +1 -0
- package/es/Icon/style/index.js +1 -0
- package/es/Icon/style/index.less +0 -0
- package/es/Input/components/Group/index.d.ts +0 -1
- package/es/Input/components/Password/index.js +6 -5
- package/es/Input/style/index.less +1 -1
- package/es/InputNumber/index.d.ts +0 -1
- package/es/InputNumber/style/index.less +88 -16
- package/es/Menu/Divider.d.ts +0 -1
- package/es/Menu/style/index.less +4 -3
- package/es/Modal/index.js +21 -12
- package/es/Modal/locale.d.ts +7 -0
- package/es/Modal/locale.js +20 -0
- package/es/Modal/style/index.less +3 -3
- package/es/Navigator/components/Header/index.d.ts +0 -1
- package/es/Navigator/components/Menu/index.d.ts +0 -1
- package/es/Navigator/components/MenuItem/index.d.ts +1 -1
- package/es/Navigator/index.d.ts +1 -1
- package/es/Navigator/style/index.less +46 -5
- package/es/Popover/index.d.ts +0 -1
- package/es/Select/index.d.ts +2 -1
- package/es/Select/index.js +2 -1
- package/es/Select/rc-select/OptionList.js +3 -4
- package/es/Select/rc-select/Selector/MultipleSelector.js +13 -3
- package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/es/Select/style/index.d.ts +0 -1
- package/es/Select/style/index.js +0 -1
- package/es/Select/style/index.less +105 -10
- package/es/Select/style/variables.less +20 -9
- package/es/Select/style/variables.less.d.ts +4 -1
- package/es/Select/utils/iconUtil.d.ts +2 -2
- package/es/Select/utils/iconUtil.js +10 -13
- package/es/Table/Table.d.ts +0 -1
- package/es/Table/Table.js +23 -14
- package/es/Table/style/index.less +7 -0
- package/es/Tabs/index.d.ts +2 -1
- package/es/Tabs/index.js +9 -6
- package/es/Tabs/style/index.less +67 -1
- package/es/index.d.ts +8 -3
- package/es/index.js +6 -3
- package/es/locale/default.d.ts +2 -0
- package/es/locale/default.js +2 -0
- package/es/locale/en_US.d.ts +3 -0
- package/es/locale/en_US.js +132 -0
- package/es/locale/zh_CN.d.ts +3 -2
- package/es/locale/zh_CN.js +131 -2
- package/es/locale-provider/LocaleReceiver.d.ts +4 -0
- package/es/locale-provider/LocaleReceiver.js +3 -0
- package/es/locale-provider/context.d.ts +7 -0
- package/es/locale-provider/context.js +3 -0
- package/es/locale-provider/default.d.ts +2 -0
- package/es/locale-provider/default.js +2 -0
- package/es/locale-provider/en_US.d.ts +2 -0
- package/es/locale-provider/en_US.js +2 -0
- package/es/locale-provider/index.d.ts +61 -0
- package/es/locale-provider/index.js +102 -0
- package/es/locale-provider/style/index.d.ts +1 -0
- package/es/locale-provider/style/index.js +1 -0
- package/es/locale-provider/style/index.less +2 -0
- package/es/locale-provider/zh_CN.d.ts +2 -0
- package/es/locale-provider/zh_CN.js +2 -0
- package/es/{Message → message}/index.d.ts +0 -0
- package/es/{Message → message}/index.js +0 -0
- package/{lib/Message → es/message}/style/index.d.ts +0 -0
- package/es/message/style/index.js +2 -0
- package/{lib/Message → es/message}/style/index.less +0 -0
- package/es/{Notification → notification}/index.d.ts +0 -0
- package/es/{Notification → notification}/index.js +0 -0
- package/{lib/Notification → es/notification}/style/index.d.ts +0 -0
- package/es/notification/style/index.js +2 -0
- package/{lib/Notification → es/notification}/style/index.less +0 -0
- package/es/style/index.less +1 -0
- package/es/style/themes/default/scrollBar.less +13 -0
- package/lib/Breadcrumb/index.d.ts +0 -1
- package/lib/Breadcrumb/style/index.less +11 -3
- package/lib/Button/index.js +18 -2
- package/lib/Button/style/index.less +41 -39
- package/lib/Button/style/variables.less +9 -2
- package/lib/Card/index.d.ts +3 -0
- package/lib/Card/index.js +15 -0
- package/lib/Card/style/index.d.ts +2 -0
- package/lib/{Message → Card}/style/index.js +0 -0
- package/lib/Card/style/index.less +1 -0
- package/lib/Checkbox/index.d.ts +0 -1
- package/lib/Checkbox/style/index.less +19 -0
- package/lib/Drawer/index.d.ts +4 -0
- package/lib/Drawer/index.js +15 -0
- package/lib/Drawer/style/index.d.ts +2 -0
- package/lib/{Notification → Drawer}/style/index.js +0 -0
- package/lib/Drawer/style/index.less +1 -0
- package/lib/Dropdown/Button.js +3 -3
- package/lib/Empty/image/Authority.d.ts +0 -1
- package/lib/Empty/image/Dataspace.d.ts +0 -1
- package/lib/Empty/image/Search.d.ts +0 -1
- package/lib/Empty/image/Simple.d.ts +0 -1
- package/lib/Empty/image/Worksheet.d.ts +0 -1
- package/lib/Empty/image/empty.d.ts +0 -1
- package/lib/Form/style/index.less +8 -0
- package/lib/Icon/antdIconfont.d.ts +4 -0
- package/lib/Icon/antdIconfont.js +13 -0
- package/lib/Icon/components/Icon.d.ts +32 -0
- package/lib/Icon/components/Icon.js +38 -0
- package/lib/Icon/components/createFromScripts.d.ts +1 -0
- package/lib/Icon/components/createFromScripts.js +41 -0
- package/lib/Icon/iconSvgs/arrows_right_sm.svg +3 -0
- package/lib/Icon/icons/AddLine.d.ts +13 -0
- package/lib/Icon/icons/AddLine.js +83 -0
- package/lib/Icon/icons/AlertFill.d.ts +13 -0
- package/lib/Icon/icons/AlertFill.js +90 -0
- package/lib/Icon/icons/ArrowsDownLine.d.ts +13 -0
- package/lib/Icon/icons/ArrowsDownLine.js +83 -0
- package/lib/Icon/icons/CancelFill.d.ts +13 -0
- package/lib/Icon/icons/CancelFill.js +90 -0
- package/lib/Icon/icons/CheckFill.d.ts +13 -0
- package/lib/Icon/icons/CheckFill.js +90 -0
- package/lib/Icon/icons/CheckLine.d.ts +13 -0
- package/lib/Icon/icons/CheckLine.js +90 -0
- package/lib/Icon/icons/CloseLine.d.ts +13 -0
- package/lib/Icon/icons/CloseLine.js +83 -0
- package/lib/Icon/icons/DatabaseLine.d.ts +13 -0
- package/lib/Icon/icons/DatabaseLine.js +83 -0
- package/lib/Icon/icons/Deleteline.d.ts +13 -0
- package/lib/Icon/icons/Deleteline.js +83 -0
- package/lib/Icon/icons/DownloadLine.d.ts +13 -0
- package/lib/Icon/icons/DownloadLine.js +90 -0
- package/lib/Icon/icons/ErrorFill.d.ts +13 -0
- package/lib/Icon/icons/ErrorFill.js +90 -0
- package/lib/Icon/icons/EyeOffLine.d.ts +13 -0
- package/lib/Icon/icons/EyeOffLine.js +90 -0
- package/lib/Icon/icons/EyeOnLine.d.ts +13 -0
- package/lib/Icon/icons/EyeOnLine.js +83 -0
- package/lib/Icon/icons/FileLine.d.ts +13 -0
- package/lib/Icon/icons/FileLine.js +90 -0
- package/lib/Icon/icons/HomeFill.d.ts +13 -0
- package/lib/Icon/icons/HomeFill.js +90 -0
- package/lib/Icon/icons/IconBase.withSpan.tpl +58 -0
- package/lib/Icon/icons/LightningLine.d.ts +13 -0
- package/lib/Icon/icons/LightningLine.js +83 -0
- package/lib/Icon/icons/Loading.d.ts +13 -0
- package/lib/Icon/icons/Loading.js +83 -0
- package/lib/Icon/icons/More.d.ts +13 -0
- package/lib/Icon/icons/More.js +83 -0
- package/lib/Icon/icons/NewWindowsLine.d.ts +13 -0
- package/lib/Icon/icons/NewWindowsLine.js +91 -0
- package/lib/Icon/icons/SearchLine.d.ts +13 -0
- package/lib/Icon/icons/SearchLine.js +90 -0
- package/lib/Icon/icons/SortAscendingLine.d.ts +13 -0
- package/lib/Icon/icons/SortAscendingLine.js +83 -0
- package/lib/Icon/icons/SortDescendingLine.d.ts +13 -0
- package/lib/Icon/icons/SortDescendingLine.js +83 -0
- package/lib/Icon/icons/TextLine.d.ts +13 -0
- package/lib/Icon/icons/TextLine.js +90 -0
- package/lib/Icon/icons/UserLine.d.ts +13 -0
- package/lib/Icon/icons/UserLine.js +90 -0
- package/lib/Icon/icons/style.css +9 -0
- package/lib/Icon/icons/style.css.d.ts +10 -0
- package/lib/Icon/index.d.ts +2 -13
- package/lib/Icon/index.js +2 -59
- package/lib/Icon/index.less +9 -17
- package/lib/Icon/style/index.d.ts +1 -0
- package/lib/Icon/style/index.js +1 -0
- package/lib/Icon/style/index.less +0 -0
- package/lib/Input/components/Group/index.d.ts +0 -1
- package/lib/Input/components/Password/index.js +7 -5
- package/lib/Input/style/index.less +1 -1
- package/lib/InputNumber/index.d.ts +0 -1
- package/lib/InputNumber/style/index.less +88 -16
- package/lib/Menu/Divider.d.ts +0 -1
- package/lib/Menu/style/index.less +4 -3
- package/lib/Modal/index.js +23 -12
- package/lib/Modal/locale.d.ts +7 -0
- package/lib/Modal/locale.js +31 -0
- package/lib/Modal/style/index.less +3 -3
- package/lib/Navigator/components/Header/index.d.ts +0 -1
- package/lib/Navigator/components/Menu/index.d.ts +0 -1
- package/lib/Navigator/components/MenuItem/index.d.ts +1 -1
- package/lib/Navigator/index.d.ts +1 -1
- package/lib/Navigator/style/index.less +46 -5
- package/lib/Popover/index.d.ts +0 -1
- package/lib/Select/index.d.ts +2 -1
- package/lib/Select/index.js +2 -1
- package/lib/Select/rc-select/OptionList.js +3 -4
- package/lib/Select/rc-select/Selector/MultipleSelector.js +13 -3
- package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/lib/Select/style/index.d.ts +0 -1
- package/lib/Select/style/index.js +0 -2
- package/lib/Select/style/index.less +105 -10
- package/lib/Select/style/variables.less +20 -9
- package/lib/Select/style/variables.less.d.ts +4 -1
- package/lib/Select/utils/iconUtil.d.ts +2 -2
- package/lib/Select/utils/iconUtil.js +11 -14
- package/lib/Table/Table.d.ts +0 -1
- package/lib/Table/Table.js +25 -15
- package/lib/Table/style/index.less +7 -0
- package/lib/Tabs/index.d.ts +2 -1
- package/lib/Tabs/index.js +9 -6
- package/lib/Tabs/style/index.less +67 -1
- package/lib/index.d.ts +8 -3
- package/lib/index.js +38 -14
- package/lib/locale/default.d.ts +2 -0
- package/lib/locale/default.js +13 -0
- package/lib/locale/en_US.d.ts +3 -0
- package/lib/locale/en_US.js +146 -0
- package/lib/locale/zh_CN.d.ts +3 -2
- package/lib/locale/zh_CN.js +134 -2
- package/lib/locale-provider/LocaleReceiver.d.ts +4 -0
- package/lib/locale-provider/LocaleReceiver.js +23 -0
- package/lib/locale-provider/context.d.ts +7 -0
- package/lib/locale-provider/context.js +12 -0
- package/lib/locale-provider/default.d.ts +2 -0
- package/lib/locale-provider/default.js +13 -0
- package/lib/locale-provider/en_US.d.ts +2 -0
- package/lib/locale-provider/en_US.js +13 -0
- package/lib/locale-provider/index.d.ts +61 -0
- package/lib/locale-provider/index.js +116 -0
- package/lib/locale-provider/style/index.d.ts +1 -0
- package/lib/locale-provider/style/index.js +3 -0
- package/lib/locale-provider/style/index.less +2 -0
- package/lib/locale-provider/zh_CN.d.ts +2 -0
- package/lib/locale-provider/zh_CN.js +13 -0
- package/lib/{Message → message}/index.d.ts +0 -0
- package/lib/{Message → message}/index.js +0 -0
- package/lib/message/style/index.d.ts +2 -0
- package/lib/message/style/index.js +5 -0
- package/lib/message/style/index.less +1 -0
- package/lib/{Notification → notification}/index.d.ts +0 -0
- package/lib/{Notification → notification}/index.js +0 -0
- package/lib/notification/style/index.d.ts +2 -0
- package/lib/notification/style/index.js +5 -0
- package/lib/notification/style/index.less +1 -0
- package/lib/style/index.less +1 -0
- package/lib/style/themes/default/scrollBar.less +13 -0
- package/package.json +10 -8
- package/es/Icon/iconfont/demo.css +0 -539
- package/es/Icon/iconfont/demo_index.html +0 -720
- package/es/Icon/iconfont/iconfont.css +0 -109
- package/es/Icon/iconfont/iconfont.js +0 -46
- package/es/Icon/iconfont/iconfont.json +0 -170
- 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/Table/components/Empty/empty-img.png +0 -0
- package/es/Table/components/Empty/index.d.ts +0 -4
- package/es/Table/components/Empty/index.js +0 -16
- package/es/Table/components/Empty/index.less +0 -24
- package/lib/Icon/iconfont/demo.css +0 -539
- package/lib/Icon/iconfont/demo_index.html +0 -720
- package/lib/Icon/iconfont/iconfont.css +0 -109
- package/lib/Icon/iconfont/iconfont.js +0 -48
- package/lib/Icon/iconfont/iconfont.json +0 -170
- 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/Table/components/Empty/empty-img.png +0 -0
- package/lib/Table/components/Empty/index.d.ts +0 -4
- package/lib/Table/components/Empty/index.js +0 -30
- package/lib/Table/components/Empty/index.less +0 -24
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2
|
+
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
|
|
5
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
|
|
7
|
+
import defaultLocale from '../locale/default';
|
|
8
|
+
|
|
9
|
+
var runtimeLocale = _objectSpread({}, defaultLocale.Modal);
|
|
10
|
+
|
|
11
|
+
export function changeConfirmLocale(newLocale) {
|
|
12
|
+
if (newLocale) {
|
|
13
|
+
runtimeLocale = _objectSpread(_objectSpread({}, runtimeLocale), newLocale);
|
|
14
|
+
} else {
|
|
15
|
+
runtimeLocale = _objectSpread({}, defaultLocale.Modal);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export function getConfirmLocale() {
|
|
19
|
+
return runtimeLocale;
|
|
20
|
+
}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
.ald-modal-close {
|
|
10
10
|
position: relative;
|
|
11
|
-
top:
|
|
12
|
-
left: -
|
|
11
|
+
top: 8px;
|
|
12
|
+
left: -16px;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.ant-modal-header {
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.ant-btn-default {
|
|
108
|
-
padding: @Button-border-padding;
|
|
108
|
+
padding: @Button-border-padding-middle;
|
|
109
109
|
color: @Button-secondary-color;
|
|
110
110
|
background-color: @Button-secondary-bgColor;
|
|
111
111
|
border: 1px solid;
|
package/es/Navigator/index.d.ts
CHANGED
|
@@ -47,5 +47,5 @@ export interface INavigatorProps {
|
|
|
47
47
|
}) => void;
|
|
48
48
|
}
|
|
49
49
|
export type { IMenuItem } from './components/Menu';
|
|
50
|
-
export type { ISelectedMenuInfo } from './components/MenuItem';
|
|
50
|
+
export type { ISelectedMenuInfo, IMenuItemContentProps } from './components/MenuItem';
|
|
51
51
|
export default Navigator;
|
|
@@ -67,26 +67,46 @@
|
|
|
67
67
|
height: 48px;
|
|
68
68
|
margin-top: 12px;
|
|
69
69
|
padding: 0 12px;
|
|
70
|
-
.textStyle(@BG60, 14px, 48px,
|
|
70
|
+
.textStyle(@BG60, 14px, 48px, 400, normal);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.ald-nav-menu-item {
|
|
75
|
+
position: relative;
|
|
75
76
|
display: flex;
|
|
76
77
|
align-items: center;
|
|
77
78
|
height: 48px;
|
|
79
|
+
margin-bottom: 4px;
|
|
78
80
|
padding: 0 12px;
|
|
79
81
|
line-height: 48px;
|
|
80
82
|
border-radius: 8px;
|
|
81
83
|
|
|
84
|
+
&::before {
|
|
85
|
+
position: absolute;
|
|
86
|
+
top: 0;
|
|
87
|
+
left: 0;
|
|
88
|
+
display: block;
|
|
89
|
+
width: 0%;
|
|
90
|
+
height: inherit;
|
|
91
|
+
background: @ND80;
|
|
92
|
+
border-radius: inherit;
|
|
93
|
+
content: '';
|
|
94
|
+
}
|
|
95
|
+
|
|
82
96
|
&-icon {
|
|
97
|
+
position: relative;
|
|
98
|
+
z-index: 1;
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
83
101
|
margin-right: 12px;
|
|
84
102
|
}
|
|
85
103
|
|
|
86
104
|
&-content {
|
|
105
|
+
position: relative;
|
|
106
|
+
z-index: 1;
|
|
87
107
|
flex: 1;
|
|
88
108
|
overflow: hidden;
|
|
89
|
-
.textStyle(@B95, 16px, 24px,
|
|
109
|
+
.textStyle(@B95, 16px, 24px, 400, normal);
|
|
90
110
|
|
|
91
111
|
&-text {
|
|
92
112
|
white-space: nowrap;
|
|
@@ -94,14 +114,18 @@
|
|
|
94
114
|
}
|
|
95
115
|
|
|
96
116
|
&:hover {
|
|
117
|
+
background-color: @ND90;
|
|
97
118
|
cursor: pointer;
|
|
98
119
|
}
|
|
99
120
|
|
|
100
121
|
&.ald-nav-menu-item-selected {
|
|
101
|
-
background-color: @B60;
|
|
102
|
-
|
|
103
122
|
.ald-nav-menu-item-content {
|
|
104
|
-
.textStyle(@ND0, 16px, 24px,
|
|
123
|
+
.textStyle(@ND0, 16px, 24px, 400, normal);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&::before {
|
|
127
|
+
animation: 0.26s linear 0s hoverBgChange;
|
|
128
|
+
animation-fill-mode: forwards;
|
|
105
129
|
}
|
|
106
130
|
}
|
|
107
131
|
}
|
|
@@ -116,3 +140,20 @@
|
|
|
116
140
|
}
|
|
117
141
|
}
|
|
118
142
|
}
|
|
143
|
+
|
|
144
|
+
@keyframes hoverBgChange {
|
|
145
|
+
0% {
|
|
146
|
+
width: 0%;
|
|
147
|
+
background-color: @ND80;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
90% {
|
|
151
|
+
width: 100%;
|
|
152
|
+
background-color: @ND80;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
100% {
|
|
156
|
+
width: 100%;
|
|
157
|
+
background-color: @B40;
|
|
158
|
+
}
|
|
159
|
+
}
|
package/es/Popover/index.d.ts
CHANGED
package/es/Select/index.d.ts
CHANGED
|
@@ -14,9 +14,10 @@ export interface LabeledValue {
|
|
|
14
14
|
label: React.ReactNode;
|
|
15
15
|
}
|
|
16
16
|
export declare type SelectValue = RawValue | RawValue[] | LabeledValue | LabeledValue[] | undefined;
|
|
17
|
+
export declare type SelectType = SizeType | 'mini';
|
|
17
18
|
export interface InternalSelectProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends Omit<RcSelectProps<ValueType, OptionType>, 'mode'> {
|
|
18
19
|
suffixIcon?: React.ReactNode;
|
|
19
|
-
size?:
|
|
20
|
+
size?: SelectType;
|
|
20
21
|
disabled?: boolean;
|
|
21
22
|
mode?: 'multiple' | 'tags' | 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
|
|
22
23
|
bordered?: boolean;
|
package/es/Select/index.js
CHANGED
|
@@ -45,7 +45,8 @@ var InternalSelect = function InternalSelect(_ref, ref) {
|
|
|
45
45
|
customDisabled = _ref.disabled,
|
|
46
46
|
notFoundContent = _ref.notFoundContent,
|
|
47
47
|
customStatus = _ref.status,
|
|
48
|
-
showArrow = _ref.showArrow,
|
|
48
|
+
_ref$showArrow = _ref.showArrow,
|
|
49
|
+
showArrow = _ref$showArrow === void 0 ? true : _ref$showArrow,
|
|
49
50
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
50
51
|
|
|
51
52
|
var _React$useContext = React.useContext(ConfigContext),
|
|
@@ -39,7 +39,7 @@ import { isPlatformMac } from './utils/platformUtil';
|
|
|
39
39
|
import useBaseProps from './hooks/useBaseProps';
|
|
40
40
|
import SelectContext from './SelectContext';
|
|
41
41
|
import Checkbox from '../../Checkbox';
|
|
42
|
-
import
|
|
42
|
+
import CheckLine from '../../Icon/icons/CheckLine';
|
|
43
43
|
import colors from '../../style/themes/default/themeColor.module.less';
|
|
44
44
|
|
|
45
45
|
function isTitleType(content) {
|
|
@@ -382,10 +382,9 @@ var OptionList = function OptionList(_, ref) {
|
|
|
382
382
|
style: style
|
|
383
383
|
}), !multiple && /*#__PURE__*/React.createElement("div", {
|
|
384
384
|
className: 'ald-select-single-check'
|
|
385
|
-
}, selected && /*#__PURE__*/React.createElement(
|
|
385
|
+
}, selected && /*#__PURE__*/React.createElement(CheckLine, {
|
|
386
386
|
color: colors.B60,
|
|
387
|
-
size: '1em'
|
|
388
|
-
type: "check"
|
|
387
|
+
size: '1em'
|
|
389
388
|
})), multiple && /*#__PURE__*/React.createElement(Checkbox, {
|
|
390
389
|
className: 'ald-select-multiple-checkbox',
|
|
391
390
|
checked: selected,
|
|
@@ -48,7 +48,8 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
48
48
|
removeIcon = props.removeIcon,
|
|
49
49
|
_props$maxTagCount = props.maxTagCount,
|
|
50
50
|
maxTagCount = _props$maxTagCount === void 0 ? "responsive" : _props$maxTagCount,
|
|
51
|
-
|
|
51
|
+
_props$maxTagTextLeng = props.maxTagTextLength,
|
|
52
|
+
maxTagTextLength = _props$maxTagTextLeng === void 0 ? 10 : _props$maxTagTextLeng,
|
|
52
53
|
_props$maxTagPlacehol = props.maxTagPlaceholder,
|
|
53
54
|
maxTagPlaceholder = _props$maxTagPlacehol === void 0 ? function (omittedValues) {
|
|
54
55
|
return "\u7B49".concat(omittedValues.length, "\u9879");
|
|
@@ -160,6 +161,15 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
160
161
|
}
|
|
161
162
|
|
|
162
163
|
function renderRest(omittedValues) {
|
|
164
|
+
if (omittedValues.length === values.length && omittedValues.length) {
|
|
165
|
+
var length = values.length;
|
|
166
|
+
|
|
167
|
+
var _content = "\u5DF2\u9009".concat(length, "\u9879");
|
|
168
|
+
|
|
169
|
+
return defaultRenderSelector(_content, _content, false);
|
|
170
|
+
;
|
|
171
|
+
}
|
|
172
|
+
|
|
163
173
|
var content = typeof maxTagPlaceholder === 'function' ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder;
|
|
164
174
|
return defaultRenderSelector(content, content, false);
|
|
165
175
|
} // >>> Input Node
|
|
@@ -215,7 +225,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
215
225
|
React.useEffect(function () {
|
|
216
226
|
var prefixEl = prefixRef.current;
|
|
217
227
|
var size = ['large', 'small', 'mini'].includes(props.size) ? props.size.toUpperCase() : 'MIDDLE';
|
|
218
|
-
var selectorPaddingLeft = parseInt(SelectStyle["
|
|
228
|
+
var selectorPaddingLeft = parseInt(SelectStyle["SELECTOR_PADDING_HORIZONTAL_".concat(size)]);
|
|
219
229
|
|
|
220
230
|
if (prefixEl) {
|
|
221
231
|
var prefixOffsetWidth = prefixEl.offsetWidth;
|
|
@@ -224,7 +234,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
224
234
|
}
|
|
225
235
|
|
|
226
236
|
return setPlaceholderLeft(selectorPaddingLeft);
|
|
227
|
-
}, []);
|
|
237
|
+
}, [values]);
|
|
228
238
|
return /*#__PURE__*/React.createElement(React.Fragment, null, selectionNode, !values.length && !inputValue && /*#__PURE__*/React.createElement("span", {
|
|
229
239
|
className: classNames("".concat(selectionPrefixCls, "-placeholder"), 'ald-select-selection-placeholder', _defineProperty({}, "ald-select-selection-placeholder-prefix", prefix)),
|
|
230
240
|
style: {
|
|
@@ -6,6 +6,6 @@ import type { FieldNames } from '../Select';
|
|
|
6
6
|
*/
|
|
7
7
|
export default function useOptions<OptionType>(options: OptionType[], children: React.ReactNode, fieldNames: FieldNames, optionFilterProp: string, optionLabelProp: string): {
|
|
8
8
|
options: OptionType[];
|
|
9
|
-
valueOptions: Map<
|
|
9
|
+
valueOptions: Map<string | number, OptionType>;
|
|
10
10
|
labelOptions: Map<React.ReactNode, OptionType>;
|
|
11
11
|
};
|
package/es/Select/style/index.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
.ald-select {
|
|
6
6
|
.ant-select-selector:not(.ant-select-customize-input) {
|
|
7
|
+
background-color: @selector-bgColor-default;
|
|
7
8
|
border-color: @selector-borderColor-default;
|
|
8
9
|
|
|
9
10
|
.ald-select-selector-prefix {
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
&.ant-select-disabled .ant-select-selector:not(.ant-select-customize-input) {
|
|
26
|
+
background-color: @selector-bgColor-disabled;
|
|
25
27
|
border-color: @selector-borderColor-disabled;
|
|
26
28
|
cursor: initial;
|
|
27
29
|
|
|
@@ -44,11 +46,19 @@
|
|
|
44
46
|
}
|
|
45
47
|
}
|
|
46
48
|
|
|
49
|
+
&.ant-select-multiple.ant-select-disabled.ant-select:not(.ant-select-customize-input) {
|
|
50
|
+
.ant-select-selector {
|
|
51
|
+
background-color: @selector-bgColor-disabled;
|
|
52
|
+
border-color: @selector-borderColor-disabled;
|
|
53
|
+
cursor: initial;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
47
57
|
&:not(.ant-select-disabled):hover,
|
|
48
58
|
&.ant-select.ant-select-focused:not(.ant-select-disabled) {
|
|
49
59
|
.ant-select-selector {
|
|
50
60
|
border-color: @selector-borderColor-active;
|
|
51
|
-
box-shadow:
|
|
61
|
+
box-shadow: 0 0 0 0.5px @B60;
|
|
52
62
|
|
|
53
63
|
&:focus-visible {
|
|
54
64
|
outline: none;
|
|
@@ -61,7 +71,9 @@
|
|
|
61
71
|
.ant-select-selection-placeholder {
|
|
62
72
|
color: @selector-placeholderColor-active;
|
|
63
73
|
}
|
|
74
|
+
}
|
|
64
75
|
|
|
76
|
+
&.ant-select-open {
|
|
65
77
|
.ant-select-selection-overflow,
|
|
66
78
|
.ant-select-selection-item {
|
|
67
79
|
color: @selector-valueColor-active;
|
|
@@ -69,14 +81,54 @@
|
|
|
69
81
|
border: none;
|
|
70
82
|
}
|
|
71
83
|
}
|
|
84
|
+
|
|
85
|
+
&:not(.ant-select-open) {
|
|
86
|
+
.ant-select-selector {
|
|
87
|
+
border-color: @selector-borderColor-default;
|
|
88
|
+
box-shadow: none;
|
|
89
|
+
|
|
90
|
+
&:focus-visible {
|
|
91
|
+
outline: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.ald-select-selector-prefix {
|
|
95
|
+
color: @selector-labelColor-default;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.ant-select-selection-placeholder {
|
|
99
|
+
color: @selector-placeholderColor-default;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.ant-select-clear,
|
|
106
|
+
.ant-select-arrow {
|
|
107
|
+
display: flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
justify-content: center;
|
|
110
|
+
color: @NL50;
|
|
111
|
+
font-size: inherit;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&.ant-select-disabled {
|
|
115
|
+
.ant-select-clear,
|
|
116
|
+
.ant-select-arrow {
|
|
117
|
+
display: flex;
|
|
118
|
+
align-items: center;
|
|
119
|
+
justify-content: center;
|
|
120
|
+
color: @NL60;
|
|
121
|
+
font-size: inherit;
|
|
122
|
+
}
|
|
72
123
|
}
|
|
73
124
|
|
|
74
125
|
&.ald-select-large {
|
|
126
|
+
font-size: @selector-fontSize-large;
|
|
127
|
+
|
|
75
128
|
.ant-select-selector {
|
|
76
129
|
align-items: center;
|
|
77
130
|
height: @selector-height-large;
|
|
78
|
-
padding: 0 @selector-
|
|
79
|
-
font-size: @selector-fontSize-large;
|
|
131
|
+
padding: 0 @selector-paddingHorizontal-large;
|
|
80
132
|
line-height: @selector-lineHeight-large;
|
|
81
133
|
border-radius: @selector-borderRadius-large;
|
|
82
134
|
|
|
@@ -91,14 +143,21 @@
|
|
|
91
143
|
line-height: @selector-lineHeight-large;
|
|
92
144
|
}
|
|
93
145
|
}
|
|
146
|
+
|
|
147
|
+
&.ant-select-show-arrow {
|
|
148
|
+
.ant-select-selector {
|
|
149
|
+
padding-right: @selector-paddingHorizontal-large + @selector-fontSize-large;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
94
152
|
}
|
|
95
153
|
|
|
96
154
|
&.ald-select-middle {
|
|
155
|
+
font-size: @selector-fontSize-middle;
|
|
156
|
+
|
|
97
157
|
.ant-select-selector {
|
|
98
158
|
align-items: center;
|
|
99
159
|
height: @selector-height-middle;
|
|
100
|
-
padding: 0 @selector-
|
|
101
|
-
font-size: @selector-fontSize-middle;
|
|
160
|
+
padding: 0 @selector-paddingHorizontal-middle;
|
|
102
161
|
line-height: @selector-lineHeight-middle;
|
|
103
162
|
border-radius: @selector-borderRadius-middle;
|
|
104
163
|
|
|
@@ -113,14 +172,21 @@
|
|
|
113
172
|
line-height: @selector-lineHeight-middle;
|
|
114
173
|
}
|
|
115
174
|
}
|
|
175
|
+
|
|
176
|
+
&.ant-select-show-arrow {
|
|
177
|
+
.ant-select-selector {
|
|
178
|
+
padding-right: @selector-paddingHorizontal-middle + @selector-fontSize-middle;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
116
181
|
}
|
|
117
182
|
|
|
118
183
|
&.ald-select-small {
|
|
184
|
+
font-size: @selector-fontSize-small;
|
|
185
|
+
|
|
119
186
|
.ant-select-selector {
|
|
120
187
|
align-items: center;
|
|
121
188
|
height: @selector-height-small;
|
|
122
|
-
padding: 0 @selector-
|
|
123
|
-
font-size: @selector-fontSize-small;
|
|
189
|
+
padding: 0 @selector-paddingHorizontal-small;
|
|
124
190
|
line-height: @selector-lineHeight-small;
|
|
125
191
|
border-radius: @selector-borderRadius-small;
|
|
126
192
|
|
|
@@ -135,14 +201,21 @@
|
|
|
135
201
|
line-height: @selector-lineHeight-small;
|
|
136
202
|
}
|
|
137
203
|
}
|
|
204
|
+
|
|
205
|
+
&.ant-select-show-arrow {
|
|
206
|
+
.ant-select-selector {
|
|
207
|
+
padding-right: @selector-paddingHorizontal-small + @selector-fontSize-small;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
138
210
|
}
|
|
139
211
|
|
|
140
212
|
&.ald-select-mini {
|
|
213
|
+
font-size: @selector-fontSize-mini;
|
|
214
|
+
|
|
141
215
|
.ant-select-selector {
|
|
142
216
|
align-items: center;
|
|
143
217
|
height: @selector-height-mini;
|
|
144
|
-
padding: 0 @selector-
|
|
145
|
-
font-size: @selector-fontSize-mini;
|
|
218
|
+
padding: 0 @selector-paddingHorizontal-mini;
|
|
146
219
|
line-height: @selector-lineHeight-mini;
|
|
147
220
|
border-radius: @selector-borderRadius-mini;
|
|
148
221
|
|
|
@@ -157,6 +230,12 @@
|
|
|
157
230
|
line-height: @selector-lineHeight-mini;
|
|
158
231
|
}
|
|
159
232
|
}
|
|
233
|
+
|
|
234
|
+
&.ant-select-show-arrow {
|
|
235
|
+
.ant-select-selector {
|
|
236
|
+
padding-right: @selector-paddingHorizontal-mini + @selector-fontSize-mini;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
160
239
|
}
|
|
161
240
|
|
|
162
241
|
&.ant-select-multiple {
|
|
@@ -195,6 +274,12 @@
|
|
|
195
274
|
content: ',';
|
|
196
275
|
}
|
|
197
276
|
}
|
|
277
|
+
|
|
278
|
+
.ant-select-selection-search-input {
|
|
279
|
+
height: inherit;
|
|
280
|
+
line-height: inherit;
|
|
281
|
+
caret-color: @B60;
|
|
282
|
+
}
|
|
198
283
|
}
|
|
199
284
|
|
|
200
285
|
.ant-select-selection-overflow-item:first-of-type {
|
|
@@ -203,6 +288,10 @@
|
|
|
203
288
|
}
|
|
204
289
|
}
|
|
205
290
|
}
|
|
291
|
+
|
|
292
|
+
.ant-select-selector::after {
|
|
293
|
+
height: 1.5715em;
|
|
294
|
+
}
|
|
206
295
|
}
|
|
207
296
|
}
|
|
208
297
|
|
|
@@ -210,9 +299,15 @@
|
|
|
210
299
|
.ald-select-item {
|
|
211
300
|
display: flex;
|
|
212
301
|
align-items: center;
|
|
213
|
-
|
|
302
|
+
margin: 0 4px;
|
|
303
|
+
padding: 0;
|
|
214
304
|
font-size: 14px;
|
|
215
305
|
background-color: @select-option-bgColor;
|
|
306
|
+
border-radius: 6px;
|
|
307
|
+
|
|
308
|
+
&:hover {
|
|
309
|
+
background-color: @select-option-bgColor-hover;
|
|
310
|
+
}
|
|
216
311
|
|
|
217
312
|
.ald-select-single-check {
|
|
218
313
|
display: flex;
|
|
@@ -1,54 +1,65 @@
|
|
|
1
1
|
/* stylelint-disable property-no-unknown */
|
|
2
2
|
@import '../../style/index.less';
|
|
3
3
|
|
|
4
|
-
@selector-paddingLeft: 11px;
|
|
5
|
-
|
|
6
4
|
// large size
|
|
7
5
|
@selector-height-large: 40px;
|
|
8
6
|
@selector-borderRadius-large: 8px;
|
|
9
7
|
@selector-fontSize-large: 16px;
|
|
10
8
|
@selector-lineHeight-large: 24px;
|
|
11
9
|
@prefix-marginRight-large: 8px;
|
|
10
|
+
@selector-paddingHorizontal-large: 11px;
|
|
11
|
+
|
|
12
12
|
// medium size
|
|
13
13
|
@selector-height-middle: 32px;
|
|
14
14
|
@selector-borderRadius-middle: 6px;
|
|
15
15
|
@selector-fontSize-middle: 14px;
|
|
16
16
|
@selector-lineHeight-middle: 20px;
|
|
17
|
-
@prefix-marginRight-middle:
|
|
17
|
+
@prefix-marginRight-middle: 8px;
|
|
18
|
+
@selector-paddingHorizontal-middle: 11px;
|
|
19
|
+
|
|
18
20
|
// small size
|
|
19
21
|
@selector-height-small: 28px;
|
|
20
22
|
@selector-borderRadius-small: 4px;
|
|
21
23
|
@selector-fontSize-small: 12px;
|
|
22
24
|
@selector-lineHeight-small: 16px;
|
|
23
25
|
@prefix-marginRight-small: 4px;
|
|
26
|
+
@selector-paddingHorizontal-small: 7px;
|
|
24
27
|
// mini size
|
|
25
28
|
@selector-height-mini: 24px;
|
|
26
29
|
@selector-borderRadius-mini: 4px;
|
|
27
30
|
@selector-fontSize-mini: 12px;
|
|
28
31
|
@selector-lineHeight-mini: 16px;
|
|
29
32
|
@prefix-marginRight-mini: 4px;
|
|
33
|
+
@selector-paddingHorizontal-mini: 7px;
|
|
30
34
|
|
|
31
35
|
//default status
|
|
32
36
|
@selector-borderColor-default: @NL90;
|
|
33
|
-
@selector-placeholderColor-default: @
|
|
37
|
+
@selector-placeholderColor-default: @NL80;
|
|
34
38
|
@selector-valueColor-default: @NL0;
|
|
35
39
|
@selector-labelColor-default: @NL50;
|
|
40
|
+
@selector-bgColor-default: @BG97;
|
|
36
41
|
//active status
|
|
37
42
|
@selector-borderColor-active: @B60;
|
|
38
|
-
@selector-placeholderColor-active: @
|
|
43
|
+
@selector-placeholderColor-active: @NL80;
|
|
39
44
|
@selector-valueColor-active: @NL50;
|
|
40
45
|
@selector-labelColor-active: @NL50;
|
|
46
|
+
@selector-bgColor-active: @BG97;
|
|
41
47
|
//disable status
|
|
42
48
|
@selector-borderColor-disabled: @NL90;
|
|
43
|
-
@selector-placeholderColor-disabled: @
|
|
44
|
-
@selector-valueColor-disabled: @
|
|
45
|
-
@selector-labelColor-disabled: @
|
|
49
|
+
@selector-placeholderColor-disabled: @NL80;
|
|
50
|
+
@selector-valueColor-disabled: @NL60;
|
|
51
|
+
@selector-labelColor-disabled: @NL60;
|
|
52
|
+
@selector-bgColor-disabled: @BG95;
|
|
46
53
|
//-----option
|
|
47
54
|
@select-option-bgColor: @BG100;
|
|
48
55
|
@select-option-color: @NL0;
|
|
56
|
+
@select-option-bgColor-hover: @NL97;
|
|
49
57
|
|
|
50
58
|
:export {
|
|
51
|
-
|
|
59
|
+
SELECTOR_PADDING_HORIZONTAL_LARGE: @selector-paddingHorizontal-large;
|
|
60
|
+
SELECTOR_PADDING_HORIZONTAL_MIDDLE: @selector-paddingHorizontal-middle;
|
|
61
|
+
SELECTOR_PADDING_HORIZONTAL_SMALL: @selector-paddingHorizontal-small;
|
|
62
|
+
SELECTOR_PADDING_HORIZONTAL_MINI: @selector-paddingHorizontal-mini;
|
|
52
63
|
PREFIX_MARGIN_RIGHT_LARGE: @prefix-marginRight-large;
|
|
53
64
|
PREFIX_MARGIN_RIGHT_MIDDLE: @prefix-marginRight-middle;
|
|
54
65
|
PREFIX_MARGIN_RIGHT_SMALL: @prefix-marginRight-small;
|
|
@@ -89,7 +89,10 @@ interface CssExports {
|
|
|
89
89
|
'SC90': string;
|
|
90
90
|
'SC95': string;
|
|
91
91
|
'SC98': string;
|
|
92
|
-
'
|
|
92
|
+
'SELECTOR_PADDING_HORIZONTAL_LARGE': string;
|
|
93
|
+
'SELECTOR_PADDING_HORIZONTAL_MIDDLE': string;
|
|
94
|
+
'SELECTOR_PADDING_HORIZONTAL_MINI': string;
|
|
95
|
+
'SELECTOR_PADDING_HORIZONTAL_SMALL': string;
|
|
93
96
|
'SHADOW_L': string;
|
|
94
97
|
'WHITE': string;
|
|
95
98
|
}
|
|
@@ -18,7 +18,7 @@ export default function getIcons({ suffixIcon, clearIcon, menuItemSelectedIcon,
|
|
|
18
18
|
open: boolean;
|
|
19
19
|
showSearch: boolean;
|
|
20
20
|
}) => JSX.Element);
|
|
21
|
-
itemIcon:
|
|
22
|
-
removeIcon:
|
|
21
|
+
itemIcon: number | boolean | JSX.Element | React.ReactFragment | ((props: any) => React.ReactNode) | null;
|
|
22
|
+
removeIcon: number | boolean | JSX.Element | React.ReactFragment | ((props: any) => React.ReactNode) | null;
|
|
23
23
|
};
|
|
24
24
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import DownOutlined from '@ant-design/icons/DownOutlined';
|
|
3
2
|
import LoadingOutlined from '@ant-design/icons/LoadingOutlined';
|
|
4
3
|
import CheckOutlined from '@ant-design/icons/CheckOutlined';
|
|
5
4
|
import CloseCircleFilled from '@ant-design/icons/CloseCircleFilled';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import CancelFill from '../../Icon/icons/CancelFill';
|
|
6
|
+
import Color from '../../style/themes/default/themeColor.module.less';
|
|
7
|
+
import ArrowsDownLine from '../../Icon/icons/ArrowsDownLine';
|
|
8
8
|
export default function getIcons(_ref) {
|
|
9
9
|
var suffixIcon = _ref.suffixIcon,
|
|
10
10
|
clearIcon = _ref.clearIcon,
|
|
@@ -43,14 +43,11 @@ export default function getIcons(_ref) {
|
|
|
43
43
|
mergedSuffixIcon = function mergedSuffixIcon(_ref2) {
|
|
44
44
|
var open = _ref2.open,
|
|
45
45
|
showSearch = _ref2.showSearch;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
return getSuffixIconNode( /*#__PURE__*/React.createElement(DownOutlined, {
|
|
46
|
+
// if (open && showSearch) {
|
|
47
|
+
// return getSuffixIconNode(<SearchOutlined className={iconCls} />);
|
|
48
|
+
// }
|
|
49
|
+
return getSuffixIconNode( /*#__PURE__*/React.createElement(ArrowsDownLine, {
|
|
50
|
+
color: Color.NL50,
|
|
54
51
|
className: iconCls
|
|
55
52
|
}));
|
|
56
53
|
};
|
|
@@ -72,8 +69,8 @@ export default function getIcons(_ref) {
|
|
|
72
69
|
if (removeIcon !== undefined) {
|
|
73
70
|
mergedRemoveIcon = removeIcon;
|
|
74
71
|
} else {
|
|
75
|
-
mergedRemoveIcon = /*#__PURE__*/React.createElement(
|
|
76
|
-
|
|
72
|
+
mergedRemoveIcon = /*#__PURE__*/React.createElement(CancelFill, {
|
|
73
|
+
color: Color.NL50,
|
|
77
74
|
size: '1em'
|
|
78
75
|
});
|
|
79
76
|
}
|
package/es/Table/Table.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
2
|
import { ITableProps } from './interface';
|
|
3
|
-
import './style/index';
|
|
4
3
|
declare function Table<RecordType extends object = any>(props: ITableProps<RecordType>, ref?: React.Ref<unknown>): ReactElement;
|
|
5
4
|
declare const _default: typeof Table;
|
|
6
5
|
export default _default;
|