Action - 操作
tsx
import { defineComponent, Fragment } from 'vue'
import { Action } from '@site-pro/components'
export default defineComponent(() => {
return () => {
return (
<Fragment>
<Action.Group max={2}>
<Action>操作一</Action>
<Action>操作二</Action>
<Action>操作三</Action>
<Action>操作四</Action>
</Action.Group>
</Fragment>
)
}
})
API
Action Props
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
type | 类型 | string | default / primary / warning / error | primary |
Action Group Props
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
max | 最大值 | number | - | 2 |
size | 间距大小 | number | - | 8 |