GithubHelp home page GithubHelp logo

juetan / arconify Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 7.5 MB

一个基于 Arco Design 的 Vue 组件库,简化表单/表格增删改查开发。

Home Page: https://arconify.vercel.app

TypeScript 93.67% CSS 0.93% HTML 1.37% Vue 4.03%

arconify's Introduction

基于 Arco Design 的 Vue3 组件库,一个 hook 完成表单/表格增删改查等日常工作。

功能特点

  • 一个 hook 即可定义完常规逻辑
  • 完善的 Typescript 类型支持,
  • 完善的文档注释,配合 VsCode 智能提示快速上手

快速上手

  1. 请确保项目内安装有以下依赖:
- vue
- @arco-design/web-vue
- lodash-es
  1. 使用以下命令安装依赖:
pnpm i arconify -D
  1. 在组件中使用
<template>
  <UserTable></UserTable>
</template>

<script lang="ts" setup>
import { useAnTable } from 'arconify'
import 'arconify/es/style.css'

const UserTable = useAnTable({
  data: (params) => {
    return {
      data: [],
      total: 100
    }
  },
  columns: [
    {
      title: '名字',
      dataIndex: 'name'
    }
  ],
})
</script>

问题记录

  • defineComponent类型无法推导?与npm依赖有关,临时移除该文件。
  • import xx from '..../node_modules/xx/vue' 即使指定 external?移除 tsconfig.json 中的 compilerOptions.paths。
  • 莫名的 import 'vue'?源码内使用具名导入,如 import x from './a/b' 而不是 联合导出,如 import x from './a'。
  • item.field 支持路径,例如 users.0.name

arconify's People

Stargazers

Curie avatar

Watchers

绝弹 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.