Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
466d4edc
提交
466d4edc
authored
8月 25, 2021
作者:
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
perf: optimize css volume
上级
0b0a7cee
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
3 行增加
和
21 行删除
+3
-21
BasicMenu.vue
src/components/Menu/src/BasicMenu.vue
+0
-3
BasicMenuItem.vue
src/components/Menu/src/components/BasicMenuItem.vue
+2
-16
registerGlobComp.ts
src/components/registerGlobComp.ts
+0
-1
windi.config.ts
windi.config.ts
+1
-1
没有找到文件。
src/components/Menu/src/BasicMenu.vue
浏览文件 @
466d4edc
...
@@ -126,9 +126,6 @@
...
@@ -126,9 +126,6 @@
emit
(
'menuClick'
,
key
);
emit
(
'menuClick'
,
key
);
isClickGo
.
value
=
true
;
isClickGo
.
value
=
true
;
// const parentPath = await getCurrentParentPath(key);
// menuState.openKeys = [parentPath];
menuState
.
selectedKeys
=
[
key
];
menuState
.
selectedKeys
=
[
key
];
}
}
...
...
src/components/Menu/src/components/BasicMenuItem.vue
浏览文件 @
466d4edc
<
template
>
<
template
>
<MenuItem
:key=
"item.path"
>
<MenuItem
:key=
"item.path"
>
<!--
<MenuItem
:class=
"getLevelClass"
>
-->
<MenuItemContent
v-bind=
"$props"
:item=
"item"
/>
<MenuItemContent
v-bind=
"$props"
:item=
"item"
/>
</MenuItem>
</MenuItem>
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
defineComponent
}
from
'vue'
;
import
{
defineComponent
}
from
'vue'
;
import
{
Menu
}
from
'ant-design-vue'
;
import
{
Menu
}
from
'ant-design-vue'
;
import
{
useDesign
}
from
'/@/hooks/web/useDesign'
;
import
{
itemProps
}
from
'../props'
;
import
{
itemProps
}
from
'../props'
;
import
MenuItemContent
from
'./MenuItemContent.vue'
;
import
MenuItemContent
from
'./MenuItemContent.vue'
;
...
@@ -15,20 +13,8 @@
...
@@ -15,20 +13,8 @@
name
:
'BasicMenuItem'
,
name
:
'BasicMenuItem'
,
components
:
{
MenuItem
:
Menu
.
Item
,
MenuItemContent
},
components
:
{
MenuItem
:
Menu
.
Item
,
MenuItemContent
},
props
:
itemProps
,
props
:
itemProps
,
setup
()
// props
setup
()
{
{
return
{};
const
{
prefixCls
}
=
useDesign
(
'basic-menu-item'
);
// const getLevelClass = computed(() => {
// const { level, theme } = props;
// const levelCls = [`${prefixCls}__level${level}`, theme];
// return levelCls;
// });
return
{
prefixCls
,
// getLevelClass,
};
},
},
});
});
</
script
>
</
script
>
src/components/registerGlobComp.ts
浏览文件 @
466d4edc
import
type
{
App
}
from
'vue'
;
import
type
{
App
}
from
'vue'
;
// import { Icon } from './Icon';
import
{
Button
}
from
'./Button'
;
import
{
Button
}
from
'./Button'
;
import
{
import
{
// Need
// Need
...
...
windi.config.ts
浏览文件 @
466d4edc
...
@@ -29,7 +29,7 @@ export default defineConfig({
...
@@ -29,7 +29,7 @@ export default defineConfig({
* Used for animation when the element is displayed
* Used for animation when the element is displayed
* @param maxOutput The larger the maxOutput output, the larger the generated css volume
* @param maxOutput The larger the maxOutput output, the larger the generated css volume
*/
*/
function
createEnterPlugin
(
maxOutput
=
10
)
{
function
createEnterPlugin
(
maxOutput
=
8
)
{
const
createCss
=
(
index
:
number
,
d
=
'x'
)
=>
{
const
createCss
=
(
index
:
number
,
d
=
'x'
)
=>
{
const
upd
=
d
.
toUpperCase
();
const
upd
=
d
.
toUpperCase
();
return
{
return
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论