瑶都万能墙
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
817 B

7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
6 months ago
7 months ago
  1. <template>
  2. <view class="configPopup">
  3. <uv-popup ref="popup" :round="30" :customStyle="{height: '50vh'}">
  4. <view class="content">
  5. <uv-parse :content="text || content"></uv-parse>
  6. </view>
  7. </uv-popup>
  8. </view>
  9. </template>
  10. <script>
  11. import { mapState } from 'vuex'
  12. export default {
  13. name: 'configPoup',
  14. props : {
  15. text : {
  16. default : ''
  17. }
  18. },
  19. data() {
  20. return {
  21. content : ''
  22. }
  23. },
  24. onShow(){
  25. },
  26. methods: {
  27. //打开配置信息菜单
  28. open(key){
  29. this.content = this.configList[key]
  30. this.$refs.popup.open('bottom');
  31. }
  32. },
  33. computed : {
  34. ...mapState(['configList'])
  35. }
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. .configPopup {
  40. .content{
  41. padding: 30rpx 20rpx;
  42. overflow: scroll;
  43. height: 100%;
  44. box-sizing: border-box;
  45. }
  46. }
  47. </style>