在非 template/render 模式下(例如使用 CDN 引用时),组件名要分隔,例如 :
- DatePicker:
date-picker
- FormItem:
form-item
- CheckboxGroup:
checkbox-group
- InputNumber:
input-number
- BreadcrumbItem:
breadcrumb-item
- MenuGroup:
menu-group
- MenuItem:
menu-item
- RadioGroup:
radio-group
- TabPane:
tab-pane
- DropdownMenu:
dropdown-menu
- DropdownItem:
dropdown-item
以下组件,在非 template/render 模式下,需要加前缀 i-
:
- Button:
i-button
- Col:
i-col
- Table:
i-table
- Input:
i-input
- Form:
i-form
- Menu:
i-menu
- Select:
i-select
- Option:
i-option
- Progress:
i-progress
- Time:
i-time
以下组件,在所有模式下,必须加前缀 i-
,除非使用 iview-loader:
- Switch:
i-switch
- Circle:
i-circle
以下组件,在非 template/render 模式下写法不变:
- <Card>
- <Checkbox>
- <Row>
- <Card>
- <Sider>
- <Layout>
- <Submenu>
- <Panel>
- <Collapse>
- <Divider>
- <CellGroup>
- <Cell>
- <Badge>
- <Tabs>
- <Radio>
- <Dropdown>
- <Breadcrumb>