From ae40a5843c42c64c4813cc7e23bdfe5a0595bf3e Mon Sep 17 00:00:00 2001 From: zhw2590582 Date: Sun, 28 Nov 2021 19:55:10 +0800 Subject: [PATCH] Update index.js --- packages/artplayer/src/scheme/index.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/artplayer/src/scheme/index.js b/packages/artplayer/src/scheme/index.js index 3ffd39a01..b72208be1 100644 --- a/packages/artplayer/src/scheme/index.js +++ b/packages/artplayer/src/scheme/index.js @@ -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),