@qn-pandora/pandora-component 4.0.0 → 4.0.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.
Files changed (124) hide show
  1. package/CHANGELOG.json +37 -0
  2. package/CHANGELOG.md +17 -1
  3. package/README.md +36 -36
  4. package/es/components/AutoComplete/style.less +8 -8
  5. package/es/components/Breadcrumb/style.less +9 -9
  6. package/es/components/Button/style.less +51 -51
  7. package/es/components/Card/RowExtra/style.less +8 -8
  8. package/es/components/Card/SearchInput/style.less +8 -8
  9. package/es/components/Card/style.less +11 -11
  10. package/es/components/CheckTransformList/style.less +35 -35
  11. package/es/components/Checkbox/style.less +5 -5
  12. package/es/components/CheckboxList/style.less +11 -11
  13. package/es/components/Collapse/style.less +57 -57
  14. package/es/components/CollapsiblePanel/style.less +63 -63
  15. package/es/components/DateTimePicker/Base/style.less +160 -160
  16. package/es/components/DateTimePicker/BaseMobile/Absolute/style.less +35 -35
  17. package/es/components/DateTimePicker/BaseMobile/style.less +32 -32
  18. package/es/components/DateTimePicker/Collapse/Panel/style.less +26 -26
  19. package/es/components/DateTimePicker/DisplayInput/style.less +9 -9
  20. package/es/components/DateTimePicker/style.less +19 -19
  21. package/es/components/Drawer/index.d.ts +55 -2
  22. package/es/components/Drawer/index.js +3 -1
  23. package/es/components/Drawer/style.less +17 -17
  24. package/es/components/Input/style.less +12 -12
  25. package/es/components/KeyValuePair/style.less +21 -21
  26. package/es/components/Menu/Option.d.ts +6 -0
  27. package/es/components/Menu/Option.js +16 -1
  28. package/es/components/Menu/index.js +3 -3
  29. package/es/components/Menu/style.less +18 -18
  30. package/es/components/Modal/style.less +30 -30
  31. package/es/components/NameExplainTooltip/style.less +10 -10
  32. package/es/components/NameLimiter/style.less +19 -19
  33. package/es/components/OptionList/InlineOptionList/style.less +16 -16
  34. package/es/components/OptionList/OptionItem/style.less +25 -25
  35. package/es/components/OptionList/PopoverOptionList/style.less +30 -30
  36. package/es/components/OptionList/style.less +3 -3
  37. package/es/components/RadioGroup/style.less +32 -32
  38. package/es/components/RangeInput/style.less +37 -37
  39. package/es/components/RemarkName/style.less +2 -2
  40. package/es/components/Selector/style.less +99 -99
  41. package/es/components/Spin/style.less +26 -26
  42. package/es/components/Steps/ControlButton/style.less +5 -5
  43. package/es/components/Steps/style.less +48 -48
  44. package/es/components/Table/ColumnTag/style.less +40 -40
  45. package/es/components/Table/index.js +7 -4
  46. package/es/components/Table/style.css +4 -4
  47. package/es/components/Table/style.less +306 -306
  48. package/es/components/Tabs/style.less +33 -33
  49. package/es/components/TagList/Tag/style.less +72 -72
  50. package/es/components/TagList/TagSwitch/style.less +28 -28
  51. package/es/components/TagList/style.less +28 -28
  52. package/es/components/Timeline/TimelineItem/style.less +49 -49
  53. package/es/components/Timeline/style.less +23 -23
  54. package/es/components/Transfer/List/style.less +19 -19
  55. package/es/components/Transfer/ListBody/style.less +18 -18
  56. package/es/components/Transfer/style.less +14 -14
  57. package/es/components/TreeSelector/style.less +56 -56
  58. package/es/hoc/popContainer.d.ts +5 -0
  59. package/es/hoc/popContainer.js +37 -0
  60. package/es/index.css +2974 -2974
  61. package/es/index.less +49 -49
  62. package/es/style/mixin.less +45 -45
  63. package/es/style/theme.less +389 -381
  64. package/lib/components/AutoComplete/style.less +8 -8
  65. package/lib/components/Breadcrumb/style.less +9 -9
  66. package/lib/components/Button/style.less +51 -51
  67. package/lib/components/Card/RowExtra/style.less +8 -8
  68. package/lib/components/Card/SearchInput/style.less +8 -8
  69. package/lib/components/Card/style.less +11 -11
  70. package/lib/components/CheckTransformList/style.less +35 -35
  71. package/lib/components/Checkbox/style.less +5 -5
  72. package/lib/components/CheckboxList/style.less +11 -11
  73. package/lib/components/Collapse/style.less +57 -57
  74. package/lib/components/CollapsiblePanel/style.less +63 -63
  75. package/lib/components/DateTimePicker/Base/style.less +160 -160
  76. package/lib/components/DateTimePicker/BaseMobile/Absolute/style.less +35 -35
  77. package/lib/components/DateTimePicker/BaseMobile/style.less +32 -32
  78. package/lib/components/DateTimePicker/Collapse/Panel/style.less +26 -26
  79. package/lib/components/DateTimePicker/DisplayInput/style.less +9 -9
  80. package/lib/components/DateTimePicker/style.less +19 -19
  81. package/lib/components/Drawer/index.d.ts +55 -2
  82. package/lib/components/Drawer/index.js +3 -1
  83. package/lib/components/Drawer/style.less +17 -17
  84. package/lib/components/Input/style.less +12 -12
  85. package/lib/components/KeyValuePair/style.less +21 -21
  86. package/lib/components/Menu/Option.d.ts +6 -0
  87. package/lib/components/Menu/Option.js +16 -1
  88. package/lib/components/Menu/index.js +3 -3
  89. package/lib/components/Menu/style.less +18 -18
  90. package/lib/components/Modal/style.less +30 -30
  91. package/lib/components/NameExplainTooltip/style.less +10 -10
  92. package/lib/components/NameLimiter/style.less +19 -19
  93. package/lib/components/OptionList/InlineOptionList/style.less +16 -16
  94. package/lib/components/OptionList/OptionItem/style.less +25 -25
  95. package/lib/components/OptionList/PopoverOptionList/style.less +30 -30
  96. package/lib/components/OptionList/style.less +3 -3
  97. package/lib/components/RadioGroup/style.less +32 -32
  98. package/lib/components/RangeInput/style.less +37 -37
  99. package/lib/components/RemarkName/style.less +2 -2
  100. package/lib/components/Selector/style.less +99 -99
  101. package/lib/components/Spin/style.less +26 -26
  102. package/lib/components/Steps/ControlButton/style.less +5 -5
  103. package/lib/components/Steps/style.less +48 -48
  104. package/lib/components/Table/ColumnTag/style.less +40 -40
  105. package/lib/components/Table/index.js +6 -3
  106. package/lib/components/Table/style.css +4 -4
  107. package/lib/components/Table/style.less +306 -306
  108. package/lib/components/Tabs/style.less +33 -33
  109. package/lib/components/TagList/Tag/style.less +72 -72
  110. package/lib/components/TagList/TagSwitch/style.less +28 -28
  111. package/lib/components/TagList/style.less +28 -28
  112. package/lib/components/Timeline/TimelineItem/style.less +49 -49
  113. package/lib/components/Timeline/style.less +23 -23
  114. package/lib/components/Transfer/List/style.less +19 -19
  115. package/lib/components/Transfer/ListBody/style.less +18 -18
  116. package/lib/components/Transfer/style.less +14 -14
  117. package/lib/components/TreeSelector/style.less +56 -56
  118. package/lib/hoc/popContainer.d.ts +5 -0
  119. package/lib/hoc/popContainer.js +47 -0
  120. package/lib/index.css +224 -224
  121. package/lib/index.less +49 -49
  122. package/lib/style/mixin.less +45 -45
  123. package/lib/style/theme.less +389 -381
  124. package/package.json +79 -79
