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,31 +1,34 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<view class="fu-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
2
|
+
<fu-transition :show="true">
|
|
3
|
+
<view class="fu-loading" :class="[customClass]" :style="[$fu.addStyle(customStyle)]" v-if="show">
|
|
4
|
+
<view
|
|
5
|
+
class="fu-loading__flower"
|
|
6
|
+
:class="[mode === 'over'? `fu-loading__${mode} fu-loading__${mode}--animation`: `fu-loading__flower--${mode}`]"
|
|
7
|
+
ref="ani"
|
|
8
|
+
:style="{
|
|
9
|
+
color: color,
|
|
10
|
+
background: mode === 'over'? color: 'transparent',
|
|
11
|
+
width: $fu.addUnit(size),
|
|
12
|
+
height: $fu.addUnit(size),
|
|
13
|
+
borderTopColor: color,
|
|
14
|
+
borderBottomColor: otherBorderColor,
|
|
15
|
+
borderLeftColor: otherBorderColor,
|
|
16
|
+
borderRightColor: otherBorderColor,
|
|
17
|
+
'animation-duration': `${duration}ms`,
|
|
18
|
+
'animation-timing-function': mode === 'semicircle' || mode === 'circle' ? timingFunction : ''
|
|
19
|
+
}" v-if="!webviewHide">
|
|
20
|
+
<block v-if="mode === 'flower'">
|
|
21
|
+
<!-- #ifndef APP-NVUE -->
|
|
22
|
+
<view v-for="(item,index) in array12" :key="index" class="fu-loading__dot"></view>
|
|
23
|
+
<!-- #endif -->
|
|
24
|
+
<!-- #ifdef APP-NVUE -->
|
|
25
|
+
<!-- 此组件内部图标部分无法设置宽高,即使通过width和height配置了也无效 -->
|
|
26
|
+
<loading-indicator class="fu-loading-indicator" :animating="true" :style="{ color: color, width: $fu.addUnit(size), height: $fu.addUnit(size) }" v-if="!webviewHide"/>
|
|
27
|
+
<!-- #endif -->
|
|
28
|
+
</block>
|
|
29
|
+
</view>
|
|
27
30
|
</view>
|
|
28
|
-
</
|
|
31
|
+
</fu-transition>
|
|
29
32
|
</template>
|
|
30
33
|
|
|
31
34
|
<script>
|
|
@@ -50,8 +53,10 @@
|
|
|
50
53
|
* @property {String,Number} duration 动画执行周期时间(默认 1200)
|
|
51
54
|
* @property {String} inactiveColor 暗边颜色(仅mode=circle时有效)
|
|
52
55
|
* @property {String} timingFunction 动画模式 (默认 'linear' )
|
|
53
|
-
* @property {String} customClass
|
|
56
|
+
* @property {String} customClass 定义需要用到的外部样式类
|
|
54
57
|
* @property {Object,String} customStyle 定义需要用到的外部样式
|
|
58
|
+
*
|
|
59
|
+
* @example <fu-loading></fu-loading>
|
|
55
60
|
*/
|
|
56
61
|
export default {
|
|
57
62
|
name: "FuLoading",
|
|
@@ -1,37 +1,57 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
props: {
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @description 是否显示
|
|
5
|
+
* @default true
|
|
6
|
+
*/
|
|
4
7
|
show: {
|
|
5
8
|
type: Boolean,
|
|
6
9
|
default: true
|
|
7
10
|
},
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
/**
|
|
12
|
+
* @description 动画类型
|
|
13
|
+
* @values 'circle' - 圆圈形状, 'semicircle' - 半圆形状, 'flower' - 花朵形状, 'over' - 翻转效果
|
|
14
|
+
* @default 'flower'
|
|
15
|
+
*/
|
|
10
16
|
mode: {
|
|
11
17
|
type: String,
|
|
12
18
|
default: 'flower'
|
|
13
19
|
},
|
|
14
|
-
|
|
20
|
+
/**
|
|
21
|
+
* @description 加载颜色
|
|
22
|
+
* @default '#a5a6a8'
|
|
23
|
+
*/
|
|
15
24
|
color: {
|
|
16
25
|
type: String,
|
|
17
26
|
default: '#a5a6a8'
|
|
18
27
|
},
|
|
19
|
-
|
|
28
|
+
/**
|
|
29
|
+
* @description 加载动画大小
|
|
30
|
+
* @default 20
|
|
31
|
+
*/
|
|
20
32
|
size: {
|
|
21
33
|
type: [String, Number],
|
|
22
34
|
default: 20
|
|
23
35
|
},
|
|
24
|
-
|
|
36
|
+
/**
|
|
37
|
+
* @description 动画模式
|
|
38
|
+
* @default 'linear'
|
|
39
|
+
*/
|
|
25
40
|
timingFunction: {
|
|
26
41
|
type: String,
|
|
27
42
|
default: 'linear'
|
|
28
43
|
},
|
|
29
|
-
|
|
44
|
+
/**
|
|
45
|
+
* @description 动画执行周期时间
|
|
46
|
+
* @default 1200
|
|
47
|
+
*/
|
|
30
48
|
duration: {
|
|
31
49
|
type: [String, Number],
|
|
32
50
|
default: 1200
|
|
33
51
|
},
|
|
34
|
-
|
|
52
|
+
/**
|
|
53
|
+
* @description 暗边颜色(仅mode=circle时生效)
|
|
54
|
+
*/
|
|
35
55
|
inactiveColor: {
|
|
36
56
|
type: String,
|
|
37
57
|
default: ''
|
|
@@ -1,68 +1,64 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="fu-
|
|
2
|
+
<view class="fu-loading-more" :class="[customClass]" :style="[$fu.addStyle(this.customStyle)]">
|
|
3
3
|
<fu-loading
|
|
4
4
|
:mode="mode"
|
|
5
5
|
:color="color"
|
|
6
6
|
:size="iconSize"
|
|
7
7
|
:show="loadingType == 1? true :false">
|
|
8
8
|
</fu-loading>
|
|
9
|
-
<text
|
|
9
|
+
<text
|
|
10
|
+
class="fu-loading-more__text"
|
|
11
|
+
:style="{
|
|
12
|
+
color: color,
|
|
13
|
+
fontSize: $fu.addUnit(size)
|
|
14
|
+
}">
|
|
10
15
|
{{ loadingType == 0? contentText.contentdown: (loadingType == 1? contentText.contentrefresh : contentText.contentnomore) }}
|
|
11
16
|
</text>
|
|
12
17
|
</view>
|
|
13
18
|
</template>
|
|
14
19
|
|
|
15
20
|
<script>
|
|
21
|
+
import mixin from '../../libs/mixin/mixin.js'
|
|
16
22
|
import mpMixin from '../../libs/mixin/mpMixin.js'
|
|
17
23
|
import props from './props.js'
|
|
18
24
|
/**
|
|
19
25
|
* LoadingMore加载更多
|
|
20
26
|
* @description 此组件一般用于标识页面底部加载数据时的状态
|
|
21
27
|
* @property {String,Number} loadingType = [0|1|2] 组件状态 默认0 上拉的状态:0-loading前;1-loading中;2-没有更多了
|
|
22
|
-
* @property {String} color 定义颜色(默认 '#
|
|
28
|
+
* @property {String} color 定义颜色(默认 '#a5a6a8')
|
|
23
29
|
* @property {String,Number} size 定义字体大小(默认 12)
|
|
24
|
-
* @property {String,Number} opacity 定义字体透明度(默认 1)
|
|
25
30
|
* @property {Object} contentText 定义文字描述 ( 默认{contentdown: "上拉显示更多", contentrefresh: "正在努力加载", contentnomore: "已经到底了"})
|
|
26
31
|
* @property {String,Number} iconSize 定义图标大小(默认 18)
|
|
27
32
|
* @property {String} mode = [circle|semicircle|flower|over] 动画类型(默认 flower)
|
|
28
33
|
* @value circle 圆圈形状
|
|
29
34
|
* @value semicircle 半圆形状
|
|
30
|
-
* @value flower
|
|
35
|
+
* @value flower 花朵形状
|
|
31
36
|
* @value over 翻转效果
|
|
37
|
+
* @property {String} customClass 定义需要用到的外部类
|
|
38
|
+
* @property {Object,String} customStyle 定义需要用到的外部样式
|
|
39
|
+
*
|
|
32
40
|
* @example <fu-loading-more :loadingType="1"></fu-loading-more>
|
|
33
41
|
*/
|
|
34
42
|
export default {
|
|
35
43
|
name: "FuLoadingMore",
|
|
36
|
-
mixins: [mpMixin, props],
|
|
44
|
+
mixins: [mixin, mpMixin, props],
|
|
37
45
|
data() {
|
|
38
46
|
return {};
|
|
39
|
-
},
|
|
40
|
-
computed: {
|
|
41
|
-
textStyle() {
|
|
42
|
-
let obj = {
|
|
43
|
-
color: this.color,
|
|
44
|
-
opacity: this.opacity,
|
|
45
|
-
fontSize: this.$fu.addUnit(this.size)
|
|
46
|
-
}
|
|
47
|
-
return obj
|
|
48
|
-
}
|
|
49
47
|
}
|
|
50
48
|
}
|
|
51
49
|
</script>
|
|
52
50
|
|
|
53
51
|
<style lang="scss" scoped>
|
|
54
|
-
.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
flex
|
|
58
|
-
/* #endif */
|
|
59
|
-
height: 40px;
|
|
52
|
+
@import '../../libs/style/components.scss';
|
|
53
|
+
|
|
54
|
+
.fu-loading-more {
|
|
55
|
+
@include flex(row);
|
|
60
56
|
align-items: center;
|
|
61
57
|
justify-content: center;
|
|
58
|
+
height: 40px;
|
|
62
59
|
|
|
63
60
|
&__text {
|
|
64
61
|
font-size: 14px;
|
|
65
|
-
color: #777777;
|
|
66
62
|
margin-left: 5px;
|
|
67
63
|
}
|
|
68
64
|
}
|
|
@@ -1,36 +1,50 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
props: {
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @description 加载状态
|
|
5
|
+
* @values 0 - loading前, 1 - loading中, 2 - 没有更多了
|
|
6
|
+
* @default 0
|
|
7
|
+
*/
|
|
4
8
|
loadingType: {
|
|
5
9
|
type: [String,Number],
|
|
6
10
|
default: 0
|
|
7
11
|
},
|
|
8
|
-
|
|
12
|
+
/**
|
|
13
|
+
* @description 动画类型
|
|
14
|
+
* @values 'circle' - 圆圈形状, 'semicircle' - 半圆形状, 'flower' - 花朵形状, 'over' - 翻转效果
|
|
15
|
+
* @default 'flower'
|
|
16
|
+
*/
|
|
9
17
|
mode: {
|
|
10
18
|
type: String,
|
|
11
19
|
default: 'flower'
|
|
12
20
|
},
|
|
13
|
-
|
|
21
|
+
/**
|
|
22
|
+
* @description 文本&字体颜色
|
|
23
|
+
* @default '#a5a6a8'
|
|
24
|
+
*/
|
|
14
25
|
color: {
|
|
15
26
|
type: String,
|
|
16
|
-
default: "#
|
|
27
|
+
default: "#a5a6a8"
|
|
17
28
|
},
|
|
18
|
-
|
|
29
|
+
/**
|
|
30
|
+
* @description 字体大小
|
|
31
|
+
* @default 12
|
|
32
|
+
*/
|
|
19
33
|
size: {
|
|
20
34
|
type: [String,Number],
|
|
21
35
|
default: 12
|
|
22
36
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
// 定义图标大小(默认 18)
|
|
37
|
+
/**
|
|
38
|
+
* @description 图标大小
|
|
39
|
+
* @default 18
|
|
40
|
+
*/
|
|
29
41
|
iconSize: {
|
|
30
42
|
type: [String,Number],
|
|
31
43
|
default: 18
|
|
32
44
|
},
|
|
33
|
-
|
|
45
|
+
/**
|
|
46
|
+
* @description 文字描述
|
|
47
|
+
*/
|
|
34
48
|
contentText: {
|
|
35
49
|
type: Object,
|
|
36
50
|
default () {
|
|
@@ -38,7 +52,7 @@ export default {
|
|
|
38
52
|
contentdown: "上拉显示更多",
|
|
39
53
|
contentrefresh: "正在努力加载",
|
|
40
54
|
contentnomore: "已经到底了"
|
|
41
|
-
}
|
|
55
|
+
}
|
|
42
56
|
}
|
|
43
57
|
}
|
|
44
58
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
mode="center"
|
|
5
5
|
:zIndex="zIndex"
|
|
6
6
|
:customStyle="{
|
|
7
|
-
borderRadius: '
|
|
7
|
+
borderRadius: '10px',
|
|
8
8
|
overflow: 'hidden',
|
|
9
9
|
marginTop: `-${$fu.addUnit(negativeTop)}`
|
|
10
10
|
}"
|
|
@@ -66,10 +66,11 @@
|
|
|
66
66
|
* @property {String,Number} negativeTop 往上偏移的值,给一个负的margin-top,往上偏移,避免和键盘重合的情况,单位任意,数值则默认为px单位 (默认 0 )
|
|
67
67
|
* @property {String,Number} width modal宽度,不支持百分比,可以数值,px,rpx单位 (默认 '650rpx' )
|
|
68
68
|
* @property {String} align = [left|center|right] 文本对齐方式 (默认'left')
|
|
69
|
-
* @value left
|
|
70
|
-
* @value center
|
|
71
|
-
* @value right
|
|
69
|
+
* @value left 左对齐
|
|
70
|
+
* @value center 居中
|
|
71
|
+
* @value right 右对齐
|
|
72
72
|
* @property {String,Object} textStyle 文本扩展样式
|
|
73
|
+
*
|
|
73
74
|
* @event {Function} confirm 点击确认按钮时触发
|
|
74
75
|
* @event {Function} cancel 点击取消按钮时触发
|
|
75
76
|
* @event {Function} close 点击遮罩关闭出发,isMaskClick为true有效
|
|
@@ -132,8 +133,8 @@
|
|
|
132
133
|
</script>
|
|
133
134
|
|
|
134
135
|
<style lang="scss" scoped>
|
|
135
|
-
@import '../../libs/
|
|
136
|
-
@import '../../libs/
|
|
136
|
+
@import '../../libs/style/components.scss';
|
|
137
|
+
@import '../../libs/style/color.scss';
|
|
137
138
|
$fu-modal-border-radius: 6px;
|
|
138
139
|
$fu-bg-color: #f3f4f6;
|
|
139
140
|
$fu-content-color: #606266;
|
|
@@ -142,7 +143,9 @@
|
|
|
142
143
|
@include flex(column);
|
|
143
144
|
width: 650rpx;
|
|
144
145
|
border-radius: $fu-modal-border-radius;
|
|
146
|
+
/* #ifndef APP-NVUE */
|
|
145
147
|
overflow: hidden;
|
|
148
|
+
/* #endif */
|
|
146
149
|
|
|
147
150
|
&__title {
|
|
148
151
|
font-size: 16px;
|
|
@@ -150,6 +153,8 @@
|
|
|
150
153
|
color: $fu-content-color;
|
|
151
154
|
text-align: center;
|
|
152
155
|
padding-top: 25px;
|
|
156
|
+
position: relative;
|
|
157
|
+
z-index: 1;
|
|
153
158
|
}
|
|
154
159
|
|
|
155
160
|
&__content {
|
|
@@ -1,81 +1,125 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
props: {
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @description 标题
|
|
5
|
+
*/
|
|
4
6
|
title: {
|
|
5
7
|
type: [String],
|
|
6
8
|
default: ''
|
|
7
9
|
},
|
|
8
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @description 弹窗内容
|
|
12
|
+
*/
|
|
9
13
|
content: {
|
|
10
14
|
type: String,
|
|
11
15
|
default: ''
|
|
12
16
|
},
|
|
13
|
-
|
|
17
|
+
/**
|
|
18
|
+
* @description 确认文案
|
|
19
|
+
* @default '确认'
|
|
20
|
+
*/
|
|
14
21
|
confirmText: {
|
|
15
22
|
type: String,
|
|
16
23
|
default: '确认'
|
|
17
24
|
},
|
|
18
|
-
|
|
25
|
+
/**
|
|
26
|
+
* @description 取消文案
|
|
27
|
+
* @default '取消'
|
|
28
|
+
*/
|
|
19
29
|
cancelText: {
|
|
20
30
|
type: String,
|
|
21
31
|
default: '取消'
|
|
22
32
|
},
|
|
23
|
-
|
|
33
|
+
/**
|
|
34
|
+
* @description 是否显示确认按钮
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
24
37
|
showConfirmButton: {
|
|
25
38
|
type: Boolean,
|
|
26
39
|
default: true
|
|
27
40
|
},
|
|
28
|
-
|
|
41
|
+
/**
|
|
42
|
+
* @description 是否显示取消按钮
|
|
43
|
+
* @default true
|
|
44
|
+
*/
|
|
29
45
|
showCancelButton: {
|
|
30
46
|
type: Boolean,
|
|
31
|
-
default:
|
|
47
|
+
default: true
|
|
32
48
|
},
|
|
33
|
-
|
|
49
|
+
/**
|
|
50
|
+
* @description 确认按钮颜色
|
|
51
|
+
*/
|
|
34
52
|
confirmColor: {
|
|
35
53
|
type: String,
|
|
36
54
|
default: ''
|
|
37
55
|
},
|
|
38
|
-
|
|
56
|
+
/**
|
|
57
|
+
* @description 取消文字颜色
|
|
58
|
+
* @default '#999999'
|
|
59
|
+
*/
|
|
39
60
|
cancelColor: {
|
|
40
61
|
type: String,
|
|
41
62
|
default: '#999999'
|
|
42
63
|
},
|
|
43
|
-
|
|
64
|
+
/**
|
|
65
|
+
* @description 对调确认和取消的位置
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
44
68
|
buttonReverse: {
|
|
45
69
|
type: Boolean,
|
|
46
70
|
default: false
|
|
47
71
|
},
|
|
48
|
-
|
|
72
|
+
/**
|
|
73
|
+
* @description 层级
|
|
74
|
+
* @default 10075
|
|
75
|
+
*/
|
|
49
76
|
zIndex: {
|
|
50
77
|
type: [String, Number],
|
|
51
78
|
default: 10075
|
|
52
79
|
},
|
|
53
|
-
|
|
80
|
+
/**
|
|
81
|
+
* @description 是否异步关闭,只对确定按钮有效
|
|
82
|
+
* @default false
|
|
83
|
+
*/
|
|
54
84
|
asyncClose: {
|
|
55
85
|
type: Boolean,
|
|
56
86
|
default: false
|
|
57
87
|
},
|
|
58
|
-
|
|
88
|
+
/**
|
|
89
|
+
* @description 是否允许点击遮罩关闭modal
|
|
90
|
+
* @default true
|
|
91
|
+
*/
|
|
59
92
|
isMaskClick: {
|
|
60
93
|
type: Boolean,
|
|
61
94
|
default: true
|
|
62
95
|
},
|
|
63
|
-
|
|
96
|
+
/**
|
|
97
|
+
* @description 给一个负的margin-top,往上偏移,避免和键盘重合的情况
|
|
98
|
+
*/
|
|
64
99
|
negativeTop: {
|
|
65
100
|
type: [String, Number],
|
|
66
101
|
default: 0
|
|
67
102
|
},
|
|
68
|
-
|
|
103
|
+
/**
|
|
104
|
+
* @description modal宽度,不支持百分比,可以数值,px,rpx单位
|
|
105
|
+
* @default '650rpx'
|
|
106
|
+
*/
|
|
69
107
|
width: {
|
|
70
108
|
type: [String, Number],
|
|
71
109
|
default: '650rpx'
|
|
72
110
|
},
|
|
73
|
-
|
|
111
|
+
/**
|
|
112
|
+
* @description 文本对齐方式
|
|
113
|
+
* @values 'left' - 左对齐, 'center' - 居中, 'right' - 右对齐
|
|
114
|
+
* @default 'left'
|
|
115
|
+
*/
|
|
74
116
|
align: {
|
|
75
117
|
type: String,
|
|
76
118
|
default: 'left'
|
|
77
119
|
},
|
|
78
|
-
|
|
120
|
+
/**
|
|
121
|
+
* @description 文本自定义样式
|
|
122
|
+
*/
|
|
79
123
|
textStyle: {
|
|
80
124
|
type: [Object, String],
|
|
81
125
|
default: ''
|