ice-lab / react-materials Goto Github PK
View Code? Open in Web Editor NEW:blowfish: 基于 icejs 的通用脚手架,用于快速创建项目。
:blowfish: 基于 icejs 的通用脚手架,用于快速创建项目。
input框内icon组件css有问题
供其他自定义脚手架参考
src/typings.d.ts
文件 https://github.com/ice-lab/react-materials/blob/master/scaffolds/simple/src/typings.d.tseslint init初始化过配置,也是只对tsx有效
When the value of the form item is validated incorrectly, the form item does not add a classname that flags the error. I think it is useful to add a classname that prompts the error. Users can use it to customize style or do other things.
I added the following line of code to my project in FormBinder and then it works. Do you think that's reasonable?
the addcode :
className:this.context.getError(name).length > 0 ? 'this-field-has-error' : '',
`
const NewFormItem = React.cloneElement(FormItem, {
[valuePropName]: (() => {
const value = this.context.getter(name);
return setFieldValue(value);
})(),
[validateTriggerType]: () => {
if (this.rules.length > 0) {
console.log('....')
this.context.validate(name, this.rules);
}
},
className:this.context.getError(name).length > 0 ? 'this-field-has-error' : '',
onChange: (...args) => {
if (FormItemProps.onChange) {
FormItemProps.onChange.apply(this, args);
}
const newValue = getFieldValue(...args);
this.context.setter(name, newValue);
if (validateTriggerType === 'onChange' && this.rules.length > 0) {
this.context.validate(name, this.rules);
}
},
});
官方对于 history 的定义
https://v3.ice.work/docs/guide/basic/api#history
ice 实现的 history 在 defineAuthConfig
里不可立即使用,你模版里面写了忽悠谁哇???
react-materials/scaffolds/ice3-antd-pro/src/app.ts
Lines 15 to 17 in b51f743
Img组件的type=“cover“模式下,不传width和height,开发模式会报错:
Warning: NaN
is an invalid value for the width
css style property.
npm install 显示成功
npm start启动失败
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
node 版本: v16.14.0
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.