innologica/yii2-vue

Vue.JS 2 与一些 yii2 辅助工具和基础组件的集成。

这个包的官方仓库似乎已经不存在,因此该包已被冻结。

安装: 236

依赖者: 0

建议者: 0

安全: 0

类型:yii2-extension

dev-master 2017-10-08 12:58 UTC

This package is auto-updated.

Last update: 2020-03-13 00:55:09 UTC


README

Vue.JS 与一些 yii2 辅助工具和基础组件的集成。

安装

安装此扩展的首选方式是通过 composer

运行以下命令之一

php composer.phar require --prefer-dist innologica/yii2-vue "*"

或者将以下内容添加到你的 composer.json 文件的 require 部分。

"innologica/yii2-vue": "*"

用法

扩展安装完成后,只需在代码中使用即可

<?= \insight\vue\VueModal::widget(); ?>

这将包括模态组件并在 Vue 中注册它。所以你可以在 Vue 应用程序的任何地方使用 <modal-dialog>.....</modal-dialog>。每个组件都有特定的属性,这里都有文档说明

Clockpicker

提供了一个基于 https://weareoutman.github.io/clockpicker/ 的精美时钟来选择时间。


you can use it with or without "v-model", if you use v-model the value is updated in your data object in Vue application