非template/render模式下使用iview組件時標簽需要轉化


工作中遇到的情況,記錄下:

iView在非 template/render 模式下標簽的轉化

以下組件,在非 template/render 模式下組件名要‘-‘分隔:

1 DatePicker:date-picker
2 FormItem:form-item
3 CheckboxGroup:checkbox-group
4 InputNumber:input-number
5 BreadcrumbItem:breadcrumb-item

以下組件,在非 template/render 模式下,需要加前綴 i-:

 1 Button: i-button
 2 Col: i-col
 3 Table: i-table
 4 Input: i-input
 5 Form: i-form
 6 Menu: i-menu
 7 Select: i-select
 8 Option: i-option
 9 Progress: i-progress
10 Header:i-header
11 Content:i-content
12 Footer:i-footer
13 Switch: i-switch
14 Circle: i-circle

以下組件,在非 template/render 模式下,其他組件寫法不變,如

1 <Card>
2 <Checkbox>
3 <Row>
4 <Card>
5 <Sider>
6 <Layout>
7 <Submenu>
8 <Menu-item>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM