Revert "refactor: StatusSwitch使用v-model替换v-mode:value"
This reverts commit 0e8af7d19b
.
This commit is contained in:
parent
88ba7406c0
commit
92dbe30d1f
@ -5,7 +5,7 @@ defineOptions({
|
|||||||
name: 'StatusSwitch'
|
name: 'StatusSwitch'
|
||||||
});
|
});
|
||||||
|
|
||||||
const model = defineModel<Api.Common.EnableStatusNumber>({ default: 0 });
|
const modelValue = defineModel<Api.Common.EnableStatusNumber>('value', { default: 0 });
|
||||||
|
|
||||||
interface Emits {
|
interface Emits {
|
||||||
(e: 'fetch', value: Api.Common.EnableStatusNumber, callback: () => void): void;
|
(e: 'fetch', value: Api.Common.EnableStatusNumber, callback: () => void): void;
|
||||||
@ -26,7 +26,7 @@ const handleUpdateValue = (value: Api.Common.EnableStatusNumber) => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NSwitch
|
<NSwitch
|
||||||
:value="model"
|
:value="modelValue"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:rubber-band="false"
|
:rubber-band="false"
|
||||||
:checked-value="1"
|
:checked-value="1"
|
||||||
|
@ -68,7 +68,7 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP
|
|||||||
callback();
|
callback();
|
||||||
};
|
};
|
||||||
|
|
||||||
return <StatusSwitch v-model={row.groupStatus} onFetch={fetchFn} />;
|
return <StatusSwitch v-model:value={row.groupStatus} onFetch={fetchFn} />;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -60,7 +60,7 @@ const { columns, data, getData, loading, mobilePagination, searchParams, resetSe
|
|||||||
callback();
|
callback();
|
||||||
};
|
};
|
||||||
|
|
||||||
return <StatusSwitch v-model={row.jobStatus} onFetch={fetchFn} />;
|
return <StatusSwitch v-model:value={row.jobStatus} onFetch={fetchFn} />;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -97,7 +97,7 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP
|
|||||||
callback();
|
callback();
|
||||||
};
|
};
|
||||||
|
|
||||||
return <StatusSwitch v-model={row.notifyStatus} onFetch={fetchFn} />;
|
return <StatusSwitch v-model:value={row.notifyStatus} onFetch={fetchFn} />;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -70,7 +70,7 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP
|
|||||||
callback();
|
callback();
|
||||||
};
|
};
|
||||||
|
|
||||||
return <StatusSwitch v-model={row.sceneStatus} onFetch={fetchFn} />;
|
return <StatusSwitch v-model:value={row.sceneStatus} onFetch={fetchFn} />;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -85,7 +85,7 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP
|
|||||||
callback();
|
callback();
|
||||||
};
|
};
|
||||||
|
|
||||||
return <StatusSwitch v-model={row.workflowStatus} onFetch={fetchFn} />;
|
return <StatusSwitch v-model:value={row.workflowStatus} onFetch={fetchFn} />;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user