dialogDemo.vue 575 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <div>
  3. <el-button @click="showProduct">商品弹窗</el-button>
  4. <el-button @click="showWarehouse">仓库弹窗</el-button>
  5. <productDialog ref="product" />
  6. <warehouseDialog ref="warehouse" />
  7. </div>
  8. </template>
  9. <script lang="ts">
  10. import { Component, Prop, Vue, Watch } from "vue-property-decorator";
  11. @Component
  12. export default class DialogDemo extends Vue {
  13. showProduct(){
  14. (this.$refs.product as any).setShow(true)
  15. }
  16. showWarehouse(){
  17. (this.$refs.warehouse as any).setShow(true)
  18. }
  19. }
  20. </script>
  21. <style lang="scss" scoped>
  22. </style>