-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c700ec
commit c2705a4
Showing
7 changed files
with
117 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
export type Select2Data = { | ||
groupLabel: string; | ||
export type Select2Group = { | ||
label: string; | ||
options: Select2Option[]; | ||
}; | ||
|
||
export type Select2Option = { | ||
value: string; | ||
label: string; | ||
}; | ||
|
||
export type Select2Data = (Select2Group | Select2Option)[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const srcVueTemplateHtml = `<p><span class="select2 select2-container select2-container--default select2-container--below select2-container--focus" style="width: 100%"><span class="selection" @click="toggleOpenAndClose()"><span class="select2-selection select2-selection--single" role="combobox"><span class="select2-selection__rendered" :title="optionLabel">{{optionLabel}}</span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span></span></span><span class="dropdown-wrapper" aria-hidden="true"></span><span :class="dropdownStyle" style="position: absolute"><span class="select2-dropdown select2-dropdown--below" style="width: 816px"><span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox"></span><span class="select2-results"><ul class="select2-results__options" role="tree" aria-expanded="true" aria-hidden="false"><li v-for="group in data" class="select2-results__option" role="group" aria-label="Alaskan/Hawaiian Time Zone"><strong class="select2-results__group">{{group.groupLabel}}</strong><ul class="select2-results__options select2-results__options--nested"><li v-for="option in group.options" :class="getOptionStyle(option.value)" role="treeitem" :aria-selected="option.value === value ? 'true' : 'false'" @mouseenter="mouseenter(option.value)" @mouseleave="mouseleave()" @click="click(option)">{{option.label}}</li></ul></li></ul></span></span></span></span></p>`; | ||
export const srcVueTemplateHtml = `<p><span class="select2 select2-container select2-container--default select2-container--below select2-container--focus" style="width: 100%"><span class="selection" @click="toggleOpenAndClose()"><span class="select2-selection select2-selection--single" role="combobox"><span class="select2-selection__rendered" :title="optionLabel">{{optionLabel}}</span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span></span></span><span class="dropdown-wrapper"></span><span :class="dropdownStyle" style="position: absolute"><span class="select2-dropdown select2-dropdown--below" style="width: 816px"><span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox"></span><span class="select2-results"><ul class="select2-results__options" role="tree"><template v-for="groupOrOption in data"><li v-if="groupOrOption.options" class="select2-results__option" role="group"><strong class="select2-results__group">{{groupOrOption.label}}</strong><ul class="select2-results__options select2-results__options--nested"><li v-for="option in groupOrOption.options" :class="getOptionStyle(option.value)" role="treeitem" :aria-selected="option.value === value ? 'true' : 'false'" @mouseenter="mouseenter(option.value)" @mouseleave="mouseleave()" @click="click(option)">{{option.label}}</li></ul></li><li v-else :class="getOptionStyle(groupOrOption.value)" role="treeitem" :aria-selected="groupOrOption.value === value ? 'true' : 'false'" @mouseenter="mouseenter(groupOrOption.value)" @mouseleave="mouseleave()" @click="click(groupOrOption)">{{groupOrOption.label}}</li></template></ul></span></span></span></span></p>`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters