Giter VIP home page Giter VIP logo

note's Introduction

Viky 一些技术笔记

Viky 一些开源小项目

这里


各文中的 目录TOC Generator 自动生成。

note's People

Contributors

vikyd 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

note's Issues

您好,请教一下。unocss的同属性类名总是前面前面覆盖后面的,是否能像Windi CSS一样后面的类名覆盖前面的类名?

如图同样的代码,在windicss中显示绿色,在unocss中显示红色,我觉得这样做很反直觉。 请问,我希望unocss可以和windcss表现的一样,应该怎么做?
image

这是我碰到的一个困难

<!--  son.vue -->
<template> 
  <a
    class="text-white"
  >
    <slot>
     免费注册
    </slot>
  </a>
</template>


<!--  parent.vue -->
<template> 
  <son class="text-black" ></son>
</template>

这时,浏览器调试器中看到的标签是这样的。<a class="text-white text-black">免费注册<a> ,显示的字体颜色仍然是白色
我现在的做法是通过!text-black来强制覆盖为黑色。请问有什么更优雅的方式解决吗?

这是我的uno.config.js

import { defineConfig, presetAttributify, presetUno, transformerVariantGroup } from 'unocss'
import transformerDirectives from '@unocss/transformer-directives' // 支持@apply
export default defineConfig({
  theme: {
    colors: {
      primary: 'var(--color-base)',
      main: 'var(--color-main)',
      'main-dark': 'var(--color-main-dark)'
    }
  },
  presets: [
    presetAttributify({
      /* preset options */
    }),
    presetUno()
  ],
  transformers: [transformerDirectives(), transformerVariantGroup()],
})

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.