perf: 💄 部门列表和菜单列表字体修改,switch颜色修改
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
ENV = 'development'
|
ENV = 'development'
|
||||||
|
|
||||||
# 本地环境接口地址
|
# 本地环境接口地址
|
||||||
VITE_API_URL = 'http://127.0.0.1:8000/'
|
VITE_API_URL = 'https://demo.dvadmin.com/api/'
|
||||||
|
|
||||||
# 是否启用按钮权限
|
# 是否启用按钮权限
|
||||||
VITE_PM_ENABLED = true
|
VITE_PM_ENABLED = true
|
||||||
|
|||||||
13749
web/package-lock.json
generated
Normal file
13749
web/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -205,7 +205,7 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
|
|||||||
name: 'fs-dict-switch',
|
name: 'fs-dict-switch',
|
||||||
activeText: '',
|
activeText: '',
|
||||||
inactiveText: '',
|
inactiveText: '',
|
||||||
style: '--el-switch-on-color: #409eff; --el-switch-off-color: #dcdfe6',
|
style: '--el-switch-on-color: var(--el-color-primary); --el-switch-off-color: #dcdfe6',
|
||||||
onChange: compute((context) => {
|
onChange: compute((context) => {
|
||||||
return () => {
|
return () => {
|
||||||
api.UpdateObj(context.row).then((res: APIResponseData) => {
|
api.UpdateObj(context.row).then((res: APIResponseData) => {
|
||||||
|
|||||||
@@ -20,9 +20,9 @@
|
|||||||
@node-click="handleNodeClick"
|
@node-click="handleNodeClick"
|
||||||
>
|
>
|
||||||
<template #default="{ node, data }">
|
<template #default="{ node, data }">
|
||||||
<span v-if="data.status" class="text-center font-black text-xl"><SvgIcon
|
<span v-if="data.status" class="text-center font-black font-normal"><SvgIcon
|
||||||
:name="node.data.icon"/> {{ node.label }}</span>
|
:name="node.data.icon"/> {{ node.label }}</span>
|
||||||
<span v-else class="text-center font-black text-xl text-red-700"><SvgIcon
|
<span v-else class="text-center font-black font-normal text-red-700"><SvgIcon
|
||||||
:name="node.data.icon"/> {{ node.label }}</span>
|
:name="node.data.icon"/> {{ node.label }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-tree>
|
</el-tree>
|
||||||
@@ -302,4 +302,7 @@ onMounted(() => {
|
|||||||
.el-card {
|
.el-card {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
.font-normal {
|
||||||
|
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
|
|||||||
name: 'fs-dict-switch',
|
name: 'fs-dict-switch',
|
||||||
activeText: '',
|
activeText: '',
|
||||||
inactiveText: '',
|
inactiveText: '',
|
||||||
style: '--el-switch-on-color: #409eff; --el-switch-off-color: #dcdfe6',
|
style: '--el-switch-on-color: var(--el-color-primary); --el-switch-off-color: #dcdfe6',
|
||||||
onChange: compute((context) => {
|
onChange: compute((context) => {
|
||||||
return () => {
|
return () => {
|
||||||
api.UpdateObj(context.row).then((res: APIResponseData) => {
|
api.UpdateObj(context.row).then((res: APIResponseData) => {
|
||||||
|
|||||||
@@ -19,10 +19,10 @@
|
|||||||
@node-drop="nodeDrop" lazy icon="ArrowRightBold" :indent="12" draggable
|
@node-drop="nodeDrop" lazy icon="ArrowRightBold" :indent="12" draggable
|
||||||
@node-click="handleNodeClick">
|
@node-click="handleNodeClick">
|
||||||
<template #default="{ node, data }">
|
<template #default="{ node, data }">
|
||||||
<span v-if="data.status" class="text-center font-black text-xl">
|
<span v-if="data.status" class="text-center font-black font-normal">
|
||||||
<SvgIcon :name="node.data.icon"/> {{ node.label }}
|
<SvgIcon :name="node.data.icon"/> {{ node.label }}
|
||||||
</span>
|
</span>
|
||||||
<span v-else class="text-center font-black text-xl text-red-700">
|
<span v-else class="text-center font-black text-red-700 font-normal">
|
||||||
<SvgIcon :name="node.data.icon"/> {{ node.label }}
|
<SvgIcon :name="node.data.icon"/> {{ node.label }}
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -394,4 +394,7 @@ onActivated(() => {
|
|||||||
.el-card {
|
.el-card {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
.font-normal {
|
||||||
|
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ export const createCrudOptions = function ({ crudExpose, rolePermission }: { cru
|
|||||||
name: 'fs-dict-switch',
|
name: 'fs-dict-switch',
|
||||||
activeText: '',
|
activeText: '',
|
||||||
inactiveText: '',
|
inactiveText: '',
|
||||||
style: '--el-switch-on-color: #409eff; --el-switch-off-color: #dcdfe6',
|
style: '--el-switch-on-color: var(--el-color-primary); --el-switch-off-color: #dcdfe6',
|
||||||
onChange: compute((context) => {
|
onChange: compute((context) => {
|
||||||
return () => {
|
return () => {
|
||||||
api.UpdateObj(context.row).then((res: APIResponseData) => {
|
api.UpdateObj(context.row).then((res: APIResponseData) => {
|
||||||
|
|||||||
@@ -346,7 +346,7 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
|
|||||||
name: 'fs-dict-switch',
|
name: 'fs-dict-switch',
|
||||||
activeText: '',
|
activeText: '',
|
||||||
inactiveText: '',
|
inactiveText: '',
|
||||||
style: '--el-switch-on-color: #409eff; --el-switch-off-color: #dcdfe6',
|
style: '--el-switch-on-color: var(--el-color-primary); --el-switch-off-color: #dcdfe6',
|
||||||
onChange: compute((context) => {
|
onChange: compute((context) => {
|
||||||
return () => {
|
return () => {
|
||||||
api.UpdateObj(context.row).then((res: APIResponseData) => {
|
api.UpdateObj(context.row).then((res: APIResponseData) => {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
@node-click="onTreeNodeClick"
|
@node-click="onTreeNodeClick"
|
||||||
>
|
>
|
||||||
<template #default="{ node, data }">
|
<template #default="{ node, data }">
|
||||||
<span class="text-center font-black text-xl">{{ node.label }}</span>
|
<span class="text-center font-black font-normal">{{ node.label }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-tree>
|
</el-tree>
|
||||||
</el-card>
|
</el-card>
|
||||||
@@ -142,4 +142,7 @@ onMounted(() => {
|
|||||||
.el-card {
|
.el-card {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
.font-normal {
|
||||||
|
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -217,7 +217,7 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
|
|||||||
name: 'fs-dict-switch',
|
name: 'fs-dict-switch',
|
||||||
activeText: '',
|
activeText: '',
|
||||||
inactiveText: '',
|
inactiveText: '',
|
||||||
style: '--el-switch-on-color: #409eff; --el-switch-off-color: #dcdfe6',
|
style: '--el-switch-on-color: var(--el-color-primary); --el-switch-off-color: #dcdfe6',
|
||||||
onChange: compute((context) => {
|
onChange: compute((context) => {
|
||||||
return () => {
|
return () => {
|
||||||
api.UpdateObj(context.row).then((res: APIResponseData) => {
|
api.UpdateObj(context.row).then((res: APIResponseData) => {
|
||||||
|
|||||||
6627
web/yarn.lock
6627
web/yarn.lock
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user