chore: add useParent default value

This commit is contained in:
chenjiahan
2020-08-25 15:24:30 +08:00
parent d0a3726bbb
commit 25cbdecf25
5 changed files with 9 additions and 9 deletions
-1
View File
@@ -18,7 +18,6 @@ export default createComponent({
setup(props, { emit, slots }) {
const children = ref([]);
const active = () => +props.modelValue;
const setActive = (value) => {
if (value !== active()) {
emit('change', value);