frontend-vue 退役:删新版/旧版选项控件与删除品牌/巡店删除入口,用例族随实况收敛
- 删 ZiniaoVersionSetting.vue / ziniao-version.ts;9 个 Tab 摘 ziniao_version 载荷 - 删 BrandDeleteBrandTab.vue / BrandPatrolDeleteTab.vue 与 delete-brand 类型模块; 路由、工具目录(20→18)、端点表、progress-light 模块(12→10)、withdraw.ts 巡店段、 java-modules re-export 同步摘除 - 测试面:node --test 17 处红按实况收敛(端点冻结快照摘两组、适配器 16→14、窄集合台账 摘两页、六页→五页、reexport/快照随实况),modules-delete-brand.test.ts 整文件删 - vue-tsc+vite build 通过;node --test 837/837 绿
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
<template>
|
||||
<section class="ziniao-version-setting">
|
||||
<div class="setting-title">紫鸟版本</div>
|
||||
<div class="version-options" role="group" aria-label="紫鸟版本">
|
||||
<button v-for="option in options" :key="option.value" type="button" class="version-option"
|
||||
:class="{ active: modelValue === option.value }" :aria-pressed="modelValue === option.value"
|
||||
@mousedown.prevent @click="emit('update:modelValue', option.value)">
|
||||
<span>{{ option.label }}</span>
|
||||
</button>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { ZiniaoVersion } from '@/shared/utils/ziniao-version'
|
||||
|
||||
defineProps<{ modelValue: ZiniaoVersion }>()
|
||||
const emit = defineEmits<{ 'update:modelValue': [value: ZiniaoVersion] }>()
|
||||
const options: Array<{ label: string; value: ZiniaoVersion }> = [
|
||||
{ label: '新版', value: 'new' },
|
||||
{ label: '旧版', value: 'old' },
|
||||
]
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.ziniao-version-setting { margin: 16px 0; }
|
||||
.setting-title { margin-bottom: 10px; color: #bbb; font-size: 13px; }
|
||||
.version-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; min-height: 40px; padding: 3px; border: 1px solid #3a3a3a; border-radius: 6px; background: #202020; }
|
||||
.version-option { display: flex; min-width: 0; align-items: center; justify-content: center; border: 0; border-radius: 4px; background: transparent; color: #aaa; cursor: pointer; font-size: 13px; transition: background-color .15s ease, color .15s ease; }
|
||||
.version-option:hover { color: #eee; }
|
||||
.version-option.active { background: #409eff; color: #fff; }
|
||||
</style>
|
||||
Reference in New Issue
Block a user