@nutui/nutui 3.2.6-beta.1 → 3.2.6-beta.2
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/README.md +18 -4
- package/dist/nutui.es.js +4461 -4135
- package/dist/nutui.umd.js +4559 -4133
- package/dist/packages/_es/ActionSheet.js +19 -18
- package/dist/packages/_es/Address.js +85 -94
- package/dist/packages/_es/AddressList.js +12 -25
- package/dist/packages/_es/Animate.js +3 -3
- package/dist/packages/_es/Audio.js +2 -9
- package/dist/packages/_es/AudioOperate.js +1 -5
- package/dist/packages/_es/Avatar.js +10 -10
- package/dist/packages/_es/AvatarGroup.js +5 -5
- package/dist/packages/_es/BackTop.js +108 -55
- package/dist/packages/_es/Badge.js +12 -10
- package/dist/packages/_es/Barrage.js +103 -79
- package/dist/packages/_es/Button.js +3 -5
- package/dist/packages/_es/Calendar.js +23 -36
- package/dist/packages/_es/CalendarItem.js +3 -4
- package/dist/packages/_es/Card.js +5 -15
- package/dist/packages/_es/Cascader.js +11 -12
- package/dist/packages/_es/Category.js +12 -13
- package/dist/packages/_es/CategoryPane.js +13 -17
- package/dist/packages/_es/Cell.js +12 -9
- package/dist/packages/_es/CellGroup.js +2 -4
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +2 -2
- package/dist/packages/_es/CircleProgress.js +82 -98
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +34 -65
- package/dist/packages/_es/CollapseItem.js +60 -93
- package/dist/packages/_es/Comment.js +19 -43
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +3 -3
- package/dist/packages/_es/CountUp.js +52 -47
- package/dist/packages/_es/DatePicker.js +54 -37
- package/dist/packages/_es/Dialog.js +88 -9
- package/dist/packages/_es/Divider.js +3 -3
- package/dist/packages/_es/Drag.js +49 -75
- package/dist/packages/_es/Ecard.js +18 -20
- package/dist/packages/_es/Elevator.js +76 -101
- package/dist/packages/_es/Ellipsis.js +100 -140
- package/dist/packages/_es/Empty.js +4 -6
- package/dist/packages/_es/FixedNav.js +6 -11
- package/dist/packages/_es/Form.js +4 -4
- package/dist/packages/_es/FormItem.js +1 -3
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +27 -10
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +114 -13
- package/dist/packages/_es/ImagePreview.js +411 -149
- package/dist/packages/_es/Indicator.js +3 -3
- package/dist/packages/_es/InfiniteLoading.js +115 -103
- package/dist/packages/_es/Input.js +32 -56
- package/dist/packages/_es/InputNumber.js +16 -25
- package/dist/packages/_es/Invoice.js +5 -6
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +34 -47
- package/dist/packages/_es/Menu.js +35 -35
- package/dist/packages/_es/MenuItem.js +29 -56
- package/dist/packages/_es/Navbar.js +39 -49
- package/dist/packages/_es/NoticeBar.js +45 -54
- package/dist/packages/_es/Notify.js +162 -44
- package/dist/packages/_es/NumberKeyboard.js +20 -15
- package/dist/packages/_es/OldPicker.js +116 -130
- package/dist/packages/_es/OverLay.js +28 -5
- package/dist/packages/_es/Pagination.js +5 -8
- package/dist/packages/_es/Picker.js +74 -198
- package/dist/packages/_es/Popover.js +881 -201
- package/dist/packages/_es/Popup.js +84 -28
- package/dist/packages/_es/Price.js +6 -22
- package/dist/packages/_es/Progress.js +11 -18
- package/dist/packages/_es/PullRefresh.js +2 -4
- package/dist/packages/_es/Radio.js +3 -3
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +34 -48
- package/dist/packages/_es/Rate.js +14 -15
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +36 -39
- package/dist/packages/_es/ShortPassword.js +66 -97
- package/dist/packages/_es/SideNavBar.js +18 -7
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +80 -113
- package/dist/packages/_es/Skeleton.js +11 -12
- package/dist/packages/_es/Sku.js +38 -63
- package/dist/packages/_es/Step.js +2 -7
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +23 -33
- package/dist/packages/_es/SubSideNavBar.js +2 -4
- package/dist/packages/_es/Swipe.js +26 -41
- package/dist/packages/_es/Swiper.js +21 -38
- package/dist/packages/_es/SwiperItem.js +2 -2
- package/dist/packages/_es/Switch.js +8 -8
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +13 -15
- package/dist/packages/_es/TabbarItem.js +30 -24
- package/dist/packages/_es/Table.js +17 -22
- package/dist/packages/_es/Tabs.js +16 -49
- package/dist/packages/_es/Tag.js +5 -6
- package/dist/packages/_es/TextArea.js +49 -114
- package/dist/packages/_es/TimeDetail.js +3 -4
- package/dist/packages/_es/TimePannel.js +3 -3
- package/dist/packages/_es/TimeSelect.js +10 -12
- package/dist/packages/_es/Toast.js +164 -53
- package/dist/packages/_es/TrendArrow.js +4 -6
- package/dist/packages/_es/Uploader.js +140 -141
- package/dist/packages/_es/Video.js +18 -39
- package/dist/packages/_es/WaterMark.js +14 -22
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +6 -44
- package/dist/packages/_es/index2.js +31 -8
- package/dist/packages/_es/index3.js +7 -64
- package/dist/packages/_es/index4.js +62 -424
- package/dist/packages/_es/{index.taro.js → index5.js} +154 -167
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/_es/style.css +3 -21
- package/dist/packages/checkbox/index.scss +1 -0
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/menuitem/index.scss +12 -3
- package/dist/smartips/attributes.json +5 -1
- package/dist/smartips/tags.json +1 -0
- package/dist/smartips/web-types.json +11 -2
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +48 -48
- package/dist/styles/themes/jdb.scss +48 -48
- package/dist/styles/themes/jddkh.scss +48 -48
- package/dist/styles/themes/jdt.scss +48 -48
- package/dist/types/__VUE/actionsheet/{index.taro.vue.d.ts → index.vue.d.ts} +9 -9
- package/dist/types/__VUE/address/{index.taro.vue.d.ts → index.vue.d.ts} +33 -73
- package/dist/types/__VUE/addresslist/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/animate/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/avatar/{index.taro.vue.d.ts → index.vue.d.ts} +6 -6
- package/dist/types/__VUE/avatargroup/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/backtop/{index.taro.vue.d.ts → index.vue.d.ts} +37 -15
- package/dist/types/__VUE/badge/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/barrage/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/button/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendar/{index.taro.vue.d.ts → index.vue.d.ts} +1 -13
- package/dist/types/__VUE/calendaritem/{index.taro.vue.d.ts → index.vue.d.ts} +17 -17
- package/dist/types/__VUE/card/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/cascader/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/category/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/categorypane/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/cell/{index.taro.vue.d.ts → index.vue.d.ts} +5 -12
- package/dist/types/__VUE/checkbox/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/circleprogress/{index.taro.vue.d.ts → index.vue.d.ts} +15 -14
- package/dist/types/__VUE/collapse/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/collapseitem/{index.taro.vue.d.ts → index.vue.d.ts} +10 -2
- package/dist/types/__VUE/comment/{index.taro.vue.d.ts → index.vue.d.ts} +2 -1
- package/dist/types/__VUE/configprovider/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/countdown/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/countup/{index.taro.vue.d.ts → index.vue.d.ts} +7 -5
- package/dist/types/__VUE/datepicker/{index.taro.vue.d.ts → index.vue.d.ts} +5 -5
- package/dist/types/__VUE/dialog/index.d.ts +48 -0
- package/dist/types/__VUE/dialog/{index.taro.vue.d.ts → index.vue.d.ts} +12 -9
- package/dist/types/__VUE/divider/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/drag/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
- package/dist/types/__VUE/ecard/{index.taro.vue.d.ts → index.vue.d.ts} +3 -3
- package/dist/types/__VUE/elevator/{index.taro.vue.d.ts → index.vue.d.ts} +2 -11
- package/dist/types/__VUE/ellipsis/{index.taro.vue.d.ts → index.vue.d.ts} +0 -4
- package/dist/types/__VUE/empty/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/fixednav/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/form/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/grid/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/griditem/{index.taro.vue.d.ts → index.vue.d.ts} +27 -2
- package/dist/types/__VUE/image/index.vue.d.ts +117 -0
- package/dist/types/__VUE/image/type.d.ts +6 -0
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +109 -0
- package/dist/types/__VUE/imagepreview/index.d.ts +25 -0
- package/dist/types/__VUE/imagepreview/{index.taro.vue.d.ts → index.vue.d.ts} +44 -33
- package/dist/types/__VUE/indicator/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/infiniteloading/{index.taro.vue.d.ts → index.vue.d.ts} +12 -19
- package/dist/types/__VUE/input/{index.taro.vue.d.ts → index.vue.d.ts} +16 -34
- package/dist/types/__VUE/inputnumber/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/invoice/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/layout/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/list/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/menu/{index.taro.vue.d.ts → index.vue.d.ts} +0 -1
- package/dist/types/__VUE/menuitem/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/navbar/{index.taro.vue.d.ts → index.vue.d.ts} +3 -2
- package/dist/types/__VUE/noticebar/{index.taro.vue.d.ts → index.vue.d.ts} +4 -4
- package/dist/types/__VUE/notify/index.d.ts +26 -0
- package/dist/types/__VUE/notify/{index.taro.vue.d.ts → index.vue.d.ts} +18 -5
- package/dist/types/__VUE/numberkeyboard/{index.taro.vue.d.ts → index.vue.d.ts} +29 -5
- package/dist/types/__VUE/oldpicker/{ColumnTaro.vue.d.ts → Column.vue.d.ts} +17 -28
- package/dist/types/__VUE/oldpicker/{index.taro.vue.d.ts → index.vue.d.ts} +44 -64
- package/dist/types/__VUE/pagination/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/picker/{ColumnTaro.vue.d.ts → Column.vue.d.ts} +4 -16
- package/dist/types/__VUE/picker/{index.taro.vue.d.ts → index.vue.d.ts} +28 -53
- package/dist/types/__VUE/popover/{index.taro.vue.d.ts → index.vue.d.ts} +13 -15
- package/dist/types/__VUE/popup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/price/{index.taro.vue.d.ts → index.vue.d.ts} +0 -1
- package/dist/types/__VUE/progress/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/radio/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/range/{index.taro.vue.d.ts → index.vue.d.ts} +7 -8
- package/dist/types/__VUE/rate/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/searchbar/{index.taro.vue.d.ts → index.vue.d.ts} +19 -19
- package/dist/types/__VUE/shortpassword/{index.taro.vue.d.ts → index.vue.d.ts} +21 -6
- package/dist/types/__VUE/sidenavbar/{index.taro.vue.d.ts → index.vue.d.ts} +5 -0
- package/dist/types/__VUE/signature/{index.taro.vue.d.ts → index.vue.d.ts} +5 -8
- package/dist/types/__VUE/skeleton/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/sku/index.vue.d.ts +310 -0
- package/dist/types/__VUE/step/index.vue.d.ts +1 -1
- package/dist/types/__VUE/steps/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/sticky/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/swipe/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
- package/dist/types/__VUE/swiper/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
- package/dist/types/__VUE/swiperitem/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/switch/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/tabbar/{index.taro.vue.d.ts → index.vue.d.ts} +2 -1
- package/dist/types/__VUE/tabbaritem/{index.taro.vue.d.ts → index.vue.d.ts} +9 -9
- package/dist/types/__VUE/table/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/tabs/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/tag/{index.taro.vue.d.ts → index.vue.d.ts} +4 -4
- package/dist/types/__VUE/tag/type.d.ts +5 -0
- package/dist/types/__VUE/textarea/{index.taro.vue.d.ts → index.vue.d.ts} +3 -5
- package/dist/types/__VUE/timedetail/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/timepannel/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/timeselect/{index.taro.vue.d.ts → index.vue.d.ts} +8 -7
- package/dist/types/__VUE/toast/index.d.ts +16 -0
- package/dist/types/__VUE/toast/{index.taro.vue.d.ts → index.vue.d.ts} +22 -44
- package/dist/types/__VUE/trendarrow/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/uploader/{index.taro.vue.d.ts → index.vue.d.ts} +13 -22
- package/dist/types/__VUE/watermark/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +89 -89
- package/package.json +3 -2
- package/dist/packages/_es/use-lock-scroll.js +0 -23
- package/dist/types/__VUE/button/index.taro.vue.d.ts +0 -116
- package/dist/types/__VUE/icon/index.taro.vue.d.ts +0 -74
- package/dist/types/__VUE/image/index.taro.vue.d.ts +0 -33
- package/dist/types/__VUE/overlay/index.taro.vue.d.ts +0 -85
- package/dist/types/__VUE/popup/index.taro.vue.d.ts +0 -1728
- package/dist/types/__VUE/sku/index.taro.vue.d.ts +0 -182
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.6-beta.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, computed, reactive,
|
|
6
|
+
import { ref, computed, reactive, watch, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle, createTextVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
-
import Taro from "@tarojs/taro";
|
|
9
|
-
import { u as useExpose } from "./index2.js";
|
|
10
8
|
import { r as requestAniFrame } from "./raf.js";
|
|
9
|
+
import { u as useExpose } from "./index3.js";
|
|
11
10
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
12
11
|
const Utils = {
|
|
13
12
|
isLeapYear: function(y) {
|
|
@@ -91,7 +90,6 @@ const Utils = {
|
|
|
91
90
|
}
|
|
92
91
|
};
|
|
93
92
|
const { create, translate } = createComponent("calendar-item");
|
|
94
|
-
const TARO_ENV = Taro.getEnv();
|
|
95
93
|
const _sfc_main = create({
|
|
96
94
|
props: {
|
|
97
95
|
type: {
|
|
@@ -140,7 +138,7 @@ const _sfc_main = create({
|
|
|
140
138
|
},
|
|
141
139
|
defaultValue: {
|
|
142
140
|
type: [String, Array],
|
|
143
|
-
default:
|
|
141
|
+
default: ""
|
|
144
142
|
},
|
|
145
143
|
startDate: {
|
|
146
144
|
type: String,
|
|
@@ -154,10 +152,14 @@ const _sfc_main = create({
|
|
|
154
152
|
emits: ["choose", "update", "close", "select"],
|
|
155
153
|
setup(props, { emit, slots }) {
|
|
156
154
|
const weeks = ref(translate("weekdays"));
|
|
157
|
-
const scalePx = ref(2);
|
|
158
|
-
const viewHeight = ref(0);
|
|
159
|
-
const scrollWithAnimation = ref(false);
|
|
160
155
|
const months = ref(null);
|
|
156
|
+
const monthsPanel = ref(null);
|
|
157
|
+
const weeksPanel = ref(null);
|
|
158
|
+
const viewArea = ref(null);
|
|
159
|
+
const viewHeight = ref(0);
|
|
160
|
+
const compConthsData = computed(() => {
|
|
161
|
+
return state.monthsData.slice(state.defaultRange[0], state.defaultRange[1]);
|
|
162
|
+
});
|
|
161
163
|
const showTopBtn = computed(() => {
|
|
162
164
|
return slots.btn;
|
|
163
165
|
});
|
|
@@ -169,9 +171,7 @@ const _sfc_main = create({
|
|
|
169
171
|
});
|
|
170
172
|
const state = reactive({
|
|
171
173
|
yearMonthTitle: "",
|
|
172
|
-
defaultRange: [
|
|
173
|
-
compConthsDatas: [],
|
|
174
|
-
containerHeight: "100%",
|
|
174
|
+
defaultRange: [],
|
|
175
175
|
currDate: "",
|
|
176
176
|
propStartDate: "",
|
|
177
177
|
propEndDate: "",
|
|
@@ -197,7 +197,6 @@ const _sfc_main = create({
|
|
|
197
197
|
timer: 0,
|
|
198
198
|
currentIndex: 0,
|
|
199
199
|
avgHeight: 0,
|
|
200
|
-
scrollTop: 0,
|
|
201
200
|
monthsNum: 0
|
|
202
201
|
});
|
|
203
202
|
const splitDate = (date) => {
|
|
@@ -257,7 +256,7 @@ const _sfc_main = create({
|
|
|
257
256
|
days[4] = Utils.getWhatDay(+days[0], +days[1], +days[2]);
|
|
258
257
|
if (type == "multiple") {
|
|
259
258
|
if (state.currDate.length > 0) {
|
|
260
|
-
let hasIndex =
|
|
259
|
+
let hasIndex = void 0;
|
|
261
260
|
state.currDate.forEach((item, index) => {
|
|
262
261
|
if (item == days[3]) {
|
|
263
262
|
hasIndex = index;
|
|
@@ -266,7 +265,7 @@ const _sfc_main = create({
|
|
|
266
265
|
if (isFirst) {
|
|
267
266
|
state.chooseData.push([...days]);
|
|
268
267
|
} else {
|
|
269
|
-
if (hasIndex !==
|
|
268
|
+
if (hasIndex !== void 0) {
|
|
270
269
|
state.currDate.splice(hasIndex, 1);
|
|
271
270
|
state.chooseData.splice(hasIndex, 1);
|
|
272
271
|
} else {
|
|
@@ -324,7 +323,7 @@ const _sfc_main = create({
|
|
|
324
323
|
month = month == 12 ? 1 : ++month;
|
|
325
324
|
break;
|
|
326
325
|
}
|
|
327
|
-
return [year, Utils.getNumTwoBit(month), Utils.getMonthDays(String(year), String(month))];
|
|
326
|
+
return [year + "", Utils.getNumTwoBit(month), Utils.getMonthDays(String(year), String(month)) + ""];
|
|
328
327
|
};
|
|
329
328
|
const getDaysStatus = (days, type, dateInfo) => {
|
|
330
329
|
let { year, month } = dateInfo;
|
|
@@ -357,13 +356,13 @@ const _sfc_main = create({
|
|
|
357
356
|
};
|
|
358
357
|
const getMonth = (curData, type) => {
|
|
359
358
|
const preMonthDays = Utils.getMonthPreDay(+curData[0], +curData[1]);
|
|
360
|
-
let preMonth = curData[1] - 1;
|
|
361
|
-
let preYear = curData[0];
|
|
359
|
+
let preMonth = Number(curData[1]) - 1;
|
|
360
|
+
let preYear = Number(curData[0]);
|
|
362
361
|
if (preMonth <= 0) {
|
|
363
362
|
preMonth = 12;
|
|
364
363
|
preYear += 1;
|
|
365
364
|
}
|
|
366
|
-
const currMonthDays = Utils.getMonthDays(curData[0], curData[1]);
|
|
365
|
+
const currMonthDays = Utils.getMonthDays(String(curData[0]), String(curData[1]));
|
|
367
366
|
const preCurrMonthDays = Utils.getMonthDays(preYear + "", preMonth + "");
|
|
368
367
|
const title = {
|
|
369
368
|
year: curData[0],
|
|
@@ -373,19 +372,18 @@ const _sfc_main = create({
|
|
|
373
372
|
curData,
|
|
374
373
|
title: translate("monthTitle", title.year, title.month),
|
|
375
374
|
monthData: [
|
|
376
|
-
...getPreDaysStatus(
|
|
375
|
+
...getPreDaysStatus(
|
|
376
|
+
preMonthDays,
|
|
377
|
+
"prev",
|
|
378
|
+
{ month: preMonth + "", year: preYear + "" },
|
|
379
|
+
preCurrMonthDays
|
|
380
|
+
),
|
|
377
381
|
...getDaysStatus(currMonthDays, "curr", title)
|
|
378
|
-
]
|
|
382
|
+
],
|
|
383
|
+
cssHeight: 0,
|
|
384
|
+
cssScrollHeight: 0
|
|
379
385
|
};
|
|
380
|
-
|
|
381
|
-
if (TARO_ENV === Taro.ENV_TYPE.WEB) {
|
|
382
|
-
titleHeight = 46 * scalePx.value + 16 * scalePx.value * 2;
|
|
383
|
-
itemHeight = 128 * scalePx.value;
|
|
384
|
-
} else {
|
|
385
|
-
titleHeight = Math.floor(46 * scalePx.value) + Math.floor(16 * scalePx.value) * 2;
|
|
386
|
-
itemHeight = Math.floor(128 * scalePx.value);
|
|
387
|
-
}
|
|
388
|
-
monthInfo.cssHeight = titleHeight + (monthInfo.monthData.length > 35 ? itemHeight * 6 : itemHeight * 5);
|
|
386
|
+
monthInfo.cssHeight = 39 + (monthInfo.monthData.length > 35 ? 384 : 320);
|
|
389
387
|
let cssScrollHeight = 0;
|
|
390
388
|
if (state.monthsData.length > 0) {
|
|
391
389
|
cssScrollHeight = state.monthsData[state.monthsData.length - 1].cssScrollHeight + state.monthsData[state.monthsData.length - 1].cssHeight;
|
|
@@ -493,7 +491,7 @@ const _sfc_main = create({
|
|
|
493
491
|
state.currentIndex = current;
|
|
494
492
|
state.yearMonthTitle = state.monthsData[state.currentIndex].title;
|
|
495
493
|
if (state.defaultData.length > 0) {
|
|
496
|
-
if (
|
|
494
|
+
if (props.type == "range") {
|
|
497
495
|
chooseDay({ day: state.defaultData[2], type: "curr" }, state.monthsData[state.currentIndex], true);
|
|
498
496
|
chooseDay({ day: state.defaultData[5], type: "curr" }, state.monthsData[lastCurrent], true);
|
|
499
497
|
} else if (props.type == "multiple") {
|
|
@@ -513,12 +511,14 @@ const _sfc_main = create({
|
|
|
513
511
|
}
|
|
514
512
|
let lastItem = state.monthsData[state.monthsData.length - 1];
|
|
515
513
|
let containerHeight = lastItem.cssHeight + lastItem.cssScrollHeight;
|
|
516
|
-
|
|
517
|
-
|
|
514
|
+
requestAniFrame(() => {
|
|
515
|
+
if ((months == null ? void 0 : months.value) && (monthsPanel == null ? void 0 : monthsPanel.value) && (viewArea == null ? void 0 : viewArea.value)) {
|
|
516
|
+
viewHeight.value = months.value.clientHeight;
|
|
517
|
+
monthsPanel.value.style.height = `${containerHeight}px`;
|
|
518
|
+
months.value.scrollTop = state.monthsData[state.currentIndex].cssScrollHeight;
|
|
519
|
+
}
|
|
520
|
+
});
|
|
518
521
|
state.avgHeight = Math.floor(containerHeight / (monthsNum + 1));
|
|
519
|
-
if (months == null ? void 0 : months.value) {
|
|
520
|
-
viewHeight.value = months.value.clientHeight;
|
|
521
|
-
}
|
|
522
522
|
};
|
|
523
523
|
const scrollToDate = (date) => {
|
|
524
524
|
if (Utils.compareDate(date, state.propStartDate)) {
|
|
@@ -529,16 +529,27 @@ const _sfc_main = create({
|
|
|
529
529
|
let dateArr = splitDate(date);
|
|
530
530
|
state.monthsData.forEach((item, index) => {
|
|
531
531
|
if (item.title == translate("monthTitle", dateArr[0], dateArr[1])) {
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
532
|
+
if (months.value) {
|
|
533
|
+
let distance = state.monthsData[index].cssScrollHeight - months.value.scrollTop;
|
|
534
|
+
if (props.toDateAnimation) {
|
|
535
|
+
let flag = 0;
|
|
536
|
+
let interval = setInterval(() => {
|
|
537
|
+
flag++;
|
|
538
|
+
if (months.value) {
|
|
539
|
+
let offset = distance / 10;
|
|
540
|
+
months.value.scrollTop = months.value.scrollTop + offset;
|
|
541
|
+
}
|
|
542
|
+
if (flag >= 10) {
|
|
543
|
+
clearInterval(interval);
|
|
544
|
+
if (months.value) {
|
|
545
|
+
months.value.scrollTop = state.monthsData[index].cssScrollHeight;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}, 40);
|
|
549
|
+
} else {
|
|
550
|
+
months.value.scrollTop = state.monthsData[index].cssScrollHeight;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
542
553
|
}
|
|
543
554
|
});
|
|
544
555
|
};
|
|
@@ -546,22 +557,16 @@ const _sfc_main = create({
|
|
|
546
557
|
scrollToDate
|
|
547
558
|
});
|
|
548
559
|
const setDefaultRange = (monthsNum, current) => {
|
|
549
|
-
let rangeArr = [];
|
|
550
560
|
if (monthsNum >= 3) {
|
|
551
561
|
if (current > 0 && current < monthsNum) {
|
|
552
|
-
|
|
562
|
+
state.defaultRange = [current - 1, current + 3];
|
|
553
563
|
} else if (current == 0) {
|
|
554
|
-
|
|
564
|
+
state.defaultRange = [current, current + 4];
|
|
555
565
|
} else if (current == monthsNum) {
|
|
556
|
-
|
|
566
|
+
state.defaultRange = [current - 2, current + 2];
|
|
557
567
|
}
|
|
558
568
|
} else {
|
|
559
|
-
|
|
560
|
-
}
|
|
561
|
-
if (JSON.stringify(state.defaultRange) !== JSON.stringify(rangeArr)) {
|
|
562
|
-
state.defaultRange[0] = rangeArr[0];
|
|
563
|
-
state.defaultRange[1] = rangeArr[1];
|
|
564
|
-
state.compConthsDatas = state.monthsData.slice(rangeArr[0], rangeArr[1]);
|
|
569
|
+
state.defaultRange = [0, monthsNum + 2];
|
|
565
570
|
}
|
|
566
571
|
let defaultScrollTop = state.monthsData[state.defaultRange[0]].cssScrollHeight;
|
|
567
572
|
state.translateY = defaultScrollTop;
|
|
@@ -584,7 +589,7 @@ const _sfc_main = create({
|
|
|
584
589
|
}
|
|
585
590
|
};
|
|
586
591
|
const isCurrDay = (dateInfo) => {
|
|
587
|
-
const date = `${dateInfo.year}-${dateInfo.month}-${dateInfo.day < 10 ? "0" + dateInfo.day : dateInfo.day}`;
|
|
592
|
+
const date = `${dateInfo.year}-${dateInfo.month}-${Number(dateInfo.day) < 10 ? "0" + dateInfo.day : dateInfo.day}`;
|
|
588
593
|
return Utils.isEqual(date, Utils.date2Str(new Date()));
|
|
589
594
|
};
|
|
590
595
|
const mothsViewScroll = (e) => {
|
|
@@ -604,6 +609,17 @@ const _sfc_main = create({
|
|
|
604
609
|
if (currentScrollTop < state.monthsData[current].cssScrollHeight) {
|
|
605
610
|
current -= 1;
|
|
606
611
|
}
|
|
612
|
+
} else {
|
|
613
|
+
const viewPosition = Math.round(currentScrollTop + viewHeight.value);
|
|
614
|
+
if (viewPosition < state.monthsData[current].cssScrollHeight + state.monthsData[current].cssHeight && currentScrollTop > state.monthsData[current - 1].cssScrollHeight) {
|
|
615
|
+
current -= 1;
|
|
616
|
+
}
|
|
617
|
+
if (current + 1 <= state.monthsNum && viewPosition >= state.monthsData[current + 1].cssScrollHeight + state.monthsData[current + 1].cssHeight) {
|
|
618
|
+
current += 1;
|
|
619
|
+
}
|
|
620
|
+
if (current >= 1 && currentScrollTop < state.monthsData[current - 1].cssScrollHeight) {
|
|
621
|
+
current -= 1;
|
|
622
|
+
}
|
|
607
623
|
}
|
|
608
624
|
if (state.currentIndex !== current) {
|
|
609
625
|
state.currentIndex = current;
|
|
@@ -616,21 +632,7 @@ const _sfc_main = create({
|
|
|
616
632
|
state.monthsData.splice(0);
|
|
617
633
|
initData();
|
|
618
634
|
};
|
|
619
|
-
|
|
620
|
-
Taro.getSystemInfo({
|
|
621
|
-
success(res) {
|
|
622
|
-
let scale = 2;
|
|
623
|
-
let screenWidth = res.screenWidth;
|
|
624
|
-
let toFixed = 3;
|
|
625
|
-
if (TARO_ENV === Taro.ENV_TYPE.WEB) {
|
|
626
|
-
toFixed = 5;
|
|
627
|
-
}
|
|
628
|
-
scale = Number((screenWidth / 750).toFixed(toFixed));
|
|
629
|
-
scalePx.value = scale;
|
|
630
|
-
initData();
|
|
631
|
-
}
|
|
632
|
-
});
|
|
633
|
-
});
|
|
635
|
+
initData();
|
|
634
636
|
watch(
|
|
635
637
|
() => props.defaultValue,
|
|
636
638
|
(val) => {
|
|
@@ -643,6 +645,7 @@ const _sfc_main = create({
|
|
|
643
645
|
);
|
|
644
646
|
return {
|
|
645
647
|
weeks,
|
|
648
|
+
compConthsData,
|
|
646
649
|
showTopBtn,
|
|
647
650
|
topInfo,
|
|
648
651
|
bottomInfo,
|
|
@@ -654,10 +657,12 @@ const _sfc_main = create({
|
|
|
654
657
|
chooseDay,
|
|
655
658
|
isCurrDay,
|
|
656
659
|
confirm,
|
|
660
|
+
monthsPanel,
|
|
657
661
|
months,
|
|
662
|
+
weeksPanel,
|
|
663
|
+
viewArea,
|
|
658
664
|
...toRefs(state),
|
|
659
665
|
...toRefs(props),
|
|
660
|
-
scrollWithAnimation,
|
|
661
666
|
translate
|
|
662
667
|
};
|
|
663
668
|
}
|
|
@@ -674,39 +679,39 @@ const _hoisted_3 = {
|
|
|
674
679
|
key: 2,
|
|
675
680
|
class: "calendar-curr-month"
|
|
676
681
|
};
|
|
677
|
-
const _hoisted_4 = {
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
const
|
|
682
|
-
|
|
682
|
+
const _hoisted_4 = {
|
|
683
|
+
class: "calendar-weeks",
|
|
684
|
+
ref: "weeksPanel"
|
|
685
|
+
};
|
|
686
|
+
const _hoisted_5 = {
|
|
687
|
+
class: "calendar-months-panel",
|
|
688
|
+
ref: "monthsPanel"
|
|
689
|
+
};
|
|
690
|
+
const _hoisted_6 = { class: "calendar-month-title" };
|
|
691
|
+
const _hoisted_7 = { class: "calendar-month-con" };
|
|
692
|
+
const _hoisted_8 = ["onClick"];
|
|
693
|
+
const _hoisted_9 = { class: "calendar-day" };
|
|
694
|
+
const _hoisted_10 = {
|
|
683
695
|
key: 0,
|
|
684
696
|
class: "calendar-curr-tips calendar-curr-tips-top"
|
|
685
697
|
};
|
|
686
|
-
const
|
|
698
|
+
const _hoisted_11 = {
|
|
687
699
|
key: 1,
|
|
688
700
|
class: "calendar-curr-tips calendar-curr-tips-bottom"
|
|
689
701
|
};
|
|
690
|
-
const
|
|
702
|
+
const _hoisted_12 = {
|
|
691
703
|
key: 2,
|
|
692
704
|
class: "calendar-curr-tip-curr"
|
|
693
705
|
};
|
|
694
|
-
const
|
|
695
|
-
key:
|
|
706
|
+
const _hoisted_13 = {
|
|
707
|
+
key: 4,
|
|
696
708
|
class: "calendar-day-tip"
|
|
697
709
|
};
|
|
698
|
-
const
|
|
710
|
+
const _hoisted_14 = {
|
|
699
711
|
key: 0,
|
|
700
712
|
class: "nut-calendar-footer"
|
|
701
713
|
};
|
|
702
714
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
703
|
-
const _component_scroll_view = resolveComponent(function() {
|
|
704
|
-
if (process.env.TARO_ENV === "h5") {
|
|
705
|
-
return "taro-scroll-view";
|
|
706
|
-
} else {
|
|
707
|
-
return "scroll-view";
|
|
708
|
-
}
|
|
709
|
-
}());
|
|
710
715
|
return openBlock(), createElementBlock("view", {
|
|
711
716
|
class: normalizeClass(["nut-calendar nut-calendar-taro", {
|
|
712
717
|
"nut-calendar-tile": !_ctx.poppable,
|
|
@@ -717,13 +722,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
717
722
|
class: normalizeClass(["nut-calendar-header", { "nut-calendar-header-tile": !_ctx.poppable }])
|
|
718
723
|
}, [
|
|
719
724
|
_ctx.showTitle ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.title || _ctx.translate("title")), 1)) : createCommentVNode("", true),
|
|
720
|
-
createTextVNode(),
|
|
721
725
|
_ctx.showTopBtn ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
722
726
|
renderSlot(_ctx.$slots, "btn")
|
|
723
727
|
])) : createCommentVNode("", true),
|
|
724
|
-
createTextVNode(),
|
|
725
728
|
_ctx.showSubTitle ? (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.yearMonthTitle), 1)) : createCommentVNode("", true),
|
|
726
|
-
createTextVNode(),
|
|
727
729
|
createElementVNode("view", _hoisted_4, [
|
|
728
730
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item, index) => {
|
|
729
731
|
return openBlock(), createElementBlock("view", {
|
|
@@ -731,86 +733,71 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
731
733
|
key: index
|
|
732
734
|
}, toDisplayString(item), 1);
|
|
733
735
|
}), 128))
|
|
734
|
-
])
|
|
736
|
+
], 512)
|
|
735
737
|
], 2),
|
|
736
|
-
|
|
737
|
-
createVNode(_component_scroll_view, {
|
|
738
|
-
"scroll-top": _ctx.scrollTop,
|
|
739
|
-
"scroll-y": true,
|
|
738
|
+
createElementVNode("view", {
|
|
740
739
|
class: "nut-calendar-content",
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
default: withCtx(() => [
|
|
740
|
+
ref: "months",
|
|
741
|
+
onScroll: _cache[0] || (_cache[0] = (...args) => _ctx.mothsViewScroll && _ctx.mothsViewScroll(...args))
|
|
742
|
+
}, [
|
|
743
|
+
createElementVNode("view", _hoisted_5, [
|
|
746
744
|
createElementVNode("view", {
|
|
747
|
-
class: "
|
|
748
|
-
|
|
745
|
+
class: "viewArea",
|
|
746
|
+
ref: "viewArea",
|
|
747
|
+
style: normalizeStyle({ transform: `translateY(${_ctx.translateY}px)` })
|
|
749
748
|
}, [
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
_ctx
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
}, toDisplayString(_ctx.isStartTip(day, month) ? _ctx.startText || _ctx.translate("start") : ""), 3),
|
|
796
|
-
createTextVNode(),
|
|
797
|
-
_ctx.isEndTip(day, month) ? (openBlock(), createElementBlock("view", _hoisted_12, toDisplayString(_ctx.endText || _ctx.translate("end")), 1)) : createCommentVNode("", true)
|
|
798
|
-
], 10, _hoisted_7);
|
|
799
|
-
}), 128))
|
|
800
|
-
], 2)
|
|
801
|
-
])
|
|
802
|
-
]);
|
|
803
|
-
}), 128))
|
|
804
|
-
], 4)
|
|
749
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.compConthsData, (month, index) => {
|
|
750
|
+
return openBlock(), createElementBlock("view", {
|
|
751
|
+
class: "calendar-month",
|
|
752
|
+
key: index
|
|
753
|
+
}, [
|
|
754
|
+
createElementVNode("view", _hoisted_6, toDisplayString(month.title), 1),
|
|
755
|
+
createElementVNode("view", _hoisted_7, [
|
|
756
|
+
createElementVNode("view", {
|
|
757
|
+
class: normalizeClass(["calendar-month-item", _ctx.type === "range" ? "month-item-range" : ""])
|
|
758
|
+
}, [
|
|
759
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(month.monthData, (day, i) => {
|
|
760
|
+
return openBlock(), createElementBlock("view", {
|
|
761
|
+
key: i,
|
|
762
|
+
class: normalizeClass(["calendar-month-day", _ctx.getClass(day, month)]),
|
|
763
|
+
onClick: ($event) => _ctx.chooseDay(day, month)
|
|
764
|
+
}, [
|
|
765
|
+
createElementVNode("view", _hoisted_9, [
|
|
766
|
+
renderSlot(_ctx.$slots, "day", {
|
|
767
|
+
date: day.type == "curr" ? day : ""
|
|
768
|
+
}, () => [
|
|
769
|
+
createTextVNode(toDisplayString(day.type == "curr" ? day.day : ""), 1)
|
|
770
|
+
])
|
|
771
|
+
]),
|
|
772
|
+
_ctx.topInfo ? (openBlock(), createElementBlock("view", _hoisted_10, [
|
|
773
|
+
renderSlot(_ctx.$slots, "topInfo", {
|
|
774
|
+
date: day.type == "curr" ? day : ""
|
|
775
|
+
})
|
|
776
|
+
])) : createCommentVNode("", true),
|
|
777
|
+
_ctx.bottomInfo ? (openBlock(), createElementBlock("view", _hoisted_11, [
|
|
778
|
+
renderSlot(_ctx.$slots, "bottomInfo", {
|
|
779
|
+
date: day.type == "curr" ? day : ""
|
|
780
|
+
})
|
|
781
|
+
])) : createCommentVNode("", true),
|
|
782
|
+
!_ctx.bottomInfo && _ctx.showToday && _ctx.isCurrDay(day) ? (openBlock(), createElementBlock("view", _hoisted_12, toDisplayString(_ctx.translate("today")), 1)) : createCommentVNode("", true),
|
|
783
|
+
_ctx.isStartTip(day, month) ? (openBlock(), createElementBlock("view", {
|
|
784
|
+
key: 3,
|
|
785
|
+
class: normalizeClass(["calendar-day-tip", { "calendar-curr-tips-top": _ctx.rangeTip() }])
|
|
786
|
+
}, toDisplayString(_ctx.startText || _ctx.translate("start")), 3)) : createCommentVNode("", true),
|
|
787
|
+
_ctx.isEndTip(day, month) ? (openBlock(), createElementBlock("view", _hoisted_13, toDisplayString(_ctx.endText || _ctx.translate("end")), 1)) : createCommentVNode("", true)
|
|
788
|
+
], 10, _hoisted_8);
|
|
789
|
+
}), 128))
|
|
790
|
+
], 2)
|
|
791
|
+
])
|
|
792
|
+
]);
|
|
793
|
+
}), 128))
|
|
805
794
|
], 4)
|
|
806
|
-
])
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
createTextVNode(),
|
|
810
|
-
_ctx.poppable && !_ctx.isAutoBackFill ? (openBlock(), createElementBlock("view", _hoisted_13, [
|
|
795
|
+
], 512)
|
|
796
|
+
], 544),
|
|
797
|
+
_ctx.poppable && !_ctx.isAutoBackFill ? (openBlock(), createElementBlock("view", _hoisted_14, [
|
|
811
798
|
createElementVNode("view", {
|
|
812
799
|
class: "calendar-confirm-btn",
|
|
813
|
-
onClick: _cache[
|
|
800
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.confirm && _ctx.confirm(...args))
|
|
814
801
|
}, toDisplayString(_ctx.confirmText || _ctx.translate("confirm")), 1)
|
|
815
802
|
])) : createCommentVNode("", true)
|
|
816
803
|
], 2);
|
package/dist/packages/_es/raf.js
CHANGED
|
@@ -1,27 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
width: 195px;
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-wrap: wrap;
|
|
5
|
-
}
|
|
6
|
-
.self-content-item {
|
|
7
|
-
margin-top: 10px;
|
|
8
|
-
margin-bottom: 10px;
|
|
9
|
-
display: flex;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
align-items: center;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
}
|
|
14
|
-
.self-content-desc {
|
|
15
|
-
margin-top: 5px;
|
|
16
|
-
width: 60px;
|
|
17
|
-
font-size: 10px;
|
|
18
|
-
text-align: center;
|
|
19
|
-
}@keyframes moving {
|
|
1
|
+
@keyframes moving {
|
|
20
2
|
from {
|
|
21
3
|
transform: translateX(100%);
|
|
22
4
|
}
|
|
23
5
|
to {
|
|
24
|
-
transform: translateX(var(--
|
|
6
|
+
transform: translateX(var(--01d702ea));
|
|
25
7
|
}
|
|
26
8
|
}
|
|
27
9
|
@-webkit-keyframes moving {
|
|
@@ -29,6 +11,6 @@ from {
|
|
|
29
11
|
-webkit-transform: translateX(100%);
|
|
30
12
|
}
|
|
31
13
|
to {
|
|
32
|
-
transform: translateX(var(--
|
|
14
|
+
transform: translateX(var(--01d702ea));
|
|
33
15
|
}
|
|
34
16
|
}/* @import './index.scss'; */
|