arillo/silverstripe-cms-alpine 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

arillo/silverstripe-cms-alpine

Composer 安装命令:

composer require arillo/silverstripe-cms-alpine

包简介

Makes alpinejs available in silverstripe CMS

README 文档

README

Loads alpinejs into CMS.

To instantiate you alpine components, you need to listen for the alpine:init event like this:

/* global Alpine */

const component = {
  init() {
    console.log('yourComponent.init');
  }
};

if (typeof Alpine !== 'undefined') {
  Alpine.data('yourComponent', component);
}
document.addEventListener('alpine:init', () => {
  Alpine.data('yourComponent', component);
});

Currently only alpinejs@3.12.3_dist_cdn.min.js is available, support for other versions might come in future.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2023-08-08