🐛(component): 修复 select 相关缺陷,并调整文档显示格式

This commit is contained in:
就眠儀式 2022-10-09 11:48:45 +08:00
parent 1b79148f21
commit c4cf4efd3d
5 changed files with 12 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@layui/layui-vue",
"version": "1.6.3",
"version": "1.6.4-beta.1",
"author": "就眠儀式",
"license": "MIT",
"description": "a component library for Vue 3 base on layui-vue",

View File

@ -77,7 +77,9 @@ const options = ref<any>([]);
var timer: any;
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;
if (component.name === LaySelectOption.name) {
options.value.push(item.props);

View File

@ -457,11 +457,14 @@ watch(
);
onMounted(() => {
getScrollWidth();
getFixedColumn();
tableBody.value?.addEventListener("scroll", () => {
getFixedColumn();
});
window.onresize = () => {
getScrollWidth();
getFixedColumn();

View File

@ -26,13 +26,13 @@
padding: 0 10px;
padding-left: 28px;
}
.lay-table-box table th code,
.lay-table-box table td code {
line-height: 26px;
}
.lay-table-box table th {
color: #666;
font-weight: 500;
background-color: #fafafa;
}
.lay-table-box table th,
.lay-table-box table td {
white-space: nowrap;
}
</style>

View File

@ -16,7 +16,7 @@
<lay-select v-model="value" placeholder="请选择">
<lay-select-option value="1" 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>
</template>