WaterAndBin

Results 2 comments of WaterAndBin

> 转换为html? 也不算是转成html吧,就是想把HTMLCollection类型转成如下图的类型。 ![Image](https://github.com/user-attachments/assets/caf4aec6-6ef7-4885-887a-2defa2ccd008) 我尝试在用该框架使用跨端的时候,因为props.children是拿不到外部传进来的元素,因此只能通过this.children去拿到外部传进来的元素。在omi开发当中,同样也是可以用this.children去拿到参数的。例如以下情况: ``` ts @tag('text-space') export default class extends Component { static css = [tailwind]; render() { return ( 间距 123123 console.log(123123)}>4444 555 ); } } ```...

> import { tag, render, h, Component } from 'omi' > > const markup = 'Some HTML to render.' > > @tag('my-element') > class MyElement extends Component { > render()...