Skip to content

💻📱适用于pc端后台管理系统手机预览(VueCli3.x+TypeScript)

License

Notifications You must be signed in to change notification settings

aTong9/vue-phone-preview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

680bb26 · Oct 29, 2019

History

18 Commits
Oct 29, 2019
Oct 24, 2019
Oct 29, 2019
Oct 29, 2019
Oct 24, 2019
Oct 22, 2019
Oct 22, 2019
Oct 22, 2019
Oct 24, 2019
Oct 23, 2019
Oct 22, 2019
Oct 29, 2019
Oct 22, 2019
Oct 22, 2019
Oct 29, 2019
Oct 22, 2019
Oct 22, 2019
Oct 22, 2019
Oct 29, 2019

Repository files navigation

vue-phone-preview

适用于pc端后台管理系统手机预览

A VueCli3.x+TypeScript Toolkit for Web.

demo

Demo pictures

Install

$ npm i --save vue-phone-preview
or
$ yarn add vue-phone-preview

Quick Start

import Vue from 'vue'
import VuePhonePreview from 'vue-phone-preview';

Vue.use(VuePhonePreview)
@Component()
// or
import VuePhonePreview from 'vue-phone-preview'

@Component({
  components: {
    VuePhonePreview
  }
})

/**
 * 使用方法 
 * ①、如果使用第一种方法,从其他微信编辑器(135或者word文档等等)
 * 需要先把图片上传至第三方图片服务器,然后获取图片链接复制到文档里
 * 例如:private content = '<img src="http://file.haoxinqing.cn/group1/M00/11/61/Chw4wFwAlz2AX_iqAABOSgaernE854.jpg" style=" max-width: 100%; height: auto;">'
 * ②、就是iframe的形式,导入的是一个m端链接
 */ 
①、<vue-phone-preview :content="content"></vue-phone-preview>
②、<vue-phone-preview :url="`https://mp.haoxinqing.cn`"></vue-phone-preview>

LICENSE

MIT

Copyright (c) 2019-present, YuBin

About

💻📱适用于pc端后台管理系统手机预览(VueCli3.x+TypeScript)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published