|
@@ -1,15 +1,18 @@
|
|
|
import { defineComponent } from 'vue'
|
|
|
import { ElButton, ElDropdown, ElDropdownMenu, ElDropdownItem } from 'element-plus'
|
|
|
import runtime, * as RuntimeUtils from './runtime'
|
|
|
+import styles from './action-bar.module.less'
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'LiveBroadcast-ActionBar',
|
|
|
render() {
|
|
|
return (
|
|
|
- <div>
|
|
|
+ <div class={styles['action-bar']}>
|
|
|
<ElButton onClick={RuntimeUtils.shareScreenVideo}>屏幕共享</ElButton>
|
|
|
<ElDropdown
|
|
|
+ placement="top"
|
|
|
onCommand={RuntimeUtils.setSelectCamera}
|
|
|
+ // @ts-ignore
|
|
|
vSlots={{
|
|
|
dropdown: () => (
|
|
|
<ElDropdownMenu>
|
|
@@ -21,7 +24,9 @@ export default defineComponent({
|
|
|
<ElButton type="primary">视频设备</ElButton>
|
|
|
</ElDropdown>
|
|
|
<ElDropdown
|
|
|
+ placement="top"
|
|
|
onCommand={RuntimeUtils.setSelectMicrophone}
|
|
|
+ // @ts-ignore
|
|
|
vSlots={{
|
|
|
dropdown: () => (
|
|
|
<ElDropdownMenu>
|