mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
Update index.js
This commit is contained in:
1 parent
6d6d78939d
commit
ae40a5843c
1 file changed
+7
-3
@@ -4,7 +4,6 @@ const b = 'boolean';
|
||||
const s = 'string';
|
||||
const n = 'number';
|
||||
const o = 'object';
|
||||
const a = 'array';
|
||||
const f = 'function';
|
||||
const r = 'regexp';
|
||||
|
||||
@@ -21,7 +20,12 @@ const component = {
|
||||
click: `?${f}`,
|
||||
mounted: `?${f}`,
|
||||
tooltip: `?${s}`,
|
||||
selector: `?${a}`,
|
||||
selector: [
|
||||
{
|
||||
default: `?${b}`,
|
||||
html: s,
|
||||
},
|
||||
],
|
||||
onSelect: `?${f}`,
|
||||
};
|
||||
|
||||
@@ -64,7 +68,7 @@ export default {
|
||||
controls: [
|
||||
{
|
||||
...component,
|
||||
position: (value, type, paths) => {
|
||||
position: (value, _, paths) => {
|
||||
const position = ['top', 'left', 'right'];
|
||||
return errorHandle(
|
||||
position.includes(value),
|
||||
|
||||
Reference in new issue
Block a user