feat: publicize doc implemetation
This commit is contained in:
46
one/docs/demo/textarea/disabled.vue
Normal file
46
one/docs/demo/textarea/disabled.vue
Normal file
@@ -0,0 +1,46 @@
|
||||
<template>
|
||||
<article>
|
||||
<section>
|
||||
<veui-checkbox v-model="disabled">
|
||||
Disabled
|
||||
</veui-checkbox>
|
||||
</section>
|
||||
<section>
|
||||
<div>
|
||||
<veui-textarea
|
||||
:disabled="disabled"
|
||||
value="Normal"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<veui-textarea
|
||||
:disabled="disabled"
|
||||
ui="s"
|
||||
value="Small"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
</article>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { Textarea, Checkbox } from 'veui'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
'veui-textarea': Textarea,
|
||||
'veui-checkbox': Checkbox
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
disabled: true
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped docs>
|
||||
section {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
</style>
|
||||
48
one/docs/demo/textarea/readonly.vue
Normal file
48
one/docs/demo/textarea/readonly.vue
Normal file
@@ -0,0 +1,48 @@
|
||||
<template>
|
||||
<article>
|
||||
<section>
|
||||
<veui-checkbox v-model="readonly">
|
||||
Read-only
|
||||
</veui-checkbox>
|
||||
</section>
|
||||
<section>
|
||||
<div>
|
||||
<veui-textarea
|
||||
rows="2"
|
||||
:readonly="readonly"
|
||||
value="Normal"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<veui-textarea
|
||||
rows="2"
|
||||
:readonly="readonly"
|
||||
ui="s"
|
||||
value="Small"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
</article>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { Textarea, Checkbox } from 'veui'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
'veui-textarea': Textarea,
|
||||
'veui-checkbox': Checkbox
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
readonly: true
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped docs>
|
||||
section {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
</style>
|
||||
29
one/docs/demo/textarea/size.vue
Normal file
29
one/docs/demo/textarea/size.vue
Normal file
@@ -0,0 +1,29 @@
|
||||
<template>
|
||||
<article>
|
||||
<div>
|
||||
<veui-textarea
|
||||
autoresize
|
||||
line-number
|
||||
value="Normal"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<veui-textarea
|
||||
autoresize
|
||||
line-number
|
||||
ui="s"
|
||||
value="Small"
|
||||
/>
|
||||
</div>
|
||||
</article>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { Textarea } from 'veui'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
'veui-textarea': Textarea
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user