GithubHelp home page GithubHelp logo

Comments (4)

patric-eberle avatar patric-eberle commented on May 8, 2024 1

@rafaesc like @Knovour I also tested with the latest release and got the same result.

I've set up a branch, where you can test the issue yourself: https://github.com/patric-eberle/vue-playground/tree/feature/vue-styleguidist

In the component BrokenDocumentation.vue just uncomment the default on corruptDefinition to see the issue.

One place to start to investigate could probably be the following:

renderDefault(prop) {
  // ...
  if (defaultValueBlacklist.indexOf(prop.defaultValue.value) > -1) {} // This test looks invalid to me. The defaultValueBlacklist contains strings, but "undefined" is no string
  // ...
}

from vue-styleguidist.

rafaesc avatar rafaesc commented on May 8, 2024

Hi @patric-eberle,

I don't really sure to understand, can you share a repository with the problem?

Thanks!

from vue-styleguidist.

Knovour avatar Knovour commented on May 8, 2024

Same problem at 1.3.7

if I set default as function in props, the unquote function will receive undefined

eg:

label: {
	type: Array,
	default: () => []
}

This will work

label: {
	type: Array,
	default: []
}

from vue-styleguidist.

rafaesc avatar rafaesc commented on May 8, 2024

Hi there,

this issue is similar to this:
#60

You can already update to version 1.3.8

Regards,

from vue-styleguidist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.