assui 2.0.78 → 2.0.82

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 (61) hide show
  1. package/es/index.d.ts +3 -1
  2. package/es/index.js +1 -0
  3. package/es/keep-tab/index.js +1 -3
  4. package/es/label-desc-item/demo/index.less +9 -0
  5. package/es/label-desc-item/index.d.ts +13 -0
  6. package/es/label-desc-item/index.js +22 -0
  7. package/es/label-desc-item/style/index.css +23 -0
  8. package/es/label-desc-item/style/index.d.ts +1 -0
  9. package/es/label-desc-item/style/index.js +1 -0
  10. package/es/label-desc-item/style/index.less +26 -0
  11. package/es/label-input/index.d.ts +23 -0
  12. package/es/label-input/index.js +104 -0
  13. package/es/label-input/style/index.css +72 -0
  14. package/es/label-input/style/index.d.ts +1 -0
  15. package/es/label-input/style/index.js +1 -0
  16. package/es/label-input/style/index.less +95 -0
  17. package/es/label-select/index.d.ts +12 -0
  18. package/es/label-select/index.js +107 -0
  19. package/es/label-select/style/index.css +55 -0
  20. package/es/label-select/style/index.d.ts +2 -0
  21. package/es/label-select/style/index.js +2 -0
  22. package/es/label-select/style/index.less +69 -0
  23. package/es/label-text-area/index.d.ts +2 -0
  24. package/es/label-text-area/index.js +7 -0
  25. package/es/label-text-area/style/index.d.ts +1 -0
  26. package/es/label-text-area/style/index.js +0 -0
  27. package/es/rc-qrcode/index.d.ts +6 -6
  28. package/es/rc-qrcode/index.js +4 -4
  29. package/es/rc-qrcode/useQrcode.d.ts +1 -1
  30. package/es/rc-qrcode/useQrcode.js +4 -0
  31. package/lib/index.d.ts +3 -1
  32. package/lib/index.js +9 -0
  33. package/lib/keep-tab/index.js +1 -3
  34. package/lib/label-desc-item/demo/index.less +9 -0
  35. package/lib/label-desc-item/index.d.ts +13 -0
  36. package/lib/label-desc-item/index.js +35 -0
  37. package/lib/label-desc-item/style/index.css +23 -0
  38. package/lib/label-desc-item/style/index.d.ts +1 -0
  39. package/lib/label-desc-item/style/index.js +7 -0
  40. package/lib/label-desc-item/style/index.less +26 -0
  41. package/lib/label-input/index.d.ts +23 -0
  42. package/lib/label-input/index.js +119 -0
  43. package/lib/label-input/style/index.css +72 -0
  44. package/lib/label-input/style/index.d.ts +1 -0
  45. package/lib/label-input/style/index.js +7 -0
  46. package/lib/label-input/style/index.less +95 -0
  47. package/lib/label-select/index.d.ts +12 -0
  48. package/lib/label-select/index.js +126 -0
  49. package/lib/label-select/style/index.css +55 -0
  50. package/lib/label-select/style/index.d.ts +2 -0
  51. package/lib/label-select/style/index.js +9 -0
  52. package/lib/label-select/style/index.less +69 -0
  53. package/lib/label-text-area/index.d.ts +2 -0
  54. package/lib/label-text-area/index.js +19 -0
  55. package/lib/label-text-area/style/index.d.ts +1 -0
  56. package/lib/label-text-area/style/index.js +0 -0
  57. package/lib/rc-qrcode/index.d.ts +6 -6
  58. package/lib/rc-qrcode/index.js +4 -4
  59. package/lib/rc-qrcode/useQrcode.d.ts +1 -1
  60. package/lib/rc-qrcode/useQrcode.js +4 -0
  61. package/package.json +3 -3
package/es/index.d.ts CHANGED
@@ -22,7 +22,7 @@ export type { StepNumberInputProps } from './step-number-input';
22
22
  export { default as StepNumberInput } from './step-number-input';
23
23
  export type { RcEchartPropsType } from './rc-echart';
