在 connector 组件中使用 {{didInsert}} 时出错:“无法在没有 'new' 的情况下调用类构造函数 DidInsertModifier”

您的示例中似乎缺少一些代码?我期望看到一个 <template> / </template>,并且希望修饰符附加到像下面这样的元素

<template>
  <div {{didInsert this.modifyElement}}>
    ...
  </div>
</template>
1 个赞