forked from opentiny/tiny-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlockEvent.vue
More file actions
56 lines (52 loc) · 1.13 KB
/
Copy pathBlockEvent.vue
File metadata and controls
56 lines (52 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<template>
<tiny-row>
<tiny-col :span="6">
<block-event-list></block-event-list>
</tiny-col>
<tiny-col class="form" :span="6">
<block-event-form v-show="isEdit"></block-event-form>
</tiny-col>
</tiny-row>
<block-guide v-show="showVideo" title="区块事件设置指引">
<template #video>
<slot name="video"></slot>
</template>
</block-guide>
</template>
<script>
import { computed, reactive } from 'vue'
import { Row as TinyRow, Col as TinyCol } from '@opentiny/vue'
import BlockGuide from './BlockGuide.vue'
import BlockEventList from './BlockEventList.vue'
import BlockEventForm from './BlockEventForm.vue'
import { getEditEvent } from './js/blockSetting'
export default {
components: {
TinyRow,
TinyCol,
BlockGuide,
BlockEventList,
BlockEventForm
},
props: {
showVideo: {
type: Boolean,
default: false
}
},
setup() {
const state = reactive({
isShowVideo: false
})
return {
state,
isEdit: computed(() => Boolean(getEditEvent()))
}
}
}
</script>
<style lang="less" scoped>
.form {
margin-top: 45px;
}
</style>