24
24
  export { default as RcEcharts } from './rc-echart';
25
- export type { RcQRcodeProps } from './rc-qrcode';
25
+ export type { RcQrcodeProps } from './rc-qrcode';
26
26
  export { default as RcQRcode } from './rc-qrcode';
27
27
  export { default as RcTransitionGroup } from './rc-transition-group';
28
28
  export type { SingleImgUploadProps } from './single-img-upload';
@@ -34,6 +34,8 @@ export type { TAreaProps } from './text-area';
34
34
  export { default as TextArea } from './text-area';
35
35
  export type { TextInputProps } from './text-input';
36
36
  export { default as TextInput } from './text-input';
37
+ export type { LabelInputProps } from './label-input';
38
+ export { default as LabelInput } from './label-input';
37
39
  export type { RichTextEditorProps } from './rich-text-editor';
38
40
  export { default as RichTextEditor } from './rich-text-editor';
39
41
  export { default as beautifulDnd } from './beautiful-dnd';
package/es/index.js CHANGED
@@ -17,5 +17,6 @@ export { default as sortableHoc } from './sortable-hoc';
17
17
  export { default as SplitPane } from './split-pane';
18
18
  export { default as TextArea } from './text-area';
19
19
  export { default as TextInput } from './text-input';
20
+ export { default as LabelInput } from './label-input';
20
21
  export { default as RichTextEditor } from './rich-text-editor';
21
22
  export { default as beautifulDnd } from './beautiful-dnd';
