UNPKG

beansflight-json-form

Version:

> **版本号:verison 0.23.17**

42 lines (41 loc) 643 B
import { Drawer } from 'view-design' export default { name: 'DrawerItem', props: { value: { type: Boolean }, title: { type: String, default: null } }, data() { return { show: false } }, render(h) { return ( <Drawer title={this.title} closable={true} v-model={this.show} width="620" onInput={() => this.closed()} > {this.$scopedSlots.default()} </Drawer> ) }, methods: { closed() { this.$emit('input', this.show) } }, watch: { value(newValue) { this.show = newValue } } }