From a93cd35f95d3c2f5515fa92114b663f75237c448 Mon Sep 17 00:00:00 2001
From: XBing <923975676@qq.com>
Date: Mon, 8 Jul 2024 14:42:31 +0800
Subject: [PATCH] =?UTF-8?q?element=E5=85=A8=E5=B1=80=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
examples/main.js | 2 ++
packages/agDatePicker/src/index.vue | 5 +++++
src/App.vue | 26 ++++++++++++++----------
src/styles/element-variables.scss | 31 +++++++++++++++++++++++++++++
4 files changed, 54 insertions(+), 10 deletions(-)
create mode 100644 src/styles/element-variables.scss
diff --git a/examples/main.js b/examples/main.js
index 4b7068b..f320530 100644
--- a/examples/main.js
+++ b/examples/main.js
@@ -5,6 +5,8 @@ import App from '../src/App.vue'
//基于element组件封装,引入element组件库
import { Input, Select, Option, OptionGroup, DatePicker, Tabs, TabPane, Pagination, Dialog, Button } from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
+import '../src/styles/element-variables.scss'//element 组件样式文件
+
Vue.use(Input);
Vue.use(Select);
Vue.use(OptionGroup);
diff --git a/packages/agDatePicker/src/index.vue b/packages/agDatePicker/src/index.vue
index 95e8ffc..813bcb3 100644
--- a/packages/agDatePicker/src/index.vue
+++ b/packages/agDatePicker/src/index.vue
@@ -128,6 +128,8 @@ export default {
if (!Array.isArray(newVal)) {
throw new Error("agDatePicker date请传入数组");
}
+ console.log(newVal,'newVal');
+
newVal.length > 0 &&
newVal.some(
(item) => item !== null && item !== undefined && item !== ""
@@ -165,6 +167,9 @@ export default {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
+ .el-range-editor.is-active:hover{
+ border: #8a1818;
+ }
.el-input__icon.el-range__close-icon {
position: absolute;
font-size: 12px;
diff --git a/src/App.vue b/src/App.vue
index 7cb98e5..0caa80f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,20 +1,27 @@
-
-
-
-
-
+
点击打开 Dialog
+
+
+
+
+
+
+
888