@gary-yez/go-admin-web 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gary-yez/go-admin-web",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "go-admin 公共管理端:系统页面、布局、请求封装和业务组件",
5
5
  "type": "module",
6
6
  "files": [
@@ -151,10 +151,10 @@
151
151
  <el-table-column label="索引类型" :width="130">
152
152
  <template #default="{ row,$index }">
153
153
  <el-form-item :prop="`${row.id < 0 ? 'builtin_fields' : 'fields'}.${row.id < 0 ? $index : $index - 3}.index_type`">
154
- <el-select :disabled="row.id < 0" v-model="row.index_type" placeholder="索引类型" clearable>
155
- <el-option label="index" value="index"></el-option>
156
- <el-option label="unique" value="unique"></el-option>
157
- <el-option label="uniqueIndex" value="uniqueIndex"></el-option>
154
+ <el-select :disabled="row.id < 0" v-model="row.index_type" placeholder="无索引" clearable>
155
+ <el-option label="普通索引" value="index"></el-option>
156
+ <el-option label="唯一索引" value="uniqueIndex"></el-option>
157
+ <el-option v-if="row.index_type === 'unique'" label="唯一约束" value="unique"></el-option>
158
158
  </el-select>
159
159
  </el-form-item>
160
160
  </template>