Watt-Json-Editor

介绍

引入

import { createApp } from 'vue'
import { WattJsonEditor } from 'wattpc-ui'

createApp().use(WattJsonEditor)

代码演示

基础使用

JSON编辑
<template>
    <div>
        <watt-json-editor v-model="formState.json" />
    </div>
</template>
<script setup>
import { reactive, watch } from 'vue'

const formState = reactive({
    json: {name: 90}
})
</script>
Last Updated:
Contributors: cabber