Skip to content

Commit

Permalink
fix: 组件库使用报错移除rmc组件和lazyload组件
Browse files Browse the repository at this point in the history
  • Loading branch information
huabingtao committed Sep 30, 2024
1 parent fc98cb0 commit 3083570
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 171 deletions.
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-single-ui",
"version": "0.0.3",
"version": "0.0.5",
"description": "A react library developed with dumi",
"license": "MIT",
"module": "dist/index.js",
Expand Down Expand Up @@ -62,9 +62,6 @@
"lodash": "^4.17.21",
"postcss": "^8.4.41",
"postcss-import": "^16.1.0",
"react-lazyload": "^3.2.1",
"rmc-feedback": "^2.0.0",
"rmc-notification": "^1.0.0",
"tailwindcss": "^3.4.10"
},
"devDependencies": {
Expand Down
123 changes: 3 additions & 120 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/components/button/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ $buttonPrefixCls: 'sn-btn';
}
}
&-active {
display: inline-block;
background-color: $btn-fill-tap
}
&-block{
Expand Down
7 changes: 2 additions & 5 deletions src/components/button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/
import classNames from 'classnames';
import React from 'react';
import TouchFeedback from 'rmc-feedback';
import { prefixCls } from '../../utils';

export enum ButtonSize {
Expand Down Expand Up @@ -114,9 +113,7 @@ const Button: React.FC<ButtonProps> = (props): React.ReactElement | null => {
}

return (
<TouchFeedback
activeClassName={`${buttonPrefixCls}-active ${activeClassName}`}
>
<div className={`${buttonPrefixCls}-active ${activeClassName}`}>
<button
className={classes}
type={type}
Expand All @@ -125,7 +122,7 @@ const Button: React.FC<ButtonProps> = (props): React.ReactElement | null => {
>
{children}
</button>
</TouchFeedback>
</div>
// <button className={classes} disabled={disabled} {...restProps}>
// {children}
// </button>
Expand Down
Loading

0 comments on commit 3083570

Please sign in to comment.