@@ -1,19 +1,19 @@
1
- @import 'antd/lib/popover/style/index.less';
2
- @import '../../style/theme.less';
3
-
4
- .@{sdk-prefix}-datetime-pick-popover-root {
5
- .@{ant-prefix}-popover-inner-content {
6
- padding: 0;
7
- }
8
- .@{ant-prefix}-btn {
9
- line-height: 1.499;
10
- }
11
-
12
- .@{ant-prefix}-table {
13
- line-height: 1.5;
14
- }
15
- }
16
-
17
- .@{sdk-prefix}-datetime-pick-popover {
18
- width: 650px;
19
- }
1
+ @import 'antd/lib/popover/style/index.less';
2
+ @import '../../style/theme.less';
3
+
4
+ .@{sdk-prefix}-datetime-pick-popover-root {
5
+ .@{ant-prefix}-popover-inner-content {
6
+ padding: 0;
7
+ }
8
+ .@{ant-prefix}-btn {
9
+ line-height: 1.499;
10
+ }
11
+
12
+ .@{ant-prefix}-table {
13
+ line-height: 1.5;
14
+ }
15
+ }
16
+
17
+ .@{sdk-prefix}-datetime-pick-popover {
18
+ width: 650px;
19
+ }
@@ -53,5 +53,58 @@ export declare type IDrawerProps = Overwrite<DrawerProps, {
53
53
  onClose?: (e: EventType) => void;
54
54
  afterVisibleChange?: (visible: boolean) => void;
55
55
  }>;
