Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计通过

layui-vue3layui vue3 搜索

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

1,294

周安装

55

GitHub Stars

347

下载量

453
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:layui-vue3(layui vue3 搜索)
来源仓库:https://github.com/teachingai/full-stack-skills
仓库路径:skills/layui-vue3
安装命令:
npx skills add https://github.com/teachingai/full-stack-skills --skill layui-vue3
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/teachingai/full-stack-skills --skill layui-vue3

简介

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。

  • 适合生成或审查 React、Vue、Tailwind、CSS 等相关代码。
  • 使用时结合项目设计系统、路由和构建方式,避免孤立片段。
  • 安装命令:npx skills add https://github.com/teachingai/full-stack-skills --skill layui-vue3。
  • 涉及页面改动时应配合本地预览和构建检查确认效果。

SKILL.md

When to use this skill

Use this skill whenever the user wants to:

  • Install and set up Layui Vue in a Vue 3 project
  • Use Layui Vue components (Button, Table, DatePicker, etc.)
  • Configure Layui Vue (theme, i18n, etc.)
  • Use Layer component for modals and dialogs
  • Implement forms with Layui Vue components
  • Use data tables with sorting and pagination
  • Handle file uploads
  • Create dropdowns and tooltips
  • Use date and time pickers
  • Customize component styles
  • Understand Layui Vue API and methods
  • Troubleshoot Layui Vue issues

How to use this skill

  1. Identify the topic from the user's request and find the corresponding example file in the mapping below
  2. Load the appropriate example file from the examples/ directory
  3. Follow the specific instructions in that example file for syntax, structure, and best practices

Doc mapping (one-to-one with https://www.layui-vue.com/zh-CN/)

Guide (指南):

Components (组件) - examples/components/:

- Layui Vue is built for Vue 3 - Components use Composition API - Supports TypeScript - Examples include both JavaScript and TypeScript versions - Each example file includes key concepts, code examples, and key points

  1. Reference API documentation in the api/ directory when needed:

- api/layer-api.md - Layer API methods - api/component-api.md - Component API reference

  1. Use templates from the templates/ directory:

- templates/installation.md - Installation templates - templates/component-usage.md - Component usage templates

1. Understanding Layui Vue

Layui Vue is a Vue 3 component library that provides a rich set of UI components, following the design philosophy of Layui.

Key Concepts:

  • Vue 3 Support: Built with Vue 3 Composition API
  • Rich Components: Button, Table, DatePicker, Layer, etc.
  • TypeScript: Full TypeScript support
  • Theme Customization: Support for theme customization
  • i18n: Internationalization support

2. Installation

Using npm:

npm install @layui/layui-vue

Using yarn:

yarn add @layui/layui-vue

Using pnpm:

pnpm add @layui/layui-vue

3. Basic Setup

// main.js
import { createApp } from 'vue'
import LayuiVue from '@layui/layui-vue'
import '@layui/layui-vue/lib/index.css'
import App from './App.vue'

const app = createApp(App)
app.use(LayuiVue)
app.mount('#app')

4. Basic Component Usage

<template>
  <lay-button type="primary">Button</lay-button>
</template>

<script setup>
import { LayButton } from '@layui/layui-vue'
</script>

Examples and Templates

This skill includes detailed examples organized to match the official documentation structure. All examples are in the examples/ directory (see mapping above).

To use examples:

  • Identify the topic from the user's request
  • Load the appropriate example file from the mapping above
  • Follow the instructions, syntax, and best practices in that file
  • Adapt the code examples to your specific use case

To use templates:

  • Reference templates in templates/ directory for common scaffolding
  • Adapt templates to your specific needs and coding style

API Reference

Detailed API documentation is available in the api/ directory, organized to match the official Layui Vue API documentation structure:

Layer API (api/layer-api.md)

  • layer.open() - Open modal/dialog
  • layer.close() - Close layer
  • layer.msg() - Show message
  • layer.confirm() - Show confirmation dialog
  • layer.load() - Show loading
  • layer.drawer() - Show drawer

Component API (api/component-api.md)

  • Component props and events
  • Component methods
  • Component slots

To use API reference:

  1. Identify the API you need help with
  2. Load the corresponding API file from the api/ directory
  3. Find the API signature, parameters, return type, and examples
  4. Reference the linked example files for detailed usage patterns
  5. All API files include links to relevant example files in the examples/ directory

Best Practices

  1. Use TypeScript: Take advantage of TypeScript support
  2. Import on demand: Import only needed components
  3. Follow component API: Use props and events correctly
  4. Customize theme: Use theme variables for customization
  5. Handle events: Properly handle component events
  6. Use Layer API: Use Layer API for modals and dialogs

Resources

Keywords

Layui Vue, layui-vue, Vue 3, component library, UI components, Button, Table, DatePicker, Layer, Dropdown, Tooltip, Form, Input, Select, Checkbox, Radio, Switch, Upload, 组件库, 按钮, 表格, 日期选择器, 弹层, 下拉菜单, 提示, 表单, 输入框, 选择器, 复选框, 单选框, 开关, 上传

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.21%
按下载量换算123

Gemini CLI

25.68%
按下载量换算116

OpenCode

18.41%
按下载量换算83

Antigravity

12.92%
按下载量换算59

Codex

8.05%
按下载量换算36

Cursor

3.46%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills