mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 17:31:02 +08:00
29 lines
495 B
Vue
29 lines
495 B
Vue
|
<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>
|