Skip to content

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类型stringdefault / primary / warning / errorprimary

Action Group Props

参数说明类型可选值默认值
max最大值number-2
size间距大小number-8