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
+6 -2
View File
@@ -18,6 +18,8 @@
</template>
<script>
import { reactive, toRefs } from 'vue';
export default {
i18n: {
'zh-CN': {
@@ -35,10 +37,12 @@ export default {
},
data() {
return {
const state = reactive({
phone: '123',
username: '',
};
});
return toRefs(state);
},
};
</script>