fusions-ui 1.2.4 → 1.2.7
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/components/fu-avatar/fu-avatar.vue +4 -2
- package/components/fu-avatar/props.js +52 -15
- package/components/fu-avatar-group/fu-avatar-group.vue +3 -2
- package/components/fu-avatar-group/props.js +31 -9
- package/components/fu-badge/fu-badge.vue +8 -14
- package/components/fu-badge/props.js +56 -16
- package/components/fu-banner-arc/fu-banner-arc.vue +4 -5
- package/components/fu-banner-arc/props.js +15 -4
- package/components/fu-button/fu-button.vue +18 -20
- package/components/fu-button/props.js +108 -35
- package/components/fu-cell/fu-cell.vue +9 -8
- package/components/fu-cell-group/fu-cell-group.vue +2 -1
- package/components/fu-cell-group/props.js +7 -2
- package/components/fu-checkbox/fu-checkbox.vue +5 -4
- package/components/fu-checkbox/props.js +51 -14
- package/components/fu-code-input/fu-code-input.vue +10 -6
- package/components/fu-code-input/props.js +66 -17
- package/components/fu-code-verify/fu-code-verify.vue +9 -5
- package/components/fu-code-verify/props.js +64 -17
- package/components/fu-collapse/fu-collapse.vue +10 -3
- package/components/fu-collapse/props.js +9 -3
- package/components/fu-collapse-item/fu-collapse-item.vue +45 -31
- package/components/fu-collapse-item/props.js +49 -16
- package/components/fu-countdown/fu-countdown.vue +2 -1
- package/components/fu-countdown/props.js +15 -4
- package/components/fu-datetime-picker/fu-datetime-picker.vue +6 -5
- package/components/fu-datetime-picker/props.js +91 -25
- package/components/fu-form/fu-form.vue +2 -1
- package/components/fu-form/props.js +34 -6
- package/components/fu-form-item/fu-form-item.vue +26 -33
- package/components/fu-form-item/props.js +30 -8
- package/components/fu-grid/fu-grid.vue +16 -17
- package/components/fu-grid/props.js +20 -5
- package/components/fu-grid-item/fu-grid-item.vue +31 -35
- package/components/fu-grid-item/props.js +11 -3
- package/components/fu-icon/fu-icon.vue +110 -0
- package/components/fu-icon/fuicon.css +584 -0
- package/components/{fu-icons/icons.js → fu-icon/fuicon.js} +1031 -1031
- package/components/{fu-icons/fuicons.ttf → fu-icon/fuicon.ttf} +0 -0
- package/components/fu-icon/props.js +55 -0
- package/components/fu-image/fu-image.vue +15 -10
- package/components/fu-image/props.js +69 -18
- package/components/fu-index-anchor/fu-index-anchor.vue +6 -5
- package/components/fu-index-anchor/props.js +20 -6
- package/components/fu-index-item/fu-index-item.vue +4 -4
- package/components/fu-index-list/fu-index-list.vue +9 -9
- package/components/fu-index-list/props.js +19 -6
- package/components/fu-input/fu-input.vue +54 -68
- package/components/fu-input/props.js +145 -53
- package/components/fu-keyboard/fu-keyboard.vue +19 -9
- package/components/fu-keyboard/keyboard-car.vue +33 -22
- package/components/fu-keyboard/keyboard-number.vue +17 -9
- package/components/fu-keyboard/props.js +66 -17
- package/components/fu-line/fu-line.vue +17 -13
- package/components/fu-line/props.js +30 -5
- package/components/fu-link/fu-link.vue +14 -8
- package/components/fu-link/props.js +22 -7
- package/components/fu-loading/fu-loading.vue +32 -27
- package/components/fu-loading/props.js +28 -8
- package/components/fu-loading-more/fu-loading-more.vue +19 -23
- package/components/fu-loading-more/props.js +27 -13
- package/components/fu-modal/fu-modal.vue +11 -6
- package/components/fu-modal/props.js +61 -17
- package/components/{fu-nav-bar/fu-nav-bar.vue → fu-navbar/fu-navbar.vue} +37 -44
- package/components/fu-notice-bar/fu-notice-bar.vue +10 -8
- package/components/fu-notice-bar/notice-column.vue +187 -122
- package/components/fu-notice-bar/notice-row.vue +85 -28
- package/components/fu-notice-bar/props.js +83 -22
- package/components/fu-number-box/fu-number-box.vue +26 -28
- package/components/fu-number-box/props.js +37 -11
- package/components/fu-parse/fu-parse.vue +0 -1
- package/components/fu-picker/fu-picker.vue +22 -17
- package/components/fu-picker/props.js +70 -19
- package/components/fu-popup/fu-popup.vue +38 -43
- package/components/fu-popup/props.js +34 -9
- package/components/fu-progress/fu-progress.vue +3 -2
- package/components/fu-progress/props.js +36 -9
- package/components/fu-rate/fu-rate.vue +40 -32
- package/components/fu-rate/props.js +47 -13
- package/components/fu-read-more/fu-read-more.vue +19 -14
- package/components/fu-read-more/props.js +68 -46
- package/components/fu-ribbon/fu-ribbon.vue +8 -7
- package/components/fu-ribbon/props.js +15 -4
- package/components/fu-scroll-list/fu-scroll-list.vue +18 -34
- package/components/fu-scroll-list/props.js +19 -10
- package/components/fu-search/fu-search.vue +13 -18
- package/components/fu-search/props.js +69 -17
- package/components/fu-section/fu-section.vue +19 -22
- package/components/fu-section/props.js +30 -4
- package/components/fu-sign-board/fu-sign-board.vue +34 -17
- package/components/fu-sign-board/props.js +15 -5
- package/components/fu-skeleton/fu-skeleton.vue +8 -12
- package/components/fu-skeleton/props.js +15 -4
- package/components/fu-steps/fu-steps.vue +3 -2
- package/components/fu-steps/props.js +23 -7
- package/components/fu-steps-item/fu-steps-item.vue +3 -3
- package/components/fu-steps-item/props.js +15 -5
- package/components/fu-sticky/fu-sticky.vue +3 -3
- package/components/fu-sticky/props.js +21 -7
- package/components/fu-subsection/fu-subsection.vue +29 -22
- package/components/fu-subsection/props.js +40 -10
- package/components/fu-swipe-action-item/bindingx.js +1 -1
- package/components/fu-swipe-action-item/fu-swipe-action-item.vue +134 -123
- package/components/fu-swipe-action-item/mpwxs.js +1 -1
- package/components/fu-swipe-action-item/props.js +22 -6
- package/components/fu-swiper/fu-swiper.vue +29 -27
- package/components/fu-swiper/props.js +81 -25
- package/components/fu-switch/fu-switch.vue +20 -12
- package/components/fu-switch/props.js +48 -13
- package/components/fu-tabs/fu-tabs.vue +36 -33
- package/components/fu-tabs/props.js +46 -13
- package/components/fu-tag/fu-tag.vue +24 -21
- package/components/fu-tag/props.js +63 -17
- package/components/fu-text/fu-text.vue +72 -33
- package/components/fu-text/props.js +85 -27
- package/components/fu-text/value.js +6 -6
- package/components/fu-textarea/fu-textarea.vue +13 -17
- package/components/fu-textarea/props.js +103 -30
- package/components/fu-timeaxis/fu-timeaxis.vue +1 -1
- package/components/fu-timeaxis-item/fu-timeaxis-item.vue +8 -4
- package/components/fu-transition/fu-transition.vue +48 -49
- package/components/fu-transition/props.js +21 -0
- package/components/fu-upload/fu-upload.vue +3 -1
- package/components/fu-upload/props.js +67 -19
- package/components/fu-upload/upload-file.vue +31 -18
- package/components/fu-upload/upload-image.vue +37 -19
- package/components/fu-vtabs/fu-vtabs.vue +6 -4
- package/components/fu-vtabs/props.js +50 -15
- package/components/fu-waterfall/fu-waterfall.vue +11 -9
- package/components/fu-waterfall/props.js +37 -15
- package/index.js +17 -24
- package/index.scss +9 -7
- package/libs/config/config.js +16 -9
- package/libs/function/applyEven.js +9 -9
- package/libs/function/check.js +81 -89
- package/libs/function/{index.js → common.js} +5 -5
- package/libs/function/message.js +0 -27
- package/libs/mixin/mixin.js +26 -21
- package/libs/{utils/min.router.config.js → route/min.route.config.js} +7 -7
- package/libs/{utils/router.config.js → route/route.config.js} +10 -11
- package/libs/{css/main.scss → style/common.scss} +50 -87
- package/libs/style/style.h5.scss +8 -0
- package/libs/style/style.mp.scss +15 -0
- package/package.json +1 -1
- package/components/fu-calendar/calendar-item.vue +0 -214
- package/components/fu-calendar/calendar.js +0 -546
- package/components/fu-calendar/fu-calendar.vue +0 -536
- package/components/fu-calendar/i18n/en.json +0 -12
- package/components/fu-calendar/i18n/index.js +0 -8
- package/components/fu-calendar/i18n/zh-Hans.json +0 -12
- package/components/fu-calendar/i18n/zh-Hant.json +0 -12
- package/components/fu-calendar/util.js +0 -360
- package/components/fu-date-picker/calendar-item.vue +0 -177
- package/components/fu-date-picker/calendar.vue +0 -917
- package/components/fu-date-picker/fu-date-picker.vue +0 -1069
- package/components/fu-date-picker/i18n/en.json +0 -22
- package/components/fu-date-picker/i18n/index.js +0 -8
- package/components/fu-date-picker/i18n/zh-Hans.json +0 -22
- package/components/fu-date-picker/i18n/zh-Hant.json +0 -22
- package/components/fu-date-picker/props.js +0 -68
- package/components/fu-date-picker/time-picker.vue +0 -924
- package/components/fu-date-picker/util.js +0 -419
- package/components/fu-icons/fu-icons.vue +0 -102
- package/components/fu-icons/fuicons.css +0 -585
- package/components/fu-landscape/fu-landscape.vue +0 -167
- package/components/fu-landscape/props.js +0 -64
- package/components/fu-tabbar/fu-tabbar.vue +0 -333
- package/components/fu-tabbar/props.js +0 -78
- package/libs/css/style.h5.scss +0 -35
- package/libs/css/style.mp.scss +0 -50
- package/libs/utils/util.js +0 -58
- /package/components/{fu-nav-bar → fu-navbar}/props.js +0 -0
- /package/components/{fu-nav-bar → fu-navbar}/status-bar.vue +0 -0
- /package/{components/fu-datetime-picker → libs/function}/dayjs.js +0 -0
- /package/libs/{css → style}/color.scss +0 -0
- /package/libs/{css/component.scss → style/components.scss} +0 -0
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view
|
|
3
|
-
class="fu-calendar-item__weeks-box"
|
|
4
|
-
:class="{
|
|
5
|
-
'fu-calendar-item--disable': weeks.disable,
|
|
6
|
-
'fu-calendar-item--isDay': calendar.fullDate === weeks.fullDate && weeks.isDay,
|
|
7
|
-
'fu-calendar-item--checked': (calendar.fullDate === weeks.fullDate && !weeks.isDay),
|
|
8
|
-
'fu-calendar-item--before-checked': weeks.beforeMultiple,
|
|
9
|
-
'fu-calendar-item--multiple': weeks.multiple,
|
|
10
|
-
'fu-calendar-item--after-checked': weeks.afterMultiple,
|
|
11
|
-
}"
|
|
12
|
-
@click="chooseDate(weeks)">
|
|
13
|
-
<view class="fu-calendar-item__weeks-box-item">
|
|
14
|
-
<text class="fu-calendar-item__weeks-box-circle" v-if="selected && weeks.extraInfo"></text>
|
|
15
|
-
<text
|
|
16
|
-
class="fu-calendar-item__weeks-box-text"
|
|
17
|
-
:class="{
|
|
18
|
-
'fu-calendar-item--isDay-text': weeks.isDay,
|
|
19
|
-
'fu-calendar-item--isDay': calendar.fullDate === weeks.fullDate && weeks.isDay,
|
|
20
|
-
'fu-calendar-item--checked': calendar.fullDate === weeks.fullDate && !weeks.isDay,
|
|
21
|
-
'fu-calendar-item--before-checked': weeks.beforeMultiple,
|
|
22
|
-
'fu-calendar-item--multiple': weeks.multiple,
|
|
23
|
-
'fu-calendar-item--after-checked': weeks.afterMultiple,
|
|
24
|
-
'fu-calendar-item--disable': weeks.disable,
|
|
25
|
-
}">
|
|
26
|
-
{{ weeks.date }}
|
|
27
|
-
</text>
|
|
28
|
-
<text
|
|
29
|
-
class="fu-calendar-item__weeks-lunar-text"
|
|
30
|
-
:class="{
|
|
31
|
-
'fu-calendar-item--isDay-text': weeks.isDay,
|
|
32
|
-
'fu-calendar-item--isDay': calendar.fullDate === weeks.fullDate && weeks.isDay,
|
|
33
|
-
'fu-calendar-item--checked': calendar.fullDate === weeks.fullDate && !weeks.isDay,
|
|
34
|
-
'fu-calendar-item--before-checked': weeks.beforeMultiple,
|
|
35
|
-
'fu-calendar-item--multiple': weeks.multiple,
|
|
36
|
-
'fu-calendar-item--after-checked': weeks.afterMultiple,
|
|
37
|
-
}"
|
|
38
|
-
v-if="!lunar && !weeks.extraInfo && weeks.isDay">
|
|
39
|
-
{{ todayText }}
|
|
40
|
-
</text>
|
|
41
|
-
<text
|
|
42
|
-
class="fu-calendar-item__weeks-lunar-text"
|
|
43
|
-
:class="{
|
|
44
|
-
'fu-calendar-item--isDay-text': weeks.isDay,
|
|
45
|
-
'fu-calendar-item--isDay': calendar.fullDate === weeks.fullDate && weeks.isDay,
|
|
46
|
-
'fu-calendar-item--checked': calendar.fullDate === weeks.fullDate && !weeks.isDay,
|
|
47
|
-
'fu-calendar-item--before-checked': weeks.beforeMultiple,
|
|
48
|
-
'fu-calendar-item--multiple': weeks.multiple,
|
|
49
|
-
'fu-calendar-item--after-checked': weeks.afterMultiple,
|
|
50
|
-
'fu-calendar-item--disable': weeks.disable,
|
|
51
|
-
}"
|
|
52
|
-
v-if="lunar && !weeks.extraInfo">
|
|
53
|
-
{{ weeks.isDay? todayText: (weeks.lunar.IDayCn === '初一'? weeks.lunar.IMonthCn: weeks.lunar.IDayCn) }}
|
|
54
|
-
</text>
|
|
55
|
-
<text
|
|
56
|
-
class="fu-calendar-item__weeks-lunar-text"
|
|
57
|
-
:class="{
|
|
58
|
-
'fu-calendar-item--extra': weeks.extraInfo.info,
|
|
59
|
-
'fu-calendar-item--isDay-text': weeks.isDay,
|
|
60
|
-
'fu-calendar-item--isDay': calendar.fullDate === weeks.fullDate && weeks.isDay,
|
|
61
|
-
'fu-calendar-item--checked': calendar.fullDate === weeks.fullDate && !weeks.isDay,
|
|
62
|
-
'fu-calendar-item--before-checked': weeks.beforeMultiple,
|
|
63
|
-
'fu-calendar-item--multiple': weeks.multiple,
|
|
64
|
-
'fu-calendar-item--after-checked': weeks.afterMultiple,
|
|
65
|
-
'fu-calendar-item--disable': weeks.disable,
|
|
66
|
-
}"
|
|
67
|
-
v-if="weeks.extraInfo && weeks.extraInfo.info">
|
|
68
|
-
{{ weeks.extraInfo.info }}
|
|
69
|
-
</text>
|
|
70
|
-
</view>
|
|
71
|
-
</view>
|
|
72
|
-
</template>
|
|
73
|
-
|
|
74
|
-
<script>
|
|
75
|
-
import { initVueI18n } from '@dcloudio/uni-i18n'
|
|
76
|
-
import i18nMessages from './i18n/index.js'
|
|
77
|
-
const { t } = initVueI18n(i18nMessages)
|
|
78
|
-
export default {
|
|
79
|
-
emits:['change'],
|
|
80
|
-
props: {
|
|
81
|
-
weeks: {
|
|
82
|
-
type: Object,
|
|
83
|
-
default () {
|
|
84
|
-
return {}
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
calendar: {
|
|
88
|
-
type: Object,
|
|
89
|
-
default: () => {
|
|
90
|
-
return {}
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
selected: {
|
|
94
|
-
type: Array,
|
|
95
|
-
default: () => {
|
|
96
|
-
return []
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
lunar: {
|
|
100
|
-
type: Boolean,
|
|
101
|
-
default: false
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
computed: {
|
|
105
|
-
todayText() {
|
|
106
|
-
return t("fu-calender.today")
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
methods: {
|
|
110
|
-
chooseDate(weeks) {
|
|
111
|
-
this.$emit('change', weeks)
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
</script>
|
|
116
|
-
|
|
117
|
-
<style lang="scss" scoped>
|
|
118
|
-
@import '../../libs/css/component.scss';
|
|
119
|
-
|
|
120
|
-
$fu-font-size-base: 14px;
|
|
121
|
-
$fu-text-color: #333;
|
|
122
|
-
$fu-font-size-sm: 12px;
|
|
123
|
-
$fu-color-error: #e43d33;
|
|
124
|
-
$fu-opacity-disabled: 0.3;
|
|
125
|
-
$fu-text-color-disable: #c0c0c0;
|
|
126
|
-
$fu-primary: #2979ff !default;
|
|
127
|
-
$fu-checked-opacity: 0.8;
|
|
128
|
-
$fu-checked-radius: 4px;
|
|
129
|
-
$fu-checked-color: #ffffff;
|
|
130
|
-
|
|
131
|
-
.fu-calendar-item__weeks-box {
|
|
132
|
-
flex: 1;
|
|
133
|
-
@include flex(column);
|
|
134
|
-
justify-content: center;
|
|
135
|
-
align-items: center;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.fu-calendar-item__weeks-box-text {
|
|
139
|
-
font-size: $fu-font-size-base;
|
|
140
|
-
color: $fu-text-color;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.fu-calendar-item__weeks-lunar-text {
|
|
144
|
-
font-size: $fu-font-size-sm;
|
|
145
|
-
color: $fu-text-color;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.fu-calendar-item__weeks-box-item {
|
|
149
|
-
position: relative;
|
|
150
|
-
@include flex(column);
|
|
151
|
-
justify-content: center;
|
|
152
|
-
align-items: center;
|
|
153
|
-
width: 100rpx;
|
|
154
|
-
height: 100rpx;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.fu-calendar-item__weeks-box-circle {
|
|
158
|
-
position: absolute;
|
|
159
|
-
top: 5px;
|
|
160
|
-
right: 5px;
|
|
161
|
-
width: 8px;
|
|
162
|
-
height: 8px;
|
|
163
|
-
border-radius: 8px;
|
|
164
|
-
background-color: $fu-color-error;
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.fu-calendar-item--disable {
|
|
169
|
-
background-color: rgba(249, 249, 249, $fu-opacity-disabled);
|
|
170
|
-
color: $fu-text-color-disable;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.fu-calendar-item--isDay-text {
|
|
174
|
-
color: $fu-primary;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.fu-calendar-item--isDay {
|
|
178
|
-
background-color: $fu-primary;
|
|
179
|
-
opacity: $fu-checked-opacity;
|
|
180
|
-
color: $fu-checked-color;
|
|
181
|
-
border-radius: $fu-checked-radius;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.fu-calendar-item--extra {
|
|
185
|
-
color: $fu-color-error;
|
|
186
|
-
opacity: $fu-checked-opacity;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.fu-calendar-item--checked {
|
|
190
|
-
background-color: $fu-primary;
|
|
191
|
-
color: $fu-checked-color;
|
|
192
|
-
opacity: $fu-checked-opacity;
|
|
193
|
-
border-radius: $fu-checked-radius;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.fu-calendar-item--multiple {
|
|
197
|
-
background-color: #F6F7FC;
|
|
198
|
-
color: $fu-primary;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.fu-calendar-item--before-checked {
|
|
202
|
-
background-color: $fu-primary;
|
|
203
|
-
color: $fu-checked-color;
|
|
204
|
-
border-radius: $fu-checked-radius;
|
|
205
|
-
opacity: $fu-checked-opacity;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.fu-calendar-item--after-checked {
|
|
209
|
-
background-color: $fu-primary;
|
|
210
|
-
color: $fu-checked-color;
|
|
211
|
-
border-radius: $fu-checked-radius;
|
|
212
|
-
opacity: $fu-checked-opacity;
|
|
213
|
-
}
|
|
214
|
-
</style>
|