mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 21:24:04 +08:00
27 lines
676 B
Plaintext
27 lines
676 B
Plaintext
|
import DFloatBody from "float-kit/components/d-float-body";
|
||
|
|
||
|
const DInlineFloat = <template>
|
||
|
{{#if @instance.expanded}}
|
||
|
<DFloatBody
|
||
|
@instance={{@instance}}
|
||
|
@trapTab={{@trapTab}}
|
||
|
@mainClass={{@mainClass}}
|
||
|
@innerClass={{@innerClass}}
|
||
|
@role={{@role}}
|
||
|
@portalOutletElement={{@portalOutletElement}}
|
||
|
@inline={{@inline}}
|
||
|
>
|
||
|
{{#if @instance.options.component}}
|
||
|
<@instance.options.component
|
||
|
@data={{@instance.options.data}}
|
||
|
@close={{@instance.close}}
|
||
|
/>
|
||
|
{{else}}
|
||
|
{{@instance.options.content}}
|
||
|
{{/if}}
|
||
|
</DFloatBody>
|
||
|
{{/if}}
|
||
|
</template>;
|
||
|
|
||
|
export default DInlineFloat;
|