update setting

This commit is contained in:
zhw2590582 committed 2022-02-11 20:23:27 +08:00
1 parent 81ba45adf9
commit 1de2d2aaed
12 files changed
+177 -153

No files matched your search

@@ -5,14 +5,15 @@ sidebar_position: 6
Settings panels are similar to a collection of list selections, and support multi-layer nested
| Property | Type | Description |
| ---------- | ------------------- | ------------------------ |
| `html` | `String`、`Element` | DOM elements of selector |
| `icon` | `String`、`Element` | Icon of selector |
| `selector` | `Array` | Selector List |
| `onSelect` | `Function` | Selector Click event |
| `width` | `Number` | Panel width |
| `default` | `Boolean` | Default selected |
| Property | Type | Description |
| ------------- | ------------------- | ------------------------ |
| `html` | `String`、`Element` | DOM elements of selector |
| `icon` | `String`、`Element` | Icon of selector |
| `selector` | `Array` | Selector List |
| `onSelect` | `Function` | Selector Click event |
| `width` | `Number` | Panel width |
| `default` | `Boolean` | Default selected |
| `description` | `String` | Description Text |
<div className="run-code">▶ Run Code</div>
@@ -42,7 +43,7 @@ var art = new Artplayer({
onSelect: function onSubtitleSelect(item, $dom) {
console.info(item, $dom);
art.subtitle.url = item.url;
}
},
},
{
html: 'Select Quality',
@@ -96,4 +97,4 @@ var art = new Artplayer({
},
],
});
```
```
@@ -5,14 +5,15 @@ sidebar_position: 6
设置面板类似于列表选择的集合,而且支持多层嵌套
| 属性 | 类型 | 描述 |
| ---------- | ------------------- | --------------- |
| `html` | `String`、`Element` | 元素的 DOM 元素 |
| `icon` | `String`、`Element` | 元素的图标 |
| `selector` | `Array` | 元素列表 |
| `onSelect` | `Function` | 元素点击事件 |
| `width` | `Number` | 列表宽度 |
| `default` | `Boolean` | 是否默认选中 |
| 属性 | 类型 | 描述 |
| ------------- | ------------------- | --------------- |
| `html` | `String`、`Element` | 元素的 DOM 元素 |
| `icon` | `String`、`Element` | 元素的图标 |
| `selector` | `Array` | 元素列表 |
| `onSelect` | `Function` | 元素点击事件 |
| `width` | `Number` | 列表宽度 |
| `default` | `Boolean` | 是否默认选中 |
| `description` | `String` | 描述文案 |
<div className="run-code">▶ Run Code</div>
@@ -42,7 +43,7 @@ var art = new Artplayer({
onSelect: function onSubtitleSelect(item, $dom) {
console.info(item, $dom);
art.subtitle.url = item.url;
}
},
},
{
html: '选择画质',
@@ -96,4 +97,4 @@ var art = new Artplayer({
},
],
});
```
```