代码拉取完成,页面将自动刷新
为保证PieDesign仓库代码规范性以及组件质量,请所有参与贡献的开发者详细阅读本规范, 并检查编写组件中是否存在背离规范的代码
所有文件必须以许可证声明开头,其中必须包含的内容为:
/**
* Copyright 2023 Pie Design Group
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
此外,所有新创建的文件必须在上述注释末尾添加负责人、邮箱、创建时间,完整示例如下:
/**
* Copyright 2023 Pie Design Group
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Created By Guo Tingjin<dev@peercat.cn> on 2023/12/17 13:09
*/
private static ExampleVariable: number = 0
let exampleVariable: number = 0;
_
@BuilderParam
标记的函数,必须指明所有可提供的参数,而非使用 Function
标注其类型Pie
开头,如PiePrimaryButton
/PieCalenderView
PieFontStyle
及 PieRadius
等预设参数完整的文档应当包含以下内容
文档图片资源应存放于 docs/images 中
新组件在合并前,需依据本规范通过完整性审查
完整的组件应当包含但不限于以下内容,假设某新组件名称为[NewComponent],其组件类型为[componentType]
docs/[componentType]/[NewComponent].md
libPieDesign/src/main/ets/components/[componentType]/[NewComponent].ets
libPieDesign/Index.ets
新组件在合并前,需根据本规范通过规范性审查
未通过规范性审查的组件,将在PR中标注出不合规之处,待PR发起人修改完毕后进行二次审查
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。