mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 11:21:20 -08:00
调整控制器结构
This commit is contained in:
1 parent
cce1eda7eb
commit
a380836d75
21 files changed
+1152
-1422
No files matched your search
+34
-34
@@ -756,6 +756,13 @@ The unique index, used for the priority level
|
||||
|
||||
The dom element
|
||||
|
||||
### style
|
||||
|
||||
- Type: `Object`
|
||||
- Default: `{}`
|
||||
|
||||
The style object
|
||||
|
||||
### click
|
||||
|
||||
- Type: `Function`
|
||||
@@ -796,55 +803,27 @@ var art = new Artplayer({
|
||||
|
||||
Custom controls, The type of controls is an object or function
|
||||
|
||||
### option
|
||||
|
||||
- Type: `Object`
|
||||
- Default: `{}`
|
||||
|
||||
An object property if instantiated
|
||||
|
||||
#### disable
|
||||
### disable
|
||||
|
||||
- Type: `Boolean`
|
||||
- Default: `false`
|
||||
|
||||
Whether to disable
|
||||
|
||||
#### name
|
||||
### name
|
||||
|
||||
- Type: `String`
|
||||
- Default: `control${id}`
|
||||
- Default: `layer${id}`
|
||||
|
||||
The unique name, used for the class name
|
||||
The unique name , used for the class name
|
||||
|
||||
#### click
|
||||
|
||||
- Type: `function`
|
||||
- Default: `undefined`
|
||||
|
||||
Click event
|
||||
|
||||
#### index
|
||||
### index
|
||||
|
||||
- Type: `Number`
|
||||
- Default: `undefined`
|
||||
- Default: `${id}`
|
||||
|
||||
The unique index, used for the priority level
|
||||
|
||||
#### position
|
||||
|
||||
- Type: `String`
|
||||
- Default: `undefined`
|
||||
|
||||
The position where the controller appears: top, left, right
|
||||
|
||||
### mounted
|
||||
|
||||
- Type: `Function`
|
||||
- Default: `undefined`
|
||||
|
||||
Callback after mounted
|
||||
|
||||
### html
|
||||
|
||||
- Type: `String`、`Element`
|
||||
@@ -852,6 +831,27 @@ Callback after mounted
|
||||
|
||||
The dom element
|
||||
|
||||
### style
|
||||
|
||||
- Type: `Object`
|
||||
- Default: `{}`
|
||||
|
||||
The style object
|
||||
|
||||
### click
|
||||
|
||||
- Type: `Function`
|
||||
- Default: `undefined`
|
||||
|
||||
Click event
|
||||
|
||||
### mounted
|
||||
|
||||
- Type: `Function`
|
||||
- Default: `undefined`
|
||||
|
||||
Callback after mounted
|
||||
|
||||
[Run Code](/)
|
||||
|
||||
```js
|
||||
|
||||
Reference in new issue
Block a user