feat: 初始化素材中心页面路由结构

This commit is contained in:
rd
2025-08-22 11:48:41 +08:00
parent f53b697df1
commit 0d5cb7ba38
19 changed files with 389 additions and 25 deletions

View File

@ -0,0 +1,26 @@
export enum AuditStatus {
All = '0',
Pending = '1',
Auditing = '2',
Passed = '3',
}
export const TABS_LIST = [
{
label: '全部',
value: AuditStatus.All,
},
{
label: '待审核',
value: AuditStatus.Pending,
},
{
label: '审核中',
value: AuditStatus.Auditing,
},
{
label: '已通过',
value: AuditStatus.Passed,
},
];

View File

@ -0,0 +1,35 @@
<script lang="tsx">
import { Tabs, TabPane } from 'ant-design-vue';
import { TABS_LIST, AuditStatus } from './constants';
export default defineComponent({
setup(_, { attrs, slots, expose }) {
const activeKey = ref(AuditStatus.All);
return () => (
<div class="finished-products-wrap h-full flex flex-col">
<div class="bg-#fff rounded-8px mb-16px">
<Tabs v-model:activeKey={activeKey.value} v-slots={{
'rightExtra': () => (
<div class="flex items-center">
123
</div>
)
}}>
{TABS_LIST.map((item) => (
<TabPane key={item.value} tab={item.label}>
{item.label}
</TabPane>
))}
</Tabs>
</div>
</div>
);
},
});
</script>
<style scoped lang="scss">
@import './style.scss';
</style>

View File

@ -0,0 +1,37 @@
.finished-products-wrap {
:deep(.ant-tabs) {
.ant-tabs-nav {
margin-bottom: 0;
padding: 0 24px;
.ant-tabs-nav-wrap {
height: 56px;
.ant-tabs-nav-list {
.ant-tabs-tab {
.ant-tabs-tab-btn {
color: var(--Text-2, #55585f);
font-family: $font-family-regular;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 24px;
}
&.ant-tabs-tab-active {
.ant-tabs-tab-btn {
color: var(--Brand-6, #6d4cfe);
font-weight: 500;
font-family: $font-family-medium;
text-shadow: none;
}
}
}
.ant-tabs-ink-bar {
background: #6D4CFE;
}
}
}
}
.ant-tabs-content-holder {
display: none;
}
}
}

View File

@ -0,0 +1,16 @@
<script lang="tsx">
export default defineComponent({
setup(_, { attrs, slots, expose }) {
return () => (
<div class="raw-material-wrap h-full flex flex-col">
原材料库
</div>
);
},
});
</script>
<style scoped lang="scss">
@import './style.scss';
</style>

View File

@ -0,0 +1,3 @@
.raw-material-wrap {
}