Merge pull request #8 from H5-Dooring/xzx-feature
feat:add left component hover
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
* @Author: yehuozhili
|
||||
* @Date: 2021-02-27 21:33:36
|
||||
* @LastEditors: yehuozhili
|
||||
* @LastEditTime: 2021-08-12 14:43:05
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @LastEditTime: 2021-08-18 19:54:56
|
||||
* @FilePath: \dooringx\packages\dooringx-example\src\plugin\index.tsx
|
||||
*/
|
||||
|
||||
@@ -19,6 +19,7 @@ const LeftRegistMap: LeftRegistComponentMapItem[] = [
|
||||
type: 'basic',
|
||||
component: 'button',
|
||||
img: 'icon-anniu',
|
||||
imgCustom: <PlayCircleOutlined />,
|
||||
displayName: '按钮',
|
||||
urlFn: () => import('./registComponents/button'),
|
||||
},
|
||||
@@ -58,7 +59,7 @@ export const defaultConfig: Partial<InitConfig> = {
|
||||
{
|
||||
type: 'style',
|
||||
icon: (
|
||||
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
|
||||
<div className='right-tab-item' style={{ width: 50, textAlign: 'center' }}>
|
||||
外观
|
||||
</div>
|
||||
),
|
||||
@@ -66,7 +67,7 @@ export const defaultConfig: Partial<InitConfig> = {
|
||||
{
|
||||
type: 'animate',
|
||||
icon: (
|
||||
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
|
||||
<div className='right-tab-item' style={{ width: 50, textAlign: 'center' }}>
|
||||
动画
|
||||
</div>
|
||||
),
|
||||
@@ -74,7 +75,7 @@ export const defaultConfig: Partial<InitConfig> = {
|
||||
{
|
||||
type: 'fn',
|
||||
icon: (
|
||||
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
|
||||
<div className='right-tab-item' style={{ width: 50, textAlign: 'center' }}>
|
||||
函数
|
||||
</div>
|
||||
),
|
||||
@@ -82,7 +83,7 @@ export const defaultConfig: Partial<InitConfig> = {
|
||||
{
|
||||
type: 'actions',
|
||||
icon: (
|
||||
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
|
||||
<div className='right-tab-item' style={{ width: 50, textAlign: 'center' }}>
|
||||
事件
|
||||
</div>
|
||||
),
|
||||
|
@@ -10,10 +10,12 @@
|
||||
.coitem {
|
||||
margin: 5px;
|
||||
|
||||
|
||||
.redbox {
|
||||
height: 68px;
|
||||
width: 68px;
|
||||
background: var(--redbox-color);
|
||||
// background: var(--redbox-color);
|
||||
background-color: #F7F8FA;
|
||||
// line-height: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -24,8 +26,13 @@
|
||||
#icon-jiantou path {
|
||||
fill: currentColor;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -162,6 +169,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.menuWidth.menus {
|
||||
width: initial;
|
||||
}
|
||||
@@ -172,13 +180,16 @@
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
height: auto;
|
||||
|
||||
span:nth-child(1) {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
span:nth-child(2) {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.menu_footer {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
Reference in New Issue
Block a user