@@ -91,7 +91,7 @@ var KeepTab = function KeepTab(props) {
91
91
 
92
92
  var arrayChildren = toArray(children);
93
93
  React.useEffect(function () {
94
- var _a, _b;
94
+ var _a;
95
95
 
96
96
  if (!('activeKey' in props)) {
97
97
  var resultActiveTab = find(arrayChildren, {
@@ -102,8 +102,6 @@ var KeepTab = function KeepTab(props) {
102
102
  setUrlParams((_a = {}, _a[saveActiveKeyName] = arrayChildren[0].key, _a));
103
103
  setTabActiveKey(arrayChildren[0].key);
104
104
  }
105
- } else {
106
- setUrlParams((_b = {}, _b[saveActiveKeyName] = tabActiveKey, _b));
107
105
  }
108
106
  }, [tabActiveKey]);
109
107
 
@@ -0,0 +1,9 @@
1
+ .label-desc {
2
+ margin-top: 10px;
3
+
4
+ :global {
5
+ .desc-item-label {
6
+ color: #ff6b00;
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ export declare type DescItemProps = {
3
+ /** 自定义class */
4
+ className?: string;
5
+ /** label 标签的文本 */
6
+ label?: React.ReactNode;
7
+ /** descItem的value */
8
+ value?: React.ReactNode;
9
+ /** 带有后缀的 item */
10
+ suffix?: React.ReactNode;
11
+ };
12
+ declare const DescItem: React.FC<DescItemProps>;
13
+ export default DescItem;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import classNames from 'classnames';
3
+
4
+ var DescItem = function DescItem(props) {
5
+ var className = props.className,
6
+ label = props.label,
7
+ value = props.value,
8
+ suffix = props.suffix;
9
+ return /*#__PURE__*/React.createElement("div", {
10
+ className: classNames('desc-item', className)
11
+ }, /*#__PURE__*/React.createElement("div", {
12
+ className: "desc-item-left-content"
13
+ }, label && /*#__PURE__*/React.createElement("div", {
14
+ className: "desc-item-label"
15
+ }, label), /*#__PURE__*/React.createElement("div", {
16
+ className: "desc-item-value"
17
+ }, value)), suffix && /*#__PURE__*/React.createElement("div", {
18
+ className: "desc-item-value"
19
+ }, suffix));
20
+ };
21
+
22
+ export default DescItem;
@@ -0,0 +1,23 @@
1
+ .desc-item {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: space-between;
5
+ padding: 17px 16px;
6
+ overflow: hidden;
7
+ background-color: #f8f8f8;
8
+ border-radius: 12px;
9
+ }
10
+ .desc-item-left-content {
11
+ display: flex;
12
+ flex-shrink: 0;
13
+ align-items: center;
14
+ }
15
+ .desc-item-label {
16
+ flex-shrink: 0;
17
+ margin-right: 10px;
18
+ color: #b3b3b3;
19
+ font-weight: 500;
20
+ }
21
+ .desc-item-value {
22
+ font-weight: 500;
23
+ }
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,26 @@
1
+ .desc-item {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: space-between;
5
+ padding: 17px 16px;
6
+ overflow: hidden;
7
+ background-color: #f8f8f8;
8
+ border-radius: 12px;
9
+
10
+ &-left-content {
11
+ display: flex;
12
+ flex-shrink: 0;
13
+ align-items: center;
14
+ }
15
+
16
+ &-label {
17
+ flex-shrink: 0;
18
+ margin-right: 10px;
19
+ color: #b3b3b3;
20
+ font-weight: 500;
21
+ }
22
+
23
+ &-value {
24
+ font-weight: 500;
25
+ }
26
+ }
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ export interface LabelInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'type' | 'onChange' | 'onFocus' | 'onBlur'> {
3
+ /** 自定义class */
4
+ className?: string;
5
+ /** label 标签的文本 */
6
+ label?: React.ReactNode;
7
+ /** 输入框内容 */
8
+ value?: string;
9
+ /** 带有后缀的 input */
10
+ suffix?: React.ReactNode;
11
+ /** 带有前缀的 input */
12
+ prefix?: React.ReactNode;
13
+ /** 输入框内容变化时的回调 */
14
+ onChange?: (value: string) => void;
15
+ /** 输入框失去焦点的回调 */
16
+ onBlur?: (value: string) => void;
17
+ /** 输入框获取焦点的回调 */
18
+ onFocus?: (value: string) => void;
19
+ /** 组件dom id */
20
+ id?: string;
21
+ }
22
+ declare const LabelInput: React.FC<LabelInputProps>;
23
+ export default LabelInput;
@@ -0,0 +1,104 @@
1
+ var __read = this && this.__read || function (o, n) {
2
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
3
+ if (!m) return o;
4
+ var i = m.call(o),
5
+ r,
6
+ ar = [],
7
+ e;
8
+
9
+ try {
10
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
11
+ ar.push(r.value);
12
+ }
13
+ } catch (error) {
14
+ e = {
15
+ error: error
16
+ };
17
+ } finally {
18
+ try {
19
+ if (r && !r.done && (m = i["return"])) m.call(i);
20
+ } finally {
21
+ if (e) throw e.error;
22
+ }
23
+ }
24
+
25
+ return ar;
26
+ };
27
+
28
+ import React from 'react';
29
+ import classNames from 'classnames';
30
+ import { useControllableValue } from 'ahooks';
31
+ import { trimStart } from 'lodash';
32
+
33
+ var LabelInput = function LabelInput(props) {
34
+ var className = props.className,
35
+ prefix = props.prefix,
36
+ suffix = props.suffix,
37
+ label = props.label,
38
+ id = props.id,
39
+ onFocus = props.onFocus,
40
+ onBlur = props.onBlur;
41
+
42
+ var _a = __read(React.useState(false), 2),
43
+ focused = _a[0],
44
+ setFocused = _a[1];
45
+
46
+ var _b = __read(useControllableValue(props), 2),
47
+ value = _b[0],
48
+ setValue = _b[1];
49
+
50
+ var InputDomRef = React.useRef(null);
51
+
52
+ var handleFocus = function handleFocus() {
53
+ setFocused(true);
54
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(value);
55
+ };
56
+
57
+ var handleBlur = function handleBlur() {
58
+ setFocused(false);
59
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(value);
60
+ };
61
+
62
+ var handleChange = function handleChange(e) {
63
+ var finallyValue = trimStart(e.target.value);
64
+ setValue(finallyValue);
65
+ };
66
+
67
+ var handleLabelClick = function handleLabelClick() {
68
+ var _a;
69
+
70
+ (_a = InputDomRef.current) === null || _a === void 0 ? void 0 : _a.focus();
71
+ };
72
+
73
+ return /*#__PURE__*/React.createElement("div", {
74
+ className: classNames('label-input-control', className),
75
+ id: id
76
+ }, /*#__PURE__*/React.createElement("div", {
77
+ className: classNames('label-input-field', {
78
+ 'label-input-affix': prefix || suffix,
79
+ 'label-input-focused': focused
80
+ })
81
+ }, prefix && /*#__PURE__*/React.createElement("div", {
82
+ className: "label-input-prefix"
83
+ }, prefix), /*#__PURE__*/React.createElement("div", {
84
+ className: "label-input-warper"
85
+ }, /*#__PURE__*/React.createElement("input", {
86
+ ref: function ref(el) {
87
+ return InputDomRef.current = el;
88
+ },
89
+ "data-value": value ? value.length : 0,
90
+ className: "label-input",
91
+ type: "text",
92
+ value: value,
93
+ onFocus: handleFocus,
94
+ onBlur: handleBlur,
95
+ onChange: handleChange
96
+ }), /*#__PURE__*/React.createElement("label", {
97
+ className: "label-input-text",
98
+ onClick: handleLabelClick
99
+ }, label)), suffix && /*#__PURE__*/React.createElement("div", {
100
+ className: "label-input-suffix"
101
+ }, suffix)));
102
+ };
103
+
104
+ export default LabelInput;
@@ -0,0 +1,72 @@
1
+ .label-input {
2
+ z-index: 1;
3
+ width: 100%;
4
+ height: 100%;
5
+ padding: 24px 15px 8px 15px;
6
+ color: #263241;
7
+ font-size: 16px;
8
+ line-height: 16px;
9
+ border: 1px solid #e5e5e5;
10
+ border-radius: 12px;
11
+ outline: 0;
12
+ transition: border 0.3s;
13
+ }
14
+ .label-input:focus {
15
+ border-color: #ff6b00;
16
+ }
17
+ .label-input:focus + label,
18
+ .label-input:not([data-value='0']) + label {
19
+ transform: translateY(-10px) scale(0.86);
20
+ }
21
+ .label-input-control {
22
+ position: relative;
23
+ display: block;
24
+ width: 100%;
25
+ }
26
+ .label-input-field {
27
+ height: 56px;
28
+ overflow: hidden;
29
+ }
30
+ .label-input-affix {
31
+ display: flex;
32
+ align-items: center;
33
+ border: 1px solid #dfe2e7;
34
+ border-radius: 6px;
35
+ }
36
+ .label-input-affix .label-input {
37
+ border: 0;
38
+ }
39
+ .label-input-affix .label-input:focus {
40
+ border: 0;
41
+ }
42
+ .label-input-focused {
43
+ border-color: #ff6b00;
44
+ }
45
+ .label-input-prefix {
46
+ flex-shrink: 0;
47
+ padding-left: 15px;
48
+ }
49
+ .label-input-suffix {
50
+ flex-shrink: 0;
51
+ padding-right: 15px;
52
+ color: #b3b3b3;
53
+ font-weight: 500;
54
+ }
55
+ .label-input-warper {
56
+ position: relative;
57
+ width: 100%;
58
+ height: 100%;
59
+ }
60
+ .label-input-text {
61
+ position: absolute;
62
+ top: 16px;
63
+ left: 16px;
64
+ z-index: 2;
65
+ height: 20px;
66
+ color: #9aa5b5;
67
+ font-size: 14px;
68
+ line-height: 20px;
69
+ transform-origin: top left;
70
+ cursor: text;
71
+ transition: all 0.2s ease-out;
72
+ }
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,95 @@
1
+ @primary-color: #ff6b00;
2
+ @color_dfe2e7: #dfe2e7;
3
+ @color_9aa5b5: #9aa5b5;
4
+ @color_b3b3b3: #b3b3b3;
5
+ @color_e5e5e5: #e5e5e5;
6
+
7
+ @font-size-base: 14px;
8
+ @font-size-lg: @font-size-base + 2px;
9
+
10
+ @font-weight-500: 500;
11
+
12
+ .label-input {
13
+ z-index: 1;
14
+ width: 100%;
15
+ height: 100%;
16
+ padding: 24px 15px 8px 15px;
17
+ color: #263241;
18
+ font-size: @font-size-lg;
19
+ line-height: 16px;
20
+ border: 1px solid @color_e5e5e5;
21
+ border-radius: 12px;
22
+ outline: 0;
23
+ transition: border 0.3s;
24
+
25
+ &:focus {
26
+ border-color: @primary-color;
27
+ }
28
+
29
+ &:focus + label,
30
+ &:not([data-value='0']) + label {
31
+ transform: translateY(-10px) scale(0.86);
32
+ }
33
+
34
+ &-control {
35
+ position: relative;
36
+ display: block;
37
+ width: 100%;
38
+ }
39
+
40
+ &-field {
41
+ height: 56px;
42
+ overflow: hidden;
43
+ }
44
+
45
+ &-affix {
46
+ display: flex;
47
+ align-items: center;
48
+ border: 1px solid @color_dfe2e7;
49
+ border-radius: 6px;
50
+
51
+ .label-input {
52
+ border: 0;
53
+
54
+ &:focus {
55
+ border: 0;
56
+ }
57
+ }
58
+ }
59
+
60
+ &-focused {
61
+ border-color: @primary-color;
62
+ }
63
+
64
+ &-prefix {
65
+ flex-shrink: 0;
66
+ padding-left: 15px;
67
+ }
68
+
69
+ &-suffix {
70
+ flex-shrink: 0;
71
+ padding-right: 15px;
72
+ color: @color_b3b3b3;
73
+ font-weight: @font-weight-500;
74
+ }
75
+
76
+ &-warper {
77
+ position: relative;
78
+ width: 100%;
79
+ height: 100%;
80
+ }
81
+
82
+ &-text {
83
+ position: absolute;
84
+ top: 16px;
85
+ left: 16px;
86
+ z-index: 2;
87
+ height: 20px;
88
+ color: @color_9aa5b5;
89
+ font-size: @font-size-base;
90
+ line-height: 20px;
91
+ transform-origin: top left;
92
+ cursor: text;
93
+ transition: all 0.2s ease-out;
94
+ }
95
+ }
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { SelectProps } from 'antd/es/select';
3
+ declare const Option: import("rc-select/lib/Option").OptionFC;
4
+ export { Option };
5
+ export interface LabelSelectProps extends SelectProps<string> {
6
+ label: React.ReactNode;
7
+ }
8
+ declare const LabelSelect: {
9
+ (props: LabelSelectProps): JSX.Element;
10
+ Option: import("rc-select/lib/Option").OptionFC;
11
+ };
12
+ export default LabelSelect;
@@ -0,0 +1,107 @@
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
+
6
+ for (var p in s) {
7
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
+ }
9
+ }
10
+
11
+ return t;
12
+ };
13
+
14
+ return __assign.apply(this, arguments);
15
+ };
16
+
17
+ var __read = this && this.__read || function (o, n) {
18
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
19
+ if (!m) return o;
20
+ var i = m.call(o),
21
+ r,
22
+ ar = [],
23
+ e;
24
+
25
+ try {
26
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
27
+ ar.push(r.value);
28
+ }
29
+ } catch (error) {
30
+ e = {
31
+ error: error
32
+ };
33
+ } finally {
34
+ try {
35
+ if (r && !r.done && (m = i["return"])) m.call(i);
36
+ } finally {
37
+ if (e) throw e.error;
38
+ }
39
+ }
40
+
41
+ return ar;
42
+ };
43
+
44
+ import React from 'react';
45
+ import { useControllableValue } from 'ahooks';
46
+ import Select from 'antd/es/select';
47
+ import classNames from 'classnames';
48
+ import ArrowDropDownFilled from 'a-icons/lib/ArrowDropDownFilled';
49
+ import { omit } from 'lodash';
50
+ var Option = Select.Option;
51
+ export { Option };
52
+
53
+ var LabelSelect = function LabelSelect(props) {
54
+ var className = props.className,
55
+ label = props.label;
56
+ var selectRef = React.useRef(null);
57
+
58
+ var _a = __read(useControllableValue(props, {
59
+ valuePropName: 'open',
60
+ trigger: 'setOpen'
61
+ }), 2),
62
+ open = _a[0],
63
+ setOpen = _a[1];
64
+
65
+ var _b = __read(useControllableValue(props), 2),
66
+ value = _b[0],
67
+ setValue = _b[1];
68
+
69
+ var handleChange = function handleChange(nextValue) {
70
+ setValue(nextValue);
71
+ };
72
+
73
+ var handleLabelClick = function handleLabelClick() {
74
+ var _a;
75
+
76
+ if (!open) {
77
+ setOpen(!open);
78
+ }
79
+
80
+ (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.focus();
81
+ };
82
+
83
+ var onDropdownVisibleChange = function onDropdownVisibleChange(nextOpen) {
84
+ setOpen(nextOpen);
85
+ };
86
+
87
+ return /*#__PURE__*/React.createElement("div", {
88
+ className: classNames({
89
+ 'label-select': true,
90
+ 'label-select-label-scale': open || value
91
+ }, className)
92
+ }, /*#__PURE__*/React.createElement(Select, __assign({}, omit(props, ['open', 'onChange', 'className', 'label']), {
93
+ open: open,
94
+ ref: selectRef,
95
+ size: "large",
96
+ className: "label-select-selector",
97
+ onChange: handleChange,
98
+ onDropdownVisibleChange: onDropdownVisibleChange,
99
+ suffixIcon: /*#__PURE__*/React.createElement(ArrowDropDownFilled, null)
100
+ })), /*#__PURE__*/React.createElement("label", {
101
+ className: "label-select-text",
102
+ onClick: handleLabelClick
103
+ }, label));
104
+ };
105
+
106
+ export default LabelSelect;
107
+ LabelSelect.Option = Option;
@@ -0,0 +1,55 @@
1
+ /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
2
+ /* stylelint-disable no-duplicate-selectors */
3
+ /* stylelint-disable */
4
+ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
5
+ .label-select {
6
+ position: relative;
7
+ width: 100%;
8
+ height: 100%;
9
+ }
10
+ .label-select .ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector {
11
+ height: 52px;
12
+ border: 1px solid #e5e5e5;
13
+ border-radius: 12px;
14
+ outline: none;
15
+ }
16
+ .label-select .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {
17
+ border-color: #ff6b00;
18
+ box-shadow: none;
19
+ }
20
+ .label-select .ant-select-single.ant-select-show-arrow .ant-select-selection-item {
21
+ padding-top: 14px;
22
+ padding-left: 4px;
23
+ }
24
+ .label-select .ant-select-selection-search {
25
+ padding-top: 14px;
26
+ padding-left: 2px;
27
+ }
28
+ .label-select .ant-select-arrow {
29
+ top: 44%;
30
+ width: 22px;
31
+ height: 22px;
32
+ color: #7d7d7d;
33
+ }
34
+ .label-select .ant-select-arrow .spotecicon {
35
+ width: 22px;
36
+ height: 22px;
37
+ }
38
+ .label-select-text {
39
+ position: absolute;
40
+ top: 18px;
41
+ left: 16px;
42
+ z-index: 2;
43
+ height: 20px;
44
+ color: #9aa5b5;
45
+ font-size: 14px;
46
+ line-height: 20px;
47
+ transform-origin: top left;
48
+ cursor: pointer;
49
+ transition: all 0.2s ease-out;
50
+ }
51
+ .label-select-label-scale .label-select-text {
52
+ transform: translateY(-10px) scale(0.86);
53
+ cursor: text;
54
+ pointer-events: none;
55
+ }
@@ -0,0 +1,2 @@
1
+ import 'antd/es/select/style';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import 'antd/es/select/style';
2
+ import './index.less';