ywana-core8 0.0.899 → 0.0.900
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/menu.js +2 -2
package/package.json
CHANGED
package/src/html/menu.js
CHANGED
@@ -54,7 +54,7 @@ export const MenuIcon = (props) => {
|
|
54
54
|
*/
|
55
55
|
export const MenuItem = (props) => {
|
56
56
|
|
57
|
-
const { id, icon, label, meta, disabled=false, onSelect } = props
|
57
|
+
const { id, icon, label, meta, disabled=false, size="normal", onSelect } = props
|
58
58
|
const [open, setOpen] = useContext(MenuContext)
|
59
59
|
|
60
60
|
function select() {
|
@@ -69,7 +69,7 @@ export const MenuItem = (props) => {
|
|
69
69
|
|
70
70
|
return (
|
71
71
|
<li className={`menu-item ${style}`} onClick={select}>
|
72
|
-
{icon ? <Icon icon={icon} /> : null}
|
72
|
+
{icon ? <Icon icon={icon} size={size} /> : null}
|
73
73
|
<label>{labelTxt}</label>
|
74
74
|
{meta ? <div className="meta">{meta}</div> : null}
|
75
75
|
</li>
|