npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@jiaomatech/designer-core

v0.0.51

Published

基于vue3的设计器,可视化开发页面表单

Downloads

41

Readme

📦github仓库:https://github.com/Kchengz/k-designer

📦gitee仓库:https://gitee.com/kcz66/k-designer

💎文档地址:https://kcz66.gitee.io/k-designer/

简介

可以简称K设计器,是一个功能强大、开箱即用的拖拽式低代码设计器。它基于 Vue3 开发,兼容多套 UI 组件库,除了基础的页面设计功能,KDesigner 还提供了强大的扩展功能,可以让开发者根据自己的需求自由扩展和定制组件。此外,KDesigner 使用 JSON 配置来生成页面,可帮助开发者快速生成页面,提高开发效率。它提供了两个重要组件:k-designer 设计器和 k-builder 生成器。

目前还处于 Alpha 阶段,所有的 API 及 Props 都可能在后续迭代中发生变化

同时因为需要维护多套UI组件,也会增加兼容性和测试工作,且作者需要保证不影响到工作,所以开发进度会相对慢一点,但是会尽量利用业余时间更新功能,同时也欢迎各位大佬提供建议和pr

最新版本

功能

  • [x] 拖拽设计
  • [x] 自定义 actionBar
  • [x] 布局组件扩展
  • [x] 自定义组件扩展
  • [x] 事件扩展
  • [x] 组件懒加载
  • [ ] 完善布局
  • [x] 组件属性自定义
  • [ ] 支持不同 UI
  • [ ] 插件扩展

组件介绍

k-designer 设计器

k-designer 是一个可视化设计器组件,用户可以通过拖拽组件的方式快速生成 JSON 配置。它提供了丰富的组件库和配置项,用户可以根据需要选择合适的组件并配置相应的属性、事件和动作。设计器还提供了实时预览功能,用户可以随时查看所设计页面的效果。最终,用户可以将 JSON 配置导出,用于页面的生成和修改。

k-builder 生成器

k-builder 是一个页面构建组件,它可以将设计器生成的 JSON 配置构建成页面,完成组件的渲染、事件绑定和数据回显等操作。

安装 k-designer

npm i k-designer

k-designer 目标是支持多 UI 兼容,目前支持以下 UI

  • element-plus
  • ant-design-vue
  • naive-ui

选择 UI 组件库

  • 选择 element-plus

npm i element-plus

main.ts 或者 main.js 引入注册组件

// 引入Element plus样式
import "element-plus/dist/index.css";
// 引入k-designer样式
import "k-designer/dist/style.css";
import { pluginManager } from "k-designer";
import { setupElementPlus } from "k-designer/dist/ui/elementPlus";
// 注册Element UI
setupElementPlus(pluginManager);
  • 选择 ant-design-vue

npm i ant-design-vue

main.ts 或者 main.js 引入注册组件

// 引入antd UI样式
import "ant-design-vue/dist/antd.css";
// 引入k-designer样式
import "k-designer/dist/style.css";
import { pluginManager } from "k-designer";
import { setupAntd } from "k-designer/dist/ui/antd";
// 使用Antd UI
setupAntd(pluginManager);
  • 选择 naive-ui

npm i naive-ui

main.ts 或者 main.js 引入注册组件

// 引入k-designer样式
import "k-designer/dist/style.css";
import { pluginManager } from "k-designer";
import { setupNaiveUi } from "k-designer/dist/ui/naiveUi";
// 注册Naive Ui
setupNaiveUi(pluginManager);

在页面使用 k-designer

<template>
  <div class="h-full">
    <KDesigner />
  </div>
</template>
<script setup lang="ts">
import { KDesigner } from "k-designer";
</script>
<style>
.h-full {
  height: 100vh;
}
</style>

交流

点击链接加入 qq 群聊