代码更新
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
</view>
|
||||
<view class="u-flex">
|
||||
<view class="u-m-r-14 color-999">是否启用</view>
|
||||
<up-switch :activeValue="1" :inactiveValue="0" v-model="isShow" @change="isShowChange" :size="18"></up-switch>
|
||||
<up-switch :activeValue="1" :inactiveValue="0" v-model="data.status" @change="isShowChange" :size="18"></up-switch>
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-m-t-24 u-p-l-54 ">
|
||||
@@ -63,19 +63,16 @@
|
||||
type: Object,
|
||||
default: () => {
|
||||
return {
|
||||
isShow:true
|
||||
status:true
|
||||
}
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
let isShow = ref(props.data.isShow)
|
||||
|
||||
function isShowChange() {
|
||||
console.log(isShow.value);
|
||||
emits('isShowChange', {
|
||||
...props.data,
|
||||
isShow: isShow.value
|
||||
})
|
||||
}
|
||||
|
||||
@@ -89,18 +86,12 @@
|
||||
|
||||
let checked = ref(false)
|
||||
|
||||
function radioClick() {
|
||||
console.log(props.index);
|
||||
emits('radioClick', props.index)
|
||||
}
|
||||
|
||||
function changeClick() {
|
||||
emits('changeClick', props.index)
|
||||
}
|
||||
|
||||
function useTypeClick() {
|
||||
emits('useTypeClick', props.index)
|
||||
}
|
||||
|
||||
function del() {
|
||||
emits('del', props.index)
|
||||
}
|
||||
@@ -113,10 +104,6 @@
|
||||
}
|
||||
function toEdit() {
|
||||
emits('edit', props.index)
|
||||
// uni.setStorageSync('cateItem', props.data)
|
||||
// go.to('PAGES_CATEGORY_EDIT', {
|
||||
// type: 'edit',
|
||||
// })
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user