chore: 发布 1.0.1
This commit is contained in:
parent
ae75cffa9b
commit
7bae29ed19
@ -9,6 +9,7 @@
|
||||
"build:component": "pnpm -C ./package/component build",
|
||||
"build:icons": "pnpm -C ./package/icons build",
|
||||
"build:layer": "pnpm -C ./package/layer build",
|
||||
"publish:component": "pnpm -C ./package/component publish",
|
||||
"generate:icons": "pnpm -C ./package/icons generate",
|
||||
"lint:eslint": "eslint 'package/**/*.{vue,ts,tsx}' --fix",
|
||||
"lint:prettier": "prettier --write \"package/**/*.{vue,ts}\"",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@layui/layui-vue",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"author": "就眠儀式",
|
||||
"license": "MIT",
|
||||
"description": "a component library for Vue 3 base on layui-vue",
|
||||
|
@ -1,8 +1,6 @@
|
||||
<template>
|
||||
<template v-if="enable">
|
||||
<LayCollapseTransition v-if="type === 'collapse'"
|
||||
><slot></slot
|
||||
></LayCollapseTransition>
|
||||
<LayCollapseTransition v-if="type === 'collapse'"><slot></slot></LayCollapseTransition>
|
||||
<LayFadeTransition v-if="type === 'fade'"><slot></slot></LayFadeTransition>
|
||||
</template>
|
||||
<template v-else>
|
||||
|
@ -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 属性
|
||||
:::
|
||||
|
||||
|
@ -14,11 +14,18 @@
|
||||
<ul>
|
||||
<a name="1-0-1"> </a>
|
||||
<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>
|
||||
<li>[新增] select 组件 search 事件, 搜索回调。</li>
|
||||
<li>[新增] select 组件 keyword 属性, 提供关键词检索。</li>
|
||||
<li>[新增] upload 组件 cut cutOptions 属性, 支持上传裁剪。</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>[修复] input 组件 readonly 属性不生效。</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -233,7 +233,7 @@
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-nav-item">
|
||||
<a href="javascript:void(0)"> 1.0.0 </a>
|
||||
<a href="javascript:void(0)"> {{ version }} </a>
|
||||
</li>
|
||||
</ul>
|
||||
</lay-header>
|
||||
@ -242,13 +242,14 @@
|
||||
</lay-config-provider>
|
||||
</template>
|
||||
<script>
|
||||
import { ref, watch, provide } from "vue";
|
||||
import { provide, ref, watch } from "vue";
|
||||
import { useRouter, useRoute } from "vue-router";
|
||||
import menu from "../view/utils/menus";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import zh_CN from "../language/zh_CN.ts";
|
||||
import en_US from "../language/en_US.ts";
|
||||
import { useAppStore } from "../store/app";
|
||||
import config from '../../../component/package.json';
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
@ -297,10 +298,15 @@ export default {
|
||||
locale.value = lang;
|
||||
};
|
||||
|
||||
const version = config.version;
|
||||
|
||||
provide("version", version);
|
||||
|
||||
return {
|
||||
t,
|
||||
menus,
|
||||
locale,
|
||||
version,
|
||||
locales,
|
||||
appStore,
|
||||
currentPath,
|
||||
|
@ -27,7 +27,7 @@
|
||||
<div class="site-version">
|
||||
<span
|
||||
>{{ t("home.version") }}:<cite class="site-showv">
|
||||
1.0.0
|
||||
{{ version }}
|
||||
</cite></span
|
||||
>
|
||||
<span
|
||||
@ -111,6 +111,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { inject } from 'vue';
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { useAppStore } from "../store/app";
|
||||
|
||||
@ -128,8 +129,11 @@ export default {
|
||||
}
|
||||
};
|
||||
|
||||
const version = inject("version");
|
||||
|
||||
return {
|
||||
t,
|
||||
version,
|
||||
appStore,
|
||||
changeTheme,
|
||||
};
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div
|
||||
style="margin-top: 60px; height: 100%; width: 80%"
|
||||
style="margin-top: 60px; width: 80%"
|
||||
class="layui-container"
|
||||
>
|
||||
<blockquote class="layui-quote layui-text" style="margin: 30px 0">
|
||||
@ -61,6 +61,10 @@
|
||||
</div>
|
||||
</fieldset>
|
||||
</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>
|
||||
|
||||
<style>
|
||||
|
Loading…
Reference in New Issue
Block a user