✨: 发布 1.2.7 版本
This commit is contained in:
		
							parent
							
								
									7ad08fde58
								
							
						
					
					
						commit
						f869b40b74
					
				@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "@layui/layui-vue",
 | 
			
		||||
  "version": "1.2.7-alpha.1",
 | 
			
		||||
  "version": "1.2.7",
 | 
			
		||||
  "author": "就眠儀式",
 | 
			
		||||
  "license": "MIT",
 | 
			
		||||
  "description": "a component library for Vue 3 base on layui-vue",
 | 
			
		||||
@ -34,7 +34,7 @@
 | 
			
		||||
  },
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "@layui/icons-vue": "^1.0.9",
 | 
			
		||||
    "@layui/layer-vue": "^1.4.0",
 | 
			
		||||
    "@layui/layer-vue": "^1.4.1",
 | 
			
		||||
    "@vueuse/core": "^8.7.3",
 | 
			
		||||
    "async-validator": "^4.1.1",
 | 
			
		||||
    "cropperjs": "^1.5.12",
 | 
			
		||||
 | 
			
		||||
@ -17,8 +17,6 @@
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
import { layer } from "@layui/layer-vue"
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  setup() {
 | 
			
		||||
 | 
			
		||||
@ -40,8 +38,6 @@ export default {
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
import { ref } from "vue"
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  setup() {
 | 
			
		||||
 | 
			
		||||
@ -89,7 +85,7 @@ export default {
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
import { ref,reactive } from "vue"
 | 
			
		||||
import { reactive } from "vue"
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  setup() {
 | 
			
		||||
 | 
			
		||||
@ -13,7 +13,7 @@
 | 
			
		||||
::: demo
 | 
			
		||||
 | 
			
		||||
<template>
 | 
			
		||||
   <lay-button @click="signleImg">图片查看</lay-button>
 | 
			
		||||
   <lay-button type="primary" @click="signleImg">图片查看</lay-button>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
@ -32,7 +32,7 @@ const signleImg = function() {
 | 
			
		||||
::: demo
 | 
			
		||||
 | 
			
		||||
<template>
 | 
			
		||||
   <lay-button @click="signleImg2">图片标题</lay-button>
 | 
			
		||||
   <lay-button type="primary" @click="signleImg2">图片标题</lay-button>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
@ -53,7 +53,7 @@ const signleImg2 = function() {
 | 
			
		||||
::: demo
 | 
			
		||||
 | 
			
		||||
<template>
 | 
			
		||||
   <lay-button @click="groupImg">图片分组</lay-button>
 | 
			
		||||
   <lay-button type="primary" @click="groupImg">图片分组</lay-button>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
 | 
			
		||||
@ -14,11 +14,19 @@
 | 
			
		||||
    <ul> 
 | 
			
		||||
      <a name="1-2-7"></a> 
 | 
			
		||||
      <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>
 | 
			
		||||
          <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>[修复] table默认加载时有横向滚动条,header 的滚动条占位无法显示 by @dingyongya</li>
 | 
			
		||||
          <li>[优化] carousel首次加载时不应存在动画效果,而是应立即显示默认的item by @SmallWai</li>
 | 
			
		||||
          <li>[新增] table 组件 skin 属性, 用于 table 风格切换, 可选参数为 row line nob。by @Jmysy</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>
 | 
			
		||||
      </li>
 | 
			
		||||
    </ul>
 | 
			
		||||
 | 
			
		||||
@ -125,7 +125,7 @@
 | 
			
		||||
            </lay-dropdown>
 | 
			
		||||
          </li>
 | 
			
		||||
          <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 class="layui-nav-item">
 | 
			
		||||
            <a href="javascript:void(0)">
 | 
			
		||||
@ -145,6 +145,9 @@
 | 
			
		||||
              >
 | 
			
		||||
            </a>
 | 
			
		||||
          </li>
 | 
			
		||||
          <li class="layui-nav-item">
 | 
			
		||||
            <a href="https://gitee.com/layui/layui-vue" target="_blank"> Gitee </a>
 | 
			
		||||
          </li>
 | 
			
		||||
          <li class="layui-nav-item">
 | 
			
		||||
            <a href="javascript:void(0)">
 | 
			
		||||
              <lay-switch
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "@layui/layer-doc",
 | 
			
		||||
  "version": "1.3.18",
 | 
			
		||||
  "version": "1.4.1",
 | 
			
		||||
  "author": "就眠儀式",
 | 
			
		||||
  "license": "MIT",
 | 
			
		||||
  "description": "a component library for Vue 3 base on layui-vue",
 | 
			
		||||
 | 
			
		||||
@ -3,18 +3,11 @@
 | 
			
		||||
    <div class="markdown-body light-scheme">
 | 
			
		||||
      <div class="alone-header">
 | 
			
		||||
        <img class="alone-logo" src="../assets/logo.png" />
 | 
			
		||||
        <a
 | 
			
		||||
          style="
 | 
			
		||||
            position: absolute;
 | 
			
		||||
            right: 16%;
 | 
			
		||||
            line-height: 60px;
 | 
			
		||||
            color: white;
 | 
			
		||||
            font-size: 15px;
 | 
			
		||||
          "
 | 
			
		||||
        <a class="version"
 | 
			
		||||
          >{{ version }}</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"
 | 
			
		||||
        >
 | 
			
		||||
          <svg width="1.7em" height="1.7em" viewBox="0 0 24 24">
 | 
			
		||||
@ -95,6 +88,14 @@ body {
 | 
			
		||||
  background: #393d49;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.version {
 | 
			
		||||
  position: absolute;
 | 
			
		||||
  right: 16%;
 | 
			
		||||
  line-height: 60px;
 | 
			
		||||
  color: white;
 | 
			
		||||
  font-size: 15px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.alone-banner img {
 | 
			
		||||
  width: 100px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "@layui/layer-vue",
 | 
			
		||||
  "version": "1.4.0",
 | 
			
		||||
  "version": "1.4.1",
 | 
			
		||||
  "description": "a component library for Vue 3 base on layui-vue",
 | 
			
		||||
  "homepage": "http://www.layui-vue.com",
 | 
			
		||||
  "module": "lib/layer-vue.es.js",
 | 
			
		||||
 | 
			
		||||
@ -370,9 +370,7 @@ export function removeNotifiyFromQueen(layerId: string | undefined) {
 | 
			
		||||
  // 间隙
 | 
			
		||||
  let transOffsetTop = 15;
 | 
			
		||||
  // @ts-ignore 删除项的高度
 | 
			
		||||
  let offsetHeight =
 | 
			
		||||
    document.getElementById(layerId)?.firstElementChild?.firstElementChild
 | 
			
		||||
      ?.offsetHeight;
 | 
			
		||||
  let offsetHeight = document.getElementById(layerId)?.firstElementChild?.firstElementChild?.offsetHeight;
 | 
			
		||||
  // @ts-ignore
 | 
			
		||||
  window.NotifiyQueen = window.NotifiyQueen || [];
 | 
			
		||||
  // @ts-ignore
 | 
			
		||||
@ -392,14 +390,10 @@ export function removeNotifiyFromQueen(layerId: string | undefined) {
 | 
			
		||||
      ?.firstElementChild;
 | 
			
		||||
    if (offsetType === "rt" || offsetType === "lt") {
 | 
			
		||||
      // @ts-ignore
 | 
			
		||||
      dom.style["top"] =
 | 
			
		||||
        parseFloat(dom.style["top"]) - transOffsetTop - offsetHeight + "px";
 | 
			
		||||
      dom.style["top"] = parseFloat(dom.style["top"]) - transOffsetTop - offsetHeight + "px";
 | 
			
		||||
    } else {
 | 
			
		||||
      // @ts-ignore
 | 
			
		||||
      let bottom =
 | 
			
		||||
        parseFloat(dom.style["top"].split(" - ")[1]) -
 | 
			
		||||
        transOffsetTop -
 | 
			
		||||
        offsetHeight;
 | 
			
		||||
      let bottom = parseFloat(dom.style["top"].split(" - ")[1]) - transOffsetTop - offsetHeight;
 | 
			
		||||
      // @ts-ignore
 | 
			
		||||
      dom.style["top"] = "calc(100vh - " + bottom + "px)";
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							@ -72,7 +72,7 @@ importers:
 | 
			
		||||
  package/component:
 | 
			
		||||
    specifiers:
 | 
			
		||||
      '@layui/icons-vue': ^1.0.9
 | 
			
		||||
      '@layui/layer-vue': ^1.4.0
 | 
			
		||||
      '@layui/layer-vue': ^1.4.1
 | 
			
		||||
      '@umijs/ssr-darkreader': ^4.9.45
 | 
			
		||||
      '@vueuse/core': ^8.7.3
 | 
			
		||||
      async-validator: ^4.1.1
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user