浏览代码

feat: 修改日历样式

huangzhichao 1 年之前
父节点
当前提交
a7aa7ecef7
共有 2 个文件被更改,包括 6 次插入2 次删除
  1. 5 1
      src/plugin/components/calendar/index.scss
  2. 1 1
      src/plugin/components/calendar/index.tsx

+ 5 - 1
src/plugin/components/calendar/index.scss

@@ -1,2 +1,6 @@
 	
-@import "~taro-ui/dist/style/components/calendar.scss";
+@import "~taro-ui/dist/style/components/calendar.scss";
+
+.calendar-container {
+  width: 100vw;
+}

+ 1 - 1
src/plugin/components/calendar/index.tsx

@@ -4,7 +4,7 @@ import './index.scss'
 
 function Index() {
   return (
-    <View>
+    <View className='calendar-container'>
       <AtCalendar />
     </View>
   )