56
- export default function Drawer(props: React.PropsWithChildren<IDrawerProps>): JSX.Element;
57
- export {};
56
+ export declare function Drawer(props: React.PropsWithChildren<IDrawerProps>): JSX.Element;
57
+ declare const _default: (props: {
58
+ className?: string | undefined;
59
+ /**
60
+ * 是否显示关闭按钮
61
+ */
62
+ closable?: boolean | undefined;
63
+ /**
64
+ * 点击遮蔽层是否可以关闭
65
+ */
66
+ maskClosable?: boolean | undefined;
67
+ /**
68
+ * 是否有遮蔽层
69
+ */
70
+ mask?: boolean | undefined;
71
+ /**
72
+ * 遮蔽层样式
73
+ */
74
+ maskStyle?: React.CSSProperties | undefined;
75
+ /**
76
+ * 位置
77
+ */
78
+ placement?: "top" | "left" | "right" | "bottom" | undefined;
79
+ /**
80
+ * 标题
81
+ */
82
+ title?: React.ReactNode;
83
+ /**
84
+ * 是否可见
85
+ */
86
+ visible?: boolean | undefined;
87
+ /**
88
+ * 宽
89
+ */
90
+ width?: string | number | undefined;
91
+ /**
92
+ * 高
93
+ */
94
+ height?: string | number | undefined;
95
+ /**
96
+ * 容器的class name
97
+ */
98
+ wrapClassName?: string | undefined;
99
+ /**
100
+ * 层级
101
+ */
102
+ zIndex?: number | undefined;
103
+ getContainer?: string | false | HTMLElement | getContainerFunc | undefined;
104
+ onClose?: ((e: EventType) => void) | undefined;
105
+ afterVisibleChange?: ((visible: boolean) => void) | undefined;
106
+ } & Pick<DrawerProps, "style" | "autoFocus" | "size" | "prefixCls" | "footer" | "extra" | "bodyStyle" | "forceRender" | "keyboard" | "destroyOnClose" | "closeIcon" | "drawerStyle" | "headerStyle" | "contentWrapperStyle" | "push" | "handler" | "footerStyle" | "level" | "levelMove"> & {
107
+ bodyStyle?: React.CSSProperties | undefined;
108
+ children: React.ReactNode;
109
+ }) => JSX.Element;
110
+ export default _default;
@@ -24,7 +24,9 @@ import * as React from 'react';
24
24
  import classnames from 'classnames';
