添加画质选项

This commit is contained in:
Harvey Zack committed 2018-10-31 16:32:41 +08:00
1 parent e9b0ff101b
commit 504d5b3954
7 files changed
+78 -9

No files matched your search

+37 -4
View File
@@ -679,6 +679,14 @@
click: 'function'
}
},
quality: {
type: 'array',
child: {
default: 'boolean',
name: 'string',
url: 'string'
}
},
loading: 'string',
theme: 'string',
hotkey: 'boolean',
@@ -1935,6 +1943,25 @@
return Screenshot;
}();
var Quality =
/*#__PURE__*/
function () {
function Quality(option) {
classCallCheck(this, Quality);
this.option = option;
}
createClass(Quality, [{
key: "apply",
value: function apply(art) {
this.art = art;
}
}]);
return Quality;
}();
var id = 0;
var Controls =
@@ -1999,21 +2026,26 @@
position: 'right',
index: 30
}));
this.add(new Setting({
disable: false,
this.add(new Quality({
disable: this.art.option.quality.length === 0,
position: 'right',
index: 40
}));
this.add(new Pip({
this.add(new Setting({
disable: false,
position: 'right',
index: 50
}));
this.add(new Fullscreen({
this.add(new Pip({
disable: false,
position: 'right',
index: 60
}));
this.add(new Fullscreen({
disable: false,
position: 'right',
index: 70
}));
this.art.option.controls.forEach(function (item) {
_this2.add(item);
});
@@ -2957,6 +2989,7 @@
mimeCodec: '',
layers: [],
contextmenu: [],
quality: [],
loading: '',
theme: '#f00',
hotkey: true,