承接 jpmurray/gonewiththewind 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

jpmurray/gonewiththewind

Composer 安装命令:

composer require jpmurray/gonewiththewind

包简介

A package containing Tailwind CSS components that plays well with the default Laravel Tailwind UI.

README 文档

README

Packages that provides (what I think is) blade components that plays well with the basic Tailwind UI offered by Laravel (in Breeze, for example).

This was made in an effort to try and learn Tailwind. Not that I want to learn it, mind you, I'd still prefer to be using Bootstrap out of the box! But I'm a prototyper, and it seems I have to take a small time in my schedule so I can go with the wind of what's now offered by default in Laravel.

Components and usage

Cards components

Table

<x-with-wind-cards::table
    model="user"
    :data="$users"
    :show="['name']"
    :actions="['edit']"
/>

Attributes:

  • model asks for the singular model name to generates things like routes (ex: `route('users.index'))
  • data asks for the data to display in table, goes well with an eloquent collection or a paginated collection.
  • show asks what column to show from the data (ex: ['name', 'created_at'])
  • actions defaults to null, but if provided, will add an action column with specified ones. For now, supports ['edit', 'delete']

Forms components

Label

<x-with-wind-forms::label for="name">Name</<x-with-wind-forms::label>

Input

<x-with-wind-forms::input id="name" type="text" name="name" :value="old('name')" required />

Select

<x-with-wind-forms::select id="type" name="type" autocomplete="type" :choices="['Label' => 'value']" chosen="value" />

Attributes:

  • choices asks for an associative array of label => valueto populate the select element
  • chosen asks for what should be selected in the choices, if necessary.

Submit button

<x-with-wind-forms::submit>Save</<x-with-wind-forms::submit>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-01-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固