bhd-components 0.2.8 → 0.2.9

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.
@@ -6,13 +6,14 @@ import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
6
6
  import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
7
7
  import * as React from "react";
8
8
  import { useRef } from "react";
9
+ import { CaretDownOutlined } from "../icons/index";
9
10
  import { Select } from "antd";
10
11
  //import type { SelectProps } from 'antd';
11
12
  import styles from "./index.module.less";
12
13
  const BhdTableSelect = (props)=>{
13
14
  const { // initOption=[],
14
15
  // initOptionType='default',
15
- className ='' , popupClassName ='' , dropdownStyle ={} , children } = props;
16
+ className ='' , popupClassName ='' , dropdownStyle ={} , suffixIcon =null , children } = props;
16
17
  const tableSelectRef = useRef(null);
17
18
  // const handleTypeSwitchOption=()=>{
18
19
  // switch(initOptionType){
@@ -58,6 +59,7 @@ const BhdTableSelect = (props)=>{
58
59
  borderRadius: 4,
59
60
  border: '1px solid rgba(0,0,0,0.15)'
60
61
  }),
62
+ suffixIcon: suffixIcon ? suffixIcon : /*#__PURE__*/ _jsx(CaretDownOutlined, {}),
61
63
  popupClassName: popupClassName ? `${popupClassName} ${styles.BhdTableSelect_popup}` : styles.BhdTableSelect_popup
62
64
  });
63
65
  return /*#__PURE__*/ _jsx("div", {
@@ -6,13 +6,14 @@ import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
6
6
  import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
7
7
  import * as React from "react";
8
8
  import { useRef } from "react";
9
+ import { CaretDownOutlined } from "../icons/index";
9
10
  import { Select } from "antd";
10
11
  //import type { SelectProps } from 'antd';
11
12
  import styles from "./index.module.less";
12
13
  var BhdTableSelect = function(props) {
13
14
  var _props_className = props.// initOption=[],
14
15
  // initOptionType='default',
15
- className, className = _props_className === void 0 ? "" : _props_className, _props_popupClassName = props.popupClassName, popupClassName = _props_popupClassName === void 0 ? "" : _props_popupClassName, _props_dropdownStyle = props.dropdownStyle, dropdownStyle = _props_dropdownStyle === void 0 ? {} : _props_dropdownStyle, children = props.children;
16
+ className, className = _props_className === void 0 ? "" : _props_className, _props_popupClassName = props.popupClassName, popupClassName = _props_popupClassName === void 0 ? "" : _props_popupClassName, _props_dropdownStyle = props.dropdownStyle, dropdownStyle = _props_dropdownStyle === void 0 ? {} : _props_dropdownStyle, _props_suffixIcon = props.suffixIcon, suffixIcon = _props_suffixIcon === void 0 ? null : _props_suffixIcon, children = props.children;
16
17
  var tableSelectRef = useRef(null);
17
18
  // const handleTypeSwitchOption=()=>{
18
19
  // switch(initOptionType){
@@ -58,6 +59,7 @@ var BhdTableSelect = function(props) {
58
59
  borderRadius: 4,
59
60
  border: "1px solid rgba(0,0,0,0.15)"
60
61
  }),
62
+ suffixIcon: suffixIcon ? suffixIcon : /*#__PURE__*/ _jsx(CaretDownOutlined, {}),
61
63
  popupClassName: popupClassName ? "".concat(popupClassName, " ").concat(styles.BhdTableSelect_popup) : styles.BhdTableSelect_popup
62
64
  });
63
65
  return /*#__PURE__*/ _jsx("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bhd-components",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "组件功能描述",
5
5
  "files": [
6
6
  "esm",