Skip to content

Commit 56859a9

Browse files
committed
1 parent b2e4c02 commit 56859a9

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

adminforth/documentation/docs/tutorial/03-Customization/15-afcl.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,33 @@ You might need to put some extra item at bottom of list
285285
</div>
286286
</div>
287287

288+
### Add classes to the input directly
289+
290+
You might need to put some extra item at bottom of list
291+
292+
<div class="split-screen" >
293+
<div >
294+
```html
295+
<Select
296+
class="w-full"
297+
:options="[
298+
{label: 'Last 7 days', value: '7'},
299+
{label: 'Last 30 days', value: '30'},
300+
{label: 'Last 90 days', value: '90'},
301+
]"
302+
v-model="selected"
303+
//diff-add
304+
classesForInput="py-[4px] text-sm bg-white rounded"
305+
>
306+
307+
</Select>
308+
```
309+
</div>
310+
<div>
311+
![AFCL Select](image-99.png)
312+
</div>
313+
</div>
314+
288315
## Input
289316

290317

10.3 KB
Loading

dev-demo/custom/AfComponents.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,18 @@
333333

334334
<!-- <Button class="mt-48 ml-48" @click="createJob"> Create Job</Button> -->
335335

336-
336+
<Select
337+
class="w-full"
338+
:options="[
339+
{label: 'Last 7 days', value: '7'},
340+
{label: 'Last 30 days', value: '30'},
341+
{label: 'Last 90 days', value: '90'},
342+
]"
343+
v-model="selected"
344+
classesForInput="py-[4px] text-sm bg-white rounded"
345+
>
346+
347+
</Select>
337348

338349
</div>
339350

0 commit comments

Comments
 (0)