🐛(component): 修复 select 相关缺陷,并调整文档显示格式
This commit is contained in:
parent
1b79148f21
commit
c4cf4efd3d
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@layui/layui-vue",
|
"name": "@layui/layui-vue",
|
||||||
"version": "1.6.3",
|
"version": "1.6.4-beta.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",
|
||||||
|
@ -77,7 +77,9 @@ const options = ref<any>([]);
|
|||||||
var timer: any;
|
var timer: any;
|
||||||
|
|
||||||
const getOption = (nodes: VNode[]) => {
|
const getOption = (nodes: VNode[]) => {
|
||||||
nodes?.map((item: VNode) => {
|
nodes?.filter((item: VNode) => {
|
||||||
|
return item.children != "v-if";
|
||||||
|
})?.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) {
|
||||||
options.value.push(item.props);
|
options.value.push(item.props);
|
||||||
|
@ -457,11 +457,14 @@ watch(
|
|||||||
);
|
);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|
||||||
getScrollWidth();
|
getScrollWidth();
|
||||||
getFixedColumn();
|
getFixedColumn();
|
||||||
|
|
||||||
tableBody.value?.addEventListener("scroll", () => {
|
tableBody.value?.addEventListener("scroll", () => {
|
||||||
getFixedColumn();
|
getFixedColumn();
|
||||||
});
|
});
|
||||||
|
|
||||||
window.onresize = () => {
|
window.onresize = () => {
|
||||||
getScrollWidth();
|
getScrollWidth();
|
||||||
getFixedColumn();
|
getFixedColumn();
|
||||||
|
@ -26,13 +26,13 @@
|
|||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
padding-left: 28px;
|
padding-left: 28px;
|
||||||
}
|
}
|
||||||
|
.lay-table-box table th code,
|
||||||
|
.lay-table-box table td code {
|
||||||
|
line-height: 26px;
|
||||||
|
}
|
||||||
.lay-table-box table th {
|
.lay-table-box table th {
|
||||||
color: #666;
|
color: #666;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
background-color: #fafafa;
|
background-color: #fafafa;
|
||||||
}
|
}
|
||||||
.lay-table-box table th,
|
|
||||||
.lay-table-box table td {
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<lay-select v-model="value" placeholder="请选择">
|
<lay-select v-model="value" placeholder="请选择">
|
||||||
<lay-select-option value="1" label="学习"></lay-select-option>
|
<lay-select-option value="1" label="学习"></lay-select-option>
|
||||||
<lay-select-option value="2" label="编码"></lay-select-option>
|
<lay-select-option value="2" label="编码"></lay-select-option>
|
||||||
<lay-select-option value="3" label="运动"></lay-select-option>
|
<lay-select-option value="3" v-if="false" label="运动"></lay-select-option>
|
||||||
</lay-select>
|
</lay-select>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user