el‐form‐item 填入自定內容 - daniel-qa/Vue GitHub Wiki

el-form-item 填入自定內容

  • el-form-item 顯示自定內容
<el-form-item label="搜尋內容">
	<div class="tag-container" style="width: 90%;">
		<div v-for="(item, index) in form.searchContent"
			 :key="index"
			 class="bordered-div"
			 style="margin-bottom: 8px;">
			{{ item.name }}
			<el-tag style="background-color: #409eff; color: white; margin-left: 8px;">
				{{ msgModeMap[item.mode] }}
			</el-tag>
		</div>
	</div>
</el-form-item>
  • form 內容
    const form = ref({
        msgType: '', // 發送類型
        selType: '', // 挑選方式
        theme: '', // 主題
        content:'',
        subject: '',
        content: '',
        searchContent: [],
        sendTime: '',
        deliveryTime: ''
    });
⚠️ **GitHub.com Fallback** ⚠️