: 发布 1.2.7 版本

This commit is contained in:
就眠儀式 2022-07-07 14:54:45 +08:00
parent 7ad08fde58
commit f869b40b74
10 changed files with 37 additions and 35 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@layui/layui-vue", "name": "@layui/layui-vue",
"version": "1.2.7-alpha.1", "version": "1.2.7",
"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",
@ -34,7 +34,7 @@
}, },
"dependencies": { "dependencies": {
"@layui/icons-vue": "^1.0.9", "@layui/icons-vue": "^1.0.9",
"@layui/layer-vue": "^1.4.0", "@layui/layer-vue": "^1.4.1",
"@vueuse/core": "^8.7.3", "@vueuse/core": "^8.7.3",
"async-validator": "^4.1.1", "async-validator": "^4.1.1",
"cropperjs": "^1.5.12", "cropperjs": "^1.5.12",

View File

@ -17,8 +17,6 @@
</template> </template>
<script> <script>
import { layer } from "@layui/layer-vue"
export default { export default {
setup() { setup() {
@ -40,8 +38,6 @@ export default {
</template> </template>
<script> <script>
import { ref } from "vue"
export default { export default {
setup() { setup() {
@ -89,7 +85,7 @@ export default {
</template> </template>
<script> <script>
import { ref,reactive } from "vue" import { reactive } from "vue"
export default { export default {
setup() { setup() {

View File

@ -13,7 +13,7 @@
::: demo ::: demo
<template> <template>
<lay-button @click="signleImg">图片查看</lay-button> <lay-button type="primary" @click="signleImg">图片查看</lay-button>
</template> </template>
<script> <script>
@ -32,7 +32,7 @@ const signleImg = function() {
::: demo ::: demo
<template> <template>
<lay-button @click="signleImg2">图片标题</lay-button> <lay-button type="primary" @click="signleImg2">图片标题</lay-button>
</template> </template>
<script> <script>
@ -53,7 +53,7 @@ const signleImg2 = function() {
::: demo ::: demo
<template> <template>
<lay-button @click="groupImg">图片分组</lay-button> <lay-button type="primary" @click="groupImg">图片分组</lay-button>
</template> </template>
<script> <script>

View File

@ -14,11 +14,19 @@
<ul> <ul>
<a name="1-2-7"></a> <a name="1-2-7"></a>
<li> <li>
<h3>1.2.7 <span class="layui-badge-rim">2022-07-04</span></h3> <h3>1.2.7 <span class="layui-badge-rim">2022-07-07</span></h3>
<ul> <ul>
<li>[新增] layer 组件 photos 方法, 支持相册层。 by @SmallWai</li>
<li>[新增] layer 组件 notifiy 方法, 支持消息通知。by @SmallWai</li>
<li>[新增] table 组件 columns 配置 fixed 属性, 支持列固定。by @Jmysy</li>
<li>[新增] dropdown-menu-item 新增 disabled 属性。by @starsatdawn</li> <li>[新增] dropdown-menu-item 新增 disabled 属性。by @starsatdawn</li>
<li>[修复] table默认加载时有横向滚动条header 的滚动条占位无法显示 by @dingyongya</li> <li>[新增] table 组件 skin 属性, 用于 table 风格切换, 可选参数为 row line nob。by @Jmysy</li>
<li>[优化] carousel首次加载时不应存在动画效果而是应立即显示默认的item by @SmallWai</li> <li>[修复] table 组件 treetable 默认, 自定义插槽 data 数据不正确。by @Jmysy</li>
<li>[修复] table 默认加载时有横向滚动条header 的滚动条占位无法显示。 by @dingyongya</li>
<li>[修复] table 组件 max-height 下 sm 尺寸 th 不生效。by @Jmysy</li>
<li>[优化] carousel 首次加载时不应存在动画效果而是应立即显示默认的item。 by @SmallWai</li>
<li>[优化] dropdown 组件无法在 overflow: scroll 使用的问题。by @starsatdawn</li>
<li>[升级] layer-vue 1.4.1 版本。</li>
</ul> </ul>
</li> </li>
</ul> </ul>

View File

@ -125,7 +125,7 @@
</lay-dropdown> </lay-dropdown>
</li> </li>
<li class="layui-nav-item"> <li class="layui-nav-item">
<a href="https://gitee.com/layui/layui-vue"> Gitee </a> <a href="http://layer.layui-vue.com/zh-CN/demo" target="_blank">layer</a>
</li> </li>
<li class="layui-nav-item"> <li class="layui-nav-item">
<a href="javascript:void(0)"> <a href="javascript:void(0)">
@ -145,6 +145,9 @@
> >
</a> </a>
</li> </li>
<li class="layui-nav-item">
<a href="https://gitee.com/layui/layui-vue" target="_blank"> Gitee </a>
</li>
<li class="layui-nav-item"> <li class="layui-nav-item">
<a href="javascript:void(0)"> <a href="javascript:void(0)">
<lay-switch <lay-switch

View File

@ -1,6 +1,6 @@
{ {
"name": "@layui/layer-doc", "name": "@layui/layer-doc",
"version": "1.3.18", "version": "1.4.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

@ -3,18 +3,11 @@
<div class="markdown-body light-scheme"> <div class="markdown-body light-scheme">
<div class="alone-header"> <div class="alone-header">
<img class="alone-logo" src="../assets/logo.png" /> <img class="alone-logo" src="../assets/logo.png" />
<a <a class="version"
style="
position: absolute;
right: 16%;
line-height: 60px;
color: white;
font-size: 15px;
"
>{{ version }}</a >{{ version }}</a
> >
<a <a
href="https://gitee.com/layui-vue/layer-vue" href="https://gitee.com/layui/layui-vue"
style="position: absolute; right: 10%; line-height: 75px" style="position: absolute; right: 10%; line-height: 75px"
> >
<svg width="1.7em" height="1.7em" viewBox="0 0 24 24"> <svg width="1.7em" height="1.7em" viewBox="0 0 24 24">
@ -95,6 +88,14 @@ body {
background: #393d49; background: #393d49;
} }
.version {
position: absolute;
right: 16%;
line-height: 60px;
color: white;
font-size: 15px;
}
.alone-banner img { .alone-banner img {
width: 100px; width: 100px;
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "@layui/layer-vue", "name": "@layui/layer-vue",
"version": "1.4.0", "version": "1.4.1",
"description": "a component library for Vue 3 base on layui-vue", "description": "a component library for Vue 3 base on layui-vue",
"homepage": "http://www.layui-vue.com", "homepage": "http://www.layui-vue.com",
"module": "lib/layer-vue.es.js", "module": "lib/layer-vue.es.js",

View File

@ -370,9 +370,7 @@ export function removeNotifiyFromQueen(layerId: string | undefined) {
// 间隙 // 间隙
let transOffsetTop = 15; let transOffsetTop = 15;
// @ts-ignore 删除项的高度 // @ts-ignore 删除项的高度
let offsetHeight = let offsetHeight = document.getElementById(layerId)?.firstElementChild?.firstElementChild?.offsetHeight;
document.getElementById(layerId)?.firstElementChild?.firstElementChild
?.offsetHeight;
// @ts-ignore // @ts-ignore
window.NotifiyQueen = window.NotifiyQueen || []; window.NotifiyQueen = window.NotifiyQueen || [];
// @ts-ignore // @ts-ignore
@ -392,14 +390,10 @@ export function removeNotifiyFromQueen(layerId: string | undefined) {
?.firstElementChild; ?.firstElementChild;
if (offsetType === "rt" || offsetType === "lt") { if (offsetType === "rt" || offsetType === "lt") {
// @ts-ignore // @ts-ignore
dom.style["top"] = dom.style["top"] = parseFloat(dom.style["top"]) - transOffsetTop - offsetHeight + "px";
parseFloat(dom.style["top"]) - transOffsetTop - offsetHeight + "px";
} else { } else {
// @ts-ignore // @ts-ignore
let bottom = let bottom = parseFloat(dom.style["top"].split(" - ")[1]) - transOffsetTop - offsetHeight;
parseFloat(dom.style["top"].split(" - ")[1]) -
transOffsetTop -
offsetHeight;
// @ts-ignore // @ts-ignore
dom.style["top"] = "calc(100vh - " + bottom + "px)"; dom.style["top"] = "calc(100vh - " + bottom + "px)";
} }

View File

@ -72,7 +72,7 @@ importers:
package/component: package/component:
specifiers: specifiers:
'@layui/icons-vue': ^1.0.9 '@layui/icons-vue': ^1.0.9
'@layui/layer-vue': ^1.4.0 '@layui/layer-vue': ^1.4.1
'@umijs/ssr-darkreader': ^4.9.45 '@umijs/ssr-darkreader': ^4.9.45
'@vueuse/core': ^8.7.3 '@vueuse/core': ^8.7.3
async-validator: ^4.1.1 async-validator: ^4.1.1