zhhyang / yep-react Goto Github PK
View Code? Open in Web Editor NEWyep react UI component 组件
Home Page: https://zhhyang.github.io/yep-react/
License: MIT License
yep react UI component 组件
Home Page: https://zhhyang.github.io/yep-react/
License: MIT License
class Home extends PureComponent<IMyDetailProps, IMyDetailState> {
constructor(props: IMyDetailProps) {
super(props);
this.state = {
seconds: 10,
voteCount: 10
};
}
async componentWillMount() {
let paramInfo = {
activityGroupId: 'vote2020083101'
};
const res = await Service.getFindVoteInfo(paramInfo);
console.log(res);
this.setState({
seconds: res.seconds,
voteCount: res.voteCount
});
}
render() {
const { seconds } = this.state;
return (
倒计时剩余: {dayStr}天{hourStr}小时{minuteStr}分钟{secondStr}秒
文档与组件的interface对应
倒计时结束时不显示结束的场景00:00:00,建议增加此场景功能
使用字符串命名设置图标的 API,在这种设计下无法做到按需加载,因而全量引入了 svg 图标文件,这大大增加了打包产物的尺寸。希望在 1.0 中,我们将会对此进行调整以优化体积。
旧版 Icon 使用方式将被废弃:
import { Icon } from '@jdcfe/yep-react';
const App = () => (
<div>
<Icon type="bell" />
</div>
);
1.0 中会采用按需引入的方式:
// 直接使用
import BellIcon from '@jdcfe/yep-icons/BellIcon';
// If tree-shaking supported
import { BellIcon } from '@jdcfe/yep-icons';
const App = () => (
<div>
<BellIcon />
</div>
);
如题。
yep-react/src/infinite-loader/index.tsx
Line 72 in 332fe76
这里应该增加 scrollTop !== 0 的限制条件
目前navbar组件,左侧提供“返回Icon+文字”,请问可以支持“Icon+Icon”不非常感谢
类似携程那样的上面还能有节假日,选中后还能提示开始结束时间差多少天的效果
比如:左右滑动时,总会触发上下滚动。这方面是否可以做改进呢?
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.