init
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export declare type CascaderSize = "lg" | "md" | "sm" | "xs";
|
||||
@@ -0,0 +1,3 @@
|
||||
import { ValidateMessages } from "async-validator";
|
||||
declare const _default: ValidateMessages;
|
||||
export default _default;
|
||||
@@ -0,0 +1,16 @@
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: "SpeakerIcon",
|
||||
};
|
||||
</script>
|
||||
<script setup lang="ts">
|
||||
import LayIcon from "../component/icon/index";
|
||||
|
||||
const props = defineProps<{
|
||||
color?: string;
|
||||
size?: string;
|
||||
}>();
|
||||
</script>
|
||||
<template>
|
||||
<lay-icon :color="props.color" :size="props.size" type="layui-icon-speaker" />
|
||||
</template>
|
||||
@@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
module.exports = {
|
||||
types: [
|
||||
{ value: "✨", name: "特性: 一个新的特性" },
|
||||
{ value: "🐛", name: "修复: 修复一个Bug" },
|
||||
{ value: "📝", name: "文档: 变更的只有文档" },
|
||||
{ value: "💄", name: "格式: 空格, 分号等格式修复" },
|
||||
{ value: "♻️", name: "重构: 代码重构,注意和特性、修复区分开" },
|
||||
{ value: "🌀", name: "样式: 样式的调整" },
|
||||
{ value: "⚡️", name: "性能: 提升性能" },
|
||||
{ value: "✅", name: "测试: 添加一个测试" },
|
||||
{ value: "🔧", name: "工具: 开发工具变动(构建、脚手架工具等)" },
|
||||
{ value: "⏪", name: "回滚: 代码回退" },
|
||||
{ value: "⬆️", name: "升级: 依赖升级" },
|
||||
{ value: "⬇️", name: "降级: 依赖降级" },
|
||||
],
|
||||
scopes: [
|
||||
{ name: "component" },
|
||||
],
|
||||
messages: {
|
||||
type: "选择一种你的提交类型:",
|
||||
scope: "选择一个scope (可选):",
|
||||
customScope: "Denote the SCOPE of this change:",
|
||||
subject: "短说明:\n",
|
||||
body: '长说明,使用"|"换行(可选):\n',
|
||||
breaking: "非兼容性说明 (可选):\n",
|
||||
footer: "关联关闭的issue,例如:#31, #34(可选):\n",
|
||||
confirmCommit: "确定提交说明?",
|
||||
},
|
||||
allowCustomScopes: true,
|
||||
allowBreakingChanges: ["特性", "修复"],
|
||||
subjectLimit: 100,
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
x<01><><EFBFBD>
|
||||
<EFBFBD>0E]<5D><15>{[<5B>
|
||||
<EFBFBD>@<40>$<24><>MI<>C[<5B>7<7F>F*5t<19><>3<EFBFBD>KI<>><3E>W<EFBFBD>UR[<5B><>iF0<46>A<EFBFBD><05>n<EFBFBD>V&9<><39><EFBFBD><EFBFBD>OD6<>A<EFBFBD>]c<>Z<>~<7E><>
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,97 @@
|
||||
## Introduction
|
||||
|
||||
<p>
|
||||
<a href="https://www.npmjs.com/package/@layui/layer-vue"><img src="https://img.shields.io/npm/v/@layui/layer-vue.svg?sanitize=true"></a>
|
||||
<a href="https://www.npmjs.com/package/@layui/layer-vue"><img src="https://img.shields.io/npm/l/@layui/layer-vue.svg?sanitize=true"></a>
|
||||
<a href="https://travis-ci.org/sentsin/layui"><img src="https://img.shields.io/travis/sentsin/layui/master.svg"></a>
|
||||
<a href="https://coveralls.io/r/sentsin/layui?branch=master"><img src="https://img.shields.io/coveralls/sentsin/layui/master.svg"></a>
|
||||
</p>
|
||||
|
||||
**[🔶 Explore the docs »](http://layer.layui-vue.com)** **[Join us](https://jq.qq.com/?_wv=1027&k=ffiUQgnE)**
|
||||
|
||||
Layer vue is a web elastic layer component.
|
||||
|
||||
## Get Started
|
||||
|
||||
Use npm to install.
|
||||
|
||||
```bash
|
||||
npm i @layui/layer-vue
|
||||
```
|
||||
|
||||
Before using, you need to mount layui Vue to Vue and introduce index.css style file.
|
||||
|
||||
```
|
||||
import App from './App';
|
||||
import { createApp } from 'vue';
|
||||
import layer from '@layui/layer-vue';
|
||||
import '@layui/layer-vue/lib/index.css';
|
||||
|
||||
const app = createApp(App);
|
||||
|
||||
app.use(layer).mount('#app');
|
||||
```
|
||||
|
||||
We support functional invocation:
|
||||
|
||||
```
|
||||
<template>
|
||||
<button type="button" @click="openSuccess">提示消息</button>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from "vue";
|
||||
import { layer } from "@layui/layer-vue";
|
||||
|
||||
const openSuccess = function () {
|
||||
layer.msg("成功消息", {icon:1, time:1000});
|
||||
};
|
||||
</script>
|
||||
```
|
||||
Componentized calls are also supported:
|
||||
|
||||
```
|
||||
<template>
|
||||
<button @click="changeVisible">显示/隐藏</button>
|
||||
<lay-layer v-model="visible">
|
||||
content
|
||||
</lay-layer>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from "vue";
|
||||
|
||||
const visible = ref(false);
|
||||
|
||||
const changeVisible = () => {
|
||||
visible.value = !visible.value;
|
||||
}
|
||||
</script>
|
||||
```
|
||||
|
||||
## Open Source Licence
|
||||
|
||||
layui vue is licensed under the [MIT license](https://opensource.org/licenses/MIT).
|
||||
|
||||
```
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright 2021 就眠儀式
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
```
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user