feat(core): select2增加多国语言支持
This commit is contained in:
@@ -171,7 +171,7 @@ class FooterLayerBoardConfig extends FooterLayer {
|
||||
}
|
||||
$container.select2({
|
||||
data: menu,
|
||||
minimumResultsForSearch: 50,
|
||||
minimumResultsForSearch: Infinity,
|
||||
width: 'auto',
|
||||
dropdownCssClass: 'mixly-scrollbar select2-board-config'
|
||||
});
|
||||
|
||||
@@ -149,7 +149,8 @@ class Nav extends Component {
|
||||
minimumResultsForSearch: 10,
|
||||
dropdownCssClass: `mixly-scrollbar mixly-${boardSelectTemplate.getId()}`,
|
||||
dropdownAutoWidth: true,
|
||||
placeholder: Msg.Lang['nav.selectBoard']
|
||||
placeholder: Msg.Lang['nav.selectBoard'],
|
||||
language: Msg.nowLang
|
||||
});
|
||||
const portSelectTemplate = HTMLTemplate.get('html/nav/port-selector-div.html');
|
||||
this.#$portSelect_ = $(portSelectTemplate.render());
|
||||
|
||||
@@ -81,7 +81,7 @@ class Panel extends Component {
|
||||
this.#addEventsListener_();
|
||||
this.#$fsSelect_.select2({
|
||||
width: '100%',
|
||||
minimumResultsForSearch: 50,
|
||||
minimumResultsForSearch: Infinity,
|
||||
dropdownCssClass: 'mixly-scrollbar'
|
||||
});
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ class StatusBarSerialChart extends PageBase {
|
||||
this.#$pointNum_ = $template.find('select');
|
||||
this.#$pointNum_.select2({
|
||||
width: '100%',
|
||||
minimumResultsForSearch: 50,
|
||||
minimumResultsForSearch: Infinity,
|
||||
dropdownCssClass: 'mixly-scrollbar'
|
||||
});
|
||||
this.#$pointNum_.val(this.#totalPoints_).trigger('change');
|
||||
|
||||
@@ -113,7 +113,7 @@ class StatusBarSerial extends PageBase {
|
||||
this.setContent($content);
|
||||
this.#$settingMenu_ = $content.find('.setting-menu');
|
||||
this.#$settingMenu_.select2({
|
||||
minimumResultsForSearch: 50,
|
||||
minimumResultsForSearch: Infinity,
|
||||
dropdownAutoWidth: true,
|
||||
dropdownCssClass: 'mixly-scrollbar'
|
||||
});
|
||||
|
||||
@@ -881,7 +881,7 @@ BU.burnWithSpecialBin = () => {
|
||||
const $select = layero.find('select');
|
||||
$select.select2({
|
||||
data: menu,
|
||||
minimumResultsForSearch: 50,
|
||||
minimumResultsForSearch: Infinity,
|
||||
width: '360px',
|
||||
dropdownCssClass: 'mixly-scrollbar'
|
||||
});
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user