更新option-validator

This commit is contained in:
Harvey committed 2020-09-04 13:10:48 +08:00
1 parent deaa4fa13d
commit b5e501ef1c
2 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@
},
"homepage": "https://github.com/zhw2590582/ArtPlayer#readme",
"dependencies": {
"option-validator": "^2.0.5",
"option-validator": "^2.0.6",
"screenfull": "^5.0.2"
},
"gitHead": "0a3a20568e37f99972eefb01d4b1dcf4036a46db"
+10 -10
View File
@@ -9,15 +9,15 @@ function validElement(value, type, paths) {
const component = {
html: validElement,
disable: 'boolean|undefined',
name: 'string|undefined',
index: 'number|undefined',
style: 'object|undefined',
click: 'function|undefined',
mounted: 'function|undefined',
tooltip: 'string|undefined',
selector: 'array|undefined',
onSelect: 'function|undefined',
disable: '?boolean',
name: '?string',
index: '?number',
style: '?object',
click: '?function',
mounted: '?function',
tooltip: '?string',
selector: '?array',
onSelect: '?function',
};
export default {
@@ -69,7 +69,7 @@ export default {
],
quality: [
{
default: 'boolean|undefined',
default: '?boolean',
name: 'string',
url: 'string',
},