element-plus/docs/examples/config-provider/button.vue

29 lines
495 B
Vue
Raw Normal View History

<template>
<div>
<el-config-provider :button="config">
<el-button>中文</el-button>
</el-config-provider>
<div>
<el-checkbox v-model="config.autoInsertSpace"
>autoInsertSpace</el-checkbox
>
</div>
</div>
</template>
<script lang="ts">
import { defineComponent, reactive } from 'vue'
export default defineComponent({
setup() {
const config = reactive({
autoInsertSpace: true,
})
return {
config,
}
},
})
</script>