| | |
| | | return `<el-dialog v-model="dialogVisible" @open="onOpen" @close="onClose" title="Dialog Titile"> |
| | | ${str} |
| | | <template #footer> |
| | | <el-button @click="close">取消</el-button> |
| | | <el-button type="primary" @click="handelConfirm">确定</el-button> |
| | | <el-button type="primary" @click="handelConfirm">确定</el-button> |
| | | <el-button @click="close">取消</el-button> |
| | | </template> |
| | | </el-dialog>` |
| | | } |
| | |
| | | if (conf.options && conf.options.length) { |
| | | const tag = conf.optionType === 'button' ? 'el-radio-button' : 'el-radio' |
| | | const border = conf.border ? 'border' : '' |
| | | children.push(`<${tag} v-for="(item, index) in ${conf.vModel}Options" :key="index" :label="item.value" :disabled="item.disabled" ${border}>{{item.label}}</${tag}>`) |
| | | children.push(`<${tag} v-for="(item, index) in ${conf.vModel}Options" :key="index" :value="item.value" :disabled="item.disabled" ${border}>{{item.label}}</${tag}>`) |
| | | } |
| | | return children.join('\n') |
| | | } |
| | |
| | | if (conf.options && conf.options.length) { |
| | | const tag = conf.optionType === 'button' ? 'el-checkbox-button' : 'el-checkbox' |
| | | const border = conf.border ? 'border' : '' |
| | | children.push(`<${tag} v-for="(item, index) in ${conf.vModel}Options" :key="index" :label="item.value" :disabled="item.disabled" ${border}>{{item.label}}</${tag}>`) |
| | | children.push(`<${tag} v-for="(item, index) in ${conf.vModel}Options" :key="index" :label="item.value" :value="item.label" :disabled="item.disabled" ${border} />`) |
| | | } |
| | | return children.join('\n') |
| | | } |