alibaba / alibaba/lowcode-engine

如何在自定义setter里面更改其他组件的事件行为,添加事件绑定

Open
#3,044 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
15.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

![image](https://github.com/alibaba/lowcode-engine/assets/37478104/16e33cd2-0ff2-481a-a01c-ac62ed4542dc)

目前setter要实现功能:
1. 事件类型选择(点击、失焦、change等等其他类型)
2. 操作对象(页面、组件、数据来源)
3. 事件动作(刷新,调用等等其他动作)
4. 支持选择具体的组件
5. 初始化之前、初始化中,初始化后分别要执行的操作

执行流程:
假如当前选中的组件为button按钮,假如事件类型/操作对象/ 事件动作为:点击/组件/刷新
那么最后的事件行为就是:按钮的点击事件要刷新具体的组件

目前不知道如何在setter中更改其他组件的事件行为,以及样式

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files, tests, or entry points. Start by locating the custom setter and existing event-binding APIs, then clarify how component selection, event actions, and initialization timing should work together. Done would require an agreed implementation covering the five listed requirements.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.