chore: 需要阻止事件冒泡
This commit is contained in:
parent
9467d400d2
commit
b3d61c8903
@ -46,7 +46,9 @@ export default defineComponent({
|
||||
emits: ['update:modelValue'],
|
||||
setup(props, { emit }) {
|
||||
type CheckedType = boolean | number | string;
|
||||
async function onChange(checked: CheckedType) {
|
||||
async function onChange(checked: CheckedType, e: Event) {
|
||||
// 阻止事件冒泡 否则会跟行选中冲突
|
||||
e.stopPropagation();
|
||||
const { checkedValue, unCheckedValue } = props;
|
||||
// 原本的状态
|
||||
const lastStatus =
|
||||
|
Loading…
Reference in New Issue
Block a user