GithubHelp home page GithubHelp logo

vue-jss's People

Contributors

jokcy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vue-jss's Issues

classNamePrefix

默认classNamePrefix为undefined
在传递时代码中

  context.classNamePrefix += classNamePrefix

导致拼接上undefined字符串

How to use with custom Theme interface in typescript?

I have such code in my theme.ts file.

export interface Theme {
  spacing: (n: number) => string;
}

const theme: Theme = {
  spacing: (factor) => `${0.25 * factor}rem`,
};

export default theme;

It's ok to get theme type definition by

import { Theme } from '@/constants/theme';

const useStyle = createUseStyles<Theme>(theme => ({ ... });

But it's annoying that I have to import Theme every time.

The useTheme will lead to type error.

const theme: Ref<Theme> = useTheme();
// Type 'Ref<{}>' is not assignable to type 'Ref<Theme>'.

Is there a similar way to define a global theme like in react-jss? (https://github.com/cssinjs/jss/blob/master/docs/react-jss-ts.md#defining-a-global-default-theme)
Thanks in advance.

reademe中margin不能写对象,classes需要加value,需要额外安装jss以及jss-preset-default依赖

老师你好,之前看过你的课程。

使用过程中有一些问题,做个说明。

1.vue-jss安装完之后,不能使用,还需要安装jss,以及jss-preset-default。
2.redeme文档中的margin: { top: 10 } 写法会报错,直接用字符串写法没有问题margin: "0 20px"
3.在 setup中直接使用const classes = useStyles(); classes需要加value,但是redeme中并没有,如在render函数中使用需要加this

Only supports vue 3?

First, congrats by this lib :)
Have a question. This lib supports only vue 3?
Thankyou

How to define an animation keyframe?

Hello, now I want to define an animation keyframe, I didn't find any way to resolve this problem, what should I do?
I watched your extraodinary courses on immoc so I enduring use this library

tip: If this lib no longer maintain, whether have other the same effect lib?

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.