Giter Club home page Giter Club logo

Comments (2)

MaikoTan avatar MaikoTan commented on July 29, 2024

I delved into Koishi's documentation and the market code and found that they are in the form of SVGs within Vue files. This leads to two possible solutions:

  1. Copy the icons from the market into the documentation and then register these components in the enhanceApp function.
  2. Keep the icons in the market project. I'll write a component that imports Vue components from the market project and then displays the appropriate icons based on parameters.

Currently, I think option 2 would be more suitable. What do you think?

我深入研究了 Koishi 的文档和市场代码,发现它们在 Vue 文件中采用 SVG 的形式。这导致两种可能的解决方案:

  1. 将市场上的图标复制到文档中,然后将这些组件注册到enhanceApp函数中。
  2. 保留市场项目中的图标。我将编写一个组件,从市场项目中导入 Vue 组件,然后根据参数显示适当的图标。

目前,我认为方案2更合适。你怎么认为?

from docs.

shigma avatar shigma commented on July 29, 2024

#132

from docs.

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.