fix: 修复评分和nps题型非必填提示没有填写的问题 (#94)

* fix: 修复评分和nps题型非必填提示没有填写的问题
* fix: 使用添加key的方法修复必填提示
This commit is contained in:
chaorenluo 2024-04-08 17:28:02 +08:00 committed by GitHub
parent 9263ad9f2f
commit 2930971da7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@
<QuestionWithRule
v-if="isShowInput"
:showTitle="false"
:key="`${props.field}_${rating}`"
:moduleConfig="moduleConfig"
@change="onMoreDataChange"
></QuestionWithRule>

View File

@ -77,7 +77,6 @@ export default defineComponent({
if (props.readonly) return;
rating.value = num;
};
const onMoreDataChange = (data) => {
const { key, value } = data;
emit('change', {
@ -122,6 +121,7 @@ export default defineComponent({
{isShowInput && (
<QuestionWithRule
showTitle={false}
key={ `${this.field}_${this.rating}`}
moduleConfig={{
type: 'selectMoreModule',
field: `${this.field}_${this.rating}`,