Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about ant-design-vue

Read more about ant-design-vue

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - ant-design-vue

`ReferenceError: React is not defined` in vue3 jsx files

i am trying to implement storybook with antdv, when I import a tsx file which returns jsx inside button.stories.js, I got "ReferenceError: React is not defined" you can see error here but re...
test-img

Muhammad Awais Zeeshan

typescript

vue.js

vuejs3

storybook

ant-design-vue

Votes: 0

Answers: 1

Latest Answer

Probably its an error with configuration on JSX transpiler,i think a solution can be import react even if you don't use it import React from 'react';
test-img

aromeral98

How to call a computed property in dynamic style?

I want to style Ant Design Vue button(inside a table row of Ant Design table) dynamically: <template #status="{ text }"> <a-button ghost :style="{'border-color': getColo...
test-img

Reza Mazaheri

vue.js

ant-design-vue

Votes: 0

Answers: 1

Latest Answer

Try to use computed property in options API by returning a function that takes the status as parameter: setup(){ ... }, computed:{ getColor(){ return (status)=>{ let color = ''; switch(s...
test-img

Boussadjra Brahim

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved