@@ -63,17 +63,15 @@ Basic usage requires binding the `icon` value and `text` property. By default, i
6363
6464The content of ` GridItem ` can be customized through the default slot.
6565
66- When using the default slot, enable the ` use-slot ` property on ` GridItem ` .
67-
6866``` html
6967<wd-grid >
70- <wd-grid-item use-slot >
68+ <wd-grid-item >
7169 <image class =" img" :src =" joy" />
7270 </wd-grid-item >
73- <wd-grid-item use-slot >
71+ <wd-grid-item >
7472 <image class =" img" :src =" joy" />
7573 </wd-grid-item >
76- <wd-grid-item use-slot >
74+ <wd-grid-item >
7775 <image class =" img" :src =" joy" />
7876 </wd-grid-item >
7977</wd-grid >
@@ -88,9 +86,9 @@ When using the default slot, enable the `use-slot` property on `GridItem`.
8886
8987## Individual Slots
9088
91- The ` icon ` slot can be inserted into the icon position of ` GridItem ` . Enable the icon slot through ` use-icon-slot ` .
89+ The ` icon ` slot can be inserted into the icon position of ` GridItem ` .
9290
93- The ` text ` slot can be inserted into the text position of ` GridItem ` . Enable the text slot through ` use-text-slot ` .
91+ The ` text ` slot can be inserted into the text position of ` GridItem ` .
9492
9593Note:
9694
@@ -100,14 +98,14 @@ Note:
10098
10199``` html
102100<wd-grid >
103- <wd-grid-item use-icon-slot text =" Text" v-for =" index in 3" :key =" index" icon-size =" 36px" >
101+ <wd-grid-item text =" Text" v-for =" index in 3" :key =" index" icon-size =" 36px" >
104102 <template #icon >
105103 <image class =" slot-img" :src =" joy" />
106104 </template >
107105 </wd-grid-item >
108106</wd-grid >
109107<wd-grid >
110- <wd-grid-item use-text-slot icon =" picture" v-for =" index in 3" :key =" index" >
108+ <wd-grid-item icon =" picture" v-for =" index in 3" :key =" index" >
111109 <template #text >
112110 <view class =" text" >Custom Text Slot</view >
113111 </template >
@@ -230,9 +228,9 @@ Set jump link through `url` property.
230228| icon-size | Icon size | string | '26px' | - |
231229| url | Page jump link | string | - | - |
232230| link-type | Page jump type | string | 'navigateTo' | - |
233- | use-slot | Whether to use slot | boolean | false | - |
234- | use-icon-slot | Whether to use icon slot | boolean | false | - |
235- | use-text-slot | Whether to use text slot | boolean | false | - |
231+ | < s > use-slot</ s > | Whether to use slot ** ($LOWEST_VERSION$Deprecated, use default slot directly) ** | boolean | false | - |
232+ | < s > use-icon-slot</ s > | Whether to use icon slot ** ($LOWEST_VERSION$Deprecated, component auto-detects icon slot existence) ** | boolean | false | - |
233+ | < s > use-text-slot</ s > | Whether to use text slot ** ($LOWEST_VERSION$Deprecated, component auto-detects text slot existence) ** | boolean | false | - |
236234| clickable | Whether clickable | boolean | false | - |
237235
238236## GridItem Events
0 commit comments