(all): 发布 1.2.2

This commit is contained in:
就眠儀式 2022-06-26 15:51:50 +08:00
parent 0a4dc242f6
commit fcb203c3b9
3 changed files with 28 additions and 11 deletions

View File

@ -11,10 +11,28 @@
<template> <template>
<lay-timeline> <lay-timeline>
<lay-timeline-item title="1.2.x"> <lay-timeline-item title="1.2.x">
<ul> <ul>
<a name="1-2-0"></a> <a name="1-2-2"></a>
<li> <li>
<h3>1.2.1 <span class="layui-badge-rim">2022-06-21</span></h3> <h3>1.2.2 <span class="layui-badge-rim">2022-06-26</span></h3>
<ul>
<li>[新增] tab 组件 activeBarTransition 属性, 启用 activeBar 过渡动画。 </li>
<li>[新增] cascader 组件 onlyLastLevel 属性 控制 displayValue 回显数据层级。</li>
<li>[修复] cascader 组件 children 不能为空的问题。</li>
<li>[优化] icon-picker 组件 lay-input 引用使用类型错误</li>
<li>[优化] row 与 col 组件的所有属性同时兼容 number 与 string 类型。</li>
<li>[优化] table 组件 childrenColumnName 属性为非必填。</li>
<li>[优化] notice-bar 组件 color 与 background 属性的类型警告。</li>
<li>[优化] upload 组件 cutOptions 属性非必填, 在 cut 为 false 时。</li>
<li>[优化] radio 组件 name 属性非必填, 在一些应用场景下 name 没有存在的必要。</li>
<li>[优化] checkbox 组件 isIndeterminate 属性类型非必填。</li>
</ul>
</li>
</ul>
<ul>
<a name="1-2-1"></a>
<li>
<h3>1.2.1 <span class="layui-badge-rim">2022-06-23</span></h3>
<ul> <ul>
<li>[新增] dropdown 组件 placement 属性, 设置下拉面板位置。</li> <li>[新增] dropdown 组件 placement 属性, 设置下拉面板位置。</li>
<li>[新增] dropdown 组件 autoFitPosition 属性, 超出浏览器边界自动调整下拉面板位置, 默认为 true。</li> <li>[新增] dropdown 组件 autoFitPosition 属性, 超出浏览器边界自动调整下拉面板位置, 默认为 true。</li>

View File

@ -44,7 +44,6 @@ import config from "../../../layer/package.json";
const version = config.version; const version = config.version;
</script> </script>
<style> <style>
body { body {
margin: 0px; margin: 0px;

View File

@ -18,7 +18,7 @@
class="layui-layer-imgbar" class="layui-layer-imgbar"
style="display: block" style="display: block"
v-if="imgList.length > 1 || imgList[index].alt" v-if="imgList.length > 1 || imgList[index].alt"
:style="{opacity:showLayerImgBar?1:0}" :style="{ opacity: showLayerImgBar ? 1 : 0 }"
> >
<span class="layui-layer-imgtit"> <span class="layui-layer-imgtit">
<span v-if="imgList[index].alt">{{ imgList[index].alt }}</span> <span v-if="imgList[index].alt">{{ imgList[index].alt }}</span>
@ -64,10 +64,10 @@ const changeIndex = (step: number) => {
index.value = next; index.value = next;
}; };
const showLayerImgBar=ref(false) const showLayerImgBar = ref(false);
onMounted(()=>{ onMounted(() => {
nextTick(()=>{ nextTick(() => {
showLayerImgBar.value=true showLayerImgBar.value = true;
}) });
}) });
</script> </script>