Skip to content

请问我使用jsx怎么接收不到分析组件,作用域插槽的值,模板语法可以(是我jsx写的有问题嘛),求教大佬 #265

Answered by zouyaoji
whyds000 asked this question in Q&A
Discussion options

You must be logged in to vote
/*
 * @Author: zouyaoji@https://github.com/zouyaoji
 * @Date: 2022-08-23 19:08:12
 * @LastEditTime: 2022-08-23 19:21:06
 * @LastEditors: zouyaoji
 * @Description:
 *
 * @FilePath: \vue-cesium-demo\src\components\tsx-test\index.tsx
 */
import { defineComponent, ref } from 'vue'
import { VcAnalyses, VcAnalysesRef, VcBtn } from 'vue-cesium'
import { VcDrawingActionInstance } from 'vue-cesium/es/utils/drawing-types'

export default defineComponent({
  name: 'Test',
  setup(props, ctx) {
    const analysisRef = ref<VcAnalysesRef>(null)

    const toggle = (drawingActionInstance: VcDrawingActionInstance) => {
      analysisRef.value.toggleAction(drawingActionInstance.name)
    }
    const slots = 

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@whyds000
Comment options

Answer selected by zouyaoji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants