代码生成相关代码

This commit is contained in:
吕金泽
2022-03-23 21:00:30 +08:00
parent 9257129ed7
commit 8774b5f826
5 changed files with 268 additions and 1 deletions
@@ -43,12 +43,17 @@ const props = defineProps({
operation: {
type: Boolean,
default: true
},
page: {
type: Boolean,
default: false
}
})
const tableOptions = reactive({
data: props.modelValue,
cols: [],
page: props.page,
showNo: props.showNo
})
@@ -5,7 +5,10 @@
:key="item.value"
:label="item.label"
:value="item.value"
/>
>
<span style="float: left">{{ item.label }}</span>
<span v-if="showValue" style="float: right;color: var(--el-text-color-secondary);font-size: 13px;">{{ item.value }}</span>
</el-option>
</el-select>
</template>
@@ -69,6 +72,10 @@ const props = defineProps({
join: {
type: Boolean,
default: true
},
showValue: {
type: Boolean,
default: false
}
})