From dcdf47b2ca91689810cb8b43d38aba4e9da0d029 Mon Sep 17 00:00:00 2001 From: sight <1453017105@qq.com> Date: Thu, 11 Aug 2022 12:07:16 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(component):=20[menu]=E5=9C=A8?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E6=8C=89=E9=9C=80=E9=85=8D=E7=BD=AE=E7=9A=84?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E4=B8=AD=EF=BC=8C=E5=8F=AA=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=20menu=20=E7=BB=84=E4=BB=B6=E6=97=B6,dropdown=20css=20?= =?UTF-8?q?=E6=9C=AA=E8=87=AA=E5=8A=A8=E5=BC=95=E5=85=A5=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E4=BD=8D=E7=BD=AE=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/src/component/menu/index.less | 3 +++ package/component/src/component/table/index.vue | 8 +++++--- .../component/src/component/transfer/index.vue | 16 ++++++++++------ .../src/components/LayCode.vue | 17 +++++++++-------- 4 files changed, 27 insertions(+), 17 deletions(-) diff --git a/package/component/src/component/menu/index.less b/package/component/src/component/menu/index.less index 19234b9a..d07f7887 100644 --- a/package/component/src/component/menu/index.less +++ b/package/component/src/component/menu/index.less @@ -1,3 +1,6 @@ +@import "../dropdown/index.less"; +@import "../popper/index.less" + .layui-nav .layui-show.layui-anim-upbit .layui-show.layui-anim-upbit { top: 0px; left: calc(100% + 5px); diff --git a/package/component/src/component/table/index.vue b/package/component/src/component/table/index.vue index 18a83437..2197e196 100644 --- a/package/component/src/component/table/index.vue +++ b/package/component/src/component/table/index.vue @@ -265,16 +265,18 @@ watch( const changeAll = (isChecked: boolean) => { // Selected - if(isChecked) { + if (isChecked) { const datasources = props.dataSource.filter((item: any, index: number) => { return !props.getCheckboxProps(item, index).disabled; }); - const ids = datasources.map((item) => {return item[props.id]}); + const ids = datasources.map((item) => { + return item[props.id]; + }); tableSelectedKeys.value = [...ids]; } else { // unSelected tableSelectedKeys.value = []; - } + } }; watch( diff --git a/package/component/src/component/transfer/index.vue b/package/component/src/component/transfer/index.vue index d64b8f77..eade1a7b 100644 --- a/package/component/src/component/transfer/index.vue +++ b/package/component/src/component/transfer/index.vue @@ -49,10 +49,12 @@ const hasRightChecked = ref(false); const allLeftChange = (isChecked: boolean) => { if (isChecked) { const datasources = leftDataSource.value.filter((item: any) => { - return !item.disabled + return !item.disabled; }); - const ids = datasources.map((item) => {return item[props.id]}); - console.log(JSON.stringify(ids)) + const ids = datasources.map((item) => { + return item[props.id]; + }); + console.log(JSON.stringify(ids)); leftSelectedKeys.value = [...ids]; } else { leftSelectedKeys.value = []; @@ -82,10 +84,12 @@ watch( const allRightChange = (checked: any) => { if (checked) { const datasources = rightDataSource.value.filter((item: any) => { - return !item.disabled + return !item.disabled; }); - const ids = datasources.map((item) => { return item[props.id]}) - console.log(JSON.stringify(ids)) + const ids = datasources.map((item) => { + return item[props.id]; + }); + console.log(JSON.stringify(ids)); rightSelectedKeys.value = [...ids]; } else { rightSelectedKeys.value = []; diff --git a/package/document-component/src/components/LayCode.vue b/package/document-component/src/components/LayCode.vue index 8832624c..5d737f21 100644 --- a/package/document-component/src/components/LayCode.vue +++ b/package/document-component/src/components/LayCode.vue @@ -27,10 +27,11 @@ @click="onPlayground" title="在 sandbox-vue 打开" /> - + @@ -40,7 +41,7 @@ import { layer } from "@layui/layer-vue"; import { onMounted, onUnmounted, ref, watch } from "vue"; import { openPlayground } from "../utils/code-playground"; -import { openStackblitz } from "../utils/code-stackblitz" +import { openStackblitz } from "../utils/code-stackblitz"; const meta = ref({} as HTMLElement); const isFixContorl = ref(false); @@ -61,12 +62,12 @@ const onPlayground = async function () { window.open(link); }; -const onStackblitz = function() { +const onStackblitz = function () { const foundCodes = meta.value.getElementsByClassName("language-html"); const foundCode = foundCodes[0]; const SourceCode = foundCode.textContent || ""; openStackblitz(SourceCode); -} +}; const copy = function () { const foundCodes = meta.value.getElementsByClassName("language-html"); @@ -213,7 +214,7 @@ function handleScroll() { .btn:hover::before { color: #5fb878; } -.btn:hover svg > path{ +.btn:hover svg > path { fill: #5fb878; }