Skip to content

Commit

Permalink
fix: demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Ymm0008 committed Jan 12, 2023
1 parent 01fc840 commit 4584748
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/packages/__VUE/barrage/demo.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<template>
<div class="demo">
<h2>{{ translate('basic') }}</h2>
<nut-cell>
<nut-cell class="danmu-box">
<nut-barrage ref="danmu" :danmu="list"></nut-barrage>
</nut-cell>
<div class="test">
<nut-button @click="addDanmu" class="add nut-button--primary">{{ translate('btn1') }}</nut-button>
</div>
<h2>{{ translate('slotTitle') }}</h2>
<nut-cell>
<nut-cell class="danmu-box">
<nut-barrage>
<span>aaa</span>
<span>bbb</span>
Expand Down Expand Up @@ -60,7 +60,7 @@ export default createDemo({
</script>

<style lang="scss" scoped>
.nut-cell,
.danmu-box,
.nut-barrage {
padding: 20px 0;
height: 150px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="demo" :class="{ web: env === 'WEB' }">
<Header v-if="env === 'WEB'" />
<h2>基础用法</h2>
<nut-cell>
<nut-cell class="danmu-box">
<nut-barrage ref="danmu" :danmu="list"></nut-barrage>
</nut-cell>
<div class="test">
Expand Down Expand Up @@ -38,7 +38,7 @@ export default {
</script>

<style lang="scss">
.nut-cell,
.danmu-box,
.nut-barrage {
padding: 20px 0;
height: 150px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ export default {
#app .demo {
height: auto;
}
.nut-cell {
padding: 20px 0;
height: 120px;
}
.test {
.nut-input {
width: 80%;
Expand Down

0 comments on commit 4584748

Please sign in to comment.