@10yun/cv-mobile-ui 0.5.29 → 0.5.30
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/package.json +1 -1
- package/plugins/luch-request/adapters/index.js +131 -0
- package/plugins/luch-request/core/InterceptorManager.js +50 -0
- package/plugins/luch-request/core/Request.js +199 -0
- package/plugins/luch-request/core/buildFullPath.js +20 -0
- package/plugins/luch-request/core/defaults.js +32 -0
- package/plugins/luch-request/core/dispatchRequest.js +5 -0
- package/plugins/luch-request/core/mergeConfig.js +125 -0
- package/plugins/luch-request/core/settle.js +16 -0
- package/plugins/luch-request/helpers/buildURL.js +71 -0
- package/plugins/luch-request/helpers/combineURLs.js +12 -0
- package/plugins/luch-request/helpers/isAbsoluteURL.js +14 -0
- package/plugins/luch-request/index.d.ts +197 -0
- package/plugins/luch-request/index.js +2 -0
- package/plugins/luch-request/readme.md +3 -0
- package/plugins/luch-request/utils/clone.js +264 -0
- package/plugins/luch-request/utils.js +131 -0
- package/plugins/request.js +2 -2
- package/ui-cv/components/cv-form-item/cv-form-item.vue +1 -1
- package/ui-fireui/fui-actionsheet/fui-actionsheet.vue +202 -0
- package/ui-fireui/fui-alert/fui-alert.vue +141 -0
- package/ui-fireui/fui-badge/fui-badge.vue +158 -0
- package/ui-fireui/fui-bottom-navigation/fui-bottom-navigation.vue +390 -0
- package/ui-fireui/fui-bottom-popup/fui-bottom-popup.vue +100 -0
- package/ui-fireui/fui-bubble-popup/fui-bubble-popup.vue +236 -0
- package/ui-fireui/fui-button/fui-button.vue +424 -0
- package/ui-fireui/fui-calendar/fui-calendar.js +915 -0
- package/ui-fireui/fui-calendar/fui-calendar.vue +868 -0
- package/ui-fireui/fui-card/fui-card.vue +231 -0
- package/ui-fireui/fui-cascade-selection/fui-cascade-selection.vue +538 -0
- package/ui-fireui/fui-circular-progress/fui-circular-progress.vue +261 -0
- package/ui-fireui/fui-collapse/fui-collapse.vue +179 -0
- package/ui-fireui/fui-countdown/fui-countdown.vue +301 -0
- package/ui-fireui/fui-datetime/fui-datetime.vue +570 -0
- package/ui-fireui/fui-divider/fui-divider.vue +118 -0
- package/ui-fireui/fui-drawer/fui-drawer.vue +103 -0
- package/ui-fireui/fui-dropdown-list/fui-dropdown-list.vue +70 -0
- package/ui-fireui/fui-fab/fui-fab.vue +284 -0
- package/ui-fireui/fui-footer/fui-footer.vue +131 -0
- package/ui-fireui/fui-grid/fui-grid.vue +42 -0
- package/ui-fireui/fui-grid-item/fui-grid-item.vue +142 -0
- package/ui-fireui/fui-icon/fui-icon.vue +820 -0
- package/ui-fireui/fui-image-cropper/fui-image-cropper.vue +1058 -0
- package/ui-fireui/fui-image-group/fui-image-group.vue +149 -0
- package/ui-fireui/fui-keyboard/fui-keyboard.vue +254 -0
- package/ui-fireui/fui-keyboard-input/fui-keyboard-input.vue +78 -0
- package/ui-fireui/fui-list-cell/fui-list-cell.vue +178 -0
- package/ui-fireui/fui-list-view/fui-list-view.vue +87 -0
- package/ui-fireui/fui-loading/fui-loading.vue +78 -0
- package/ui-fireui/fui-loadmore/fui-loadmore.vue +163 -0
- package/ui-fireui/fui-modal/fui-modal.vue +392 -0
- package/ui-fireui/fui-navigation-bar/fui-navigation-bar.vue +180 -0
- package/ui-fireui/fui-no-data/fui-no-data.vue +116 -0
- package/ui-fireui/fui-nomore/fui-nomore.vue +116 -0
- package/ui-fireui/fui-numberbox/fui-numberbox.vue +234 -0
- package/ui-fireui/fui-numberbox-border/fui-numberbox-border.vue +232 -0
- package/ui-fireui/fui-picture-cropper/fui-picture-cropper.vue +682 -0
- package/ui-fireui/fui-picture-cropper/fui-picture-cropper.wxs +560 -0
- package/ui-fireui/fui-rate/fui-rate.vue +167 -0
- package/ui-fireui/fui-round-progress/fui-round-progress.vue +306 -0
- package/ui-fireui/fui-scroll-top/fui-scroll-top.vue +189 -0
- package/ui-fireui/fui-sharemodel/fui-sharemodel.vue +181 -0
- package/ui-fireui/fui-skeleton/fui-skeleton.vue +248 -0
- package/ui-fireui/fui-steps/fui-steps.vue +214 -0
- package/ui-fireui/fui-sticky/fui-sticky.vue +155 -0
- package/ui-fireui/fui-sticky-wxs/fui-sticky-wxs.vue +133 -0
- package/ui-fireui/fui-sticky-wxs/fui-sticky.wxs +44 -0
- package/ui-fireui/fui-swipe-action/fui-swipe-action.vue +301 -0
- package/ui-fireui/fui-tabbar/fui-tabbar.vue +283 -0
- package/ui-fireui/fui-tabs/fui-tabs.vue +284 -0
- package/ui-fireui/fui-tabs2/fui-tabs2.vue +284 -0
- package/ui-fireui/fui-tag/fui-tag.vue +374 -0
- package/ui-fireui/fui-time-axis/fui-time-axis.vue +36 -0
- package/ui-fireui/fui-timeaxis-item/fui-timeaxis-item.vue +48 -0
- package/ui-fireui/fui-tips/fui-tips.vue +161 -0
- package/ui-fireui/fui-toast/fui-toast.vue +117 -0
- package/ui-fireui/fui-top-dropdown/fui-top-dropdown.vue +129 -0
- package/ui-fireui/fui-upload/fui-upload.vue +446 -0
- package/ui-fireui/fui-uploadsamll/fui-uploadsamll.vue +472 -0
- package/uview-plus/README.md +1 -1
- package/uview-plus/changelog-wu-tool.md +21 -0
- package/uview-plus/changelog-wu.md +91 -0
- package/uview-plus/components/u-action-sheet/_doc/changelog.md +12 -0
- package/uview-plus/components/u-action-sheet/_doc/package.json +92 -0
- package/uview-plus/components/u-action-sheet/_doc/readme.md +16 -0
- package/uview-plus/components/u-app-update/_doc/changelog.md +26 -0
- package/uview-plus/components/u-app-update/_doc/package.json +89 -0
- package/uview-plus/components/u-app-update/_doc/readme.md +16 -0
- package/uview-plus/components/u-app-update/config.js +120 -0
- package/uview-plus/components/u-app-update/img/act.png +0 -0
- package/uview-plus/components/u-app-update/img/appUploadAlertBoxBg.png +0 -0
- package/uview-plus/components/u-app-update/img/close.png +0 -0
- package/uview-plus/components/u-app-update/js-sdk/checkVersion.js +81 -0
- package/uview-plus/components/u-app-update/js-sdk/silentlyAppUpdate.js +41 -0
- package/uview-plus/components/u-app-update/pages/index.vue +8 -0
- package/uview-plus/components/u-app-update/u-app-update.vue +583 -0
- package/uview-plus/components/u-button-wu/_doc/changelog.md +6 -0
- package/uview-plus/components/u-button-wu/_doc/package.json +89 -0
- package/uview-plus/components/u-button-wu/_doc/readme.md +16 -0
- package/uview-plus/components/u-button-wu/u-button-wu.vue +522 -0
- package/uview-plus/components/u-button-wu/vue.scss +81 -0
- package/uview-plus/components/u-calendar-wu/_doc/changelog.md +145 -0
- package/uview-plus/components/u-calendar-wu/_doc/package.json +90 -0
- package/uview-plus/components/u-calendar-wu/_doc/readme.md +16 -0
- package/uview-plus/components/u-calendar-wu/calendar.js +664 -0
- package/uview-plus/components/u-calendar-wu/i18n/en.json +14 -0
- package/uview-plus/components/u-calendar-wu/i18n/index.js +8 -0
- package/uview-plus/components/u-calendar-wu/i18n/zh-Hans.json +14 -0
- package/uview-plus/components/u-calendar-wu/i18n/zh-Hant.json +14 -0
- package/uview-plus/components/u-calendar-wu/props.js +166 -0
- package/uview-plus/components/u-calendar-wu/style.css +196 -0
- package/uview-plus/components/u-calendar-wu/u-calendar-wu.vue +921 -0
- package/uview-plus/components/u-calendar-wu/util.js +552 -0
- package/uview-plus/components/u-calendar-wu/wu-calendar-block/props.js +73 -0
- package/uview-plus/components/u-calendar-wu/wu-calendar-block/wu-calendar-block.vue +122 -0
- package/uview-plus/components/u-calendar-wu/wu-calendar-item/props.js +55 -0
- package/uview-plus/components/u-calendar-wu/wu-calendar-item/wu-calendar-item.vue +293 -0
- package/uview-plus/components/u-cell/_doc/changelog.md +6 -0
- package/uview-plus/components/u-cell/_doc/package.json +89 -0
- package/uview-plus/components/u-cell/_doc/readme.md +25 -0
- package/uview-plus/components/u-checkbox/_doc/changelog.md +8 -0
- package/uview-plus/components/u-checkbox/_doc/package.json +88 -0
- package/uview-plus/components/u-checkbox/_doc/readme.md +25 -0
- package/uview-plus/components/u-code/_doc/changelog.md +6 -0
- package/uview-plus/components/u-code/_doc/package.json +86 -0
- package/uview-plus/components/u-code/_doc/readme.md +16 -0
- package/uview-plus/components/u-drag-sort/_doc/changelog.md +0 -0
- package/uview-plus/components/u-drag-sort/_doc/package.json +85 -0
- package/uview-plus/components/u-drag-sort/_doc/readme.md +16 -0
- package/uview-plus/components/u-drag-sort/u-drag-sort.vue +3 -0
- package/uview-plus/components/u-empty/u-empty.vue +27 -1
- package/uview-plus/components/u-gap/_doc/changelog.md +4 -0
- package/uview-plus/components/u-gap/_doc/package.json +86 -0
- package/uview-plus/components/u-gap/_doc/readme.md +22 -0
- package/uview-plus/components/u-icon/_doc/changelog.md +10 -0
- package/uview-plus/components/u-icon/_doc/package.json +85 -0
- package/uview-plus/components/u-icon/_doc/readme.md +10 -0
- package/uview-plus/components/u-icon/icon.js +23 -25
- package/uview-plus/components/u-icon/icons.js +213 -213
- package/uview-plus/components/u-icon/style.css +3 -3
- package/uview-plus/components/u-icon/u-icon2.vue +149 -0
- package/uview-plus/components/u-image-wu/_doc/changelog.md +21 -0
- package/uview-plus/components/u-image-wu/_doc/package.json +88 -0
- package/uview-plus/components/u-image-wu/_doc/readme.md +11 -0
- package/uview-plus/components/u-image-wu/props.js +94 -0
- package/uview-plus/components/u-image-wu/u-image-wu.vue +243 -0
- package/uview-plus/components/u-input/_doc/changelog.md +6 -0
- package/uview-plus/components/u-input/_doc/package.json +88 -0
- package/uview-plus/components/u-input/_doc/readme.md +16 -0
- package/uview-plus/components/u-line/_doc/changelog.md +8 -0
- package/uview-plus/components/u-line/_doc/package.json +86 -0
- package/uview-plus/components/u-line/_doc/readme.md +16 -0
- package/uview-plus/components/u-link/_doc/changelog.md +8 -0
- package/uview-plus/components/u-link/_doc/package.json +86 -0
- package/uview-plus/components/u-link/_doc/readme.md +20 -0
- package/uview-plus/components/u-loading-icon/_doc/changelog.md +12 -0
- package/uview-plus/components/u-loading-icon/_doc/package.json +86 -0
- package/uview-plus/components/u-loading-icon/_doc/readme.md +16 -0
- package/uview-plus/components/u-loading-icon/props.js +1 -1
- package/uview-plus/components/u-navbar/_doc/changelog.md +6 -0
- package/uview-plus/components/u-navbar/_doc/package.json +89 -0
- package/uview-plus/components/u-navbar/_doc/readme.md +16 -0
- package/uview-plus/components/u-navbar-wu/props.js +102 -0
- package/uview-plus/components/u-navbar-wu/u-navbar-wu.vue +196 -0
- package/uview-plus/components/u-number-box/_doc/changelog.md +19 -0
- package/uview-plus/components/u-number-box/_doc/package.json +88 -0
- package/uview-plus/components/u-number-box/_doc/readme.md +16 -0
- package/uview-plus/components/u-overlay/_doc/changelog.md +4 -0
- package/uview-plus/components/u-overlay/_doc/package.json +88 -0
- package/uview-plus/components/u-overlay/_doc/readme.md +16 -0
- package/uview-plus/components/u-popup/_doc/changelog.md +4 -0
- package/uview-plus/components/u-popup/_doc/package.json +92 -0
- package/uview-plus/components/u-popup/_doc/readme.md +16 -0
- package/uview-plus/components/u-popup-wu/keypress.js +45 -0
- package/uview-plus/components/u-popup-wu/u-popup-wu.vue +519 -0
- package/uview-plus/components/u-radio/_doc/changelog.md +6 -0
- package/uview-plus/components/u-radio/_doc/package.json +88 -0
- package/uview-plus/components/u-radio/_doc/readme.md +25 -0
- package/uview-plus/components/u-row/_doc/changelog.md +8 -0
- package/uview-plus/components/u-row/_doc/package.json +86 -0
- package/uview-plus/components/u-row/_doc/readme.md +16 -0
- package/uview-plus/components/u-safe-bottom/_doc/changelog.md +6 -0
- package/uview-plus/components/u-safe-bottom/_doc/package.json +86 -0
- package/uview-plus/components/u-safe-bottom/_doc/readme.md +16 -0
- package/uview-plus/components/u-sku-wu/_doc/changelog.md +27 -0
- package/uview-plus/components/u-sku-wu/_doc/package.json +93 -0
- package/uview-plus/components/u-sku-wu/_doc/readme.md +16 -0
- package/uview-plus/components/u-sku-wu/props.js +86 -0
- package/uview-plus/components/u-sku-wu/style.css +271 -0
- package/uview-plus/components/u-sku-wu/u-sku-wu.vue +864 -0
- package/uview-plus/components/u-status-bar/_doc/changelog.md +4 -0
- package/uview-plus/components/u-status-bar/_doc/package.json +86 -0
- package/uview-plus/components/u-status-bar/_doc/readme.md +16 -0
- package/uview-plus/components/u-text/_doc/changelog.md +10 -0
- package/uview-plus/components/u-text/_doc/package.json +89 -0
- package/uview-plus/components/u-text/_doc/readme.md +20 -0
- package/uview-plus/components/u-textarea/_doc/changelog.md +6 -0
- package/uview-plus/components/u-textarea/_doc/package.json +86 -0
- package/uview-plus/components/u-textarea/_doc/readme.md +25 -0
- package/uview-plus/components/u-transition/_doc/changelog.md +14 -0
- package/uview-plus/components/u-transition/_doc/package.json +86 -0
- package/uview-plus/components/u-transition/_doc/readme.md +16 -0
- package/uview-plus/components/u-transition-wu/createAnimation.js +148 -0
- package/uview-plus/components/u-transition-wu/props.js +32 -0
- package/uview-plus/components/u-transition-wu/u-transition.vue +300 -0
- package/uview-plus/components/u-verification-code/u-verification-code.vue +161 -0
- package/uview-plus/index.js +107 -94
- package/uview-plus/libs/config/config.js +46 -48
- package/uview-plus/libs/css/color.scss +32 -311
- package/uview-plus/libs/css/components-wu.scss +30 -0
- package/uview-plus/libs/css/vue.scss +10 -10
- package/uview-plus/libs/function/calc.js +61 -55
- package/uview-plus/libs/function/cc.js +66 -0
- package/uview-plus/libs/function/color/color-convert/CHANGELOG.md +54 -0
- package/uview-plus/libs/function/color/color-convert/LICENSE +21 -0
- package/uview-plus/libs/function/color/color-convert/README.md +68 -0
- package/uview-plus/libs/function/color/color-convert/conversions.js +839 -0
- package/uview-plus/libs/function/color/color-convert/index.js +81 -0
- package/uview-plus/libs/function/color/color-convert/package.json +48 -0
- package/uview-plus/libs/function/color/color-convert/route.js +97 -0
- package/uview-plus/libs/function/color/color-name/LICENSE +8 -0
- package/uview-plus/libs/function/color/color-name/README.md +11 -0
- package/uview-plus/libs/function/color/color-name/index.js +152 -0
- package/uview-plus/libs/function/color/color-name/package.json +28 -0
- package/uview-plus/libs/function/color/color-string/LICENSE +21 -0
- package/uview-plus/libs/function/color/color-string/README.md +62 -0
- package/uview-plus/libs/function/color/color-string/index.js +244 -0
- package/uview-plus/libs/function/color/color-string/package.json +39 -0
- package/uview-plus/libs/function/color/color.js +496 -0
- package/uview-plus/libs/function/color/index.js +158 -0
- package/uview-plus/libs/function/color/is-arrayish/LICENSE +21 -0
- package/uview-plus/libs/function/color/is-arrayish/README.md +16 -0
- package/uview-plus/libs/function/color/is-arrayish/index.js +9 -0
- package/uview-plus/libs/function/color/is-arrayish/package.json +45 -0
- package/uview-plus/libs/function/color/is-arrayish/yarn-error.log +1443 -0
- package/uview-plus/libs/function/color/simple-swizzle/LICENSE +21 -0
- package/uview-plus/libs/function/color/simple-swizzle/README.md +39 -0
- package/uview-plus/libs/function/color/simple-swizzle/index.js +29 -0
- package/uview-plus/libs/function/color/simple-swizzle/package.json +36 -0
- package/uview-plus/libs/function/colorGradient.js +108 -106
- package/uview-plus/libs/function/debounce.js +17 -17
- package/uview-plus/libs/function/digit.js +1 -3
- package/uview-plus/libs/function/http.js +3 -3
- package/uview-plus/libs/function/index-wu.js +231 -0
- package/uview-plus/libs/function/index.js +579 -566
- package/uview-plus/libs/function/platform.js +18 -18
- package/uview-plus/libs/function/test.js +135 -137
- package/uview-plus/libs/function/throttle.js +17 -17
- package/uview-plus/libs/luch-request/core/Request.js +199 -199
- package/uview-plus/libs/mixin/mpMixin.js +1 -0
- package/uview-plus/libs/mixin/openType.js +33 -0
- package/uview-plus/libs/util/async-validator.js +1343 -1343
- package/uview-plus/libs/util/dayjs.js +404 -0
- package/uview-plus/libs/util/route.js +101 -105
- package/uview-plus/package-wu-tool.json +84 -0
- package/uview-plus/package-wu.json +112 -0
- package/uview-plus/package.json +106 -95
- package/uview-plus/readme-wu.md +148 -0
- package/uview-ui/index.js +51 -52
- package/plugins/uni-upgrade.js +0 -294
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view @touchmove.stop.prevent>
|
|
3
|
+
<view v-if="mask" class="fui-drawer-mask" :class="{ 'fui-drawer-mask_show': visible }" @tap="handleMaskClick"></view>
|
|
4
|
+
<view
|
|
5
|
+
class="fui-drawer-container"
|
|
6
|
+
:class="[
|
|
7
|
+
mode == 'left' ? 'fui-drawer-container_left' : 'fui-drawer-container_right',
|
|
8
|
+
visible ? 'fui-drawer-container_show' : ''
|
|
9
|
+
]"
|
|
10
|
+
>
|
|
11
|
+
<slot></slot>
|
|
12
|
+
</view>
|
|
13
|
+
</view>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script>
|
|
17
|
+
/**
|
|
18
|
+
* 超过一屏时插槽使用scroll-view
|
|
19
|
+
**/
|
|
20
|
+
export default {
|
|
21
|
+
name: 'fuiDrawer',
|
|
22
|
+
props: {
|
|
23
|
+
visible: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
26
|
+
},
|
|
27
|
+
mask: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: true
|
|
30
|
+
},
|
|
31
|
+
maskClosable: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: true
|
|
34
|
+
},
|
|
35
|
+
mode: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: 'true' // left right
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
methods: {
|
|
41
|
+
handleMaskClick() {
|
|
42
|
+
if (!this.maskClosable) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
this.$emit('close', {});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<style scoped>
|
|
52
|
+
.fui-drawer-mask {
|
|
53
|
+
opacity: 0;
|
|
54
|
+
visibility: hidden;
|
|
55
|
+
position: fixed;
|
|
56
|
+
top: 0;
|
|
57
|
+
left: 0;
|
|
58
|
+
right: 0;
|
|
59
|
+
bottom: 0;
|
|
60
|
+
z-index: 8888;
|
|
61
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
62
|
+
transition: all 0.3s ease-in-out;
|
|
63
|
+
}
|
|
64
|
+
.fui-drawer-mask_show {
|
|
65
|
+
display: block;
|
|
66
|
+
visibility: visible;
|
|
67
|
+
opacity: 1;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.fui-drawer-container {
|
|
71
|
+
position: fixed;
|
|
72
|
+
left: 50%;
|
|
73
|
+
height: 100.2%;
|
|
74
|
+
top: 0;
|
|
75
|
+
transform: translate3d(-50%, -50%, 0);
|
|
76
|
+
transform-origin: center;
|
|
77
|
+
transition: all 0.3s ease-in-out;
|
|
78
|
+
z-index: 99999;
|
|
79
|
+
opacity: 0;
|
|
80
|
+
overflow-y: scroll;
|
|
81
|
+
background-color: #fff;
|
|
82
|
+
-webkit-overflow-scrolling: touch;
|
|
83
|
+
-ms-touch-action: pan-y cross-slide-y;
|
|
84
|
+
-ms-scroll-chaining: none;
|
|
85
|
+
-ms-scroll-limit: 0 50 0 50;
|
|
86
|
+
}
|
|
87
|
+
.fui-drawer-container_left {
|
|
88
|
+
left: 0;
|
|
89
|
+
top: 50%;
|
|
90
|
+
transform: translate3d(-100%, -50%, 0);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.fui-drawer-container_right {
|
|
94
|
+
right: 0;
|
|
95
|
+
top: 50%;
|
|
96
|
+
left: auto;
|
|
97
|
+
transform: translate3d(100%, -50%, 0);
|
|
98
|
+
}
|
|
99
|
+
.fui-drawer-container_show {
|
|
100
|
+
opacity: 1;
|
|
101
|
+
transform: translate3d(0, -50%, 0);
|
|
102
|
+
}
|
|
103
|
+
</style>
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="fui-selected-class fui-dropdown-list" :style="{ height: selectHeight ? selectHeight + 'rpx' : 'auto' }">
|
|
3
|
+
<slot name="selectionbox"></slot>
|
|
4
|
+
<view
|
|
5
|
+
class="fui-dropdown-view"
|
|
6
|
+
:class="[show ? 'fui-dropdownlist-show' : '']"
|
|
7
|
+
:style="{ backgroundColor: backgroundColor, height: show ? height + 'rpx' : 0, top: top + 'rpx' }"
|
|
8
|
+
>
|
|
9
|
+
<slot name="dropdownbox"></slot>
|
|
10
|
+
</view>
|
|
11
|
+
</view>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script>
|
|
15
|
+
export default {
|
|
16
|
+
name: 'fuiDropdownList',
|
|
17
|
+
props: {
|
|
18
|
+
//控制显示
|
|
19
|
+
show: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: false
|
|
22
|
+
},
|
|
23
|
+
//背景颜色
|
|
24
|
+
backgroundColor: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: '#fff'
|
|
27
|
+
},
|
|
28
|
+
//top rpx
|
|
29
|
+
top: {
|
|
30
|
+
type: Number,
|
|
31
|
+
default: 0
|
|
32
|
+
},
|
|
33
|
+
//下拉框高度 rpx
|
|
34
|
+
height: {
|
|
35
|
+
type: Number,
|
|
36
|
+
default: 0
|
|
37
|
+
},
|
|
38
|
+
//选择框高度 单位rpx
|
|
39
|
+
selectHeight: {
|
|
40
|
+
type: Number,
|
|
41
|
+
default: 0
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
methods: {}
|
|
45
|
+
};
|
|
46
|
+
</script>
|
|
47
|
+
|
|
48
|
+
<style scoped>
|
|
49
|
+
.fui-dropdown-list {
|
|
50
|
+
position: relative;
|
|
51
|
+
width: 100%;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.fui-dropdown-view {
|
|
55
|
+
width: 100%;
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
position: absolute;
|
|
58
|
+
z-index: -99;
|
|
59
|
+
left: 0;
|
|
60
|
+
opacity: 0;
|
|
61
|
+
/* visibility: hidden; */
|
|
62
|
+
transition: all 0.2s ease-in-out;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.fui-dropdownlist-show {
|
|
66
|
+
opacity: 1;
|
|
67
|
+
z-index: 996;
|
|
68
|
+
/* visibility: visible; */
|
|
69
|
+
}
|
|
70
|
+
</style>
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view @touchmove.stop.prevent>
|
|
3
|
+
<view
|
|
4
|
+
class="fui-fab-box"
|
|
5
|
+
:class="{ 'fui-fab-right': !left || (left && right) }"
|
|
6
|
+
:style="{ left: getLeft(), right: getRight(), bottom: bottom + 'rpx' }"
|
|
7
|
+
>
|
|
8
|
+
<view class="fui-fab-btn" :class="{ 'fui-visible': isOpen, 'fui-fab-hidden': hidden }">
|
|
9
|
+
<view
|
|
10
|
+
class="fui-fab-item-box"
|
|
11
|
+
:class="{ 'fui-fab-item-left': left && !right && item.imgUrl }"
|
|
12
|
+
v-for="(item, index) in btnList"
|
|
13
|
+
:key="index"
|
|
14
|
+
@tap.stop="handleClick(index)"
|
|
15
|
+
>
|
|
16
|
+
<view
|
|
17
|
+
:class="[left && !right ? 'fui-text-left' : 'fui-text-right']"
|
|
18
|
+
v-if="item.imgUrl"
|
|
19
|
+
:style="{ fontSize: item.fontSize + 'rpx', color: item.color }"
|
|
20
|
+
>
|
|
21
|
+
{{ item.text || '' }}
|
|
22
|
+
</view>
|
|
23
|
+
<view
|
|
24
|
+
class="fui-fab-item"
|
|
25
|
+
:style="{ width: width + 'rpx', height: height + 'rpx', background: item.bgColor || bgColor, borderRadius: radius }"
|
|
26
|
+
>
|
|
27
|
+
<view class="fui-fab-title" v-if="!item.imgUrl" :style="{ fontSize: item.fontSize + 'rpx', color: item.color }">
|
|
28
|
+
{{ item.text || '' }}
|
|
29
|
+
</view>
|
|
30
|
+
<image
|
|
31
|
+
:src="item.imgUrl"
|
|
32
|
+
class="fui-fab-img"
|
|
33
|
+
v-else
|
|
34
|
+
:style="{ width: item.imgWidth + 'rpx', height: item.imgHeight + 'rpx' }"
|
|
35
|
+
></image>
|
|
36
|
+
</view>
|
|
37
|
+
</view>
|
|
38
|
+
</view>
|
|
39
|
+
<view
|
|
40
|
+
class="fui-fab-item"
|
|
41
|
+
:class="{ 'fui-active': isOpen }"
|
|
42
|
+
:style="{ width: width + 'rpx', height: height + 'rpx', borderRadius: radius, background: bgColor, color: color }"
|
|
43
|
+
@tap.stop="handleClick(-1)"
|
|
44
|
+
>
|
|
45
|
+
<view class="fui-fab-icon fui-icon-plus"></view>
|
|
46
|
+
</view>
|
|
47
|
+
</view>
|
|
48
|
+
<view class="fui-fab-mask" :class="{ 'fui-visible': isOpen }" @tap="handleClickCancel"></view>
|
|
49
|
+
</view>
|
|
50
|
+
</template>
|
|
51
|
+
|
|
52
|
+
<script>
|
|
53
|
+
//拓展出来的按钮不应多于6个,否则违反了作为悬浮按钮的快速、高效的原则
|
|
54
|
+
export default {
|
|
55
|
+
name: 'fuiFab',
|
|
56
|
+
props: {
|
|
57
|
+
//rpx 为0时值为auto
|
|
58
|
+
left: {
|
|
59
|
+
type: Number,
|
|
60
|
+
default: 0
|
|
61
|
+
},
|
|
62
|
+
//rpx 当为0时且left不为0,值为auto
|
|
63
|
+
right: {
|
|
64
|
+
type: Number,
|
|
65
|
+
default: 80
|
|
66
|
+
},
|
|
67
|
+
//rpx bottom值
|
|
68
|
+
bottom: {
|
|
69
|
+
type: Number,
|
|
70
|
+
default: 100
|
|
71
|
+
},
|
|
72
|
+
//默认按钮 宽度 rpx
|
|
73
|
+
width: {
|
|
74
|
+
type: Number,
|
|
75
|
+
default: 108
|
|
76
|
+
},
|
|
77
|
+
//默认按钮 高度 rpx
|
|
78
|
+
height: {
|
|
79
|
+
type: Number,
|
|
80
|
+
default: 108
|
|
81
|
+
},
|
|
82
|
+
//圆角值
|
|
83
|
+
radius: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: '50%'
|
|
86
|
+
},
|
|
87
|
+
//默认按钮背景颜色
|
|
88
|
+
bgColor: {
|
|
89
|
+
type: String,
|
|
90
|
+
default: '#5677fc'
|
|
91
|
+
},
|
|
92
|
+
//字体颜色
|
|
93
|
+
color: {
|
|
94
|
+
type: String,
|
|
95
|
+
default: '#fff'
|
|
96
|
+
},
|
|
97
|
+
//拓展按钮
|
|
98
|
+
// bgColor: "#5677fc",
|
|
99
|
+
// //图标/图片地址
|
|
100
|
+
// imgUrl: "/static/images/fab/fab_reward.png",
|
|
101
|
+
// //图片高度 rpx
|
|
102
|
+
// imgHeight: 60,
|
|
103
|
+
// //图片宽度 rpx
|
|
104
|
+
// imgWidth: 60,
|
|
105
|
+
// //名称
|
|
106
|
+
// text: "名称",
|
|
107
|
+
// //字体大小
|
|
108
|
+
// fontSize: 30,
|
|
109
|
+
// //字体颜色
|
|
110
|
+
// color: "#fff"
|
|
111
|
+
btnList: {
|
|
112
|
+
type: Array,
|
|
113
|
+
default() {
|
|
114
|
+
return [];
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
//点击遮罩 是否可关闭
|
|
118
|
+
maskClosable: {
|
|
119
|
+
type: Boolean,
|
|
120
|
+
default: false
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
data() {
|
|
124
|
+
return {
|
|
125
|
+
isOpen: false,
|
|
126
|
+
hidden: true,
|
|
127
|
+
timer: null
|
|
128
|
+
};
|
|
129
|
+
},
|
|
130
|
+
methods: {
|
|
131
|
+
getLeft() {
|
|
132
|
+
let val = 'auto';
|
|
133
|
+
if (this.left && !this.right) {
|
|
134
|
+
val = this.left + 'rpx';
|
|
135
|
+
}
|
|
136
|
+
return val;
|
|
137
|
+
},
|
|
138
|
+
getRight() {
|
|
139
|
+
let val = this.right + 'rpx';
|
|
140
|
+
if (this.left && !this.right) {
|
|
141
|
+
val = 'auto';
|
|
142
|
+
}
|
|
143
|
+
return val;
|
|
144
|
+
},
|
|
145
|
+
handleClick(index) {
|
|
146
|
+
this.hidden = false;
|
|
147
|
+
clearTimeout(this.timer);
|
|
148
|
+
if (index == -1 && this.btnList.length) {
|
|
149
|
+
this.isOpen = !this.isOpen;
|
|
150
|
+
} else {
|
|
151
|
+
this.$emit('click', {
|
|
152
|
+
index: index
|
|
153
|
+
});
|
|
154
|
+
this.isOpen = false;
|
|
155
|
+
}
|
|
156
|
+
if (!this.isOpen) {
|
|
157
|
+
this.timer = setTimeout(() => {
|
|
158
|
+
this.hidden = true;
|
|
159
|
+
}, 200);
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
handleClickCancel() {
|
|
163
|
+
if (!this.maskClosable) return;
|
|
164
|
+
this.isOpen = false;
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
beforeDestroy() {
|
|
168
|
+
clearTimeout(this.timer);
|
|
169
|
+
this.timer = null;
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
</script>
|
|
173
|
+
|
|
174
|
+
<style scoped>
|
|
175
|
+
@font-face {
|
|
176
|
+
font-family: 'fuifab';
|
|
177
|
+
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAREAA0AAAAABnAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAEKAAAABoAAAAciPExJUdERUYAAAQIAAAAHgAAAB4AKQAKT1MvMgAAAaAAAABCAAAAVjyBSAVjbWFwAAAB9AAAAD4AAAFCAA/pvmdhc3AAAAQAAAAACAAAAAj//wADZ2x5ZgAAAkAAAABRAAAAYFkYQQNoZWFkAAABMAAAADAAAAA2Fm5OF2hoZWEAAAFgAAAAHQAAACQH3QOFaG10eAAAAeQAAAAPAAAAEAwAAANsb2NhAAACNAAAAAoAAAAKADAAAG1heHAAAAGAAAAAHwAAACABDwAobmFtZQAAApQAAAFJAAACiCnmEVVwb3N0AAAD4AAAAB8AAAAx2XRuznjaY2BkYGAAYtGolt54fpuvDNwsDCBwc1krH5xm/t/I/J+5FsjlYGACiQIAGAEKZHjaY2BkYGBu+N/AEMPCAALM/xkYGVABCwBZ4wNrAAAAeNpjYGRgYGBhkGEA0QwMTEDMBYQMDP/BfAYAC4kBOAB42mNgZGFgnMDAysDA1Ml0hoGBoR9CM75mMGLkAIoysDIzYAUBaa4pDA7PhJ8JMzf8b2CIYW5gaAAKM4LkAN21DAEAAHjaY2GAABYIZgYAAIMAEAB42mNgYGBmgGAZBkYGELAB8hjBfBYGBSDNAoRA/jPh//8hpOQHqEoGRjYGGJOBkQlIMDGgAkaGYQ8AUSIHswAAAAAAAAAAAAAAMAAAeNpjYGRg/t/I/J+5lkGagYFRUVCPUYmNXVCRj1FETFxRUI7RyMxcUNGO0USN+fS/HEY5XTnGfznicnLijFPAHMYpYnJyjFvBlBgWBQBNJxKpAAAAeNp9kD1OAzEQhZ/zByQSQiCoXVEA2vyUKRMp9Ailo0g23pBo1155nUg5AS0VB6DlGByAGyDRcgpelkmTImvt6PObmeexAZzjGwr/3yXuhBWO8ShcwREy4Sr1F+Ea+V24jhY+hRvUf4SbuFUD4RYu1BsdVO2Eu5vSbcsKZxgIV3CKJ+Eq9ZVwjfwqXMcVPoQb1L+EmxjjV7iFa2WpDOFhMEFgnEFjig3jAjEcLJIyBtahOfRmEsxMTzd6ETubOBso71dilwMeaDnngCntPbdmvkon/mDLgdSYbh4FS7YpjS4idCgbXyyc1d2oc7D9nu22tNi/a4E1x+xRDWzU/D3bM9JIbAyvkJI18jK3pBJTj2hrrPG7ZynW814IiU68y/SIx5o0dTr3bmniwOLn8owcfbS5kj33qBw+Y1kIeb/dTsQgil2GP5PYcRkAAAB42mNgYoAALjDJyIAOWMCiTIxMbFmZiRmJ+QALXAKKAAAAAAH//wACAAEAAAAMAAAAFgAAAAIAAQADAAMAAQAEAAAAAgAAAAB42mNgYGBkAIKrS9Q5QPTNZa18MBoAPbcFzgAA)
|
|
178
|
+
format('woff');
|
|
179
|
+
font-weight: normal;
|
|
180
|
+
font-style: normal;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.fui-fab-icon {
|
|
184
|
+
font-family: 'fuifab' !important;
|
|
185
|
+
font-style: normal;
|
|
186
|
+
-webkit-font-smoothing: antialiased;
|
|
187
|
+
-moz-osx-font-smoothing: grayscale;
|
|
188
|
+
padding: 10rpx;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.fui-icon-plus:before {
|
|
192
|
+
content: '\e613';
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.fui-fab-box {
|
|
196
|
+
display: flex;
|
|
197
|
+
justify-content: center;
|
|
198
|
+
flex-direction: column;
|
|
199
|
+
position: fixed;
|
|
200
|
+
z-index: 99997;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.fui-fab-right {
|
|
204
|
+
align-items: flex-end;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.fui-fab-btn {
|
|
208
|
+
transform: scale(0);
|
|
209
|
+
transition: all 0.2s ease-in-out;
|
|
210
|
+
opacity: 0;
|
|
211
|
+
visibility: hidden;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.fui-fab-hidden {
|
|
215
|
+
height: 0;
|
|
216
|
+
width: 0;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.fui-fab-item-box {
|
|
220
|
+
display: flex;
|
|
221
|
+
align-items: center;
|
|
222
|
+
justify-content: flex-end;
|
|
223
|
+
padding-bottom: 40rpx;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.fui-fab-item-left {
|
|
227
|
+
flex-flow: row-reverse;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.fui-fab-title {
|
|
231
|
+
width: 90%;
|
|
232
|
+
text-align: center;
|
|
233
|
+
white-space: nowrap;
|
|
234
|
+
overflow: hidden;
|
|
235
|
+
text-overflow: ellipsis;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.fui-text-left {
|
|
239
|
+
padding-left: 28rpx;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.fui-text-right {
|
|
243
|
+
padding-right: 28rpx;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.fui-fab-img {
|
|
247
|
+
display: block;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.fui-fab-item {
|
|
251
|
+
display: flex;
|
|
252
|
+
align-items: center;
|
|
253
|
+
justify-content: center;
|
|
254
|
+
box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.1);
|
|
255
|
+
transition: all 0.2s linear;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.fui-radius {
|
|
259
|
+
border-radius: 50%;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.fui-active {
|
|
263
|
+
transform: rotate(135deg);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.fui-fab-mask {
|
|
267
|
+
position: fixed;
|
|
268
|
+
top: 0;
|
|
269
|
+
left: 0;
|
|
270
|
+
right: 0;
|
|
271
|
+
bottom: 0;
|
|
272
|
+
background: rgba(0, 0, 0, 0.75);
|
|
273
|
+
z-index: 99996;
|
|
274
|
+
transition: all 0.2s ease-in-out;
|
|
275
|
+
opacity: 0;
|
|
276
|
+
visibility: hidden;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.fui-visible {
|
|
280
|
+
visibility: visible;
|
|
281
|
+
opacity: 1;
|
|
282
|
+
transform: scale(1);
|
|
283
|
+
}
|
|
284
|
+
</style>
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="fui-footer-class fui-footer" :class="[fixed ? 'fui-fixed' : '']" :style="{ backgroundColor: backgroundColor }">
|
|
3
|
+
<view class="fui-footer-link" v-if="navigate.length > 0">
|
|
4
|
+
<block v-for="(item, index) in navigate" :key="index">
|
|
5
|
+
<navigator
|
|
6
|
+
class="fui-link"
|
|
7
|
+
hover-class="fui-link-hover"
|
|
8
|
+
:hover-stop-propagation="true"
|
|
9
|
+
:style="{ color: item.color || '#596d96', fontSize: (item.size || 28) + 'rpx' }"
|
|
10
|
+
:open-type="item.type"
|
|
11
|
+
:url="item.url"
|
|
12
|
+
:target="item.target"
|
|
13
|
+
:delta="item.delta"
|
|
14
|
+
:app-id="item.appid"
|
|
15
|
+
:path="item.path"
|
|
16
|
+
:extra-data="item.extradata"
|
|
17
|
+
:bindsuccess="item.bindsuccess"
|
|
18
|
+
:bindfail="item.bindfail"
|
|
19
|
+
>
|
|
20
|
+
{{ item.text }}
|
|
21
|
+
</navigator>
|
|
22
|
+
</block>
|
|
23
|
+
</view>
|
|
24
|
+
<view class="fui-footer-copyright" :style="{ color: color, fontSize: size + 'rpx' }">
|
|
25
|
+
{{ copyright }}
|
|
26
|
+
</view>
|
|
27
|
+
</view>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script>
|
|
31
|
+
export default {
|
|
32
|
+
name: 'fuiFooter',
|
|
33
|
+
props: {
|
|
34
|
+
//type target url delta appid path extradata bindsuccess bindfail text color size
|
|
35
|
+
//链接设置 数据格式对应上面注释的属性值
|
|
36
|
+
navigate: {
|
|
37
|
+
type: Array,
|
|
38
|
+
default: () => {
|
|
39
|
+
return [];
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
//底部文本
|
|
43
|
+
copyright: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: 'All Rights Reserved.'
|
|
46
|
+
},
|
|
47
|
+
//copyright 字体颜色
|
|
48
|
+
color: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: '#A7A7A7'
|
|
51
|
+
},
|
|
52
|
+
//copyright 字体大小
|
|
53
|
+
size: {
|
|
54
|
+
type: Number,
|
|
55
|
+
default: 24
|
|
56
|
+
},
|
|
57
|
+
//footer背景颜色
|
|
58
|
+
backgroundColor: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: 'transparent'
|
|
61
|
+
},
|
|
62
|
+
//是否固定在底部
|
|
63
|
+
fixed: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: true
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
methods: {}
|
|
69
|
+
};
|
|
70
|
+
</script>
|
|
71
|
+
|
|
72
|
+
<style scoped>
|
|
73
|
+
.fui-footer {
|
|
74
|
+
width: 100%;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
padding: 30rpx 24rpx;
|
|
77
|
+
box-sizing: border-box;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.fui-fixed {
|
|
81
|
+
position: fixed;
|
|
82
|
+
z-index: 9999;
|
|
83
|
+
bottom: 0;
|
|
84
|
+
left: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.fui-footer-link {
|
|
88
|
+
color: #596d96;
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
font-size: 28rpx;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.fui-link {
|
|
96
|
+
position: relative;
|
|
97
|
+
padding: 0 18rpx;
|
|
98
|
+
line-height: 1;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.fui-link::before {
|
|
102
|
+
content: ' ';
|
|
103
|
+
position: absolute;
|
|
104
|
+
right: 0;
|
|
105
|
+
top: 0;
|
|
106
|
+
width: 1px;
|
|
107
|
+
bottom: 0;
|
|
108
|
+
border-right: 1px solid #d3d3d3;
|
|
109
|
+
-webkit-transform-origin: 100% 0;
|
|
110
|
+
transform-origin: 100% 0;
|
|
111
|
+
-webkit-transform: scaleX(0.5);
|
|
112
|
+
transform: scaleX(0.5);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.fui-link:last-child::before {
|
|
116
|
+
border-right: 0 !important;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.fui-link-hover {
|
|
120
|
+
opacity: 0.5;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.fui-footer-copyright {
|
|
124
|
+
font-size: 24rpx;
|
|
125
|
+
color: #a7a7a7;
|
|
126
|
+
line-height: 1;
|
|
127
|
+
text-align: center;
|
|
128
|
+
padding-top: 16rpx;
|
|
129
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
130
|
+
}
|
|
131
|
+
</style>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="fui-grids" :class="{ 'fui-border-top': unlined }">
|
|
3
|
+
<slot></slot>
|
|
4
|
+
</view>
|
|
5
|
+
</template>
|
|
6
|
+
<script>
|
|
7
|
+
export default {
|
|
8
|
+
name: 'fuiGrid',
|
|
9
|
+
props: {
|
|
10
|
+
//是否去掉上线条
|
|
11
|
+
unlined: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: false
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
</script>
|
|
18
|
+
<style scoped>
|
|
19
|
+
.fui-grids {
|
|
20
|
+
width: 100%;
|
|
21
|
+
position: relative;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.fui-grids::after {
|
|
26
|
+
content: ' ';
|
|
27
|
+
position: absolute;
|
|
28
|
+
left: 0;
|
|
29
|
+
top: 0;
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 1px;
|
|
32
|
+
border-top: 1px solid #eaeef1;
|
|
33
|
+
-webkit-transform-origin: 0 0;
|
|
34
|
+
transform-origin: 0 0;
|
|
35
|
+
-webkit-transform: scaleY(0.5);
|
|
36
|
+
transform: scaleY(0.5);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.fui-border-top::after {
|
|
40
|
+
border-top: 0 !important;
|
|
41
|
+
}
|
|
42
|
+
</style>
|