mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 14:41:20 -08:00
Add more valid
This commit is contained in:
1 parent
5f45ad112f
commit
d919471838
7 files changed
+31
-11
No files matched your search
@@ -12,7 +12,7 @@ function validElement(value, type, paths) {
|
||||
return errorHandle(type === s || value instanceof Element, `${paths.join('.')} require '${s}' or 'Element' type`);
|
||||
}
|
||||
|
||||
const component = {
|
||||
export const ComponentOption = {
|
||||
html: validElement,
|
||||
disable: `?${b}`,
|
||||
name: `?${s}`,
|
||||
@@ -59,12 +59,12 @@ export default {
|
||||
useSSR: b,
|
||||
plugins: [f],
|
||||
whitelist: [`${s}|${f}|${r}`],
|
||||
layers: [component],
|
||||
contextmenu: [component],
|
||||
settings: [component],
|
||||
layers: [ComponentOption],
|
||||
contextmenu: [ComponentOption],
|
||||
settings: [ComponentOption],
|
||||
controls: [
|
||||
{
|
||||
...component,
|
||||
...ComponentOption,
|
||||
position: (value, _, paths) => {
|
||||
const position = ['top', 'left', 'right'];
|
||||
return errorHandle(
|
||||
|
||||
Reference in new issue
Block a user