Giter Club home page Giter Club logo

v3-bento's Introduction

V3-Bento

v3-bento

A simple bento layout component for Vue3.

Document: https://v3bento.mmeme.me/

🌸 Get Started

pnpm install v3-bento

🍄 Usage

<Bento
  :bentoCells="bentoCells"
  class="!h-[610px] overflow-y-auto overflow-x-hidden p-[10px] box-content"
  :size="140"
  :disabled="false"
  :gap="10"
  :maximum-cells="4"
  @drag-end="(e: any) => console.log(e)"
  @drag-start="(e: any) => console.log(e)"
>
  <BentoItem
    v-for="item in bentoCells"
    :key="item.id"
    :id="item.id"
    :x="item.x"
    :y="item.y"
    :width="item.width"
    :height="item.height"
  >
    <Cell :url="'./' + item.id + '.svg'" :bg="'#fff'" />
  </BentoItem>
</Bento>

Source Code

  1. Run code: npm run dev
  2. Package lib: npm run build:lib
  3. Release lib: npm run release:lib
  4. Package documents: npm run build
  5. Preview documents: npm run preview
中文
  1. 运行代码: npm run dev
  2. 打包 lib : npm run build:lib
  3. 发包 lib : npm run release:lib
  4. 打包文档: npm run build
  5. 预览文档: npm run preview

v3-bento's People

Contributors

pinky-pig avatar

Stargazers

Liu Zijian avatar  avatar jie211 avatar Think In Infinity avatar 凪 avatar Harry Wong avatar  avatar  avatar Outshine avatar Chunyu avatar  avatar LeoStar avatar 乡树 avatar RiverRay avatar QETHAN avatar

Watchers

 avatar  avatar

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.