# vue-page-designer **Repository Path**: seven1979/vue-page-designer ## Basic Information - **Project Name**: vue-page-designer - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-07-19 - **Last Updated**: 2021-11-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vue-page-designer


Live Demo

A drag-and-drop mobile website builder base on Vue. ## Install ```bash yarn add vue-page-designer ``` You can start it quickly, in main.js: ```js import Vue from 'vue'; import vuePageDesigner from 'vue-page-designer' import 'vue-page-designer/dist/vue-page-designer.css' import App from './App.vue'; Vue.use(vuePageDesigner); new Vue({ el: '#app', render: h => h(App) }); ``` Next, use it: ```html ``` A [example](https://fireyy.github.io/vue-page-designer/) ▶️, and [source](./example/). Also a [custom widget source](./example/widgets) # Options You can add custom components, save callback. | Props | Type | Description | | -------- | -------- | -------- | | value | `Object` | Editor initial value, you can pass the value of the save callback and resume the draft | | widgets | `Object` | Vue Components. Custom components for editor. see [Example](https://github.com/fireyy/vue-page-designer-widgets/blob/master/src/index.js) | | save | `(data) => void` | When you click the Save button, feed back to you to save the data | | upload | `(files) => Promise` | Editor upload function, allowing you to implement your own upload-file's request | ## Parameter: `value` The `value` came from `save`. ```html ``` ## Parameter: `widgets` You can install default widget in `vue-page-designer-widgets` ```bash yarn add vue-page-designer-widgets ``` Import and use it ```html ``` ## Parameter: `save` ```html ``` ## Parameter: `upload` ```html ```