Explorar o código

feat:优化细节调整

叶静 hai 2 semanas
pai
achega
34a609aa35

+ 5 - 0
src/assets/css/sa-reset.scss

@@ -90,3 +90,8 @@ a:active {
   border-radius: 3px;
   box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
 }
+
+.el-button:focus {
+  outline: none !important;
+  color: var(--el-color-primary) !important;
+}

+ 4 - 0
src/sheep/components/sa-table/sa-search/sa-search-simple.global.vue

@@ -28,6 +28,7 @@
               <el-date-picker v-else-if="field.type === 'daterange'" v-model="formData[key]" type="datetimerange"
                 value-format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss" range-separator="至"
                 start-placeholder="开始日期" end-placeholder="结束日期" :editable="false"
+                :default-time="[new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 1, 1, 23, 59, 59)]"
                 :style="{ width: field.width ? field.width + 'px' : '350px' }" />
             </el-form-item>
           </template>
@@ -56,6 +57,7 @@
               <el-date-picker v-else-if="field.type === 'daterange'" v-model="formData[key]" type="datetimerange"
                 value-format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss" range-separator="至"
                 start-placeholder="开始日期" end-placeholder="结束日期" :editable="false"
+                :default-time="[new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 1, 1, 23, 59, 59)]"
                 :style="{ width: field.width ? field.width + 'px' : '350px' }" />
             </el-form-item>
           </template>
@@ -175,6 +177,8 @@ const handleReset = () => {
   emit('reset');
 };
 
+
+
 // 初始化表单数据
 const initFormData = () => {
   isInitialized.value = false;