lab404/nova-signature 问题修复 & 功能扩展

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

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

lab404/nova-signature

Composer 安装命令:

composer require lab404/nova-signature

包简介

A Laravel Nova field.

README 文档

README

This Nova field lets you save a signature as a field for your resource.

Behind the scenes WangShayne/vue-signature is used.

screenshot of nova signature

Installation

composer require lab404/nova-signature

Usage

In your nova resource make the field Lab404\NovaSignature\NovaSignature. This field fits perfectly with a TEXT column and can be used both for resources and actions.

public function fields()
{
    return [
        // ...
        NovaSignature::make('Signature'),
        // ...
    ];
}

Configuration

Showed example values are the default ones.

NovaSignature::make('Signature')
    ->color('black') // (string) Any css compatible value: "red", "rgb(0, 0, 0)", ...
    ->bgColor('white') // (string) Same as 'color'
    ->width('100%') // (string) Any css compatible value: "100%", "200px", ...
    ->height('250px') // (string) Same as 'width'
    ->saveOnChanges() // () Save the signature at every change and it will hide the Attach button

Validation

You can use the signature validation rules to check if the signature is valid. We also provide the validSignature method that adds nullable and signature rules.

// With validSignature() 
NovaSignature::make('Signature')
    ->validSignature() // 'nullable' and 'signature' rules

// Your own rules
NovaSignature::make('Signature')
    ->rules('signature', ...) 

Licence

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-08-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固