question: 元件繼承問題 #2467
-
您好 想請教元件繼承問題 請問是我用法錯誤嗎? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
@a0926019412 Thank you for reporting. We will give triage later. |
Beta Was this translation helpful? Give feedback.
-
@a0926019412 组件是需要 js 工作的。你需要设置脚本路径
|
Beta Was this translation helpful? Give feedback.
-
@a0926019412 其实最好不要继承而是包裹 razor file
|
Beta Was this translation helpful? Give feedback.
-
嗨 argo 因為想把select 組件本身的attribute也想 open給其他元件調整, 又懶得一條一條開出來, 因此想繼承後再去擴充給內部使用 |
Beta Was this translation helpful? Give feedback.
@a0926019412 组件是需要 js 工作的。你需要设置脚本路径
@attribute [JSModuleAutoLoader("./_content/xxxxx/Select.razor.js", JSObjectReference = true)]