Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
unidocs-zh
提交
b2b0fb90
unidocs-zh
项目概览
DCloud
/
unidocs-zh
通知
3341
Star
107
Fork
853
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
103
列表
看板
标记
里程碑
合并请求
85
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
unidocs-zh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
103
Issue
103
列表
看板
标记
里程碑
合并请求
85
合并请求
85
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
b2b0fb90
编写于
6月 07, 2024
作者:
WangMoYang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs: 更新配置说明
上级
69af5e2e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
30 addition
and
28 deletion
+30
-28
docs/plugin/components-config.md
docs/plugin/components-config.md
+30
-28
未找到文件。
docs/plugin/components-config.md
浏览文件 @
b2b0fb90
## 简介
为了支持
**组件加密**
功能,
**自定义组件**
提供了一个
**JSON配置文件**
,用于配置组件的各项属性。
*
json配置文件需要在组件同级目录下,与组件文件名一致,后缀为
`.easycom.json`
。
*
例: 组件文件名为:
`button.vue`
,json配置文件名就是:
`button.easycom.json`
## 配置文件结构
```
JSON
{
"name": "Test",
"description": {
"value": "测试",
"name": "Test",
"description": {
"value": "测试",
"kind": "markdown"
},
"attributes": [
{
"name": "color",
"description": {
"value": "颜色",
"kind": "markdown"
},
"attributes": [
{
"name": "color",
"description": {
"value": "颜色",
"kind": "markdown"
},
"type": "string",
"values": [
{
"name": "red",
"description": "红色"
}
]
},
},
"type": "string",
"values": [
{
"name": "[event]event",
"description": {
"value": "测试用事件",
"kind": "markdown"
},
"type": "(event: UniEvent) => void"
"name": "red",
"description": "红色"
}
],
"example": "例子",
"tutorial": "教程",
]
},
{
"name": "[event]event",
"description": {
"value": "测试用事件",
"kind": "markdown"
},
"type": "(event: UniEvent) => void"
}
],
"example": "例子",
"tutorial": "教程",
}
```
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录