1234567891011121314151617181920212223242526272829303132 |
- <template>
- <uv-popup ref="popup" mode="center" bgColor="none" class="popupCenter" style="width: 300rpx; ">
- <view>
- <slot></slot>
- </view>
- </uv-popup>
- </template>
- <script>
- export default {
- name: 'CustomPopup',
- methods: {
- open() {
- this.$refs.popup.open();
- },
- close() {
- this.$refs.popup.close();
- }
- }
- }
- </script>
- <style scoped>
- /* 可以在这里添加样式 */
- .popupCenter
- {
- background-color: #fff;
- width: 600rpx;
-
- }
- </style>
|