✨(component): 发布 1.6.5 版本
This commit is contained in:
parent
daf5264f35
commit
d7a0ab1832
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@layui/layui-vue",
|
"name": "@layui/layui-vue",
|
||||||
"version": "1.6.4",
|
"version": "1.6.5",
|
||||||
"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.4",
|
"@layui/layer-vue": "^1.4.5",
|
||||||
"@vueuse/core": "^9.2.0",
|
"@vueuse/core": "^9.2.0",
|
||||||
"async-validator": "^4.1.1",
|
"async-validator": "^4.1.1",
|
||||||
"cropperjs": "^1.5.12",
|
"cropperjs": "^1.5.12",
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
:prefix-icon="prefixIcon"
|
:prefix-icon="prefixIcon"
|
||||||
:suffix-icon="suffixIcon"
|
:suffix-icon="suffixIcon"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="(dateValue as string)"
|
v-model="dateValue"
|
||||||
v-if="!range"
|
v-if="!range"
|
||||||
@change="onChange"
|
@change="onChange"
|
||||||
:allow-clear="!disabled && allowClear"
|
:allow-clear="!disabled && allowClear"
|
||||||
|
@ -85,7 +85,7 @@ const getOption = (nodes: VNode[]) => {
|
|||||||
?.map((item: VNode) => {
|
?.map((item: VNode) => {
|
||||||
let component = item.type as Component;
|
let component = item.type as Component;
|
||||||
if (component.name === LaySelectOption.name) {
|
if (component.name === LaySelectOption.name) {
|
||||||
if(item.children) {
|
if (item.children) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
item.props.label = item.children.default()[0].children;
|
item.props.label = item.children.default()[0].children;
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ import {
|
|||||||
WritableComputedRef,
|
WritableComputedRef,
|
||||||
Ref,
|
Ref,
|
||||||
onMounted,
|
onMounted,
|
||||||
useSlots
|
useSlots,
|
||||||
} from "vue";
|
} from "vue";
|
||||||
|
|
||||||
export interface LaySelectOptionProps {
|
export interface LaySelectOptionProps {
|
||||||
@ -30,7 +30,9 @@ const props = withDefaults(defineProps<LaySelectOptionProps>(), {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const openState: Ref<boolean> = inject("openState") as Ref<boolean>;
|
const openState: Ref<boolean> = inject("openState") as Ref<boolean>;
|
||||||
const selectedValue: WritableComputedRef<any> = inject("selectedValue") as WritableComputedRef<any>;
|
const selectedValue: WritableComputedRef<any> = inject(
|
||||||
|
"selectedValue"
|
||||||
|
) as WritableComputedRef<any>;
|
||||||
const searchValue: Ref<string> = inject("searchValue") as Ref<string>;
|
const searchValue: Ref<string> = inject("searchValue") as Ref<string>;
|
||||||
const selectRef: Ref<HTMLElement> = inject("selectRef") as Ref<HTMLElement>;
|
const selectRef: Ref<HTMLElement> = inject("selectRef") as Ref<HTMLElement>;
|
||||||
const multiple: ComputedRef = inject("multiple") as ComputedRef;
|
const multiple: ComputedRef = inject("multiple") as ComputedRef;
|
||||||
|
@ -14,13 +14,14 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<a name="1-6-5"></a>
|
<a name="1-6-5"></a>
|
||||||
<li>
|
<li>
|
||||||
<h3>1.6.5 <span class="layui-badge-rim">2022-10-09</span></h3>
|
<h3>1.6.5 <span class="layui-badge-rim">2022-10-11</span></h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>[新增] datePicker 组件 type 属性为 date 与 datetime 时, 支持时间戳传入。</li>
|
<li>[新增] datePicker 组件 type 属性为 date 与 datetime 时, 支持时间戳传入。</li>
|
||||||
<li>[修复] datePicker 组件 type 属性为 dateTime 时 同时选择日期与时间不生效问题。</li>
|
<li>[修复] datePicker 组件 type 属性为 dateTime 时 同时选择日期与时间不生效问题。</li>
|
||||||
<li>[修复] datepicker 组件 type 属性为 mouth 时, v-model 为 number 类型时, 月份选择显示NaN。</li>
|
<li>[修复] datepicker 组件 type 属性为 mouth 时, v-model 为 number 类型时, 月份选择显示NaN。</li>
|
||||||
<li>[修复] tree 组件 checkedKeys 属性赋值默认子集全部选中的问题。</li>
|
<li>[修复] tree 组件 checkedKeys 属性赋值默认子集全部选中的问题。</li>
|
||||||
<li>[修复] layer 组件在高版本 google 中的 event.path 警告信息。</li>
|
<li>[修复] layer 组件在高版本 google 中的 event.path 警告信息。</li>
|
||||||
|
<li>[修复] select-option 组件 default 插槽不可用的问题。</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@layui/layer-vue",
|
"name": "@layui/layer-vue",
|
||||||
"version": "1.4.4",
|
"version": "1.4.5",
|
||||||
"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",
|
||||||
|
@ -77,7 +77,7 @@ importers:
|
|||||||
specifiers:
|
specifiers:
|
||||||
'@ctrl/tinycolor': ^3.4.1
|
'@ctrl/tinycolor': ^3.4.1
|
||||||
'@layui/icons-vue': ^1.0.9
|
'@layui/icons-vue': ^1.0.9
|
||||||
'@layui/layer-vue': ^1.4.4
|
'@layui/layer-vue': ^1.4.5
|
||||||
'@umijs/ssr-darkreader': ^4.9.45
|
'@umijs/ssr-darkreader': ^4.9.45
|
||||||
'@vueuse/core': ^9.2.0
|
'@vueuse/core': ^9.2.0
|
||||||
async-validator: ^4.1.1
|
async-validator: ^4.1.1
|
||||||
|
Loading…
Reference in New Issue
Block a user