mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 02:01:20 -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 s = 'string';
|
||||||
const n = 'number';
|
const n = 'number';
|
||||||
const o = 'object';
|
const o = 'object';
|
||||||
const a = 'array';
|
|
||||||
const f = 'function';
|
const f = 'function';
|
||||||
const r = 'regexp';
|
const r = 'regexp';
|
||||||
|
|
||||||
@@ -21,7 +20,12 @@ const component = {
|
|||||||
click: `?${f}`,
|
click: `?${f}`,
|
||||||
mounted: `?${f}`,
|
mounted: `?${f}`,
|
||||||
tooltip: `?${s}`,
|
tooltip: `?${s}`,
|
||||||
selector: `?${a}`,
|
selector: [
|
||||||
|
{
|
||||||
|
default: `?${b}`,
|
||||||
|
html: s,
|
||||||
|
},
|
||||||
|
],
|
||||||
onSelect: `?${f}`,
|
onSelect: `?${f}`,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -64,7 +68,7 @@ export default {
|
|||||||
controls: [
|
controls: [
|
||||||
{
|
{
|
||||||
...component,
|
...component,
|
||||||
position: (value, type, paths) => {
|
position: (value, _, paths) => {
|
||||||
const position = ['top', 'left', 'right'];
|
const position = ['top', 'left', 'right'];
|
||||||
return errorHandle(
|
return errorHandle(
|
||||||
position.includes(value),
|
position.includes(value),
|
||||||
|
|||||||
Reference in new issue
Block a user