assui 3.2.83 → 3.2.85

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 (41) hide show
  1. package/es/button-drawer/index.d.ts +1 -1
  2. package/es/button-modal/index.d.ts +1 -1
  3. package/es/complex-val-select/index.js +5 -1
  4. package/es/complex-val-select/style/index.css +1252 -0
  5. package/es/complex-val-select/style/index.d.ts +1 -0
  6. package/es/complex-val-select/style/index.js +2 -1
  7. package/es/complex-val-select/style/index.less +29 -0
  8. package/es/condition-select/index.js +5 -1
  9. package/es/condition-select/style/index.css +1252 -0
  10. package/es/condition-select/style/index.d.ts +1 -0
  11. package/es/condition-select/style/index.js +2 -1
  12. package/es/condition-select/style/index.less +29 -0
  13. package/es/label-condition-input/style/index.d.ts +1 -0
  14. package/es/label-condition-input/style/index.js +2 -1
  15. package/es/label-select/index.js +1 -3
  16. package/es/label-select/style/index.css +3 -10
  17. package/es/label-select/style/index.d.ts +1 -0
  18. package/es/label-select/style/index.js +2 -1
  19. package/es/label-select/style/index.less +4 -12
  20. package/es/style/variables.less +2 -0
  21. package/lib/button-drawer/index.d.ts +1 -1
  22. package/lib/button-modal/index.d.ts +1 -1
  23. package/lib/complex-val-select/index.js +5 -1
  24. package/lib/complex-val-select/style/index.css +1252 -0
  25. package/lib/complex-val-select/style/index.d.ts +1 -0
  26. package/lib/complex-val-select/style/index.js +2 -1
  27. package/lib/complex-val-select/style/index.less +29 -0
  28. package/lib/condition-select/index.js +5 -1
  29. package/lib/condition-select/style/index.css +1252 -0
  30. package/lib/condition-select/style/index.d.ts +1 -0
  31. package/lib/condition-select/style/index.js +2 -1
  32. package/lib/condition-select/style/index.less +29 -0
  33. package/lib/label-condition-input/style/index.d.ts +1 -0
  34. package/lib/label-condition-input/style/index.js +2 -1
  35. package/lib/label-select/index.js +1 -3
  36. package/lib/label-select/style/index.css +3 -10
  37. package/lib/label-select/style/index.d.ts +1 -0
  38. package/lib/label-select/style/index.js +2 -1
  39. package/lib/label-select/style/index.less +4 -12
  40. package/lib/style/variables.less +2 -0
  41. package/package.json +2 -2
@@ -10,5 +10,5 @@ export interface ButtonDrawerProps extends Omit<DrawerProps, 'children'> {
10
10
  trigger?: ((fun: () => void) => React.ReactElement) | React.ReactElement;
11
11
  children: ((v: DrawerAction) => React.ReactElement) | React.ReactElement;
12
12
  }
13
- declare const ForwardRefButtonDrawer: React.ForwardRefExoticComponent<ButtonDrawerProps & React.RefAttributes<DrawerAction>>;
13
+ declare const ForwardRefButtonDrawer: React.ForwardRefExoticComponent<ButtonDrawerProps & React.RefAttributes<unknown>>;
14
14
  export default ForwardRefButtonDrawer;
@@ -10,5 +10,5 @@ export interface ButtonModalProps extends Omit<ModalProps, 'children'> {
10
10
  trigger?: ((fun: () => void) => React.ReactElement) | React.ReactElement;
11
11
  children: ((v: ModalAction) => React.ReactElement) | React.ReactElement;
12
12
  }
13
- declare const ForwardRefButtonModal: React.ForwardRefExoticComponent<ButtonModalProps & React.RefAttributes<ModalAction>>;
13
+ declare const ForwardRefButtonModal: React.ForwardRefExoticComponent<ButtonModalProps & React.RefAttributes<unknown>>;
14
14
  export default ForwardRefButtonModal;
@@ -37,6 +37,8 @@ import some from 'lodash/some';
37
37
  import isArray from 'lodash/isArray';
38
38
  import isObject from 'lodash/isObject';
39
39
  import Select from "antd/es/select";
40
+ import classNames from 'classnames';
41
+ import ArrowDownOutlined from "a-icons/es/ArrowDownOutlined";
40
42
  import useControllableValue from "ahooks/es/useControllableValue";
41
43
  var Option = Select.Option;
42
44
  export { Option };
@@ -96,10 +98,12 @@ var ComplexValSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
96
98
  };
97
99
  return /*#__PURE__*/React.createElement(Select, __assign({
98
100
  ref: selectRef,
101
+ className: classNames('complex-val-select', props === null || props === void 0 ? void 0 : props.className),
102
+ suffixIcon: /*#__PURE__*/React.createElement(ArrowDownOutlined, null),
99
103
  value: value && isReferenceTypeVal ? JSON.stringify(value) : value,
100
104
  options: finalOptions,
101
105
  onChange: handleChange,
102
106
  onSelect: handleSelect
103
- }, omit(props, ['value', 'onChange', 'options', 'onSelect'])));
107
+ }, omit(props, ['value', 'onChange', 'options', 'onSelect', 'className'])));
104
108
  });
105
109
  export default ComplexValSelect;