fix: 修复评分和nps题型非必填提示没有填写的问题 (#94)
* fix: 修复评分和nps题型非必填提示没有填写的问题 * fix: 使用添加key的方法修复必填提示
This commit is contained in:
parent
9263ad9f2f
commit
2930971da7
@ -17,6 +17,7 @@
|
||||
<QuestionWithRule
|
||||
v-if="isShowInput"
|
||||
:showTitle="false"
|
||||
:key="`${props.field}_${rating}`"
|
||||
:moduleConfig="moduleConfig"
|
||||
@change="onMoreDataChange"
|
||||
></QuestionWithRule>
|
||||
|
@ -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}`,
|
||||
|
Loading…
Reference in New Issue
Block a user