This commit is contained in:
Harvey authored and Harvey Zack committed 2022-02-11 11:20:54 +08:00
1 parent 5e9057f060
commit 4d66a8538d
18 files changed
+137 -118

No files matched your search

+3 -3
View File
@@ -31,16 +31,16 @@ var art = new Artplayer({
{
html: 'Custom setting',
width: 250,
children: [
selector: [
{
html: 'Custom setting 01',
click: function () {
onSelect: function () {
console.info('You clicked on the custom setting 01');
},
},
{
html: 'Custom setting 02',
click: function () {
onSelect: function () {
console.info('You clicked on the custom setting 02');
},
},
+7 -2
View File
@@ -92,9 +92,14 @@ type SettingOption = {
current?: boolean;
/**
* Html string or html element of component
* Custom selector list, use in controls
*/
children?: SettingOption[];
selector?: SettingOption[];
/**
* When selector item click, use in controls
*/
onSelect?(selector: Selector, element: HTMLElement): void;
};
type Component = {