定制 deadsimple/vuelibrary 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

deadsimple/vuelibrary

最新稳定版本:1.2.0

Composer 安装命令:

composer require deadsimple/vuelibrary

包简介

A deadsimple module to use VueJS components in your Magento2 webshops

README 文档

README

Latest Stable Version Total Downloads License

Deadsimple VueJS Magento2 Composer Library

This package allows you to use VueJs together with requirejs in your Magento2 setup straight out of the box

Installation

Use composer to install the module: composer require deadsimple/vuelibrary

Development mode

This module loads VueJS in minified production mode by default but is served with a developer version too, if you need VueJS in development mode change your requirejs-config.js to:

var config = {
	paths: {
		Vue: 'Deadsimple_VueLibrary/js/lib/vue',
		vue: 'Deadsimple_VueLibrary/js/lib/require-vuejs',
	},
	shim: {
		Vue: {
			exports: 'Vue'
		}
	}
};

Usage

Create a main js file to load through requirejs in this main.js file define Vue (with a capital V) and use vue (see the non capital v) to load your created vue components in this example Searchinput.vue. From this point on you can initialize vue the way your used to with the new Vue() initializer, please make sure you have a container available to run your VueJS code in #essearch in this example;

define([
  'Vue',
  'vue!components/SearchInput.vue'
], function (Vue) {
  'use strict';
  
   new Vue({
      el: '#essearch',
   });
})

Version

This library loads: Vue.js v2.6.14

TODO

  • Create easier switch between production and development version of VueJS
  • Add to library bundling if available

统计信息

  • 总下载量: 5.24k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-12-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固