2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.selectKit.options.showFullTitle}}
|
|
|
|
<div
|
|
|
|
lang={{this.lang}}
|
|
|
|
title={{this.title}}
|
|
|
|
data-value={{this.value}}
|
|
|
|
data-name={{this.name}}
|
|
|
|
class="select-kit-selected-name selected-name choice"
|
|
|
|
>
|
2023-07-10 19:43:33 +08:00
|
|
|
{{#if this.selectKit.options.formName}}
|
|
|
|
<input
|
|
|
|
type="hidden"
|
|
|
|
name={{this.selectKit.options.formName}}
|
|
|
|
value={{this.value}}
|
|
|
|
/>
|
|
|
|
{{/if}}
|
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.item.icon}}
|
|
|
|
{{d-icon this.item.icon}}
|
2020-05-15 23:36:00 +08:00
|
|
|
{{/if}}
|
2020-02-03 21:22:14 +08:00
|
|
|
|
2020-05-15 23:36:00 +08:00
|
|
|
<span class="name">
|
2022-07-06 01:41:31 +08:00
|
|
|
{{this.label}}
|
2020-05-15 23:36:00 +08:00
|
|
|
</span>
|
2020-02-03 21:22:14 +08:00
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.shouldDisplayClearableButton}}
|
|
|
|
<DButton
|
|
|
|
@icon="times"
|
2023-08-31 17:49:35 +08:00
|
|
|
@action={{fn this.selectKit.deselect this.item}}
|
2022-07-06 01:41:31 +08:00
|
|
|
@ariaLabel="clear_input"
|
2023-08-31 17:49:35 +08:00
|
|
|
class="btn-clear"
|
2022-07-06 01:41:31 +08:00
|
|
|
/>
|
2020-02-03 21:22:14 +08:00
|
|
|
{{/if}}
|
2020-05-15 23:36:00 +08:00
|
|
|
</div>
|
2020-02-03 21:22:14 +08:00
|
|
|
{{else}}
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.item.icon}}
|
|
|
|
<div
|
|
|
|
lang={{this.lang}}
|
|
|
|
class="select-kit-selected-name selected-name choice"
|
|
|
|
>
|
|
|
|
{{d-icon this.item.icon}}
|
2020-05-15 23:36:00 +08:00
|
|
|
</div>
|
2020-02-03 21:22:14 +08:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|