@kengic/uni 0.3.2-beta.3 → 0.3.2-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kengic-uni.js +2 -1371
- package/dist/src/index.d.ts +0 -1
- package/dist/uni-ui/index.ts +5 -0
- package/dist/uni-ui/uni-badge/uni-badge.vue +253 -0
- package/dist/uni-ui/uni-breadcrumb/uni-breadcrumb.vue +41 -0
- package/dist/uni-ui/uni-breadcrumb-item/uni-breadcrumb-item.vue +121 -0
- package/dist/uni-ui/uni-calendar/calendar.js +546 -0
- package/dist/uni-ui/uni-calendar/i18n/en.json +12 -0
- package/dist/uni-ui/uni-calendar/i18n/index.js +8 -0
- package/dist/uni-ui/uni-calendar/i18n/zh-Hans.json +12 -0
- package/dist/uni-ui/uni-calendar/i18n/zh-Hant.json +12 -0
- package/dist/uni-ui/uni-calendar/uni-calendar-item.vue +187 -0
- package/dist/uni-ui/uni-calendar/uni-calendar.vue +566 -0
- package/dist/uni-ui/uni-calendar/util.js +360 -0
- package/dist/uni-ui/uni-card/uni-card.vue +281 -0
- package/dist/uni-ui/uni-col/uni-col.vue +317 -0
- package/dist/uni-ui/uni-collapse/uni-collapse.vue +147 -0
- package/dist/uni-ui/uni-collapse-item/uni-collapse-item.vue +402 -0
- package/dist/uni-ui/uni-combox/uni-combox.vue +294 -0
- package/dist/uni-ui/uni-countdown/i18n/en.json +6 -0
- package/dist/uni-ui/uni-countdown/i18n/index.js +8 -0
- package/dist/uni-ui/uni-countdown/i18n/zh-Hans.json +6 -0
- package/dist/uni-ui/uni-countdown/i18n/zh-Hant.json +6 -0
- package/dist/uni-ui/uni-countdown/uni-countdown.vue +267 -0
- package/dist/uni-ui/uni-data-checkbox/uni-data-checkbox.vue +821 -0
- package/dist/uni-ui/uni-data-picker/keypress.js +45 -0
- package/dist/uni-ui/uni-data-picker/uni-data-picker.vue +551 -0
- package/dist/uni-ui/uni-data-pickerview/uni-data-picker.js +622 -0
- package/dist/uni-ui/uni-data-pickerview/uni-data-pickerview.vue +323 -0
- package/dist/uni-ui/uni-data-select/uni-data-select.vue +517 -0
- package/dist/uni-ui/uni-dateformat/date-format.js +200 -0
- package/dist/uni-ui/uni-dateformat/uni-dateformat.vue +88 -0
- package/dist/uni-ui/uni-datetime-picker/calendar-item.vue +177 -0
- package/dist/uni-ui/uni-datetime-picker/calendar.vue +928 -0
- package/dist/uni-ui/uni-datetime-picker/i18n/en.json +22 -0
- package/dist/uni-ui/uni-datetime-picker/i18n/index.js +8 -0
- package/dist/uni-ui/uni-datetime-picker/i18n/zh-Hans.json +22 -0
- package/dist/uni-ui/uni-datetime-picker/i18n/zh-Hant.json +22 -0
- package/dist/uni-ui/uni-datetime-picker/time-picker.vue +934 -0
- package/dist/uni-ui/uni-datetime-picker/uni-datetime-picker.vue +1026 -0
- package/dist/uni-ui/uni-datetime-picker/util.js +403 -0
- package/dist/uni-ui/uni-drawer/keypress.js +45 -0
- package/dist/uni-ui/uni-drawer/uni-drawer.vue +181 -0
- package/dist/uni-ui/uni-easyinput/common.js +56 -0
- package/dist/uni-ui/uni-easyinput/uni-easyinput.vue +660 -0
- package/dist/uni-ui/uni-fab/uni-fab.vue +491 -0
- package/dist/uni-ui/uni-fav/i18n/en.json +4 -0
- package/dist/uni-ui/uni-fav/i18n/index.js +8 -0
- package/dist/uni-ui/uni-fav/i18n/zh-Hans.json +4 -0
- package/dist/uni-ui/uni-fav/i18n/zh-Hant.json +4 -0
- package/dist/uni-ui/uni-fav/uni-fav.vue +161 -0
- package/dist/uni-ui/uni-file-picker/choose-and-upload-file.js +224 -0
- package/dist/uni-ui/uni-file-picker/uni-file-picker.vue +667 -0
- package/dist/uni-ui/uni-file-picker/upload-file.vue +325 -0
- package/dist/uni-ui/uni-file-picker/upload-image.vue +292 -0
- package/dist/uni-ui/uni-file-picker/utils.js +109 -0
- package/dist/uni-ui/uni-forms/uni-forms.vue +398 -0
- package/dist/uni-ui/uni-forms/utils.js +293 -0
- package/dist/uni-ui/uni-forms/validate.js +486 -0
- package/dist/uni-ui/uni-forms-item/uni-forms-item.vue +601 -0
- package/dist/uni-ui/uni-goods-nav/i18n/en.json +6 -0
- package/dist/uni-ui/uni-goods-nav/i18n/index.js +8 -0
- package/dist/uni-ui/uni-goods-nav/i18n/zh-Hans.json +6 -0
- package/dist/uni-ui/uni-goods-nav/i18n/zh-Hant.json +6 -0
- package/dist/uni-ui/uni-goods-nav/uni-goods-nav.vue +229 -0
- package/dist/uni-ui/uni-grid/uni-grid.vue +143 -0
- package/dist/uni-ui/uni-grid-item/uni-grid-item.vue +129 -0
- package/dist/uni-ui/uni-group/uni-group.vue +134 -0
- package/dist/uni-ui/uni-icons/icons.js +1169 -0
- package/dist/uni-ui/uni-icons/uni-icons.vue +96 -0
- package/dist/uni-ui/uni-icons/uniicons.css +663 -0
- package/dist/uni-ui/uni-icons/uniicons.ttf +0 -0
- package/dist/uni-ui/uni-indexed-list/uni-indexed-list-item.vue +144 -0
- package/dist/uni-ui/uni-indexed-list/uni-indexed-list.vue +367 -0
- package/dist/uni-ui/uni-link/uni-link.vue +128 -0
- package/dist/uni-ui/uni-list/uni-list.vue +123 -0
- package/dist/uni-ui/uni-list/uni-refresh.vue +65 -0
- package/dist/uni-ui/uni-list/uni-refresh.wxs +87 -0
- package/dist/uni-ui/uni-list-ad/uni-list-ad.vue +107 -0
- package/dist/uni-ui/uni-list-chat/uni-list-chat.scss +58 -0
- package/dist/uni-ui/uni-list-chat/uni-list-chat.vue +593 -0
- package/dist/uni-ui/uni-list-item/uni-list-item.vue +534 -0
- package/dist/uni-ui/uni-load-more/i18n/en.json +5 -0
- package/dist/uni-ui/uni-load-more/i18n/index.js +8 -0
- package/dist/uni-ui/uni-load-more/i18n/zh-Hans.json +5 -0
- package/dist/uni-ui/uni-load-more/i18n/zh-Hant.json +5 -0
- package/dist/uni-ui/uni-load-more/uni-load-more.vue +399 -0
- package/dist/uni-ui/uni-nav-bar/uni-nav-bar.vue +357 -0
- package/dist/uni-ui/uni-nav-bar/uni-status-bar.vue +24 -0
- package/dist/uni-ui/uni-notice-bar/uni-notice-bar.vue +426 -0
- package/dist/uni-ui/uni-number-box/uni-number-box.vue +221 -0
- package/dist/uni-ui/uni-pagination/i18n/en.json +5 -0
- package/dist/uni-ui/uni-pagination/i18n/es.json +5 -0
- package/dist/uni-ui/uni-pagination/i18n/fr.json +5 -0
- package/dist/uni-ui/uni-pagination/i18n/index.js +12 -0
- package/dist/uni-ui/uni-pagination/i18n/zh-Hans.json +5 -0
- package/dist/uni-ui/uni-pagination/i18n/zh-Hant.json +5 -0
- package/dist/uni-ui/uni-pagination/uni-pagination.vue +465 -0
- package/dist/uni-ui/uni-popup/i18n/en.json +7 -0
- package/dist/uni-ui/uni-popup/i18n/index.js +8 -0
- package/dist/uni-ui/uni-popup/i18n/zh-Hans.json +7 -0
- package/dist/uni-ui/uni-popup/i18n/zh-Hant.json +7 -0
- package/dist/uni-ui/uni-popup/keypress.js +45 -0
- package/dist/uni-ui/uni-popup/popup.js +26 -0
- package/dist/uni-ui/uni-popup/uni-popup.vue +473 -0
- package/dist/uni-ui/uni-popup-dialog/keypress.js +45 -0
- package/dist/uni-ui/uni-popup-dialog/uni-popup-dialog.vue +275 -0
- package/dist/uni-ui/uni-popup-message/uni-popup-message.vue +143 -0
- package/dist/uni-ui/uni-popup-share/uni-popup-share.vue +187 -0
- package/dist/uni-ui/uni-rate/uni-rate.vue +365 -0
- package/dist/uni-ui/uni-row/uni-row.vue +190 -0
- package/dist/uni-ui/uni-scss/changelog.md +8 -0
- package/dist/uni-ui/uni-scss/index.scss +1 -0
- package/dist/uni-ui/uni-scss/package.json +82 -0
- package/dist/uni-ui/uni-scss/readme.md +4 -0
- package/dist/uni-ui/uni-scss/styles/index.scss +7 -0
- package/dist/uni-ui/uni-scss/styles/setting/_border.scss +3 -0
- package/dist/uni-ui/uni-scss/styles/setting/_color.scss +66 -0
- package/dist/uni-ui/uni-scss/styles/setting/_radius.scss +55 -0
- package/dist/uni-ui/uni-scss/styles/setting/_space.scss +56 -0
- package/dist/uni-ui/uni-scss/styles/setting/_styles.scss +167 -0
- package/dist/uni-ui/uni-scss/styles/setting/_text.scss +24 -0
- package/dist/uni-ui/uni-scss/styles/setting/_variables.scss +146 -0
- package/dist/uni-ui/uni-scss/styles/tools/functions.scss +19 -0
- package/dist/uni-ui/uni-scss/theme.scss +31 -0
- package/dist/uni-ui/uni-scss/variables.scss +62 -0
- package/dist/uni-ui/uni-search-bar/i18n/en.json +4 -0
- package/dist/uni-ui/uni-search-bar/i18n/index.js +8 -0
- package/dist/uni-ui/uni-search-bar/i18n/zh-Hans.json +4 -0
- package/dist/uni-ui/uni-search-bar/i18n/zh-Hant.json +4 -0
- package/dist/uni-ui/uni-search-bar/uni-search-bar.vue +298 -0
- package/dist/uni-ui/uni-section/uni-section.vue +167 -0
- package/dist/uni-ui/uni-segmented-control/uni-segmented-control.vue +145 -0
- package/dist/uni-ui/uni-steps/uni-steps.vue +269 -0
- package/dist/uni-ui/uni-swipe-action/uni-swipe-action.vue +60 -0
- package/dist/uni-ui/uni-swipe-action-item/bindingx.js +302 -0
- package/dist/uni-ui/uni-swipe-action-item/isPC.js +12 -0
- package/dist/uni-ui/uni-swipe-action-item/mpalipay.js +195 -0
- package/dist/uni-ui/uni-swipe-action-item/mpother.js +260 -0
- package/dist/uni-ui/uni-swipe-action-item/mpwxs.js +84 -0
- package/dist/uni-ui/uni-swipe-action-item/render.js +270 -0
- package/dist/uni-ui/uni-swipe-action-item/uni-swipe-action-item.vue +347 -0
- package/dist/uni-ui/uni-swipe-action-item/wx.wxs +341 -0
- package/dist/uni-ui/uni-swiper-dot/uni-swiper-dot.vue +218 -0
- package/dist/uni-ui/uni-table/uni-table.vue +455 -0
- package/dist/uni-ui/uni-tag/uni-tag.vue +252 -0
- package/dist/uni-ui/uni-tbody/uni-tbody.vue +29 -0
- package/dist/uni-ui/uni-td/uni-td.vue +90 -0
- package/dist/uni-ui/uni-th/filter-dropdown.vue +511 -0
- package/dist/uni-ui/uni-th/uni-th.vue +285 -0
- package/dist/uni-ui/uni-thead/uni-thead.vue +129 -0
- package/dist/uni-ui/uni-title/uni-title.vue +171 -0
- package/dist/uni-ui/uni-tooltip/uni-tooltip.vue +68 -0
- package/dist/uni-ui/uni-tr/table-checkbox.vue +179 -0
- package/dist/uni-ui/uni-tr/uni-tr.vue +171 -0
- package/dist/uni-ui/uni-transition/createAnimation.js +131 -0
- package/dist/uni-ui/uni-transition/uni-transition.vue +281 -0
- package/package.json +10 -10
- package/dist/index.css +0 -1
- package/dist/src/components/index.d.ts +0 -5
- package/dist/src/components/uni-ui/uni-badge/uni-badge.vue.d.ts +0 -108
- package/dist/src/components/uni-ui/uni-breadcrumb/uni-breadcrumb.vue.d.ts +0 -23
- package/dist/src/components/uni-ui/uni-breadcrumb-item/uni-breadcrumb-item.vue.d.ts +0 -30
- package/dist/src/components/uni-ui/uni-calendar/calendar.d.ts +0 -67
- package/dist/src/components/uni-ui/uni-calendar/i18n/index.d.ts +0 -39
- package/dist/src/components/uni-ui/uni-calendar/uni-calendar-item.vue.d.ts +0 -47
- package/dist/src/components/uni-ui/uni-calendar/uni-calendar.vue.d.ts +0 -166
- package/dist/src/components/uni-ui/uni-calendar/util.d.ts +0 -211
- package/dist/src/components/uni-ui/uni-card/uni-card.vue.d.ts +0 -117
- package/dist/src/components/uni-ui/uni-col/uni-col.vue.d.ts +0 -70
- package/dist/src/components/uni-ui/uni-collapse/uni-collapse.vue.d.ts +0 -45
- package/dist/src/components/uni-ui/uni-collapse-item/uni-collapse-item.vue.d.ts +0 -102
- package/dist/src/components/uni-ui/uni-combox/uni-combox.vue.d.ts +0 -95
- package/dist/src/components/uni-ui/uni-countdown/i18n/index.d.ts +0 -21
- package/dist/src/components/uni-ui/uni-countdown/uni-countdown.vue.d.ts +0 -158
- package/dist/src/components/uni-ui/uni-data-checkbox/uni-data-checkbox.vue.d.ts +0 -192
- package/dist/src/components/uni-ui/uni-data-picker/uni-data-picker.vue.d.ts +0 -267
- package/dist/src/components/uni-ui/uni-data-pickerview/uni-data-picker.d.ts +0 -221
- package/dist/src/components/uni-ui/uni-data-pickerview/uni-data-pickerview.vue.d.ts +0 -169
- package/dist/src/components/uni-ui/uni-data-select/uni-data-select.vue.d.ts +0 -125
- package/dist/src/components/uni-ui/uni-dateformat/date-format.d.ts +0 -6
- package/dist/src/components/uni-ui/uni-dateformat/uni-dateformat.vue.d.ts +0 -57
- package/dist/src/components/uni-ui/uni-datetime-picker/calendar-item.vue.d.ts +0 -44
- package/dist/src/components/uni-ui/uni-datetime-picker/calendar.vue.d.ts +0 -253
- package/dist/src/components/uni-ui/uni-datetime-picker/i18n/index.d.ts +0 -69
- package/dist/src/components/uni-ui/uni-datetime-picker/time-picker.vue.d.ts +0 -225
- package/dist/src/components/uni-ui/uni-datetime-picker/uni-datetime-picker.vue.d.ts +0 -236
- package/dist/src/components/uni-ui/uni-datetime-picker/util.d.ts +0 -171
- package/dist/src/components/uni-ui/uni-drawer/keypress.d.ts +0 -14
- package/dist/src/components/uni-ui/uni-drawer/uni-drawer.vue.d.ts +0 -78
- package/dist/src/components/uni-ui/uni-easyinput/uni-easyinput.vue.d.ts +0 -269
- package/dist/src/components/uni-ui/uni-fab/uni-fab.vue.d.ts +0 -109
- package/dist/src/components/uni-ui/uni-fav/i18n/index.d.ts +0 -15
- package/dist/src/components/uni-ui/uni-fav/uni-fav.vue.d.ts +0 -99
- package/dist/src/components/uni-ui/uni-file-picker/choose-and-upload-file.d.ts +0 -4
- package/dist/src/components/uni-ui/uni-file-picker/uni-file-picker.vue.d.ts +0 -254
- package/dist/src/components/uni-ui/uni-file-picker/upload-file.vue.d.ts +0 -81
- package/dist/src/components/uni-ui/uni-file-picker/upload-image.vue.d.ts +0 -90
- package/dist/src/components/uni-ui/uni-file-picker/utils.d.ts +0 -22
- package/dist/src/components/uni-ui/uni-forms/uni-forms.vue.d.ts +0 -160
- package/dist/src/components/uni-ui/uni-forms/utils.d.ts +0 -20
- package/dist/src/components/uni-ui/uni-forms/validate.d.ts +0 -42
- package/dist/src/components/uni-ui/uni-forms-item/uni-forms-item.vue.d.ts +0 -127
- package/dist/src/components/uni-ui/uni-goods-nav/i18n/index.d.ts +0 -21
- package/dist/src/components/uni-ui/uni-goods-nav/uni-goods-nav.vue.d.ts +0 -61
- package/dist/src/components/uni-ui/uni-grid/uni-grid.vue.d.ts +0 -59
- package/dist/src/components/uni-ui/uni-grid-item/uni-grid-item.vue.d.ts +0 -26
- package/dist/src/components/uni-ui/uni-group/uni-group.vue.d.ts +0 -52
- package/dist/src/components/uni-ui/uni-icons/icons.d.ts +0 -15
- package/dist/src/components/uni-ui/uni-icons/uni-icons.vue.d.ts +0 -56
- package/dist/src/components/uni-ui/uni-indexed-list/uni-indexed-list-item.vue.d.ts +0 -45
- package/dist/src/components/uni-ui/uni-indexed-list/uni-indexed-list.vue.d.ts +0 -49
- package/dist/src/components/uni-ui/uni-link/uni-link.vue.d.ts +0 -75
- package/dist/src/components/uni-ui/uni-list/uni-list.vue.d.ts +0 -53
- package/dist/src/components/uni-ui/uni-list/uni-refresh.vue.d.ts +0 -22
- package/dist/src/components/uni-ui/uni-list-ad/uni-list-ad.vue.d.ts +0 -25
- package/dist/src/components/uni-ui/uni-list-chat/uni-list-chat.vue.d.ts +0 -123
- package/dist/src/components/uni-ui/uni-list-item/uni-list-item.vue.d.ts +0 -248
- package/dist/src/components/uni-ui/uni-load-more/i18n/index.d.ts +0 -18
- package/dist/src/components/uni-ui/uni-load-more/uni-load-more.vue.d.ts +0 -89
- package/dist/src/components/uni-ui/uni-nav-bar/uni-nav-bar.vue.d.ts +0 -163
- package/dist/src/components/uni-ui/uni-nav-bar/uni-status-bar.vue.d.ts +0 -4
- package/dist/src/components/uni-ui/uni-notice-bar/uni-notice-bar.vue.d.ts +0 -138
- package/dist/src/components/uni-ui/uni-number-box/uni-number-box.vue.d.ts +0 -90
- package/dist/src/components/uni-ui/uni-pagination/i18n/index.d.ts +0 -28
- package/dist/src/components/uni-ui/uni-pagination/uni-pagination.vue.d.ts +0 -127
- package/dist/src/components/uni-ui/uni-popup/i18n/index.d.ts +0 -24
- package/dist/src/components/uni-ui/uni-popup/keypress.d.ts +0 -14
- package/dist/src/components/uni-ui/uni-popup/popup.d.ts +0 -17
- package/dist/src/components/uni-ui/uni-popup/uni-popup.vue.d.ts +0 -136
- package/dist/src/components/uni-ui/uni-popup-dialog/uni-popup-dialog.vue.d.ts +0 -123
- package/dist/src/components/uni-ui/uni-popup-message/uni-popup-message.vue.d.ts +0 -67
- package/dist/src/components/uni-ui/uni-popup-share/uni-popup-share.vue.d.ts +0 -49
- package/dist/src/components/uni-ui/uni-rate/uni-rate.vue.d.ts +0 -154
- package/dist/src/components/uni-ui/uni-row/uni-row.vue.d.ts +0 -41
- package/dist/src/components/uni-ui/uni-search-bar/i18n/index.d.ts +0 -15
- package/dist/src/components/uni-ui/uni-search-bar/uni-search-bar.vue.d.ts +0 -126
- package/dist/src/components/uni-ui/uni-section/uni-section.vue.d.ts +0 -85
- package/dist/src/components/uni-ui/uni-segmented-control/uni-segmented-control.vue.d.ts +0 -47
- package/dist/src/components/uni-ui/uni-steps/uni-steps.vue.d.ts +0 -59
- package/dist/src/components/uni-ui/uni-swipe-action/uni-swipe-action.vue.d.ts +0 -6
- package/dist/src/components/uni-ui/uni-swiper-dot/uni-swiper-dot.vue.d.ts +0 -65
- package/dist/src/components/uni-ui/uni-table/uni-table.vue.d.ts +0 -99
- package/dist/src/components/uni-ui/uni-tag/uni-tag.vue.d.ts +0 -84
- package/dist/src/components/uni-ui/uni-tbody/uni-tbody.vue.d.ts +0 -2
- package/dist/src/components/uni-ui/uni-td/uni-td.vue.d.ts +0 -48
- package/dist/src/components/uni-ui/uni-th/filter-dropdown.vue.d.ts +0 -99
- package/dist/src/components/uni-ui/uni-th/uni-th.vue.d.ts +0 -97
- package/dist/src/components/uni-ui/uni-thead/uni-thead.vue.d.ts +0 -15
- package/dist/src/components/uni-ui/uni-title/uni-title.vue.d.ts +0 -54
- package/dist/src/components/uni-ui/uni-tooltip/uni-tooltip.vue.d.ts +0 -23
- package/dist/src/components/uni-ui/uni-tr/table-checkbox.vue.d.ts +0 -58
- package/dist/src/components/uni-ui/uni-tr/uni-tr.vue.d.ts +0 -39
- package/dist/src/components/uni-ui/uni-transition/createAnimation.d.ts +0 -16
- package/dist/src/components/uni-ui/uni-transition/uni-transition.vue.d.ts +0 -240
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view v-if="isShow||onceRender" v-show="isShow" ref="ani" :animation="animationData" :class="customClass" :style="transformStyles" @click="onClick"><slot></slot></view>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
import { createAnimation } from './createAnimation'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Transition 过渡动画
|
|
10
|
+
* @description 简单过渡动画组件
|
|
11
|
+
* @tutorial https://ext.dcloud.net.cn/plugin?id=985
|
|
12
|
+
* @property {Boolean} show = [false|true] 控制组件显示或隐藏
|
|
13
|
+
* @property {Array|String} modeClass = [fade|slide-top|slide-right|slide-bottom|slide-left|zoom-in|zoom-out] 过渡动画类型
|
|
14
|
+
* @value fade 渐隐渐出过渡
|
|
15
|
+
* @value slide-top 由上至下过渡
|
|
16
|
+
* @value slide-right 由右至左过渡
|
|
17
|
+
* @value slide-bottom 由下至上过渡
|
|
18
|
+
* @value slide-left 由左至右过渡
|
|
19
|
+
* @value zoom-in 由小到大过渡
|
|
20
|
+
* @value zoom-out 由大到小过渡
|
|
21
|
+
* @property {Number} duration 过渡动画持续时间
|
|
22
|
+
* @property {Object} styles 组件样式,同 css 样式,注意带’-‘连接符的属性需要使用小驼峰写法如:`backgroundColor:red`
|
|
23
|
+
*/
|
|
24
|
+
export default {
|
|
25
|
+
name: 'uniTransition',
|
|
26
|
+
emits:['click','change'],
|
|
27
|
+
props: {
|
|
28
|
+
show: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: false
|
|
31
|
+
},
|
|
32
|
+
modeClass: {
|
|
33
|
+
type: [Array, String],
|
|
34
|
+
default() {
|
|
35
|
+
return 'fade'
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
duration: {
|
|
39
|
+
type: Number,
|
|
40
|
+
default: 300
|
|
41
|
+
},
|
|
42
|
+
styles: {
|
|
43
|
+
type: Object,
|
|
44
|
+
default() {
|
|
45
|
+
return {}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
customClass:{
|
|
49
|
+
type: String,
|
|
50
|
+
default: ''
|
|
51
|
+
},
|
|
52
|
+
onceRender:{
|
|
53
|
+
type:Boolean,
|
|
54
|
+
default:false
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
data() {
|
|
58
|
+
return {
|
|
59
|
+
isShow: false,
|
|
60
|
+
transform: '',
|
|
61
|
+
opacity: 1,
|
|
62
|
+
animationData: {},
|
|
63
|
+
durationTime: 300,
|
|
64
|
+
config: {}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
watch: {
|
|
68
|
+
show: {
|
|
69
|
+
handler(newVal) {
|
|
70
|
+
if (newVal) {
|
|
71
|
+
this.open()
|
|
72
|
+
} else {
|
|
73
|
+
// 避免上来就执行 close,导致动画错乱
|
|
74
|
+
if (this.isShow) {
|
|
75
|
+
this.close()
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
immediate: true
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
computed: {
|
|
83
|
+
// 生成样式数据
|
|
84
|
+
stylesObject() {
|
|
85
|
+
let styles = {
|
|
86
|
+
...this.styles,
|
|
87
|
+
'transition-duration': this.duration / 1000 + 's'
|
|
88
|
+
}
|
|
89
|
+
let transform = ''
|
|
90
|
+
for (let i in styles) {
|
|
91
|
+
let line = this.toLine(i)
|
|
92
|
+
transform += line + ':' + styles[i] + ';'
|
|
93
|
+
}
|
|
94
|
+
return transform
|
|
95
|
+
},
|
|
96
|
+
// 初始化动画条件
|
|
97
|
+
transformStyles() {
|
|
98
|
+
return 'transform:' + this.transform + ';' + 'opacity:' + this.opacity + ';' + this.stylesObject
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
created() {
|
|
102
|
+
// 动画默认配置
|
|
103
|
+
this.config = {
|
|
104
|
+
duration: this.duration,
|
|
105
|
+
timingFunction: 'ease',
|
|
106
|
+
transformOrigin: '50% 50%',
|
|
107
|
+
delay: 0
|
|
108
|
+
}
|
|
109
|
+
this.durationTime = this.duration
|
|
110
|
+
},
|
|
111
|
+
methods: {
|
|
112
|
+
/**
|
|
113
|
+
* ref 触发 初始化动画
|
|
114
|
+
*/
|
|
115
|
+
init(obj = {}) {
|
|
116
|
+
if (obj.duration) {
|
|
117
|
+
this.durationTime = obj.duration
|
|
118
|
+
}
|
|
119
|
+
this.animation = createAnimation(Object.assign(this.config, obj),this)
|
|
120
|
+
},
|
|
121
|
+
/**
|
|
122
|
+
* 点击组件触发回调
|
|
123
|
+
*/
|
|
124
|
+
onClick() {
|
|
125
|
+
this.$emit('click', {
|
|
126
|
+
detail: this.isShow
|
|
127
|
+
})
|
|
128
|
+
},
|
|
129
|
+
/**
|
|
130
|
+
* ref 触发 动画分组
|
|
131
|
+
* @param {Object} obj
|
|
132
|
+
*/
|
|
133
|
+
step(obj, config = {}) {
|
|
134
|
+
if (!this.animation) return
|
|
135
|
+
for (let i in obj) {
|
|
136
|
+
try {
|
|
137
|
+
if(typeof obj[i] === 'object'){
|
|
138
|
+
this.animation[i](...obj[i])
|
|
139
|
+
}else{
|
|
140
|
+
this.animation[i](obj[i])
|
|
141
|
+
}
|
|
142
|
+
} catch (e) {
|
|
143
|
+
console.error(`方法 ${i} 不存在`)
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
this.animation.step(config)
|
|
147
|
+
return this
|
|
148
|
+
},
|
|
149
|
+
/**
|
|
150
|
+
* ref 触发 执行动画
|
|
151
|
+
*/
|
|
152
|
+
run(fn) {
|
|
153
|
+
if (!this.animation) return
|
|
154
|
+
this.animation.run(fn)
|
|
155
|
+
},
|
|
156
|
+
// 开始过度动画
|
|
157
|
+
open() {
|
|
158
|
+
clearTimeout(this.timer)
|
|
159
|
+
this.transform = ''
|
|
160
|
+
this.isShow = true
|
|
161
|
+
let { opacity, transform } = this.styleInit(false)
|
|
162
|
+
if (typeof opacity !== 'undefined') {
|
|
163
|
+
this.opacity = opacity
|
|
164
|
+
}
|
|
165
|
+
this.transform = transform
|
|
166
|
+
// 确保动态样式已经生效后,执行动画,如果不加 nextTick ,会导致 wx 动画执行异常
|
|
167
|
+
this.$nextTick(() => {
|
|
168
|
+
// TODO 定时器保证动画完全执行,目前有些问题,后面会取消定时器
|
|
169
|
+
this.timer = setTimeout(() => {
|
|
170
|
+
this.animation = createAnimation(this.config, this)
|
|
171
|
+
this.tranfromInit(false).step()
|
|
172
|
+
this.animation.run()
|
|
173
|
+
this.$emit('change', {
|
|
174
|
+
detail: this.isShow
|
|
175
|
+
})
|
|
176
|
+
}, 20)
|
|
177
|
+
})
|
|
178
|
+
},
|
|
179
|
+
// 关闭过度动画
|
|
180
|
+
close(type) {
|
|
181
|
+
if (!this.animation) return
|
|
182
|
+
this.tranfromInit(true)
|
|
183
|
+
.step()
|
|
184
|
+
.run(() => {
|
|
185
|
+
this.isShow = false
|
|
186
|
+
this.animationData = null
|
|
187
|
+
this.animation = null
|
|
188
|
+
let { opacity, transform } = this.styleInit(false)
|
|
189
|
+
this.opacity = opacity || 1
|
|
190
|
+
this.transform = transform
|
|
191
|
+
this.$emit('change', {
|
|
192
|
+
detail: this.isShow
|
|
193
|
+
})
|
|
194
|
+
})
|
|
195
|
+
},
|
|
196
|
+
// 处理动画开始前的默认样式
|
|
197
|
+
styleInit(type) {
|
|
198
|
+
let styles = {
|
|
199
|
+
transform: ''
|
|
200
|
+
}
|
|
201
|
+
let buildStyle = (type, mode) => {
|
|
202
|
+
if (mode === 'fade') {
|
|
203
|
+
styles.opacity = this.animationType(type)[mode]
|
|
204
|
+
} else {
|
|
205
|
+
styles.transform += this.animationType(type)[mode] + ' '
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
if (typeof this.modeClass === 'string') {
|
|
209
|
+
buildStyle(type, this.modeClass)
|
|
210
|
+
} else {
|
|
211
|
+
this.modeClass.forEach(mode => {
|
|
212
|
+
buildStyle(type, mode)
|
|
213
|
+
})
|
|
214
|
+
}
|
|
215
|
+
return styles
|
|
216
|
+
},
|
|
217
|
+
// 处理内置组合动画
|
|
218
|
+
tranfromInit(type) {
|
|
219
|
+
let buildTranfrom = (type, mode) => {
|
|
220
|
+
let aniNum = null
|
|
221
|
+
if (mode === 'fade') {
|
|
222
|
+
aniNum = type ? 0 : 1
|
|
223
|
+
} else {
|
|
224
|
+
aniNum = type ? '-100%' : '0'
|
|
225
|
+
if (mode === 'zoom-in') {
|
|
226
|
+
aniNum = type ? 0.8 : 1
|
|
227
|
+
}
|
|
228
|
+
if (mode === 'zoom-out') {
|
|
229
|
+
aniNum = type ? 1.2 : 1
|
|
230
|
+
}
|
|
231
|
+
if (mode === 'slide-right') {
|
|
232
|
+
aniNum = type ? '100%' : '0'
|
|
233
|
+
}
|
|
234
|
+
if (mode === 'slide-bottom') {
|
|
235
|
+
aniNum = type ? '100%' : '0'
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
this.animation[this.animationMode()[mode]](aniNum)
|
|
239
|
+
}
|
|
240
|
+
if (typeof this.modeClass === 'string') {
|
|
241
|
+
buildTranfrom(type, this.modeClass)
|
|
242
|
+
} else {
|
|
243
|
+
this.modeClass.forEach(mode => {
|
|
244
|
+
buildTranfrom(type, mode)
|
|
245
|
+
})
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
return this.animation
|
|
249
|
+
},
|
|
250
|
+
animationType(type) {
|
|
251
|
+
return {
|
|
252
|
+
fade: type ? 1 : 0,
|
|
253
|
+
'slide-top': `translateY(${type ? '0' : '-100%'})`,
|
|
254
|
+
'slide-right': `translateX(${type ? '0' : '100%'})`,
|
|
255
|
+
'slide-bottom': `translateY(${type ? '0' : '100%'})`,
|
|
256
|
+
'slide-left': `translateX(${type ? '0' : '-100%'})`,
|
|
257
|
+
'zoom-in': `scaleX(${type ? 1 : 0.8}) scaleY(${type ? 1 : 0.8})`,
|
|
258
|
+
'zoom-out': `scaleX(${type ? 1 : 1.2}) scaleY(${type ? 1 : 1.2})`
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
// 内置动画类型与实际动画对应字典
|
|
262
|
+
animationMode() {
|
|
263
|
+
return {
|
|
264
|
+
fade: 'opacity',
|
|
265
|
+
'slide-top': 'translateY',
|
|
266
|
+
'slide-right': 'translateX',
|
|
267
|
+
'slide-bottom': 'translateY',
|
|
268
|
+
'slide-left': 'translateX',
|
|
269
|
+
'zoom-in': 'scale',
|
|
270
|
+
'zoom-out': 'scale'
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
// 驼峰转中横线
|
|
274
|
+
toLine(name) {
|
|
275
|
+
return name.replace(/([A-Z])/g, '-$1').toLowerCase()
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
</script>
|
|
280
|
+
|
|
281
|
+
<style></style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kengic/uni",
|
|
3
|
-
"version": "0.3.2-beta.
|
|
3
|
+
"version": "0.3.2-beta.5",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "rimraf dist && vue-tsc && vite build",
|
|
6
6
|
"build:dev": "rimraf dist && vue-tsc && vite build --mode development",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"publish:npm": "npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"vue": "3.2.
|
|
29
|
+
"vue": "3.2.47"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@ant-design/icons-vue": "6.1.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@vueuse/core": "8.9.4",
|
|
36
36
|
"@vueuse/shared": "8.9.4",
|
|
37
37
|
"lodash-es": "4.17.21",
|
|
38
|
-
"pinia": "2.0.
|
|
38
|
+
"pinia": "2.0.35"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@dcloudio/types": "3.3.3",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@types/lodash-es": "~4.17.7",
|
|
44
44
|
"@types/node": "~18.14.6",
|
|
45
45
|
"@types/semver": "~7.3.13",
|
|
46
|
-
"@vitejs/plugin-vue": "
|
|
47
|
-
"@vitejs/plugin-vue-jsx": "
|
|
46
|
+
"@vitejs/plugin-vue": "4.2.1",
|
|
47
|
+
"@vitejs/plugin-vue-jsx": "3.0.1",
|
|
48
48
|
"chalk": "~4.1.2",
|
|
49
49
|
"less": "~4.1.3",
|
|
50
50
|
"prettier": "~2.8.4",
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"sass": "1.62.1",
|
|
54
54
|
"sass-loader": "10.4.1",
|
|
55
55
|
"semver": "~7.3.8",
|
|
56
|
-
"tsx": "
|
|
57
|
-
"typescript": "
|
|
58
|
-
"vite": "
|
|
59
|
-
"vue": "
|
|
60
|
-
"vue-tsc": "
|
|
56
|
+
"tsx": "3.12.7",
|
|
57
|
+
"typescript": "4.9.5",
|
|
58
|
+
"vite": "4.3.4",
|
|
59
|
+
"vue": "3.2.47",
|
|
60
|
+
"vue-tsc": "1.6.4"
|
|
61
61
|
},
|
|
62
62
|
"main": "./dist/kengic-uni.js",
|
|
63
63
|
"module": "./dist/kengic-uni.js",
|
package/dist/index.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.uni-badge--x{display:inline-block;position:relative}.uni-badge--absolute{position:absolute}.uni-badge--small{transform:scale(.8);transform-origin:center center}.uni-badge{display:flex;overflow:hidden;box-sizing:border-box;font-feature-settings:"tnum";min-width:20px;justify-content:center;flex-direction:row;height:20px;padding:0 4px;line-height:18px;color:#fff;border-radius:100px;background-color:#909399;background-color:transparent;border:1px solid #fff;text-align:center;font-family:Helvetica Neue,Helvetica,sans-serif;font-size:12px;z-index:999;cursor:pointer}.uni-badge--info{color:#fff;background-color:#909399}.uni-badge--primary{background-color:#2979ff}.uni-badge--success{background-color:#4cd964}.uni-badge--warning{background-color:#f0ad4e}.uni-badge--error{background-color:#dd524d}.uni-badge--inverted{padding:0 5px 0 0;color:#909399}.uni-badge--info-inverted{color:#909399;background-color:transparent}.uni-badge--primary-inverted{color:#2979ff;background-color:transparent}.uni-badge--success-inverted{color:#4cd964;background-color:transparent}.uni-badge--warning-inverted{color:#f0ad4e;background-color:transparent}.uni-badge--error-inverted{color:#dd524d;background-color:transparent}.uni-card{margin:10px;border-radius:4px;overflow:hidden;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif;background-color:#fff;flex:1}.uni-card .uni-card__cover{position:relative;margin-top:10px;flex-direction:row;overflow:hidden;border-radius:4px}.uni-card .uni-card__cover .uni-card__cover-image{flex:1;vertical-align:middle}.uni-card .uni-card__header{display:flex;border-bottom:1px #ebeef5 solid;flex-direction:row;align-items:center;padding:10px;overflow:hidden}.uni-card .uni-card__header .uni-card__header-box{display:flex;flex:1;flex-direction:row;align-items:center;overflow:hidden}.uni-card .uni-card__header .uni-card__header-avatar{width:40px;height:40px;overflow:hidden;border-radius:5px;margin-right:10px}.uni-card .uni-card__header .uni-card__header-avatar .uni-card__header-avatar-image{flex:1;width:40px;height:40px}.uni-card .uni-card__header .uni-card__header-content{display:flex;flex-direction:column;justify-content:center;flex:1;overflow:hidden}.uni-card .uni-card__header .uni-card__header-content .uni-card__header-content-title{font-size:15px;color:#3a3a3a}.uni-card .uni-card__header .uni-card__header-content .uni-card__header-content-subtitle{font-size:12px;margin-top:5px;color:#909399}.uni-card .uni-card__header .uni-card__header-extra{line-height:12px}.uni-card .uni-card__header .uni-card__header-extra .uni-card__header-extra-text{font-size:12px;color:#909399}.uni-card .uni-card__content{padding:10px;font-size:14px;color:#6a6a6a;line-height:22px}.uni-card .uni-card__actions{font-size:12px}.uni-card--border{border:1px solid #ebeef5}.uni-card--shadow{position:relative;box-shadow:0 0 6px 1px #a5a5a533}.uni-card--full{margin:0;border-left-width:0;border-radius:0}.uni-card--full:after{border-radius:0}.uni-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;lines:1}.uni-easyinput{width:100%;flex:1;position:relative;text-align:left;color:#333;font-size:14px}.uni-easyinput__content{flex:1;width:100%;display:flex;box-sizing:border-box;flex-direction:row;align-items:center;border-color:#fff;transition-property:border-color;transition-duration:.3s}.uni-easyinput__content-input{width:auto;position:relative;overflow:hidden;flex:1;line-height:1;font-size:14px;height:35px}.uni-easyinput__placeholder-class{color:#999;font-size:12px}.is-textarea{align-items:flex-start}.is-textarea-icon{margin-top:5px}.uni-easyinput__content-textarea{position:relative;overflow:hidden;flex:1;line-height:1.5;font-size:14px;margin:6px 6px 6px 0;height:80px;min-height:80px;width:auto}.input-padding{padding-left:10px}.content-clear-icon{padding:0 5px}.label-icon{margin-right:5px;margin-top:-1px}.is-input-border{display:flex;box-sizing:border-box;flex-direction:row;align-items:center;border:1px solid #dcdfe6;border-radius:4px;overflow:hidden}.uni-error-message{position:absolute;bottom:-17px;left:0;line-height:12px;color:#e43d33;font-size:12px;text-align:left}.uni-error-msg--boeder{position:relative;bottom:0;line-height:22px}.is-input-error-border{border-color:#e43d33}.is-input-error-border .uni-easyinput__placeholder-class{color:#f29e99}.uni-easyinput--border{margin-bottom:0;padding:10px 15px;border-top:1px #eee solid}.uni-easyinput-error{padding-bottom:0}.is-disabled{background-color:#f7f6f6;color:#d5d5d5}.is-disabled .uni-easyinput__placeholder-class{color:#d5d5d5;font-size:12px}.uni-forms-item{position:relative;display:flex;padding-bottom:22px;margin-bottom:22px;flex-direction:row}.uni-forms-item__label{display:flex;flex-direction:row;align-items:center;text-align:left;font-size:14px;color:#606266;height:36px;padding:0 12px 0 0;vertical-align:middle;flex-shrink:0;box-sizing:border-box}.uni-forms-item__label.no-label{padding:0}.uni-forms-item__content{position:relative;font-size:14px;flex:1;box-sizing:border-box;flex-direction:row}.uni-forms-item__content>uni-easyinput,.uni-forms-item__content>uni-data-picker{width:100%}.uni-forms-item .uni-forms-item__nuve-content{display:flex;flex-direction:column;flex:1}.uni-forms-item__error{color:#f56c6c;font-size:12px;line-height:1;padding-top:4px;position:absolute;top:100%;left:0;transform:translateY(-100%);bottom:5px;opacity:0}.uni-forms-item__error .error-text{color:#f56c6c;font-size:12px}.uni-forms-item__error.msg--active{opacity:1;transform:translateY(0)}.uni-forms-item.is-direction-left{flex-direction:row}.uni-forms-item.is-direction-top{flex-direction:column}.uni-forms-item.is-direction-top .uni-forms-item__label{padding:0 0 8px;line-height:1.5715;text-align:left;white-space:initial}.uni-forms-item .is-required{color:#dd524d;font-weight:700}.uni-forms-item--border{margin-bottom:0;padding:10px 0;border-top:1px #eee solid;display:flex;flex-direction:column}.uni-forms-item--border .uni-forms-item__content{flex-direction:column;justify-content:flex-start;align-items:flex-start}.uni-forms-item--border .uni-forms-item__content .uni-forms-item__error{position:relative;top:5px;left:0;padding-top:0}.uni-forms-item--border .uni-forms-item__error{position:relative;top:0px;left:0;padding-top:0;margin-top:5px}.is-first-border{border:none;border-width:0}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { default as UniBadge } from './uni-ui/uni-badge/uni-badge.vue';
|
|
2
|
-
export { default as UniCard } from './uni-ui/uni-card/uni-card.vue';
|
|
3
|
-
export { default as UniEasyinput } from './uni-ui/uni-easyinput/uni-easyinput.vue';
|
|
4
|
-
export { default as UniForms } from './uni-ui/uni-forms/uni-forms.vue';
|
|
5
|
-
export { default as UniFormsItem } from './uni-ui/uni-forms-item/uni-forms-item.vue';
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
type: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
inverted: {
|
|
7
|
-
type: BooleanConstructor;
|
|
8
|
-
default: boolean;
|
|
9
|
-
};
|
|
10
|
-
isDot: {
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
default: boolean;
|
|
13
|
-
};
|
|
14
|
-
maxNum: {
|
|
15
|
-
type: NumberConstructor;
|
|
16
|
-
default: number;
|
|
17
|
-
};
|
|
18
|
-
absolute: {
|
|
19
|
-
type: StringConstructor;
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
22
|
-
offset: {
|
|
23
|
-
type: ArrayConstructor;
|
|
24
|
-
default(): number[];
|
|
25
|
-
};
|
|
26
|
-
text: {
|
|
27
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
28
|
-
default: string;
|
|
29
|
-
};
|
|
30
|
-
size: {
|
|
31
|
-
type: StringConstructor;
|
|
32
|
-
default: string;
|
|
33
|
-
};
|
|
34
|
-
customStyle: {
|
|
35
|
-
type: ObjectConstructor;
|
|
36
|
-
default(): {};
|
|
37
|
-
};
|
|
38
|
-
}, any, {}, {
|
|
39
|
-
width(): number;
|
|
40
|
-
classNames(): string;
|
|
41
|
-
positionStyle(): any;
|
|
42
|
-
dotStyle(): {
|
|
43
|
-
width?: undefined;
|
|
44
|
-
minWidth?: undefined;
|
|
45
|
-
height?: undefined;
|
|
46
|
-
padding?: undefined;
|
|
47
|
-
borderRadius?: undefined;
|
|
48
|
-
} | {
|
|
49
|
-
width: string;
|
|
50
|
-
minWidth: string;
|
|
51
|
-
height: string;
|
|
52
|
-
padding: string;
|
|
53
|
-
borderRadius: string;
|
|
54
|
-
};
|
|
55
|
-
displayValue(): string | number;
|
|
56
|
-
}, {
|
|
57
|
-
onClick(): void;
|
|
58
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
59
|
-
type: {
|
|
60
|
-
type: StringConstructor;
|
|
61
|
-
default: string;
|
|
62
|
-
};
|
|
63
|
-
inverted: {
|
|
64
|
-
type: BooleanConstructor;
|
|
65
|
-
default: boolean;
|
|
66
|
-
};
|
|
67
|
-
isDot: {
|
|
68
|
-
type: BooleanConstructor;
|
|
69
|
-
default: boolean;
|
|
70
|
-
};
|
|
71
|
-
maxNum: {
|
|
72
|
-
type: NumberConstructor;
|
|
73
|
-
default: number;
|
|
74
|
-
};
|
|
75
|
-
absolute: {
|
|
76
|
-
type: StringConstructor;
|
|
77
|
-
default: string;
|
|
78
|
-
};
|
|
79
|
-
offset: {
|
|
80
|
-
type: ArrayConstructor;
|
|
81
|
-
default(): number[];
|
|
82
|
-
};
|
|
83
|
-
text: {
|
|
84
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
85
|
-
default: string;
|
|
86
|
-
};
|
|
87
|
-
size: {
|
|
88
|
-
type: StringConstructor;
|
|
89
|
-
default: string;
|
|
90
|
-
};
|
|
91
|
-
customStyle: {
|
|
92
|
-
type: ObjectConstructor;
|
|
93
|
-
default(): {};
|
|
94
|
-
};
|
|
95
|
-
}>> & {
|
|
96
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
97
|
-
}, {
|
|
98
|
-
type: string;
|
|
99
|
-
inverted: boolean;
|
|
100
|
-
isDot: boolean;
|
|
101
|
-
maxNum: number;
|
|
102
|
-
absolute: string;
|
|
103
|
-
offset: unknown[];
|
|
104
|
-
text: string | number;
|
|
105
|
-
size: string;
|
|
106
|
-
customStyle: Record<string, any>;
|
|
107
|
-
}>;
|
|
108
|
-
export default _default;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
separator: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
separatorClass: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
10
|
-
}, any, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
-
separator: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
default: string;
|
|
14
|
-
};
|
|
15
|
-
separatorClass: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
default: string;
|
|
18
|
-
};
|
|
19
|
-
}>>, {
|
|
20
|
-
separator: string;
|
|
21
|
-
separatorClass: string;
|
|
22
|
-
}>;
|
|
23
|
-
export default _default;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
to: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
replace: {
|
|
7
|
-
type: BooleanConstructor;
|
|
8
|
-
default: boolean;
|
|
9
|
-
};
|
|
10
|
-
}, any, {
|
|
11
|
-
currentPage: string;
|
|
12
|
-
}, {
|
|
13
|
-
separator(): any;
|
|
14
|
-
separatorClass(): any;
|
|
15
|
-
}, {
|
|
16
|
-
navTo(): void;
|
|
17
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
-
to: {
|
|
19
|
-
type: StringConstructor;
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
22
|
-
replace: {
|
|
23
|
-
type: BooleanConstructor;
|
|
24
|
-
default: boolean;
|
|
25
|
-
};
|
|
26
|
-
}>>, {
|
|
27
|
-
replace: boolean;
|
|
28
|
-
to: string;
|
|
29
|
-
}>;
|
|
30
|
-
export default _default;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
export default calendar;
|
|
2
|
-
declare namespace calendar {
|
|
3
|
-
const lunarInfo: number[];
|
|
4
|
-
const solarMonth: number[];
|
|
5
|
-
const Gan: string[];
|
|
6
|
-
const Zhi: string[];
|
|
7
|
-
const Animals: string[];
|
|
8
|
-
const solarTerm: string[];
|
|
9
|
-
const sTermInfo: string[];
|
|
10
|
-
const nStr1: string[];
|
|
11
|
-
const nStr2: string[];
|
|
12
|
-
const nStr3: string[];
|
|
13
|
-
function lYearDays(y: any): number;
|
|
14
|
-
function leapMonth(y: any): number;
|
|
15
|
-
function leapDays(y: any): 0 | 30 | 29;
|
|
16
|
-
function monthDays(y: any, m: any): 30 | 29 | -1;
|
|
17
|
-
function solarDays(y: any, m: any): number;
|
|
18
|
-
function toGanZhiYear(lYear: any): string;
|
|
19
|
-
function toAstro(cMonth: any, cDay: any): string;
|
|
20
|
-
function toGanZhi(offset: any): string;
|
|
21
|
-
function getTerm(y: any, n: any): number;
|
|
22
|
-
function toChinaMonth(m: any): string | -1;
|
|
23
|
-
function toChinaDay(d: any): string;
|
|
24
|
-
function getAnimal(y: any): string;
|
|
25
|
-
function solar2lunar(y: any, m: any, d: any): -1 | {
|
|
26
|
-
lYear: number;
|
|
27
|
-
lMonth: number;
|
|
28
|
-
lDay: number;
|
|
29
|
-
Animal: string;
|
|
30
|
-
IMonthCn: string;
|
|
31
|
-
IDayCn: string;
|
|
32
|
-
cYear: any;
|
|
33
|
-
cMonth: any;
|
|
34
|
-
cDay: any;
|
|
35
|
-
gzYear: string;
|
|
36
|
-
gzMonth: string;
|
|
37
|
-
gzDay: string;
|
|
38
|
-
isToday: boolean;
|
|
39
|
-
isLeap: boolean;
|
|
40
|
-
nWeek: number;
|
|
41
|
-
ncWeek: string;
|
|
42
|
-
isTerm: boolean;
|
|
43
|
-
Term: string | null;
|
|
44
|
-
astro: string;
|
|
45
|
-
};
|
|
46
|
-
function lunar2solar(y: any, m: any, d: any, isLeapMonth: any): -1 | {
|
|
47
|
-
lYear: number;
|
|
48
|
-
lMonth: number;
|
|
49
|
-
lDay: number;
|
|
50
|
-
Animal: string;
|
|
51
|
-
IMonthCn: string;
|
|
52
|
-
IDayCn: string;
|
|
53
|
-
cYear: any;
|
|
54
|
-
cMonth: any;
|
|
55
|
-
cDay: any;
|
|
56
|
-
gzYear: string;
|
|
57
|
-
gzMonth: string;
|
|
58
|
-
gzDay: string;
|
|
59
|
-
isToday: boolean;
|
|
60
|
-
isLeap: boolean;
|
|
61
|
-
nWeek: number;
|
|
62
|
-
ncWeek: string;
|
|
63
|
-
isTerm: boolean;
|
|
64
|
-
Term: string | null;
|
|
65
|
-
astro: string;
|
|
66
|
-
};
|
|
67
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
en: {
|
|
3
|
-
"uni-calender.ok": string;
|
|
4
|
-
"uni-calender.cancel": string;
|
|
5
|
-
"uni-calender.today": string;
|
|
6
|
-
"uni-calender.MON": string;
|
|
7
|
-
"uni-calender.TUE": string;
|
|
8
|
-
"uni-calender.WED": string;
|
|
9
|
-
"uni-calender.THU": string;
|
|
10
|
-
"uni-calender.FRI": string;
|
|
11
|
-
"uni-calender.SAT": string;
|
|
12
|
-
"uni-calender.SUN": string;
|
|
13
|
-
};
|
|
14
|
-
'zh-Hans': {
|
|
15
|
-
"uni-calender.ok": string;
|
|
16
|
-
"uni-calender.cancel": string;
|
|
17
|
-
"uni-calender.today": string;
|
|
18
|
-
"uni-calender.SUN": string;
|
|
19
|
-
"uni-calender.MON": string;
|
|
20
|
-
"uni-calender.TUE": string;
|
|
21
|
-
"uni-calender.WED": string;
|
|
22
|
-
"uni-calender.THU": string;
|
|
23
|
-
"uni-calender.FRI": string;
|
|
24
|
-
"uni-calender.SAT": string;
|
|
25
|
-
};
|
|
26
|
-
'zh-Hant': {
|
|
27
|
-
"uni-calender.ok": string;
|
|
28
|
-
"uni-calender.cancel": string;
|
|
29
|
-
"uni-calender.today": string;
|
|
30
|
-
"uni-calender.SUN": string;
|
|
31
|
-
"uni-calender.MON": string;
|
|
32
|
-
"uni-calender.TUE": string;
|
|
33
|
-
"uni-calender.WED": string;
|
|
34
|
-
"uni-calender.THU": string;
|
|
35
|
-
"uni-calender.FRI": string;
|
|
36
|
-
"uni-calender.SAT": string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
export default _default;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
weeks: {
|
|
3
|
-
type: ObjectConstructor;
|
|
4
|
-
default(): {};
|
|
5
|
-
};
|
|
6
|
-
calendar: {
|
|
7
|
-
type: ObjectConstructor;
|
|
8
|
-
default: () => {};
|
|
9
|
-
};
|
|
10
|
-
selected: {
|
|
11
|
-
type: ArrayConstructor;
|
|
12
|
-
default: () => never[];
|
|
13
|
-
};
|
|
14
|
-
lunar: {
|
|
15
|
-
type: BooleanConstructor;
|
|
16
|
-
default: boolean;
|
|
17
|
-
};
|
|
18
|
-
}, any, any, {
|
|
19
|
-
todayText(): any;
|
|
20
|
-
}, {
|
|
21
|
-
choiceDate(weeks: any): void;
|
|
22
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
-
weeks: {
|
|
24
|
-
type: ObjectConstructor;
|
|
25
|
-
default(): {};
|
|
26
|
-
};
|
|
27
|
-
calendar: {
|
|
28
|
-
type: ObjectConstructor;
|
|
29
|
-
default: () => {};
|
|
30
|
-
};
|
|
31
|
-
selected: {
|
|
32
|
-
type: ArrayConstructor;
|
|
33
|
-
default: () => never[];
|
|
34
|
-
};
|
|
35
|
-
lunar: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
default: boolean;
|
|
38
|
-
};
|
|
39
|
-
}>> & {
|
|
40
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
41
|
-
}, {
|
|
42
|
-
weeks: Record<string, any>;
|
|
43
|
-
calendar: Record<string, any>;
|
|
44
|
-
selected: unknown[];
|
|
45
|
-
lunar: boolean;
|
|
46
|
-
}>;
|
|
47
|
-
export default _default;
|