<p><pre class="brush:php;toolbar:false;"><div v-if="quesType === 'Çoktan Seçmeli'" class="row p-3 bg-dark text-light">
<div class="col-4">
<select v-model="coktanSecmeli" class="form-select" name="" id="">
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
</select>
</div>
<div v-for="item in coktanSecmeli">
<input type="text"/>
</div>
</div>
Standard exportieren defineComponent({
Name: „SoruEkle“,
Daten() {
const quesType = "";
const coktanSecmeli = 0;
zurückkehren {
quesType,
coktanSecmeli,
};
},
Komponenten: {
Fehlermeldung,
Feld,
Bilden,
},
Requisiten: {
widgetClasses: String,
},
Methoden: {},
});</pre>
您必须为
coktanSecmeli
创建一个范围。让我们为此定义计算属性:或者使用标准语法:
那么您应该将此范围用于
v-for
: