0.1.39 • Published 1 year ago

vue-page-editor v0.1.39

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

vue-page-editor(低代码页面编辑器)

Vue3 Low-code page editor

Preview Website

预览地址

Installing

$ npm install vue-page-editor

Using yarn:

$ yarn add vue-page-editor

Using pnpm:

$ pnpm add vue-page-editor

Once the package is installed, you can import the library using import approach:

import VuePageEditor from 'vue-page-editor';

There are currently two modes for use

{
  EDITOR: 1,
  PREVIEW: 2 
}

Edit Mode

<template>
  <VuePageEditor
    :editorType="1"
    :options="options"
    @preview="handlePreview"
  />
</template>

<script setup>
import VuePageEditor from 'vue-page-editor';

const options = {
  // baseURL: 'http://xx.xxx.xx.xxx', // Internal interface request address IP or Domain
  tools: 'back preview save', // Available toolbar
  customStyle: {
    // Custom style
  }
};
const handlePreview = (config) => {
  // Configuration data
  console.log(config);
};
</script>

Preview mode

<template>
  <VuePageEditor
    :editor-type="2"
    :page-info="config"
  />
</template>

<script setup>
import { ref } from 'vue';
import VuePageEditor from 'vue-page-editor';

// Configuration data created through the editor
const config = ref({});

const options = {
  // baseURL: 'http://xx.xxx.xx.xxx', // Internal interface request address IP or Domain
  tools: 'back preview save', // Available toolbar
  customStyle: {
    // Custom style
  }
};
</script>

vue-page-editor Attributes

NameDescriptionTypeAccepted ValuesDefault
editor-typeEditor typenumber1 / 21
optionsconfiguration options, see the following tableobject
page-infoConfiguration data created through the editorobject
page-idTemplate ID obtained through the qmcoder backendstring

vue-page-editor Events

NameDescriptionParameters
savetriggers when the user clicks saveconfig
previewtriggers when the user clicks previewconfig
backtriggers when the user clicks back-

vue-page-editor Methods

MethodDescriptionParameters
--

vue-page-editor Slots

NameDescription
--

options

AttributeDescriptionTypeAccepted ValuesDefault
baseURLInternal interface request address IP or Domainstringip / domainhttp://localhost:3002/
toolsThe editor toolbar includes save, preview, and backstringback preview save
customStyleCustom Styleobject
0.1.38

1 year ago

0.1.39

1 year ago

0.1.37

1 year ago

0.1.36

1 year ago

0.1.32

1 year ago

0.1.33

1 year ago

0.1.34

1 year ago

0.1.35

1 year ago

0.1.31

1 year ago

0.1.30

1 year ago

0.1.27

1 year ago

0.1.28

1 year ago

0.1.29

1 year ago

0.1.23

1 year ago

0.1.24

1 year ago

0.1.25

1 year ago

0.1.26

1 year ago

0.1.20

1 year ago

0.1.21

1 year ago

0.1.22

1 year ago

0.1.17

1 year ago

0.1.18

1 year ago

0.1.14

1 year ago

0.1.15

1 year ago

0.1.16

1 year ago

0.1.13

1 year ago

0.1.10

1 year ago

0.1.11

1 year ago

0.1.12

1 year ago

0.1.8

1 year ago

0.1.9

1 year ago

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.7

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

2.2.1

3 years ago

2.0.3

3 years ago

2.2.0

3 years ago

2.0.2

3 years ago

2.2.3

3 years ago

2.0.5

3 years ago

2.2.2

3 years ago

2.0.4

3 years ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.9

3 years ago

2.0.8

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

2.1.9

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.6

3 years ago

2.1.5

3 years ago

2.1.8

3 years ago

2.1.7

3 years ago

2.1.0

3 years ago

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

4 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.9

3 years ago

1.2.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.0.9

4 years ago

1.1.7

4 years ago

1.0.8

4 years ago

1.1.6

4 years ago

1.0.7

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

0.0.0

4 years ago