doric-pub / doric Goto Github PK
View Code? Open in Web Editor NEWDoric is a cross-platform development framework for Android & iOS & Web & Qt
Home Page: https://doric.pub
License: Apache License 2.0
Doric is a cross-platform development framework for Android & iOS & Web & Qt
Home Page: https://doric.pub
License: Apache License 2.0
设置padding,在android上有效,ios无效
In the case -oriented non -sensitive system, such as MAC. Sometimes VSCODE's guide packages can sometimes run normally, and sometimes errors are reported on other computers. The solution is: add "forceConsistentCasingInFileNames": false,/* In order to avoid case-sensitive system display error */
to the tsconfig.json
file, it is recommended to refer to repair
你好,最近在了解Doric框架,想知道 在绘制效率方面,想对比RN,我们的优化主要是哪些方向。
rotation(setpIndex: number) {
let chevron = this.getChevronBySetp(setpIndex)
let rotation = new RotationAnimation()
rotation.duration = 0
rotation.fromRotation = 0
rotation.toRotation = -0.5
rotation.fillMode = FillMode.Forward
this.getView().doAnimation(context, rotation)
}
这段代码第二次执行的时候,android上view没有再次旋转,在ios上又旋转了一次。实际情况我不想让他再旋转一次,我把duration设置为0.0000001来解决这个问题。
The ListItem component in the List component seems to have a bug. When the Text component is nested in the ListItem component, it cannot display text normally if the color attribute of the Text component is not set.
For example, the following example will be probably not displayed on the Android side:
<ListItem
height={100}
layoutConfig={
layoutConfig()
.most()
.configAlignment(gravity().center())
.configHeight(LayoutSpec.JUST)
}
>
<Stack
layoutConfig={
layoutConfig()
.most()
}
>
<HLayout
layoutConfig={
layoutConfig()
.most()
}
>
<Stack
width={70}
height={70}
layoutConfig={
layoutConfig()
.just()
.configAlignment(Gravity.Right.centerY())
}
>
<Text
hidden={status}
width={45}
height={20}
backgroundColor={Color.GRAY}
//textColor={Color.WHITE}//If this attribute is not set, the probability will not be rendered
text={"Test"}
layoutConfig={
layoutConfig()
.just()
.configAlignment(Gravity.Bottom.center())
}
textSize={15}
/>
</Stack>
<Text
backgroundColor={Color.GRAY}
text={Hello}
//textColor={Color.BLACK}//If this attribute is not set, the probability will not be rendered
layoutConfig={
layoutConfig()
.fit()
.configAlignment(Gravity.Left.centerY())
}
textSize={20}
/>
</HLayout>
</Stack>
</ListItem>
你好, 新年快乐!
不知道js代码是否可以在浏览器远程调试, 我查阅了文档没找到类似于webView.setWebContentsDebuggingEnabled(true);这样的开关设置。
谢谢~
请教一个问题,在Android里面,如何在js里面进行断点调试,有类似chrome dev tool那样的调试功能吗?
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.