Commit 73000a8e by limin

1.1.1

1 parent 5a52d27f
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
{
"name": "glsx-components",
"description": "glsx vue components",
"version": "1.0.9",
"version": "1.1.1",
"author": "limin <17653212@qq.com>",
"license": "MIT",
"main": "dist/glsx-components.common.js",
......
......@@ -13,7 +13,17 @@
<el-button type="primary" size="small">aaa</el-button>
</div>
</GLDialog>
<GLTable></GLTable>
<GLTable ref="liveRoomRef" :tableParams="tableParams" :tableData="tableData">
<span slot="shareImgUrl" slot-scope="scope">
<img class="img-60" :src="scope.scope.shareImgUrl" />
</span>
<span class="table-btns" slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="handleDetail(scope.scope)">控制台</el-button>
<el-button type="text" @click="handleShare(scope.scope)">分享</el-button>
<el-button v-if="scope.scope.liveStatus == '102'" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button>
<el-button v-if="scope.scope.liveStatus != '101'" type="text" @click="handleDelete(scope.scope)">删除</el-button>
</span>
</GLTable>
</div>
</template>
......@@ -26,7 +36,101 @@ export default {
},
data() {
return {
visible: false
visible: false,
tableParams: {
listName: 'list',
tableOption: true,
tableColumns: [
{
label: '最近开播',
prop: 'time',
width: '180',
formatter: cellValue => {
return cellValue.startTime + '-' + cellValue.endTime
}
},
{
label: '直播间名称',
prop: 'name',
line: 1
},
{
label: '房间号',
prop: 'roomId'
},
{
label: '主播',
prop: 'anchorName',
line: 1
},
{
label: '直播间图片',
prop: 'shareImgUrl',
line: 1,
addHtml: 'shareImgUrl'
},
{
label: '直播状态',
prop: 'liveStatus',
width: '80',
formatter: cellValue => {
return 111
}
}
]
},
tableData: [
{
id: 3,
name: '直播测试1',
startTime: '2021-09-23 21:26:44',
endTime: '2021-09-23 21:34:35',
anchorName: 'hexy1996',
shareImgUrl: 'http://qcimg01.glsx.net:7060/group1/M00/00/31/wKgD3mFDEMKAa2T8AAAuTgJxhBQ998.jpg',
roomId: 26,
liveStatus: 103
},
{
id: 5,
name: '直播测试1',
startTime: '2021-09-27 11:00:00',
endTime: '2021-09-27 13:10:00',
anchorName: 'hexy1996',
shareImgUrl: 'http://qcimg01.glsx.net:7060/group1/M00/00/31/wKgD3mFDEMKAa2T8AAAuTgJxhBQ998.jpg',
roomId: 28,
liveStatus: 107
},
{
id: 9,
name: '直播测试1',
startTime: '2021-10-07 12:00:00',
endTime: '2021-10-07 14:00:00',
anchorName: 'hexy1996',
shareImgUrl: 'http://qcimg01.glsx.net:7060/group1/M00/00/31/wKgD3mFDEMKAa2T8AAAuTgJxhBQ998.jpg',
roomId: 32,
liveStatus: 107
},
{
id: 11,
name: '直播间新增1-编辑啦啦啦',
startTime: '2021-10-26 20:00:00',
endTime: '2021-10-26 23:30:08',
anchorName: '啦啦999',
shareImgUrl: 'http://qcimg01.glsx.net:7060/group1/M00/00/3F/wKgD3mF3cs-AeeV8AAA8sjTg54U855.jpg',
roomId: 34,
liveStatus: 107
},
{
id: 12,
name: '新增直播间咯00',
startTime: '2021-10-29 09:13:18',
endTime: '2021-10-29 15:08:19',
anchorName: '啦啦',
shareImgUrl: 'http://qcimg01.glsx.net:7060/group1/M00/00/40/wKgD3mF5BJiAAWQgAABFn4xd9nI261.jpg',
roomId: 37,
liveStatus: 102
}
]
}
},
methods: {
......@@ -41,7 +145,7 @@ export default {
}
}
}
</script>
</script>
<style>
#app {
......@@ -52,4 +156,4 @@ export default {
color: #2c3e50;
margin-top: 60px;
}
</style>
\ No newline at end of file
</style>
import Vue from 'vue'
import App from './App.vue'
import { GLExternal, GLButton, GLDialog, GLTable } from './packages/index'
// import '../dist/glsx-components.css'
import '../dist/glsx-components.css'
Vue.use(GLExternal)
Vue.use(GLDialog)
Vue.use(GLTable)
......
......@@ -7,4 +7,4 @@ Vue.use(ButtonGroup)
Vue.use(Table)
Vue.use(Input)
Vue.use(Form)
Vue.use(FormItem)
\ No newline at end of file
Vue.use(FormItem)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!