-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在组件中添加tinyVue中的水球组件,在画布中不显示,在预览中显示,切在画布中报错 #476
Comments
Title: Add the water polo component in tinyVue to the component. It will not be displayed in the canvas, but will be displayed in the preview. An error will be reported in the canvas. |
@yao521521 麻烦提供一下bundle.json对应的配置 |
@yao521521 Please provide the configuration corresponding to bundle.json |
{
"name": {
"zh_CN": "水球图"
},
"component": "TinyChartLiquidfill",
"icon": "chart-liquidfill",
"description": "水球图",
"docUrl": "",
"screenshot": "",
"tags": "",
"keywords": "",
"devMode": "proCode",
"npm": {
"package": "@opentiny/vue",
"exportName": "ChartLiquidfill",
"version": "",
"destructuring": true
},
"group": "component",
"priority": 1,
"schema": {
"properties": [
{
"label": {
"zh_CN": "基础信息"
},
"description": {
"zh_CN": "基础信息"
},
"collapse": {
"number": 6,
"text": {
"zh_CN": "显示更多"
}
},
"content": [
{
"property": "data",
"label": {
"text": {
"zh_CN": "数据由指标和维度组成,“维度” 指的是数据的属性,“指标” 是量化衡量标准"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaCodeEditor",
"props": {
"language": "json"
}
},
"description": {
"zh_CN": "双向绑定值"
},
"labelPosition": "left"
},
{
"property": "settings",
"label": {
"text": {
"zh_CN": "设置显示的指标维度"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaCodeEditor",
"props": {
"language": "json"
}
},
"description": {
"zh_CN": "双向绑定值"
},
"labelPosition": "left"
},
{
"property": "extend",
"label": {
"text": {
"zh_CN": "设置显示的指标维度"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaCodeEditor",
"props": {
"language": "json"
}
},
"description": {
"zh_CN": "双向绑定值"
},
"labelPosition": "left"
}
]
}
],
"events": {},
"slots": {}
},
"configure": {
"loop": true,
"condition": true,
"styles": true,
"isContainer": true,
"isModal": false,
"nestingRule": {
"childWhitelist": "",
"parentWhitelist": "",
"descendantBlacklist": "",
"ancestorWhitelist": ""
},
"isNullNode": false,
"isLayout": false,
"rootSelector": "",
"shortcuts": {
"properties": ["value", "disabled"]
},
"contextMenu": {
"actions": ["create symbol"],
"disable": ["copy", "remove"]
}
}
}, {
"name": {
"zh_CN": "水球图"
},
"icon": "chart-liquidfill",
"screenshot": "",
"snippetName": "TinyChartLiquidfill",
"schema": {
"componentName": "TinyChartLiquidfill",
"props": {
"data": {
"columns": ["city", "percent"],
"rows": [
{
"city": "上海",
"percent": 0.6
}
]
},
"settings": {},
"extend": {}
}
}
}, |
{
"name": {
"zh_CN": "Water Polo Picture"
},
"component": "TinyChartLiquidfill",
"icon": "chart-liquidfill",
"description": "water polo diagram",
"docUrl": "",
"screenshot": "",
"tags": "",
"keywords": "",
"devMode": "proCode",
"npm": {
"package": "@opentiny/vue",
"exportName": "ChartLiquidfill",
"version": "",
"destructuring": true
},
"group": "component",
"priority": 1,
"schema": {
"properties": [
{
"label": {
"zh_CN": "Basic information"
},
"description": {
"zh_CN": "Basic information"
},
"collapse": {
"number": 6,
"text": {
"zh_CN": "Show more"
}
},
"content": [
{
"property": "data",
"label": {
"text": {
"zh_CN": "Data consists of indicators and dimensions. "Dimensions" refer to the attributes of the data, and "indicators" are quantitative measurement standards."
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaCodeEditor",
"props": {
"language": "json"
}
},
"description": {
"zh_CN": "Two-way binding value"
},
"labelPosition": "left"
},
{
"property": "settings",
"label": {
"text": {
"zh_CN": "Set the displayed indicator dimensions"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaCodeEditor",
"props": {
"language": "json"
}
},
"description": {
"zh_CN": "Two-way binding value"
},
"labelPosition": "left"
},
{
"property": "extend",
"label": {
"text": {
"zh_CN": "Set the displayed indicator dimensions"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaCodeEditor",
"props": {
"language": "json"
}
},
"description": {
"zh_CN": "Two-way binding value"
},
"labelPosition": "left"
}
]
}
],
"events": {},
"slots": {}
},
"configure": {
"loop": true,
"condition": true,
"styles": true,
"isContainer": true,
"isModal": false,
"nestingRule": {
"childWhitelist": "",
"parentWhitelist": "",
"descendantBlacklist": "",
"ancestorWhitelist": ""
},
"isNullNode": false,
"isLayout": false,
"rootSelector": "",
"shortcuts": {
"properties": ["value", "disabled"]
},
"contextMenu": {
"actions": ["create symbol"],
"disable": ["copy", "remove"]
}
}
}, {
"name": {
"zh_CN": "Water Polo Picture"
},
"icon": "chart-liquidfill",
"screenshot": "",
"snippetName": "TinyChartLiquidfill",
"schema": {
"componentName": "TinyChartLiquidfill",
"props": {
"data": {
"columns": ["city", "percent"],
"rows": [
{
"city": "Shanghai",
"percent": 0.6
}
]
},
"settings": {},
"extend": {}
}
}
}, |
Environment
google与edge
Version
v16.20.2
Version
不知道如何查看最新稳定版
Link to minimal reproduction
https://github.com/opentiny/tiny-engine
Step to reproduce
在
![image](https://private-user-images.githubusercontent.com/90167238/329749179-3225c18a-2d8b-48c1-b49b-03261bd4d317.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MzA5OTcsIm5iZiI6MTcyNDczMDY5NywicGF0aCI6Ii85MDE2NzIzOC8zMjk3NDkxNzktMzIyNWMxOGEtMmQ4Yi00OGMxLWI0OWItMDMyNjFiZDRkMzE3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNF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cmVwb19pZD0wIn0.PWxYfQS0QzK053OLzxRKPcZ2rC2rMAolX7xqcbJJB14)
物料组件中添加tinyVue的水球组件
What is expected
组件在画布和预览中都会正常显示
What is actually happening
页面没有显示切,控制太报错,但在预览中显示正常
What is your project name
tiny-engine
Any additional comments (optional)
No response
The text was updated successfully, but these errors were encountered: