bhd-components 0.9.23 → 0.9.25

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.
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ declare const Component: {
3
+ (props: any): React.JSX.Element;
4
+ Search(props: any): React.JSX.Element;
5
+ TextArea(props: any): React.JSX.Element;
6
+ Password: React.ForwardRefExoticComponent<import("antd/es/input").PasswordProps & React.RefAttributes<import("antd").InputRef>>;
7
+ Group: React.FC<import("antd/es/input").GroupProps>;
8
+ };
9
+ export default Component;
@@ -0,0 +1,74 @@
1
+ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
2
+ import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
3
+ import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
4
+ import { useState, useEffect, useRef } from 'react';
5
+ import { Input } from 'antd';
6
+ import React from 'react';
7
+ function BaseHOC(key) {
8
+ return function(props) {
9
+ const { defaultValue, value, onChange, onPressEnter } = props;
10
+ const hasValue = props.hasOwnProperty('value');
11
+ // 用户切换到底是显示 value 还是 input
12
+ // 不能直接用 isOnComposition 原因是,这个值发生变化不会触发重新渲染
13
+ // 不能只使用 flag 原因是,setFlag 是异步的
14
+ const [flag, setFlag] = useState(false);
15
+ // 非中文输入时候显示 value。中文输入的时候显示 input
16
+ const [input, setInput] = useState(hasValue ? value : defaultValue);
17
+ useEffect(function() {
18
+ if (hasValue && input !== value) {
19
+ setInput(value);
20
+ }
21
+ }, [
22
+ value
23
+ ]);
24
+ const isOnCompositionRef = useRef(false);
25
+ function handleChange(e) {
26
+ setInput(e.target.value);
27
+ if (isOnCompositionRef.current) return;
28
+ onChange && onChange(e);
29
+ }
30
+ function handleComposition(e) {
31
+ console.log("e.type", e.type);
32
+ if ('compositionend' === e.type) {
33
+ isOnCompositionRef.current = false;
34
+ handleChange(e);
35
+ } else {
36
+ isOnCompositionRef.current = true;
37
+ }
38
+ if (flag !== isOnCompositionRef.current) {
39
+ setFlag(isOnCompositionRef.current);
40
+ }
41
+ }
42
+ let Component = Input;
43
+ if (key) {
44
+ //@ts-ignore
45
+ Component = Input[key];
46
+ }
47
+ function handlePressEnter(e) {
48
+ console.log("isOnCompositionisOnComposition", isOnCompositionRef.current);
49
+ setInput(e.target.value);
50
+ if (isOnCompositionRef.current) return;
51
+ onPressEnter && onPressEnter(e);
52
+ }
53
+ return /*#__PURE__*/ _jsx(Component, _object_spread_props(_object_spread({}, props), {
54
+ value: hasValue && !flag ? value : input,
55
+ onCompositionStart: handleComposition,
56
+ onCompositionUpdate: handleComposition,
57
+ onCompositionEnd: handleComposition,
58
+ onChange: handleChange,
59
+ onPressEnter: handlePressEnter
60
+ }));
61
+ };
62
+ }
63
+ const Component = function(props) {
64
+ return BaseHOC()(props);
65
+ };
66
+ Component.Search = function(props) {
67
+ return BaseHOC('Search')(props);
68
+ };
69
+ Component.TextArea = function(props) {
70
+ return BaseHOC('TextArea')(props);
71
+ };
72
+ Component.Password = Input.Password;
73
+ Component.Group = Input.Group;
74
+ export default Component;
@@ -49,7 +49,7 @@ const BhdSelect = (props)=>{
49
49
  let list = [];
50
50
  list = children.filter((item)=>{
51
51
  if (props.filterOption == undefined) {
52
- return item.props[search_label].includes(filterValue);
52
+ return item.props[search_label] ? String(item.props[search_label]).includes(filterValue) : false;
53
53
  } else {
54
54
  if (typeof props.filterOption === "function") {
55
55
  return props.filterOption(filterValue, item);
@@ -2,12 +2,13 @@ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
2
2
  import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
3
3
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@ice/jsx-runtime/jsx-runtime";
4
4
  import React, { useEffect, useState, useRef } from "react";
5
- import { Modal, Drawer, Input, Tooltip } from "antd";
5
+ import { Modal, Drawer, Tooltip } from "antd";
6
6
  import message from '../message';
7
7
  import ViewImage from "../viewImage";
8
8
  // import html2canvas from "html2canvas";
9
9
  import cssStyle from "./index.module.less";
10
10
  import cssStyleOnline from "./index2.module.less";
11
+ import Input from "../bhdEnterInput";
11
12
  let styles = cssStyle;
12
13
  if (false) {
13
14
  styles = cssStyleOnline;
package/es2017/index.d.ts CHANGED
@@ -81,3 +81,4 @@ export { default as BhdSelect } from "./bhdSelect";
81
81
  export { default as BhdAppLayout } from "./bhdAppLayout";
82
82
  export { default as CustomerService } from "./customerService";
83
83
  export { default as BhdDatePicker } from "./bhdDatePicker";
84
+ export { default as BhdEnterInput } from "./bhdEnterInput";
package/es2017/index.js CHANGED
@@ -86,3 +86,4 @@ export { default as BhdSelect } from "./bhdSelect"; //封装 bhdSelect
86
86
  export { default as BhdAppLayout } from "./bhdAppLayout"; //封装 BhdAppLayout
87
87
  export { default as CustomerService } from "./customerService"; //封装 智能客服
88
88
  export { default as BhdDatePicker } from "./bhdDatePicker"; //封装 日历组件
89
+ export { default as BhdEnterInput } from "./bhdEnterInput"; //封装 Input
@@ -3,6 +3,7 @@ declare const BhdMessage: {
3
3
  customSuccess: (config: ArgsProps | string) => any;
4
4
  customWarning: (config: ArgsProps | string) => any;
5
5
  customError: (config: ArgsProps | string) => any;
6
+ customInfo: (config: ArgsProps | string) => any;
6
7
  open: (...arg: any) => any;
7
8
  destroy: (...arg: any) => any;
8
9
  error: (...arg: any) => any;
@@ -1,11 +1,9 @@
1
1
  import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
2
2
  import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
3
- import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
4
3
  import * as React from "react";
5
4
  import styles from "./index.module.less";
6
5
  import { message as AntdMessage } from "antd";
7
6
  import { message } from "../bhdTipModal/modal";
8
- import { ExclamationCircleFilled } from "../icons/index";
9
7
  const BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
10
8
  customSuccess: (config)=>{
11
9
  let className = styles.customSuccess;
@@ -36,13 +34,23 @@ const BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
36
34
  if (typeof config === "string") {
37
35
  return message.error({
38
36
  content: config,
39
- className,
40
- icon: /*#__PURE__*/ _jsx(ExclamationCircleFilled, {})
37
+ className
41
38
  });
42
39
  }
43
40
  return message.error(_object_spread_props(_object_spread({}, config), {
44
- className: `${className} ${config.className || ""}`,
45
- icon: config.icon || /*#__PURE__*/ _jsx(ExclamationCircleFilled, {})
41
+ className: `${className} ${config.className || ""}`
42
+ }));
43
+ },
44
+ customInfo: (config)=>{
45
+ let className = styles.customInfo;
46
+ if (typeof config === "string") {
47
+ return message.info({
48
+ content: config,
49
+ className
50
+ });
51
+ }
52
+ return message.info(_object_spread_props(_object_spread({}, config), {
53
+ className: `${className} ${config.className || ""}`
46
54
  }));
47
55
  },
48
56
  open: (...arg)=>message.open(...arg),
@@ -3,10 +3,15 @@
3
3
  :local(.customSuccess) {
4
4
  &.bhd-message-notice {
5
5
  .bhd-message-notice-content {
6
- background: #5991ef !important;
6
+ background: #23d9c3 !important;
7
7
  color: #ffffff;
8
- font-weight: 500;
8
+ font-weight: 600;
9
9
  font-size: 14px;
10
+ padding: 9.5px 16px !important;
11
+ border-radius: 4px !important;
12
+ box-shadow: 0 6px 16px 0 rgba(32, 32, 32, 0.08),
13
+ 0 3px 6px -4px rgba(49, 49, 49, 0.12),
14
+ 0 9px 28px 8px rgba(35, 35, 35, 0.05) !important;
10
15
  & > .bhd-message-success {
11
16
  & > .anticon {
12
17
  color: #ffffff;
@@ -18,9 +23,10 @@
18
23
  line-height: 0;
19
24
  text-align: center;
20
25
  text-transform: none;
21
- vertical-align: -0.125em;
26
+ vertical-align: middle;
22
27
  text-rendering: optimizeLegibility;
23
28
  -webkit-font-smoothing: antialiased;
29
+ transform: translateY(-1.25px);
24
30
  }
25
31
  }
26
32
  }
@@ -30,10 +36,15 @@
30
36
  :local(.customWarning) {
31
37
  &.bhd-message-notice {
32
38
  .bhd-message-notice-content {
33
- background-color: #fadb14 !important;
39
+ background-color: #ffc107 !important;
34
40
  color: #ffffff;
35
- font-weight: 500;
41
+ font-weight: 600;
36
42
  font-size: 14px;
43
+ padding: 9.5px 16px !important;
44
+ border-radius: 4px !important;
45
+ box-shadow: 0 6px 16px 0 rgba(32, 32, 32, 0.08),
46
+ 0 3px 6px -4px rgba(49, 49, 49, 0.12),
47
+ 0 9px 28px 8px rgba(35, 35, 35, 0.05) !important;
37
48
  .bhd-message-warning {
38
49
  & > .anticon {
39
50
  color: #ffffff;
@@ -45,23 +56,28 @@
45
56
  line-height: 0;
46
57
  text-align: center;
47
58
  text-transform: none;
48
- vertical-align: -0.125em;
59
+ vertical-align: middle;
49
60
  text-rendering: optimizeLegibility;
50
61
  -webkit-font-smoothing: antialiased;
62
+ transform: translateY(-1.25px);
51
63
  }
52
64
  }
53
65
  }
54
66
  }
55
67
  }
56
68
 
57
-
58
69
  :local(.customError) {
59
70
  &.bhd-message-notice {
60
71
  .bhd-message-notice-content {
61
72
  background-color: #f8700c !important;
62
73
  color: #ffffff;
63
- font-weight: 500;
74
+ font-weight: 600;
64
75
  font-size: 14px;
76
+ padding: 9.5px 16px !important;
77
+ border-radius: 4px !important;
78
+ box-shadow: 0 6px 16px 0 rgba(32, 32, 32, 0.08),
79
+ 0 3px 6px -4px rgba(49, 49, 49, 0.12),
80
+ 0 9px 28px 8px rgba(35, 35, 35, 0.05) !important;
65
81
  .bhd-message-error {
66
82
  & > .anticon {
67
83
  color: #ffffff;
@@ -73,9 +89,43 @@
73
89
  line-height: 0;
74
90
  text-align: center;
75
91
  text-transform: none;
76
- vertical-align: -0.125em;
92
+ vertical-align: middle;
93
+ text-rendering: optimizeLegibility;
94
+ -webkit-font-smoothing: antialiased;
95
+ transform: translateY(-1.25px);
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
101
+
102
+ :local(.customInfo) {
103
+ &.bhd-message-notice {
104
+ .bhd-message-notice-content {
105
+ background: #5991ef !important;
106
+ color: #ffffff;
107
+ font-weight: 600;
108
+ font-size: 14px;
109
+ padding: 9.5px 16px !important;
110
+ border-radius: 4px !important;
111
+ box-shadow: 0 6px 16px 0 rgba(32, 32, 32, 0.08),
112
+ 0 3px 6px -4px rgba(49, 49, 49, 0.12),
113
+ 0 9px 28px 8px rgba(35, 35, 35, 0.05) !important;
114
+ & > .bhd-message-info {
115
+ & > .anticon {
116
+ color: #ffffff;
117
+ font-size: 14px;
118
+ display: inline-flex;
119
+ align-items: center;
120
+ color: inherit;
121
+ font-style: normal;
122
+ line-height: 0;
123
+ text-align: center;
124
+ text-transform: none;
125
+ vertical-align: middle;
77
126
  text-rendering: optimizeLegibility;
78
127
  -webkit-font-smoothing: antialiased;
128
+ transform: translateY(-1.25px);
79
129
  }
80
130
  }
81
131
  }
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ declare const Component: {
3
+ (props: any): React.JSX.Element;
4
+ Search(props: any): React.JSX.Element;
5
+ TextArea(props: any): React.JSX.Element;
6
+ Password: React.ForwardRefExoticComponent<import("antd/es/input").PasswordProps & React.RefAttributes<import("antd").InputRef>>;
7
+ Group: React.FC<import("antd/es/input").GroupProps>;
8
+ };
9
+ export default Component;
@@ -0,0 +1,75 @@
1
+ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
2
+ import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
3
+ import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
4
+ import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
5
+ import { useState, useEffect, useRef } from "react";
6
+ import { Input } from "antd";
7
+ import React from "react";
8
+ function BaseHOC(key) {
9
+ return function(props) {
10
+ var handleChange = function handleChange(e) {
11
+ setInput(e.target.value);
12
+ if (isOnCompositionRef.current) return;
13
+ onChange && onChange(e);
14
+ };
15
+ var handleComposition = function handleComposition(e) {
16
+ console.log("e.type", e.type);
17
+ if ("compositionend" === e.type) {
18
+ isOnCompositionRef.current = false;
19
+ handleChange(e);
20
+ } else {
21
+ isOnCompositionRef.current = true;
22
+ }
23
+ if (flag !== isOnCompositionRef.current) {
24
+ setFlag(isOnCompositionRef.current);
25
+ }
26
+ };
27
+ var handlePressEnter = function handlePressEnter(e) {
28
+ console.log("isOnCompositionisOnComposition", isOnCompositionRef.current);
29
+ setInput(e.target.value);
30
+ if (isOnCompositionRef.current) return;
31
+ onPressEnter && onPressEnter(e);
32
+ };
33
+ var defaultValue = props.defaultValue, value = props.value, onChange = props.onChange, onPressEnter = props.onPressEnter;
34
+ var hasValue = props.hasOwnProperty("value");
35
+ // 用户切换到底是显示 value 还是 input
36
+ // 不能直接用 isOnComposition 原因是,这个值发生变化不会触发重新渲染
37
+ // 不能只使用 flag 原因是,setFlag 是异步的
38
+ var _useState = _sliced_to_array(useState(false), 2), flag = _useState[0], setFlag = _useState[1];
39
+ // 非中文输入时候显示 value。中文输入的时候显示 input
40
+ var _useState1 = _sliced_to_array(useState(hasValue ? value : defaultValue), 2), input = _useState1[0], setInput = _useState1[1];
41
+ useEffect(function() {
42
+ if (hasValue && input !== value) {
43
+ setInput(value);
44
+ }
45
+ }, [
46
+ value
47
+ ]);
48
+ var isOnCompositionRef = useRef(false);
49
+ var Component = Input;
50
+ if (key) {
51
+ //@ts-ignore
52
+ Component = Input[key];
53
+ }
54
+ return /*#__PURE__*/ _jsx(Component, _object_spread_props(_object_spread({}, props), {
55
+ value: hasValue && !flag ? value : input,
56
+ onCompositionStart: handleComposition,
57
+ onCompositionUpdate: handleComposition,
58
+ onCompositionEnd: handleComposition,
59
+ onChange: handleChange,
60
+ onPressEnter: handlePressEnter
61
+ }));
62
+ };
63
+ }
64
+ var Component = function Component(props) {
65
+ return BaseHOC()(props);
66
+ };
67
+ Component.Search = function(props) {
68
+ return BaseHOC("Search")(props);
69
+ };
70
+ Component.TextArea = function(props) {
71
+ return BaseHOC("TextArea")(props);
72
+ };
73
+ Component.Password = Input.Password;
74
+ Component.Group = Input.Group;
75
+ export default Component;
@@ -52,7 +52,7 @@ var BhdSelect = function(props) {
52
52
  var list = [];
53
53
  list = children.filter(function(item) {
54
54
  if (props.filterOption == undefined) {
55
- return item.props[search_label].includes(filterValue);
55
+ return item.props[search_label] ? String(item.props[search_label]).includes(filterValue) : false;
56
56
  } else {
57
57
  if (typeof props.filterOption === "function") {
58
58
  return props.filterOption(filterValue, item);
@@ -6,12 +6,13 @@ import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
6
6
  import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
7
7
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@ice/jsx-runtime/jsx-runtime";
8
8
  import React, { useEffect, useState, useRef } from "react";
9
- import { Modal, Drawer, Input, Tooltip } from "antd";
9
+ import { Modal, Drawer, Tooltip } from "antd";
10
10
  import message from "../message";
11
11
  import ViewImage from "../viewImage";
12
12
  // import html2canvas from "html2canvas";
13
13
  import cssStyle from "./index.module.less";
14
14
  import cssStyleOnline from "./index2.module.less";
15
+ import Input from "../bhdEnterInput";
15
16
  var styles = cssStyle;
16
17
  if (false) {
17
18
  styles = cssStyleOnline;
package/esm/index.d.ts CHANGED
@@ -81,3 +81,4 @@ export { default as BhdSelect } from "./bhdSelect";
81
81
  export { default as BhdAppLayout } from "./bhdAppLayout";
82
82
  export { default as CustomerService } from "./customerService";
83
83
  export { default as BhdDatePicker } from "./bhdDatePicker";
84
+ export { default as BhdEnterInput } from "./bhdEnterInput";
package/esm/index.js CHANGED
@@ -86,3 +86,4 @@ export { default as BhdSelect } from "./bhdSelect"; //封装 bhdSelect
86
86
  export { default as BhdAppLayout } from "./bhdAppLayout"; //封装 BhdAppLayout
87
87
  export { default as CustomerService } from "./customerService"; //封装 智能客服
88
88
  export { default as BhdDatePicker } from "./bhdDatePicker"; //封装 日历组件
89
+ export { default as BhdEnterInput } from "./bhdEnterInput"; //封装 Input
@@ -3,6 +3,7 @@ declare const BhdMessage: {
3
3
  customSuccess: (config: ArgsProps | string) => any;
4
4
  customWarning: (config: ArgsProps | string) => any;
5
5
  customError: (config: ArgsProps | string) => any;
6
+ customInfo: (config: ArgsProps | string) => any;
6
7
  open: (...arg: any) => any;
7
8
  destroy: (...arg: any) => any;
8
9
  error: (...arg: any) => any;
@@ -2,12 +2,10 @@ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
2
2
  import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
3
3
  import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
4
4
  var _message, _message1, _message2, _message3, _message4, _message5, _message6, _message7, _message8;
5
- import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
6
5
  import * as React from "react";
7
6
  import styles from "./index.module.less";
8
7
  import { message as AntdMessage } from "antd";
9
8
  import { message } from "../bhdTipModal/modal";
10
- import { ExclamationCircleFilled } from "../icons/index";
11
9
  var BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
12
10
  customSuccess: function(config) {
13
11
  var className = styles.customSuccess;
@@ -38,13 +36,23 @@ var BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
38
36
  if (typeof config === "string") {
39
37
  return message.error({
40
38
  content: config,
41
- className: className,
42
- icon: /*#__PURE__*/ _jsx(ExclamationCircleFilled, {})
39
+ className: className
43
40
  });
44
41
  }
45
42
  return message.error(_object_spread_props(_object_spread({}, config), {
46
- className: "".concat(className, " ").concat(config.className || ""),
47
- icon: config.icon || /*#__PURE__*/ _jsx(ExclamationCircleFilled, {})
43
+ className: "".concat(className, " ").concat(config.className || "")
44
+ }));
45
+ },
46
+ customInfo: function(config) {
47
+ var className = styles.customInfo;
48
+ if (typeof config === "string") {
49
+ return message.info({
50
+ content: config,
51
+ className: className
52
+ });
53
+ }
54
+ return message.info(_object_spread_props(_object_spread({}, config), {
55
+ className: "".concat(className, " ").concat(config.className || "")
48
56
  }));
49
57
  },
50
58
  open: function() {
@@ -3,10 +3,15 @@
3
3
  :local(.customSuccess) {
4
4
  &.bhd-message-notice {
5
5
  .bhd-message-notice-content {
6
- background: #5991ef !important;
6
+ background: #23d9c3 !important;
7
7
  color: #ffffff;
8
- font-weight: 500;
8
+ font-weight: 600;
9
9
  font-size: 14px;
10
+ padding: 9.5px 16px !important;
11
+ border-radius: 4px !important;
12
+ box-shadow: 0 6px 16px 0 rgba(32, 32, 32, 0.08),
13
+ 0 3px 6px -4px rgba(49, 49, 49, 0.12),
14
+ 0 9px 28px 8px rgba(35, 35, 35, 0.05) !important;
10
15
  & > .bhd-message-success {
11
16
  & > .anticon {
12
17
  color: #ffffff;
@@ -18,9 +23,10 @@
18
23
  line-height: 0;
19
24
  text-align: center;
20
25
  text-transform: none;
21
- vertical-align: -0.125em;
26
+ vertical-align: middle;
22
27
  text-rendering: optimizeLegibility;
23
28
  -webkit-font-smoothing: antialiased;
29
+ transform: translateY(-1.25px);
24
30
  }
25
31
  }
26
32
  }
@@ -30,10 +36,15 @@
30
36
  :local(.customWarning) {
31
37
  &.bhd-message-notice {
32
38
  .bhd-message-notice-content {
33
- background-color: #fadb14 !important;
39
+ background-color: #ffc107 !important;
34
40
  color: #ffffff;
35
- font-weight: 500;
41
+ font-weight: 600;
36
42
  font-size: 14px;
43
+ padding: 9.5px 16px !important;
44
+ border-radius: 4px !important;
45
+ box-shadow: 0 6px 16px 0 rgba(32, 32, 32, 0.08),
46
+ 0 3px 6px -4px rgba(49, 49, 49, 0.12),
47
+ 0 9px 28px 8px rgba(35, 35, 35, 0.05) !important;
37
48
  .bhd-message-warning {
38
49
  & > .anticon {
39
50
  color: #ffffff;
@@ -45,23 +56,28 @@
45
56
  line-height: 0;
46
57
  text-align: center;
47
58
  text-transform: none;
48
- vertical-align: -0.125em;
59
+ vertical-align: middle;
49
60
  text-rendering: optimizeLegibility;
50
61
  -webkit-font-smoothing: antialiased;
62
+ transform: translateY(-1.25px);
51
63
  }
52
64
  }
53
65
  }
54
66
  }
55
67
  }
56
68
 
57
-
58
69
  :local(.customError) {
59
70
  &.bhd-message-notice {
60
71
  .bhd-message-notice-content {
61
72
  background-color: #f8700c !important;
62
73
  color: #ffffff;
63
- font-weight: 500;
74
+ font-weight: 600;
64
75
  font-size: 14px;
76
+ padding: 9.5px 16px !important;
77
+ border-radius: 4px !important;
78
+ box-shadow: 0 6px 16px 0 rgba(32, 32, 32, 0.08),
79
+ 0 3px 6px -4px rgba(49, 49, 49, 0.12),
80
+ 0 9px 28px 8px rgba(35, 35, 35, 0.05) !important;
65
81
  .bhd-message-error {
66
82
  & > .anticon {
67
83
  color: #ffffff;
@@ -73,9 +89,43 @@
73
89
  line-height: 0;
74
90
  text-align: center;
75
91
  text-transform: none;
76
- vertical-align: -0.125em;
92
+ vertical-align: middle;
93
+ text-rendering: optimizeLegibility;
94
+ -webkit-font-smoothing: antialiased;
95
+ transform: translateY(-1.25px);
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
101
+
102
+ :local(.customInfo) {
103
+ &.bhd-message-notice {
104
+ .bhd-message-notice-content {
105
+ background: #5991ef !important;
106
+ color: #ffffff;
107
+ font-weight: 600;
108
+ font-size: 14px;
109
+ padding: 9.5px 16px !important;
110
+ border-radius: 4px !important;
111
+ box-shadow: 0 6px 16px 0 rgba(32, 32, 32, 0.08),
112
+ 0 3px 6px -4px rgba(49, 49, 49, 0.12),
113
+ 0 9px 28px 8px rgba(35, 35, 35, 0.05) !important;
114
+ & > .bhd-message-info {
115
+ & > .anticon {
116
+ color: #ffffff;
117
+ font-size: 14px;
118
+ display: inline-flex;
119
+ align-items: center;
120
+ color: inherit;
121
+ font-style: normal;
122
+ line-height: 0;
123
+ text-align: center;
124
+ text-transform: none;
125
+ vertical-align: middle;
77
126
  text-rendering: optimizeLegibility;
78
127
  -webkit-font-smoothing: antialiased;
128
+ transform: translateY(-1.25px);
79
129
  }
80
130
  }
81
131
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bhd-components",
3
- "version": "0.9.23",
3
+ "version": "0.9.25",
4
4
  "description": "组件功能描述",
5
5
  "config": {
6
6
  "commitizen": {