tsx vue3 自定义指令

render() {
if (this.formMode === ‘view’) {
return {this.modelValue};
}

const el = (
  
    {this.entNameList.map((name) => {
      return  this.changeHandle(name)} value={name} label={name} key={name} />;
    })}
  
);
const scrollDirectives = resolveDirective('scroll') as any;
const defaultRender = withDirectives(el, [
  [scrollDirectives, this.scrollHandle, 'ent-search-selector', { isSelect: true }]
]);
return defaultRender;

}

你可能感兴趣的:(vue3,javascript,vue.js,typescript)