perf: 发布 0.2.3 版本
This commit is contained in:
parent
45bfa46a4a
commit
b2e6afd7b3
@ -16,10 +16,17 @@
|
|||||||
[新增] layer 弹层 closeBtn 属性, 允许隐藏关闭操作。<br>
|
[新增] layer 弹层 closeBtn 属性, 允许隐藏关闭操作。<br>
|
||||||
[新增] layer 弹层 btnAlign 属性, 允许自定义按钮布局。<br>
|
[新增] layer 弹层 btnAlign 属性, 允许自定义按钮布局。<br>
|
||||||
[新增] layer 弹层 anim 属性, 支持 7 种入场动画。<br>
|
[新增] layer 弹层 anim 属性, 支持 7 种入场动画。<br>
|
||||||
|
[修复] layer 弹层 btn 属性为非必填。<br>
|
||||||
|
[修复] layer 弹层 boolean 类型推断造成的警告。<br>
|
||||||
[修复] mackdown 文档 table 样式对 table 组件的污染。<br>
|
[修复] mackdown 文档 table 样式对 table 组件的污染。<br>
|
||||||
|
[修复] breadcrumb-item 面包屑 title 属性, 未填写造成的警告。<br>
|
||||||
|
[修复] select-option 下拉选择 disabled 属性的类型推断造成的警告。<br>
|
||||||
|
[修复] page 分页 showSkip 属性的类型推断造成的警告。<br>
|
||||||
|
[修复] rate 评分 readonly 属性的类型推断造成的警告。<br>
|
||||||
|
[修复] carousel 轮播 anim arrow indicator 属性为非必传。<br>
|
||||||
|
[优化] carousel 轮播逻辑, 允许循环切换。<br>
|
||||||
[优化] layer 弹层 border 样式。<br>
|
[优化] layer 弹层 border 样式。<br>
|
||||||
[优化] layer 弹层 id 默认生成方式, 使用 Guid 作为编号。<br>
|
[优化] layer 弹层 id 默认生成方式, 使用 Guid 作为编号。<br>
|
||||||
[优化] carousel 轮播逻辑, 允许循环切换。<br>
|
|
||||||
[升级] vue-router 4.0.12 版本。<br>
|
[升级] vue-router 4.0.12 版本。<br>
|
||||||
[升级] vue 3.2.21 版本。<br>
|
[升级] vue 3.2.21 版本。<br>
|
||||||
</lay-timeline-item>
|
</lay-timeline-item>
|
||||||
|
@ -15,10 +15,9 @@ import { defineProps, inject, useSlots } from 'vue'
|
|||||||
|
|
||||||
const slot = useSlots()
|
const slot = useSlots()
|
||||||
|
|
||||||
const props =
|
const props = defineProps<{
|
||||||
defineProps<{
|
title?: string
|
||||||
title: string
|
}>()
|
||||||
}>()
|
|
||||||
|
|
||||||
const separator = inject('separator')
|
const separator = inject('separator')
|
||||||
</script>
|
</script>
|
||||||
|
@ -52,9 +52,9 @@ const props = withDefaults(
|
|||||||
width?: string
|
width?: string
|
||||||
height?: string
|
height?: string
|
||||||
modelValue: string
|
modelValue: string
|
||||||
anim: string
|
anim?: string
|
||||||
arrow: string
|
arrow?: string
|
||||||
indicator: string
|
indicator?: string
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
@ -110,15 +110,15 @@ const props = withDefaults(
|
|||||||
offset?: string[]
|
offset?: string[]
|
||||||
width?: string
|
width?: string
|
||||||
height?: string
|
height?: string
|
||||||
visible?: boolean
|
visible?: boolean | string
|
||||||
maxmin?: boolean
|
maxmin?: boolean | string
|
||||||
btn: Record<string, unknown>[]
|
btn?: Record<string, unknown>[]
|
||||||
move?: boolean
|
move?: boolean | string
|
||||||
type?: number
|
type?: number
|
||||||
content?: string
|
content?: string
|
||||||
shade?: boolean
|
shade?: boolean | string
|
||||||
shadeClose?: boolean
|
shadeClose?: boolean | string
|
||||||
closeBtn?: boolean
|
closeBtn?: boolean | string
|
||||||
btnAlign?: string
|
btnAlign?: string
|
||||||
anim?: number
|
anim?: number
|
||||||
}>(),
|
}>(),
|
||||||
@ -139,6 +139,7 @@ const props = withDefaults(
|
|||||||
closeBtn: true,
|
closeBtn: true,
|
||||||
btnAlign: 'l',
|
btnAlign: 'l',
|
||||||
anim: 0,
|
anim: 0,
|
||||||
|
content: '',
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -62,15 +62,22 @@ const props = withDefaults(
|
|||||||
total: number
|
total: number
|
||||||
limit: number
|
limit: number
|
||||||
theme?: string
|
theme?: string
|
||||||
showPage?: boolean
|
showPage?: boolean | string
|
||||||
showSkip?: boolean
|
showSkip?: boolean | string
|
||||||
showCount?: boolean
|
showCount?: boolean | string
|
||||||
showLimit?: boolean
|
showLimit?: boolean | string
|
||||||
showInput?: boolean
|
showInput?: boolean | string
|
||||||
showRefresh?: boolean
|
showRefresh?: boolean | string
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
limit: 10,
|
limit: 10,
|
||||||
|
theme: 'green',
|
||||||
|
showPage: false,
|
||||||
|
showSkip: false,
|
||||||
|
showCount: false,
|
||||||
|
showLimit: true,
|
||||||
|
showInput: false,
|
||||||
|
showRefresh: false,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -19,20 +19,20 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, defineProps, Ref, ref, watch, withDefaults } from 'vue'
|
import { computed, defineProps, withDefaults } from 'vue'
|
||||||
|
|
||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
length?: number
|
length?: number
|
||||||
modelValue: number
|
modelValue: number
|
||||||
character?: string
|
readonly?: boolean | string
|
||||||
readonly?: boolean
|
|
||||||
theme?: string
|
theme?: string
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
length: 5,
|
length: 5,
|
||||||
modelValue: 0,
|
modelValue: 0,
|
||||||
readonly: false,
|
readonly: false,
|
||||||
|
theme: 'green',
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<dd
|
<dd
|
||||||
:value="value"
|
:value="value"
|
||||||
:class="[selectItem.value === value ? 'layui-this' : '',disabled ? 'layui-disabled':'']"
|
:class="[
|
||||||
|
selectItem.value === value ? 'layui-this' : '',
|
||||||
|
disabled ? 'layui-disabled' : '',
|
||||||
|
]"
|
||||||
@click="selectHandle"
|
@click="selectHandle"
|
||||||
>
|
>
|
||||||
{{ label }}
|
{{ label }}
|
||||||
@ -10,19 +13,24 @@
|
|||||||
|
|
||||||
<script setup name="LaySelectOption" lang="ts">
|
<script setup name="LaySelectOption" lang="ts">
|
||||||
import { SelectItem } from '../type'
|
import { SelectItem } from '../type'
|
||||||
import { defineProps, inject, Ref } from 'vue'
|
import { defineProps, inject, onMounted, Ref } from 'vue'
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = withDefaults(
|
||||||
value?: string
|
defineProps<{
|
||||||
label?: string
|
value: string
|
||||||
disabled?: boolean
|
label: string
|
||||||
}>()
|
disabled?: boolean | string
|
||||||
|
}>(),
|
||||||
|
{
|
||||||
|
disabled: false,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
const selectItem = inject('selectItem') as SelectItem
|
const selectItem = inject('selectItem') as SelectItem
|
||||||
const openState = inject('openState') as Ref<boolean>
|
const openState = inject('openState') as Ref<boolean>
|
||||||
|
|
||||||
const selectHandle = function () {
|
const selectHandle = function () {
|
||||||
if(props.disabled) {
|
if (props.disabled) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
openState.value = false
|
openState.value = false
|
||||||
@ -31,8 +39,10 @@ const selectHandle = function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// init selected
|
// init selected
|
||||||
if (selectItem.value === props.value) {
|
onMounted(() => {
|
||||||
selectItem.value = props.value
|
if (selectItem.value === props.value) {
|
||||||
selectItem.label = props.label
|
selectItem.value = props.value
|
||||||
}
|
selectItem.label = props.label
|
||||||
|
}
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
@ -15,7 +15,7 @@ import { computed, CSSProperties, defineProps } from 'vue'
|
|||||||
|
|
||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
width?: string
|
width?: string | number
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
width: '200',
|
width: '200',
|
||||||
|
Loading…
Reference in New Issue
Block a user