WaterAndBin

Results 4 issues of WaterAndBin

如题 ![image](https://github.com/user-attachments/assets/5b71e68d-6fa6-4e6d-aef4-677369d7340b) ![image](https://github.com/user-attachments/assets/94a45a5b-9492-4d74-b8d7-1995fd51863f) t-button并不会报任务类型的检测或者错误,TButton却正常报错了,显示并未传参 请问这种情况要咋处理? **t-button代码** ``` export interface ButtonProps { msg: string; } @tag("t-button") export default class TButton extends Component { static props = { msg: { type: String,...

我现在获取到的数据是HTMLCollection类型的,请问要怎么样才能渲染到Omi当中的模版当中? ![Image](https://github.com/user-attachments/assets/8f634e8b-e7e5-479f-9f1c-7946c7b14c33) 在React当中有类型的工具可以帮助生成,例如:html-react-parser。 请问一下Omi是否有方法或者工具可以将HTMLCollection转换成Omi特有的渲染类型? 非常感谢

这是在OMI的代码 ``` tsx import { h, tag, Component } from 'omi'; @tag('y-switch') export default class YSwitch extends Component { static props = { beforeChange: { type: Function, default: null, changed(newValue:...

我尝试这样子的自定义事件,这里是在vue里面的写法 `` 在omi里面的写法是这种 `this.fire('update:value', 123);`或者`this.fire('[update:value]', 123);` 但是不会去触发这个自定义事件,希望可以支持或者请问有什么方法可以解决吗?感谢