chore: 发布 1.0.1

This commit is contained in:
就眠儀式 2022-04-06 03:55:16 +08:00
parent ae75cffa9b
commit 7bae29ed19
8 changed files with 65 additions and 10 deletions

View File

@ -9,6 +9,7 @@
"build:component": "pnpm -C ./package/component build", "build:component": "pnpm -C ./package/component build",
"build:icons": "pnpm -C ./package/icons build", "build:icons": "pnpm -C ./package/icons build",
"build:layer": "pnpm -C ./package/layer build", "build:layer": "pnpm -C ./package/layer build",
"publish:component": "pnpm -C ./package/component publish",
"generate:icons": "pnpm -C ./package/icons generate", "generate:icons": "pnpm -C ./package/icons generate",
"lint:eslint": "eslint 'package/**/*.{vue,ts,tsx}' --fix", "lint:eslint": "eslint 'package/**/*.{vue,ts,tsx}' --fix",
"lint:prettier": "prettier --write \"package/**/*.{vue,ts}\"", "lint:prettier": "prettier --write \"package/**/*.{vue,ts}\"",

View File

@ -1,6 +1,6 @@
{ {
"name": "@layui/layui-vue", "name": "@layui/layui-vue",
"version": "1.0.0", "version": "1.0.1",
"author": "就眠儀式", "author": "就眠儀式",
"license": "MIT", "license": "MIT",
"description": "a component library for Vue 3 base on layui-vue", "description": "a component library for Vue 3 base on layui-vue",

View File

@ -1,8 +1,6 @@
<template> <template>
<template v-if="enable"> <template v-if="enable">
<LayCollapseTransition v-if="type === 'collapse'" <LayCollapseTransition v-if="type === 'collapse'"><slot></slot></LayCollapseTransition>
><slot></slot
></LayCollapseTransition>
<LayFadeTransition v-if="type === 'fade'"><slot></slot></LayFadeTransition> <LayFadeTransition v-if="type === 'fade'"><slot></slot></LayFadeTransition>
</template> </template>
<template v-else> <template v-else>

View File

@ -77,6 +77,41 @@ export default {
::: :::
::: title 滑入滑出
:::
::: demo 使用 `lay-transition` 标签, 为元素提供过渡动画
<template>
<lay-button @click="changeVisible2">开始</lay-button>
<br/>
<br/>
<lay-transition type="slide">
<lay-card title="标题" v-if="visible2">内容</lay-card>
</lay-transition>
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
const visible2 = ref(true);
const changeVisible2 = () => {
visible2.value = !visible2.value;
}
return {
changeVisible2
}
}
}
</script>
:::
::: title Transition 属性 ::: title Transition 属性
::: :::

View File

@ -14,11 +14,18 @@
<ul> <ul>
<a name="1-0-1"> </a> <a name="1-0-1"> </a>
<li> <li>
<h3>1.0.1 <span class="layui-badge-rim">2022-04-03</span></h3> <h3>1.0.1 <span class="layui-badge-rim">2022-04-06</span></h3>
<ul> <ul>
<li>[新增] select 组件 search 事件, 搜索回调。</li>
<li>[新增] select 组件 keyword 属性, 提供关键词检索。</li>
<li>[新增] upload 组件 cut cutOptions 属性, 支持上传裁剪。</li> <li>[新增] upload 组件 cut cutOptions 属性, 支持上传裁剪。</li>
<li>[新增] timeline 组件 direction 属性, 支持垂直与水平布局。</li> <li>[新增] timeline 组件 direction 属性, 支持垂直与水平布局。</li>
<li>[新增] dropdown 组件 open 与 hide 事件,于打开与关闭后的逻辑处理。</li>
<li>[新增] dropdown 组件 disabled 属性, 禁止下拉框展示。</li>
<li>[新增] date-picker 组件 disabled 属性, 禁止修改。</li>
<li>[修复] date-picker 组件右下角实时数据无法联动。</li>
<li>[修复] table 组件 datasource 属性丢失响应。 </li> <li>[修复] table 组件 datasource 属性丢失响应。 </li>
<li>[修复] input 组件 readonly 属性不生效。</li>
</ul> </ul>
</li> </li>
</ul> </ul>

View File

@ -233,7 +233,7 @@
</a> </a>
</li> </li>
<li class="layui-nav-item"> <li class="layui-nav-item">
<a href="javascript:void(0)"> 1.0.0 </a> <a href="javascript:void(0)"> {{ version }} </a>
</li> </li>
</ul> </ul>
</lay-header> </lay-header>
@ -242,13 +242,14 @@
</lay-config-provider> </lay-config-provider>
</template> </template>
<script> <script>
import { ref, watch, provide } from "vue"; import { provide, ref, watch } from "vue";
import { useRouter, useRoute } from "vue-router"; import { useRouter, useRoute } from "vue-router";
import menu from "../view/utils/menus"; import menu from "../view/utils/menus";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
import zh_CN from "../language/zh_CN.ts"; import zh_CN from "../language/zh_CN.ts";
import en_US from "../language/en_US.ts"; import en_US from "../language/en_US.ts";
import { useAppStore } from "../store/app"; import { useAppStore } from "../store/app";
import config from '../../../component/package.json';
export default { export default {
setup() { setup() {
@ -297,10 +298,15 @@ export default {
locale.value = lang; locale.value = lang;
}; };
const version = config.version;
provide("version", version);
return { return {
t, t,
menus, menus,
locale, locale,
version,
locales, locales,
appStore, appStore,
currentPath, currentPath,

View File

@ -27,7 +27,7 @@
<div class="site-version"> <div class="site-version">
<span <span
>{{ t("home.version") }}<cite class="site-showv"> >{{ t("home.version") }}<cite class="site-showv">
1.0.0 {{ version }}
</cite></span </cite></span
> >
<span <span
@ -111,6 +111,7 @@
</template> </template>
<script> <script>
import { inject } from 'vue';
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
import { useAppStore } from "../store/app"; import { useAppStore } from "../store/app";
@ -128,8 +129,11 @@ export default {
} }
}; };
const version = inject("version");
return { return {
t, t,
version,
appStore, appStore,
changeTheme, changeTheme,
}; };

View File

@ -1,6 +1,6 @@
<template> <template>
<div <div
style="margin-top: 60px; height: 100%; width: 80%" style="margin-top: 60px; width: 80%"
class="layui-container" class="layui-container"
> >
<blockquote class="layui-quote layui-text" style="margin: 30px 0"> <blockquote class="layui-quote layui-text" style="margin: 30px 0">
@ -61,6 +61,10 @@
</div> </div>
</fieldset> </fieldset>
</div> </div>
<div class="footer footer-index">
<p>Released under the <a href="/index.html">MIT License</a>.</p>
<p>Copyright © 2021-2022 layui-vue.com</p>
</div>
</template> </template>
<style> <style>