quantum-dragons/image-map-field 问题修复 & 功能扩展

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

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

quantum-dragons/image-map-field

Composer 安装命令:

composer require quantum-dragons/image-map-field

包简介

README 文档

README

Introduction

This component is for drawing image map areas/region/hotspot overlays on top of an image. This is to replicate HTML image map <map> and <area> so we use the same terms for this module.

Getting Started

Add build artifacts (*.js and *.scss) to project's public folder by running the following command in the project's root folder.

    $> composer vendor-expose

Add image map field to a page and associate it with an image field.

    <?php
    use ImageMapField\Forms\ImageMapField;
    use ImageMapField\Traits\ProcessMapData;
    
    class TestPage {

        use ProcessMapData;

        private static $db = [
            'ProcessMapData' => 'Text',
        ];

        private static $has_one = [
            'ProcessMapImage' => Image::class,
        ];

        public function getCMSFields()
        {
            $fields = parent::getCMSFields();
            $fields->addFieldToTab(
                'Root.Main',
                ImageMapField::create('ProcessMapData', 'ProcessMapData')
                    ->setImage($this->ProcessMapImage()),
            );
        }

        ...
    }
    ...

    $ImageMapView

    ...

Dependency

- Npm / yarn
- Vue.js

Front-end tooling

To build in dev mode, run the following command in module root:

$> npm run dev

To build in prod mode, run the following command in module root:

$> npm run prod

For more details look into package.json file.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: Vue

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2018-09-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固