Skip to content

Commit

Permalink
feat: uv-popup
Browse files Browse the repository at this point in the history
  • Loading branch information
feige996 committed May 19, 2024
1 parent e11a9d5 commit 36783eb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/pages/demo/base/uv-ui.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@
<view>富文本也是支持的:</view>
<uv-parse :content="content"></uv-parse>
</view>

<uv-popup ref="popup" @change="change">
<view>
<text>
丙辰中秋,欢饮达旦,大醉,作此篇,兼怀子由。 明月几时有?把酒问青天。
不知天上宫阙,今夕是何年。我欲乘风归去,又恐琼楼玉宇,高处不胜寒。起舞弄清影,何似在人间。
转朱阁,低绮户,照无眠。不应有恨,何事长向别时圆?人有悲欢离合,月有阴晴圆缺,此事古难全。
但愿人长久,千里共婵娟。
</text>
</view>
</uv-popup>
<button @click="open">打开</button>
</view>
</template>

Expand Down Expand Up @@ -71,6 +83,14 @@ onLoad(() => {
iconName.value = 'chat'
}, 1000)
})
const popup = ref()
const open = () => {
popup.value?.open()
}
const change = (e) => {
console.log('弹窗状态改变:', e)
}
</script>

<style lang="scss" scoped>
Expand Down

0 comments on commit 36783eb

Please sign in to comment.