docs(Field): use composition api

This commit is contained in:
chenjiahan
2020-12-09 14:06:36 +08:00
parent 2f40e23be9
commit b423259f45
11 changed files with 117 additions and 66 deletions
+7 -3
View File
@@ -18,6 +18,8 @@
</template>
<script>
import { reactive, toRefs } from 'vue';
export default {
i18n: {
'zh-CN': {
@@ -32,11 +34,13 @@ export default {
},
},
data() {
return {
setup() {
const state = reactive({
icon1: '',
icon2: '123',
};
});
return toRefs(state);
},
};
</script>