(showAdd = false)}>
+
+
+
-
- {#if principalType === "USER"}
-
- {:else if groupOptions === null}
- 加载 Group 列表…
- {:else if groupOptions.length === 0}
- 暂无可选 Group · 先到「Group 管理」建一个
- {:else}
-
- {/if}
-
-
+
+
+
+
+ {#if selectedPrincipal !== null}
+
+ 已选
+
+ {selectedPrincipal.label}({selectedPrincipal.id})
+
+
+ {/if}
+ {#if principalOptions !== null && principalOptions.length > 0}
+
+ {#each principalOptions as o (o.id)}
+
+ {/each}
+
+ {:else if searchUnavailable}
+
+
+
+
+ {:else if principalOptions !== null}
+ 无匹配结果
+ {/if}
+
+
+
+
+ MANAGE 仅创建者可授;创建者授权不可动(契约 8.1)
+
+
- MANAGE 仅创建者可授;创建者授权不可动(契约 8.1)
- {/if}
-
-