diff --git a/package/component/src/component/dropdown/index.less b/package/component/src/component/dropdown/index.less index 37dea6f2..ab487edd 100644 --- a/package/component/src/component/dropdown/index.less +++ b/package/component/src/component/dropdown/index.less @@ -8,7 +8,8 @@ .layui-dropdown dl { display: none; position: absolute; - left: 0; + left: var(--layui-dropdown-left); + top: var(--layui-dropdown-top); margin-top: 2px; z-index: 899; min-width: 100%; diff --git a/package/component/src/component/dropdown/index.vue b/package/component/src/component/dropdown/index.vue index 0d2c664f..df3e4e14 100644 --- a/package/component/src/component/dropdown/index.vue +++ b/package/component/src/component/dropdown/index.vue @@ -6,7 +6,7 @@ export default {