tiny-engine icon indicating copy to clipboard operation
tiny-engine copied to clipboard

TinyGrid自定义编辑器无法使用

Open stwflyfox opened this issue 1 year ago • 9 comments

要使用 TinySelect 的话,当前支持还有点问题,可以有两种支持方式:

  1. 增加编辑器插槽(在 bundle.json 增加 编辑器插槽配置)
  2. 出码增加对应解析

Originally posted by @chilingling in https://github.com/opentiny/tiny-engine/discussions/326#discussioncomment-8744537

stwflyfox avatar Mar 26 '24 06:03 stwflyfox

Bot detected the issue body's language is not English, translate it automatically.


Title: TinyGrid custom editor cannot be used

Issues-translate-bot avatar Mar 26 '24 06:03 Issues-translate-bot

将在新版出码方案解决

chilingling avatar Apr 15 '24 06:04 chilingling

Bot detected the issue body's language is not English, translate it automatically.


Will be solved in the new version of coding solution

Issues-translate-bot avatar Apr 15 '24 06:04 Issues-translate-bot

新版出码方案已支持 @stwflyfox

chilingling avatar May 25 '24 07:05 chilingling

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

Issues-translate-bot avatar May 25 '24 07:05 Issues-translate-bot

如何使用呢?

stwflyfox avatar Sep 04 '24 03:09 stwflyfox

Bot detected the issue body's language is not English, translate it automatically.


How to use it?

Issues-translate-bot avatar Sep 04 '24 03:09 Issues-translate-bot

image

列editor 配置如下:

{
	// component 以 `Tiny` 开头的 Tinyvue 组件,当前不支持 Elementplus
  "component": "TinySelect",
  // attrs的子属性,传递给 TinySelect 组件的属性
  "attrs": {
    "options": [
      {
        "label": "test",
        "value": "test"
      },
      {
        "label": "test1",
        "value": "test1"
      },
      {
        "label": "test2",
        "value": "test2"
      }
    ]
  }
}

出码效果: image

chilingling avatar Sep 04 '24 07:09 chilingling

Bot detected the issue body's language is not English, translate it automatically.


image

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: image

Issues-translate-bot avatar Sep 04 '24 07:09 Issues-translate-bot