TinyGrid自定义编辑器无法使用
要使用 TinySelect 的话,当前支持还有点问题,可以有两种支持方式:
- 增加编辑器插槽(在 bundle.json 增加 编辑器插槽配置)
- 出码增加对应解析
Originally posted by @chilingling in https://github.com/opentiny/tiny-engine/discussions/326#discussioncomment-8744537
Bot detected the issue body's language is not English, translate it automatically.
Title: TinyGrid custom editor cannot be used
将在新版出码方案解决
Bot detected the issue body's language is not English, translate it automatically.
Will be solved in the new version of coding solution
新版出码方案已支持 @stwflyfox
Bot detected the issue body's language is not English, translate it automatically.
The new version of the coding solution has been supported by @stwflyfox
如何使用呢?
Bot detected the issue body's language is not English, translate it automatically.
How to use it?
列editor 配置如下:
{
// component 以 `Tiny` 开头的 Tinyvue 组件,当前不支持 Elementplus
"component": "TinySelect",
// attrs的子属性,传递给 TinySelect 组件的属性
"attrs": {
"options": [
{
"label": "test",
"value": "test"
},
{
"label": "test1",
"value": "test1"
},
{
"label": "test2",
"value": "test2"
}
]
}
}
出码效果:
Bot detected the issue body's language is not English, translate it automatically.
The column editor configuration is as follows:
{
// component Tinyvue component starting with `Tiny`, currently does not support Elementplus
"component": "TinySelect",
// Sub-attributes of attrs, attributes passed to the TinySelect component
"attrs": {
"options": [
{
"label": "test",
"value": "test"
},
{
"label": "test1",
"value": "test1"
},
{
"label": "test2",
"value": "test2"
}
]
}
}
Coding effect: