-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docs): add example for QField tag property.
- Loading branch information
1 parent
a02930b
commit f3fdbd6
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<template> | ||
<div class="q-pa-md"> | ||
<div class="q-gutter-y-md column" style="max-width: 300px"> | ||
<q-field label="Custom Component Wrapper" stack-label> | ||
|
||
<template v-slot:control> | ||
<div class="self-center full-width no-outline" tabindex="0">{{divText}}</div> | ||
</template> | ||
</q-field> | ||
|
||
<q-field v-model="labelText" tag="label" label="Form Control Field Wrapper" stack-label clearable> | ||
<template v-slot:control="{ id, modelValue, emitValue }"> | ||
<input :id="id" class="q-field__input" :value="modelValue" @input="e => emitValue(e.target.value)"> | ||
</template> | ||
</q-field> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { ref } from 'vue' | ||
export default { | ||
setup () { | ||
return { | ||
divText: ref('div tag content'), | ||
labelText: ref('label tag placeholder') | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters