chore(core): 调整select配置与多语言支持
This commit is contained in:
@@ -292,7 +292,7 @@ class StatusBarFS extends PageBase {
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const port = Serial.getSelectedPortName();
|
const port = Serial.getSelectedPortName();
|
||||||
if (!port) {
|
if (!port) {
|
||||||
layer.msg('无可用设备', { time: 1000 });
|
layer.msg(Msg.Lang['statusbar.serial.noDevice'], { time: 1000 });
|
||||||
resolve(false);
|
resolve(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -632,7 +632,7 @@ BU.burnWithSpecialBin = () => {
|
|||||||
const $select = layero.find('select');
|
const $select = layero.find('select');
|
||||||
$select.select2({
|
$select.select2({
|
||||||
data: menu,
|
data: menu,
|
||||||
minimumResultsForSearch: 50,
|
minimumResultsForSearch: Infinity,
|
||||||
width: '360px',
|
width: '360px',
|
||||||
dropdownCssClass: 'mixly-scrollbar'
|
dropdownCssClass: 'mixly-scrollbar'
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user