Skip to content

Commit

Permalink
🔧 [scroll] add scroll component and fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
higuaifan committed Jan 24, 2025
1 parent aa04700 commit 58d0d93
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/components/other/scroll/MScroll.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* @description scroll component
* @author 阿怪
* @date 2025/1/25 00:04
* @version v1.0.0
*
* 江湖的业务千篇一律,复杂的代码好几百行。
*/
import { defineComponent } from 'vue';
import './scroll.css';

export default defineComponent((_, { slots }) => {
return () => {
return <div class="m-scroll">{slots.default?.()}</div>;
};
}, {
name: 'MScroll',
});
2 changes: 2 additions & 0 deletions lib/utils/install/importComponents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import MDarkMode from '../../components/other/darkMode/MDarkMode';
import MDeleteIcon from '../../components/other/deleteIcon/MDeleteIcon';
import MPrinter from '../../components/other/printer/Printer';
import MSvgWrapper from '../../components/other/svg/MSvgWrapper';
import MScroll from '../../components/other/scroll/MScroll.tsx';

// [message]
import MConfirm from '../../components/message/confirm/MConfirm';
Expand Down Expand Up @@ -145,6 +146,7 @@ export {
MDeleteIcon,
MPrinter,
MSvgWrapper,
MScroll,

// [message]
MConfirm,
Expand Down

0 comments on commit 58d0d93

Please sign in to comment.