25
25
  import { Drawer as BaseDrawer } from 'antd';
26
26
  import { SDK_PREFIX } from '../../constants/style';
27
- export default function Drawer(props) {
27
+ import popContainerWrapper from '../../hoc/popContainer';
28
+ export function Drawer(props) {
28
29
  var width = props.width, className = props.className, other = __rest(props, ["width", "className"]);
29
30
  return (React.createElement(BaseDrawer, __assign({ className: classnames(SDK_PREFIX + "-drawer", className), width: width || 'auto', zIndex: 1200 }, other)));
30
31
  }
32
+ export default popContainerWrapper(Drawer);
@@ -1,17 +1,17 @@
1
- @import 'antd/lib/drawer/style/index.less';
2
- @import '../../style/theme.less';
3
-
4
- .@{sdk-prefix}-drawer {
5
- .@{ant-prefix}-drawer-content-wrapper {
6
- width: 50%;
7
- min-width: 600px;
8
- }
9
- .@{ant-prefix}-drawer-content > div {
10
- position: relative;
11
- }
12
- .@{ant-prefix}-drawer-close-x {
13
- width: 60px;
14
- height: 60px;
15
- line-height: 60px;
16
- }
17
- }
1
+ @import 'antd/lib/drawer/style/index.less';
2
+ @import '../../style/theme.less';
3
+
4
+ .@{sdk-prefix}-drawer {
5
+ .@{ant-prefix}-drawer-content-wrapper {
6
+ width: 50%;
7
+ min-width: 600px;
8
+ }
9
+ .@{ant-prefix}-drawer-content > div {
10
+ position: relative;
11
+ }
12
+ .@{ant-prefix}-drawer-close-x {
13
+ width: 60px;
14
+ height: 60px;
15
+ line-height: 60px;
16
+ }
17
+ }
@@ -1,12 +1,12 @@
1
- @import 'antd/lib/input/style/index.less';
2
- @import '../../style/theme.less';
3
-
4
- .@{ant-prefix}-input {
5
- &[disabled] {
6
- border-color: @input-disabled-border-color;
7
- }
8
- }
9
-
10
- .@{ant-prefix}-input-group-addon {
11
- color: @font-color-6;
12
- }
1
+ @import 'antd/lib/input/style/index.less';
2
+ @import '../../style/theme.less';
3
+
4
+ .@{ant-prefix}-input {
5
+ &[disabled] {
6
+ border-color: @input-disabled-border-color;
7
+ }
8
+ }
9
+
10
+ .@{ant-prefix}-input-group-addon {
11
+ color: @font-color-6;
12
+ }
@@ -1,21 +1,21 @@
1
- @import '../../style/theme.less';
2
-
3
- .@{sdk-prefix}-key-value-label,
4
- .@{sdk-prefix}-key-value-value {
5
- display: inline-block;
6
- overflow: hidden;
7
- text-overflow: ellipsis;
8
- white-space: nowrap;
9
- line-height: 1.8;
10
- vertical-align: middle; // overflow:hidden和display: inline-block一起使用时会造成baseline的移动,进而增大高度
11
- }
12
-
13
- .@{sdk-prefix}-key-value-label {
14
- color: @font-color-6;
15
- width: 30%;
16
- }
17
-
18
- .@{sdk-prefix}-key-value-value {
19
- color: @font-color-7;
20
- width: 70%;
21
- }
1
+ @import '../../style/theme.less';
2
+
3
+ .@{sdk-prefix}-key-value-label,
4
+ .@{sdk-prefix}-key-value-value {
5
+ display: inline-block;
6
+ overflow: hidden;
7
+ text-overflow: ellipsis;
8
+ white-space: nowrap;
9
+ line-height: 1.8;
10
+ vertical-align: middle; // overflow:hidden和display: inline-block一起使用时会造成baseline的移动,进而增大高度
11
+ }
12
+
13
+ .@{sdk-prefix}-key-value-label {
14
+ color: @font-color-6;
15
+ width: 30%;
16
+ }
17
+
18
+ .@{sdk-prefix}-key-value-value {
19
+ color: @font-color-7;
20
+ width: 70%;
21
+ }
@@ -1,6 +1,11 @@
1
1
  import * as React from 'react';
2
+ import type { IMenuProps } from './index';
2
3
  export interface IOption {
3
4
  key: string;
5
+ /**
6
+ * 路由实际地址
7
+ */
8
+ url?: string;
4
9
  /**
5
10
  * 标题
6
11
  */
@@ -18,5 +23,6 @@ export interface IOption {
18
23
  */
19
24
  children?: IOption[];
20
25
  popupClassName?: string;
26
+ onMenuClick?: IMenuProps['onClick'];
21
27
  }
22
28
  export default function Option(option: IOption): JSX.Element;
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  import * as React from 'react';
2
13
  import { Menu as BaseMenu } from 'antd';
3
14
  import { SDK_PREFIX } from '../../constants/style';
@@ -10,5 +21,9 @@ export default function Option(option) {
10
21
  }
11
22
  return React.createElement(Item, { key: option.key }, option.text);
12
23
  }
13
- return (React.createElement(SubMenu, { key: option.key, title: option.text, popupClassName: option.popupClassName }, option.children.map(function (item) { return Option(item); })));
24
+ return (React.createElement(SubMenu, { key: option.key, title: option.text, popupClassName: option.popupClassName,
25
+ // 如果子菜单也有url时,点击触发menu的点击回调函数
26
+ onTitleClick: function (e) { var _a; return option.url && ((_a = option.onMenuClick) === null || _a === void 0 ? void 0 : _a.call(option, e)); } }, option.children.map(function (item) {
27
+ return Option(__assign(__assign({}, item), { onMenuClick: option.onMenuClick }));
28
+ })));
14
29
  }
