签入版本
This commit is contained in:
@@ -210,14 +210,13 @@ export function getDictItemByCode(code) {
|
||||
|
||||
```vue
|
||||
<template>
|
||||
<el-select v-model="formData.status" placeholder="请选择状态">
|
||||
<el-option
|
||||
v-for="item in statusOptions"
|
||||
:key="item.value"
|
||||
:label="item.name"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
<n-select
|
||||
v-model:value="formData.status"
|
||||
:options="statusOptions"
|
||||
label-field="name"
|
||||
value-field="value"
|
||||
placeholder="请选择状态"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
@@ -246,9 +245,9 @@ const [genderOptions, statusOptions] = await Promise.all([
|
||||
|
||||
```vue
|
||||
<template>
|
||||
<el-tag :type="row.status === 1 ? 'success' : 'danger'">
|
||||
<n-tag :type="row.status === 1 ? 'success' : 'error'" bordered>
|
||||
{{ row.statusText }}
|
||||
</el-tag>
|
||||
</n-tag>
|
||||
</template>
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user