@wzyjs/antd 0.3.0 → 0.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wzyjs/antd",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "description",
5
5
  "author": "wzy",
6
6
  "main": "src/index.ts",
@@ -20,7 +20,7 @@
20
20
  "@wzyjs/utils": "^0.2.37",
21
21
  "antd": "^5.24.3"
22
22
  },
23
- "gitHead": "61bf121b8d0b34cc7e4a8875c17e409f32dd4d74",
23
+ "gitHead": "22c3d24e9f596ff0171bf93c85d17c9615690981",
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  }
@@ -5,18 +5,19 @@ import { Radio } from 'antd'
5
5
 
6
6
  interface FilterButtonProps<V> {
7
7
  options: { label: string; value: V }[]
8
- value: V
9
- onChange: (value: V) => void
8
+ value?: V
9
+ buttonStyle?: 'outline' | 'solid'
10
+ onChange?: (value: V) => void
10
11
  style?: CSSProperties
11
12
  }
12
13
 
13
14
  export const RadioButton = <V = string | number | boolean | null>(props: FilterButtonProps<V>) => {
14
- const { value, options, style, onChange } = props
15
+ const { value, options, buttonStyle = 'outline', style, onChange } = props
15
16
 
16
17
  return (
17
18
  <Radio.Group
18
19
  optionType='button'
19
- buttonStyle='solid'
20
+ buttonStyle={buttonStyle}
20
21
  value={value}
21
22
  style={style}
22
23
  onChange={e => onChange(e.target.value as V)}
package/src/index.ts CHANGED
@@ -28,6 +28,7 @@ export {
28
28
 
29
29
  CheckCard,
30
30
  EditableProTable,
31
+ DragSortTable,
31
32
 
32
33
  ProProvider,
33
34
  } from '@ant-design/pro-components'