@@ -25,9 +25,9 @@ import { Menu as BaseMenu } from 'antd';
25
25
  import Option from './Option';
26
26
  var Divider = BaseMenu.Divider, Item = BaseMenu.Item, SubMenu = BaseMenu.SubMenu, ItemGroup = BaseMenu.ItemGroup;
27
27
  export function Menue(props) {
28
- var _a = props.options, options = _a === void 0 ? [] : _a, children = props.children, other = __rest(props, ["options", "children"]);
29
- var childs = children || options.map(function (item) { return Option(item); });
30
- return React.createElement(BaseMenu, __assign({}, other), childs);
28
+ var _a = props.options, options = _a === void 0 ? [] : _a, children = props.children, onClick = props.onClick, other = __rest(props, ["options", "children", "onClick"]);
29
+ var childs = children || options.map(function (item) { return Option(__assign(__assign({}, item), { onMenuClick: onClick })); });
30
+ return (React.createElement(BaseMenu, __assign({}, other, { onClick: onClick }), childs));
31
31
  }
32
32
  export default Menue;
33
33
  Menue.Divider = Divider;
@@ -1,18 +1,18 @@
1
- @import 'antd/lib/menu/style/index.less';
2
- @import '../../style/theme.less';
3
-
4
- .@{ant-prefix}-menu-vertical.@{ant-prefix}-menu-sub:not([class*='-active']),
5
- .@{ant-prefix}-menu-vertical-left.@{ant-prefix}-menu-sub:not([class*='-active']),
6
- .@{ant-prefix}-menu-vertical-right.@{ant-prefix}-menu-sub:not([class*='-active']) {
7
- max-height: 320px;
8
- }
9
- .@{ant-prefix}-menu-item {
10
- .@{sdk-prefix}-menu-item-a {
11
- color: @font-color-7;
12
- }
13
- }
14
- .@{ant-prefix}-menu-horizontal
15
- > .@{ant-prefix}-menu-item
16
- .@{sdk-prefix}-menu-item-a {
17
- color: @font-color-7;
18
- }
1
+ @import 'antd/lib/menu/style/index.less';
2
+ @import '../../style/theme.less';
3
+
4
+ .@{ant-prefix}-menu-vertical.@{ant-prefix}-menu-sub:not([class*='-active']),
5
+ .@{ant-prefix}-menu-vertical-left.@{ant-prefix}-menu-sub:not([class*='-active']),
6
+ .@{ant-prefix}-menu-vertical-right.@{ant-prefix}-menu-sub:not([class*='-active']) {
7
+ max-height: 320px;
8
+ }
9
+ .@{ant-prefix}-menu-item {
10
+ .@{sdk-prefix}-menu-item-a {
11
+ color: @font-color-7;
12
+ }
13
+ }
14
+ .@{ant-prefix}-menu-horizontal
15
+ > .@{ant-prefix}-menu-item
16
+ .@{sdk-prefix}-menu-item-a {
17
+ color: @font-color-7;
18
+ }
@@ -1,30 +1,30 @@
1
- @import 'antd/lib/modal/style/index.less';
2
- @import '../../style/theme.less';
3
-
4
- .@{sdk-prefix}-modal {
5
- .@{ant-prefix}-modal-header {
6
- border-color: @modal-header-border-color;
7
- }
8
- .@{ant-prefix}-modal-body {
9
- max-height: 70vh;
10
- overflow-y: auto;
11
- background: @normal-color;
12
- padding: 0px 60px;
13
- padding-top: 24px;
14
- border-radius: 0 0 2px 2px;
15
- }
16
- .@{ant-prefix}-modal-footer {
17
- border: none;
18
- padding: 32px 24px 24px 24px;
19
- .@{ant-prefix}-btn {
20
- min-width: 60px;
21
- height: 32px;
22
- margin-left: 12px;
23
- font-size: 14px;
24
- color: @text-color;
25
- }
26
- .@{ant-prefix}-btn-primary {
27
- color: @normal-color;
28
- }
29
- }
30
- }
1
+ @import 'antd/lib/modal/style/index.less';
2
+ @import '../../style/theme.less';
3
+
4
+ .@{sdk-prefix}-modal {
5
+ .@{ant-prefix}-modal-header {
6
+ border-color: @modal-header-border-color;
7
+ }
8
+ .@{ant-prefix}-modal-body {
9
+ max-height: 70vh;
10
+ overflow-y: auto;
11
+ background: @normal-color;
12
+ padding: 0px 60px;
13
+ padding-top: 24px;
14
+ border-radius: 0 0 2px 2px;
15
+ }
16
+ .@{ant-prefix}-modal-footer {
17
+ border: none;
18
+ padding: 32px 24px 24px 24px;
19
+ .@{ant-prefix}-btn {
20
+ min-width: 60px;
21
+ height: 32px;
22
+ margin-left: 12px;
23
+ font-size: 14px;
24
+ color: @text-color;
25
+ }
26
+ .@{ant-prefix}-btn-primary {
27
+ color: @normal-color;
28
+ }
29
+ }
30
+ }
@@ -1,10 +1,10 @@
1
- @import '../../style/theme.less';
2
-
3
- .@{sdk-prefix}-name-explain-icon {
4
- color: @icon-color;
5
- transition: color 0.3s;
6
- &:hover,
7
- .@{ant-prefix}-tooltip-open {
8
- color: @theme-color;
9
- }
10
- }
1
+ @import '../../style/theme.less';
2
+
3
+ .@{sdk-prefix}-name-explain-icon {
4
+ color: @icon-color;
5
+ transition: color 0.3s;
6
+ &:hover,
7
+ .@{ant-prefix}-tooltip-open {
8
+ color: @theme-color;
9
+ }
10
+ }
@@ -1,19 +1,19 @@
1
- @import 'antd/lib/tooltip/style/index.less';
2
- @import '../../style/theme.less';
3
-
4
- .@{sdk-prefix}-name-limit {
5
- max-width: 100%;
6
- display: inline-block;
7
- vertical-align: top;
8
- white-space: nowrap;
9
- text-overflow: ellipsis;
10
- overflow: hidden;
11
- }
12
-
13
- .@{sdk-prefix}-name-limit-tooltip {
14
- .@{ant-prefix}-tooltip-inner {
15
- max-width: 400px;
16
- max-height: 200px;
17
- overflow: auto;
18
- }
19
- }
1
+ @import 'antd/lib/tooltip/style/index.less';
2
+ @import '../../style/theme.less';
3
+
4
+ .@{sdk-prefix}-name-limit {
5
+ max-width: 100%;
6
+ display: inline-block;
7
+ vertical-align: top;
8
+ white-space: nowrap;
9
+ text-overflow: ellipsis;
10
+ overflow: hidden;
11
+ }
12
+
13
+ .@{sdk-prefix}-name-limit-tooltip {
14
+ .@{ant-prefix}-tooltip-inner {
15
+ max-width: 400px;
16
+ max-height: 200px;
17
+ overflow: auto;
18
+ }
19
+ }
@@ -1,16 +1,16 @@
1
- @import 'antd/lib/divider/style/index.less';
2
- @import '../../../style/theme.less';
3
-
4
- .@{sdk-prefix}-popover-inline-list {
5
- display: inline-block;
6
- vertical-align: middle;
7
-
8
- .@{sdk-prefix}-popover-inline-item {
9
- display: inline-block;
10
- height: 100%;
11
- margin-right: 12px;
12
- i {
13
- color: @theme-color;
14
- }
15
- }
16
- }
1
+ @import 'antd/lib/divider/style/index.less';
2
+ @import '../../../style/theme.less';
3
+
4
+ .@{sdk-prefix}-popover-inline-list {
5
+ display: inline-block;
6
+ vertical-align: middle;
7
+
8
+ .@{sdk-prefix}-popover-inline-item {
9
+ display: inline-block;
10
+ height: 100%;
11
+ margin-right: 12px;
12
+ i {
13
+ color: @theme-color;
14
+ }
15
+ }
16
+ }
@@ -1,25 +1,25 @@
1
- @import 'antd/lib/tooltip/style/index.less';
2
- @import '../../../style/theme.less';
3
-
4
- .@{sdk-prefix}-item {
5
- color: @theme-color;
6
- cursor: pointer;
7
- & > .anticon {
8
- color: inherit;
9
- }
10
- &.@{sdk-prefix}-disabled {
11
- color: @font-disable-color-2;
12
- cursor: not-allowed;
13
- pointer-events: none;
14
- .anticon {
15
- color: @font-disable-color-2;
16
- }
17
- }
18
- &.@{sdk-prefix}-active {
19
- background: @select-popover-hover-color;
20
- }
21
- a {
22
- color: inherit;
23
- cursor: inherit;
24
- }
25
- }
1
+ @import 'antd/lib/tooltip/style/index.less';
2
+ @import '../../../style/theme.less';
3
+
4
+ .@{sdk-prefix}-item {
5
+ color: @theme-color;
6
+ cursor: pointer;
7
+ & > .anticon {
8
+ color: inherit;
9
+ }
10
+ &.@{sdk-prefix}-disabled {
11
+ color: @font-disable-color-2;
12
+ cursor: not-allowed;
13
+ pointer-events: none;
14
+ .anticon {
15
+ color: @font-disable-color-2;
16
+ }
17
+ }
18
+ &.@{sdk-prefix}-active {
19
+ background: @select-popover-hover-color;
20
+ }
21
+ a {
22
+ color: inherit;
23
+ cursor: inherit;
24
+ }
25
+ }
@@ -1,30 +1,30 @@
1
- @import 'antd/lib/popover/style/index.less';
2
- @import '../../../style/theme.less';
3
-
4
- .@{sdk-prefix}-popover-item {
5
- display: inline-block;
6
- line-height: 18px;
7
- color: @theme-color;
8
- vertical-align: middle;
9
- cursor: pointer;
10
- }
11
-
12
- .@{sdk-prefix}-popover-list {
13
- min-width: 120px;
14
- padding: 4px 0;
15
- line-height: 32px;
16
- text-align: center;
17
- font-size: 12px;
18
- .@{sdk-prefix}-item {
19
- color: @heading-color;
20
- display: block;
21
- padding: 0 16px;
22
- &:hover {
23
- background: @select-popover-hover-color;
24
- color: @theme-color;
25
- }
26
- }
27
- .@{sdk-prefix}-item.@{sdk-prefix}-disabled {
28
- color: @font-disable-color-2;
29
- }
30
- }
1
+ @import 'antd/lib/popover/style/index.less';
2
+ @import '../../../style/theme.less';
3
+
4
+ .@{sdk-prefix}-popover-item {
5
+ display: inline-block;
6
+ line-height: 18px;
7
+ color: @theme-color;
8
+ vertical-align: middle;
9
+ cursor: pointer;
10
+ }
11
+
12
+ .@{sdk-prefix}-popover-list {
13
+ min-width: 120px;
14
+ padding: 4px 0;
15
+ line-height: 32px;
16
+ text-align: center;
17
+ font-size: 12px;
18
+ .@{sdk-prefix}-item {
19
+ color: @heading-color;
20
+ display: block;
21
+ padding: 0 16px;
22
+ &:hover {
23
+ background: @select-popover-hover-color;
24
+ color: @theme-color;
25
+ }
26
+ }
27
+ .@{sdk-prefix}-item.@{sdk-prefix}-disabled {
28
+ color: @font-disable-color-2;
29
+ }
30
+ }
@@ -1,3 +1,3 @@
1
- @import './InlineOptionList/style.less';
2
- @import './OptionItem/style.less';
3
- @import './PopoverOptionList/style.less';
1
+ @import './InlineOptionList/style.less';
2
+ @import './OptionItem/style.less';
3
+ @import './PopoverOptionList/style.less';
@@ -1,32 +1,32 @@
1
- @import 'antd/lib/radio/style/index.less';
2
- @import '../../style/theme.less';
3
-
4
- .@{sdk-prefix}-solid-radio-group {
5
- .@{ant-prefix}-radio-button-wrapper {
6
- padding: 0 12px;
7
- &:not(&-checked) {
8
- border-color: @input-border-color;
9
- }
10
- }
11
-
12
- .@{ant-prefix}-radio {
13
- &:not(&-checked) {
14
- .@{ant-prefix}-radio-inner {
15
- border-color: @input-border-color;
16
- }
17
- }
18
-
19
- .@{ant-prefix}-radio-inner {
20
- box-sizing: border-box;
21
- }
22
-
23
- .@{ant-prefix}-radio-checked {
24
- .@{ant-prefix}-radio-inner {
25
- border-color: @theme-color;
26
- &::after {
27
- background-color: @theme-color;
28
- }
29
- }
30
- }
31
- }
32
- }
1
+ @import 'antd/lib/radio/style/index.less';
2
+ @import '../../style/theme.less';
3
+
4
+ .@{sdk-prefix}-solid-radio-group {
5
+ .@{ant-prefix}-radio-button-wrapper {
6
+ padding: 0 12px;
7
+ &:not(&-checked) {
8
+ border-color: @input-border-color;
9
+ }
10
+ }
11
+
12
+ .@{ant-prefix}-radio {
13
+ &:not(&-checked) {
14
+ .@{ant-prefix}-radio-inner {
15
+ border-color: @input-border-color;
16
+ }
17
+ }
18
+
19
+ .@{ant-prefix}-radio-inner {
20
+ box-sizing: border-box;
21
+ }
22
+
23
+ .@{ant-prefix}-radio-checked {
24
+ .@{ant-prefix}-radio-inner {
25
+ border-color: @theme-color;
26
+ &::after {
27
+ background-color: @theme-color;
28
+ }
29
+ }
30
+ }
31
+ }
32
+ }