|
@@ -2,7 +2,7 @@ import { defineComponent } from 'vue'
|
|
|
import { ElButton, ElDropdown, ElDropdownMenu, ElDropdownItem, ElSlider, ElDialog, ElIcon } from 'element-plus'
|
|
|
import runtime, * as RuntimeUtils from './runtime'
|
|
|
import styles from './action-bar.module.less'
|
|
|
-
|
|
|
+import Share from './share'
|
|
|
export default defineComponent({
|
|
|
name: 'LiveBroadcast-ActionBar',
|
|
|
data() {
|
|
@@ -32,6 +32,7 @@ export default defineComponent({
|
|
|
},
|
|
|
methods: {
|
|
|
startShare() {
|
|
|
+ console.log('调用')
|
|
|
this.shareVisiable = true
|
|
|
},
|
|
|
volumeChange(value: number) {
|
|
@@ -189,7 +190,7 @@ export default defineComponent({
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
- <div style={{ display: 'flex' }}>
|
|
|
+ <div style={{ display: 'flex' }} onClick={this.startShare}>
|
|
|
<div class={styles['bar-btn']} >
|
|
|
<div class={styles.btnInner}>
|
|
|
<SvgIcon
|
|
@@ -200,12 +201,13 @@ export default defineComponent({
|
|
|
}}
|
|
|
/>
|
|
|
</div>
|
|
|
- <span class={styles['bar-btn-text']}>分享</span>
|
|
|
+ <span class={styles['bar-btn-text']} >分享</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
{/* <ElButton onClick={RuntimeUtils.shareScreenVideo}>屏幕共享</ElButton> */}
|
|
|
- <ElDialog modelValue={this.shareVisiable} title="分享" before-close={() => { this.shareVisiable = false }}>
|
|
|
- 11111
|
|
|
+ <ElDialog width="510px"
|
|
|
+ append-to-body modelValue={this.shareVisiable} title="分享" before-close={() => { this.shareVisiable = false }}>
|
|
|
+ <Share />
|
|
|
</ElDialog>
|
|
|
</div>
|
|
|
)
|