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

hcd-vue

v1.0.3

Published

vue可视化布局

Downloads

4

Readme

banner

Vue-Layout

基于UI组件的Vue可视化布局、生成.vue代码的工具。https://jaweii.github.io/Vue-Layout/dist/


演示

使用

demo1

效果

demo2

上图的后台布局例子,你可以进入这个页面访问其布局:https://jaweii.github.io/Vue-Layout/dist/#/share/5993d3b05c497d0057c6f2da
也可以进入这个页面体验其布局效果:https://jaweii.github.io/Vue-Layout/dist/#/preview/pc/5993d3b05c497d0057c6f2da

源码结构

├─App.vue
├─main.js
├─utils
|   ├─guid.js                        //返回一个唯一标识符,组件被拖入后的id就是调用此方法获得
|   ├─leancloud storage.js           //分享功能,将Vuex数据保存到云端,使用leanCloud
|   └mergeDeep.js                    //深度合并对象的方法
├─store
|   └index.js                        //Vuex
├─router
|   └index.js                        //Vue-Router
├─components
|     ├─attributes.vue               //左侧的属性视图组件
|     ├─colorList.js                 //颜色选择器中颜色的列表
|     ├─colorPicker.vue              //颜色选择器组件
|     ├─components.vue               //右侧的组件列表视图
|     ├─componentTree.vue            //左侧的组件树
|     ├─iconList.js                  //图标选择器中图标的列表
|     ├─iconPicker.vue               //图标选择器
|     ├─main.vue                     //主页面
|     ├─mount.js                     //封装的挂载方法
|     ├─preview.vue                  //预览视图的组件
|     ├─preview_mobile.vue           //手机预览的组件
|     ├─preview_product.vue          //体验拖拽完成的作品的页面
|     ├─subAttribute.vue             //属性视图的子属性组件
|     ├─template                     //UI组件的模板目录
|     |    ├─index.js                //提供了三个方法,主要使用getTemplate来实现拖入控件后,得到一个组件对象并保存到vuex
|     |    ├─README.md
|     |    ├─Muse-UI                 //UI分类目录
|     |    |    ├─App Bar.js         //UI组件之一
|     |    |    ├─  ………
|     |    |    ├─Time Picker.js
|     |    |    └Tr.js
|     |    ├─Mint-UI
|     |    |    ├─Button.js
|     |    |    ├─Header.js
|     |    |    └index.js
|     |    ├─Common
|     |    |   ├─A.js
|     |    |   ├─  ………
|     |    |   └Text.js
|     ├─list                         //右侧的组件列表视图中,所显示的组件的列表,由于有的行数太多,就提取了出来
|     |  ├─muse-ui
|     |  |    ├─appbar.vue
|     |  |    ├─  ………
|     |  |    └timePicker.vue
├─assets                             //所需资源
|   ├─logo.png
|   ├─css
|   |  ├─global.css                  //全局样式
|   |  ├─theme-dark.css              //Muse-UI的自定义主题(红色风格)
|   |  ├─highlight                   //代码格式化后的高亮样式