Browse Source

fix: calendar demo错误问题修复 (#1644)

lkjh3214 3 years ago
parent
commit
3a0686ffa3

+ 0 - 6
src/packages/__VUE/calendar/demo.vue

@@ -39,11 +39,6 @@
         @choose="setChooseValue1"
         @select="select"
       >
-        <template v-slot:btn>
-          <div class="wrapper">
-            <div class="d_div"> <span class="d_btn" @click="goDate">去某个时间</span></div>
-          </div>
-        </template>
       </nut-calendar>
     </div>
     <div>
@@ -301,7 +296,6 @@ export default createDemo({
       let dateArr = chooseData.map((item: any) => {
         return item[3];
       });
-      console.log('changevalue 1 ', chooseData, dateArr);
       state.date1 = [...dateArr];
     };
     const setChooseValue2 = (param: string) => {

+ 2 - 2
src/packages/__VUE/calendar/doc.en-US.md

@@ -551,8 +551,8 @@ export default {
 | is-auto-back-fill | Automatic backfill                                          | Boolean         | false           |
 | title             | whether to show title                                          | String          | ‘Calendar’      |
 | default-value     | Default value, select single date : `String`,other: `Array` | String 、 Array | null            |
-| start-date        | The start date, or null if the start date is not limited             | String          | Today            |
-| end-date          | The end date, or null if the end date is not limited              | String          | 365 days from today |
+| start-date        | The start date            | String          | Today            |
+| end-date          | The end date            | String          | 365 days from today |
 | show-today          | Whether to show today's mark               | Boolean          | true |
 | start-text         | Range selection, start part of the text              | String          | Start |
 | end-text         | Range selection, end part of the text            | String          | End |

+ 2 - 2
src/packages/__VUE/calendar/doc.md

@@ -544,8 +544,8 @@ export default {
 | is-auto-back-fill | 自动回填                                          | Boolean         | false           |
 | title             | 显示标题                                          | String          | ‘日期选择’      |
 | default-value     | 默认值,单个日期选择 String,其他为 Array  | String 、 Array | null            |
-| start-date        | 开始日期, 如果不限制开始日期传 null              | String          | 今天            |
-| end-date          | 结束日期,如果不限制结束日期传 null               | String          | 距离今天 365 天 |
+| start-date        | 开始日期         | String          | 今天            |
+| end-date          | 结束日期              | String          | 距离今天 365 天 |
 | show-today          | 是否展示今天标记               | Boolean          | true |
 | start-text         | 范围选择,开始信息文案               | String          | ’开始‘ |
 | end-text         | 范围选择,结束信息文案               | String          | ‘结束’ |

+ 0 - 1
src/packages/__VUE/calendaritem/index.vue

@@ -348,7 +348,6 @@ export default create({
         }
         if (!isFirst) {
           // 点击日期 触发
-          console.log(state.chooseData);
           emit('select', state.chooseData);
           if (props.isAutoBackFill || !props.poppable) {
             confirm();

+ 1 - 1
src/packages/__VUE/imagepreview/index.ts

@@ -1,6 +1,6 @@
 import ImagePreview from './index.vue';
 import { render, createVNode, h } from 'vue';
-import { ImageInterface } from './types'
+import { ImageInterface } from './types';
 export class ImagePreviewOptions {
   show: Boolean = false;
   images: ImageInterface[] = [];

+ 2 - 2
src/packages/__VUE/imagepreview/index.vue

@@ -55,7 +55,7 @@
 </template>
 <script lang="ts">
 import { toRefs, reactive, watch, onMounted, ref, computed } from 'vue';
-import type { PropType } from 'vue'
+import type { PropType } from 'vue';
 import { createComponent } from '@/packages/utils/create';
 import Popup from '../popup/index.vue';
 import Video from '../video/index.vue';
@@ -64,7 +64,7 @@ import SwiperItem from '../swiperitem/index.vue';
 import Icon from '../icon/index.vue';
 import { isPromise } from '@/packages/utils/util.ts';
 import ImagePreviewItem from './imagePreviewItem.vue';
-import { ImageInterface } from './types'
+import { ImageInterface } from './types';
 const { componentName, create } = createComponent('imagepreview');
 
 export default create({