update type

This commit is contained in:
Harvey committed 2022-02-11 12:55:21 +08:00
1 parent aac95549cb
commit 936617707f
3 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -34,6 +34,7 @@ var art = new Artplayer({
icon: '<img width="22" heigth="22" src="/assets/img/indicator.svg">', icon: '<img width="22" heigth="22" src="/assets/img/indicator.svg">',
selector: [ selector: [
{ {
default: true,
html: 'Custom setting 01', html: 'Custom setting 01',
onSelect: function () { onSelect: function () {
console.info('You clicked on the custom setting 01'); console.info('You clicked on the custom setting 01');
@@ -59,7 +60,7 @@ var art = new Artplayer({
], ],
layers: [ layers: [
{ {
html: '<img style="width: 100px" src="/assets/sample/layer.png">', html: '<img width="100" src="/assets/sample/layer.png">',
click: function () { click: function () {
console.info('You clicked on the custom layer'); console.info('You clicked on the custom layer');
}, },
+1 -1
View File
@@ -701,5 +701,5 @@ declare class Artplayer extends Player {
readonly contextmenu: Record<string, HTMLElement> & Component; readonly contextmenu: Record<string, HTMLElement> & Component;
readonly setting: Record<string, HTMLElement> & Component; readonly setting: Component;
} }
+1 -1
View File
@@ -701,5 +701,5 @@ declare class Artplayer extends Player {
readonly contextmenu: Record<string, HTMLElement> & Component; readonly contextmenu: Record<string, HTMLElement> & Component;
readonly setting: Record<string, HTMLElement> & Component; readonly setting: Component;
} }