cuke-ui / cuke-ui Goto Github PK
View Code? Open in Web Editor NEW🥒 黄瓜ui:一个即插即用的React UI 库
Home Page: https://cuke-ui.github.io/cuke-ui-landing/
License: MIT License
🥒 黄瓜ui:一个即插即用的React UI 库
Home Page: https://cuke-ui.github.io/cuke-ui-landing/
License: MIT License
请问下你的组件下的 index.js 根本没有引入 styles.less,只有个 style.js 引入了,但是 index 和 style 是不打嘎的,那么styles.less 如何在 index.js 组件里面起作用的呢,一直不解?
Compiled with problems:X
ERROR in ./node_modules/cuke-ui/es/version/index.js 2:15-22
Should not import the named export 'version' (imported as 'version') from default-exporting module (only default export is available soon)
环境信息如下:
node --version
v16.14.0
"react": "^17.0.2",
引入方式如下:
import { Button } from "cuke-ui"
import "cuke-ui/dist/cuke-ui.min.css"
最近才开始学习 react,可能我没有给出足够有用的信息,如有遗漏,还请耐心指出,谢谢。
popover 使用的是tooltip组件的包装,但是在tooltip组件中有以下这些问题:
解决方法:
有不妥的地方欢迎随时交流,感谢作者作出的组件案例,让我阅读中收获良多!
可见每个组件打包后的style目录下存在两个文件 index.js以及css.js require了所需的less文件以及css文件,这样保证了组件之间的样式依赖可以在按需的条件下引入
cuke-ui的手动按需引入是这样的
只引入的style.less,假如Button组件还依赖另外一些组件的样式,是不是就gg了(的确也有一些组件是这样的)。
当然,使用babel-plugin-import插件没问题,因为他引用的是style.js这个文件,我看在写这个文件的时候把其他组件样式依赖也require了。
其实我想知道antd那种是如何根据style.js生成css.js 因为只能引入less的话对项目来说是不是有一些挑剔?还需要项目去配置loader。
就是babel-plugin-import配置的style属性值为css
style:'css'
我最近一直在学习你们的项目,但是似乎cuke-ui也没有实现这一步,导致按需引入无法引入css只能引入less,对使用非less预处理器的项目不太友好。
谢谢 望回复!
四个方向那里,点击偷偷打开家长的抽屉,然后再切换
右左上下 之后,会触发抽屉的开、关状态各一次,先记录下,看抽屉代码ing
在点击TurnTable抽奖的后,在旋转的时候切换到其他浏览器Tab页,会无限制的旋转下去,直到再切回抽奖页面。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.