From 58cc99f790200657adacf5997e51bd1b1c035141 Mon Sep 17 00:00:00 2001
From: haml-707 <845831435@qq.com>
Date: Sat, 4 Nov 2023 18:47:37 +0800
Subject: [PATCH 01/10] =?UTF-8?q?feat:=20vant=20=E5=8D=87=E7=BA=A7?=
=?UTF-8?q?=EF=BC=8C=E5=88=A0=E9=99=A4Tdesign?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.gitignore | 3 +-
src/openeuler/.gitignore | 3 +-
src/openeuler/.vscode/settings.json | 7 +
src/openeuler/config/constants.js | 5 +-
src/openeuler/jsconfig.json | 6 +
.../@vant/weapp/action-sheet/index.js | 138 +-
.../@vant/weapp/action-sheet/index.json | 16 +-
.../@vant/weapp/action-sheet/index.wxml | 138 +-
.../@vant/weapp/action-sheet/index.wxss | 2 +-
.../miniprogram_npm/@vant/weapp/area/index.js | 498 +--
.../@vant/weapp/area/index.json | 12 +-
.../@vant/weapp/area/index.wxml | 40 +-
.../@vant/weapp/area/index.wxs | 16 +-
.../@vant/weapp/button/index.js | 127 +-
.../@vant/weapp/button/index.json | 14 +-
.../@vant/weapp/button/index.wxml | 109 +-
.../@vant/weapp/button/index.wxs | 78 +-
.../@vant/weapp/button/index.wxss | 2 +-
.../@vant/weapp/calendar/calendar.wxml | 133 +-
.../weapp/calendar/components/header/index.js | 63 +-
.../calendar/components/header/index.json | 6 +-
.../calendar/components/header/index.wxml | 32 +-
.../calendar/components/header/index.wxss | 2 +-
.../weapp/calendar/components/month/index.js | 325 +-
.../calendar/components/month/index.json | 6 +-
.../calendar/components/month/index.wxml | 78 +-
.../weapp/calendar/components/month/index.wxs | 138 +-
.../calendar/components/month/index.wxss | 2 +-
.../@vant/weapp/calendar/index.js | 704 +--
.../@vant/weapp/calendar/index.json | 20 +-
.../@vant/weapp/calendar/index.wxml | 51 +-
.../@vant/weapp/calendar/index.wxs | 74 +-
.../@vant/weapp/calendar/index.wxss | 2 +-
.../@vant/weapp/calendar/utils.js | 188 +-
.../@vant/weapp/calendar/utils.wxs | 50 +-
.../miniprogram_npm/@vant/weapp/card/index.js | 102 +-
.../@vant/weapp/card/index.json | 12 +-
.../@vant/weapp/card/index.wxml | 112 +-
.../@vant/weapp/card/index.wxss | 2 +-
.../@vant/weapp/cell-group/index.js | 25 +-
.../@vant/weapp/cell-group/index.json | 6 +-
.../@vant/weapp/cell-group/index.wxml | 20 +-
.../@vant/weapp/cell-group/index.wxss | 2 +-
.../miniprogram_npm/@vant/weapp/cell/index.js | 80 +-
.../@vant/weapp/cell/index.json | 12 +-
.../@vant/weapp/cell/index.wxml | 93 +-
.../@vant/weapp/cell/index.wxs | 34 +-
.../@vant/weapp/cell/index.wxss | 2 +-
.../@vant/weapp/checkbox-group/index.js | 77 +-
.../@vant/weapp/checkbox-group/index.json | 6 +-
.../@vant/weapp/checkbox-group/index.wxml | 6 +-
.../@vant/weapp/checkbox-group/index.wxss | 2 +-
.../@vant/weapp/checkbox/index.js | 162 +-
.../@vant/weapp/checkbox/index.json | 12 +-
.../@vant/weapp/checkbox/index.wxml | 62 +-
.../@vant/weapp/checkbox/index.wxs | 40 +-
.../@vant/weapp/checkbox/index.wxss | 2 +-
.../@vant/weapp/circle/canvas.js | 94 +-
.../@vant/weapp/circle/index.js | 418 +-
.../@vant/weapp/circle/index.json | 6 +-
.../@vant/weapp/circle/index.wxml | 18 +-
.../@vant/weapp/circle/index.wxss | 2 +-
.../miniprogram_npm/@vant/weapp/col/index.js | 22 +-
.../@vant/weapp/col/index.json | 6 +-
.../@vant/weapp/col/index.wxml | 18 +-
.../miniprogram_npm/@vant/weapp/col/index.wxs | 36 +-
.../@vant/weapp/col/index.wxss | 2 +-
.../@vant/weapp/collapse-item/animate.js | 120 +-
.../@vant/weapp/collapse-item/index.js | 130 +-
.../@vant/weapp/collapse-item/index.json | 12 +-
.../@vant/weapp/collapse-item/index.wxml | 89 +-
.../@vant/weapp/collapse-item/index.wxss | 2 +-
.../@vant/weapp/collapse/index.js | 98 +-
.../@vant/weapp/collapse/index.json | 6 +-
.../@vant/weapp/collapse/index.wxml | 6 +-
.../@vant/weapp/common/color.js | 20 +-
.../@vant/weapp/common/component.js | 97 +-
.../@vant/weapp/common/index.wxss | 2 +-
.../@vant/weapp/common/relation.js | 144 +-
.../@vant/weapp/common/style/clearfix.wxss | 2 +-
.../@vant/weapp/common/style/ellipsis.wxss | 2 +-
.../@vant/weapp/common/style/hairline.wxss | 2 +-
.../@vant/weapp/common/style/theme.wxss | 0
.../@vant/weapp/common/utils.js | 220 +-
.../@vant/weapp/common/validator.js | 85 +-
.../@vant/weapp/common/version.js | 124 +-
.../@vant/weapp/count-down/index.js | 207 +-
.../@vant/weapp/count-down/index.json | 6 +-
.../@vant/weapp/count-down/index.wxml | 8 +-
.../@vant/weapp/count-down/index.wxss | 2 +-
.../@vant/weapp/count-down/utils.js | 129 +-
.../@vant/weapp/datetime-picker/index.js | 654 ++-
.../@vant/weapp/datetime-picker/index.json | 12 +-
.../@vant/weapp/datetime-picker/index.wxml | 32 +-
.../@vant/weapp/definitions/index.js | 4 +-
.../@vant/weapp/dialog/dialog.js | 196 +-
.../@vant/weapp/dialog/index.js | 258 +-
.../@vant/weapp/dialog/index.json | 18 +-
.../@vant/weapp/dialog/index.wxml | 235 +-
.../@vant/weapp/dialog/index.wxss | 2 +-
.../@vant/weapp/divider/index.js | 28 +-
.../@vant/weapp/divider/index.json | 8 +-
.../@vant/weapp/divider/index.wxml | 18 +-
.../@vant/weapp/divider/index.wxs | 36 +-
.../@vant/weapp/divider/index.wxss | 2 +-
.../@vant/weapp/dropdown-item/index.js | 253 +-
.../@vant/weapp/dropdown-item/index.json | 16 +-
.../@vant/weapp/dropdown-item/index.wxml | 98 +-
.../@vant/weapp/dropdown-item/index.wxss | 2 +-
.../@vant/weapp/dropdown-item/shared.js | 4 +-
.../@vant/weapp/dropdown-menu/index.js | 248 +-
.../@vant/weapp/dropdown-menu/index.json | 6 +-
.../@vant/weapp/dropdown-menu/index.wxml | 46 +-
.../@vant/weapp/dropdown-menu/index.wxs | 32 +-
.../@vant/weapp/dropdown-menu/index.wxss | 2 +-
.../@vant/weapp/empty/index.js | 24 +-
.../@vant/weapp/empty/index.json | 8 +-
.../@vant/weapp/empty/index.wxml | 44 +-
.../@vant/weapp/empty/index.wxs | 29 +-
.../@vant/weapp/empty/index.wxss | 2 +-
.../@vant/weapp/field/index.js | 288 +-
.../@vant/weapp/field/index.json | 14 +-
.../@vant/weapp/field/index.wxml | 112 +-
.../@vant/weapp/field/index.wxs | 36 +-
.../@vant/weapp/field/index.wxss | 2 +-
.../@vant/weapp/field/input.wxml | 56 +-
.../@vant/weapp/field/props.js | 133 +-
.../@vant/weapp/field/textarea.wxml | 59 +-
.../@vant/weapp/goods-action-button/index.js | 82 +-
.../weapp/goods-action-button/index.json | 12 +-
.../weapp/goods-action-button/index.wxml | 63 +-
.../weapp/goods-action-button/index.wxss | 2 +-
.../@vant/weapp/goods-action-icon/index.js | 53 +-
.../@vant/weapp/goods-action-icon/index.json | 14 +-
.../@vant/weapp/goods-action-icon/index.wxml | 76 +-
.../@vant/weapp/goods-action-icon/index.wxss | 2 +-
.../@vant/weapp/goods-action/index.js | 34 +-
.../@vant/weapp/goods-action/index.json | 6 +-
.../@vant/weapp/goods-action/index.wxml | 10 +-
.../@vant/weapp/goods-action/index.wxss | 2 +-
.../@vant/weapp/grid-item/index.js | 112 +-
.../@vant/weapp/grid-item/index.json | 12 +-
.../@vant/weapp/grid-item/index.wxml | 54 +-
.../@vant/weapp/grid-item/index.wxs | 64 +-
.../@vant/weapp/grid-item/index.wxss | 2 +-
.../miniprogram_npm/@vant/weapp/grid/index.js | 109 +-
.../@vant/weapp/grid/index.json | 6 +-
.../@vant/weapp/grid/index.wxml | 16 +-
.../@vant/weapp/grid/index.wxs | 26 +-
.../@vant/weapp/grid/index.wxss | 2 +-
.../miniprogram_npm/@vant/weapp/icon/index.js | 45 +-
.../@vant/weapp/icon/index.json | 12 +-
.../@vant/weapp/icon/index.wxml | 40 +-
.../@vant/weapp/icon/index.wxs | 82 +-
.../@vant/weapp/icon/index.wxss | 2 +-
.../@vant/weapp/image/index.js | 129 +-
.../@vant/weapp/image/index.json | 14 +-
.../@vant/weapp/image/index.wxml | 69 +-
.../@vant/weapp/image/index.wxs | 64 +-
.../@vant/weapp/image/index.wxss | 2 +-
.../@vant/weapp/index-anchor/index.js | 56 +-
.../@vant/weapp/index-anchor/index.json | 6 +-
.../@vant/weapp/index-anchor/index.wxml | 28 +-
.../@vant/weapp/index-anchor/index.wxss | 2 +-
.../@vant/weapp/index-bar/index.js | 521 +--
.../@vant/weapp/index-bar/index.json | 6 +-
.../@vant/weapp/index-bar/index.wxml | 44 +-
.../@vant/weapp/index-bar/index.wxss | 2 +-
.../miniprogram_npm/@vant/weapp/info/index.js | 20 +-
.../@vant/weapp/info/index.json | 6 +-
.../@vant/weapp/info/index.wxml | 14 +-
.../@vant/weapp/info/index.wxss | 2 +-
.../@vant/weapp/loading/index.js | 36 +-
.../@vant/weapp/loading/index.json | 6 +-
.../@vant/weapp/loading/index.wxml | 38 +-
.../@vant/weapp/loading/index.wxs | 44 +-
.../@vant/weapp/loading/index.wxss | 2 +-
.../@vant/weapp/mixins/basic.js | 30 +-
.../@vant/weapp/mixins/button.js | 72 +-
.../@vant/weapp/mixins/link.js | 57 +-
.../@vant/weapp/mixins/open-type.js | 29 -
.../@vant/weapp/mixins/page-scroll.js | 87 +-
.../@vant/weapp/mixins/touch.js | 80 +-
.../@vant/weapp/mixins/transition.js | 279 +-
.../@vant/weapp/nav-bar/index.js | 136 +-
.../@vant/weapp/nav-bar/index.json | 12 +-
.../@vant/weapp/nav-bar/index.wxml | 84 +-
.../@vant/weapp/nav-bar/index.wxs | 26 +-
.../@vant/weapp/nav-bar/index.wxss | 2 +-
.../@vant/weapp/notice-bar/index.js | 257 +-
.../@vant/weapp/notice-bar/index.json | 12 +-
.../@vant/weapp/notice-bar/index.wxml | 77 +-
.../@vant/weapp/notice-bar/index.wxs | 30 +-
.../@vant/weapp/notice-bar/index.wxss | 2 +-
.../@vant/weapp/notify/index.js | 138 +-
.../@vant/weapp/notify/index.json | 12 +-
.../@vant/weapp/notify/index.wxml | 42 +-
.../@vant/weapp/notify/index.wxs | 44 +-
.../@vant/weapp/notify/index.wxss | 2 +-
.../@vant/weapp/notify/notify.js | 131 +-
.../@vant/weapp/overlay/index.js | 56 +-
.../@vant/weapp/overlay/index.json | 12 +-
.../@vant/weapp/overlay/index.wxml | 17 +-
.../@vant/weapp/overlay/index.wxss | 2 +-
.../@vant/weapp/panel/index.js | 23 +-
.../@vant/weapp/panel/index.json | 12 +-
.../@vant/weapp/panel/index.wxml | 38 +-
.../@vant/weapp/panel/index.wxss | 2 +-
.../@vant/weapp/picker-column/index.js | 254 +-
.../@vant/weapp/picker-column/index.json | 6 +-
.../@vant/weapp/picker-column/index.wxml | 46 +-
.../@vant/weapp/picker-column/index.wxs | 72 +-
.../@vant/weapp/picker-column/index.wxss | 2 +-
.../@vant/weapp/picker/index.js | 340 +-
.../@vant/weapp/picker/index.json | 14 +-
.../@vant/weapp/picker/index.wxml | 74 +-
.../@vant/weapp/picker/index.wxs | 84 +-
.../@vant/weapp/picker/index.wxss | 2 +-
.../@vant/weapp/picker/shared.js | 48 +-
.../@vant/weapp/picker/toolbar.wxml | 46 +-
.../@vant/weapp/popup/index.js | 188 +-
.../@vant/weapp/popup/index.json | 14 +-
.../@vant/weapp/popup/index.wxml | 46 +-
.../@vant/weapp/popup/index.wxs | 36 +-
.../@vant/weapp/popup/index.wxss | 2 +-
.../@vant/weapp/progress/index.js | 111 +-
.../@vant/weapp/progress/index.json | 6 +-
.../@vant/weapp/progress/index.wxml | 40 +-
.../@vant/weapp/progress/index.wxs | 72 +-
.../@vant/weapp/progress/index.wxss | 2 +-
.../@vant/weapp/radio-group/index.js | 64 +-
.../@vant/weapp/radio-group/index.json | 6 +-
.../@vant/weapp/radio-group/index.wxml | 10 +-
.../@vant/weapp/radio-group/index.wxss | 2 +-
.../@vant/weapp/radio/index.js | 118 +-
.../@vant/weapp/radio/index.json | 12 +-
.../@vant/weapp/radio/index.wxml | 59 +-
.../@vant/weapp/radio/index.wxss | 2 +-
.../miniprogram_npm/@vant/weapp/rate/index.js | 204 +-
.../@vant/weapp/rate/index.json | 12 +-
.../@vant/weapp/rate/index.wxml | 69 +-
.../@vant/weapp/rate/index.wxss | 2 +-
.../miniprogram_npm/@vant/weapp/row/index.js | 52 +-
.../@vant/weapp/row/index.json | 6 +-
.../@vant/weapp/row/index.wxml | 10 +-
.../miniprogram_npm/@vant/weapp/row/index.wxs | 36 +-
.../@vant/weapp/row/index.wxss | 2 +-
.../@vant/weapp/search/index.js | 181 +-
.../@vant/weapp/search/index.json | 12 +-
.../@vant/weapp/search/index.wxml | 104 +-
.../@vant/weapp/search/index.wxss | 2 +-
.../@vant/weapp/share-sheet/index.js | 114 +-
.../@vant/weapp/share-sheet/index.json | 14 +-
.../@vant/weapp/share-sheet/index.wxml | 92 +-
.../@vant/weapp/share-sheet/index.wxs | 24 +-
.../@vant/weapp/share-sheet/index.wxss | 2 +-
.../@vant/weapp/share-sheet/options.js | 58 +-
.../@vant/weapp/share-sheet/options.json | 6 +-
.../@vant/weapp/share-sheet/options.wxml | 40 +-
.../@vant/weapp/share-sheet/options.wxs | 28 +-
.../@vant/weapp/share-sheet/options.wxss | 2 +-
.../@vant/weapp/sidebar-item/index.js | 64 +-
.../@vant/weapp/sidebar-item/index.json | 12 +-
.../@vant/weapp/sidebar-item/index.wxml | 36 +-
.../@vant/weapp/sidebar-item/index.wxss | 2 +-
.../@vant/weapp/sidebar/index.js | 74 +-
.../@vant/weapp/sidebar/index.json | 6 +-
.../@vant/weapp/sidebar/index.wxml | 6 +-
.../@vant/weapp/sidebar/index.wxss | 2 +-
.../@vant/weapp/skeleton/index.js | 96 +-
.../@vant/weapp/skeleton/index.json | 8 +-
.../@vant/weapp/skeleton/index.wxml | 58 +-
.../@vant/weapp/skeleton/index.wxss | 2 +-
.../@vant/weapp/slider/index.js | 324 +-
.../@vant/weapp/slider/index.json | 6 +-
.../@vant/weapp/slider/index.wxml | 98 +-
.../@vant/weapp/slider/index.wxs | 28 +-
.../@vant/weapp/slider/index.wxss | 2 +-
.../@vant/weapp/stepper/index.js | 421 +-
.../@vant/weapp/stepper/index.json | 6 +-
.../@vant/weapp/stepper/index.wxml | 85 +-
.../@vant/weapp/stepper/index.wxs | 44 +-
.../@vant/weapp/stepper/index.wxss | 2 +-
.../@vant/weapp/steps/index.js | 70 +-
.../@vant/weapp/steps/index.json | 12 +-
.../@vant/weapp/steps/index.wxml | 108 +-
.../@vant/weapp/steps/index.wxss | 2 +-
.../@vant/weapp/sticky/index.js | 249 +-
.../@vant/weapp/sticky/index.json | 6 +-
.../@vant/weapp/sticky/index.wxml | 16 +-
.../@vant/weapp/sticky/index.wxs | 50 +-
.../@vant/weapp/sticky/index.wxss | 2 +-
.../@vant/weapp/submit-bar/index.js | 119 +-
.../@vant/weapp/submit-bar/index.json | 14 +-
.../@vant/weapp/submit-bar/index.wxml | 88 +-
.../@vant/weapp/submit-bar/index.wxss | 2 +-
.../@vant/weapp/swipe-cell/index.js | 297 +-
.../@vant/weapp/swipe-cell/index.json | 6 +-
.../@vant/weapp/swipe-cell/index.wxml | 40 +-
.../@vant/weapp/swipe-cell/index.wxss | 2 +-
.../@vant/weapp/switch/index.js | 80 +-
.../@vant/weapp/switch/index.json | 12 +-
.../@vant/weapp/switch/index.wxml | 32 +-
.../@vant/weapp/switch/index.wxs | 52 +-
.../@vant/weapp/switch/index.wxss | 2 +-
.../miniprogram_npm/@vant/weapp/tab/index.js | 116 +-
.../@vant/weapp/tab/index.json | 6 +-
.../@vant/weapp/tab/index.wxml | 16 +-
.../@vant/weapp/tab/index.wxss | 2 +-
.../@vant/weapp/tabbar-item/index.js | 128 +-
.../@vant/weapp/tabbar-item/index.json | 14 +-
.../@vant/weapp/tabbar-item/index.wxml | 56 +-
.../@vant/weapp/tabbar-item/index.wxss | 2 +-
.../@vant/weapp/tabbar/index.js | 138 +-
.../@vant/weapp/tabbar/index.json | 6 +-
.../@vant/weapp/tabbar/index.wxml | 20 +-
.../@vant/weapp/tabbar/index.wxss | 2 +-
.../miniprogram_npm/@vant/weapp/tabs/index.js | 632 +--
.../@vant/weapp/tabs/index.json | 14 +-
.../@vant/weapp/tabs/index.wxml | 126 +-
.../@vant/weapp/tabs/index.wxs | 165 +-
.../@vant/weapp/tabs/index.wxss | 2 +-
.../miniprogram_npm/@vant/weapp/tag/index.js | 46 +-
.../@vant/weapp/tag/index.json | 12 +-
.../@vant/weapp/tag/index.wxml | 30 +-
.../miniprogram_npm/@vant/weapp/tag/index.wxs | 26 +-
.../@vant/weapp/tag/index.wxss | 2 +-
.../@vant/weapp/toast/index.js | 62 +-
.../@vant/weapp/toast/index.json | 18 +-
.../@vant/weapp/toast/index.wxml | 69 +-
.../@vant/weapp/toast/index.wxss | 2 +-
.../@vant/weapp/toast/toast.js | 175 +-
.../@vant/weapp/transition/index.js | 30 +-
.../@vant/weapp/transition/index.json | 6 +-
.../@vant/weapp/transition/index.wxml | 20 +-
.../@vant/weapp/transition/index.wxs | 34 +-
.../@vant/weapp/transition/index.wxss | 2 +-
.../@vant/weapp/tree-select/index.js | 143 +-
.../@vant/weapp/tree-select/index.json | 16 +-
.../@vant/weapp/tree-select/index.wxml | 82 +-
.../@vant/weapp/tree-select/index.wxs | 24 +-
.../@vant/weapp/tree-select/index.wxss | 2 +-
.../@vant/weapp/uploader/index.js | 429 +-
.../@vant/weapp/uploader/index.json | 14 +-
.../@vant/weapp/uploader/index.wxml | 167 +-
.../@vant/weapp/uploader/index.wxs | 31 +-
.../@vant/weapp/uploader/index.wxss | 2 +-
.../@vant/weapp/uploader/shared.js | 93 +-
.../@vant/weapp/uploader/utils.js | 270 +-
.../@vant/weapp/wxs/add-unit.wxs | 24 +-
.../miniprogram_npm/@vant/weapp/wxs/array.wxs | 10 +-
.../miniprogram_npm/@vant/weapp/wxs/bem.wxs | 78 +-
.../@vant/weapp/wxs/memoize.wxs | 110 +-
.../@vant/weapp/wxs/object.wxs | 26 +-
.../miniprogram_npm/@vant/weapp/wxs/style.wxs | 74 +-
.../miniprogram_npm/@vant/weapp/wxs/utils.wxs | 20 +-
.../miniprogram_npm/eventemitter3/index.js | 695 +--
.../tdesign-miniprogram/CHANGELOG.md | 1323 ------
.../tdesign-miniprogram/LICENSE | 9 -
.../tdesign-miniprogram/README.md | 74 -
.../miniprogram_dist/.wechatide.ib.json | 3895 -----------------
.../miniprogram_dist/common/bus.d.ts | 6 -
.../miniprogram_dist/common/bus.js | 16 -
.../miniprogram_dist/common/common.d.ts | 35 -
.../miniprogram_dist/common/common.js | 1 -
.../miniprogram_dist/common/component.d.ts | 3 -
.../miniprogram_dist/common/component.js | 5 -
.../miniprogram_dist/common/config.d.ts | 5 -
.../miniprogram_dist/common/config.js | 4 -
.../miniprogram_dist/common/index.wxss | 27 -
.../common/shared/calendar/index.d.ts | 19 -
.../common/shared/calendar/index.js | 128 -
.../common/shared/calendar/type.d.ts | 11 -
.../common/shared/calendar/type.js | 1 -
.../miniprogram_dist/common/shared/date.d.ts | 21 -
.../miniprogram_dist/common/shared/date.js | 41 -
.../miniprogram_dist/common/src/control.d.ts | 15 -
.../miniprogram_dist/common/src/control.js | 40 -
.../miniprogram_dist/common/src/flatTool.d.ts | 15 -
.../miniprogram_dist/common/src/flatTool.js | 57 -
.../miniprogram_dist/common/src/index.d.ts | 4 -
.../miniprogram_dist/common/src/index.js | 4 -
.../common/src/instantiationDecorator.d.ts | 3 -
.../common/src/instantiationDecorator.js | 141 -
.../common/src/superComponent.d.ts | 19 -
.../common/src/superComponent.js | 5 -
.../common/style/_variables.wxss | 0
.../miniprogram_dist/common/style/base.wxss | 0
.../miniprogram_dist/common/style/index.wxss | 27 -
.../common/style/mixins/_clearfix.wxss | 0
.../common/style/mixins/_cursor.wxss | 0
.../common/style/mixins/_ellipsis.wxss | 0
.../common/style/mixins/_hairline.wxss | 0
.../common/style/mixins/_index.wxss | 0
.../common/style/theme/_index.wxss | 0
.../common/style/utilities/_animation.wxss | 8 -
.../common/style/utilities/_float.wxss | 6 -
.../common/style/utilities/_index.wxss | 27 -
.../common/template/badge.wxml | 16 -
.../common/template/button.wxml | 37 -
.../common/template/icon.wxml | 15 -
.../common/template/image.wxml | 17 -
.../miniprogram_dist/common/utils.d.ts | 29 -
.../miniprogram_dist/common/utils.js | 218 -
.../miniprogram_dist/common/utils.wxs | 93 -
.../miniprogram_dist/common/version.d.ts | 2 -
.../miniprogram_dist/common/version.js | 40 -
.../date-time-picker/README.en-US.md | 30 -
.../date-time-picker/README.md | 68 -
.../date-time-picker/date-time-picker.d.ts | 83 -
.../date-time-picker/date-time-picker.js | 352 --
.../date-time-picker/date-time-picker.json | 7 -
.../date-time-picker/date-time-picker.wxml | 27 -
.../date-time-picker/date-time-picker.wxss | 31 -
.../date-time-picker/locale/en.d.ts | 13 -
.../date-time-picker/locale/en.js | 12 -
.../date-time-picker/locale/zh.d.ts | 13 -
.../date-time-picker/locale/zh.js | 12 -
.../date-time-picker/props.d.ts | 3 -
.../date-time-picker/props.js | 55 -
.../date-time-picker/type.d.ts | 65 -
.../miniprogram_dist/date-time-picker/type.js | 1 -
.../miniprogram_dist/icon/README.md | 101 -
.../miniprogram_dist/icon/icon.d.ts | 18 -
.../miniprogram_dist/icon/icon.js | 51 -
.../miniprogram_dist/icon/icon.json | 4 -
.../miniprogram_dist/icon/icon.wxml | 15 -
.../miniprogram_dist/icon/icon.wxss | 770 ----
.../miniprogram_dist/icon/props.d.ts | 3 -
.../miniprogram_dist/icon/props.js | 20 -
.../miniprogram_dist/icon/type.d.ts | 27 -
.../miniprogram_dist/icon/type.js | 1 -
.../miniprogram_npm/dayjs/index.js | 1 -
.../miniprogram_dist/mixins/page-scroll.d.ts | 6 -
.../miniprogram_dist/mixins/page-scroll.js | 37 -
.../miniprogram_dist/mixins/touch.d.ts | 2 -
.../miniprogram_dist/mixins/touch.js | 35 -
.../miniprogram_dist/mixins/transition.d.ts | 1 -
.../miniprogram_dist/mixins/transition.js | 123 -
.../miniprogram_dist/overlay/README.md | 49 -
.../miniprogram_dist/overlay/overlay.d.ts | 36 -
.../miniprogram_dist/overlay/overlay.js | 65 -
.../miniprogram_dist/overlay/overlay.json | 3 -
.../miniprogram_dist/overlay/overlay.wxml | 25 -
.../miniprogram_dist/overlay/overlay.wxss | 42 -
.../picker-item/picker-item.d.ts | 27 -
.../picker-item/picker-item.js | 142 -
.../picker-item/picker-item.json | 4 -
.../picker-item/picker-item.wxml | 12 -
.../picker-item/picker-item.wxss | 51 -
.../miniprogram_dist/picker-item/props.d.ts | 3 -
.../miniprogram_dist/picker-item/props.js | 10 -
.../miniprogram_dist/picker-item/type.d.ts | 18 -
.../miniprogram_dist/picker-item/type.js | 1 -
.../miniprogram_dist/picker/README.en-US.md | 34 -
.../miniprogram_dist/picker/README.md | 72 -
.../miniprogram_dist/picker/picker.d.ts | 30 -
.../miniprogram_dist/picker/picker.js | 96 -
.../miniprogram_dist/picker/picker.json | 6 -
.../miniprogram_dist/picker/picker.wxml | 23 -
.../miniprogram_dist/picker/picker.wxss | 106 -
.../miniprogram_dist/picker/props.d.ts | 3 -
.../miniprogram_dist/picker/props.js | 41 -
.../miniprogram_dist/picker/type.d.ts | 53 -
.../miniprogram_dist/picker/type.js | 1 -
.../miniprogram_dist/popup/README.en-US.md | 25 -
.../miniprogram_dist/popup/README.md | 57 -
.../miniprogram_dist/popup/popup.d.ts | 20 -
.../miniprogram_dist/popup/popup.js | 44 -
.../miniprogram_dist/popup/popup.json | 7 -
.../miniprogram_dist/popup/popup.wxml | 31 -
.../miniprogram_dist/popup/popup.wxs | 8 -
.../miniprogram_dist/popup/popup.wxss | 96 -
.../miniprogram_dist/popup/props.d.ts | 3 -
.../miniprogram_dist/popup/props.js | 51 -
.../miniprogram_dist/popup/type.d.ts | 62 -
.../miniprogram_dist/popup/type.js | 1 -
.../tdesign-miniprogram/package.json | 127 -
.../miniprogram_npm/widget-ui/index.js | 23 +-
.../miniprogram_npm/wxml-to-canvas/index.js | 1556 +++----
.../miniprogram_npm/wxml-to-canvas/index.json | 6 +-
.../miniprogram_npm/wxml-to-canvas/index.wxml | 2 +-
.../miniprogram_npm/wxml-to-canvas/utils.js | 114 +-
src/openeuler/package-events/events/poster.js | 18 -
.../package-events/events/wxml-to-canvas.js | 8 +-
.../package-events/publish/publish.js | 116 +-
.../package-events/publish/publish.wxml | 4 +-
.../package-meeting/meeting/meeting-list.js | 2 +-
.../package-meeting/reserve/reserve.js | 56 +-
.../package-meeting/reserve/reserve.json | 5 +-
.../package-meeting/reserve/reserve.wxml | 95 +-
.../package-meeting/sig/sig-list.json | 5 +-
src/openeuler/package-my/my/help.js | 3 +-
src/openeuler/package-my/my/privecy-seting.js | 4 +-
.../package-my/my/privecy-seting.less | 17 +-
.../package-my/my/privecy-seting.wxml | 89 +-
.../package-my/my/privecy-seting.wxss | 14 +
src/openeuler/package-my/my/qrcode.js | 4 +-
src/openeuler/package.json | 20 +-
src/openeuler/pages/auth/auth.js | 261 +-
src/openeuler/pages/index/index.js | 2 +-
src/openeuler/pages/meeting/meeting.js | 4 +-
src/openeuler/pages/meeting/meeting.wxml | 6 +-
src/openeuler/project.private.config.json | 14 +
src/openeuler/typings/wx.d.ts | 2705 ++++++++++++
src/openeuler/utils/app-ajax.js | 28 +-
src/openeuler/utils/app-session.js | 2 +-
src/openeuler/utils/app-user.js | 5 +-
src/openeuler/utils/page-mixin.js | 18 -
src/openeuler/utils/url-config.js | 6 +
src/openeuler/utils/utils.js | 70 -
511 files changed, 15397 insertions(+), 22566 deletions(-)
create mode 100644 src/openeuler/.vscode/settings.json
create mode 100644 src/openeuler/jsconfig.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/common/style/theme.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/mixins/open-type.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/CHANGELOG.md
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/LICENSE
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/README.md
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/.wechatide.ib.json
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/bus.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/bus.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/common.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/common.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/component.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/component.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/config.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/config.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/calendar/index.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/calendar/index.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/calendar/type.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/calendar/type.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/date.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/date.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/control.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/control.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/flatTool.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/flatTool.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/index.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/index.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/instantiationDecorator.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/instantiationDecorator.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/superComponent.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/superComponent.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/_variables.wxss
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/base.wxss
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/mixins/_clearfix.wxss
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/mixins/_cursor.wxss
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/mixins/_ellipsis.wxss
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/mixins/_hairline.wxss
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/mixins/_index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/theme/_index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/utilities/_animation.wxss
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/utilities/_float.wxss
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/utilities/_index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/template/badge.wxml
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/template/button.wxml
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/template/icon.wxml
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/template/image.wxml
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/utils.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/utils.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/utils.wxs
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/version.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/version.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/README.en-US.md
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/README.md
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker.json
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker.wxml
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker.wxss
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/locale/en.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/locale/en.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/locale/zh.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/locale/zh.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/props.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/props.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/type.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/type.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/README.md
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/icon.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/icon.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/icon.json
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/icon.wxml
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/icon.wxss
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/props.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/props.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/type.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/type.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/miniprogram_npm/dayjs/index.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/page-scroll.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/page-scroll.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/touch.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/touch.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/transition.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/transition.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/README.md
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/overlay.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/overlay.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/overlay.json
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/overlay.wxml
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/overlay.wxss
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/picker-item.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/picker-item.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/picker-item.json
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/picker-item.wxml
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/picker-item.wxss
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/props.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/props.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/type.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/type.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/README.en-US.md
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/README.md
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/picker.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/picker.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/picker.json
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/picker.wxml
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/picker.wxss
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/props.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/props.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/type.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/type.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/README.en-US.md
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/README.md
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.json
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.wxml
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.wxs
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.wxss
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/props.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/props.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/type.d.ts
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/type.js
delete mode 100644 src/openeuler/miniprogram_npm/tdesign-miniprogram/package.json
create mode 100644 src/openeuler/typings/wx.d.ts
create mode 100644 src/openeuler/utils/url-config.js
diff --git a/.gitignore b/.gitignore
index 2944723..5b3cade 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,4 +4,5 @@ dist
dist-ssr
*.local
project.config.json
-*.less
\ No newline at end of file
+*.less
+/miniprogram_npm
\ No newline at end of file
diff --git a/src/openeuler/.gitignore b/src/openeuler/.gitignore
index cac5570..f0a5fd4 100644
--- a/src/openeuler/.gitignore
+++ b/src/openeuler/.gitignore
@@ -1,2 +1,3 @@
/node_modules
-/package-lock.json
\ No newline at end of file
+/package-lock.json
+/miniprogram_npm
\ No newline at end of file
diff --git a/src/openeuler/.vscode/settings.json b/src/openeuler/.vscode/settings.json
new file mode 100644
index 0000000..2f64467
--- /dev/null
+++ b/src/openeuler/.vscode/settings.json
@@ -0,0 +1,7 @@
+{
+ "files.associations": {
+ "*.wxml": "html",
+ "*.vue": "vue",
+ "*.wxss": "css"
+ }
+}
\ No newline at end of file
diff --git a/src/openeuler/config/constants.js b/src/openeuler/config/constants.js
index a803688..bc969b1 100644
--- a/src/openeuler/config/constants.js
+++ b/src/openeuler/config/constants.js
@@ -5,8 +5,9 @@ let _ = require('../utils/underscore-extend.js');
// 服务连接配置
let serviceConfig = {
- SERVICE_URL: 'https://api.openeuler.org/meetings', // 正式环境
- // SERVICE_URL: 'https://meetingserver-openeuler.test.osinfra.cn', // 测试环境
+ // SERVICE_URL: 'https://api.openeuler.org/meetings', // 正式环境
+ SERVICE_URL: 'https://meetingserver-openeuler.test.osinfra.cn', // 测试环境
+ // SERVICE_URL: 'https://meetings-beta.openeuler.org', // 测试环境
};
// 存储配置
diff --git a/src/openeuler/jsconfig.json b/src/openeuler/jsconfig.json
new file mode 100644
index 0000000..47fe424
--- /dev/null
+++ b/src/openeuler/jsconfig.json
@@ -0,0 +1,6 @@
+{
+ "compilerOptions": {
+ "target": "es2015",
+ "module": "commonjs"
+ }
+}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.js
index 946264e..a39818a 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.js
@@ -1,64 +1,74 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var button_1 = require('../mixins/button');
-var open_type_1 = require('../mixins/open-type');
-component_1.VantComponent({
- mixins: [button_1.button, open_type_1.openType],
- props: {
- show: Boolean,
- title: String,
- cancelText: String,
- description: String,
- round: {
- type: Boolean,
- value: true,
- },
- zIndex: {
- type: Number,
- value: 100,
- },
- actions: {
- type: Array,
- value: [],
- },
- overlay: {
- type: Boolean,
- value: true,
- },
- closeOnClickOverlay: {
- type: Boolean,
- value: true,
- },
- closeOnClickAction: {
- type: Boolean,
- value: true,
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- },
- methods: {
- onSelect: function (event) {
- var index = event.currentTarget.dataset.index;
- var item = this.data.actions[index];
- if (item && !item.disabled && !item.loading) {
- this.$emit('select', item);
- if (this.data.closeOnClickAction) {
- this.onClose();
- }
- }
- },
- onCancel: function () {
- this.$emit('cancel');
- },
- onClose: function () {
- this.$emit('close');
- },
- onClickOverlay: function () {
- this.$emit('click-overlay');
- this.onClose();
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var button_1 = require("../mixins/button");
+(0, component_1.VantComponent)({
+ classes: ['list-class'],
+ mixins: [button_1.button],
+ props: {
+ show: Boolean,
+ title: String,
+ cancelText: String,
+ description: String,
+ round: {
+ type: Boolean,
+ value: true,
+ },
+ zIndex: {
+ type: Number,
+ value: 100,
+ },
+ actions: {
+ type: Array,
+ value: [],
+ },
+ overlay: {
+ type: Boolean,
+ value: true,
+ },
+ closeOnClickOverlay: {
+ type: Boolean,
+ value: true,
+ },
+ closeOnClickAction: {
+ type: Boolean,
+ value: true,
+ },
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ methods: {
+ onSelect: function (event) {
+ var _this = this;
+ var index = event.currentTarget.dataset.index;
+ var _a = this.data, actions = _a.actions, closeOnClickAction = _a.closeOnClickAction, canIUseGetUserProfile = _a.canIUseGetUserProfile;
+ var item = actions[index];
+ if (item) {
+ this.$emit('select', item);
+ if (closeOnClickAction) {
+ this.onClose();
+ }
+ if (item.openType === 'getUserInfo' && canIUseGetUserProfile) {
+ wx.getUserProfile({
+ desc: item.getUserProfileDesc || ' ',
+ complete: function (userProfile) {
+ _this.$emit('getuserinfo', userProfile);
+ },
+ });
+ }
+ }
+ },
+ onCancel: function () {
+ this.$emit('cancel');
+ },
+ onClose: function () {
+ this.$emit('close');
+ },
+ onClickOverlay: function () {
+ this.$emit('click-overlay');
+ this.onClose();
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.json
index b3548bd..19bf989 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.json
@@ -1,8 +1,8 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index",
- "van-popup": "../popup/index",
- "van-loading": "../loading/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index",
+ "van-popup": "../popup/index",
+ "van-loading": "../loading/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.wxml
index ba802e8..d59a45d 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.wxml
@@ -1,69 +1,69 @@
-
-
-
-
-
- {{ description }}
-
-
-
-
-
-
-
-
-
- {{ cancelText }}
-
-
-
+
+
+
+
+
+ {{ description }}
+
+
+
+
+
+
+
+
+
+ {{ cancelText }}
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.wxss
index 9b247d5..eedd361 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-action-sheet{max-height:90%!important;max-height:var(--action-sheet-max-height,90%)!important;color:#323233;color:var(--action-sheet-item-text-color,#323233)}.van-action-sheet__cancel,.van-action-sheet__item{padding:14px 16px;text-align:center;font-size:16px;font-size:var(--action-sheet-item-font-size,16px);line-height:22px;line-height:var(--action-sheet-item-line-height,22px);background-color:#fff;background-color:var(--action-sheet-item-background,#fff)}.van-action-sheet__cancel--hover,.van-action-sheet__item--hover{background-color:#f2f3f5;background-color:var(--active-color,#f2f3f5)}.van-action-sheet__cancel:after,.van-action-sheet__item:after{border-width:0}.van-action-sheet__cancel{color:#646566;color:var(--action-sheet-cancel-text-color,#646566)}.van-action-sheet__gap{display:block;height:8px;height:var(--action-sheet-cancel-padding-top,8px);background-color:#f7f8fa;background-color:var(--action-sheet-cancel-padding-color,#f7f8fa)}.van-action-sheet__item--disabled{color:#c8c9cc;color:var(--action-sheet-item-disabled-text-color,#c8c9cc)}.van-action-sheet__item--disabled.van-action-sheet__item--hover{background-color:#fff;background-color:var(--action-sheet-item-background,#fff)}.van-action-sheet__subname{margin-top:8px;margin-top:var(--padding-xs,8px);font-size:12px;font-size:var(--action-sheet-subname-font-size,12px);color:#969799;color:var(--action-sheet-subname-color,#969799);line-height:20px;line-height:var(--action-sheet-subname-line-height,20px)}.van-action-sheet__header{text-align:center;font-weight:500;font-weight:var(--font-weight-bold,500);font-size:16px;font-size:var(--action-sheet-header-font-size,16px);line-height:48px;line-height:var(--action-sheet-header-height,48px)}.van-action-sheet__description{text-align:center;padding:20px 16px;padding:20px var(--padding-md,16px);color:#969799;color:var(--action-sheet-description-color,#969799);font-size:14px;font-size:var(--action-sheet-description-font-size,14px);line-height:20px;line-height:var(--action-sheet-description-line-height,20px)}.van-action-sheet__close{position:absolute!important;top:0;right:0;line-height:inherit!important;padding:0 16px;padding:var(--action-sheet-close-icon-padding,0 16px);font-size:22px!important;font-size:var(--action-sheet-close-icon-size,22px)!important;color:#c8c9cc;color:var(--action-sheet-close-icon-color,#c8c9cc)}.van-action-sheet__loading{display:-webkit-flex!important;display:flex!important}
\ No newline at end of file
+@import '../common/index.wxss';.van-action-sheet{color:var(--action-sheet-item-text-color,#323233);max-height:var(--action-sheet-max-height,90%)!important}.van-action-sheet__cancel,.van-action-sheet__item{background-color:var(--action-sheet-item-background,#fff);font-size:var(--action-sheet-item-font-size,16px);line-height:var(--action-sheet-item-line-height,22px);padding:14px 16px;text-align:center}.van-action-sheet__cancel--hover,.van-action-sheet__item--hover{background-color:#f2f3f5}.van-action-sheet__cancel:after,.van-action-sheet__item:after{border-width:0}.van-action-sheet__cancel{color:var(--action-sheet-cancel-text-color,#646566)}.van-action-sheet__gap{background-color:var(--action-sheet-cancel-padding-color,#f7f8fa);display:block;height:var(--action-sheet-cancel-padding-top,8px)}.van-action-sheet__item--disabled{color:var(--action-sheet-item-disabled-text-color,#c8c9cc)}.van-action-sheet__item--disabled.van-action-sheet__item--hover{background-color:var(--action-sheet-item-background,#fff)}.van-action-sheet__subname{color:var(--action-sheet-subname-color,#969799);font-size:var(--action-sheet-subname-font-size,12px);line-height:var(--action-sheet-subname-line-height,20px);margin-top:var(--padding-xs,8px)}.van-action-sheet__header{font-size:var(--action-sheet-header-font-size,16px);font-weight:var(--font-weight-bold,500);line-height:var(--action-sheet-header-height,48px);text-align:center}.van-action-sheet__description{color:var(--action-sheet-description-color,#969799);font-size:var(--action-sheet-description-font-size,14px);line-height:var(--action-sheet-description-line-height,20px);padding:20px var(--padding-md,16px);text-align:center}.van-action-sheet__close{color:var(--action-sheet-close-icon-color,#c8c9cc);font-size:var(--action-sheet-close-icon-size,22px)!important;line-height:inherit!important;padding:var(--action-sheet-close-icon-padding,0 16px);position:absolute!important;right:0;top:0}.van-action-sheet__loading{display:flex!important}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/area/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/area/index.js
index a194dde..73de66d 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/area/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/area/index.js
@@ -1,263 +1,235 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var shared_1 = require('../picker/shared');
-var utils_1 = require('../common/utils');
-var EMPTY_CODE = '000000';
-component_1.VantComponent({
- classes: ['active-class', 'toolbar-class', 'column-class'],
- props: __assign(__assign({}, shared_1.pickerProps), {
- value: {
- type: String,
- observer: function (value) {
- this.code = value;
- this.setValues();
- },
- },
- areaList: {
- type: Object,
- value: {},
- observer: 'setValues',
- },
- columnsNum: {
- type: null,
- value: 3,
- },
- columnsPlaceholder: {
- type: Array,
- observer: function (val) {
- this.setData({
- typeToColumnsPlaceholder: {
- province: val[0] || '',
- city: val[1] || '',
- county: val[2] || '',
- },
- });
- },
- },
- }),
- data: {
- columns: [{ values: [] }, { values: [] }, { values: [] }],
- typeToColumnsPlaceholder: {},
- },
- mounted: function () {
- var _this = this;
- utils_1.requestAnimationFrame(function () {
- _this.setValues();
- });
- },
- methods: {
- getPicker: function () {
- if (this.picker == null) {
- this.picker = this.selectComponent('.van-area__picker');
- }
- return this.picker;
- },
- onCancel: function (event) {
- this.emit('cancel', event.detail);
- },
- onConfirm: function (event) {
- var index = event.detail.index;
- var value = event.detail.value;
- value = this.parseValues(value);
- this.emit('confirm', { value: value, index: index });
- },
- emit: function (type, detail) {
- detail.values = detail.value;
- delete detail.value;
- this.$emit(type, detail);
- },
- parseValues: function (values) {
- var columnsPlaceholder = this.data.columnsPlaceholder;
- return values.map(function (value, index) {
- if (
- value &&
- (!value.code || value.name === columnsPlaceholder[index])
- ) {
- return __assign(__assign({}, value), { code: '', name: '' });
- }
- return value;
- });
- },
- onChange: function (event) {
- var _this = this;
- var _a = event.detail,
- index = _a.index,
- picker = _a.picker,
- value = _a.value;
- this.code = value[index].code;
- this.setValues().then(function () {
- _this.$emit('change', {
- picker: picker,
- values: _this.parseValues(picker.getValues()),
- index: index,
- });
- });
- },
- getConfig: function (type) {
- var areaList = this.data.areaList;
- return (areaList && areaList[type + '_list']) || {};
- },
- getList: function (type, code) {
- if (type !== 'province' && !code) {
- return [];
- }
- var typeToColumnsPlaceholder = this.data.typeToColumnsPlaceholder;
- var list = this.getConfig(type);
- var result = Object.keys(list).map(function (code) {
- return {
- code: code,
- name: list[code],
- };
- });
- if (code != null) {
- // oversea code
- if (code[0] === '9' && type === 'city') {
- code = '9';
- }
- result = result.filter(function (item) {
- return item.code.indexOf(code) === 0;
- });
- }
- if (typeToColumnsPlaceholder[type] && result.length) {
- // set columns placeholder
- var codeFill =
- type === 'province'
- ? ''
- : type === 'city'
- ? EMPTY_CODE.slice(2, 4)
- : EMPTY_CODE.slice(4, 6);
- result.unshift({
- code: '' + code + codeFill,
- name: typeToColumnsPlaceholder[type],
- });
- }
- return result;
- },
- getIndex: function (type, code) {
- var compareNum = type === 'province' ? 2 : type === 'city' ? 4 : 6;
- var list = this.getList(type, code.slice(0, compareNum - 2));
- // oversea code
- if (code[0] === '9' && type === 'province') {
- compareNum = 1;
- }
- code = code.slice(0, compareNum);
- for (var i = 0; i < list.length; i++) {
- if (list[i].code.slice(0, compareNum) === code) {
- return i;
- }
- }
- return 0;
- },
- setValues: function () {
- var picker = this.getPicker();
- if (!picker) {
- return;
- }
- var code = this.code || this.getDefaultCode();
- var provinceList = this.getList('province');
- var cityList = this.getList('city', code.slice(0, 2));
- var stack = [];
- var indexes = [];
- var columnsNum = this.data.columnsNum;
- if (columnsNum >= 1) {
- stack.push(picker.setColumnValues(0, provinceList, false));
- indexes.push(this.getIndex('province', code));
- }
- if (columnsNum >= 2) {
- stack.push(picker.setColumnValues(1, cityList, false));
- indexes.push(this.getIndex('city', code));
- if (cityList.length && code.slice(2, 4) === '00') {
- code = cityList[0].code;
- }
- }
- if (columnsNum === 3) {
- stack.push(
- picker.setColumnValues(
- 2,
- this.getList('county', code.slice(0, 4)),
- false
- )
- );
- indexes.push(this.getIndex('county', code));
- }
- return Promise.all(stack)
- .catch(function () {})
- .then(function () {
- return picker.setIndexes(indexes);
- })
- .catch(function () {});
- },
- getDefaultCode: function () {
- var columnsPlaceholder = this.data.columnsPlaceholder;
- if (columnsPlaceholder.length) {
- return EMPTY_CODE;
- }
- var countyCodes = Object.keys(this.getConfig('county'));
- if (countyCodes[0]) {
- return countyCodes[0];
- }
- var cityCodes = Object.keys(this.getConfig('city'));
- if (cityCodes[0]) {
- return cityCodes[0];
- }
- return '';
- },
- getValues: function () {
- var picker = this.getPicker();
- if (!picker) {
- return [];
- }
- return this.parseValues(
- picker.getValues().filter(function (value) {
- return !!value;
- })
- );
- },
- getDetail: function () {
- var values = this.getValues();
- var area = {
- code: '',
- country: '',
- province: '',
- city: '',
- county: '',
- };
- if (!values.length) {
- return area;
- }
- var names = values.map(function (item) {
- return item.name;
- });
- area.code = values[values.length - 1].code;
- if (area.code[0] === '9') {
- area.country = names[1] || '';
- area.province = names[2] || '';
- } else {
- area.province = names[0] || '';
- area.city = names[1] || '';
- area.county = names[2] || '';
- }
- return area;
- },
- reset: function (code) {
- this.code = code || '';
- return this.setValues();
- },
- },
-});
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var shared_1 = require("../picker/shared");
+var utils_1 = require("../common/utils");
+var EMPTY_CODE = '000000';
+(0, component_1.VantComponent)({
+ classes: ['active-class', 'toolbar-class', 'column-class'],
+ props: __assign(__assign({}, shared_1.pickerProps), { showToolbar: {
+ type: Boolean,
+ value: true,
+ }, value: {
+ type: String,
+ observer: function (value) {
+ this.code = value;
+ this.setValues();
+ },
+ }, areaList: {
+ type: Object,
+ value: {},
+ observer: 'setValues',
+ }, columnsNum: {
+ type: null,
+ value: 3,
+ }, columnsPlaceholder: {
+ type: Array,
+ observer: function (val) {
+ this.setData({
+ typeToColumnsPlaceholder: {
+ province: val[0] || '',
+ city: val[1] || '',
+ county: val[2] || '',
+ },
+ });
+ },
+ } }),
+ data: {
+ columns: [{ values: [] }, { values: [] }, { values: [] }],
+ typeToColumnsPlaceholder: {},
+ },
+ mounted: function () {
+ var _this = this;
+ (0, utils_1.requestAnimationFrame)(function () {
+ _this.setValues();
+ });
+ },
+ methods: {
+ getPicker: function () {
+ if (this.picker == null) {
+ this.picker = this.selectComponent('.van-area__picker');
+ }
+ return this.picker;
+ },
+ onCancel: function (event) {
+ this.emit('cancel', event.detail);
+ },
+ onConfirm: function (event) {
+ var index = event.detail.index;
+ var value = event.detail.value;
+ value = this.parseValues(value);
+ this.emit('confirm', { value: value, index: index });
+ },
+ emit: function (type, detail) {
+ detail.values = detail.value;
+ delete detail.value;
+ this.$emit(type, detail);
+ },
+ parseValues: function (values) {
+ var columnsPlaceholder = this.data.columnsPlaceholder;
+ return values.map(function (value, index) {
+ if (value &&
+ (!value.code || value.name === columnsPlaceholder[index])) {
+ return __assign(__assign({}, value), { code: '', name: '' });
+ }
+ return value;
+ });
+ },
+ onChange: function (event) {
+ var _this = this;
+ var _a;
+ var _b = event.detail, index = _b.index, picker = _b.picker, value = _b.value;
+ this.code = value[index].code;
+ (_a = this.setValues()) === null || _a === void 0 ? void 0 : _a.then(function () {
+ _this.$emit('change', {
+ picker: picker,
+ values: _this.parseValues(picker.getValues()),
+ index: index,
+ });
+ });
+ },
+ getConfig: function (type) {
+ var areaList = this.data.areaList;
+ return (areaList && areaList["".concat(type, "_list")]) || {};
+ },
+ getList: function (type, code) {
+ if (type !== 'province' && !code) {
+ return [];
+ }
+ var typeToColumnsPlaceholder = this.data.typeToColumnsPlaceholder;
+ var list = this.getConfig(type);
+ var result = Object.keys(list).map(function (code) { return ({
+ code: code,
+ name: list[code],
+ }); });
+ if (code != null) {
+ // oversea code
+ if (code[0] === '9' && type === 'city') {
+ code = '9';
+ }
+ result = result.filter(function (item) { return item.code.indexOf(code) === 0; });
+ }
+ if (typeToColumnsPlaceholder[type] && result.length) {
+ // set columns placeholder
+ var codeFill = type === 'province'
+ ? ''
+ : type === 'city'
+ ? EMPTY_CODE.slice(2, 4)
+ : EMPTY_CODE.slice(4, 6);
+ result.unshift({
+ code: "".concat(code).concat(codeFill),
+ name: typeToColumnsPlaceholder[type],
+ });
+ }
+ return result;
+ },
+ getIndex: function (type, code) {
+ var compareNum = type === 'province' ? 2 : type === 'city' ? 4 : 6;
+ var list = this.getList(type, code.slice(0, compareNum - 2));
+ // oversea code
+ if (code[0] === '9' && type === 'province') {
+ compareNum = 1;
+ }
+ code = code.slice(0, compareNum);
+ for (var i = 0; i < list.length; i++) {
+ if (list[i].code.slice(0, compareNum) === code) {
+ return i;
+ }
+ }
+ return 0;
+ },
+ setValues: function () {
+ var picker = this.getPicker();
+ if (!picker) {
+ return;
+ }
+ var code = this.code || this.getDefaultCode();
+ var provinceList = this.getList('province');
+ var cityList = this.getList('city', code.slice(0, 2));
+ var stack = [];
+ var indexes = [];
+ var columnsNum = this.data.columnsNum;
+ if (columnsNum >= 1) {
+ stack.push(picker.setColumnValues(0, provinceList, false));
+ indexes.push(this.getIndex('province', code));
+ }
+ if (columnsNum >= 2) {
+ stack.push(picker.setColumnValues(1, cityList, false));
+ indexes.push(this.getIndex('city', code));
+ if (cityList.length && code.slice(2, 4) === '00') {
+ code = cityList[0].code;
+ }
+ }
+ if (columnsNum === 3) {
+ stack.push(picker.setColumnValues(2, this.getList('county', code.slice(0, 4)), false));
+ indexes.push(this.getIndex('county', code));
+ }
+ return Promise.all(stack)
+ .catch(function () { })
+ .then(function () { return picker.setIndexes(indexes); })
+ .catch(function () { });
+ },
+ getDefaultCode: function () {
+ var columnsPlaceholder = this.data.columnsPlaceholder;
+ if (columnsPlaceholder.length) {
+ return EMPTY_CODE;
+ }
+ var countyCodes = Object.keys(this.getConfig('county'));
+ if (countyCodes[0]) {
+ return countyCodes[0];
+ }
+ var cityCodes = Object.keys(this.getConfig('city'));
+ if (cityCodes[0]) {
+ return cityCodes[0];
+ }
+ return '';
+ },
+ getValues: function () {
+ var picker = this.getPicker();
+ if (!picker) {
+ return [];
+ }
+ return this.parseValues(picker.getValues().filter(function (value) { return !!value; }));
+ },
+ getDetail: function () {
+ var values = this.getValues();
+ var area = {
+ code: '',
+ country: '',
+ province: '',
+ city: '',
+ county: '',
+ };
+ if (!values.length) {
+ return area;
+ }
+ var names = values.map(function (item) { return item.name; });
+ area.code = values[values.length - 1].code;
+ if (area.code[0] === '9') {
+ area.country = names[1] || '';
+ area.province = names[2] || '';
+ }
+ else {
+ area.province = names[0] || '';
+ area.city = names[1] || '';
+ area.county = names[2] || '';
+ }
+ return area;
+ },
+ reset: function (code) {
+ this.code = code || '';
+ return this.setValues();
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/area/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/area/index.json
index 9176008..a778e91 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/area/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/area/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-picker": "../picker/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-picker": "../picker/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/area/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/area/index.wxml
index 9ee9bd9..3a437b7 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/area/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/area/index.wxml
@@ -1,20 +1,20 @@
-
-
-
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/area/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/area/index.wxs
index bd1072c..07723c1 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/area/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/area/index.wxs
@@ -1,8 +1,8 @@
-/* eslint-disable */
-function displayColumns(columns, columnsNum) {
- return columns.slice(0, +columnsNum);
-}
-
-module.exports = {
- displayColumns: displayColumns,
-};
+/* eslint-disable */
+function displayColumns(columns, columnsNum) {
+ return columns.slice(0, +columnsNum);
+}
+
+module.exports = {
+ displayColumns: displayColumns,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/button/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/button/index.js
index 7466dfe..984135c 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/button/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/button/index.js
@@ -1,60 +1,67 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var button_1 = require('../mixins/button');
-var open_type_1 = require('../mixins/open-type');
-var version_1 = require('../common/version');
-var mixins = [button_1.button, open_type_1.openType];
-if (version_1.canIUseFormFieldButton()) {
- mixins.push('wx://form-field-button');
-}
-component_1.VantComponent({
- mixins: mixins,
- classes: ['hover-class', 'loading-class'],
- data: {
- baseStyle: '',
- },
- props: {
- formType: String,
- icon: String,
- classPrefix: {
- type: String,
- value: 'van-icon',
- },
- plain: Boolean,
- block: Boolean,
- round: Boolean,
- square: Boolean,
- loading: Boolean,
- hairline: Boolean,
- disabled: Boolean,
- loadingText: String,
- customStyle: String,
- loadingType: {
- type: String,
- value: 'circular',
- },
- type: {
- type: String,
- value: 'default',
- },
- dataset: null,
- size: {
- type: String,
- value: 'normal',
- },
- loadingSize: {
- type: String,
- value: '20px',
- },
- color: String,
- },
- methods: {
- onClick: function () {
- if (!this.data.loading) {
- this.$emit('click');
- }
- },
- noop: function () {},
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var button_1 = require("../mixins/button");
+var version_1 = require("../common/version");
+var mixins = [button_1.button];
+if ((0, version_1.canIUseFormFieldButton)()) {
+ mixins.push('wx://form-field-button');
+}
+(0, component_1.VantComponent)({
+ mixins: mixins,
+ classes: ['hover-class', 'loading-class'],
+ data: {
+ baseStyle: '',
+ },
+ props: {
+ formType: String,
+ icon: String,
+ classPrefix: {
+ type: String,
+ value: 'van-icon',
+ },
+ plain: Boolean,
+ block: Boolean,
+ round: Boolean,
+ square: Boolean,
+ loading: Boolean,
+ hairline: Boolean,
+ disabled: Boolean,
+ loadingText: String,
+ customStyle: String,
+ loadingType: {
+ type: String,
+ value: 'circular',
+ },
+ type: {
+ type: String,
+ value: 'default',
+ },
+ dataset: null,
+ size: {
+ type: String,
+ value: 'normal',
+ },
+ loadingSize: {
+ type: String,
+ value: '20px',
+ },
+ color: String,
+ },
+ methods: {
+ onClick: function (event) {
+ var _this = this;
+ this.$emit('click', event);
+ var _a = this.data, canIUseGetUserProfile = _a.canIUseGetUserProfile, openType = _a.openType, getUserProfileDesc = _a.getUserProfileDesc, lang = _a.lang;
+ if (openType === 'getUserInfo' && canIUseGetUserProfile) {
+ wx.getUserProfile({
+ desc: getUserProfileDesc || ' ',
+ lang: lang || 'en',
+ complete: function (userProfile) {
+ _this.$emit('getuserinfo', userProfile);
+ },
+ });
+ }
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/button/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/button/index.json
index 8e23ad6..e00a588 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/button/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/button/index.json
@@ -1,7 +1,7 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index",
- "van-loading": "../loading/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index",
+ "van-loading": "../loading/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxml
index a0059c7..e7f60f1 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxml
@@ -1,53 +1,56 @@
-
-
-
-
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxs
index f5b7ab2..8b649fe 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxs
@@ -1,39 +1,39 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-
-function rootStyle(data) {
- if (!data.color) {
- return data.customStyle;
- }
-
- var properties = {
- color: data.plain ? data.color : '#fff',
- background: data.plain ? null : data.color,
- };
-
- // hide border when color is linear-gradient
- if (data.color.indexOf('gradient') !== -1) {
- properties.border = 0;
- } else {
- properties['border-color'] = data.color;
- }
-
- return style([properties, data.customStyle]);
-}
-
-function loadingColor(data) {
- if (data.plain) {
- return data.color ? data.color : '#c9c9c9';
- }
-
- if (data.type === 'default') {
- return '#c9c9c9';
- }
-
- return '#fff';
-}
-
-module.exports = {
- rootStyle: rootStyle,
- loadingColor: loadingColor,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+
+function rootStyle(data) {
+ if (!data.color) {
+ return data.customStyle;
+ }
+
+ var properties = {
+ color: data.plain ? data.color : '#fff',
+ background: data.plain ? null : data.color,
+ };
+
+ // hide border when color is linear-gradient
+ if (data.color.indexOf('gradient') !== -1) {
+ properties.border = 0;
+ } else {
+ properties['border-color'] = data.color;
+ }
+
+ return style([properties, data.customStyle]);
+}
+
+function loadingColor(data) {
+ if (data.plain) {
+ return data.color ? data.color : '#c9c9c9';
+ }
+
+ if (data.type === 'default') {
+ return '#c9c9c9';
+ }
+
+ return '#fff';
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+ loadingColor: loadingColor,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxss
index 5a591fb..bd8bb5a 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-button{position:relative;display:-webkit-inline-flex;display:inline-flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;padding:0;text-align:center;vertical-align:middle;-webkit-appearance:none;-webkit-text-size-adjust:100%;height:44px;height:var(--button-default-height,44px);line-height:20px;line-height:var(--button-line-height,20px);font-size:16px;font-size:var(--button-default-font-size,16px);transition:opacity .2s;transition:opacity var(--animation-duration-fast,.2s);border-radius:2px;border-radius:var(--button-border-radius,2px)}.van-button:before{position:absolute;top:50%;left:50%;width:100%;height:100%;border:inherit;border-radius:inherit;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);opacity:0;content:" ";background-color:#000;background-color:var(--black,#000);border-color:#000;border-color:var(--black,#000)}.van-button:after{border-width:0}.van-button--active:before{opacity:.15}.van-button--unclickable:after{display:none}.van-button--default{color:#323233;color:var(--button-default-color,#323233);background:#fff;background:var(--button-default-background-color,#fff);border:1px solid #ebedf0;border:var(--button-border-width,1px) solid var(--button-default-border-color,#ebedf0)}.van-button--primary{color:#fff;color:var(--button-primary-color,#fff);background:#07c160;background:var(--button-primary-background-color,#07c160);border:1px solid #07c160;border:var(--button-border-width,1px) solid var(--button-primary-border-color,#07c160)}.van-button--info{color:#fff;color:var(--button-info-color,#fff);background:#1989fa;background:var(--button-info-background-color,#1989fa);border:1px solid #1989fa;border:var(--button-border-width,1px) solid var(--button-info-border-color,#1989fa)}.van-button--danger{color:#fff;color:var(--button-danger-color,#fff);background:#ee0a24;background:var(--button-danger-background-color,#ee0a24);border:1px solid #ee0a24;border:var(--button-border-width,1px) solid var(--button-danger-border-color,#ee0a24)}.van-button--warning{color:#fff;color:var(--button-warning-color,#fff);background:#ff976a;background:var(--button-warning-background-color,#ff976a);border:1px solid #ff976a;border:var(--button-border-width,1px) solid var(--button-warning-border-color,#ff976a)}.van-button--plain{background:#fff;background:var(--button-plain-background-color,#fff)}.van-button--plain.van-button--primary{color:#07c160;color:var(--button-primary-background-color,#07c160)}.van-button--plain.van-button--info{color:#1989fa;color:var(--button-info-background-color,#1989fa)}.van-button--plain.van-button--danger{color:#ee0a24;color:var(--button-danger-background-color,#ee0a24)}.van-button--plain.van-button--warning{color:#ff976a;color:var(--button-warning-background-color,#ff976a)}.van-button--large{width:100%;height:50px;height:var(--button-large-height,50px)}.van-button--normal{padding:0 15px;font-size:14px;font-size:var(--button-normal-font-size,14px)}.van-button--small{min-width:60px;min-width:var(--button-small-min-width,60px);height:30px;height:var(--button-small-height,30px);padding:0 8px;padding:0 var(--padding-xs,8px);font-size:12px;font-size:var(--button-small-font-size,12px)}.van-button--mini{display:inline-block;min-width:50px;min-width:var(--button-mini-min-width,50px);height:22px;height:var(--button-mini-height,22px);font-size:10px;font-size:var(--button-mini-font-size,10px)}.van-button--mini+.van-button--mini{margin-left:5px}.van-button--block{display:-webkit-flex;display:flex;width:100%}.van-button--round{border-radius:999px;border-radius:var(--button-round-border-radius,999px)}.van-button--square{border-radius:0}.van-button--disabled{opacity:.5;opacity:var(--button-disabled-opacity,.5)}.van-button__text{display:inline}.van-button__icon+.van-button__text:not(:empty),.van-button__loading-text{margin-left:4px}.van-button__icon{min-width:1em;line-height:inherit!important;vertical-align:top}.van-button--hairline{padding-top:1px;border-width:0}.van-button--hairline:after{border-color:inherit;border-width:1px;border-radius:4px;border-radius:calc(var(--button-border-radius, 2px)*2)}.van-button--hairline.van-button--round:after{border-radius:999px;border-radius:var(--button-round-border-radius,999px)}.van-button--hairline.van-button--square:after{border-radius:0}
\ No newline at end of file
+@import '../common/index.wxss';.van-button{-webkit-text-size-adjust:100%;align-items:center;-webkit-appearance:none;border-radius:var(--button-border-radius,2px);box-sizing:border-box;display:inline-flex;font-size:var(--button-default-font-size,16px);height:var(--button-default-height,44px);justify-content:center;line-height:var(--button-line-height,20px);padding:0;position:relative;text-align:center;transition:opacity .2s;vertical-align:middle}.van-button:before{background-color:#000;border:inherit;border-color:#000;border-radius:inherit;content:" ";height:100%;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%}.van-button:after{border-width:0}.van-button--active:before{opacity:.15}.van-button--unclickable:after{display:none}.van-button--default{background:var(--button-default-background-color,#fff);border:var(--button-border-width,1px) solid var(--button-default-border-color,#ebedf0);color:var(--button-default-color,#323233)}.van-button--primary{background:var(--button-primary-background-color,#07c160);border:var(--button-border-width,1px) solid var(--button-primary-border-color,#07c160);color:var(--button-primary-color,#fff)}.van-button--info{background:var(--button-info-background-color,#1989fa);border:var(--button-border-width,1px) solid var(--button-info-border-color,#1989fa);color:var(--button-info-color,#fff)}.van-button--danger{background:var(--button-danger-background-color,#ee0a24);border:var(--button-border-width,1px) solid var(--button-danger-border-color,#ee0a24);color:var(--button-danger-color,#fff)}.van-button--warning{background:var(--button-warning-background-color,#ff976a);border:var(--button-border-width,1px) solid var(--button-warning-border-color,#ff976a);color:var(--button-warning-color,#fff)}.van-button--plain{background:var(--button-plain-background-color,#fff)}.van-button--plain.van-button--primary{color:var(--button-primary-background-color,#07c160)}.van-button--plain.van-button--info{color:var(--button-info-background-color,#1989fa)}.van-button--plain.van-button--danger{color:var(--button-danger-background-color,#ee0a24)}.van-button--plain.van-button--warning{color:var(--button-warning-background-color,#ff976a)}.van-button--large{height:var(--button-large-height,50px);width:100%}.van-button--normal{font-size:var(--button-normal-font-size,14px);padding:0 15px}.van-button--small{font-size:var(--button-small-font-size,12px);height:var(--button-small-height,30px);min-width:var(--button-small-min-width,60px);padding:0 var(--padding-xs,8px)}.van-button--mini{display:inline-block;font-size:var(--button-mini-font-size,10px);height:var(--button-mini-height,22px);min-width:var(--button-mini-min-width,50px)}.van-button--mini+.van-button--mini{margin-left:5px}.van-button--block{display:flex;width:100%}.van-button--round{border-radius:var(--button-round-border-radius,999px)}.van-button--square{border-radius:0}.van-button--disabled{opacity:var(--button-disabled-opacity,.5)}.van-button__text{display:inline}.van-button__icon+.van-button__text:not(:empty),.van-button__loading-text{margin-left:4px}.van-button__icon{line-height:inherit!important;min-width:1em;vertical-align:top}.van-button--hairline{border-width:0;padding-top:1px}.van-button--hairline:after{border-color:inherit;border-radius:calc(var(--button-border-radius, 2px)*2);border-width:1px}.van-button--hairline.van-button--round:after{border-radius:var(--button-round-border-radius,999px)}.van-button--hairline.van-button--square:after{border-radius:0}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/calendar.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/calendar.wxml
index b59ffe9..2ba6f30 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/calendar.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/calendar.wxml
@@ -1,65 +1,68 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.js
index f4d70c2..544b3a4 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.js
@@ -1,18 +1,45 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../../../common/component');
-component_1.VantComponent({
- props: {
- title: {
- type: String,
- value: '日期选择',
- },
- subtitle: String,
- showTitle: Boolean,
- showSubtitle: Boolean,
- },
- data: {
- weekdays: ['日', '一', '二', '三', '四', '五', '六'],
- },
- methods: {},
-});
+"use strict";
+var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
+ if (ar || !(i in from)) {
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
+ ar[i] = from[i];
+ }
+ }
+ return to.concat(ar || Array.prototype.slice.call(from));
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../../../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ title: {
+ type: String,
+ value: '日期选择',
+ },
+ subtitle: String,
+ showTitle: Boolean,
+ showSubtitle: Boolean,
+ firstDayOfWeek: {
+ type: Number,
+ observer: 'initWeekDay',
+ },
+ },
+ data: {
+ weekdays: [],
+ },
+ created: function () {
+ this.initWeekDay();
+ },
+ methods: {
+ initWeekDay: function () {
+ var defaultWeeks = ['日', '一', '二', '三', '四', '五', '六'];
+ var firstDayOfWeek = this.data.firstDayOfWeek || 0;
+ this.setData({
+ weekdays: __spreadArray(__spreadArray([], defaultWeeks.slice(firstDayOfWeek, 7), true), defaultWeeks.slice(0, firstDayOfWeek), true),
+ });
+ },
+ onClickSubtitle: function (event) {
+ this.$emit('click-subtitle', event);
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxml
index 08e62a6..7e56c83 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxml
@@ -1,16 +1,16 @@
-
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxss
index 4075e48..272537e 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxss
@@ -1 +1 @@
-@import '../../../common/index.wxss';.van-calendar__header{-webkit-flex-shrink:0;flex-shrink:0;box-shadow:0 2px 10px rgba(125,126,128,.16);box-shadow:var(--calendar-header-box-shadow,0 2px 10px rgba(125,126,128,.16))}.van-calendar__header-subtitle,.van-calendar__header-title{text-align:center;height:44px;height:var(--calendar-header-title-height,44px);font-weight:500;font-weight:var(--font-weight-bold,500);line-height:44px;line-height:var(--calendar-header-title-height,44px)}.van-calendar__header-title+.van-calendar__header-title,.van-calendar__header-title:empty{display:none}.van-calendar__header-title:empty+.van-calendar__header-title{display:block!important}.van-calendar__weekdays{display:-webkit-flex;display:flex}.van-calendar__weekday{-webkit-flex:1;flex:1;text-align:center;font-size:12px;font-size:var(--calendar-weekdays-font-size,12px);line-height:30px;line-height:var(--calendar-weekdays-height,30px)}
\ No newline at end of file
+@import '../../../common/index.wxss';.van-calendar__header{box-shadow:var(--calendar-header-box-shadow,0 2px 10px hsla(220,1%,50%,.16));flex-shrink:0}.van-calendar__header-subtitle,.van-calendar__header-title{font-weight:var(--font-weight-bold,500);height:var(--calendar-header-title-height,44px);line-height:var(--calendar-header-title-height,44px);text-align:center}.van-calendar__header-title+.van-calendar__header-title,.van-calendar__header-title:empty{display:none}.van-calendar__header-title:empty+.van-calendar__header-title{display:block!important}.van-calendar__weekdays{display:flex}.van-calendar__weekday{flex:1;font-size:var(--calendar-weekdays-font-size,12px);line-height:var(--calendar-weekdays-height,30px);text-align:center}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.js
index 470b31b..4d137f5 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.js
@@ -1,167 +1,158 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../../../common/component');
-var utils_1 = require('../../utils');
-component_1.VantComponent({
- props: {
- date: {
- type: null,
- observer: 'setDays',
- },
- type: {
- type: String,
- observer: 'setDays',
- },
- color: String,
- minDate: {
- type: null,
- observer: 'setDays',
- },
- maxDate: {
- type: null,
- observer: 'setDays',
- },
- showMark: Boolean,
- rowHeight: null,
- formatter: {
- type: null,
- observer: 'setDays',
- },
- currentDate: {
- type: null,
- observer: 'setDays',
- },
- allowSameDay: Boolean,
- showSubtitle: Boolean,
- showMonthTitle: Boolean,
- },
- data: {
- visible: true,
- days: [],
- },
- methods: {
- onClick: function (event) {
- var index = event.currentTarget.dataset.index;
- var item = this.data.days[index];
- if (item.type !== 'disabled') {
- this.$emit('click', item);
- }
- },
- setDays: function () {
- var days = [];
- var startDate = new Date(this.data.date);
- var year = startDate.getFullYear();
- var month = startDate.getMonth();
- var totalDay = utils_1.getMonthEndDay(
- startDate.getFullYear(),
- startDate.getMonth() + 1
- );
- for (var day = 1; day <= totalDay; day++) {
- var date = new Date(year, month, day);
- var type = this.getDayType(date);
- var config = {
- date: date,
- type: type,
- text: day,
- bottomInfo: this.getBottomInfo(type),
- };
- if (this.data.formatter) {
- config = this.data.formatter(config);
- }
- days.push(config);
- }
- this.setData({ days: days });
- },
- getMultipleDayType: function (day) {
- var currentDate = this.data.currentDate;
- if (!Array.isArray(currentDate)) {
- return '';
- }
- var isSelected = function (date) {
- return currentDate.some(function (item) {
- return utils_1.compareDay(item, date) === 0;
- });
- };
- if (isSelected(day)) {
- var prevDay = utils_1.getPrevDay(day);
- var nextDay = utils_1.getNextDay(day);
- var prevSelected = isSelected(prevDay);
- var nextSelected = isSelected(nextDay);
- if (prevSelected && nextSelected) {
- return 'multiple-middle';
- }
- if (prevSelected) {
- return 'end';
- }
- return nextSelected ? 'start' : 'multiple-selected';
- }
- return '';
- },
- getRangeDayType: function (day) {
- var _a = this.data,
- currentDate = _a.currentDate,
- allowSameDay = _a.allowSameDay;
- if (!Array.isArray(currentDate)) {
- return;
- }
- var startDay = currentDate[0],
- endDay = currentDate[1];
- if (!startDay) {
- return;
- }
- var compareToStart = utils_1.compareDay(day, startDay);
- if (!endDay) {
- return compareToStart === 0 ? 'start' : '';
- }
- var compareToEnd = utils_1.compareDay(day, endDay);
- if (compareToStart === 0 && compareToEnd === 0 && allowSameDay) {
- return 'start-end';
- }
- if (compareToStart === 0) {
- return 'start';
- }
- if (compareToEnd === 0) {
- return 'end';
- }
- if (compareToStart > 0 && compareToEnd < 0) {
- return 'middle';
- }
- },
- getDayType: function (day) {
- var _a = this.data,
- type = _a.type,
- minDate = _a.minDate,
- maxDate = _a.maxDate,
- currentDate = _a.currentDate;
- if (
- utils_1.compareDay(day, minDate) < 0 ||
- utils_1.compareDay(day, maxDate) > 0
- ) {
- return 'disabled';
- }
- if (type === 'single') {
- return utils_1.compareDay(day, currentDate) === 0 ? 'selected' : '';
- }
- if (type === 'multiple') {
- return this.getMultipleDayType(day);
- }
- /* istanbul ignore else */
- if (type === 'range') {
- return this.getRangeDayType(day);
- }
- },
- getBottomInfo: function (type) {
- if (this.data.type === 'range') {
- if (type === 'start') {
- return '开始';
- }
- if (type === 'end') {
- return '结束';
- }
- if (type === 'start-end') {
- return '开始/结束';
- }
- }
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../../../common/component");
+var utils_1 = require("../../utils");
+(0, component_1.VantComponent)({
+ props: {
+ date: {
+ type: null,
+ observer: 'setDays',
+ },
+ type: {
+ type: String,
+ observer: 'setDays',
+ },
+ color: String,
+ minDate: {
+ type: null,
+ observer: 'setDays',
+ },
+ maxDate: {
+ type: null,
+ observer: 'setDays',
+ },
+ showMark: Boolean,
+ rowHeight: null,
+ formatter: {
+ type: null,
+ observer: 'setDays',
+ },
+ currentDate: {
+ type: null,
+ observer: 'setDays',
+ },
+ firstDayOfWeek: {
+ type: Number,
+ observer: 'setDays',
+ },
+ allowSameDay: Boolean,
+ showSubtitle: Boolean,
+ showMonthTitle: Boolean,
+ },
+ data: {
+ visible: true,
+ days: [],
+ },
+ methods: {
+ onClick: function (event) {
+ var index = event.currentTarget.dataset.index;
+ var item = this.data.days[index];
+ if (item.type !== 'disabled') {
+ this.$emit('click', item);
+ }
+ },
+ setDays: function () {
+ var days = [];
+ var startDate = new Date(this.data.date);
+ var year = startDate.getFullYear();
+ var month = startDate.getMonth();
+ var totalDay = (0, utils_1.getMonthEndDay)(startDate.getFullYear(), startDate.getMonth() + 1);
+ for (var day = 1; day <= totalDay; day++) {
+ var date = new Date(year, month, day);
+ var type = this.getDayType(date);
+ var config = {
+ date: date,
+ type: type,
+ text: day,
+ bottomInfo: this.getBottomInfo(type),
+ };
+ if (this.data.formatter) {
+ config = this.data.formatter(config);
+ }
+ days.push(config);
+ }
+ this.setData({ days: days });
+ },
+ getMultipleDayType: function (day) {
+ var currentDate = this.data.currentDate;
+ if (!Array.isArray(currentDate)) {
+ return '';
+ }
+ var isSelected = function (date) {
+ return currentDate.some(function (item) { return (0, utils_1.compareDay)(item, date) === 0; });
+ };
+ if (isSelected(day)) {
+ var prevDay = (0, utils_1.getPrevDay)(day);
+ var nextDay = (0, utils_1.getNextDay)(day);
+ var prevSelected = isSelected(prevDay);
+ var nextSelected = isSelected(nextDay);
+ if (prevSelected && nextSelected) {
+ return 'multiple-middle';
+ }
+ if (prevSelected) {
+ return 'end';
+ }
+ return nextSelected ? 'start' : 'multiple-selected';
+ }
+ return '';
+ },
+ getRangeDayType: function (day) {
+ var _a = this.data, currentDate = _a.currentDate, allowSameDay = _a.allowSameDay;
+ if (!Array.isArray(currentDate)) {
+ return '';
+ }
+ var startDay = currentDate[0], endDay = currentDate[1];
+ if (!startDay) {
+ return '';
+ }
+ var compareToStart = (0, utils_1.compareDay)(day, startDay);
+ if (!endDay) {
+ return compareToStart === 0 ? 'start' : '';
+ }
+ var compareToEnd = (0, utils_1.compareDay)(day, endDay);
+ if (compareToStart === 0 && compareToEnd === 0 && allowSameDay) {
+ return 'start-end';
+ }
+ if (compareToStart === 0) {
+ return 'start';
+ }
+ if (compareToEnd === 0) {
+ return 'end';
+ }
+ if (compareToStart > 0 && compareToEnd < 0) {
+ return 'middle';
+ }
+ return '';
+ },
+ getDayType: function (day) {
+ var _a = this.data, type = _a.type, minDate = _a.minDate, maxDate = _a.maxDate, currentDate = _a.currentDate;
+ if ((0, utils_1.compareDay)(day, minDate) < 0 || (0, utils_1.compareDay)(day, maxDate) > 0) {
+ return 'disabled';
+ }
+ if (type === 'single') {
+ return (0, utils_1.compareDay)(day, currentDate) === 0 ? 'selected' : '';
+ }
+ if (type === 'multiple') {
+ return this.getMultipleDayType(day);
+ }
+ /* istanbul ignore else */
+ if (type === 'range') {
+ return this.getRangeDayType(day);
+ }
+ return '';
+ },
+ getBottomInfo: function (type) {
+ if (this.data.type === 'range') {
+ if (type === 'start') {
+ return '开始';
+ }
+ if (type === 'end') {
+ return '结束';
+ }
+ if (type === 'start-end') {
+ return '开始/结束';
+ }
+ }
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxml
index b4b431a..0c73b2f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxml
@@ -1,39 +1,39 @@
-
-
-
-
-
- {{ computed.formatMonthTitle(date) }}
-
-
-
-
- {{ computed.getMark(date) }}
-
-
-
-
- {{ item.topInfo }}
- {{ item.text }}
-
- {{ item.bottomInfo }}
-
-
-
-
- {{ item.topInfo }}
- {{ item.text }}
-
- {{ item.bottomInfo }}
-
-
-
-
-
+
+
+
+
+
+ {{ computed.formatMonthTitle(date) }}
+
+
+
+
+ {{ computed.getMark(date) }}
+
+
+
+
+ {{ item.topInfo }}
+ {{ item.text }}
+
+ {{ item.bottomInfo }}
+
+
+
+
+ {{ item.topInfo }}
+ {{ item.text }}
+
+ {{ item.bottomInfo }}
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxs
index 00c909d..55e45a5 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxs
@@ -1,67 +1,71 @@
-/* eslint-disable */
-var utils = require('../../utils.wxs');
-
-function getMark(date) {
- return getDate(date).getMonth() + 1;
-}
-
-var ROW_HEIGHT = 64;
-
-function getDayStyle(type, index, date, rowHeight, color) {
- var style = [];
- var offset = getDate(date).getDay();
-
- if (index === 0) {
- style.push(['margin-left', (100 * offset) / 7 + '%']);
- }
-
- if (rowHeight !== ROW_HEIGHT) {
- style.push(['height', rowHeight + 'px']);
- }
-
- if (color) {
- if (
- type === 'start' ||
- type === 'end' ||
- type === 'multiple-selected' ||
- type === 'multiple-middle'
- ) {
- style.push(['background', color]);
- } else if (type === 'middle') {
- style.push(['color', color]);
- }
- }
-
- return style
- .map(function(item) {
- return item.join(':');
- })
- .join(';');
-}
-
-function formatMonthTitle(date) {
- date = getDate(date);
- return date.getFullYear() + '年' + (date.getMonth() + 1) + '月';
-}
-
-function getMonthStyle(visible, date, rowHeight) {
- if (!visible) {
- date = getDate(date);
-
- var totalDay = utils.getMonthEndDay(
- date.getFullYear(),
- date.getMonth() + 1
- );
- var offset = getDate(date).getDay();
- var padding = Math.ceil((totalDay + offset) / 7) * rowHeight;
-
- return 'padding-bottom:' + padding + 'px';
- }
-}
-
-module.exports = {
- getMark: getMark,
- getDayStyle: getDayStyle,
- formatMonthTitle: formatMonthTitle,
- getMonthStyle: getMonthStyle
-};
+/* eslint-disable */
+var utils = require('../../utils.wxs');
+
+function getMark(date) {
+ return getDate(date).getMonth() + 1;
+}
+
+var ROW_HEIGHT = 64;
+
+function getDayStyle(type, index, date, rowHeight, color, firstDayOfWeek) {
+ var style = [];
+ var current = getDate(date).getDay() || 7;
+ var offset = current < firstDayOfWeek ? (7 - firstDayOfWeek + current) :
+ current === 7 && firstDayOfWeek === 0 ? 0 :
+ (current - firstDayOfWeek);
+
+ if (index === 0) {
+ style.push(['margin-left', (100 * offset) / 7 + '%']);
+ }
+
+ if (rowHeight !== ROW_HEIGHT) {
+ style.push(['height', rowHeight + 'px']);
+ }
+
+ if (color) {
+ if (
+ type === 'start' ||
+ type === 'end' ||
+ type === 'start-end' ||
+ type === 'multiple-selected' ||
+ type === 'multiple-middle'
+ ) {
+ style.push(['background', color]);
+ } else if (type === 'middle') {
+ style.push(['color', color]);
+ }
+ }
+
+ return style
+ .map(function(item) {
+ return item.join(':');
+ })
+ .join(';');
+}
+
+function formatMonthTitle(date) {
+ date = getDate(date);
+ return date.getFullYear() + '年' + (date.getMonth() + 1) + '月';
+}
+
+function getMonthStyle(visible, date, rowHeight) {
+ if (!visible) {
+ date = getDate(date);
+
+ var totalDay = utils.getMonthEndDay(
+ date.getFullYear(),
+ date.getMonth() + 1
+ );
+ var offset = getDate(date).getDay();
+ var padding = Math.ceil((totalDay + offset) / 7) * rowHeight;
+
+ return 'padding-bottom:' + padding + 'px';
+ }
+}
+
+module.exports = {
+ getMark: getMark,
+ getDayStyle: getDayStyle,
+ formatMonthTitle: formatMonthTitle,
+ getMonthStyle: getMonthStyle
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxss
index 17c12f4..9aee73d 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxss
@@ -1 +1 @@
-@import '../../../common/index.wxss';.van-calendar{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;height:100%;background-color:#fff;background-color:var(--calendar-background-color,#fff)}.van-calendar__month-title{text-align:center;height:44px;height:var(--calendar-header-title-height,44px);font-weight:500;font-weight:var(--font-weight-bold,500);font-size:14px;font-size:var(--calendar-month-title-font-size,14px);line-height:44px;line-height:var(--calendar-header-title-height,44px)}.van-calendar__days{position:relative;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.van-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);pointer-events:none;color:rgba(242,243,245,.8);color:var(--calendar-month-mark-color,rgba(242,243,245,.8));font-size:160px;font-size:var(--calendar-month-mark-font-size,160px)}.van-calendar__day,.van-calendar__selected-day{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;text-align:center}.van-calendar__day{position:relative;width:14.285%;height:64px;height:var(--calendar-day-height,64px);font-size:16px;font-size:var(--calendar-day-font-size,16px)}.van-calendar__day--end,.van-calendar__day--multiple-middle,.van-calendar__day--multiple-selected,.van-calendar__day--start,.van-calendar__day--start-end{color:#fff;color:var(--calendar-range-edge-color,#fff);background-color:#ee0a24;background-color:var(--calendar-range-edge-background-color,#ee0a24)}.van-calendar__day--start{border-radius:4px 0 0 4px;border-radius:var(--border-radius-md,4px) 0 0 var(--border-radius-md,4px)}.van-calendar__day--end{border-radius:0 4px 4px 0;border-radius:0 var(--border-radius-md,4px) var(--border-radius-md,4px) 0}.van-calendar__day--multiple-selected,.van-calendar__day--start-end{border-radius:4px;border-radius:var(--border-radius-md,4px)}.van-calendar__day--middle{color:#ee0a24;color:var(--calendar-range-middle-color,#ee0a24)}.van-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;content:"";opacity:.1;opacity:var(--calendar-range-middle-background-opacity,.1)}.van-calendar__day--disabled{cursor:default;color:#c8c9cc;color:var(--calendar-day-disabled-color,#c8c9cc)}.van-calendar__bottom-info,.van-calendar__top-info{position:absolute;right:0;left:0;font-size:10px;font-size:var(--calendar-info-font-size,10px);line-height:14px;line-height:var(--calendar-info-line-height,14px)}@media (max-width:350px){.van-calendar__bottom-info,.van-calendar__top-info{font-size:9px}}.van-calendar__top-info{top:6px}.van-calendar__bottom-info{bottom:6px}.van-calendar__selected-day{width:54px;width:var(--calendar-selected-day-size,54px);height:54px;height:var(--calendar-selected-day-size,54px);color:#fff;color:var(--calendar-selected-day-color,#fff);background-color:#ee0a24;background-color:var(--calendar-selected-day-background-color,#ee0a24);border-radius:4px;border-radius:var(--border-radius-md,4px)}
\ No newline at end of file
+@import '../../../common/index.wxss';.van-calendar{background-color:var(--calendar-background-color,#fff);display:flex;flex-direction:column;height:100%}.van-calendar__month-title{font-size:var(--calendar-month-title-font-size,14px);font-weight:var(--font-weight-bold,500);height:var(--calendar-header-title-height,44px);line-height:var(--calendar-header-title-height,44px);text-align:center}.van-calendar__days{display:flex;flex-wrap:wrap;position:relative;-webkit-user-select:none;user-select:none}.van-calendar__month-mark{color:var(--calendar-month-mark-color,rgba(242,243,245,.8));font-size:var(--calendar-month-mark-font-size,160px);left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:0}.van-calendar__day,.van-calendar__selected-day{align-items:center;display:flex;justify-content:center;text-align:center}.van-calendar__day{font-size:var(--calendar-day-font-size,16px);height:var(--calendar-day-height,64px);position:relative;width:14.285%}.van-calendar__day--end,.van-calendar__day--multiple-middle,.van-calendar__day--multiple-selected,.van-calendar__day--start,.van-calendar__day--start-end{background-color:var(--calendar-range-edge-background-color,#ee0a24);color:var(--calendar-range-edge-color,#fff)}.van-calendar__day--start{border-radius:4px 0 0 4px}.van-calendar__day--end{border-radius:0 4px 4px 0}.van-calendar__day--multiple-selected,.van-calendar__day--start-end{border-radius:4px}.van-calendar__day--middle{color:var(--calendar-range-middle-color,#ee0a24)}.van-calendar__day--middle:after{background-color:currentColor;bottom:0;content:"";left:0;opacity:var(--calendar-range-middle-background-opacity,.1);position:absolute;right:0;top:0}.van-calendar__day--disabled{color:var(--calendar-day-disabled-color,#c8c9cc);cursor:default}.van-calendar__bottom-info,.van-calendar__top-info{font-size:var(--calendar-info-font-size,10px);left:0;line-height:var(--calendar-info-line-height,14px);position:absolute;right:0}@media (max-width:350px){.van-calendar__bottom-info,.van-calendar__top-info{font-size:9px}}.van-calendar__top-info{top:6px}.van-calendar__bottom-info{bottom:6px}.van-calendar__selected-day{background-color:var(--calendar-selected-day-background-color,#ee0a24);border-radius:4px;color:var(--calendar-selected-day-color,#fff);height:var(--calendar-selected-day-size,54px);width:var(--calendar-selected-day-size,54px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.js
index f64f318..eea8751 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.js
@@ -1,325 +1,379 @@
-'use strict';
-var __spreadArrays =
- (this && this.__spreadArrays) ||
- function () {
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
- s += arguments[i].length;
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
- r[k] = a[j];
- return r;
- };
-var __importDefault =
- (this && this.__importDefault) ||
- function (mod) {
- return mod && mod.__esModule ? mod : { default: mod };
- };
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var utils_1 = require('./utils');
-var toast_1 = __importDefault(require('../toast/toast'));
-var utils_2 = require('../common/utils');
-component_1.VantComponent({
- props: {
- title: {
- type: String,
- value: '日期选择',
- },
- color: String,
- show: {
- type: Boolean,
- observer: function (val) {
- if (val) {
- this.initRect();
- this.scrollIntoView();
- }
- },
- },
- formatter: null,
- confirmText: {
- type: String,
- value: '确定',
- },
- rangePrompt: String,
- defaultDate: {
- type: null,
- observer: function (val) {
- this.setData({ currentDate: val });
- this.scrollIntoView();
- },
- },
- allowSameDay: Boolean,
- confirmDisabledText: String,
- type: {
- type: String,
- value: 'single',
- observer: 'reset',
- },
- minDate: {
- type: null,
- value: Date.now(),
- },
- maxDate: {
- type: null,
- value: new Date(
- new Date().getFullYear(),
- new Date().getMonth() + 6,
- new Date().getDate()
- ).getTime(),
- },
- position: {
- type: String,
- value: 'bottom',
- },
- rowHeight: {
- type: null,
- value: utils_1.ROW_HEIGHT,
- },
- round: {
- type: Boolean,
- value: true,
- },
- poppable: {
- type: Boolean,
- value: true,
- },
- showMark: {
- type: Boolean,
- value: true,
- },
- showTitle: {
- type: Boolean,
- value: true,
- },
- showConfirm: {
- type: Boolean,
- value: true,
- },
- showSubtitle: {
- type: Boolean,
- value: true,
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- closeOnClickOverlay: {
- type: Boolean,
- value: true,
- },
- maxRange: {
- type: null,
- value: null,
- },
- },
- data: {
- subtitle: '',
- currentDate: null,
- scrollIntoView: '',
- },
- created: function () {
- this.setData({
- currentDate: this.getInitialDate(),
- });
- },
- mounted: function () {
- if (this.data.show || !this.data.poppable) {
- this.initRect();
- this.scrollIntoView();
- }
- },
- methods: {
- reset: function () {
- this.setData({ currentDate: this.getInitialDate() });
- this.scrollIntoView();
- },
- initRect: function () {
- var _this = this;
- if (this.contentObserver != null) {
- this.contentObserver.disconnect();
- }
- var contentObserver = this.createIntersectionObserver({
- thresholds: [0, 0.1, 0.9, 1],
- observeAll: true,
- });
- this.contentObserver = contentObserver;
- contentObserver.relativeTo('.van-calendar__body');
- contentObserver.observe('.month', function (res) {
- if (res.boundingClientRect.top <= res.relativeRect.top) {
- // @ts-ignore
- _this.setData({
- subtitle: utils_1.formatMonthTitle(res.dataset.date),
- });
- }
- });
- },
- getInitialDate: function () {
- var _a = this.data,
- type = _a.type,
- defaultDate = _a.defaultDate,
- minDate = _a.minDate;
- if (type === 'range') {
- var _b = defaultDate || [],
- startDay = _b[0],
- endDay = _b[1];
- return [
- startDay || minDate,
- endDay || utils_1.getNextDay(new Date(minDate)).getTime(),
- ];
- }
- if (type === 'multiple') {
- return defaultDate || [minDate];
- }
- return defaultDate || minDate;
- },
- scrollIntoView: function () {
- var _this = this;
- utils_2.requestAnimationFrame(function () {
- var _a = _this.data,
- currentDate = _a.currentDate,
- type = _a.type,
- show = _a.show,
- poppable = _a.poppable,
- minDate = _a.minDate,
- maxDate = _a.maxDate;
- // @ts-ignore
- var targetDate = type === 'single' ? currentDate : currentDate[0];
- var displayed = show || !poppable;
- if (!targetDate || !displayed) {
- return;
- }
- var months = utils_1.getMonths(minDate, maxDate);
- months.some(function (month, index) {
- if (utils_1.compareMonth(month, targetDate) === 0) {
- _this.setData({ scrollIntoView: 'month' + index });
- return true;
- }
- return false;
- });
- });
- },
- onOpen: function () {
- this.$emit('open');
- },
- onOpened: function () {
- this.$emit('opened');
- },
- onClose: function () {
- this.$emit('close');
- },
- onClosed: function () {
- this.$emit('closed');
- },
- onClickDay: function (event) {
- var date = event.detail.date;
- var _a = this.data,
- type = _a.type,
- currentDate = _a.currentDate,
- allowSameDay = _a.allowSameDay;
- if (type === 'range') {
- // @ts-ignore
- var startDay = currentDate[0],
- endDay = currentDate[1];
- if (startDay && !endDay) {
- var compareToStart = utils_1.compareDay(date, startDay);
- if (compareToStart === 1) {
- this.select([startDay, date], true);
- } else if (compareToStart === -1) {
- this.select([date, null]);
- } else if (allowSameDay) {
- this.select([date, date]);
- }
- } else {
- this.select([date, null]);
- }
- } else if (type === 'multiple') {
- var selectedIndex_1;
- // @ts-ignore
- var selected = currentDate.some(function (dateItem, index) {
- var equal = utils_1.compareDay(dateItem, date) === 0;
- if (equal) {
- selectedIndex_1 = index;
- }
- return equal;
- });
- if (selected) {
- // @ts-ignore
- var cancelDate = currentDate.splice(selectedIndex_1, 1);
- this.setData({ currentDate: currentDate });
- this.unselect(cancelDate);
- } else {
- // @ts-ignore
- this.select(__spreadArrays(currentDate, [date]));
- }
- } else {
- this.select(date, true);
- }
- },
- unselect: function (dateArray) {
- var date = dateArray[0];
- if (date) {
- this.$emit('unselect', utils_1.copyDates(date));
- }
- },
- select: function (date, complete) {
- if (complete && this.data.type === 'range') {
- var valid = this.checkRange(date);
- if (!valid) {
- // auto selected to max range if showConfirm
- if (this.data.showConfirm) {
- this.emit([
- date[0],
- utils_1.getDayByOffset(date[0], this.data.maxRange - 1),
- ]);
- } else {
- this.emit(date);
- }
- return;
- }
- }
- this.emit(date);
- if (complete && !this.data.showConfirm) {
- this.onConfirm();
- }
- },
- emit: function (date) {
- var getTime = function (date) {
- return date instanceof Date ? date.getTime() : date;
- };
- this.setData({
- currentDate: Array.isArray(date) ? date.map(getTime) : getTime(date),
- });
- this.$emit('select', utils_1.copyDates(date));
- },
- checkRange: function (date) {
- var _a = this.data,
- maxRange = _a.maxRange,
- rangePrompt = _a.rangePrompt;
- if (maxRange && utils_1.calcDateNum(date) > maxRange) {
- toast_1.default({
- context: this,
- message:
- rangePrompt ||
- '\u9009\u62E9\u5929\u6570\u4E0D\u80FD\u8D85\u8FC7 ' +
- maxRange +
- ' \u5929',
- });
- return false;
- }
- return true;
- },
- onConfirm: function () {
- var _this = this;
- if (
- this.data.type === 'range' &&
- !this.checkRange(this.data.currentDate)
- ) {
- return;
- }
- wx.nextTick(function () {
- // @ts-ignore
- _this.$emit('confirm', utils_1.copyDates(_this.data.currentDate));
- });
- },
- },
-});
+"use strict";
+var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
+ if (ar || !(i in from)) {
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
+ ar[i] = from[i];
+ }
+ }
+ return to.concat(ar || Array.prototype.slice.call(from));
+};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var utils_1 = require("./utils");
+var toast_1 = __importDefault(require("../toast/toast"));
+var utils_2 = require("../common/utils");
+var initialMinDate = (0, utils_1.getToday)().getTime();
+var initialMaxDate = (function () {
+ var now = (0, utils_1.getToday)();
+ return new Date(now.getFullYear(), now.getMonth() + 6, now.getDate()).getTime();
+})();
+var getTime = function (date) {
+ return date instanceof Date ? date.getTime() : date;
+};
+(0, component_1.VantComponent)({
+ props: {
+ title: {
+ type: String,
+ value: '日期选择',
+ },
+ color: String,
+ show: {
+ type: Boolean,
+ observer: function (val) {
+ if (val) {
+ this.initRect();
+ this.scrollIntoView();
+ }
+ },
+ },
+ formatter: null,
+ confirmText: {
+ type: String,
+ value: '确定',
+ },
+ confirmDisabledText: {
+ type: String,
+ value: '确定',
+ },
+ rangePrompt: String,
+ showRangePrompt: {
+ type: Boolean,
+ value: true,
+ },
+ defaultDate: {
+ type: null,
+ value: (0, utils_1.getToday)().getTime(),
+ observer: function (val) {
+ this.setData({ currentDate: val });
+ this.scrollIntoView();
+ },
+ },
+ allowSameDay: Boolean,
+ type: {
+ type: String,
+ value: 'single',
+ observer: 'reset',
+ },
+ minDate: {
+ type: Number,
+ value: initialMinDate,
+ },
+ maxDate: {
+ type: Number,
+ value: initialMaxDate,
+ },
+ position: {
+ type: String,
+ value: 'bottom',
+ },
+ rowHeight: {
+ type: null,
+ value: utils_1.ROW_HEIGHT,
+ },
+ round: {
+ type: Boolean,
+ value: true,
+ },
+ poppable: {
+ type: Boolean,
+ value: true,
+ },
+ showMark: {
+ type: Boolean,
+ value: true,
+ },
+ showTitle: {
+ type: Boolean,
+ value: true,
+ },
+ showConfirm: {
+ type: Boolean,
+ value: true,
+ },
+ showSubtitle: {
+ type: Boolean,
+ value: true,
+ },
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
+ closeOnClickOverlay: {
+ type: Boolean,
+ value: true,
+ },
+ maxRange: {
+ type: null,
+ value: null,
+ },
+ minRange: {
+ type: Number,
+ value: 1,
+ },
+ firstDayOfWeek: {
+ type: Number,
+ value: 0,
+ },
+ readonly: Boolean,
+ },
+ data: {
+ subtitle: '',
+ currentDate: null,
+ scrollIntoView: '',
+ },
+ watch: {
+ minDate: function () {
+ this.initRect();
+ },
+ maxDate: function () {
+ this.initRect();
+ },
+ },
+ created: function () {
+ this.setData({
+ currentDate: this.getInitialDate(this.data.defaultDate),
+ });
+ },
+ mounted: function () {
+ if (this.data.show || !this.data.poppable) {
+ this.initRect();
+ this.scrollIntoView();
+ }
+ },
+ methods: {
+ reset: function () {
+ this.setData({ currentDate: this.getInitialDate(this.data.defaultDate) });
+ this.scrollIntoView();
+ },
+ initRect: function () {
+ var _this = this;
+ if (this.contentObserver != null) {
+ this.contentObserver.disconnect();
+ }
+ var contentObserver = this.createIntersectionObserver({
+ thresholds: [0, 0.1, 0.9, 1],
+ observeAll: true,
+ });
+ this.contentObserver = contentObserver;
+ contentObserver.relativeTo('.van-calendar__body');
+ contentObserver.observe('.month', function (res) {
+ if (res.boundingClientRect.top <= res.relativeRect.top) {
+ // @ts-ignore
+ _this.setData({ subtitle: (0, utils_1.formatMonthTitle)(res.dataset.date) });
+ }
+ });
+ },
+ limitDateRange: function (date, minDate, maxDate) {
+ if (minDate === void 0) { minDate = null; }
+ if (maxDate === void 0) { maxDate = null; }
+ minDate = minDate || this.data.minDate;
+ maxDate = maxDate || this.data.maxDate;
+ if ((0, utils_1.compareDay)(date, minDate) === -1) {
+ return minDate;
+ }
+ if ((0, utils_1.compareDay)(date, maxDate) === 1) {
+ return maxDate;
+ }
+ return date;
+ },
+ getInitialDate: function (defaultDate) {
+ var _this = this;
+ if (defaultDate === void 0) { defaultDate = null; }
+ var _a = this.data, type = _a.type, minDate = _a.minDate, maxDate = _a.maxDate, allowSameDay = _a.allowSameDay;
+ if (!defaultDate)
+ return [];
+ var now = (0, utils_1.getToday)().getTime();
+ if (type === 'range') {
+ if (!Array.isArray(defaultDate)) {
+ defaultDate = [];
+ }
+ var _b = defaultDate || [], startDay = _b[0], endDay = _b[1];
+ var startDate = getTime(startDay || now);
+ var start = this.limitDateRange(startDate, minDate, allowSameDay ? startDate : (0, utils_1.getPrevDay)(new Date(maxDate)).getTime());
+ var date = getTime(endDay || now);
+ var end = this.limitDateRange(date, allowSameDay ? date : (0, utils_1.getNextDay)(new Date(minDate)).getTime());
+ return [start, end];
+ }
+ if (type === 'multiple') {
+ if (Array.isArray(defaultDate)) {
+ return defaultDate.map(function (date) { return _this.limitDateRange(date); });
+ }
+ return [this.limitDateRange(now)];
+ }
+ if (!defaultDate || Array.isArray(defaultDate)) {
+ defaultDate = now;
+ }
+ return this.limitDateRange(defaultDate);
+ },
+ scrollIntoView: function () {
+ var _this = this;
+ (0, utils_2.requestAnimationFrame)(function () {
+ var _a = _this.data, currentDate = _a.currentDate, type = _a.type, show = _a.show, poppable = _a.poppable, minDate = _a.minDate, maxDate = _a.maxDate;
+ if (!currentDate)
+ return;
+ // @ts-ignore
+ var targetDate = type === 'single' ? currentDate : currentDate[0];
+ var displayed = show || !poppable;
+ if (!targetDate || !displayed) {
+ return;
+ }
+ var months = (0, utils_1.getMonths)(minDate, maxDate);
+ months.some(function (month, index) {
+ if ((0, utils_1.compareMonth)(month, targetDate) === 0) {
+ _this.setData({ scrollIntoView: "month".concat(index) });
+ return true;
+ }
+ return false;
+ });
+ });
+ },
+ onOpen: function () {
+ this.$emit('open');
+ },
+ onOpened: function () {
+ this.$emit('opened');
+ },
+ onClose: function () {
+ this.$emit('close');
+ },
+ onClosed: function () {
+ this.$emit('closed');
+ },
+ onClickDay: function (event) {
+ if (this.data.readonly) {
+ return;
+ }
+ var date = event.detail.date;
+ var _a = this.data, type = _a.type, currentDate = _a.currentDate, allowSameDay = _a.allowSameDay;
+ if (type === 'range') {
+ // @ts-ignore
+ var startDay_1 = currentDate[0], endDay = currentDate[1];
+ if (startDay_1 && !endDay) {
+ var compareToStart = (0, utils_1.compareDay)(date, startDay_1);
+ if (compareToStart === 1) {
+ var days_1 = this.selectComponent('.month').data.days;
+ days_1.some(function (day, index) {
+ var isDisabled = day.type === 'disabled' &&
+ getTime(startDay_1) < getTime(day.date) &&
+ getTime(day.date) < getTime(date);
+ if (isDisabled) {
+ (date = days_1[index - 1].date);
+ }
+ return isDisabled;
+ });
+ this.select([startDay_1, date], true);
+ }
+ else if (compareToStart === -1) {
+ this.select([date, null]);
+ }
+ else if (allowSameDay) {
+ this.select([date, date], true);
+ }
+ }
+ else {
+ this.select([date, null]);
+ }
+ }
+ else if (type === 'multiple') {
+ var selectedIndex_1;
+ // @ts-ignore
+ var selected = currentDate.some(function (dateItem, index) {
+ var equal = (0, utils_1.compareDay)(dateItem, date) === 0;
+ if (equal) {
+ selectedIndex_1 = index;
+ }
+ return equal;
+ });
+ if (selected) {
+ // @ts-ignore
+ var cancelDate = currentDate.splice(selectedIndex_1, 1);
+ this.setData({ currentDate: currentDate });
+ this.unselect(cancelDate);
+ }
+ else {
+ // @ts-ignore
+ this.select(__spreadArray(__spreadArray([], currentDate, true), [date], false));
+ }
+ }
+ else {
+ this.select(date, true);
+ }
+ },
+ unselect: function (dateArray) {
+ var date = dateArray[0];
+ if (date) {
+ this.$emit('unselect', (0, utils_1.copyDates)(date));
+ }
+ },
+ select: function (date, complete) {
+ if (complete && this.data.type === 'range') {
+ var valid = this.checkRange(date);
+ if (!valid) {
+ // auto selected to max range if showConfirm
+ if (this.data.showConfirm) {
+ this.emit([
+ date[0],
+ (0, utils_1.getDayByOffset)(date[0], this.data.maxRange - 1),
+ ]);
+ }
+ else {
+ this.emit(date);
+ }
+ return;
+ }
+ }
+ this.emit(date);
+ if (complete && !this.data.showConfirm) {
+ this.onConfirm();
+ }
+ },
+ emit: function (date) {
+ this.setData({
+ currentDate: Array.isArray(date) ? date.map(getTime) : getTime(date),
+ });
+ this.$emit('select', (0, utils_1.copyDates)(date));
+ },
+ checkRange: function (date) {
+ var _a = this.data, maxRange = _a.maxRange, rangePrompt = _a.rangePrompt, showRangePrompt = _a.showRangePrompt;
+ if (maxRange && (0, utils_1.calcDateNum)(date) > maxRange) {
+ if (showRangePrompt) {
+ (0, toast_1.default)({
+ context: this,
+ message: rangePrompt || "\u9009\u62E9\u5929\u6570\u4E0D\u80FD\u8D85\u8FC7 ".concat(maxRange, " \u5929"),
+ });
+ }
+ this.$emit('over-range');
+ return false;
+ }
+ return true;
+ },
+ onConfirm: function () {
+ var _this = this;
+ if (this.data.type === 'range' &&
+ !this.checkRange(this.data.currentDate)) {
+ return;
+ }
+ wx.nextTick(function () {
+ // @ts-ignore
+ _this.$emit('confirm', (0, utils_1.copyDates)(_this.data.currentDate));
+ });
+ },
+ onClickSubtitle: function (event) {
+ this.$emit('click-subtitle', event);
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.json
index fbb2d4e..397d5ae 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.json
@@ -1,10 +1,10 @@
-{
- "component": true,
- "usingComponents": {
- "header": "./components/header/index",
- "month": "./components/month/index",
- "van-button": "../button/index",
- "van-popup": "../popup/index",
- "van-toast": "../toast/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "header": "./components/header/index",
+ "month": "./components/month/index",
+ "van-button": "../button/index",
+ "van-popup": "../popup/index",
+ "van-toast": "../toast/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxml
index 9a194ce..9667eef 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxml
@@ -1,25 +1,26 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxs
index f464713..0a56646 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxs
@@ -1,37 +1,37 @@
-/* eslint-disable */
-var utils = require('./utils.wxs');
-
-function getMonths(minDate, maxDate) {
- var months = [];
- var cursor = getDate(minDate);
-
- cursor.setDate(1);
-
- do {
- months.push(cursor.getTime());
- cursor.setMonth(cursor.getMonth() + 1);
- } while (utils.compareMonth(cursor, getDate(maxDate)) !== 1);
-
- return months;
-}
-
-function getButtonDisabled(type, currentDate) {
- if (currentDate == null) {
- return true;
- }
-
- if (type === 'range') {
- return !currentDate[0] || !currentDate[1];
- }
-
- if (type === 'multiple') {
- return !currentDate.length;
- }
-
- return !currentDate;
-}
-
-module.exports = {
- getMonths: getMonths,
- getButtonDisabled: getButtonDisabled
-};
+/* eslint-disable */
+var utils = require('./utils.wxs');
+
+function getMonths(minDate, maxDate) {
+ var months = [];
+ var cursor = getDate(minDate);
+
+ cursor.setDate(1);
+
+ do {
+ months.push(cursor.getTime());
+ cursor.setMonth(cursor.getMonth() + 1);
+ } while (utils.compareMonth(cursor, getDate(maxDate)) !== 1);
+
+ return months;
+}
+
+function getButtonDisabled(type, currentDate, minRange) {
+ if (currentDate == null) {
+ return true;
+ }
+
+ if (type === 'range') {
+ return !currentDate[0] || !currentDate[1];
+ }
+
+ if (type === 'multiple') {
+ return currentDate.length < minRange;
+ }
+
+ return !currentDate;
+}
+
+module.exports = {
+ getMonths: getMonths,
+ getButtonDisabled: getButtonDisabled
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxss
index 9d78e0f..a1f1cf0 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-calendar{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;height:100%;height:var(--calendar-height,100%);background-color:#fff;background-color:var(--calendar-background-color,#fff)}.van-calendar__close-icon{top:11px}.van-calendar__popup--bottom,.van-calendar__popup--top{height:80%;height:var(--calendar-popup-height,80%)}.van-calendar__popup--left,.van-calendar__popup--right{height:100%}.van-calendar__body{-webkit-flex:1;flex:1;overflow:auto;-webkit-overflow-scrolling:touch}.van-calendar__footer{-webkit-flex-shrink:0;flex-shrink:0;padding:0 16px;padding:0 var(--padding-md,16px)}.van-calendar__footer--safe-area-inset-bottom{padding-bottom:env(safe-area-inset-bottom)}.van-calendar__footer+.van-calendar__footer,.van-calendar__footer:empty{display:none}.van-calendar__footer:empty+.van-calendar__footer{display:block!important}.van-calendar__confirm{height:36px!important;height:var(--calendar-confirm-button-height,36px)!important;margin:7px 0!important;margin:var(--calendar-confirm-button-margin,7px 0)!important;line-height:34px!important;line-height:var(--calendar-confirm-button-line-height,34px)!important}
\ No newline at end of file
+@import '../common/index.wxss';.van-calendar{background-color:var(--calendar-background-color,#fff);display:flex;flex-direction:column;height:var(--calendar-height,100%)}.van-calendar__close-icon{top:11px}.van-calendar__popup--bottom,.van-calendar__popup--top{height:var(--calendar-popup-height,90%)}.van-calendar__popup--left,.van-calendar__popup--right{height:100%}.van-calendar__body{-webkit-overflow-scrolling:touch;flex:1;overflow:auto}.van-calendar__footer{flex-shrink:0;padding:0 var(--padding-md,16px)}.van-calendar__footer--safe-area-inset-bottom{padding-bottom:env(safe-area-inset-bottom)}.van-calendar__footer+.van-calendar__footer,.van-calendar__footer:empty{display:none}.van-calendar__footer:empty+.van-calendar__footer{display:block!important}.van-calendar__confirm{height:var(--calendar-confirm-button-height,36px)!important;line-height:var(--calendar-confirm-button-line-height,34px)!important;margin:var(--calendar-confirm-button-margin,7px 0)!important}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/utils.js b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/utils.js
index 39b9916..c9e5df7 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/utils.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/utils.js
@@ -1,91 +1,97 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.getMonths = exports.getMonthEndDay = exports.copyDates = exports.calcDateNum = exports.getNextDay = exports.getPrevDay = exports.getDayByOffset = exports.compareDay = exports.compareMonth = exports.formatMonthTitle = exports.ROW_HEIGHT = void 0;
-exports.ROW_HEIGHT = 64;
-function formatMonthTitle(date) {
- if (!(date instanceof Date)) {
- date = new Date(date);
- }
- return date.getFullYear() + '\u5E74' + (date.getMonth() + 1) + '\u6708';
-}
-exports.formatMonthTitle = formatMonthTitle;
-function compareMonth(date1, date2) {
- if (!(date1 instanceof Date)) {
- date1 = new Date(date1);
- }
- if (!(date2 instanceof Date)) {
- date2 = new Date(date2);
- }
- var year1 = date1.getFullYear();
- var year2 = date2.getFullYear();
- var month1 = date1.getMonth();
- var month2 = date2.getMonth();
- if (year1 === year2) {
- return month1 === month2 ? 0 : month1 > month2 ? 1 : -1;
- }
- return year1 > year2 ? 1 : -1;
-}
-exports.compareMonth = compareMonth;
-function compareDay(day1, day2) {
- if (!(day1 instanceof Date)) {
- day1 = new Date(day1);
- }
- if (!(day2 instanceof Date)) {
- day2 = new Date(day2);
- }
- var compareMonthResult = compareMonth(day1, day2);
- if (compareMonthResult === 0) {
- var date1 = day1.getDate();
- var date2 = day2.getDate();
- return date1 === date2 ? 0 : date1 > date2 ? 1 : -1;
- }
- return compareMonthResult;
-}
-exports.compareDay = compareDay;
-function getDayByOffset(date, offset) {
- date = new Date(date);
- date.setDate(date.getDate() + offset);
- return date;
-}
-exports.getDayByOffset = getDayByOffset;
-function getPrevDay(date) {
- return getDayByOffset(date, -1);
-}
-exports.getPrevDay = getPrevDay;
-function getNextDay(date) {
- return getDayByOffset(date, 1);
-}
-exports.getNextDay = getNextDay;
-function calcDateNum(date) {
- var day1 = new Date(date[0]).getTime();
- var day2 = new Date(date[1]).getTime();
- return (day2 - day1) / (1000 * 60 * 60 * 24) + 1;
-}
-exports.calcDateNum = calcDateNum;
-function copyDates(dates) {
- if (Array.isArray(dates)) {
- return dates.map(function (date) {
- if (date === null) {
- return date;
- }
- return new Date(date);
- });
- }
- return new Date(dates);
-}
-exports.copyDates = copyDates;
-function getMonthEndDay(year, month) {
- return 32 - new Date(year, month - 1, 32).getDate();
-}
-exports.getMonthEndDay = getMonthEndDay;
-function getMonths(minDate, maxDate) {
- var months = [];
- var cursor = new Date(minDate);
- cursor.setDate(1);
- do {
- months.push(cursor.getTime());
- cursor.setMonth(cursor.getMonth() + 1);
- } while (compareMonth(cursor, maxDate) !== 1);
- return months;
-}
-exports.getMonths = getMonths;
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.getMonths = exports.getMonthEndDay = exports.copyDates = exports.calcDateNum = exports.getToday = exports.getNextDay = exports.getPrevDay = exports.getDayByOffset = exports.compareDay = exports.compareMonth = exports.formatMonthTitle = exports.ROW_HEIGHT = void 0;
+exports.ROW_HEIGHT = 64;
+function formatMonthTitle(date) {
+ if (!(date instanceof Date)) {
+ date = new Date(date);
+ }
+ return "".concat(date.getFullYear(), "\u5E74").concat(date.getMonth() + 1, "\u6708");
+}
+exports.formatMonthTitle = formatMonthTitle;
+function compareMonth(date1, date2) {
+ if (!(date1 instanceof Date)) {
+ date1 = new Date(date1);
+ }
+ if (!(date2 instanceof Date)) {
+ date2 = new Date(date2);
+ }
+ var year1 = date1.getFullYear();
+ var year2 = date2.getFullYear();
+ var month1 = date1.getMonth();
+ var month2 = date2.getMonth();
+ if (year1 === year2) {
+ return month1 === month2 ? 0 : month1 > month2 ? 1 : -1;
+ }
+ return year1 > year2 ? 1 : -1;
+}
+exports.compareMonth = compareMonth;
+function compareDay(day1, day2) {
+ if (!(day1 instanceof Date)) {
+ day1 = new Date(day1);
+ }
+ if (!(day2 instanceof Date)) {
+ day2 = new Date(day2);
+ }
+ var compareMonthResult = compareMonth(day1, day2);
+ if (compareMonthResult === 0) {
+ var date1 = day1.getDate();
+ var date2 = day2.getDate();
+ return date1 === date2 ? 0 : date1 > date2 ? 1 : -1;
+ }
+ return compareMonthResult;
+}
+exports.compareDay = compareDay;
+function getDayByOffset(date, offset) {
+ date = new Date(date);
+ date.setDate(date.getDate() + offset);
+ return date;
+}
+exports.getDayByOffset = getDayByOffset;
+function getPrevDay(date) {
+ return getDayByOffset(date, -1);
+}
+exports.getPrevDay = getPrevDay;
+function getNextDay(date) {
+ return getDayByOffset(date, 1);
+}
+exports.getNextDay = getNextDay;
+function getToday() {
+ var today = new Date();
+ today.setHours(0, 0, 0, 0);
+ return today;
+}
+exports.getToday = getToday;
+function calcDateNum(date) {
+ var day1 = new Date(date[0]).getTime();
+ var day2 = new Date(date[1]).getTime();
+ return (day2 - day1) / (1000 * 60 * 60 * 24) + 1;
+}
+exports.calcDateNum = calcDateNum;
+function copyDates(dates) {
+ if (Array.isArray(dates)) {
+ return dates.map(function (date) {
+ if (date === null) {
+ return date;
+ }
+ return new Date(date);
+ });
+ }
+ return new Date(dates);
+}
+exports.copyDates = copyDates;
+function getMonthEndDay(year, month) {
+ return 32 - new Date(year, month - 1, 32).getDate();
+}
+exports.getMonthEndDay = getMonthEndDay;
+function getMonths(minDate, maxDate) {
+ var months = [];
+ var cursor = new Date(minDate);
+ cursor.setDate(1);
+ do {
+ months.push(cursor.getTime());
+ cursor.setMonth(cursor.getMonth() + 1);
+ } while (compareMonth(cursor, maxDate) !== 1);
+ return months;
+}
+exports.getMonths = getMonths;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/utils.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/utils.wxs
index 2efe4a6..e57f6b3 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/utils.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/utils.wxs
@@ -1,25 +1,25 @@
-/* eslint-disable */
-function getMonthEndDay(year, month) {
- return 32 - getDate(year, month - 1, 32).getDate();
-}
-
-function compareMonth(date1, date2) {
- date1 = getDate(date1);
- date2 = getDate(date2);
-
- var year1 = date1.getFullYear();
- var year2 = date2.getFullYear();
- var month1 = date1.getMonth();
- var month2 = date2.getMonth();
-
- if (year1 === year2) {
- return month1 === month2 ? 0 : month1 > month2 ? 1 : -1;
- }
-
- return year1 > year2 ? 1 : -1;
-}
-
-module.exports = {
- getMonthEndDay: getMonthEndDay,
- compareMonth: compareMonth
-};
+/* eslint-disable */
+function getMonthEndDay(year, month) {
+ return 32 - getDate(year, month - 1, 32).getDate();
+}
+
+function compareMonth(date1, date2) {
+ date1 = getDate(date1);
+ date2 = getDate(date2);
+
+ var year1 = date1.getFullYear();
+ var year2 = date2.getFullYear();
+ var month1 = date1.getMonth();
+ var month2 = date2.getMonth();
+
+ if (year1 === year2) {
+ return month1 === month2 ? 0 : month1 > month2 ? 1 : -1;
+ }
+
+ return year1 > year2 ? 1 : -1;
+}
+
+module.exports = {
+ getMonthEndDay: getMonthEndDay,
+ compareMonth: compareMonth
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/card/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/card/index.js
index fa32fb9..2815655 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/card/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/card/index.js
@@ -1,51 +1,51 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var link_1 = require('../mixins/link');
-var component_1 = require('../common/component');
-component_1.VantComponent({
- classes: [
- 'num-class',
- 'desc-class',
- 'thumb-class',
- 'title-class',
- 'price-class',
- 'origin-price-class',
- ],
- mixins: [link_1.link],
- props: {
- tag: String,
- num: String,
- desc: String,
- thumb: String,
- title: String,
- price: {
- type: String,
- observer: 'updatePrice',
- },
- centered: Boolean,
- lazyLoad: Boolean,
- thumbLink: String,
- originPrice: String,
- thumbMode: {
- type: String,
- value: 'aspectFit',
- },
- currency: {
- type: String,
- value: '¥',
- },
- },
- methods: {
- updatePrice: function () {
- var price = this.data.price;
- var priceArr = price.toString().split('.');
- this.setData({
- integerStr: priceArr[0],
- decimalStr: priceArr[1] ? '.' + priceArr[1] : '',
- });
- },
- onClickThumb: function () {
- this.jumpLink('thumbLink');
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var link_1 = require("../mixins/link");
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ classes: [
+ 'num-class',
+ 'desc-class',
+ 'thumb-class',
+ 'title-class',
+ 'price-class',
+ 'origin-price-class',
+ ],
+ mixins: [link_1.link],
+ props: {
+ tag: String,
+ num: String,
+ desc: String,
+ thumb: String,
+ title: String,
+ price: {
+ type: String,
+ observer: 'updatePrice',
+ },
+ centered: Boolean,
+ lazyLoad: Boolean,
+ thumbLink: String,
+ originPrice: String,
+ thumbMode: {
+ type: String,
+ value: 'aspectFit',
+ },
+ currency: {
+ type: String,
+ value: '¥',
+ },
+ },
+ methods: {
+ updatePrice: function () {
+ var price = this.data.price;
+ var priceArr = price.toString().split('.');
+ this.setData({
+ integerStr: priceArr[0],
+ decimalStr: priceArr[1] ? ".".concat(priceArr[1]) : '',
+ });
+ },
+ onClickThumb: function () {
+ this.jumpLink('thumbLink');
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/card/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/card/index.json
index 2b603f2..e917407 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/card/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/card/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-tag": "../tag/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-tag": "../tag/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/card/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/card/index.wxml
index c00776f..62173e4 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/card/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/card/index.wxml
@@ -1,56 +1,56 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/card/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/card/index.wxss
index a21a599..0f4d7c5 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/card/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/card/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-card{position:relative;box-sizing:border-box;padding:8px 16px;padding:var(--card-padding,8px 16px);font-size:12px;font-size:var(--card-font-size,12px);color:#323233;color:var(--card-text-color,#323233);background-color:#fafafa;background-color:var(--card-background-color,#fafafa)}.van-card__header{display:-webkit-flex;display:flex}.van-card__header--center{-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center}.van-card__thumb{position:relative;-webkit-flex:none;flex:none;width:88px;width:var(--card-thumb-size,88px);height:88px;height:var(--card-thumb-size,88px);margin-right:8px;margin-right:var(--padding-xs,8px)}.van-card__thumb:empty{display:none}.van-card__img{width:100%;height:100%;border-radius:8px;border-radius:var(--border-radius-lg,8px)}.van-card__content{position:relative;display:-webkit-flex;display:flex;-webkit-flex:1;flex:1;-webkit-flex-direction:column;flex-direction:column;-webkit-justify-content:space-between;justify-content:space-between;min-width:0;min-height:88px;min-height:var(--card-thumb-size,88px)}.van-card__content--center{-webkit-justify-content:center;justify-content:center}.van-card__desc,.van-card__title{word-wrap:break-word}.van-card__title{font-weight:700;line-height:16px;line-height:var(--card-title-line-height,16px)}.van-card__desc{line-height:20px;line-height:var(--card-desc-line-height,20px);color:#646566;color:var(--card-desc-color,#646566)}.van-card__bottom{line-height:20px}.van-card__price{display:inline-block;font-weight:700;color:#ee0a24;color:var(--card-price-color,#ee0a24);font-size:12px;font-size:var(--card-price-font-size,12px)}.van-card__price-integer{font-size:16px;font-size:var(--card-price-integer-font-size,16px)}.van-card__price-decimal,.van-card__price-integer{font-family:Avenir-Heavy,PingFang SC,Helvetica Neue,Arial,sans-serif;font-family:var(--card-price-font-family,Avenir-Heavy,PingFang SC,Helvetica Neue,Arial,sans-serif)}.van-card__origin-price{display:inline-block;margin-left:5px;text-decoration:line-through;font-size:10px;font-size:var(--card-origin-price-font-size,10px);color:#646566;color:var(--card-origin-price-color,#646566)}.van-card__num{float:right}.van-card__tag{position:absolute!important;top:2px;left:0}.van-card__footer{-webkit-flex:none;flex:none;width:100%;text-align:right}
\ No newline at end of file
+@import '../common/index.wxss';.van-card{background-color:var(--card-background-color,#fafafa);box-sizing:border-box;color:var(--card-text-color,#323233);font-size:var(--card-font-size,12px);padding:var(--card-padding,8px 16px);position:relative}.van-card__header{display:flex}.van-card__header--center{align-items:center;justify-content:center}.van-card__thumb{flex:none;height:var(--card-thumb-size,88px);margin-right:var(--padding-xs,8px);position:relative;width:var(--card-thumb-size,88px)}.van-card__thumb:empty{display:none}.van-card__img{border-radius:8px;height:100%;width:100%}.van-card__content{display:flex;flex:1;flex-direction:column;justify-content:space-between;min-height:var(--card-thumb-size,88px);min-width:0;position:relative}.van-card__content--center{justify-content:center}.van-card__desc,.van-card__title{word-wrap:break-word}.van-card__title{font-weight:700;line-height:var(--card-title-line-height,16px)}.van-card__desc{color:var(--card-desc-color,#646566);line-height:var(--card-desc-line-height,20px)}.van-card__bottom{line-height:20px}.van-card__price{color:var(--card-price-color,#ee0a24);display:inline-block;font-size:var(--card-price-font-size,12px);font-weight:700}.van-card__price-integer{font-size:var(--card-price-integer-font-size,16px)}.van-card__price-decimal,.van-card__price-integer{font-family:var(--card-price-font-family,Avenir-Heavy,PingFang SC,Helvetica Neue,Arial,sans-serif)}.van-card__origin-price{color:var(--card-origin-price-color,#646566);display:inline-block;font-size:var(--card-origin-price-font-size,10px);margin-left:5px;text-decoration:line-through}.van-card__num{float:right}.van-card__tag{left:0;position:absolute!important;top:2px}.van-card__footer{flex:none;text-align:right;width:100%}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.js
index 45b8ab6..34a93a6 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.js
@@ -1,12 +1,13 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-component_1.VantComponent({
- props: {
- title: String,
- border: {
- type: Boolean,
- value: true,
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ title: String,
+ border: {
+ type: Boolean,
+ value: true,
+ },
+ inset: Boolean,
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.wxml
index 88351a4..311e064 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.wxml
@@ -1,9 +1,11 @@
-
- {{ title }}
-
-
-
-
+
+
+
+ {{ title }}
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.wxss
index edbccd5..08b252f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-cell-group__title{padding:16px 16px 8px;padding:var(--cell-group-title-padding,16px 16px 8px);font-size:14px;font-size:var(--cell-group-title-font-size,14px);line-height:16px;line-height:var(--cell-group-title-line-height,16px);color:#969799;color:var(--cell-group-title-color,#969799)}
\ No newline at end of file
+@import '../common/index.wxss';.van-cell-group--inset{border-radius:var(--cell-group-inset-border-radius,8px);margin:var(--cell-group-inset-padding,0 16px);overflow:hidden}.van-cell-group__title{color:var(--cell-group-title-color,#969799);font-size:var(--cell-group-title-font-size,14px);line-height:var(--cell-group-title-line-height,16px);padding:var(--cell-group-title-padding,16px 16px 8px)}.van-cell-group__title--inset{padding:var(--cell-group-inset-title-padding,16px 16px 8px 32px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.js
index 75691a1..80f3039 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.js
@@ -1,40 +1,40 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var link_1 = require('../mixins/link');
-var component_1 = require('../common/component');
-component_1.VantComponent({
- classes: [
- 'title-class',
- 'label-class',
- 'value-class',
- 'right-icon-class',
- 'hover-class',
- ],
- mixins: [link_1.link],
- props: {
- title: null,
- value: null,
- icon: String,
- size: String,
- label: String,
- center: Boolean,
- isLink: Boolean,
- required: Boolean,
- clickable: Boolean,
- titleWidth: String,
- customStyle: String,
- arrowDirection: String,
- useLabelSlot: Boolean,
- border: {
- type: Boolean,
- value: true,
- },
- titleStyle: String,
- },
- methods: {
- onClick: function (event) {
- this.$emit('click', event.detail);
- this.jumpLink();
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var link_1 = require("../mixins/link");
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ classes: [
+ 'title-class',
+ 'label-class',
+ 'value-class',
+ 'right-icon-class',
+ 'hover-class',
+ ],
+ mixins: [link_1.link],
+ props: {
+ title: null,
+ value: null,
+ icon: String,
+ size: String,
+ label: String,
+ center: Boolean,
+ isLink: Boolean,
+ required: Boolean,
+ clickable: Boolean,
+ titleWidth: String,
+ customStyle: String,
+ arrowDirection: String,
+ useLabelSlot: Boolean,
+ border: {
+ type: Boolean,
+ value: true,
+ },
+ titleStyle: String,
+ },
+ methods: {
+ onClick: function (event) {
+ this.$emit('click', event.detail);
+ this.jumpLink();
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.json
index 8abfe20..0a336c0 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxml
index dac1fbf..8387c3c 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxml
@@ -1,46 +1,47 @@
-
-
-
-
-
-
-
-
- {{ title }}
-
-
-
-
- {{ label }}
-
-
-
-
- {{ value }}
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ {{ title }}
+
+
+
+
+ {{ label }}
+
+
+
+
+ {{ value }}
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxs
index 8bceeae..e3500c4 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxs
@@ -1,17 +1,17 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function titleStyle(data) {
- return style([
- {
- 'max-width': addUnit(data.titleWidth),
- 'min-width': addUnit(data.titleWidth),
- },
- data.titleStyle,
- ]);
-}
-
-module.exports = {
- titleStyle: titleStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function titleStyle(data) {
+ return style([
+ {
+ 'max-width': addUnit(data.titleWidth),
+ 'min-width': addUnit(data.titleWidth),
+ },
+ data.titleStyle,
+ ]);
+}
+
+module.exports = {
+ titleStyle: titleStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxss
index 605570d..1802f8e 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-cell{position:relative;display:-webkit-flex;display:flex;box-sizing:border-box;width:100%;padding:10px 16px;padding:var(--cell-vertical-padding,10px) var(--cell-horizontal-padding,16px);font-size:14px;font-size:var(--cell-font-size,14px);line-height:24px;line-height:var(--cell-line-height,24px);color:#323233;color:var(--cell-text-color,#323233);background-color:#fff;background-color:var(--cell-background-color,#fff)}.van-cell:after{position:absolute;box-sizing:border-box;-webkit-transform-origin:center;transform-origin:center;content:" ";pointer-events:none;right:16px;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-cell--borderless:after{display:none}.van-cell-group{background-color:#fff;background-color:var(--cell-background-color,#fff)}.van-cell__label{margin-top:3px;margin-top:var(--cell-label-margin-top,3px);font-size:12px;font-size:var(--cell-label-font-size,12px);line-height:18px;line-height:var(--cell-label-line-height,18px);color:#969799;color:var(--cell-label-color,#969799)}.van-cell__value{overflow:hidden;text-align:right;vertical-align:middle;color:#969799;color:var(--cell-value-color,#969799)}.van-cell__title,.van-cell__value{-webkit-flex:1;flex:1}.van-cell__title:empty,.van-cell__value:empty{display:none}.van-cell__left-icon-wrap,.van-cell__right-icon-wrap{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;height:24px;height:var(--cell-line-height,24px);font-size:16px;font-size:var(--cell-icon-size,16px)}.van-cell__left-icon-wrap{margin-right:4px;margin-right:var(--padding-base,4px)}.van-cell__right-icon-wrap{margin-left:4px;margin-left:var(--padding-base,4px);color:#969799;color:var(--cell-right-icon-color,#969799)}.van-cell__left-icon{vertical-align:middle}.van-cell__left-icon,.van-cell__right-icon{line-height:24px;line-height:var(--cell-line-height,24px)}.van-cell--clickable.van-cell--hover{background-color:#f2f3f5;background-color:var(--cell-active-color,#f2f3f5)}.van-cell--required{overflow:visible}.van-cell--required:before{position:absolute;content:"*";left:8px;left:var(--padding-xs,8px);font-size:14px;font-size:var(--cell-font-size,14px);color:#ee0a24;color:var(--cell-required-color,#ee0a24)}.van-cell--center{-webkit-align-items:center;align-items:center}.van-cell--large{padding-top:12px;padding-top:var(--cell-large-vertical-padding,12px);padding-bottom:12px;padding-bottom:var(--cell-large-vertical-padding,12px)}.van-cell--large .van-cell__title{font-size:16px;font-size:var(--cell-large-title-font-size,16px)}.van-cell--large .van-cell__value{font-size:16px;font-size:var(--cell-large-value-font-size,16px)}.van-cell--large .van-cell__label{font-size:14px;font-size:var(--cell-large-label-font-size,14px)}
\ No newline at end of file
+@import '../common/index.wxss';.van-cell{background-color:var(--cell-background-color,#fff);box-sizing:border-box;color:var(--cell-text-color,#323233);display:flex;font-size:var(--cell-font-size,14px);line-height:var(--cell-line-height,24px);padding:var(--cell-vertical-padding,10px) var(--cell-horizontal-padding,16px);position:relative;width:100%}.van-cell:after{border-bottom:1px solid #ebedf0;bottom:0;box-sizing:border-box;content:" ";left:16px;pointer-events:none;position:absolute;right:16px;transform:scaleY(.5);transform-origin:center}.van-cell--borderless:after{display:none}.van-cell-group{background-color:var(--cell-background-color,#fff)}.van-cell__label{color:var(--cell-label-color,#969799);font-size:var(--cell-label-font-size,12px);line-height:var(--cell-label-line-height,18px);margin-top:var(--cell-label-margin-top,3px)}.van-cell__value{color:var(--cell-value-color,#969799);overflow:hidden;text-align:right;vertical-align:middle}.van-cell__title,.van-cell__value{flex:1}.van-cell__title:empty,.van-cell__value:empty{display:none}.van-cell__left-icon-wrap,.van-cell__right-icon-wrap{align-items:center;display:flex;font-size:var(--cell-icon-size,16px);height:var(--cell-line-height,24px)}.van-cell__left-icon-wrap{margin-right:var(--padding-base,4px)}.van-cell__right-icon-wrap{color:var(--cell-right-icon-color,#969799);margin-left:var(--padding-base,4px)}.van-cell__left-icon{vertical-align:middle}.van-cell__left-icon,.van-cell__right-icon{line-height:var(--cell-line-height,24px)}.van-cell--clickable.van-cell--hover{background-color:var(--cell-active-color,#f2f3f5)}.van-cell--required{overflow:visible}.van-cell--required:before{color:var(--cell-required-color,#ee0a24);content:"*";font-size:var(--cell-font-size,14px);left:var(--padding-xs,8px);position:absolute}.van-cell--center{align-items:center}.van-cell--large{padding-bottom:var(--cell-large-vertical-padding,12px);padding-top:var(--cell-large-vertical-padding,12px)}.van-cell--large .van-cell__title{font-size:var(--cell-large-title-font-size,16px)}.van-cell--large .van-cell__value{font-size:var(--cell-large-value-font-size,16px)}.van-cell--large .van-cell__label{font-size:var(--cell-large-label-font-size,14px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.js
index 9836f09..80c93a1 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.js
@@ -1,38 +1,39 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var relation_1 = require('../common/relation');
-var component_1 = require('../common/component');
-component_1.VantComponent({
- field: true,
- relation: relation_1.useChildren('checkbox', function (target) {
- this.updateChild(target);
- }),
- props: {
- max: Number,
- value: {
- type: Array,
- observer: 'updateChildren',
- },
- disabled: {
- type: Boolean,
- observer: 'updateChildren',
- },
- },
- methods: {
- updateChildren: function () {
- var _this = this;
- this.children.forEach(function (child) {
- return _this.updateChild(child);
- });
- },
- updateChild: function (child) {
- var _a = this.data,
- value = _a.value,
- disabled = _a.disabled;
- child.setData({
- value: value.indexOf(child.data.name) !== -1,
- parentDisabled: disabled,
- });
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var relation_1 = require("../common/relation");
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ field: true,
+ relation: (0, relation_1.useChildren)('checkbox', function (target) {
+ this.updateChild(target);
+ }),
+ props: {
+ max: Number,
+ value: {
+ type: Array,
+ observer: 'updateChildren',
+ },
+ disabled: {
+ type: Boolean,
+ observer: 'updateChildren',
+ },
+ direction: {
+ type: String,
+ value: 'vertical',
+ },
+ },
+ methods: {
+ updateChildren: function () {
+ var _this = this;
+ this.children.forEach(function (child) { return _this.updateChild(child); });
+ },
+ updateChild: function (child) {
+ var _a = this.data, value = _a.value, disabled = _a.disabled, direction = _a.direction;
+ child.setData({
+ value: value.indexOf(child.data.name) !== -1,
+ parentDisabled: disabled,
+ direction: direction,
+ });
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.wxml
index a8f3249..638bf9d 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.wxml
@@ -1 +1,5 @@
-
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.wxss
index 99694d6..c5666d7 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';
\ No newline at end of file
+@import '../common/index.wxss';.van-checkbox-group--horizontal{display:flex;flex-wrap:wrap}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.js
index 93fc39a..6247365 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.js
@@ -1,83 +1,79 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var relation_1 = require('../common/relation');
-var component_1 = require('../common/component');
-function emit(target, value) {
- target.$emit('input', value);
- target.$emit('change', value);
-}
-component_1.VantComponent({
- field: true,
- relation: relation_1.useParent('checkbox-group'),
- classes: ['icon-class', 'label-class'],
- props: {
- value: Boolean,
- disabled: Boolean,
- useIconSlot: Boolean,
- checkedColor: String,
- labelPosition: {
- type: String,
- value: 'right',
- },
- labelDisabled: Boolean,
- shape: {
- type: String,
- value: 'round',
- },
- iconSize: {
- type: null,
- value: 20,
- },
- },
- data: {
- parentDisabled: false,
- },
- methods: {
- emitChange: function (value) {
- if (this.parent) {
- this.setParentValue(this.parent, value);
- } else {
- emit(this, value);
- }
- },
- toggle: function () {
- var _a = this.data,
- parentDisabled = _a.parentDisabled,
- disabled = _a.disabled,
- value = _a.value;
- if (!disabled && !parentDisabled) {
- this.emitChange(!value);
- }
- },
- onClickLabel: function () {
- var _a = this.data,
- labelDisabled = _a.labelDisabled,
- parentDisabled = _a.parentDisabled,
- disabled = _a.disabled,
- value = _a.value;
- if (!disabled && !labelDisabled && !parentDisabled) {
- this.emitChange(!value);
- }
- },
- setParentValue: function (parent, value) {
- var parentValue = parent.data.value.slice();
- var name = this.data.name;
- var max = parent.data.max;
- if (value) {
- if (max && parentValue.length >= max) {
- return;
- }
- if (parentValue.indexOf(name) === -1) {
- parentValue.push(name);
- emit(parent, parentValue);
- }
- } else {
- var index = parentValue.indexOf(name);
- if (index !== -1) {
- parentValue.splice(index, 1);
- emit(parent, parentValue);
- }
- }
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var relation_1 = require("../common/relation");
+var component_1 = require("../common/component");
+function emit(target, value) {
+ target.$emit('input', value);
+ target.$emit('change', value);
+}
+(0, component_1.VantComponent)({
+ field: true,
+ relation: (0, relation_1.useParent)('checkbox-group'),
+ classes: ['icon-class', 'label-class'],
+ props: {
+ value: Boolean,
+ disabled: Boolean,
+ useIconSlot: Boolean,
+ checkedColor: String,
+ labelPosition: {
+ type: String,
+ value: 'right',
+ },
+ labelDisabled: Boolean,
+ shape: {
+ type: String,
+ value: 'round',
+ },
+ iconSize: {
+ type: null,
+ value: 20,
+ },
+ },
+ data: {
+ parentDisabled: false,
+ direction: 'vertical',
+ },
+ methods: {
+ emitChange: function (value) {
+ if (this.parent) {
+ this.setParentValue(this.parent, value);
+ }
+ else {
+ emit(this, value);
+ }
+ },
+ toggle: function () {
+ var _a = this.data, parentDisabled = _a.parentDisabled, disabled = _a.disabled, value = _a.value;
+ if (!disabled && !parentDisabled) {
+ this.emitChange(!value);
+ }
+ },
+ onClickLabel: function () {
+ var _a = this.data, labelDisabled = _a.labelDisabled, parentDisabled = _a.parentDisabled, disabled = _a.disabled, value = _a.value;
+ if (!disabled && !labelDisabled && !parentDisabled) {
+ this.emitChange(!value);
+ }
+ },
+ setParentValue: function (parent, value) {
+ var parentValue = parent.data.value.slice();
+ var name = this.data.name;
+ var max = parent.data.max;
+ if (value) {
+ if (max && parentValue.length >= max) {
+ return;
+ }
+ if (parentValue.indexOf(name) === -1) {
+ parentValue.push(name);
+ emit(parent, parentValue);
+ }
+ }
+ else {
+ var index = parentValue.indexOf(name);
+ if (index !== -1) {
+ parentValue.splice(index, 1);
+ emit(parent, parentValue);
+ }
+ }
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.json
index 8abfe20..0a336c0 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxml
index 4b3e8d3..39a7bb0 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxml
@@ -1,31 +1,31 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxs
index 6ae3d25..eb9c772 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxs
@@ -1,20 +1,20 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function iconStyle(checkedColor, value, disabled, parentDisabled, iconSize) {
- var styles = {
- 'font-size': addUnit(iconSize),
- };
-
- if (checkedColor && value && !disabled && !parentDisabled) {
- styles['border-color'] = checkedColor;
- styles['background-color'] = checkedColor;
- }
-
- return style(styles);
-}
-
-module.exports = {
- iconStyle: iconStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function iconStyle(checkedColor, value, disabled, parentDisabled, iconSize) {
+ var styles = {
+ 'font-size': addUnit(iconSize),
+ };
+
+ if (checkedColor && value && !disabled && !parentDisabled) {
+ styles['border-color'] = checkedColor;
+ styles['background-color'] = checkedColor;
+ }
+
+ return style(styles);
+}
+
+module.exports = {
+ iconStyle: iconStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxss
index afaf37b..da2272a 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-checkbox{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;overflow:hidden;-webkit-user-select:none;user-select:none}.van-checkbox__icon-wrap,.van-checkbox__label{line-height:20px;line-height:var(--checkbox-size,20px)}.van-checkbox__icon-wrap{-webkit-flex:none;flex:none}.van-checkbox__icon{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;width:1em;height:1em;color:transparent;text-align:center;transition-property:color,border-color,background-color;font-size:20px;font-size:var(--checkbox-size,20px);border:1px solid #c8c9cc;border:1px solid var(--checkbox-border-color,#c8c9cc);transition-duration:.2s;transition-duration:var(--checkbox-transition-duration,.2s)}.van-checkbox__icon--round{border-radius:100%}.van-checkbox__icon--checked{color:#fff;color:var(--white,#fff);background-color:#1989fa;background-color:var(--checkbox-checked-icon-color,#1989fa);border-color:#1989fa;border-color:var(--checkbox-checked-icon-color,#1989fa)}.van-checkbox__icon--disabled{background-color:#ebedf0;background-color:var(--checkbox-disabled-background-color,#ebedf0);border-color:#c8c9cc;border-color:var(--checkbox-disabled-icon-color,#c8c9cc)}.van-checkbox__icon--disabled.van-checkbox__icon--checked{color:#c8c9cc;color:var(--checkbox-disabled-icon-color,#c8c9cc)}.van-checkbox__label{word-wrap:break-word;margin-left:10px;margin-left:var(--checkbox-label-margin,10px);color:#323233;color:var(--checkbox-label-color,#323233)}.van-checkbox__label--left{float:left;margin:0 10px 0 0;margin:0 var(--checkbox-label-margin,10px) 0 0}.van-checkbox__label--disabled{color:#c8c9cc;color:var(--checkbox-disabled-label-color,#c8c9cc)}.van-checkbox__label:empty{margin:0}
\ No newline at end of file
+@import '../common/index.wxss';.van-checkbox{align-items:center;display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-checkbox--horizontal{margin-right:12px}.van-checkbox__icon-wrap,.van-checkbox__label{line-height:var(--checkbox-size,20px)}.van-checkbox__icon-wrap{flex:none}.van-checkbox__icon{align-items:center;border:1px solid var(--checkbox-border-color,#c8c9cc);box-sizing:border-box;color:transparent;display:flex;font-size:var(--checkbox-size,20px);height:1em;justify-content:center;text-align:center;transition-duration:var(--checkbox-transition-duration,.2s);transition-property:color,border-color,background-color;width:1em}.van-checkbox__icon--round{border-radius:100%}.van-checkbox__icon--checked{background-color:var(--checkbox-checked-icon-color,#1989fa);border-color:var(--checkbox-checked-icon-color,#1989fa);color:#fff}.van-checkbox__icon--disabled{background-color:var(--checkbox-disabled-background-color,#ebedf0);border-color:var(--checkbox-disabled-icon-color,#c8c9cc)}.van-checkbox__icon--disabled.van-checkbox__icon--checked{color:var(--checkbox-disabled-icon-color,#c8c9cc)}.van-checkbox__label{word-wrap:break-word;color:var(--checkbox-label-color,#323233);padding-left:var(--checkbox-label-margin,10px)}.van-checkbox__label--left{float:left;margin:0 var(--checkbox-label-margin,10px) 0 0}.van-checkbox__label--disabled{color:var(--checkbox-disabled-label-color,#c8c9cc)}.van-checkbox__label:empty{margin:0}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/circle/canvas.js b/src/openeuler/miniprogram_npm/@vant/weapp/circle/canvas.js
index 932a42a..d81df74 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/circle/canvas.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/circle/canvas.js
@@ -1,47 +1,47 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.adaptor = void 0;
-function adaptor(ctx) {
- // @ts-ignore
- return Object.assign(ctx, {
- setStrokeStyle: function (val) {
- ctx.strokeStyle = val;
- },
- setLineWidth: function (val) {
- ctx.lineWidth = val;
- },
- setLineCap: function (val) {
- ctx.lineCap = val;
- },
- setFillStyle: function (val) {
- ctx.fillStyle = val;
- },
- setFontSize: function (val) {
- ctx.font = String(val);
- },
- setGlobalAlpha: function (val) {
- ctx.globalAlpha = val;
- },
- setLineJoin: function (val) {
- ctx.lineJoin = val;
- },
- setTextAlign: function (val) {
- ctx.textAlign = val;
- },
- setMiterLimit: function (val) {
- ctx.miterLimit = val;
- },
- setShadow: function (offsetX, offsetY, blur, color) {
- ctx.shadowOffsetX = offsetX;
- ctx.shadowOffsetY = offsetY;
- ctx.shadowBlur = blur;
- ctx.shadowColor = color;
- },
- setTextBaseline: function (val) {
- ctx.textBaseline = val;
- },
- createCircularGradient: function () {},
- draw: function () {},
- });
-}
-exports.adaptor = adaptor;
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.adaptor = void 0;
+function adaptor(ctx) {
+ // @ts-ignore
+ return Object.assign(ctx, {
+ setStrokeStyle: function (val) {
+ ctx.strokeStyle = val;
+ },
+ setLineWidth: function (val) {
+ ctx.lineWidth = val;
+ },
+ setLineCap: function (val) {
+ ctx.lineCap = val;
+ },
+ setFillStyle: function (val) {
+ ctx.fillStyle = val;
+ },
+ setFontSize: function (val) {
+ ctx.font = String(val);
+ },
+ setGlobalAlpha: function (val) {
+ ctx.globalAlpha = val;
+ },
+ setLineJoin: function (val) {
+ ctx.lineJoin = val;
+ },
+ setTextAlign: function (val) {
+ ctx.textAlign = val;
+ },
+ setMiterLimit: function (val) {
+ ctx.miterLimit = val;
+ },
+ setShadow: function (offsetX, offsetY, blur, color) {
+ ctx.shadowOffsetX = offsetX;
+ ctx.shadowOffsetY = offsetY;
+ ctx.shadowBlur = blur;
+ ctx.shadowColor = color;
+ },
+ setTextBaseline: function (val) {
+ ctx.textBaseline = val;
+ },
+ createCircularGradient: function () { },
+ draw: function () { },
+ });
+}
+exports.adaptor = adaptor;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.js
index c3313ba..e131e4b 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.js
@@ -1,211 +1,207 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var color_1 = require('../common/color');
-var component_1 = require('../common/component');
-var utils_1 = require('../common/utils');
-var validator_1 = require('../common/validator');
-var version_1 = require('../common/version');
-var canvas_1 = require('./canvas');
-function format(rate) {
- return Math.min(Math.max(rate, 0), 100);
-}
-var PERIMETER = 2 * Math.PI;
-var BEGIN_ANGLE = -Math.PI / 2;
-var STEP = 1;
-component_1.VantComponent({
- props: {
- text: String,
- lineCap: {
- type: String,
- value: 'round',
- },
- value: {
- type: Number,
- value: 0,
- observer: 'reRender',
- },
- speed: {
- type: Number,
- value: 50,
- },
- size: {
- type: Number,
- value: 100,
- observer: function () {
- this.drawCircle(this.currentValue);
- },
- },
- fill: String,
- layerColor: {
- type: String,
- value: color_1.WHITE,
- },
- color: {
- type: null,
- value: color_1.BLUE,
- observer: function () {
- var _this = this;
- this.setHoverColor().then(function () {
- _this.drawCircle(_this.currentValue);
- });
- },
- },
- type: {
- type: String,
- value: '',
- },
- strokeWidth: {
- type: Number,
- value: 4,
- },
- clockwise: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- hoverColor: color_1.BLUE,
- },
- methods: {
- getContext: function () {
- var _this = this;
- var _a = this.data,
- type = _a.type,
- size = _a.size;
- if (type === '' || !version_1.canIUseCanvas2d()) {
- var ctx = wx.createCanvasContext('van-circle', this);
- return Promise.resolve(ctx);
- }
- var dpr = utils_1.getSystemInfoSync().pixelRatio;
- return new Promise(function (resolve) {
- wx.createSelectorQuery()
- .in(_this)
- .select('#van-circle')
- .node()
- .exec(function (res) {
- var canvas = res[0].node;
- var ctx = canvas.getContext(type);
- if (!_this.inited) {
- _this.inited = true;
- canvas.width = size * dpr;
- canvas.height = size * dpr;
- ctx.scale(dpr, dpr);
- }
- resolve(canvas_1.adaptor(ctx));
- });
- });
- },
- setHoverColor: function () {
- var _this = this;
- var _a = this.data,
- color = _a.color,
- size = _a.size;
- if (validator_1.isObj(color)) {
- return this.getContext().then(function (context) {
- var LinearColor = context.createLinearGradient(size, 0, 0, 0);
- Object.keys(color)
- .sort(function (a, b) {
- return parseFloat(a) - parseFloat(b);
- })
- .map(function (key) {
- return LinearColor.addColorStop(
- parseFloat(key) / 100,
- color[key]
- );
- });
- _this.hoverColor = LinearColor;
- });
- }
- this.hoverColor = color;
- return Promise.resolve();
- },
- presetCanvas: function (context, strokeStyle, beginAngle, endAngle, fill) {
- var _a = this.data,
- strokeWidth = _a.strokeWidth,
- lineCap = _a.lineCap,
- clockwise = _a.clockwise,
- size = _a.size;
- var position = size / 2;
- var radius = position - strokeWidth / 2;
- context.setStrokeStyle(strokeStyle);
- context.setLineWidth(strokeWidth);
- context.setLineCap(lineCap);
- context.beginPath();
- context.arc(position, position, radius, beginAngle, endAngle, !clockwise);
- context.stroke();
- if (fill) {
- context.setFillStyle(fill);
- context.fill();
- }
- },
- renderLayerCircle: function (context) {
- var _a = this.data,
- layerColor = _a.layerColor,
- fill = _a.fill;
- this.presetCanvas(context, layerColor, 0, PERIMETER, fill);
- },
- renderHoverCircle: function (context, formatValue) {
- var clockwise = this.data.clockwise;
- // 结束角度
- var progress = PERIMETER * (formatValue / 100);
- var endAngle = clockwise
- ? BEGIN_ANGLE + progress
- : 3 * Math.PI - (BEGIN_ANGLE + progress);
- this.presetCanvas(context, this.hoverColor, BEGIN_ANGLE, endAngle);
- },
- drawCircle: function (currentValue) {
- var _this = this;
- var size = this.data.size;
- this.getContext().then(function (context) {
- context.clearRect(0, 0, size, size);
- _this.renderLayerCircle(context);
- var formatValue = format(currentValue);
- if (formatValue !== 0) {
- _this.renderHoverCircle(context, formatValue);
- }
- context.draw();
- });
- },
- reRender: function () {
- var _this = this;
- // tofector 动画暂时没有想到好的解决方案
- var _a = this.data,
- value = _a.value,
- speed = _a.speed;
- if (speed <= 0 || speed > 1000) {
- this.drawCircle(value);
- return;
- }
- this.clearInterval();
- this.currentValue = this.currentValue || 0;
- this.interval = setInterval(function () {
- if (_this.currentValue !== value) {
- if (_this.currentValue < value) {
- _this.currentValue += STEP;
- } else {
- _this.currentValue -= STEP;
- }
- _this.drawCircle(_this.currentValue);
- } else {
- _this.clearInterval();
- }
- }, 1000 / speed);
- },
- clearInterval: function () {
- if (this.interval) {
- clearInterval(this.interval);
- this.interval = null;
- }
- },
- },
- mounted: function () {
- var _this = this;
- this.currentValue = this.data.value;
- this.setHoverColor().then(function () {
- _this.drawCircle(_this.currentValue);
- });
- },
- destroyed: function () {
- this.clearInterval();
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var color_1 = require("../common/color");
+var component_1 = require("../common/component");
+var utils_1 = require("../common/utils");
+var validator_1 = require("../common/validator");
+var version_1 = require("../common/version");
+var canvas_1 = require("./canvas");
+function format(rate) {
+ return Math.min(Math.max(rate, 0), 100);
+}
+var PERIMETER = 2 * Math.PI;
+var BEGIN_ANGLE = -Math.PI / 2;
+var STEP = 1;
+(0, component_1.VantComponent)({
+ props: {
+ text: String,
+ lineCap: {
+ type: String,
+ value: 'round',
+ },
+ value: {
+ type: Number,
+ value: 0,
+ observer: 'reRender',
+ },
+ speed: {
+ type: Number,
+ value: 50,
+ },
+ size: {
+ type: Number,
+ value: 100,
+ observer: function () {
+ this.drawCircle(this.currentValue);
+ },
+ },
+ fill: String,
+ layerColor: {
+ type: String,
+ value: color_1.WHITE,
+ },
+ color: {
+ type: null,
+ value: color_1.BLUE,
+ observer: function () {
+ var _this = this;
+ this.setHoverColor().then(function () {
+ _this.drawCircle(_this.currentValue);
+ });
+ },
+ },
+ type: {
+ type: String,
+ value: '',
+ },
+ strokeWidth: {
+ type: Number,
+ value: 4,
+ },
+ clockwise: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ data: {
+ hoverColor: color_1.BLUE,
+ },
+ methods: {
+ getContext: function () {
+ var _this = this;
+ var _a = this.data, type = _a.type, size = _a.size;
+ if (type === '' || !(0, version_1.canIUseCanvas2d)()) {
+ var ctx = wx.createCanvasContext('van-circle', this);
+ return Promise.resolve(ctx);
+ }
+ var dpr = (0, utils_1.getSystemInfoSync)().pixelRatio;
+ return new Promise(function (resolve) {
+ wx.createSelectorQuery()
+ .in(_this)
+ .select('#van-circle')
+ .node()
+ .exec(function (res) {
+ var canvas = res[0].node;
+ var ctx = canvas.getContext(type);
+ if (!_this.inited) {
+ _this.inited = true;
+ canvas.width = size * dpr;
+ canvas.height = size * dpr;
+ ctx.scale(dpr, dpr);
+ }
+ resolve((0, canvas_1.adaptor)(ctx));
+ });
+ });
+ },
+ setHoverColor: function () {
+ var _this = this;
+ var _a = this.data, color = _a.color, size = _a.size;
+ if ((0, validator_1.isObj)(color)) {
+ return this.getContext().then(function (context) {
+ if (!context)
+ return;
+ var LinearColor = context.createLinearGradient(size, 0, 0, 0);
+ Object.keys(color)
+ .sort(function (a, b) { return parseFloat(a) - parseFloat(b); })
+ .map(function (key) {
+ return LinearColor.addColorStop(parseFloat(key) / 100, color[key]);
+ });
+ _this.hoverColor = LinearColor;
+ });
+ }
+ this.hoverColor = color;
+ return Promise.resolve();
+ },
+ presetCanvas: function (context, strokeStyle, beginAngle, endAngle, fill) {
+ var _a = this.data, strokeWidth = _a.strokeWidth, lineCap = _a.lineCap, clockwise = _a.clockwise, size = _a.size;
+ var position = size / 2;
+ var radius = position - strokeWidth / 2;
+ context.setStrokeStyle(strokeStyle);
+ context.setLineWidth(strokeWidth);
+ context.setLineCap(lineCap);
+ context.beginPath();
+ context.arc(position, position, radius, beginAngle, endAngle, !clockwise);
+ context.stroke();
+ if (fill) {
+ context.setFillStyle(fill);
+ context.fill();
+ }
+ },
+ renderLayerCircle: function (context) {
+ var _a = this.data, layerColor = _a.layerColor, fill = _a.fill;
+ this.presetCanvas(context, layerColor, 0, PERIMETER, fill);
+ },
+ renderHoverCircle: function (context, formatValue) {
+ var clockwise = this.data.clockwise;
+ // 结束角度
+ var progress = PERIMETER * (formatValue / 100);
+ var endAngle = clockwise
+ ? BEGIN_ANGLE + progress
+ : 3 * Math.PI - (BEGIN_ANGLE + progress);
+ this.presetCanvas(context, this.hoverColor, BEGIN_ANGLE, endAngle);
+ },
+ drawCircle: function (currentValue) {
+ var _this = this;
+ var size = this.data.size;
+ this.getContext().then(function (context) {
+ if (!context)
+ return;
+ context.clearRect(0, 0, size, size);
+ _this.renderLayerCircle(context);
+ var formatValue = format(currentValue);
+ if (formatValue !== 0) {
+ _this.renderHoverCircle(context, formatValue);
+ }
+ context.draw();
+ });
+ },
+ reRender: function () {
+ var _this = this;
+ // tofector 动画暂时没有想到好的解决方案
+ var _a = this.data, value = _a.value, speed = _a.speed;
+ if (speed <= 0 || speed > 1000) {
+ this.drawCircle(value);
+ return;
+ }
+ this.clearMockInterval();
+ this.currentValue = this.currentValue || 0;
+ var run = function () {
+ _this.interval = setTimeout(function () {
+ if (_this.currentValue !== value) {
+ if (Math.abs(_this.currentValue - value) < STEP) {
+ _this.currentValue = value;
+ }
+ else if (_this.currentValue < value) {
+ _this.currentValue += STEP;
+ }
+ else {
+ _this.currentValue -= STEP;
+ }
+ _this.drawCircle(_this.currentValue);
+ run();
+ }
+ else {
+ _this.clearMockInterval();
+ }
+ }, 1000 / speed);
+ };
+ run();
+ },
+ clearMockInterval: function () {
+ if (this.interval) {
+ clearTimeout(this.interval);
+ this.interval = null;
+ }
+ },
+ },
+ mounted: function () {
+ var _this = this;
+ this.currentValue = this.data.value;
+ this.setHoverColor().then(function () {
+ _this.drawCircle(_this.currentValue);
+ });
+ },
+ destroyed: function () {
+ this.clearMockInterval();
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.wxml
index 010ae1a..52bc59f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.wxml
@@ -1,9 +1,9 @@
-
-
-
-
-
-
-
- {{ text }}
-
+
+
+
+
+
+
+
+ {{ text }}
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.wxss
index 3ab63df..2200751 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-circle{position:relative;display:inline-block;text-align:center}.van-circle__text{position:absolute;top:50%;left:0;width:100%;-webkit-transform:translateY(-50%);transform:translateY(-50%);color:#323233;color:var(--circle-text-color,#323233)}
\ No newline at end of file
+@import '../common/index.wxss';.van-circle{display:inline-block;position:relative;text-align:center}.van-circle__text{color:var(--circle-text-color,#323233);left:0;position:absolute;top:50%;transform:translateY(-50%);width:100%}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/col/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/col/index.js
index 47d89c7..63c56eb 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/col/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/col/index.js
@@ -1,11 +1,11 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var relation_1 = require('../common/relation');
-var component_1 = require('../common/component');
-component_1.VantComponent({
- relation: relation_1.useParent('row'),
- props: {
- span: Number,
- offset: Number,
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var relation_1 = require("../common/relation");
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useParent)('row'),
+ props: {
+ span: Number,
+ offset: Number,
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/col/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/col/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/col/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/col/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxml
index aa603b9..975348b 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxml
@@ -1,9 +1,9 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxs
index 2e65493..507c1cb 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxs
@@ -1,18 +1,18 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
- if (!data.gutter) {
- return '';
- }
-
- return style({
- 'padding-right': addUnit(data.gutter / 2),
- 'padding-left': addUnit(data.gutter / 2),
- });
-}
-
-module.exports = {
- rootStyle: rootStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function rootStyle(data) {
+ if (!data.gutter) {
+ return '';
+ }
+
+ return style({
+ 'padding-right': addUnit(data.gutter / 2),
+ 'padding-left': addUnit(data.gutter / 2),
+ });
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxss
index 44c896a..2fa265e 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-col{float:left;box-sizing:border-box}.van-col--1{width:4.16666667%}.van-col--offset-1{margin-left:4.16666667%}.van-col--2{width:8.33333333%}.van-col--offset-2{margin-left:8.33333333%}.van-col--3{width:12.5%}.van-col--offset-3{margin-left:12.5%}.van-col--4{width:16.66666667%}.van-col--offset-4{margin-left:16.66666667%}.van-col--5{width:20.83333333%}.van-col--offset-5{margin-left:20.83333333%}.van-col--6{width:25%}.van-col--offset-6{margin-left:25%}.van-col--7{width:29.16666667%}.van-col--offset-7{margin-left:29.16666667%}.van-col--8{width:33.33333333%}.van-col--offset-8{margin-left:33.33333333%}.van-col--9{width:37.5%}.van-col--offset-9{margin-left:37.5%}.van-col--10{width:41.66666667%}.van-col--offset-10{margin-left:41.66666667%}.van-col--11{width:45.83333333%}.van-col--offset-11{margin-left:45.83333333%}.van-col--12{width:50%}.van-col--offset-12{margin-left:50%}.van-col--13{width:54.16666667%}.van-col--offset-13{margin-left:54.16666667%}.van-col--14{width:58.33333333%}.van-col--offset-14{margin-left:58.33333333%}.van-col--15{width:62.5%}.van-col--offset-15{margin-left:62.5%}.van-col--16{width:66.66666667%}.van-col--offset-16{margin-left:66.66666667%}.van-col--17{width:70.83333333%}.van-col--offset-17{margin-left:70.83333333%}.van-col--18{width:75%}.van-col--offset-18{margin-left:75%}.van-col--19{width:79.16666667%}.van-col--offset-19{margin-left:79.16666667%}.van-col--20{width:83.33333333%}.van-col--offset-20{margin-left:83.33333333%}.van-col--21{width:87.5%}.van-col--offset-21{margin-left:87.5%}.van-col--22{width:91.66666667%}.van-col--offset-22{margin-left:91.66666667%}.van-col--23{width:95.83333333%}.van-col--offset-23{margin-left:95.83333333%}.van-col--24{width:100%}.van-col--offset-24{margin-left:100%}
\ No newline at end of file
+@import '../common/index.wxss';.van-col{box-sizing:border-box;float:left}.van-col--1{width:4.16666667%}.van-col--offset-1{margin-left:4.16666667%}.van-col--2{width:8.33333333%}.van-col--offset-2{margin-left:8.33333333%}.van-col--3{width:12.5%}.van-col--offset-3{margin-left:12.5%}.van-col--4{width:16.66666667%}.van-col--offset-4{margin-left:16.66666667%}.van-col--5{width:20.83333333%}.van-col--offset-5{margin-left:20.83333333%}.van-col--6{width:25%}.van-col--offset-6{margin-left:25%}.van-col--7{width:29.16666667%}.van-col--offset-7{margin-left:29.16666667%}.van-col--8{width:33.33333333%}.van-col--offset-8{margin-left:33.33333333%}.van-col--9{width:37.5%}.van-col--offset-9{margin-left:37.5%}.van-col--10{width:41.66666667%}.van-col--offset-10{margin-left:41.66666667%}.van-col--11{width:45.83333333%}.van-col--offset-11{margin-left:45.83333333%}.van-col--12{width:50%}.van-col--offset-12{margin-left:50%}.van-col--13{width:54.16666667%}.van-col--offset-13{margin-left:54.16666667%}.van-col--14{width:58.33333333%}.van-col--offset-14{margin-left:58.33333333%}.van-col--15{width:62.5%}.van-col--offset-15{margin-left:62.5%}.van-col--16{width:66.66666667%}.van-col--offset-16{margin-left:66.66666667%}.van-col--17{width:70.83333333%}.van-col--offset-17{margin-left:70.83333333%}.van-col--18{width:75%}.van-col--offset-18{margin-left:75%}.van-col--19{width:79.16666667%}.van-col--offset-19{margin-left:79.16666667%}.van-col--20{width:83.33333333%}.van-col--offset-20{margin-left:83.33333333%}.van-col--21{width:87.5%}.van-col--offset-21{margin-left:87.5%}.van-col--22{width:91.66666667%}.van-col--offset-22{margin-left:91.66666667%}.van-col--23{width:95.83333333%}.van-col--offset-23{margin-left:95.83333333%}.van-col--24{width:100%}.van-col--offset-24{margin-left:100%}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/animate.js b/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/animate.js
index 255025c..5734087 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/animate.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/animate.js
@@ -1,77 +1,43 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.setContentAnimate = void 0;
-var version_1 = require('../common/version');
-var utils_1 = require('../common/utils');
-function useAnimate(context, expanded, mounted, height) {
- var selector = '.van-collapse-item__wrapper';
- if (expanded) {
- context.animate(
- selector,
- [
- { height: 0, ease: 'ease-in-out', offset: 0 },
- { height: height + 'px', ease: 'ease-in-out', offset: 1 },
- { height: 'auto', ease: 'ease-in-out', offset: 1 },
- ],
- mounted ? 300 : 0,
- function () {
- context.clearAnimation(selector);
- }
- );
- return;
- }
- context.animate(
- selector,
- [
- { height: height + 'px', ease: 'ease-in-out', offset: 0 },
- { height: 0, ease: 'ease-in-out', offset: 1 },
- ],
- 300,
- function () {
- context.clearAnimation(selector);
- }
- );
-}
-function useAnimation(context, expanded, mounted, height) {
- var animation = wx.createAnimation({
- duration: 0,
- timingFunction: 'ease-in-out',
- });
- if (expanded) {
- if (height === 0) {
- animation.height('auto').top(1).step();
- } else {
- animation
- .height(height)
- .top(1)
- .step({
- duration: mounted ? 300 : 1,
- })
- .height('auto')
- .step();
- }
- context.setData({
- animation: animation.export(),
- });
- return;
- }
- animation.height(height).top(0).step({ duration: 1 }).height(0).step({
- duration: 300,
- });
- context.setData({
- animation: animation.export(),
- });
-}
-function setContentAnimate(context, expanded, mounted) {
- utils_1
- .getRect(context, '.van-collapse-item__content')
- .then(function (rect) {
- return rect.height;
- })
- .then(function (height) {
- version_1.canIUseAnimate()
- ? useAnimate(context, expanded, mounted, height)
- : useAnimation(context, expanded, mounted, height);
- });
-}
-exports.setContentAnimate = setContentAnimate;
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.setContentAnimate = void 0;
+var utils_1 = require("../common/utils");
+function useAnimation(context, expanded, mounted, height) {
+ var animation = wx.createAnimation({
+ duration: 0,
+ timingFunction: 'ease-in-out',
+ });
+ if (expanded) {
+ if (height === 0) {
+ animation.height('auto').top(1).step();
+ }
+ else {
+ animation
+ .height(height)
+ .top(1)
+ .step({
+ duration: mounted ? 300 : 1,
+ })
+ .height('auto')
+ .step();
+ }
+ context.setData({
+ animation: animation.export(),
+ });
+ return;
+ }
+ animation.height(height).top(0).step({ duration: 1 }).height(0).step({
+ duration: 300,
+ });
+ context.setData({
+ animation: animation.export(),
+ });
+}
+function setContentAnimate(context, expanded, mounted) {
+ (0, utils_1.getRect)(context, '.van-collapse-item__content')
+ .then(function (rect) { return rect.height; })
+ .then(function (height) {
+ useAnimation(context, expanded, mounted, height);
+ });
+}
+exports.setContentAnimate = setContentAnimate;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.js
index 288ab82..982490e 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.js
@@ -1,68 +1,62 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-var animate_1 = require('./animate');
-component_1.VantComponent({
- classes: ['title-class', 'content-class'],
- relation: relation_1.useParent('collapse'),
- props: {
- name: null,
- title: null,
- value: null,
- icon: String,
- label: String,
- disabled: Boolean,
- clickable: Boolean,
- border: {
- type: Boolean,
- value: true,
- },
- isLink: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- expanded: false,
- },
- mounted: function () {
- this.updateExpanded();
- this.mounted = true;
- },
- methods: {
- updateExpanded: function () {
- if (!this.parent) {
- return;
- }
- var _a = this.parent.data,
- value = _a.value,
- accordion = _a.accordion;
- var _b = this.parent.children,
- children = _b === void 0 ? [] : _b;
- var name = this.data.name;
- var index = children.indexOf(this);
- var currentName = name == null ? index : name;
- var expanded = accordion
- ? value === currentName
- : (value || []).some(function (name) {
- return name === currentName;
- });
- if (expanded !== this.data.expanded) {
- animate_1.setContentAnimate(this, expanded, this.mounted);
- }
- this.setData({ index: index, expanded: expanded });
- },
- onClick: function () {
- if (this.data.disabled) {
- return;
- }
- var _a = this.data,
- name = _a.name,
- expanded = _a.expanded;
- var index = this.parent.children.indexOf(this);
- var currentName = name == null ? index : name;
- this.parent.switch(currentName, !expanded);
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+var animate_1 = require("./animate");
+(0, component_1.VantComponent)({
+ classes: ['title-class', 'content-class'],
+ relation: (0, relation_1.useParent)('collapse'),
+ props: {
+ size: String,
+ name: null,
+ title: null,
+ value: null,
+ icon: String,
+ label: String,
+ disabled: Boolean,
+ clickable: Boolean,
+ border: {
+ type: Boolean,
+ value: true,
+ },
+ isLink: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ data: {
+ expanded: false,
+ },
+ mounted: function () {
+ this.updateExpanded();
+ this.mounted = true;
+ },
+ methods: {
+ updateExpanded: function () {
+ if (!this.parent) {
+ return;
+ }
+ var _a = this.parent.data, value = _a.value, accordion = _a.accordion;
+ var _b = this.parent.children, children = _b === void 0 ? [] : _b;
+ var name = this.data.name;
+ var index = children.indexOf(this);
+ var currentName = name == null ? index : name;
+ var expanded = accordion
+ ? value === currentName
+ : (value || []).some(function (name) { return name === currentName; });
+ if (expanded !== this.data.expanded) {
+ (0, animate_1.setContentAnimate)(this, expanded, this.mounted);
+ }
+ this.setData({ index: index, expanded: expanded });
+ },
+ onClick: function () {
+ if (this.data.disabled) {
+ return;
+ }
+ var _a = this.data, name = _a.name, expanded = _a.expanded;
+ var index = this.parent.children.indexOf(this);
+ var currentName = name == null ? index : name;
+ this.parent.switch(currentName, !expanded);
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.json
index 7069216..0e5425c 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-cell": "../cell/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-cell": "../cell/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.wxml
index 94705ff..f11d0d4 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.wxml
@@ -1,44 +1,45 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.wxss
index 0bb936c..4a65b5a 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-collapse-item__title .van-cell__right-icon{-webkit-transform:rotate(90deg);transform:rotate(90deg);transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;transition:-webkit-transform var(--collapse-item-transition-duration,.3s);transition:transform var(--collapse-item-transition-duration,.3s);transition:transform var(--collapse-item-transition-duration,.3s),-webkit-transform var(--collapse-item-transition-duration,.3s)}.van-collapse-item__title--expanded .van-cell__right-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.van-collapse-item__title--disabled .van-cell,.van-collapse-item__title--disabled .van-cell__right-icon{color:#c8c9cc!important;color:var(--collapse-item-title-disabled-color,#c8c9cc)!important}.van-collapse-item__title--disabled .van-cell--hover{background-color:#fff!important;background-color:var(--white,#fff)!important}.van-collapse-item__wrapper{overflow:hidden}.van-collapse-item__content{padding:15px;padding:var(--collapse-item-content-padding,15px);color:#969799;color:var(--collapse-item-content-text-color,#969799);font-size:13px;font-size:var(--collapse-item-content-font-size,13px);line-height:1.5;line-height:var(--collapse-item-content-line-height,1.5);background-color:#fff;background-color:var(--collapse-item-content-background-color,#fff)}
\ No newline at end of file
+@import '../common/index.wxss';.van-collapse-item__title .van-cell__right-icon{transform:rotate(90deg);transition:transform var(--collapse-item-transition-duration,.3s)}.van-collapse-item__title--expanded .van-cell__right-icon{transform:rotate(-90deg)}.van-collapse-item__title--disabled .van-cell,.van-collapse-item__title--disabled .van-cell__right-icon{color:var(--collapse-item-title-disabled-color,#c8c9cc)!important}.van-collapse-item__title--disabled .van-cell--hover{background-color:#fff!important}.van-collapse-item__wrapper{overflow:hidden}.van-collapse-item__content{background-color:var(--collapse-item-content-background-color,#fff);color:var(--collapse-item-content-text-color,#969799);font-size:var(--collapse-item-content-font-size,13px);line-height:var(--collapse-item-content-line-height,1.5);padding:var(--collapse-item-content-padding,15px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.js
index 3d90fb3..943d542 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.js
@@ -1,50 +1,48 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-component_1.VantComponent({
- relation: relation_1.useChildren('collapse-item'),
- props: {
- value: {
- type: null,
- observer: 'updateExpanded',
- },
- accordion: {
- type: Boolean,
- observer: 'updateExpanded',
- },
- border: {
- type: Boolean,
- value: true,
- },
- },
- methods: {
- updateExpanded: function () {
- this.children.forEach(function (child) {
- child.updateExpanded();
- });
- },
- switch: function (name, expanded) {
- var _a = this.data,
- accordion = _a.accordion,
- value = _a.value;
- var changeItem = name;
- if (!accordion) {
- name = expanded
- ? (value || []).concat(name)
- : (value || []).filter(function (activeName) {
- return activeName !== name;
- });
- } else {
- name = expanded ? name : '';
- }
- if (expanded) {
- this.$emit('open', changeItem);
- } else {
- this.$emit('close', changeItem);
- }
- this.$emit('change', name);
- this.$emit('input', name);
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useChildren)('collapse-item'),
+ props: {
+ value: {
+ type: null,
+ observer: 'updateExpanded',
+ },
+ accordion: {
+ type: Boolean,
+ observer: 'updateExpanded',
+ },
+ border: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ methods: {
+ updateExpanded: function () {
+ this.children.forEach(function (child) {
+ child.updateExpanded();
+ });
+ },
+ switch: function (name, expanded) {
+ var _a = this.data, accordion = _a.accordion, value = _a.value;
+ var changeItem = name;
+ if (!accordion) {
+ name = expanded
+ ? (value || []).concat(name)
+ : (value || []).filter(function (activeName) { return activeName !== name; });
+ }
+ else {
+ name = expanded ? name : '';
+ }
+ if (expanded) {
+ this.$emit('open', changeItem);
+ }
+ else {
+ this.$emit('close', changeItem);
+ }
+ this.$emit('change', name);
+ this.$emit('input', name);
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.wxml
index f689405..fd4e171 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.wxml
@@ -1,3 +1,3 @@
-
-
-
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/color.js b/src/openeuler/miniprogram_npm/@vant/weapp/common/color.js
index 11be12a..008a45a 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/common/color.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/common/color.js
@@ -1,10 +1,10 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.GRAY_DARK = exports.GRAY = exports.ORANGE = exports.GREEN = exports.WHITE = exports.BLUE = exports.RED = void 0;
-exports.RED = '#ee0a24';
-exports.BLUE = '#1989fa';
-exports.WHITE = '#fff';
-exports.GREEN = '#07c160';
-exports.ORANGE = '#ff976a';
-exports.GRAY = '#323233';
-exports.GRAY_DARK = '#969799';
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.GRAY_DARK = exports.GRAY = exports.ORANGE = exports.GREEN = exports.WHITE = exports.BLUE = exports.RED = void 0;
+exports.RED = '#ee0a24';
+exports.BLUE = '#1989fa';
+exports.WHITE = '#fff';
+exports.GREEN = '#07c160';
+exports.ORANGE = '#ff976a';
+exports.GRAY = '#323233';
+exports.GRAY_DARK = '#969799';
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/component.js b/src/openeuler/miniprogram_npm/@vant/weapp/common/component.js
index 6401bad..66da00e 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/common/component.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/common/component.js
@@ -1,48 +1,49 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.VantComponent = void 0;
-var basic_1 = require('../mixins/basic');
-function mapKeys(source, target, map) {
- Object.keys(map).forEach(function (key) {
- if (source[key]) {
- target[map[key]] = source[key];
- }
- });
-}
-function VantComponent(vantOptions) {
- var options = {};
- mapKeys(vantOptions, options, {
- data: 'data',
- props: 'properties',
- mixins: 'behaviors',
- methods: 'methods',
- beforeCreate: 'created',
- created: 'attached',
- mounted: 'ready',
- destroyed: 'detached',
- classes: 'externalClasses',
- });
- // add default externalClasses
- options.externalClasses = options.externalClasses || [];
- options.externalClasses.push('custom-class');
- // add default behaviors
- options.behaviors = options.behaviors || [];
- options.behaviors.push(basic_1.basic);
- // add relations
- var relation = vantOptions.relation;
- if (relation) {
- options.relations = relation.relations;
- options.behaviors.push(relation.mixin);
- }
- // map field to form-field behavior
- if (vantOptions.field) {
- options.behaviors.push('wx://form-field');
- }
- // add default options
- options.options = {
- multipleSlots: true,
- addGlobalClass: true,
- };
- Component(options);
-}
-exports.VantComponent = VantComponent;
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.VantComponent = void 0;
+var basic_1 = require("../mixins/basic");
+function mapKeys(source, target, map) {
+ Object.keys(map).forEach(function (key) {
+ if (source[key]) {
+ target[map[key]] = source[key];
+ }
+ });
+}
+function VantComponent(vantOptions) {
+ var options = {};
+ mapKeys(vantOptions, options, {
+ data: 'data',
+ props: 'properties',
+ watch: 'observers',
+ mixins: 'behaviors',
+ methods: 'methods',
+ beforeCreate: 'created',
+ created: 'attached',
+ mounted: 'ready',
+ destroyed: 'detached',
+ classes: 'externalClasses',
+ });
+ // add default externalClasses
+ options.externalClasses = options.externalClasses || [];
+ options.externalClasses.push('custom-class');
+ // add default behaviors
+ options.behaviors = options.behaviors || [];
+ options.behaviors.push(basic_1.basic);
+ // add relations
+ var relation = vantOptions.relation;
+ if (relation) {
+ options.relations = relation.relations;
+ options.behaviors.push(relation.mixin);
+ }
+ // map field to form-field behavior
+ if (vantOptions.field) {
+ options.behaviors.push('wx://form-field');
+ }
+ // add default options
+ options.options = {
+ multipleSlots: true,
+ addGlobalClass: true,
+ };
+ Component(options);
+}
+exports.VantComponent = VantComponent;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/common/index.wxss
index 976825d..a73bb7a 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/common/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/common/index.wxss
@@ -1 +1 @@
-.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{-webkit-line-clamp:2}.van-multi-ellipsis--l2,.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{-webkit-line-clamp:3}.van-clearfix:after{display:table;clear:both;content:""}.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after{position:absolute;box-sizing:border-box;-webkit-transform-origin:center;transform-origin:center;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid #ebedf0;-webkit-transform:scale(.5);transform:scale(.5)}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
\ No newline at end of file
+.van-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-multi-ellipsis--l2{-webkit-line-clamp:2}.van-multi-ellipsis--l2,.van-multi-ellipsis--l3{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.van-multi-ellipsis--l3{-webkit-line-clamp:3}.van-clearfix:after{clear:both;content:"";display:table}.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after{border:0 solid #ebedf0;bottom:-50%;box-sizing:border-box;content:" ";left:-50%;pointer-events:none;position:absolute;right:-50%;top:-50%;transform:scale(.5);transform-origin:center}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/relation.js b/src/openeuler/miniprogram_npm/@vant/weapp/common/relation.js
index a7372bc..008256c 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/common/relation.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/common/relation.js
@@ -1,79 +1,65 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.useChildren = exports.useParent = void 0;
-function useParent(name, onEffect) {
- var _a;
- var path = '../' + name + '/index';
- return {
- relations:
- ((_a = {}),
- (_a[path] = {
- type: 'ancestor',
- linked: function () {
- onEffect && onEffect.call(this);
- },
- linkChanged: function () {
- onEffect && onEffect.call(this);
- },
- unlinked: function () {
- onEffect && onEffect.call(this);
- },
- }),
- _a),
- mixin: Behavior({
- created: function () {
- var _this = this;
- Object.defineProperty(this, 'parent', {
- get: function () {
- return _this.getRelationNodes(path)[0];
- },
- });
- Object.defineProperty(this, 'index', {
- // @ts-ignore
- get: function () {
- var _a, _b;
- return (_b =
- (_a = _this.parent) === null || _a === void 0
- ? void 0
- : _a.children) === null || _b === void 0
- ? void 0
- : _b.indexOf(_this);
- },
- });
- },
- }),
- };
-}
-exports.useParent = useParent;
-function useChildren(name, onEffect) {
- var _a;
- var path = '../' + name + '/index';
- return {
- relations:
- ((_a = {}),
- (_a[path] = {
- type: 'descendant',
- linked: function (target) {
- onEffect && onEffect.call(this, target);
- },
- linkChanged: function (target) {
- onEffect && onEffect.call(this, target);
- },
- unlinked: function (target) {
- onEffect && onEffect.call(this, target);
- },
- }),
- _a),
- mixin: Behavior({
- created: function () {
- var _this = this;
- Object.defineProperty(this, 'children', {
- get: function () {
- return _this.getRelationNodes(path) || [];
- },
- });
- },
- }),
- };
-}
-exports.useChildren = useChildren;
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.useChildren = exports.useParent = void 0;
+function useParent(name, onEffect) {
+ var _a;
+ var path = "../".concat(name, "/index");
+ return {
+ relations: (_a = {},
+ _a[path] = {
+ type: 'ancestor',
+ linked: function () {
+ onEffect && onEffect.call(this);
+ },
+ linkChanged: function () {
+ onEffect && onEffect.call(this);
+ },
+ unlinked: function () {
+ onEffect && onEffect.call(this);
+ },
+ },
+ _a),
+ mixin: Behavior({
+ created: function () {
+ var _this = this;
+ Object.defineProperty(this, 'parent', {
+ get: function () { return _this.getRelationNodes(path)[0]; },
+ });
+ Object.defineProperty(this, 'index', {
+ // @ts-ignore
+ get: function () { var _a, _b; return (_b = (_a = _this.parent) === null || _a === void 0 ? void 0 : _a.children) === null || _b === void 0 ? void 0 : _b.indexOf(_this); },
+ });
+ },
+ }),
+ };
+}
+exports.useParent = useParent;
+function useChildren(name, onEffect) {
+ var _a;
+ var path = "../".concat(name, "/index");
+ return {
+ relations: (_a = {},
+ _a[path] = {
+ type: 'descendant',
+ linked: function (target) {
+ onEffect && onEffect.call(this, target);
+ },
+ linkChanged: function (target) {
+ onEffect && onEffect.call(this, target);
+ },
+ unlinked: function (target) {
+ onEffect && onEffect.call(this, target);
+ },
+ },
+ _a),
+ mixin: Behavior({
+ created: function () {
+ var _this = this;
+ Object.defineProperty(this, 'children', {
+ get: function () { return _this.getRelationNodes(path) || []; },
+ });
+ },
+ }),
+ };
+}
+exports.useChildren = useChildren;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/style/clearfix.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/common/style/clearfix.wxss
index a0ca838..442246f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/common/style/clearfix.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/common/style/clearfix.wxss
@@ -1 +1 @@
-.van-clearfix:after{display:table;clear:both;content:""}
\ No newline at end of file
+.van-clearfix:after{clear:both;content:"";display:table}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/style/ellipsis.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/common/style/ellipsis.wxss
index 1e9dbc9..ee701df 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/common/style/ellipsis.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/common/style/ellipsis.wxss
@@ -1 +1 @@
-.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{-webkit-line-clamp:2}.van-multi-ellipsis--l2,.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{-webkit-line-clamp:3}
\ No newline at end of file
+.van-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-multi-ellipsis--l2{-webkit-line-clamp:2}.van-multi-ellipsis--l2,.van-multi-ellipsis--l3{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.van-multi-ellipsis--l3{-webkit-line-clamp:3}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/style/hairline.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/common/style/hairline.wxss
index 49b9e65..f7c6260 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/common/style/hairline.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/common/style/hairline.wxss
@@ -1 +1 @@
-.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after{position:absolute;box-sizing:border-box;-webkit-transform-origin:center;transform-origin:center;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid #ebedf0;-webkit-transform:scale(.5);transform:scale(.5)}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
\ No newline at end of file
+.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after{border:0 solid #ebedf0;bottom:-50%;box-sizing:border-box;content:" ";left:-50%;pointer-events:none;position:absolute;right:-50%;top:-50%;transform:scale(.5);transform-origin:center}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/style/theme.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/common/style/theme.wxss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/utils.js b/src/openeuler/miniprogram_npm/@vant/weapp/common/utils.js
index 6f44506..80fb803 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/common/utils.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/common/utils.js
@@ -1,113 +1,107 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.getCurrentPage = exports.toPromise = exports.groupSetData = exports.getAllRect = exports.getRect = exports.pickExclude = exports.requestAnimationFrame = exports.addUnit = exports.getSystemInfoSync = exports.nextTick = exports.range = void 0;
-var validator_1 = require('./validator');
-var version_1 = require('./version');
-function range(num, min, max) {
- return Math.min(Math.max(num, min), max);
-}
-exports.range = range;
-function nextTick(cb) {
- if (version_1.canIUseNextTick()) {
- wx.nextTick(cb);
- } else {
- setTimeout(function () {
- cb();
- }, 1000 / 30);
- }
-}
-exports.nextTick = nextTick;
-var systemInfo;
-function getSystemInfoSync() {
- if (systemInfo == null) {
- systemInfo = wx.getSystemInfoSync();
- }
- return systemInfo;
-}
-exports.getSystemInfoSync = getSystemInfoSync;
-function addUnit(value) {
- if (!validator_1.isDef(value)) {
- return undefined;
- }
- value = String(value);
- return validator_1.isNumber(value) ? value + 'px' : value;
-}
-exports.addUnit = addUnit;
-function requestAnimationFrame(cb) {
- var systemInfo = getSystemInfoSync();
- if (systemInfo.platform === 'devtools') {
- return setTimeout(function () {
- cb();
- }, 1000 / 30);
- }
- return wx
- .createSelectorQuery()
- .selectViewport()
- .boundingClientRect()
- .exec(function () {
- cb();
- });
-}
-exports.requestAnimationFrame = requestAnimationFrame;
-function pickExclude(obj, keys) {
- if (!validator_1.isPlainObject(obj)) {
- return {};
- }
- return Object.keys(obj).reduce(function (prev, key) {
- if (!keys.includes(key)) {
- prev[key] = obj[key];
- }
- return prev;
- }, {});
-}
-exports.pickExclude = pickExclude;
-function getRect(context, selector) {
- return new Promise(function (resolve) {
- wx.createSelectorQuery()
- .in(context)
- .select(selector)
- .boundingClientRect()
- .exec(function (rect) {
- if (rect === void 0) {
- rect = [];
- }
- return resolve(rect[0]);
- });
- });
-}
-exports.getRect = getRect;
-function getAllRect(context, selector) {
- return new Promise(function (resolve) {
- wx.createSelectorQuery()
- .in(context)
- .selectAll(selector)
- .boundingClientRect()
- .exec(function (rect) {
- if (rect === void 0) {
- rect = [];
- }
- return resolve(rect[0]);
- });
- });
-}
-exports.getAllRect = getAllRect;
-function groupSetData(context, cb) {
- if (version_1.canIUseGroupSetData()) {
- context.groupSetData(cb);
- } else {
- cb();
- }
-}
-exports.groupSetData = groupSetData;
-function toPromise(promiseLike) {
- if (validator_1.isPromise(promiseLike)) {
- return promiseLike;
- }
- return Promise.resolve(promiseLike);
-}
-exports.toPromise = toPromise;
-function getCurrentPage() {
- var pages = getCurrentPages();
- return pages[pages.length - 1];
-}
-exports.getCurrentPage = getCurrentPage;
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.isPC = exports.getCurrentPage = exports.clamp = exports.addNumber = exports.toPromise = exports.groupSetData = exports.getAllRect = exports.getRect = exports.pickExclude = exports.requestAnimationFrame = exports.addUnit = exports.nextTick = exports.range = exports.getSystemInfoSync = exports.isDef = void 0;
+var validator_1 = require("./validator");
+var version_1 = require("./version");
+var validator_2 = require("./validator");
+Object.defineProperty(exports, "isDef", { enumerable: true, get: function () { return validator_2.isDef; } });
+var version_2 = require("./version");
+Object.defineProperty(exports, "getSystemInfoSync", { enumerable: true, get: function () { return version_2.getSystemInfoSync; } });
+function range(num, min, max) {
+ return Math.min(Math.max(num, min), max);
+}
+exports.range = range;
+function nextTick(cb) {
+ if ((0, version_1.canIUseNextTick)()) {
+ wx.nextTick(cb);
+ }
+ else {
+ setTimeout(function () {
+ cb();
+ }, 1000 / 30);
+ }
+}
+exports.nextTick = nextTick;
+function addUnit(value) {
+ if (!(0, validator_1.isDef)(value)) {
+ return undefined;
+ }
+ value = String(value);
+ return (0, validator_1.isNumber)(value) ? "".concat(value, "px") : value;
+}
+exports.addUnit = addUnit;
+function requestAnimationFrame(cb) {
+ return setTimeout(function () {
+ cb();
+ }, 1000 / 30);
+}
+exports.requestAnimationFrame = requestAnimationFrame;
+function pickExclude(obj, keys) {
+ if (!(0, validator_1.isPlainObject)(obj)) {
+ return {};
+ }
+ return Object.keys(obj).reduce(function (prev, key) {
+ if (!keys.includes(key)) {
+ prev[key] = obj[key];
+ }
+ return prev;
+ }, {});
+}
+exports.pickExclude = pickExclude;
+function getRect(context, selector) {
+ return new Promise(function (resolve) {
+ wx.createSelectorQuery()
+ .in(context)
+ .select(selector)
+ .boundingClientRect()
+ .exec(function (rect) {
+ if (rect === void 0) { rect = []; }
+ return resolve(rect[0]);
+ });
+ });
+}
+exports.getRect = getRect;
+function getAllRect(context, selector) {
+ return new Promise(function (resolve) {
+ wx.createSelectorQuery()
+ .in(context)
+ .selectAll(selector)
+ .boundingClientRect()
+ .exec(function (rect) {
+ if (rect === void 0) { rect = []; }
+ return resolve(rect[0]);
+ });
+ });
+}
+exports.getAllRect = getAllRect;
+function groupSetData(context, cb) {
+ if ((0, version_1.canIUseGroupSetData)()) {
+ context.groupSetData(cb);
+ }
+ else {
+ cb();
+ }
+}
+exports.groupSetData = groupSetData;
+function toPromise(promiseLike) {
+ if ((0, validator_1.isPromise)(promiseLike)) {
+ return promiseLike;
+ }
+ return Promise.resolve(promiseLike);
+}
+exports.toPromise = toPromise;
+// 浮点数精度处理
+function addNumber(num1, num2) {
+ var cardinal = Math.pow(10, 10);
+ return Math.round((num1 + num2) * cardinal) / cardinal;
+}
+exports.addNumber = addNumber;
+// 限制value在[min, max]之间
+var clamp = function (num, min, max) { return Math.min(Math.max(num, min), max); };
+exports.clamp = clamp;
+function getCurrentPage() {
+ var pages = getCurrentPages();
+ return pages[pages.length - 1];
+}
+exports.getCurrentPage = getCurrentPage;
+exports.isPC = ['mac', 'windows'].includes((0, version_1.getSystemInfoSync)().platform);
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/validator.js b/src/openeuler/miniprogram_npm/@vant/weapp/common/validator.js
index e61af2c..169e796 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/common/validator.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/common/validator.js
@@ -1,42 +1,43 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.isVideoUrl = exports.isImageUrl = exports.isBoolean = exports.isNumber = exports.isObj = exports.isDef = exports.isPromise = exports.isPlainObject = exports.isFunction = void 0;
-function isFunction(val) {
- return typeof val === 'function';
-}
-exports.isFunction = isFunction;
-function isPlainObject(val) {
- return val !== null && typeof val === 'object' && !Array.isArray(val);
-}
-exports.isPlainObject = isPlainObject;
-function isPromise(val) {
- return isPlainObject(val) && isFunction(val.then) && isFunction(val.catch);
-}
-exports.isPromise = isPromise;
-function isDef(value) {
- return value !== undefined && value !== null;
-}
-exports.isDef = isDef;
-function isObj(x) {
- var type = typeof x;
- return x !== null && (type === 'object' || type === 'function');
-}
-exports.isObj = isObj;
-function isNumber(value) {
- return /^\d+(\.\d+)?$/.test(value);
-}
-exports.isNumber = isNumber;
-function isBoolean(value) {
- return typeof value === 'boolean';
-}
-exports.isBoolean = isBoolean;
-var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
-var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i;
-function isImageUrl(url) {
- return IMAGE_REGEXP.test(url);
-}
-exports.isImageUrl = isImageUrl;
-function isVideoUrl(url) {
- return VIDEO_REGEXP.test(url);
-}
-exports.isVideoUrl = isVideoUrl;
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.isVideoUrl = exports.isImageUrl = exports.isBoolean = exports.isNumber = exports.isObj = exports.isDef = exports.isPromise = exports.isPlainObject = exports.isFunction = void 0;
+// eslint-disable-next-line @typescript-eslint/ban-types
+function isFunction(val) {
+ return typeof val === 'function';
+}
+exports.isFunction = isFunction;
+function isPlainObject(val) {
+ return val !== null && typeof val === 'object' && !Array.isArray(val);
+}
+exports.isPlainObject = isPlainObject;
+function isPromise(val) {
+ return isPlainObject(val) && isFunction(val.then) && isFunction(val.catch);
+}
+exports.isPromise = isPromise;
+function isDef(value) {
+ return value !== undefined && value !== null;
+}
+exports.isDef = isDef;
+function isObj(x) {
+ var type = typeof x;
+ return x !== null && (type === 'object' || type === 'function');
+}
+exports.isObj = isObj;
+function isNumber(value) {
+ return /^\d+(\.\d+)?$/.test(value);
+}
+exports.isNumber = isNumber;
+function isBoolean(value) {
+ return typeof value === 'boolean';
+}
+exports.isBoolean = isBoolean;
+var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
+var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i;
+function isImageUrl(url) {
+ return IMAGE_REGEXP.test(url);
+}
+exports.isImageUrl = isImageUrl;
+function isVideoUrl(url) {
+ return VIDEO_REGEXP.test(url);
+}
+exports.isVideoUrl = isVideoUrl;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/version.js b/src/openeuler/miniprogram_npm/@vant/weapp/common/version.js
index 3a5d837..5937008 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/common/version.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/common/version.js
@@ -1,54 +1,70 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.canIUseCanvas2d = exports.canIUseNextTick = exports.canIUseGroupSetData = exports.canIUseAnimate = exports.canIUseFormFieldButton = exports.canIUseModel = void 0;
-var utils_1 = require('./utils');
-function compareVersion(v1, v2) {
- v1 = v1.split('.');
- v2 = v2.split('.');
- var len = Math.max(v1.length, v2.length);
- while (v1.length < len) {
- v1.push('0');
- }
- while (v2.length < len) {
- v2.push('0');
- }
- for (var i = 0; i < len; i++) {
- var num1 = parseInt(v1[i], 10);
- var num2 = parseInt(v2[i], 10);
- if (num1 > num2) {
- return 1;
- }
- if (num1 < num2) {
- return -1;
- }
- }
- return 0;
-}
-function gte(version) {
- var system = utils_1.getSystemInfoSync();
- return compareVersion(system.SDKVersion, version) >= 0;
-}
-function canIUseModel() {
- return gte('2.9.3');
-}
-exports.canIUseModel = canIUseModel;
-function canIUseFormFieldButton() {
- return gte('2.10.3');
-}
-exports.canIUseFormFieldButton = canIUseFormFieldButton;
-function canIUseAnimate() {
- return gte('2.9.0');
-}
-exports.canIUseAnimate = canIUseAnimate;
-function canIUseGroupSetData() {
- return gte('2.4.0');
-}
-exports.canIUseGroupSetData = canIUseGroupSetData;
-function canIUseNextTick() {
- return wx.canIUse('nextTick');
-}
-exports.canIUseNextTick = canIUseNextTick;
-function canIUseCanvas2d() {
- return gte('2.9.0');
-}
-exports.canIUseCanvas2d = canIUseCanvas2d;
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.canIUseGetUserProfile = exports.canIUseCanvas2d = exports.canIUseNextTick = exports.canIUseGroupSetData = exports.canIUseAnimate = exports.canIUseFormFieldButton = exports.canIUseModel = exports.getSystemInfoSync = void 0;
+var systemInfo;
+function getSystemInfoSync() {
+ if (systemInfo == null) {
+ systemInfo = wx.getSystemInfoSync();
+ }
+ return systemInfo;
+}
+exports.getSystemInfoSync = getSystemInfoSync;
+function compareVersion(v1, v2) {
+ v1 = v1.split('.');
+ v2 = v2.split('.');
+ var len = Math.max(v1.length, v2.length);
+ while (v1.length < len) {
+ v1.push('0');
+ }
+ while (v2.length < len) {
+ v2.push('0');
+ }
+ for (var i = 0; i < len; i++) {
+ var num1 = parseInt(v1[i], 10);
+ var num2 = parseInt(v2[i], 10);
+ if (num1 > num2) {
+ return 1;
+ }
+ if (num1 < num2) {
+ return -1;
+ }
+ }
+ return 0;
+}
+function gte(version) {
+ var system = getSystemInfoSync();
+ return compareVersion(system.SDKVersion, version) >= 0;
+}
+function canIUseModel() {
+ return gte('2.9.3');
+}
+exports.canIUseModel = canIUseModel;
+function canIUseFormFieldButton() {
+ return gte('2.10.3');
+}
+exports.canIUseFormFieldButton = canIUseFormFieldButton;
+function canIUseAnimate() {
+ return gte('2.9.0');
+}
+exports.canIUseAnimate = canIUseAnimate;
+function canIUseGroupSetData() {
+ return gte('2.4.0');
+}
+exports.canIUseGroupSetData = canIUseGroupSetData;
+function canIUseNextTick() {
+ try {
+ return wx.canIUse('nextTick');
+ }
+ catch (e) {
+ return gte('2.7.1');
+ }
+}
+exports.canIUseNextTick = canIUseNextTick;
+function canIUseCanvas2d() {
+ return gte('2.9.0');
+}
+exports.canIUseCanvas2d = canIUseCanvas2d;
+function canIUseGetUserProfile() {
+ return !!wx.getUserProfile;
+}
+exports.canIUseGetUserProfile = canIUseGetUserProfile;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.js
index f88ea09..afc780b 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.js
@@ -1,103 +1,104 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var utils_1 = require('./utils');
-function simpleTick(fn) {
- return setTimeout(fn, 30);
-}
-component_1.VantComponent({
- props: {
- useSlot: Boolean,
- millisecond: Boolean,
- time: {
- type: Number,
- observer: 'reset',
- },
- format: {
- type: String,
- value: 'HH:mm:ss',
- },
- autoStart: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- timeData: utils_1.parseTimeData(0),
- formattedTime: '0',
- },
- destroyed: function () {
- clearTimeout(this.tid);
- this.tid = null;
- },
- methods: {
- // 开始
- start: function () {
- if (this.counting) {
- return;
- }
- this.counting = true;
- this.endTime = Date.now() + this.remain;
- this.tick();
- },
- // 暂停
- pause: function () {
- this.counting = false;
- clearTimeout(this.tid);
- },
- // 重置
- reset: function () {
- this.pause();
- this.remain = this.data.time;
- this.setRemain(this.remain);
- if (this.data.autoStart) {
- this.start();
- }
- },
- tick: function () {
- if (this.data.millisecond) {
- this.microTick();
- } else {
- this.macroTick();
- }
- },
- microTick: function () {
- var _this = this;
- this.tid = simpleTick(function () {
- _this.setRemain(_this.getRemain());
- if (_this.remain !== 0) {
- _this.microTick();
- }
- });
- },
- macroTick: function () {
- var _this = this;
- this.tid = simpleTick(function () {
- var remain = _this.getRemain();
- if (!utils_1.isSameSecond(remain, _this.remain) || remain === 0) {
- _this.setRemain(remain);
- }
- if (_this.remain !== 0) {
- _this.macroTick();
- }
- });
- },
- getRemain: function () {
- return Math.max(this.endTime - Date.now(), 0);
- },
- setRemain: function (remain) {
- this.remain = remain;
- var timeData = utils_1.parseTimeData(remain);
- if (this.data.useSlot) {
- this.$emit('change', timeData);
- }
- this.setData({
- formattedTime: utils_1.parseFormat(this.data.format, timeData),
- });
- if (remain === 0) {
- this.pause();
- this.$emit('finish');
- }
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var utils_1 = require("./utils");
+function simpleTick(fn) {
+ return setTimeout(fn, 30);
+}
+(0, component_1.VantComponent)({
+ props: {
+ useSlot: Boolean,
+ millisecond: Boolean,
+ time: {
+ type: Number,
+ observer: 'reset',
+ },
+ format: {
+ type: String,
+ value: 'HH:mm:ss',
+ },
+ autoStart: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ data: {
+ timeData: (0, utils_1.parseTimeData)(0),
+ formattedTime: '0',
+ },
+ destroyed: function () {
+ clearTimeout(this.tid);
+ this.tid = null;
+ },
+ methods: {
+ // 开始
+ start: function () {
+ if (this.counting) {
+ return;
+ }
+ this.counting = true;
+ this.endTime = Date.now() + this.remain;
+ this.tick();
+ },
+ // 暂停
+ pause: function () {
+ this.counting = false;
+ clearTimeout(this.tid);
+ },
+ // 重置
+ reset: function () {
+ this.pause();
+ this.remain = this.data.time;
+ this.setRemain(this.remain);
+ if (this.data.autoStart) {
+ this.start();
+ }
+ },
+ tick: function () {
+ if (this.data.millisecond) {
+ this.microTick();
+ }
+ else {
+ this.macroTick();
+ }
+ },
+ microTick: function () {
+ var _this = this;
+ this.tid = simpleTick(function () {
+ _this.setRemain(_this.getRemain());
+ if (_this.remain !== 0) {
+ _this.microTick();
+ }
+ });
+ },
+ macroTick: function () {
+ var _this = this;
+ this.tid = simpleTick(function () {
+ var remain = _this.getRemain();
+ if (!(0, utils_1.isSameSecond)(remain, _this.remain) || remain === 0) {
+ _this.setRemain(remain);
+ }
+ if (_this.remain !== 0) {
+ _this.macroTick();
+ }
+ });
+ },
+ getRemain: function () {
+ return Math.max(this.endTime - Date.now(), 0);
+ },
+ setRemain: function (remain) {
+ this.remain = remain;
+ var timeData = (0, utils_1.parseTimeData)(remain);
+ if (this.data.useSlot) {
+ this.$emit('change', timeData);
+ }
+ this.setData({
+ formattedTime: (0, utils_1.parseFormat)(this.data.format, timeData),
+ });
+ if (remain === 0) {
+ this.pause();
+ this.$emit('finish');
+ }
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.wxml
index 49c4db2..e206e16 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.wxml
@@ -1,4 +1,4 @@
-
-
- {{ formattedTime }}
-
+
+
+ {{ formattedTime }}
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.wxss
index bc33f5d..8b957f7 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-count-down{color:#323233;color:var(--count-down-text-color,#323233);font-size:14px;font-size:var(--count-down-font-size,14px);line-height:20px;line-height:var(--count-down-line-height,20px)}
\ No newline at end of file
+@import '../common/index.wxss';.van-count-down{color:var(--count-down-text-color,#323233);font-size:var(--count-down-font-size,14px);line-height:var(--count-down-line-height,20px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/count-down/utils.js b/src/openeuler/miniprogram_npm/@vant/weapp/count-down/utils.js
index ef6f982..a7cfa5f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/count-down/utils.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/count-down/utils.js
@@ -1,65 +1,64 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.isSameSecond = exports.parseFormat = exports.parseTimeData = void 0;
-function padZero(num, targetLength) {
- if (targetLength === void 0) {
- targetLength = 2;
- }
- var str = num + '';
- while (str.length < targetLength) {
- str = '0' + str;
- }
- return str;
-}
-var SECOND = 1000;
-var MINUTE = 60 * SECOND;
-var HOUR = 60 * MINUTE;
-var DAY = 24 * HOUR;
-function parseTimeData(time) {
- var days = Math.floor(time / DAY);
- var hours = Math.floor((time % DAY) / HOUR);
- var minutes = Math.floor((time % HOUR) / MINUTE);
- var seconds = Math.floor((time % MINUTE) / SECOND);
- var milliseconds = Math.floor(time % SECOND);
- return {
- days: days,
- hours: hours,
- minutes: minutes,
- seconds: seconds,
- milliseconds: milliseconds,
- };
-}
-exports.parseTimeData = parseTimeData;
-function parseFormat(format, timeData) {
- var days = timeData.days;
- var hours = timeData.hours,
- minutes = timeData.minutes,
- seconds = timeData.seconds,
- milliseconds = timeData.milliseconds;
- if (format.indexOf('DD') === -1) {
- hours += days * 24;
- } else {
- format = format.replace('DD', padZero(days));
- }
- if (format.indexOf('HH') === -1) {
- minutes += hours * 60;
- } else {
- format = format.replace('HH', padZero(hours));
- }
- if (format.indexOf('mm') === -1) {
- seconds += minutes * 60;
- } else {
- format = format.replace('mm', padZero(minutes));
- }
- if (format.indexOf('ss') === -1) {
- milliseconds += seconds * 1000;
- } else {
- format = format.replace('ss', padZero(seconds));
- }
- return format.replace('SSS', padZero(milliseconds, 3));
-}
-exports.parseFormat = parseFormat;
-function isSameSecond(time1, time2) {
- return Math.floor(time1 / 1000) === Math.floor(time2 / 1000);
-}
-exports.isSameSecond = isSameSecond;
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.isSameSecond = exports.parseFormat = exports.parseTimeData = void 0;
+function padZero(num, targetLength) {
+ if (targetLength === void 0) { targetLength = 2; }
+ var str = num + '';
+ while (str.length < targetLength) {
+ str = '0' + str;
+ }
+ return str;
+}
+var SECOND = 1000;
+var MINUTE = 60 * SECOND;
+var HOUR = 60 * MINUTE;
+var DAY = 24 * HOUR;
+function parseTimeData(time) {
+ var days = Math.floor(time / DAY);
+ var hours = Math.floor((time % DAY) / HOUR);
+ var minutes = Math.floor((time % HOUR) / MINUTE);
+ var seconds = Math.floor((time % MINUTE) / SECOND);
+ var milliseconds = Math.floor(time % SECOND);
+ return {
+ days: days,
+ hours: hours,
+ minutes: minutes,
+ seconds: seconds,
+ milliseconds: milliseconds,
+ };
+}
+exports.parseTimeData = parseTimeData;
+function parseFormat(format, timeData) {
+ var days = timeData.days;
+ var hours = timeData.hours, minutes = timeData.minutes, seconds = timeData.seconds, milliseconds = timeData.milliseconds;
+ if (format.indexOf('DD') === -1) {
+ hours += days * 24;
+ }
+ else {
+ format = format.replace('DD', padZero(days));
+ }
+ if (format.indexOf('HH') === -1) {
+ minutes += hours * 60;
+ }
+ else {
+ format = format.replace('HH', padZero(hours));
+ }
+ if (format.indexOf('mm') === -1) {
+ seconds += minutes * 60;
+ }
+ else {
+ format = format.replace('mm', padZero(minutes));
+ }
+ if (format.indexOf('ss') === -1) {
+ milliseconds += seconds * 1000;
+ }
+ else {
+ format = format.replace('ss', padZero(seconds));
+ }
+ return format.replace('SSS', padZero(milliseconds, 3));
+}
+exports.parseFormat = parseFormat;
+function isSameSecond(time1, time2) {
+ return Math.floor(time1 / 1000) === Math.floor(time2 / 1000);
+}
+exports.isSameSecond = isSameSecond;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.js
index 6e119f2..e30afef 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.js
@@ -1,381 +1,329 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
}
return t;
- };
+ };
return __assign.apply(this, arguments);
- };
-var __spreadArrays =
- (this && this.__spreadArrays) ||
- function () {
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
- s += arguments[i].length;
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
- r[k] = a[j];
- return r;
- };
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var validator_1 = require('../common/validator');
-var shared_1 = require('../picker/shared');
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
+ if (ar || !(i in from)) {
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
+ ar[i] = from[i];
+ }
+ }
+ return to.concat(ar || Array.prototype.slice.call(from));
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var validator_1 = require("../common/validator");
+var shared_1 = require("../picker/shared");
var currentYear = new Date().getFullYear();
function isValidDate(date) {
- return validator_1.isDef(date) && !isNaN(new Date(date).getTime());
+ return (0, validator_1.isDef)(date) && !isNaN(new Date(date).getTime());
}
function range(num, min, max) {
- return Math.min(Math.max(num, min), max);
+ return Math.min(Math.max(num, min), max);
}
function padZero(val) {
- return ('00' + val).slice(-2);
+ return "00".concat(val).slice(-2);
}
function times(n, iteratee) {
- var index = -1;
- var result = Array(n < 0 ? 0 : n);
- while (++index < n) {
- result[index] = iteratee(index);
- }
- return result;
+ var index = -1;
+ var result = Array(n < 0 ? 0 : n);
+ while (++index < n) {
+ result[index] = iteratee(index);
+ }
+ return result;
}
function getTrueValue(formattedValue) {
- if (formattedValue === undefined) {
- formattedValue = '1';
- }
- while (isNaN(parseInt(formattedValue, 10))) {
- formattedValue = formattedValue.slice(1);
- }
- return parseInt(formattedValue, 10);
+ if (formattedValue === undefined) {
+ formattedValue = '1';
+ }
+ while (isNaN(parseInt(formattedValue, 10))) {
+ formattedValue = formattedValue.slice(1);
+ }
+ return parseInt(formattedValue, 10);
}
function getMonthEndDay(year, month) {
- return 32 - new Date(year, month - 1, 32).getDate();
+ return 32 - new Date(year, month - 1, 32).getDate();
}
-var defaultFormatter = function (type, value) {
- return value;
-};
-component_1.VantComponent({
- classes: ['active-class', 'toolbar-class', 'column-class'],
- props: __assign(__assign({}, shared_1.pickerProps), {
- value: {
- type: null,
- observer: 'updateValue',
- },
- filter: null,
- type: {
- type: String,
- value: 'datetime',
- observer: 'updateValue',
- },
- showToolbar: {
- type: Boolean,
- value: true,
- },
- formatter: {
- type: null,
- value: defaultFormatter,
- },
- minDate: {
- type: Number,
- value: new Date(currentYear - 10, 0, 1).getTime(),
- observer: 'updateValue',
- },
- maxDate: {
- type: Number,
- value: new Date(currentYear + 10, 11, 31).getTime(),
- observer: 'updateValue',
- },
- minHour: {
- type: Number,
- value: 0,
- observer: 'updateValue',
- },
- maxHour: {
- type: Number,
- value: 23,
- observer: 'updateValue',
- },
- minMinute: {
- type: Number,
- value: 0,
- observer: 'updateValue',
+var defaultFormatter = function (type, value) { return value; };
+(0, component_1.VantComponent)({
+ classes: ['active-class', 'toolbar-class', 'column-class'],
+ props: __assign(__assign({}, shared_1.pickerProps), { value: {
+ type: null,
+ observer: 'updateValue',
+ }, filter: null, type: {
+ type: String,
+ value: 'datetime',
+ observer: 'updateValue',
+ }, showToolbar: {
+ type: Boolean,
+ value: true,
+ }, formatter: {
+ type: null,
+ value: defaultFormatter,
+ }, minDate: {
+ type: Number,
+ value: new Date(currentYear - 10, 0, 1).getTime(),
+ observer: 'updateValue',
+ }, maxDate: {
+ type: Number,
+ value: new Date(currentYear + 10, 11, 31).getTime(),
+ observer: 'updateValue',
+ }, minHour: {
+ type: Number,
+ value: 0,
+ observer: 'updateValue',
+ }, maxHour: {
+ type: Number,
+ value: 23,
+ observer: 'updateValue',
+ }, minMinute: {
+ type: Number,
+ value: 0,
+ observer: 'updateValue',
+ }, maxMinute: {
+ type: Number,
+ value: 59,
+ observer: 'updateValue',
+ } }),
+ data: {
+ innerValue: Date.now(),
+ columns: [],
},
- maxMinute: {
- type: Number,
- value: 59,
- observer: 'updateValue',
- },
- }),
- data: {
- innerValue: Date.now(),
- columns: [],
- },
- methods: {
- updateValue: function () {
- var _this = this;
- var data = this.data;
- var val = this.correctValue(data.value);
- var isEqual = val === data.innerValue;
- if (!isEqual) {
- this.updateColumnValue(val).then(function () {
- _this.$emit('input', val);
- });
- } else {
- this.updateColumns();
- }
- },
- getPicker: function () {
- if (this.picker == null) {
- this.picker = this.selectComponent('.van-datetime-picker');
- var picker_1 = this.picker;
- var setColumnValues_1 = picker_1.setColumnValues;
- picker_1.setColumnValues = function () {
- var args = [];
- for (var _i = 0; _i < arguments.length; _i++) {
- args[_i] = arguments[_i];
- }
- return setColumnValues_1.apply(
- picker_1,
- __spreadArrays(args, [false])
- );
- };
- }
- return this.picker;
- },
- updateColumns: function () {
- var _a = this.data.formatter,
- formatter = _a === void 0 ? defaultFormatter : _a;
- var results = this.getOriginColumns().map(function (column) {
- return {
- values: column.values.map(function (value) {
- return formatter(column.type, value);
- }),
- };
- });
- return this.set({ columns: results });
- },
- getOriginColumns: function () {
- var filter = this.data.filter;
- var results = this.getRanges().map(function (_a) {
- var type = _a.type,
- range = _a.range;
- var values = times(range[1] - range[0] + 1, function (index) {
- var value = range[0] + index;
- value = type === 'year' ? '' + value : padZero(value);
- return value;
- });
- if (filter) {
- values = filter(type, values);
- }
- return { type: type, values: values };
- });
- return results;
- },
- getRanges: function () {
- var data = this.data;
- if (data.type === 'time') {
- return [
- {
- type: 'hour',
- range: [data.minHour, data.maxHour],
- },
- {
- type: 'minute',
- range: [data.minMinute, data.maxMinute],
- },
- ];
- }
- var _a = this.getBoundary('max', data.innerValue),
- maxYear = _a.maxYear,
- maxDate = _a.maxDate,
- maxMonth = _a.maxMonth,
- maxHour = _a.maxHour,
- maxMinute = _a.maxMinute;
- var _b = this.getBoundary('min', data.innerValue),
- minYear = _b.minYear,
- minDate = _b.minDate,
- minMonth = _b.minMonth,
- minHour = _b.minHour,
- minMinute = _b.minMinute;
- var result = [
- {
- type: 'year',
- range: [minYear, maxYear],
+ methods: {
+ updateValue: function () {
+ var _this = this;
+ var data = this.data;
+ var val = this.correctValue(data.value);
+ var isEqual = val === data.innerValue;
+ this.updateColumnValue(val).then(function () {
+ if (!isEqual) {
+ _this.$emit('input', val);
+ }
+ });
},
- {
- type: 'month',
- range: [minMonth, maxMonth],
+ getPicker: function () {
+ if (this.picker == null) {
+ this.picker = this.selectComponent('.van-datetime-picker');
+ var picker_1 = this.picker;
+ var setColumnValues_1 = picker_1.setColumnValues;
+ picker_1.setColumnValues = function () {
+ var args = [];
+ for (var _i = 0; _i < arguments.length; _i++) {
+ args[_i] = arguments[_i];
+ }
+ return setColumnValues_1.apply(picker_1, __spreadArray(__spreadArray([], args, true), [false], false));
+ };
+ }
+ return this.picker;
},
- {
- type: 'day',
- range: [minDate, maxDate],
+ updateColumns: function () {
+ var _a = this.data.formatter, formatter = _a === void 0 ? defaultFormatter : _a;
+ var results = this.getOriginColumns().map(function (column) { return ({
+ values: column.values.map(function (value) { return formatter(column.type, value); }),
+ }); });
+ return this.set({ columns: results });
},
- {
- type: 'hour',
- range: [minHour, maxHour],
+ getOriginColumns: function () {
+ var filter = this.data.filter;
+ var results = this.getRanges().map(function (_a) {
+ var type = _a.type, range = _a.range;
+ var values = times(range[1] - range[0] + 1, function (index) {
+ var value = range[0] + index;
+ return type === 'year' ? "".concat(value) : padZero(value);
+ });
+ if (filter) {
+ values = filter(type, values);
+ }
+ return { type: type, values: values };
+ });
+ return results;
},
- {
- type: 'minute',
- range: [minMinute, maxMinute],
+ getRanges: function () {
+ var data = this.data;
+ if (data.type === 'time') {
+ return [
+ {
+ type: 'hour',
+ range: [data.minHour, data.maxHour],
+ },
+ {
+ type: 'minute',
+ range: [data.minMinute, data.maxMinute],
+ },
+ ];
+ }
+ var _a = this.getBoundary('max', data.innerValue), maxYear = _a.maxYear, maxDate = _a.maxDate, maxMonth = _a.maxMonth, maxHour = _a.maxHour, maxMinute = _a.maxMinute;
+ var _b = this.getBoundary('min', data.innerValue), minYear = _b.minYear, minDate = _b.minDate, minMonth = _b.minMonth, minHour = _b.minHour, minMinute = _b.minMinute;
+ var result = [
+ {
+ type: 'year',
+ range: [minYear, maxYear],
+ },
+ {
+ type: 'month',
+ range: [minMonth, maxMonth],
+ },
+ {
+ type: 'day',
+ range: [minDate, maxDate],
+ },
+ {
+ type: 'hour',
+ range: [minHour, maxHour],
+ },
+ {
+ type: 'minute',
+ range: [minMinute, maxMinute],
+ },
+ ];
+ if (data.type === 'date')
+ result.splice(3, 2);
+ if (data.type === 'year-month')
+ result.splice(2, 3);
+ return result;
},
- ];
- if (data.type === 'date') result.splice(3, 2);
- if (data.type === 'year-month') result.splice(2, 3);
- return result;
- },
- correctValue: function (value) {
- var data = this.data;
- // validate value
- var isDateType = data.type !== 'time';
- if (isDateType && !isValidDate(value)) {
- value = data.minDate;
- } else if (!isDateType && !value) {
- var minHour = data.minHour;
- value = padZero(minHour) + ':00';
- }
- // time type
- if (!isDateType) {
- var _a = value.split(':'),
- hour = _a[0],
- minute = _a[1];
- hour = padZero(range(hour, data.minHour, data.maxHour));
- minute = padZero(range(minute, data.minMinute, data.maxMinute));
- return hour + ':' + minute;
- }
- // date type
- value = Math.max(value, data.minDate);
- value = Math.min(value, data.maxDate);
- return value;
- },
- getBoundary: function (type, innerValue) {
- var _a;
- var value = new Date(innerValue);
- var boundary = new Date(this.data[type + 'Date']);
- var year = boundary.getFullYear();
- var month = 1;
- var date = 1;
- var hour = 0;
- var minute = 0;
- if (type === 'max') {
- month = 12;
- date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
- hour = 23;
- minute = 59;
- }
- if (value.getFullYear() === year) {
- month = boundary.getMonth() + 1;
- if (value.getMonth() + 1 === month) {
- date = boundary.getDate();
- if (value.getDate() === date) {
- hour = boundary.getHours();
- if (value.getHours() === hour) {
- minute = boundary.getMinutes();
+ correctValue: function (value) {
+ var data = this.data;
+ // validate value
+ var isDateType = data.type !== 'time';
+ if (isDateType && !isValidDate(value)) {
+ value = data.minDate;
}
- }
- }
- }
- return (
- (_a = {}),
- (_a[type + 'Year'] = year),
- (_a[type + 'Month'] = month),
- (_a[type + 'Date'] = date),
- (_a[type + 'Hour'] = hour),
- (_a[type + 'Minute'] = minute),
- _a
- );
- },
- onCancel: function () {
- this.$emit('cancel');
- },
- onConfirm: function () {
- this.$emit('confirm', this.data.innerValue);
- },
- onChange: function () {
- var _this = this;
- var data = this.data;
- var value;
- var picker = this.getPicker();
- var originColumns = this.getOriginColumns();
- if (data.type === 'time') {
- var indexes = picker.getIndexes();
- value =
- +originColumns[0].values[indexes[0]] +
- ':' +
- +originColumns[1].values[indexes[1]];
- } else {
- var indexes = picker.getIndexes();
- var values = indexes.map(function (value, index) {
- return originColumns[index].values[value];
- });
- var year = getTrueValue(values[0]);
- var month = getTrueValue(values[1]);
- var maxDate = getMonthEndDay(year, month);
- var date = getTrueValue(values[2]);
- if (data.type === 'year-month') {
- date = 1;
- }
- date = date > maxDate ? maxDate : date;
- var hour = 0;
- var minute = 0;
- if (data.type === 'datetime') {
- hour = getTrueValue(values[3]);
- minute = getTrueValue(values[4]);
- }
- value = new Date(year, month - 1, date, hour, minute);
- }
- value = this.correctValue(value);
- this.updateColumnValue(value).then(function () {
- _this.$emit('input', value);
- _this.$emit('change', picker);
- });
+ else if (!isDateType && !value) {
+ var minHour = data.minHour;
+ value = "".concat(padZero(minHour), ":00");
+ }
+ // time type
+ if (!isDateType) {
+ var _a = value.split(':'), hour = _a[0], minute = _a[1];
+ hour = padZero(range(hour, data.minHour, data.maxHour));
+ minute = padZero(range(minute, data.minMinute, data.maxMinute));
+ return "".concat(hour, ":").concat(minute);
+ }
+ // date type
+ value = Math.max(value, data.minDate);
+ value = Math.min(value, data.maxDate);
+ return value;
+ },
+ getBoundary: function (type, innerValue) {
+ var _a;
+ var value = new Date(innerValue);
+ var boundary = new Date(this.data["".concat(type, "Date")]);
+ var year = boundary.getFullYear();
+ var month = 1;
+ var date = 1;
+ var hour = 0;
+ var minute = 0;
+ if (type === 'max') {
+ month = 12;
+ date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
+ hour = 23;
+ minute = 59;
+ }
+ if (value.getFullYear() === year) {
+ month = boundary.getMonth() + 1;
+ if (value.getMonth() + 1 === month) {
+ date = boundary.getDate();
+ if (value.getDate() === date) {
+ hour = boundary.getHours();
+ if (value.getHours() === hour) {
+ minute = boundary.getMinutes();
+ }
+ }
+ }
+ }
+ return _a = {},
+ _a["".concat(type, "Year")] = year,
+ _a["".concat(type, "Month")] = month,
+ _a["".concat(type, "Date")] = date,
+ _a["".concat(type, "Hour")] = hour,
+ _a["".concat(type, "Minute")] = minute,
+ _a;
+ },
+ onCancel: function () {
+ this.$emit('cancel');
+ },
+ onConfirm: function () {
+ this.$emit('confirm', this.data.innerValue);
+ },
+ onChange: function () {
+ var _this = this;
+ var data = this.data;
+ var value;
+ var picker = this.getPicker();
+ var originColumns = this.getOriginColumns();
+ if (data.type === 'time') {
+ var indexes = picker.getIndexes();
+ value = "".concat(+originColumns[0].values[indexes[0]], ":").concat(+originColumns[1]
+ .values[indexes[1]]);
+ }
+ else {
+ var indexes = picker.getIndexes();
+ var values = indexes.map(function (value, index) { return originColumns[index].values[value]; });
+ var year = getTrueValue(values[0]);
+ var month = getTrueValue(values[1]);
+ var maxDate = getMonthEndDay(year, month);
+ var date = getTrueValue(values[2]);
+ if (data.type === 'year-month') {
+ date = 1;
+ }
+ date = date > maxDate ? maxDate : date;
+ var hour = 0;
+ var minute = 0;
+ if (data.type === 'datetime') {
+ hour = getTrueValue(values[3]);
+ minute = getTrueValue(values[4]);
+ }
+ value = new Date(year, month - 1, date, hour, minute);
+ }
+ value = this.correctValue(value);
+ this.updateColumnValue(value).then(function () {
+ _this.$emit('input', value);
+ _this.$emit('change', picker);
+ });
+ },
+ updateColumnValue: function (value) {
+ var _this = this;
+ var values = [];
+ var type = this.data.type;
+ var formatter = this.data.formatter || defaultFormatter;
+ var picker = this.getPicker();
+ if (type === 'time') {
+ var pair = value.split(':');
+ values = [formatter('hour', pair[0]), formatter('minute', pair[1])];
+ }
+ else {
+ var date = new Date(value);
+ values = [
+ formatter('year', "".concat(date.getFullYear())),
+ formatter('month', padZero(date.getMonth() + 1)),
+ ];
+ if (type === 'date') {
+ values.push(formatter('day', padZero(date.getDate())));
+ }
+ if (type === 'datetime') {
+ values.push(formatter('day', padZero(date.getDate())), formatter('hour', padZero(date.getHours())), formatter('minute', padZero(date.getMinutes())));
+ }
+ }
+ return this.set({ innerValue: value })
+ .then(function () { return _this.updateColumns(); })
+ .then(function () { return picker.setValues(values); });
+ },
},
- updateColumnValue: function (value) {
- var _this = this;
- var values = [];
- var type = this.data.type;
- var formatter = this.data.formatter || defaultFormatter;
- var picker = this.getPicker();
- if (type === 'time') {
- var pair = value.split(':');
- values = [formatter('hour', pair[0]), formatter('minute', pair[1])];
- } else {
- var date = new Date(value);
- values = [
- formatter('year', '' + date.getFullYear()),
- formatter('month', padZero(date.getMonth() + 1)),
- ];
- if (type === 'date') {
- values.push(formatter('day', padZero(date.getDate())));
- }
- if (type === 'datetime') {
- values.push(
- formatter('day', padZero(date.getDate())),
- formatter('hour', padZero(date.getHours())),
- formatter('minute', padZero(date.getMinutes()))
- );
- }
- }
- return this.set({ innerValue: value })
- .then(function () {
- return _this.updateColumns();
- })
- .then(function () {
- return picker.setValues(values);
+ created: function () {
+ var _this = this;
+ var innerValue = this.correctValue(this.data.value);
+ this.updateColumnValue(innerValue).then(function () {
+ _this.$emit('input', innerValue);
});
},
- },
- created: function () {
- var _this = this;
- var innerValue = this.correctValue(this.data.value);
- this.updateColumnValue(innerValue).then(function () {
- _this.$emit('input', innerValue);
- });
- },
});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.json
index 9176008..a778e91 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-picker": "../picker/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-picker": "../picker/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.wxml
index 33659f2..ade2202 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.wxml
@@ -1,16 +1,16 @@
-
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/definitions/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/definitions/index.js
index ce03781..c8ad2e5 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/definitions/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/definitions/index.js
@@ -1,2 +1,2 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dialog/dialog.js b/src/openeuler/miniprogram_npm/@vant/weapp/dialog/dialog.js
index 64c5f5f..400f4f1 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dialog/dialog.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/dialog/dialog.js
@@ -1,104 +1,92 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-Object.defineProperty(exports, '__esModule', { value: true });
-var queue = [];
-var defaultOptions = {
- show: false,
- title: '',
- width: null,
- theme: 'default',
- message: '',
- zIndex: 100,
- overlay: true,
- selector: '#van-dialog',
- className: '',
- asyncClose: false,
- beforeClose: null,
- transition: 'scale',
- customStyle: '',
- messageAlign: '',
- overlayStyle: '',
- confirmButtonText: '确认',
- cancelButtonText: '取消',
- showConfirmButton: true,
- showCancelButton: false,
- closeOnClickOverlay: false,
- confirmButtonOpenType: '',
-};
-var currentOptions = __assign({}, defaultOptions);
-function getContext() {
- var pages = getCurrentPages();
- return pages[pages.length - 1];
-}
-var Dialog = function (options) {
- options = __assign(__assign({}, currentOptions), options);
- return new Promise(function (resolve, reject) {
- var context = options.context || getContext();
- var dialog = context.selectComponent(options.selector);
- delete options.context;
- delete options.selector;
- if (dialog) {
- dialog.setData(
- __assign(
- {
- callback: function (action, instance) {
- action === 'confirm' ? resolve(instance) : reject(instance);
- },
- },
- options
- )
- );
- wx.nextTick(function () {
- dialog.setData({ show: true });
- });
- queue.push(dialog);
- } else {
- console.warn(
- '未找到 van-dialog 节点,请确认 selector 及 context 是否正确'
- );
- }
- });
-};
-Dialog.alert = function (options) {
- return Dialog(options);
-};
-Dialog.confirm = function (options) {
- return Dialog(__assign({ showCancelButton: true }, options));
-};
-Dialog.close = function () {
- queue.forEach(function (dialog) {
- dialog.close();
- });
- queue = [];
-};
-Dialog.stopLoading = function () {
- queue.forEach(function (dialog) {
- dialog.stopLoading();
- });
-};
-Dialog.currentOptions = currentOptions;
-Dialog.defaultOptions = defaultOptions;
-Dialog.setDefaultOptions = function (options) {
- currentOptions = __assign(__assign({}, currentOptions), options);
- Dialog.currentOptions = currentOptions;
-};
-Dialog.resetDefaultOptions = function () {
- currentOptions = __assign({}, defaultOptions);
- Dialog.currentOptions = currentOptions;
-};
-Dialog.resetDefaultOptions();
-exports.default = Dialog;
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var queue = [];
+var defaultOptions = {
+ show: false,
+ title: '',
+ width: null,
+ theme: 'default',
+ message: '',
+ zIndex: 100,
+ overlay: true,
+ selector: '#van-dialog',
+ className: '',
+ asyncClose: false,
+ beforeClose: null,
+ transition: 'scale',
+ customStyle: '',
+ messageAlign: '',
+ overlayStyle: '',
+ confirmButtonText: '确认',
+ cancelButtonText: '取消',
+ showConfirmButton: true,
+ showCancelButton: false,
+ closeOnClickOverlay: false,
+ confirmButtonOpenType: '',
+};
+var currentOptions = __assign({}, defaultOptions);
+function getContext() {
+ var pages = getCurrentPages();
+ return pages[pages.length - 1];
+}
+var Dialog = function (options) {
+ options = __assign(__assign({}, currentOptions), options);
+ return new Promise(function (resolve, reject) {
+ var context = (typeof options.context === 'function'
+ ? options.context()
+ : options.context) || getContext();
+ var dialog = context.selectComponent(options.selector);
+ delete options.context;
+ delete options.selector;
+ if (dialog) {
+ dialog.setData(__assign({ callback: function (action, instance) {
+ action === 'confirm' ? resolve(instance) : reject(instance);
+ } }, options));
+ wx.nextTick(function () {
+ dialog.setData({ show: true });
+ });
+ queue.push(dialog);
+ }
+ else {
+ console.warn('未找到 van-dialog 节点,请确认 selector 及 context 是否正确');
+ }
+ });
+};
+Dialog.alert = function (options) { return Dialog(options); };
+Dialog.confirm = function (options) {
+ return Dialog(__assign({ showCancelButton: true }, options));
+};
+Dialog.close = function () {
+ queue.forEach(function (dialog) {
+ dialog.close();
+ });
+ queue = [];
+};
+Dialog.stopLoading = function () {
+ queue.forEach(function (dialog) {
+ dialog.stopLoading();
+ });
+};
+Dialog.currentOptions = currentOptions;
+Dialog.defaultOptions = defaultOptions;
+Dialog.setDefaultOptions = function (options) {
+ currentOptions = __assign(__assign({}, currentOptions), options);
+ Dialog.currentOptions = currentOptions;
+};
+Dialog.resetDefaultOptions = function () {
+ currentOptions = __assign({}, defaultOptions);
+ Dialog.currentOptions = currentOptions;
+};
+Dialog.resetDefaultOptions();
+exports.default = Dialog;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.js
index 3f26daa..f10f50f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.js
@@ -1,127 +1,131 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var button_1 = require('../mixins/button');
-var open_type_1 = require('../mixins/open-type');
-var color_1 = require('../common/color');
-var utils_1 = require('../common/utils');
-component_1.VantComponent({
- mixins: [button_1.button, open_type_1.openType],
- props: {
- show: {
- type: Boolean,
- observer: function (show) {
- !show && this.stopLoading();
- },
- },
- title: String,
- message: String,
- theme: {
- type: String,
- value: 'default',
- },
- useSlot: Boolean,
- className: String,
- customStyle: String,
- asyncClose: Boolean,
- messageAlign: String,
- beforeClose: null,
- overlayStyle: String,
- useTitleSlot: Boolean,
- showCancelButton: Boolean,
- closeOnClickOverlay: Boolean,
- confirmButtonOpenType: String,
- width: null,
- zIndex: {
- type: Number,
- value: 2000,
- },
- confirmButtonText: {
- type: String,
- value: '确认',
- },
- cancelButtonText: {
- type: String,
- value: '取消',
- },
- confirmButtonColor: {
- type: String,
- value: color_1.RED,
- },
- cancelButtonColor: {
- type: String,
- value: color_1.GRAY,
- },
- showConfirmButton: {
- type: Boolean,
- value: true,
- },
- overlay: {
- type: Boolean,
- value: true,
- },
- transition: {
- type: String,
- value: 'scale',
- },
- },
- data: {
- loading: {
- confirm: false,
- cancel: false,
- },
- callback: function () {},
- },
- methods: {
- onConfirm: function () {
- this.handleAction('confirm');
- },
- onCancel: function () {
- this.handleAction('cancel');
- },
- onClickOverlay: function () {
- this.close('overlay');
- },
- close: function (action) {
- var _this = this;
- this.setData({ show: false });
- wx.nextTick(function () {
- _this.$emit('close', action);
- var callback = _this.data.callback;
- if (callback) {
- callback(action, _this);
- }
- });
- },
- stopLoading: function () {
- this.setData({
- loading: {
- confirm: false,
- cancel: false,
- },
- });
- },
- handleAction: function (action) {
- var _a;
- var _this = this;
- this.$emit(action, { dialog: this });
- var _b = this.data,
- asyncClose = _b.asyncClose,
- beforeClose = _b.beforeClose;
- if (!asyncClose && !beforeClose) {
- this.close(action);
- return;
- }
- this.setData(((_a = {}), (_a['loading.' + action] = true), _a));
- if (beforeClose) {
- utils_1.toPromise(beforeClose(action)).then(function (value) {
- if (value) {
- _this.close(action);
- } else {
- _this.stopLoading();
- }
- });
- }
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var button_1 = require("../mixins/button");
+var color_1 = require("../common/color");
+var utils_1 = require("../common/utils");
+(0, component_1.VantComponent)({
+ mixins: [button_1.button],
+ classes: ['cancle-button-class', 'confirm-button-class'],
+ props: {
+ show: {
+ type: Boolean,
+ observer: function (show) {
+ !show && this.stopLoading();
+ },
+ },
+ title: String,
+ message: String,
+ theme: {
+ type: String,
+ value: 'default',
+ },
+ confirmButtonId: String,
+ className: String,
+ customStyle: String,
+ asyncClose: Boolean,
+ messageAlign: String,
+ beforeClose: null,
+ overlayStyle: String,
+ useSlot: Boolean,
+ useTitleSlot: Boolean,
+ useConfirmButtonSlot: Boolean,
+ useCancelButtonSlot: Boolean,
+ showCancelButton: Boolean,
+ closeOnClickOverlay: Boolean,
+ confirmButtonOpenType: String,
+ width: null,
+ zIndex: {
+ type: Number,
+ value: 2000,
+ },
+ confirmButtonText: {
+ type: String,
+ value: '确认',
+ },
+ cancelButtonText: {
+ type: String,
+ value: '取消',
+ },
+ confirmButtonColor: {
+ type: String,
+ value: color_1.RED,
+ },
+ cancelButtonColor: {
+ type: String,
+ value: color_1.GRAY,
+ },
+ showConfirmButton: {
+ type: Boolean,
+ value: true,
+ },
+ overlay: {
+ type: Boolean,
+ value: true,
+ },
+ transition: {
+ type: String,
+ value: 'scale',
+ },
+ },
+ data: {
+ loading: {
+ confirm: false,
+ cancel: false,
+ },
+ callback: (function () { }),
+ },
+ methods: {
+ onConfirm: function () {
+ this.handleAction('confirm');
+ },
+ onCancel: function () {
+ this.handleAction('cancel');
+ },
+ onClickOverlay: function () {
+ this.close('overlay');
+ },
+ close: function (action) {
+ var _this = this;
+ this.setData({ show: false });
+ wx.nextTick(function () {
+ _this.$emit('close', action);
+ var callback = _this.data.callback;
+ if (callback) {
+ callback(action, _this);
+ }
+ });
+ },
+ stopLoading: function () {
+ this.setData({
+ loading: {
+ confirm: false,
+ cancel: false,
+ },
+ });
+ },
+ handleAction: function (action) {
+ var _a;
+ var _this = this;
+ this.$emit(action, { dialog: this });
+ var _b = this.data, asyncClose = _b.asyncClose, beforeClose = _b.beforeClose;
+ if (!asyncClose && !beforeClose) {
+ this.close(action);
+ return;
+ }
+ this.setData((_a = {},
+ _a["loading.".concat(action)] = true,
+ _a));
+ if (beforeClose) {
+ (0, utils_1.toPromise)(beforeClose(action)).then(function (value) {
+ if (value) {
+ _this.close(action);
+ }
+ else {
+ _this.stopLoading();
+ }
+ });
+ }
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.json
index d45a906..43417fc 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.json
@@ -1,9 +1,9 @@
-{
- "component": true,
- "usingComponents": {
- "van-popup": "../popup/index",
- "van-button": "../button/index",
- "van-goods-action": "../goods-action/index",
- "van-goods-action-button": "../goods-action-button/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-popup": "../popup/index",
+ "van-button": "../button/index",
+ "van-goods-action": "../goods-action/index",
+ "van-goods-action-button": "../goods-action-button/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.wxml
index 886d471..8e0bb22 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.wxml
@@ -1,113 +1,122 @@
-
-
-
-
-
-
-
- {{ message }}
-
-
-
-
- {{ cancelButtonText }}
-
-
- {{ confirmButtonText }}
-
-
-
-
-
+
+
+
+
+
+
+
+ {{ message }}
+
+
+
+
+ {{ cancelButtonText }}
+
+
+ {{ confirmButtonText }}
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.wxss
index c6bac95..507a789 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-dialog{top:45%!important;overflow:hidden;width:320px;width:var(--dialog-width,320px);font-size:16px;font-size:var(--dialog-font-size,16px);border-radius:16px;border-radius:var(--dialog-border-radius,16px);background-color:#fff;background-color:var(--dialog-background-color,#fff)}@media (max-width:321px){.van-dialog{width:90%;width:var(--dialog-small-screen-width,90%)}}.van-dialog__header{text-align:center;padding-top:24px;padding-top:var(--dialog-header-padding-top,24px);font-weight:500;font-weight:var(--dialog-header-font-weight,500);line-height:24px;line-height:var(--dialog-header-line-height,24px)}.van-dialog__header--isolated{padding:24px 0;padding:var(--dialog-header-isolated-padding,24px 0)}.van-dialog__message{overflow-y:auto;text-align:center;-webkit-overflow-scrolling:touch;font-size:14px;font-size:var(--dialog-message-font-size,14px);line-height:20px;line-height:var(--dialog-message-line-height,20px);max-height:60vh;max-height:var(--dialog-message-max-height,60vh);padding:24px;padding:var(--dialog-message-padding,24px)}.van-dialog__message-text{word-wrap:break-word}.van-dialog__message--hasTitle{padding-top:8px;padding-top:var(--dialog-has-title-message-padding-top,8px);color:#646566;color:var(--dialog-has-title-message-text-color,#646566)}.van-dialog__message--round-button{padding-bottom:16px;color:#323233}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__footer{display:-webkit-flex;display:flex}.van-dialog__footer--round-button{position:relative!important;padding:8px 24px 16px!important}.van-dialog__button{-webkit-flex:1;flex:1}.van-dialog__cancel,.van-dialog__confirm{border:0!important}.van-dialog-bounce-enter{-webkit-transform:translate3d(-50%,-50%,0) scale(.7);transform:translate3d(-50%,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{-webkit-transform:translate3d(-50%,-50%,0) scale(.9);transform:translate3d(-50%,-50%,0) scale(.9);opacity:0}
\ No newline at end of file
+@import '../common/index.wxss';.van-dialog{background-color:var(--dialog-background-color,#fff);border-radius:var(--dialog-border-radius,16px);font-size:var(--dialog-font-size,16px);overflow:hidden;top:45%!important;width:var(--dialog-width,320px)}@media (max-width:321px){.van-dialog{width:var(--dialog-small-screen-width,90%)}}.van-dialog__header{font-weight:var(--dialog-header-font-weight,500);line-height:var(--dialog-header-line-height,24px);padding-top:var(--dialog-header-padding-top,24px);text-align:center}.van-dialog__header--isolated{padding:var(--dialog-header-isolated-padding,24px 0)}.van-dialog__message{-webkit-overflow-scrolling:touch;font-size:var(--dialog-message-font-size,14px);line-height:var(--dialog-message-line-height,20px);max-height:var(--dialog-message-max-height,60vh);overflow-y:auto;padding:var(--dialog-message-padding,24px);text-align:center}.van-dialog__message-text{word-wrap:break-word}.van-dialog__message--hasTitle{color:var(--dialog-has-title-message-text-color,#646566);padding-top:var(--dialog-has-title-message-padding-top,8px)}.van-dialog__message--round-button{color:#323233;padding-bottom:16px}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex}.van-dialog__footer--round-button{padding:8px 24px 16px!important;position:relative!important}.van-dialog__button{flex:1}.van-dialog__cancel,.van-dialog__confirm{border:0!important}.van-dialog-bounce-enter{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.van-dialog-bounce-leave-active{opacity:0;transform:translate3d(-50%,-50%,0) scale(.9)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.js
index d039925..5c63844 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.js
@@ -1,14 +1,14 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-component_1.VantComponent({
- props: {
- dashed: Boolean,
- hairline: Boolean,
- contentPosition: String,
- fontSize: String,
- borderColor: String,
- textColor: String,
- customStyle: String,
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ dashed: Boolean,
+ hairline: Boolean,
+ contentPosition: String,
+ fontSize: String,
+ borderColor: String,
+ textColor: String,
+ customStyle: String,
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.json
index f719411..a89ef4d 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.json
@@ -1,4 +1,4 @@
-{
- "component": true,
- "usingComponents": {}
-}
+{
+ "component": true,
+ "usingComponents": {}
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxml
index 45e267e..f6a5a45 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxml
@@ -1,9 +1,9 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxs
index 6ecf3c4..215b14f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxs
@@ -1,18 +1,18 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
- return style([
- {
- 'border-color': data.borderColor,
- color: data.textColor,
- 'font-size': addUnit(data.fontSize),
- },
- data.customStyle,
- ]);
-}
-
-module.exports = {
- rootStyle: rootStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function rootStyle(data) {
+ return style([
+ {
+ 'border-color': data.borderColor,
+ color: data.textColor,
+ 'font-size': addUnit(data.fontSize),
+ },
+ data.customStyle,
+ ]);
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxss
index c055e3a..e91dc44 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-divider{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;margin:16px 0;margin:var(--divider-margin,16px 0);color:#969799;color:var(--divider-text-color,#969799);font-size:14px;font-size:var(--divider-font-size,14px);line-height:24px;line-height:var(--divider-line-height,24px);border:0 solid #ebedf0;border-color:var(--divider-border-color,#ebedf0)}.van-divider:after,.van-divider:before{display:block;-webkit-flex:1;flex:1;box-sizing:border-box;height:1px;border-color:inherit;border-style:inherit;border-width:1px 0 0}.van-divider:before{content:""}.van-divider--hairline:after,.van-divider--hairline:before{-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-divider--dashed{border-style:dashed}.van-divider--center:before,.van-divider--left:before,.van-divider--right:before{margin-right:16px;margin-right:var(--divider-content-padding,16px)}.van-divider--center:after,.van-divider--left:after,.van-divider--right:after{content:"";margin-left:16px;margin-left:var(--divider-content-padding,16px)}.van-divider--left:before{max-width:10%;max-width:var(--divider-content-left-width,10%)}.van-divider--right:after{max-width:10%;max-width:var(--divider-content-right-width,10%)}
\ No newline at end of file
+@import '../common/index.wxss';.van-divider{align-items:center;border:0 solid var(--divider-border-color,#ebedf0);color:var(--divider-text-color,#969799);display:flex;font-size:var(--divider-font-size,14px);line-height:var(--divider-line-height,24px);margin:var(--divider-margin,16px 0)}.van-divider:after,.van-divider:before{border-color:inherit;border-style:inherit;border-width:1px 0 0;box-sizing:border-box;display:block;flex:1;height:1px}.van-divider:before{content:""}.van-divider--hairline:after,.van-divider--hairline:before{transform:scaleY(.5)}.van-divider--dashed{border-style:dashed}.van-divider--center:before,.van-divider--left:before,.van-divider--right:before{margin-right:var(--divider-content-padding,16px)}.van-divider--center:after,.van-divider--left:after,.van-divider--right:after{content:"";margin-left:var(--divider-content-padding,16px)}.van-divider--left:before{max-width:var(--divider-content-left-width,10%)}.van-divider--right:after{max-width:var(--divider-content-right-width,10%)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.js
index b97d1d9..826c26a 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.js
@@ -1,117 +1,136 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var relation_1 = require('../common/relation');
-var component_1 = require('../common/component');
-component_1.VantComponent({
- field: true,
- relation: relation_1.useParent('dropdown-menu', function () {
- this.updateDataFromParent();
- }),
- props: {
- value: {
- type: null,
- observer: 'rerender',
- },
- title: {
- type: String,
- observer: 'rerender',
- },
- disabled: Boolean,
- titleClass: {
- type: String,
- observer: 'rerender',
- },
- options: {
- type: Array,
- value: [],
- observer: 'rerender',
- },
- popupStyle: String,
- },
- data: {
- transition: true,
- showPopup: false,
- showWrapper: false,
- displayTitle: '',
- },
- methods: {
- rerender: function () {
- var _this = this;
- wx.nextTick(function () {
- var _a;
- (_a = _this.parent) === null || _a === void 0
- ? void 0
- : _a.updateItemListData();
- });
- },
- updateDataFromParent: function () {
- if (this.parent) {
- var _a = this.parent.data,
- overlay = _a.overlay,
- duration = _a.duration,
- activeColor = _a.activeColor,
- closeOnClickOverlay = _a.closeOnClickOverlay,
- direction = _a.direction;
- this.setData({
- overlay: overlay,
- duration: duration,
- activeColor: activeColor,
- closeOnClickOverlay: closeOnClickOverlay,
- direction: direction,
- });
- }
- },
- onOpen: function () {
- this.$emit('open');
- },
- onOpened: function () {
- this.$emit('opened');
- },
- onClose: function () {
- this.$emit('close');
- },
- onClosed: function () {
- this.$emit('closed');
- this.setData({ showWrapper: false });
- },
- onOptionTap: function (event) {
- var option = event.currentTarget.dataset.option;
- var value = option.value;
- var shouldEmitChange = this.data.value !== value;
- this.setData({ showPopup: false, value: value });
- this.$emit('close');
- this.rerender();
- if (shouldEmitChange) {
- this.$emit('change', value);
- }
- },
- toggle: function (show, options) {
- var _this = this;
- var _a;
- if (options === void 0) {
- options = {};
- }
- var showPopup = this.data.showPopup;
- if (typeof show !== 'boolean') {
- show = !showPopup;
- }
- if (show === showPopup) {
- return;
- }
- this.setData({
- transition: !options.immediate,
- showPopup: show,
- });
- if (show) {
- (_a = this.parent) === null || _a === void 0
- ? void 0
- : _a.getChildWrapperStyle().then(function (wrapperStyle) {
- _this.setData({ wrapperStyle: wrapperStyle, showWrapper: true });
- _this.rerender();
- });
- } else {
- this.rerender();
- }
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var relation_1 = require("../common/relation");
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ classes: ['item-title-class'],
+ field: true,
+ relation: (0, relation_1.useParent)('dropdown-menu', function () {
+ this.updateDataFromParent();
+ }),
+ props: {
+ value: {
+ type: null,
+ observer: 'rerender',
+ },
+ title: {
+ type: String,
+ observer: 'rerender',
+ },
+ disabled: Boolean,
+ titleClass: {
+ type: String,
+ observer: 'rerender',
+ },
+ options: {
+ type: Array,
+ value: [],
+ observer: 'rerender',
+ },
+ popupStyle: String,
+ useBeforeToggle: {
+ type: Boolean,
+ value: false,
+ },
+ rootPortal: {
+ type: Boolean,
+ value: false,
+ },
+ },
+ data: {
+ transition: true,
+ showPopup: false,
+ showWrapper: false,
+ displayTitle: '',
+ safeAreaTabBar: false,
+ },
+ methods: {
+ rerender: function () {
+ var _this = this;
+ wx.nextTick(function () {
+ var _a;
+ (_a = _this.parent) === null || _a === void 0 ? void 0 : _a.updateItemListData();
+ });
+ },
+ updateDataFromParent: function () {
+ if (this.parent) {
+ var _a = this.parent.data, overlay = _a.overlay, duration = _a.duration, activeColor = _a.activeColor, closeOnClickOverlay = _a.closeOnClickOverlay, direction = _a.direction, safeAreaTabBar = _a.safeAreaTabBar;
+ this.setData({
+ overlay: overlay,
+ duration: duration,
+ activeColor: activeColor,
+ closeOnClickOverlay: closeOnClickOverlay,
+ direction: direction,
+ safeAreaTabBar: safeAreaTabBar,
+ });
+ }
+ },
+ onOpen: function () {
+ this.$emit('open');
+ },
+ onOpened: function () {
+ this.$emit('opened');
+ },
+ onClose: function () {
+ this.$emit('close');
+ },
+ onClosed: function () {
+ this.$emit('closed');
+ this.setData({ showWrapper: false });
+ },
+ onOptionTap: function (event) {
+ var option = event.currentTarget.dataset.option;
+ var value = option.value;
+ var shouldEmitChange = this.data.value !== value;
+ this.setData({ showPopup: false, value: value });
+ this.$emit('close');
+ this.rerender();
+ if (shouldEmitChange) {
+ this.$emit('change', value);
+ }
+ },
+ toggle: function (show, options) {
+ var _this = this;
+ if (options === void 0) { options = {}; }
+ var showPopup = this.data.showPopup;
+ if (typeof show !== 'boolean') {
+ show = !showPopup;
+ }
+ if (show === showPopup) {
+ return;
+ }
+ this.onBeforeToggle(show).then(function (status) {
+ var _a;
+ if (!status) {
+ return;
+ }
+ _this.setData({
+ transition: !options.immediate,
+ showPopup: show,
+ });
+ if (show) {
+ (_a = _this.parent) === null || _a === void 0 ? void 0 : _a.getChildWrapperStyle().then(function (wrapperStyle) {
+ _this.setData({ wrapperStyle: wrapperStyle, showWrapper: true });
+ _this.rerender();
+ });
+ }
+ else {
+ _this.rerender();
+ }
+ });
+ },
+ onBeforeToggle: function (status) {
+ var _this = this;
+ var useBeforeToggle = this.data.useBeforeToggle;
+ if (!useBeforeToggle) {
+ return Promise.resolve(true);
+ }
+ return new Promise(function (resolve) {
+ _this.$emit('before-toggle', {
+ status: status,
+ callback: function (value) { return resolve(value); },
+ });
+ });
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.json
index b30d74b..88d5409 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.json
@@ -1,8 +1,8 @@
-{
- "component": true,
- "usingComponents": {
- "van-popup": "../popup/index",
- "van-cell": "../cell/index",
- "van-icon": "../icon/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-popup": "../popup/index",
+ "van-cell": "../cell/index",
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.wxml
index f097276..63904f4 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.wxml
@@ -1,48 +1,50 @@
-
-
-
-
-
-
- {{ item.text }}
-
-
-
-
-
-
-
+
+
+
+
+
+
+ {{ item.text }}
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.wxss
index 7cab3f2..80505e9 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-dropdown-item{position:fixed;right:0;left:0;overflow:hidden}.van-dropdown-item__option{text-align:left}.van-dropdown-item__option--active .van-dropdown-item__icon,.van-dropdown-item__option--active .van-dropdown-item__title{color:#ee0a24;color:var(--dropdown-menu-option-active-color,#ee0a24)}.van-dropdown-item--up{top:0}.van-dropdown-item--down{bottom:0}.van-dropdown-item__icon{display:block;line-height:inherit}
\ No newline at end of file
+@import '../common/index.wxss';.van-dropdown-item{left:0;overflow:hidden;position:fixed;right:0}.van-dropdown-item__option{text-align:left}.van-dropdown-item__option--active .van-dropdown-item__icon,.van-dropdown-item__option--active .van-dropdown-item__title{color:var(--dropdown-menu-option-active-color,#ee0a24)}.van-dropdown-item--up{top:0}.van-dropdown-item--down{bottom:0}.van-dropdown-item__icon{display:block;line-height:inherit}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/shared.js b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/shared.js
index b02af38..c8ad2e5 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/shared.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/shared.js
@@ -1,2 +1,2 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.js
index 98c9eb5..aed2921 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.js
@@ -1,126 +1,122 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-var utils_1 = require('../common/utils');
-var ARRAY = [];
-component_1.VantComponent({
- field: true,
- relation: relation_1.useChildren('dropdown-item', function () {
- this.updateItemListData();
- }),
- props: {
- activeColor: {
- type: String,
- observer: 'updateChildrenData',
- },
- overlay: {
- type: Boolean,
- value: true,
- observer: 'updateChildrenData',
- },
- zIndex: {
- type: Number,
- value: 10,
- },
- duration: {
- type: Number,
- value: 200,
- observer: 'updateChildrenData',
- },
- direction: {
- type: String,
- value: 'down',
- observer: 'updateChildrenData',
- },
- closeOnClickOverlay: {
- type: Boolean,
- value: true,
- observer: 'updateChildrenData',
- },
- closeOnClickOutside: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- itemListData: [],
- },
- beforeCreate: function () {
- var windowHeight = utils_1.getSystemInfoSync().windowHeight;
- this.windowHeight = windowHeight;
- ARRAY.push(this);
- },
- destroyed: function () {
- var _this = this;
- ARRAY = ARRAY.filter(function (item) {
- return item !== _this;
- });
- },
- methods: {
- updateItemListData: function () {
- this.setData({
- itemListData: this.children.map(function (child) {
- return child.data;
- }),
- });
- },
- updateChildrenData: function () {
- this.children.forEach(function (child) {
- child.updateDataFromParent();
- });
- },
- toggleItem: function (active) {
- this.children.forEach(function (item, index) {
- var showPopup = item.data.showPopup;
- if (index === active) {
- item.toggle();
- } else if (showPopup) {
- item.toggle(false, { immediate: true });
- }
- });
- },
- close: function () {
- this.children.forEach(function (child) {
- child.toggle(false, { immediate: true });
- });
- },
- getChildWrapperStyle: function () {
- var _this = this;
- var _a = this.data,
- zIndex = _a.zIndex,
- direction = _a.direction;
- return utils_1.getRect(this, '.van-dropdown-menu').then(function (rect) {
- var _a = rect.top,
- top = _a === void 0 ? 0 : _a,
- _b = rect.bottom,
- bottom = _b === void 0 ? 0 : _b;
- var offset = direction === 'down' ? bottom : _this.windowHeight - top;
- var wrapperStyle = 'z-index: ' + zIndex + ';';
- if (direction === 'down') {
- wrapperStyle += 'top: ' + utils_1.addUnit(offset) + ';';
- } else {
- wrapperStyle += 'bottom: ' + utils_1.addUnit(offset) + ';';
- }
- return wrapperStyle;
- });
- },
- onTitleTap: function (event) {
- var _this = this;
- var index = event.currentTarget.dataset.index;
- var child = this.children[index];
- if (!child.data.disabled) {
- ARRAY.forEach(function (menuItem) {
- if (
- menuItem &&
- menuItem.data.closeOnClickOutside &&
- menuItem !== _this
- ) {
- menuItem.close();
- }
- });
- this.toggleItem(index);
- }
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+var utils_1 = require("../common/utils");
+var ARRAY = [];
+(0, component_1.VantComponent)({
+ field: true,
+ classes: ['title-class'],
+ relation: (0, relation_1.useChildren)('dropdown-item', function () {
+ this.updateItemListData();
+ }),
+ props: {
+ activeColor: {
+ type: String,
+ observer: 'updateChildrenData',
+ },
+ overlay: {
+ type: Boolean,
+ value: true,
+ observer: 'updateChildrenData',
+ },
+ zIndex: {
+ type: Number,
+ value: 10,
+ },
+ duration: {
+ type: Number,
+ value: 200,
+ observer: 'updateChildrenData',
+ },
+ direction: {
+ type: String,
+ value: 'down',
+ observer: 'updateChildrenData',
+ },
+ safeAreaTabBar: {
+ type: Boolean,
+ value: false,
+ },
+ closeOnClickOverlay: {
+ type: Boolean,
+ value: true,
+ observer: 'updateChildrenData',
+ },
+ closeOnClickOutside: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ data: {
+ itemListData: [],
+ },
+ beforeCreate: function () {
+ var windowHeight = (0, utils_1.getSystemInfoSync)().windowHeight;
+ this.windowHeight = windowHeight;
+ ARRAY.push(this);
+ },
+ destroyed: function () {
+ var _this = this;
+ ARRAY = ARRAY.filter(function (item) { return item !== _this; });
+ },
+ methods: {
+ updateItemListData: function () {
+ this.setData({
+ itemListData: this.children.map(function (child) { return child.data; }),
+ });
+ },
+ updateChildrenData: function () {
+ this.children.forEach(function (child) {
+ child.updateDataFromParent();
+ });
+ },
+ toggleItem: function (active) {
+ this.children.forEach(function (item, index) {
+ var showPopup = item.data.showPopup;
+ if (index === active) {
+ item.toggle();
+ }
+ else if (showPopup) {
+ item.toggle(false, { immediate: true });
+ }
+ });
+ },
+ close: function () {
+ this.children.forEach(function (child) {
+ child.toggle(false, { immediate: true });
+ });
+ },
+ getChildWrapperStyle: function () {
+ var _this = this;
+ var _a = this.data, zIndex = _a.zIndex, direction = _a.direction;
+ return (0, utils_1.getRect)(this, '.van-dropdown-menu').then(function (rect) {
+ var _a = rect.top, top = _a === void 0 ? 0 : _a, _b = rect.bottom, bottom = _b === void 0 ? 0 : _b;
+ var offset = direction === 'down' ? bottom : _this.windowHeight - top;
+ var wrapperStyle = "z-index: ".concat(zIndex, ";");
+ if (direction === 'down') {
+ wrapperStyle += "top: ".concat((0, utils_1.addUnit)(offset), ";");
+ }
+ else {
+ wrapperStyle += "bottom: ".concat((0, utils_1.addUnit)(offset), ";");
+ }
+ return wrapperStyle;
+ });
+ },
+ onTitleTap: function (event) {
+ var _this = this;
+ var index = event.currentTarget.dataset.index;
+ var child = this.children[index];
+ if (!child.data.disabled) {
+ ARRAY.forEach(function (menuItem) {
+ if (menuItem &&
+ menuItem.data.closeOnClickOutside &&
+ menuItem !== _this) {
+ menuItem.close();
+ }
+ });
+ this.toggleItem(index);
+ }
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxml
index 2d3451f..ec165a9 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxml
@@ -1,23 +1,23 @@
-
-
-
-
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxs
index ffa262f..6538854 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxs
@@ -1,16 +1,16 @@
-/* eslint-disable */
-function displayTitle(item) {
- if (item.title) {
- return item.title;
- }
-
- var match = item.options.filter(function(option) {
- return option.value === item.value;
- });
- var displayTitle = match.length ? match[0].text : '';
- return displayTitle;
-}
-
-module.exports = {
- displayTitle: displayTitle
-};
+/* eslint-disable */
+function displayTitle(item) {
+ if (item.title) {
+ return item.title;
+ }
+
+ var match = item.options.filter(function(option) {
+ return option.value === item.value;
+ });
+ var displayTitle = match.length ? match[0].text : '';
+ return displayTitle;
+}
+
+module.exports = {
+ displayTitle: displayTitle
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxss
index ec6caff..dba000e 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-dropdown-menu{display:-webkit-flex;display:flex;box-shadow:0 2px 12px rgba(100,101,102,.12);-webkit-user-select:none;user-select:none;height:50px;height:var(--dropdown-menu-height,50px);background-color:#fff;background-color:var(--dropdown-menu-background-color,#fff)}.van-dropdown-menu__item{display:-webkit-flex;display:flex;-webkit-flex:1;flex:1;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;min-width:0}.van-dropdown-menu__item:active{opacity:.7}.van-dropdown-menu__item--disabled:active{opacity:1}.van-dropdown-menu__item--disabled .van-dropdown-menu__title{color:#969799;color:var(--dropdown-menu-title-disabled-text-color,#969799)}.van-dropdown-menu__title{position:relative;box-sizing:border-box;max-width:100%;padding:0 8px;padding:var(--dropdown-menu-title-padding,0 8px);color:#323233;color:var(--dropdown-menu-title-text-color,#323233);font-size:15px;font-size:var(--dropdown-menu-title-font-size,15px);line-height:18px;line-height:var(--dropdown-menu-title-line-height,18px)}.van-dropdown-menu__title:after{position:absolute;top:50%;right:-4px;margin-top:-5px;border-color:transparent transparent currentcolor currentcolor;border-style:solid;border-width:3px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:.8;content:""}.van-dropdown-menu__title--active{color:#ee0a24;color:var(--dropdown-menu-title-active-text-color,#ee0a24)}.van-dropdown-menu__title--down:after{margin-top:-1px;-webkit-transform:rotate(135deg);transform:rotate(135deg)}
\ No newline at end of file
+@import '../common/index.wxss';.van-dropdown-menu{background-color:var(--dropdown-menu-background-color,#fff);box-shadow:var(--dropdown-menu-box-shadow,0 2px 12px hsla(210,1%,40%,.12));display:flex;height:var(--dropdown-menu-height,50px);-webkit-user-select:none;user-select:none}.van-dropdown-menu__item{align-items:center;display:flex;flex:1;justify-content:center;min-width:0}.van-dropdown-menu__item:active{opacity:.7}.van-dropdown-menu__item--disabled:active{opacity:1}.van-dropdown-menu__item--disabled .van-dropdown-menu__title{color:var(--dropdown-menu-title-disabled-text-color,#969799)}.van-dropdown-menu__title{box-sizing:border-box;color:var(--dropdown-menu-title-text-color,#323233);font-size:var(--dropdown-menu-title-font-size,15px);line-height:var(--dropdown-menu-title-line-height,18px);max-width:100%;padding:var(--dropdown-menu-title-padding,0 24px 0 8px);position:relative}.van-dropdown-menu__title:after{border-color:transparent transparent currentcolor currentcolor;border-style:solid;border-width:3px;content:"";margin-top:-5px;opacity:.8;position:absolute;right:11px;top:50%;transform:rotate(-45deg)}.van-dropdown-menu__title--active{color:var(--dropdown-menu-title-active-text-color,#ee0a24)}.van-dropdown-menu__title--down:after{margin-top:-1px;transform:rotate(135deg)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.js
index fa0bac9..755e638 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.js
@@ -1,12 +1,12 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-component_1.VantComponent({
- props: {
- description: String,
- image: {
- type: String,
- value: 'default',
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ description: String,
+ image: {
+ type: String,
+ value: 'default',
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.json
index 011372e..a89ef4d 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.json
@@ -1,4 +1,4 @@
-{
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
+{
+ "component": true,
+ "usingComponents": {}
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxml
index 75f6788..9c7b719 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxml
@@ -1,22 +1,22 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ description }}
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ description }}
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxs
index b7089d6..cf92ece 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxs
@@ -1,14 +1,15 @@
-/* eslint-disable */
-var PRESETS = ['error', 'search', 'default', 'network'];
-
-function imageUrl(image) {
- if (PRESETS.indexOf(image) !== -1) {
- return 'https://img.yzcdn.cn/vant/empty-image-' + image + '.png';
- }
-
- return image;
-}
-
-module.exports = {
- imageUrl: imageUrl,
-};
+/* eslint-disable */
+var PRESETS = ['error', 'search', 'default', 'network'];
+
+function imageUrl(image) {
+ if (PRESETS.indexOf(image) !== -1) {
+ return 'https://img.yzcdn.cn/vant/empty-image-' + image + '.png';
+ }
+
+ return image;
+}
+
+module.exports = {
+ imageUrl: imageUrl,
+};
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxss
index aeb9d4b..0fb74fe 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-empty{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;padding:32px 0}.van-empty__image{width:160px;height:160px}.van-empty__image:empty{display:none}.van-empty__image__img{width:100%;height:100%}.van-empty__image:not(:empty)+.van-empty__image{display:none}.van-empty__description{margin-top:16px;padding:0 60px;color:#969799;font-size:14px;line-height:20px}.van-empty__description:empty,.van-empty__description:not(:empty)+.van-empty__description{display:none}.van-empty__bottom{margin-top:24px}
\ No newline at end of file
+@import '../common/index.wxss';.van-empty{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:32px 0}.van-empty__image{height:160px;width:160px}.van-empty__image:empty{display:none}.van-empty__image__img{height:100%;width:100%}.van-empty__image:not(:empty)+.van-empty__image{display:none}.van-empty__description{color:#969799;font-size:14px;line-height:20px;margin-top:16px;padding:0 60px}.van-empty__description:empty,.van-empty__description:not(:empty)+.van-empty__description{display:none}.van-empty__bottom{margin-top:24px}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/field/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/field/index.js
index b2ea182..c20d266 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/field/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/field/index.js
@@ -1,151 +1,137 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-Object.defineProperty(exports, '__esModule', { value: true });
-var utils_1 = require('../common/utils');
-var component_1 = require('../common/component');
-var props_1 = require('./props');
-component_1.VantComponent({
- field: true,
- classes: ['input-class', 'right-icon-class', 'label-class'],
- props: __assign(
- __assign(
- __assign(__assign({}, props_1.commonProps), props_1.inputProps),
- props_1.textareaProps
- ),
- {
- size: String,
- icon: String,
- label: String,
- error: Boolean,
- center: Boolean,
- isLink: Boolean,
- leftIcon: String,
- rightIcon: String,
- autosize: null,
- required: Boolean,
- iconClass: String,
- clickable: Boolean,
- inputAlign: String,
- customStyle: String,
- errorMessage: String,
- arrowDirection: String,
- showWordLimit: Boolean,
- errorMessageAlign: String,
- readonly: {
- type: Boolean,
- observer: 'setShowClear',
- },
- clearable: {
- type: Boolean,
- observer: 'setShowClear',
- },
- border: {
- type: Boolean,
- value: true,
- },
- titleWidth: {
- type: String,
- value: '6.2em',
- },
- }
- ),
- data: {
- focused: false,
- innerValue: '',
- showClear: false,
- },
- created: function () {
- this.value = this.data.value;
- this.setData({ innerValue: this.value });
- },
- methods: {
- onInput: function (event) {
- var _a = (event.detail || {}).value,
- value = _a === void 0 ? '' : _a;
- this.value = value;
- this.setShowClear();
- this.emitChange();
- },
- onFocus: function (event) {
- this.focused = true;
- this.setShowClear();
- this.$emit('focus', event.detail);
- },
- onBlur: function (event) {
- this.focused = false;
- this.setShowClear();
- this.$emit('blur', event.detail);
- },
- onClickIcon: function () {
- this.$emit('click-icon');
- },
- onClickInput: function (event) {
- this.$emit('click-input', event.detail);
- },
- onClear: function () {
- var _this = this;
- this.setData({ innerValue: '' });
- this.value = '';
- this.setShowClear();
- utils_1.nextTick(function () {
- _this.emitChange();
- _this.$emit('clear', '');
- });
- },
- onConfirm: function (event) {
- var _a = (event.detail || {}).value,
- value = _a === void 0 ? '' : _a;
- this.value = value;
- this.setShowClear();
- this.$emit('confirm', value);
- },
- setValue: function (value) {
- this.value = value;
- this.setShowClear();
- if (value === '') {
- this.setData({ innerValue: '' });
- }
- this.emitChange();
- },
- onLineChange: function (event) {
- this.$emit('linechange', event.detail);
- },
- onKeyboardHeightChange: function (event) {
- this.$emit('keyboardheightchange', event.detail);
- },
- emitChange: function () {
- var _this = this;
- this.setData({ value: this.value });
- utils_1.nextTick(function () {
- _this.$emit('input', _this.value);
- _this.$emit('change', _this.value);
- });
- },
- setShowClear: function () {
- var _a = this.data,
- clearable = _a.clearable,
- readonly = _a.readonly;
- var _b = this,
- focused = _b.focused,
- value = _b.value;
- this.setData({
- showClear: !!clearable && !!focused && !!value && !readonly,
- });
- },
- noop: function () {},
- },
-});
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var utils_1 = require("../common/utils");
+var component_1 = require("../common/component");
+var props_1 = require("./props");
+(0, component_1.VantComponent)({
+ field: true,
+ classes: ['input-class', 'right-icon-class', 'label-class'],
+ props: __assign(__assign(__assign(__assign({}, props_1.commonProps), props_1.inputProps), props_1.textareaProps), { size: String, icon: String, label: String, error: Boolean, center: Boolean, isLink: Boolean, leftIcon: String, rightIcon: String, autosize: null, required: Boolean, iconClass: String, clickable: Boolean, inputAlign: String, customStyle: String, errorMessage: String, arrowDirection: String, showWordLimit: Boolean, errorMessageAlign: String, readonly: {
+ type: Boolean,
+ observer: 'setShowClear',
+ }, clearable: {
+ type: Boolean,
+ observer: 'setShowClear',
+ }, clearTrigger: {
+ type: String,
+ value: 'focus',
+ }, border: {
+ type: Boolean,
+ value: true,
+ }, titleWidth: {
+ type: String,
+ value: '6.2em',
+ }, clearIcon: {
+ type: String,
+ value: 'clear',
+ }, extraEventParams: {
+ type: Boolean,
+ value: false,
+ } }),
+ data: {
+ focused: false,
+ innerValue: '',
+ showClear: false,
+ },
+ created: function () {
+ this.value = this.data.value;
+ this.setData({ innerValue: this.value });
+ },
+ methods: {
+ formatValue: function (value) {
+ var maxlength = this.data.maxlength;
+ if (maxlength !== -1 && value.length > maxlength) {
+ return value.slice(0, maxlength);
+ }
+ return value;
+ },
+ onInput: function (event) {
+ var _a = (event.detail || {}).value, value = _a === void 0 ? '' : _a;
+ var formatValue = this.formatValue(value);
+ this.value = formatValue;
+ this.setShowClear();
+ return this.emitChange(__assign(__assign({}, event.detail), { value: formatValue }));
+ },
+ onFocus: function (event) {
+ this.focused = true;
+ this.setShowClear();
+ this.$emit('focus', event.detail);
+ },
+ onBlur: function (event) {
+ this.focused = false;
+ this.setShowClear();
+ this.$emit('blur', event.detail);
+ },
+ onClickIcon: function () {
+ this.$emit('click-icon');
+ },
+ onClickInput: function (event) {
+ this.$emit('click-input', event.detail);
+ },
+ onClear: function () {
+ var _this = this;
+ this.setData({ innerValue: '' });
+ this.value = '';
+ this.setShowClear();
+ (0, utils_1.nextTick)(function () {
+ _this.emitChange({ value: '' });
+ _this.$emit('clear', '');
+ });
+ },
+ onConfirm: function (event) {
+ var _a = (event.detail || {}).value, value = _a === void 0 ? '' : _a;
+ this.value = value;
+ this.setShowClear();
+ this.$emit('confirm', value);
+ },
+ setValue: function (value) {
+ this.value = value;
+ this.setShowClear();
+ if (value === '') {
+ this.setData({ innerValue: '' });
+ }
+ this.emitChange({ value: value });
+ },
+ onLineChange: function (event) {
+ this.$emit('linechange', event.detail);
+ },
+ onKeyboardHeightChange: function (event) {
+ this.$emit('keyboardheightchange', event.detail);
+ },
+ emitChange: function (detail) {
+ var extraEventParams = this.data.extraEventParams;
+ this.setData({ value: detail.value });
+ var result;
+ var data = extraEventParams
+ ? __assign(__assign({}, detail), { callback: function (data) {
+ result = data;
+ } }) : detail.value;
+ this.$emit('input', data);
+ this.$emit('change', data);
+ return result;
+ },
+ setShowClear: function () {
+ var _a = this.data, clearable = _a.clearable, readonly = _a.readonly, clearTrigger = _a.clearTrigger;
+ var _b = this, focused = _b.focused, value = _b.value;
+ var showClear = false;
+ if (clearable && !readonly) {
+ var hasValue = !!value;
+ var trigger = clearTrigger === 'always' || (clearTrigger === 'focus' && focused);
+ showClear = hasValue && trigger;
+ }
+ this.setData({ showClear: showClear });
+ },
+ noop: function () { },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/field/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/field/index.json
index 2c5d25e..5906c50 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/field/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/field/index.json
@@ -1,7 +1,7 @@
-{
- "component": true,
- "usingComponents": {
- "van-cell": "../cell/index",
- "van-icon": "../icon/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-cell": "../cell/index",
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxml
index d40e850..6018993 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxml
@@ -1,56 +1,56 @@
-
-
-
-
-
-
- {{ label }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ value.length >= maxlength ? maxlength : value.length }}/{{ maxlength }}
-
-
- {{ errorMessage }}
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxs
index 6b90dd2..78575b9 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxs
@@ -1,18 +1,18 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function inputStyle(autosize) {
- if (autosize && autosize.constructor === 'Object') {
- return style({
- 'min-height': addUnit(autosize.minHeight),
- 'max-height': addUnit(autosize.maxHeight),
- });
- }
-
- return '';
-}
-
-module.exports = {
- inputStyle: inputStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function inputStyle(autosize) {
+ if (autosize && autosize.constructor === 'Object') {
+ return style({
+ 'min-height': addUnit(autosize.minHeight),
+ 'max-height': addUnit(autosize.maxHeight),
+ });
+ }
+
+ return '';
+}
+
+module.exports = {
+ inputStyle: inputStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxss
index 171f613..5f7d306 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-field{--cell-icon-size:16px;--cell-icon-size:var(--field-icon-size,16px)}.van-field__label{color:#646566;color:var(--field-label-color,#646566)}.van-field__label--disabled{color:#c8c9cc;color:var(--field-disabled-text-color,#c8c9cc)}.van-field__body{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center}.van-field__body--textarea{box-sizing:border-box;padding:3.6px 0;line-height:1.2em;min-height:24px;min-height:var(--cell-line-height,24px)}.van-field__control:empty+.van-field__control{display:block}.van-field__control{position:relative;display:none;box-sizing:border-box;width:100%;margin:0;padding:0;line-height:inherit;text-align:left;background-color:initial;border:0;resize:none;color:#323233;color:var(--field-input-text-color,#323233);height:24px;height:var(--cell-line-height,24px);min-height:24px;min-height:var(--cell-line-height,24px)}.van-field__control:empty{display:none}.van-field__control--textarea{height:18px;height:var(--field-text-area-min-height,18px);min-height:18px;min-height:var(--field-text-area-min-height,18px)}.van-field__control--error{color:#ee0a24;color:var(--field-input-error-text-color,#ee0a24)}.van-field__control--disabled{background-color:initial;opacity:1;color:#c8c9cc;color:var(--field-input-disabled-text-color,#c8c9cc)}.van-field__control--center{text-align:center}.van-field__control--right{text-align:right}.van-field__control--custom{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;min-height:24px;min-height:var(--cell-line-height,24px)}.van-field__placeholder{position:absolute;top:0;right:0;left:0;pointer-events:none;color:#c8c9cc;color:var(--field-placeholder-text-color,#c8c9cc)}.van-field__placeholder--error{color:#ee0a24;color:var(--field-error-message-color,#ee0a24)}.van-field__icon-root{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;min-height:24px;min-height:var(--cell-line-height,24px)}.van-field__clear-root,.van-field__icon-container{line-height:inherit;vertical-align:middle;padding:0 8px;padding:0 var(--padding-xs,8px);margin-right:-8px;margin-right:-var(--padding-xs,8px)}.van-field__button,.van-field__clear-root,.van-field__icon-container{-webkit-flex-shrink:0;flex-shrink:0}.van-field__clear-root{font-size:16px;font-size:var(--field-clear-icon-size,16px);color:#c8c9cc;color:var(--field-clear-icon-color,#c8c9cc)}.van-field__icon-container{font-size:16px;font-size:var(--field-icon-size,16px);color:#969799;color:var(--field-icon-container-color,#969799)}.van-field__icon-container:empty{display:none}.van-field__button{padding-left:8px;padding-left:var(--padding-xs,8px)}.van-field__button:empty{display:none}.van-field__error-message{text-align:left;font-size:12px;font-size:var(--field-error-message-text-font-size,12px);color:#ee0a24;color:var(--field-error-message-color,#ee0a24)}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{text-align:right;margin-top:4px;margin-top:var(--padding-base,4px);color:#646566;color:var(--field-word-limit-color,#646566);font-size:12px;font-size:var(--field-word-limit-font-size,12px);line-height:16px;line-height:var(--field-word-limit-line-height,16px)}.van-field__word-num{display:inline}.van-field__word-num--full{color:#ee0a24;color:var(--field-word-num-full-color,#ee0a24)}
\ No newline at end of file
+@import '../common/index.wxss';.van-field{--cell-icon-size:var(--field-icon-size,16px)}.van-field__label{color:var(--field-label-color,#646566)}.van-field__label--disabled{color:var(--field-disabled-text-color,#c8c9cc)}.van-field__body{align-items:center;display:flex}.van-field__body--textarea{box-sizing:border-box;line-height:1.2em;min-height:var(--cell-line-height,24px);padding:3.6px 0}.van-field__control:empty+.van-field__control{display:block}.van-field__control{background-color:initial;border:0;box-sizing:border-box;color:var(--field-input-text-color,#323233);display:none;height:var(--cell-line-height,24px);line-height:inherit;margin:0;min-height:var(--cell-line-height,24px);padding:0;position:relative;resize:none;text-align:left;width:100%}.van-field__control:empty{display:none}.van-field__control--textarea{height:var(--field-text-area-min-height,18px);min-height:var(--field-text-area-min-height,18px)}.van-field__control--error{color:var(--field-input-error-text-color,#ee0a24)}.van-field__control--disabled{background-color:initial;color:var(--field-input-disabled-text-color,#c8c9cc);opacity:1}.van-field__control--center{text-align:center}.van-field__control--right{text-align:right}.van-field__control--custom{align-items:center;display:flex;min-height:var(--cell-line-height,24px)}.van-field__placeholder{color:var(--field-placeholder-text-color,#c8c9cc);left:0;pointer-events:none;position:absolute;right:0;top:0}.van-field__placeholder--error{color:var(--field-error-message-color,#ee0a24)}.van-field__icon-root{align-items:center;display:flex;min-height:var(--cell-line-height,24px)}.van-field__clear-root,.van-field__icon-container{line-height:inherit;margin-right:calc(var(--padding-xs, 8px)*-1);padding:0 var(--padding-xs,8px);vertical-align:middle}.van-field__button,.van-field__clear-root,.van-field__icon-container{flex-shrink:0}.van-field__clear-root{color:var(--field-clear-icon-color,#c8c9cc);font-size:var(--field-clear-icon-size,16px)}.van-field__icon-container{color:var(--field-icon-container-color,#969799);font-size:var(--field-icon-size,16px)}.van-field__icon-container:empty{display:none}.van-field__button{padding-left:var(--padding-xs,8px)}.van-field__button:empty{display:none}.van-field__error-message{color:var(--field-error-message-color,#ee0a24);display:block;font-size:var(--field-error-message-text-font-size,12px);text-align:left}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{color:var(--field-word-limit-color,#646566);font-size:var(--field-word-limit-font-size,12px);line-height:var(--field-word-limit-line-height,16px);margin-top:var(--padding-base,4px);text-align:right}.van-field__word-num{display:inline}.van-field__word-num--full{color:var(--field-word-num-full-color,#ee0a24)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/field/input.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/field/input.wxml
index 06680df..e39a5ee 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/field/input.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/field/input.wxml
@@ -1,27 +1,29 @@
-
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/field/props.js b/src/openeuler/miniprogram_npm/@vant/weapp/field/props.js
index 6de6d6c..3cb8dca 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/field/props.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/field/props.js
@@ -1,66 +1,67 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.textareaProps = exports.inputProps = exports.commonProps = void 0;
-exports.commonProps = {
- value: {
- type: String,
- observer: function (value) {
- if (value !== this.value) {
- this.setData({ innerValue: value });
- this.value = value;
- }
- },
- },
- placeholder: String,
- placeholderStyle: String,
- placeholderClass: String,
- disabled: Boolean,
- maxlength: {
- type: Number,
- value: -1,
- },
- cursorSpacing: {
- type: Number,
- value: 50,
- },
- autoFocus: Boolean,
- focus: Boolean,
- cursor: {
- type: Number,
- value: -1,
- },
- selectionStart: {
- type: Number,
- value: -1,
- },
- selectionEnd: {
- type: Number,
- value: -1,
- },
- adjustPosition: {
- type: Boolean,
- value: true,
- },
- holdKeyboard: Boolean,
-};
-exports.inputProps = {
- type: {
- type: String,
- value: 'text',
- },
- password: Boolean,
- confirmType: String,
- confirmHold: Boolean,
-};
-exports.textareaProps = {
- autoHeight: Boolean,
- fixed: Boolean,
- showConfirmBar: {
- type: Boolean,
- value: true,
- },
- disableDefaultPadding: {
- type: Boolean,
- value: true,
- },
-};
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.textareaProps = exports.inputProps = exports.commonProps = void 0;
+exports.commonProps = {
+ value: {
+ type: String,
+ observer: function (value) {
+ if (value !== this.value) {
+ this.setData({ innerValue: value });
+ this.value = value;
+ }
+ },
+ },
+ placeholder: String,
+ placeholderStyle: String,
+ placeholderClass: String,
+ disabled: Boolean,
+ maxlength: {
+ type: Number,
+ value: -1,
+ },
+ cursorSpacing: {
+ type: Number,
+ value: 50,
+ },
+ autoFocus: Boolean,
+ focus: Boolean,
+ cursor: {
+ type: Number,
+ value: -1,
+ },
+ selectionStart: {
+ type: Number,
+ value: -1,
+ },
+ selectionEnd: {
+ type: Number,
+ value: -1,
+ },
+ adjustPosition: {
+ type: Boolean,
+ value: true,
+ },
+ holdKeyboard: Boolean,
+};
+exports.inputProps = {
+ type: {
+ type: String,
+ value: 'text',
+ },
+ password: Boolean,
+ confirmType: String,
+ confirmHold: Boolean,
+ alwaysEmbed: Boolean,
+};
+exports.textareaProps = {
+ autoHeight: Boolean,
+ fixed: Boolean,
+ showConfirmBar: {
+ type: Boolean,
+ value: true,
+ },
+ disableDefaultPadding: {
+ type: Boolean,
+ value: true,
+ },
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/field/textarea.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/field/textarea.wxml
index cceecb4..d42c184 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/field/textarea.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/field/textarea.wxml
@@ -1,29 +1,30 @@
-
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.js
index 9a617b6..5cfd017 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.js
@@ -1,40 +1,42 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-var button_1 = require('../mixins/button');
-var link_1 = require('../mixins/link');
-var open_type_1 = require('../mixins/open-type');
-component_1.VantComponent({
- mixins: [link_1.link, button_1.button, open_type_1.openType],
- relation: relation_1.useParent('goods-action'),
- props: {
- text: String,
- color: String,
- loading: Boolean,
- disabled: Boolean,
- plain: Boolean,
- type: {
- type: String,
- value: 'danger',
- },
- },
- methods: {
- onClick: function (event) {
- this.$emit('click', event.detail);
- this.jumpLink();
- },
- updateStyle: function () {
- if (this.parent == null) {
- return;
- }
- var index = this.index;
- var _a = this.parent.children,
- children = _a === void 0 ? [] : _a;
- this.setData({
- isFirst: index === 0,
- isLast: index === children.length - 1,
- });
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+var button_1 = require("../mixins/button");
+var link_1 = require("../mixins/link");
+(0, component_1.VantComponent)({
+ mixins: [link_1.link, button_1.button],
+ relation: (0, relation_1.useParent)('goods-action'),
+ props: {
+ text: String,
+ color: String,
+ size: {
+ type: String,
+ value: 'normal',
+ },
+ loading: Boolean,
+ disabled: Boolean,
+ plain: Boolean,
+ type: {
+ type: String,
+ value: 'danger',
+ },
+ },
+ methods: {
+ onClick: function (event) {
+ this.$emit('click', event.detail);
+ this.jumpLink();
+ },
+ updateStyle: function () {
+ if (this.parent == null) {
+ return;
+ }
+ var index = this.index;
+ var _a = this.parent.children, children = _a === void 0 ? [] : _a;
+ this.setData({
+ isFirst: index === 0,
+ isLast: index === children.length - 1,
+ });
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.json
index 79baa71..b567686 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-button": "../button/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-button": "../button/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.wxml
index 35c69a3..fc13593 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.wxml
@@ -1,30 +1,33 @@
-
-
- {{ text }}
-
-
+
+
+ {{ text }}
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.wxss
index 77d16c6..759a1d9 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';:host{-webkit-flex:1;flex:1}.van-goods-action-button{--button-warning-background-color:linear-gradient(90deg,#ffd01e,#ff8917);--button-warning-background-color:var(--goods-action-button-warning-color,linear-gradient(90deg,#ffd01e,#ff8917));--button-danger-background-color:linear-gradient(90deg,#ff6034,#ee0a24);--button-danger-background-color:var(--goods-action-button-danger-color,linear-gradient(90deg,#ff6034,#ee0a24));--button-default-height:40px;--button-default-height:var(--goods-action-button-height,40px);--button-line-height:20px;--button-line-height:var(--goods-action-button-line-height,20px);--button-plain-background-color:#fff;--button-plain-background-color:var(--goods-action-button-plain-color,#fff);display:block;--button-border-width:0}.van-goods-action-button--first{margin-left:5px;--button-border-radius:20px 0 0 20px;--button-border-radius:var(--goods-action-button-border-radius,20px) 0 0 var(--goods-action-button-border-radius,20px)}.van-goods-action-button--last{margin-right:5px;--button-border-radius:0 20px 20px 0;--button-border-radius:0 var(--goods-action-button-border-radius,20px) var(--goods-action-button-border-radius,20px) 0}.van-goods-action-button--first.van-goods-action-button--last{--button-border-radius:20px;--button-border-radius:var(--goods-action-button-border-radius,20px)}.van-goods-action-button--plain{--button-border-width:1px}.van-goods-action-button__inner{width:100%;font-weight:500!important;font-weight:var(--font-weight-bold,500)!important}@media (max-width:321px){.van-goods-action-button{font-size:13px}}
\ No newline at end of file
+@import '../common/index.wxss';:host{flex:1}.van-goods-action-button{--button-warning-background-color:var(--goods-action-button-warning-color,linear-gradient(to right,#ffd01e,#ff8917));--button-danger-background-color:var(--goods-action-button-danger-color,linear-gradient(to right,#ff6034,#ee0a24));--button-default-height:var(--goods-action-button-height,40px);--button-line-height:var(--goods-action-button-line-height,20px);--button-plain-background-color:var(--goods-action-button-plain-color,#fff);--button-border-width:0;display:block}.van-goods-action-button--first{--button-border-radius:999px 0 0 var(--goods-action-button-border-radius,999px);margin-left:5px}.van-goods-action-button--last{--button-border-radius:0 999px var(--goods-action-button-border-radius,999px) 0;margin-right:5px}.van-goods-action-button--first.van-goods-action-button--last{--button-border-radius:var(--goods-action-button-border-radius,999px)}.van-goods-action-button--plain{--button-border-width:1px}.van-goods-action-button__inner{font-weight:var(--font-weight-bold,500)!important;width:100%}@media (max-width:321px){.van-goods-action-button{font-size:13px}}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.js
index b208d43..828e1f5 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.js
@@ -1,24 +1,29 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var button_1 = require('../mixins/button');
-var link_1 = require('../mixins/link');
-var open_type_1 = require('../mixins/open-type');
-component_1.VantComponent({
- classes: ['icon-class', 'text-class'],
- mixins: [link_1.link, button_1.button, open_type_1.openType],
- props: {
- text: String,
- dot: Boolean,
- info: String,
- icon: String,
- disabled: Boolean,
- loading: Boolean,
- },
- methods: {
- onClick: function (event) {
- this.$emit('click', event.detail);
- this.jumpLink();
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var button_1 = require("../mixins/button");
+var link_1 = require("../mixins/link");
+(0, component_1.VantComponent)({
+ classes: ['icon-class', 'text-class', 'info-class'],
+ mixins: [link_1.link, button_1.button],
+ props: {
+ text: String,
+ dot: Boolean,
+ info: String,
+ icon: String,
+ size: String,
+ color: String,
+ classPrefix: {
+ type: String,
+ value: 'van-icon',
+ },
+ disabled: Boolean,
+ loading: Boolean,
+ },
+ methods: {
+ onClick: function (event) {
+ this.$emit('click', event.detail);
+ this.jumpLink();
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.json
index 0d8373d..93bfe8a 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.json
@@ -1,7 +1,7 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index",
- "van-button": "../button/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index",
+ "van-button": "../button/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxml
index accfee4..30c1a8c 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxml
@@ -1,35 +1,41 @@
-
-
-
- {{ text }}
-
+
+
+
+
+
+ {{ text }}
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxss
index eeef191..6e4758d 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-goods-action-icon{display:-webkit-flex!important;display:flex!important;-webkit-flex-direction:column;flex-direction:column;-webkit-justify-content:center!important;justify-content:center!important;line-height:1!important;border:none!important;font-size:10px!important;font-size:var(--goods-action-icon-font-size,10px)!important;color:#646566!important;color:var(--goods-action-icon-text-color,#646566)!important;min-width:48px;min-width:var(--goods-action-icon-width,48px);height:50px!important;height:var(--goods-action-icon-height,50px)!important}.van-goods-action-icon__icon{display:-webkit-flex;display:flex;margin:0 auto 5px;color:#323233;color:var(--goods-action-icon-color,#323233);font-size:18px;font-size:var(--goods-action-icon-size,18px)}
\ No newline at end of file
+@import '../common/index.wxss';.van-goods-action-icon{border:none!important;color:var(--goods-action-icon-text-color,#646566)!important;display:flex!important;flex-direction:column;font-size:var(--goods-action-icon-font-size,10px)!important;height:var(--goods-action-icon-height,50px)!important;justify-content:center!important;line-height:1!important;min-width:var(--goods-action-icon-width,48px)}.van-goods-action-icon__icon{color:var(--goods-action-icon-color,#323233);display:flex;font-size:var(--goods-action-icon-size,18px);margin:0 auto 5px}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.js
index 2f59255..e49bcbc 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.js
@@ -1,17 +1,17 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-component_1.VantComponent({
- relation: relation_1.useChildren('goods-action-button', function () {
- this.children.forEach(function (item) {
- item.updateStyle();
- });
- }),
- props: {
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useChildren)('goods-action-button', function () {
+ this.children.forEach(function (item) {
+ item.updateStyle();
+ });
+ }),
+ props: {
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.wxml
index c9bc8c7..569450c 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.wxml
@@ -1,5 +1,5 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.wxss
index d0def95..7793e77 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-goods-action{position:fixed;right:0;bottom:0;left:0;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;box-sizing:initial;height:50px;height:var(--goods-action-height,50px);background-color:#fff;background-color:var(--goods-action-background-color,#fff)}.van-goods-action--safe{padding-bottom:env(safe-area-inset-bottom)}
\ No newline at end of file
+@import '../common/index.wxss';.van-goods-action{align-items:center;background-color:var(--goods-action-background-color,#fff);bottom:0;box-sizing:initial;display:flex;height:var(--goods-action-height,50px);left:0;position:fixed;right:0}.van-goods-action--safe{padding-bottom:env(safe-area-inset-bottom)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.js
index 5fe1a24..a7d47a2 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.js
@@ -1,58 +1,54 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-var link_1 = require('../mixins/link');
-component_1.VantComponent({
- relation: relation_1.useParent('grid'),
- classes: ['content-class', 'icon-class', 'text-class'],
- mixins: [link_1.link],
- props: {
- icon: String,
- iconColor: String,
- dot: Boolean,
- info: null,
- badge: null,
- text: String,
- useSlot: Boolean,
- },
- data: {
- viewStyle: '',
- },
- mounted: function () {
- this.updateStyle();
- },
- methods: {
- updateStyle: function () {
- if (!this.parent) {
- return;
- }
- var _a = this.parent,
- data = _a.data,
- children = _a.children;
- var columnNum = data.columnNum,
- border = data.border,
- square = data.square,
- gutter = data.gutter,
- clickable = data.clickable,
- center = data.center,
- direction = data.direction,
- iconSize = data.iconSize;
- this.setData({
- center: center,
- border: border,
- square: square,
- gutter: gutter,
- clickable: clickable,
- direction: direction,
- iconSize: iconSize,
- index: children.indexOf(this),
- columnNum: columnNum,
- });
- },
- onClick: function () {
- this.$emit('click');
- this.jumpLink();
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+var link_1 = require("../mixins/link");
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useParent)('grid'),
+ classes: ['content-class', 'icon-class', 'text-class'],
+ mixins: [link_1.link],
+ props: {
+ icon: String,
+ iconColor: String,
+ iconPrefix: {
+ type: String,
+ value: 'van-icon',
+ },
+ dot: Boolean,
+ info: null,
+ badge: null,
+ text: String,
+ useSlot: Boolean,
+ },
+ data: {
+ viewStyle: '',
+ },
+ mounted: function () {
+ this.updateStyle();
+ },
+ methods: {
+ updateStyle: function () {
+ if (!this.parent) {
+ return;
+ }
+ var _a = this.parent, data = _a.data, children = _a.children;
+ var columnNum = data.columnNum, border = data.border, square = data.square, gutter = data.gutter, clickable = data.clickable, center = data.center, direction = data.direction, reverse = data.reverse, iconSize = data.iconSize;
+ this.setData({
+ center: center,
+ border: border,
+ square: square,
+ gutter: gutter,
+ clickable: clickable,
+ direction: direction,
+ reverse: reverse,
+ iconSize: iconSize,
+ index: children.indexOf(this),
+ columnNum: columnNum,
+ });
+ },
+ onClick: function () {
+ this.$emit('click');
+ this.jumpLink();
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.json
index 8abfe20..0a336c0 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxml
index a0fd702..e95087d 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxml
@@ -1,27 +1,27 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ text }}
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ text }}
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxs
index 7d09bf9..2cfe37d 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxs
@@ -1,32 +1,32 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function wrapperStyle(data) {
- var width = 100 / data.columnNum + '%';
-
- return style({
- width: width,
- 'padding-top': data.square ? width : null,
- 'padding-right': addUnit(data.gutter),
- 'margin-top':
- data.index >= data.columnNum && !data.square
- ? addUnit(data.gutter)
- : null,
- });
-}
-
-function contentStyle(data) {
- return data.square
- ? style({
- right: addUnit(data.gutter),
- bottom: addUnit(data.gutter),
- height: 'auto',
- })
- : '';
-}
-
-module.exports = {
- wrapperStyle: wrapperStyle,
- contentStyle: contentStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function wrapperStyle(data) {
+ var width = 100 / data.columnNum + '%';
+
+ return style({
+ width: width,
+ 'padding-top': data.square ? width : null,
+ 'padding-right': addUnit(data.gutter),
+ 'margin-top':
+ data.index >= data.columnNum && !data.square
+ ? addUnit(data.gutter)
+ : null,
+ });
+}
+
+function contentStyle(data) {
+ return data.square
+ ? style({
+ right: addUnit(data.gutter),
+ bottom: addUnit(data.gutter),
+ height: 'auto',
+ })
+ : '';
+}
+
+module.exports = {
+ wrapperStyle: wrapperStyle,
+ contentStyle: contentStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxss
index ed7facb..acaea84 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-grid-item{position:relative;float:left;box-sizing:border-box}.van-grid-item--square{height:0}.van-grid-item__content{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;box-sizing:border-box;height:100%;padding:16px 8px;padding:var(--grid-item-content-padding,16px 8px);background-color:#fff;background-color:var(--grid-item-content-background-color,#fff)}.van-grid-item__content:after{z-index:1;border-width:0 1px 1px 0;border-bottom-width:var(--border-width-base,1px);border-right-width:var(--border-width-base,1px);border-top-width:0}.van-grid-item__content--surround:after{border-width:1px;border-width:var(--border-width-base,1px)}.van-grid-item__content--center{-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center}.van-grid-item__content--square{position:absolute;top:0;right:0;left:0}.van-grid-item__content--horizontal{-webkit-flex-direction:row;flex-direction:row}.van-grid-item__content--horizontal .van-grid-item__icon+.van-grid-item__text{margin-top:0;margin-left:8px}.van-grid-item__content--clickable:active{background-color:#f2f3f5;background-color:var(--grid-item-content-active-color,#f2f3f5)}.van-grid-item__icon{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;font-size:26px;font-size:var(--grid-item-icon-size,26px);height:26px;height:var(--grid-item-icon-size,26px)}.van-grid-item__text{word-wrap:break-word;color:#646566;color:var(--grid-item-text-color,#646566);font-size:12px;font-size:var(--grid-item-text-font-size,12px)}.van-grid-item__icon+.van-grid-item__text{margin-top:8px}
\ No newline at end of file
+@import '../common/index.wxss';.van-grid-item{box-sizing:border-box;float:left;position:relative}.van-grid-item--square{height:0}.van-grid-item__content{background-color:var(--grid-item-content-background-color,#fff);box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:var(--grid-item-content-padding,16px 8px)}.van-grid-item__content:after{border-width:0 1px 1px 0;z-index:1}.van-grid-item__content--surround:after{border-width:1px}.van-grid-item__content--center{align-items:center;justify-content:center}.van-grid-item__content--square{left:0;position:absolute;right:0;top:0}.van-grid-item__content--horizontal{flex-direction:row}.van-grid-item__content--horizontal .van-grid-item__text{margin:0 0 0 8px}.van-grid-item__content--reverse{flex-direction:column-reverse}.van-grid-item__content--reverse .van-grid-item__text{margin:0 0 8px}.van-grid-item__content--horizontal.van-grid-item__content--reverse{flex-direction:row-reverse}.van-grid-item__content--horizontal.van-grid-item__content--reverse .van-grid-item__text{margin:0 8px 0 0}.van-grid-item__content--clickable:active{background-color:var(--grid-item-content-active-color,#f2f3f5)}.van-grid-item__icon{align-items:center;display:flex;font-size:var(--grid-item-icon-size,26px);height:var(--grid-item-icon-size,26px)}.van-grid-item__text{word-wrap:break-word;color:var(--grid-item-text-color,#646566);font-size:var(--grid-item-text-font-size,12px)}.van-grid-item__icon+.van-grid-item__text{margin-top:8px}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.js
index ef4008c..28d14f4 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.js
@@ -1,52 +1,57 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-component_1.VantComponent({
- relation: relation_1.useChildren('grid-item'),
- props: {
- square: {
- type: Boolean,
- observer: 'updateChildren',
- },
- gutter: {
- type: null,
- value: 0,
- observer: 'updateChildren',
- },
- clickable: {
- type: Boolean,
- observer: 'updateChildren',
- },
- columnNum: {
- type: Number,
- value: 4,
- observer: 'updateChildren',
- },
- center: {
- type: Boolean,
- value: true,
- observer: 'updateChildren',
- },
- border: {
- type: Boolean,
- value: true,
- observer: 'updateChildren',
- },
- direction: {
- type: String,
- observer: 'updateChildren',
- },
- iconSize: {
- type: String,
- observer: 'updateChildren',
- },
- },
- methods: {
- updateChildren: function () {
- this.children.forEach(function (child) {
- child.updateStyle();
- });
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useChildren)('grid-item'),
+ props: {
+ square: {
+ type: Boolean,
+ observer: 'updateChildren',
+ },
+ gutter: {
+ type: null,
+ value: 0,
+ observer: 'updateChildren',
+ },
+ clickable: {
+ type: Boolean,
+ observer: 'updateChildren',
+ },
+ columnNum: {
+ type: Number,
+ value: 4,
+ observer: 'updateChildren',
+ },
+ center: {
+ type: Boolean,
+ value: true,
+ observer: 'updateChildren',
+ },
+ border: {
+ type: Boolean,
+ value: true,
+ observer: 'updateChildren',
+ },
+ direction: {
+ type: String,
+ observer: 'updateChildren',
+ },
+ iconSize: {
+ type: String,
+ observer: 'updateChildren',
+ },
+ reverse: {
+ type: Boolean,
+ value: false,
+ observer: 'updateChildren',
+ },
+ },
+ methods: {
+ updateChildren: function () {
+ this.children.forEach(function (child) {
+ child.updateStyle();
+ });
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxml
index df228a6..2e4118f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxml
@@ -1,8 +1,8 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxs
index 2c837de..cd3b1bd 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxs
@@ -1,13 +1,13 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
- return style({
- 'padding-left': addUnit(data.gutter),
- });
-}
-
-module.exports = {
- rootStyle: rootStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function rootStyle(data) {
+ return style({
+ 'padding-left': addUnit(data.gutter),
+ });
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxss
index 327fc5e..e347440 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-grid{position:relative;box-sizing:border-box;overflow:hidden}
\ No newline at end of file
+@import '../common/index.wxss';.van-grid{box-sizing:border-box;overflow:hidden;position:relative}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.js
index be5ea09..6758092 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.js
@@ -1,22 +1,23 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-component_1.VantComponent({
- props: {
- dot: Boolean,
- info: null,
- size: null,
- color: String,
- customStyle: String,
- classPrefix: {
- type: String,
- value: 'van-icon',
- },
- name: String,
- },
- methods: {
- onClick: function () {
- this.$emit('click');
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ classes: ['info-class'],
+ props: {
+ dot: Boolean,
+ info: null,
+ size: null,
+ color: String,
+ customStyle: String,
+ classPrefix: {
+ type: String,
+ value: 'van-icon',
+ },
+ name: String,
+ },
+ methods: {
+ onClick: function () {
+ this.$emit('click');
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.json
index 82369bf..bf0ebe0 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-info": "../info/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-info": "../info/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxml
index 05bad39..91b47f9 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxml
@@ -1,20 +1,20 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxs
index 2fbbbbe..a906f76 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxs
@@ -1,39 +1,43 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function isImage(name) {
- return name.indexOf('/') !== -1;
-}
-
-function rootClass(data) {
- var classes = ['custom-class'];
-
- if (data.classPrefix != null) {
- classes.push(data.classPrefix);
- }
-
- if (isImage(data.name)) {
- classes.push('van-icon--image');
- } else if (data.classPrefix != null) {
- classes.push(data.classPrefix + '-' + data.name);
- }
-
- return classes.join(' ');
-}
-
-function rootStyle(data) {
- return style([
- {
- color: data.color,
- 'font-size': addUnit(data.size),
- },
- data.customStyle,
- ]);
-}
-
-module.exports = {
- isImage: isImage,
- rootClass: rootClass,
- rootStyle: rootStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function isImage(name) {
+ return name.indexOf('/') !== -1;
+}
+
+function rootClass(data) {
+ var classes = ['custom-class'];
+
+ if (data.classPrefix !== 'van-icon') {
+ classes.push('van-icon--custom')
+ }
+
+ if (data.classPrefix != null) {
+ classes.push(data.classPrefix);
+ }
+
+ if (isImage(data.name)) {
+ classes.push('van-icon--image');
+ } else if (data.classPrefix != null) {
+ classes.push(data.classPrefix + '-' + data.name);
+ }
+
+ return classes.join(' ');
+}
+
+function rootStyle(data) {
+ return style([
+ {
+ color: data.color,
+ 'font-size': addUnit(data.size),
+ },
+ data.customStyle,
+ ]);
+}
+
+module.exports = {
+ isImage: isImage,
+ rootClass: rootClass,
+ rootStyle: rootStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxss
index 2d5f879..c512f30 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';@font-face{font-weight:400;font-family:vant-icon;font-style:normal;font-display:auto;src:url(https://img01.yzcdn.cn/vant/vant-icon-f463a9.woff2) format("woff2"),url(https://img01.yzcdn.cn/vant/vant-icon-f463a9.woff) format("woff"),url(https://img01.yzcdn.cn/vant/vant-icon-f463a9.ttf) format("truetype")}.van-icon{position:relative;font:normal normal normal 14px/1 vant-icon;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased}.van-icon,.van-icon:before{display:inline-block}.van-icon-add-o:before{content:"\F000"}.van-icon-add-square:before{content:"\F001"}.van-icon-add:before{content:"\F002"}.van-icon-after-sale:before{content:"\F003"}.van-icon-aim:before{content:"\F004"}.van-icon-alipay:before{content:"\F005"}.van-icon-apps-o:before{content:"\F006"}.van-icon-arrow-down:before{content:"\F007"}.van-icon-arrow-left:before{content:"\F008"}.van-icon-arrow-up:before{content:"\F009"}.van-icon-arrow:before{content:"\F00A"}.van-icon-ascending:before{content:"\F00B"}.van-icon-audio:before{content:"\F00C"}.van-icon-award-o:before{content:"\F00D"}.van-icon-award:before{content:"\F00E"}.van-icon-back-top:before{content:"\F0E6"}.van-icon-bag-o:before{content:"\F00F"}.van-icon-bag:before{content:"\F010"}.van-icon-balance-list-o:before{content:"\F011"}.van-icon-balance-list:before{content:"\F012"}.van-icon-balance-o:before{content:"\F013"}.van-icon-balance-pay:before{content:"\F014"}.van-icon-bar-chart-o:before{content:"\F015"}.van-icon-bars:before{content:"\F016"}.van-icon-bell:before{content:"\F017"}.van-icon-bill-o:before{content:"\F018"}.van-icon-bill:before{content:"\F019"}.van-icon-birthday-cake-o:before{content:"\F01A"}.van-icon-bookmark-o:before{content:"\F01B"}.van-icon-bookmark:before{content:"\F01C"}.van-icon-browsing-history-o:before{content:"\F01D"}.van-icon-browsing-history:before{content:"\F01E"}.van-icon-brush-o:before{content:"\F01F"}.van-icon-bulb-o:before{content:"\F020"}.van-icon-bullhorn-o:before{content:"\F021"}.van-icon-calendar-o:before{content:"\F022"}.van-icon-card:before{content:"\F023"}.van-icon-cart-circle-o:before{content:"\F024"}.van-icon-cart-circle:before{content:"\F025"}.van-icon-cart-o:before{content:"\F026"}.van-icon-cart:before{content:"\F027"}.van-icon-cash-back-record:before{content:"\F028"}.van-icon-cash-on-deliver:before{content:"\F029"}.van-icon-cashier-o:before{content:"\F02A"}.van-icon-certificate:before{content:"\F02B"}.van-icon-chart-trending-o:before{content:"\F02C"}.van-icon-chat-o:before{content:"\F02D"}.van-icon-chat:before{content:"\F02E"}.van-icon-checked:before{content:"\F02F"}.van-icon-circle:before{content:"\F030"}.van-icon-clear:before{content:"\F031"}.van-icon-clock-o:before{content:"\F032"}.van-icon-clock:before{content:"\F033"}.van-icon-close:before{content:"\F034"}.van-icon-closed-eye:before{content:"\F035"}.van-icon-cluster-o:before{content:"\F036"}.van-icon-cluster:before{content:"\F037"}.van-icon-column:before{content:"\F038"}.van-icon-comment-circle-o:before{content:"\F039"}.van-icon-comment-circle:before{content:"\F03A"}.van-icon-comment-o:before{content:"\F03B"}.van-icon-comment:before{content:"\F03C"}.van-icon-completed:before{content:"\F03D"}.van-icon-contact:before{content:"\F03E"}.van-icon-coupon-o:before{content:"\F03F"}.van-icon-coupon:before{content:"\F040"}.van-icon-credit-pay:before{content:"\F041"}.van-icon-cross:before{content:"\F042"}.van-icon-debit-pay:before{content:"\F043"}.van-icon-delete-o:before{content:"\F0E9"}.van-icon-delete:before{content:"\F044"}.van-icon-descending:before{content:"\F045"}.van-icon-description:before{content:"\F046"}.van-icon-desktop-o:before{content:"\F047"}.van-icon-diamond-o:before{content:"\F048"}.van-icon-diamond:before{content:"\F049"}.van-icon-discount:before{content:"\F04A"}.van-icon-down:before{content:"\F04B"}.van-icon-ecard-pay:before{content:"\F04C"}.van-icon-edit:before{content:"\F04D"}.van-icon-ellipsis:before{content:"\F04E"}.van-icon-empty:before{content:"\F04F"}.van-icon-enlarge:before{content:"\F0E4"}.van-icon-envelop-o:before{content:"\F050"}.van-icon-exchange:before{content:"\F051"}.van-icon-expand-o:before{content:"\F052"}.van-icon-expand:before{content:"\F053"}.van-icon-eye-o:before{content:"\F054"}.van-icon-eye:before{content:"\F055"}.van-icon-fail:before{content:"\F056"}.van-icon-failure:before{content:"\F057"}.van-icon-filter-o:before{content:"\F058"}.van-icon-fire-o:before{content:"\F059"}.van-icon-fire:before{content:"\F05A"}.van-icon-flag-o:before{content:"\F05B"}.van-icon-flower-o:before{content:"\F05C"}.van-icon-font-o:before{content:"\F0EC"}.van-icon-font:before{content:"\F0EB"}.van-icon-free-postage:before{content:"\F05D"}.van-icon-friends-o:before{content:"\F05E"}.van-icon-friends:before{content:"\F05F"}.van-icon-gem-o:before{content:"\F060"}.van-icon-gem:before{content:"\F061"}.van-icon-gift-card-o:before{content:"\F062"}.van-icon-gift-card:before{content:"\F063"}.van-icon-gift-o:before{content:"\F064"}.van-icon-gift:before{content:"\F065"}.van-icon-gold-coin-o:before{content:"\F066"}.van-icon-gold-coin:before{content:"\F067"}.van-icon-good-job-o:before{content:"\F068"}.van-icon-good-job:before{content:"\F069"}.van-icon-goods-collect-o:before{content:"\F06A"}.van-icon-goods-collect:before{content:"\F06B"}.van-icon-graphic:before{content:"\F06C"}.van-icon-home-o:before{content:"\F06D"}.van-icon-hot-o:before{content:"\F06E"}.van-icon-hot-sale-o:before{content:"\F06F"}.van-icon-hot-sale:before{content:"\F070"}.van-icon-hot:before{content:"\F071"}.van-icon-hotel-o:before{content:"\F072"}.van-icon-idcard:before{content:"\F073"}.van-icon-info-o:before{content:"\F074"}.van-icon-info:before{content:"\F075"}.van-icon-invition:before{content:"\F076"}.van-icon-label-o:before{content:"\F077"}.van-icon-label:before{content:"\F078"}.van-icon-like-o:before{content:"\F079"}.van-icon-like:before{content:"\F07A"}.van-icon-live:before{content:"\F07B"}.van-icon-location-o:before{content:"\F07C"}.van-icon-location:before{content:"\F07D"}.van-icon-lock:before{content:"\F07E"}.van-icon-logistics:before{content:"\F07F"}.van-icon-manager-o:before{content:"\F080"}.van-icon-manager:before{content:"\F081"}.van-icon-map-marked:before{content:"\F082"}.van-icon-medal-o:before{content:"\F083"}.van-icon-medal:before{content:"\F084"}.van-icon-minus:before{content:"\F0E8"}.van-icon-more-o:before{content:"\F085"}.van-icon-more:before{content:"\F086"}.van-icon-music-o:before{content:"\F087"}.van-icon-music:before{content:"\F088"}.van-icon-new-arrival-o:before{content:"\F089"}.van-icon-new-arrival:before{content:"\F08A"}.van-icon-new-o:before{content:"\F08B"}.van-icon-new:before{content:"\F08C"}.van-icon-newspaper-o:before{content:"\F08D"}.van-icon-notes-o:before{content:"\F08E"}.van-icon-orders-o:before{content:"\F08F"}.van-icon-other-pay:before{content:"\F090"}.van-icon-paid:before{content:"\F091"}.van-icon-passed:before{content:"\F092"}.van-icon-pause-circle-o:before{content:"\F093"}.van-icon-pause-circle:before{content:"\F094"}.van-icon-pause:before{content:"\F095"}.van-icon-peer-pay:before{content:"\F096"}.van-icon-pending-payment:before{content:"\F097"}.van-icon-phone-circle-o:before{content:"\F098"}.van-icon-phone-circle:before{content:"\F099"}.van-icon-phone-o:before{content:"\F09A"}.van-icon-phone:before{content:"\F09B"}.van-icon-photo-fail:before{content:"\F0E5"}.van-icon-photo-o:before{content:"\F09C"}.van-icon-photo:before{content:"\F09D"}.van-icon-photograph:before{content:"\F09E"}.van-icon-play-circle-o:before{content:"\F09F"}.van-icon-play-circle:before{content:"\F0A0"}.van-icon-play:before{content:"\F0A1"}.van-icon-plus:before{content:"\F0A2"}.van-icon-point-gift-o:before{content:"\F0A3"}.van-icon-point-gift:before{content:"\F0A4"}.van-icon-points:before{content:"\F0A5"}.van-icon-printer:before{content:"\F0A6"}.van-icon-qr-invalid:before{content:"\F0A7"}.van-icon-qr:before{content:"\F0A8"}.van-icon-question-o:before{content:"\F0A9"}.van-icon-question:before{content:"\F0AA"}.van-icon-records:before{content:"\F0AB"}.van-icon-refund-o:before{content:"\F0AC"}.van-icon-replay:before{content:"\F0AD"}.van-icon-revoke:before{content:"\F0ED"}.van-icon-scan:before{content:"\F0AE"}.van-icon-search:before{content:"\F0AF"}.van-icon-send-gift-o:before{content:"\F0B0"}.van-icon-send-gift:before{content:"\F0B1"}.van-icon-service-o:before{content:"\F0B2"}.van-icon-service:before{content:"\F0B3"}.van-icon-setting-o:before{content:"\F0B4"}.van-icon-setting:before{content:"\F0B5"}.van-icon-share-o:before{content:"\F0E7"}.van-icon-share:before{content:"\F0B6"}.van-icon-shop-collect-o:before{content:"\F0B7"}.van-icon-shop-collect:before{content:"\F0B8"}.van-icon-shop-o:before{content:"\F0B9"}.van-icon-shop:before{content:"\F0BA"}.van-icon-shopping-cart-o:before{content:"\F0BB"}.van-icon-shopping-cart:before{content:"\F0BC"}.van-icon-shrink:before{content:"\F0BD"}.van-icon-sign:before{content:"\F0BE"}.van-icon-smile-comment-o:before{content:"\F0BF"}.van-icon-smile-comment:before{content:"\F0C0"}.van-icon-smile-o:before{content:"\F0C1"}.van-icon-smile:before{content:"\F0C2"}.van-icon-sort:before{content:"\F0EA"}.van-icon-star-o:before{content:"\F0C3"}.van-icon-star:before{content:"\F0C4"}.van-icon-stop-circle-o:before{content:"\F0C5"}.van-icon-stop-circle:before{content:"\F0C6"}.van-icon-stop:before{content:"\F0C7"}.van-icon-success:before{content:"\F0C8"}.van-icon-thumb-circle-o:before{content:"\F0C9"}.van-icon-thumb-circle:before{content:"\F0CA"}.van-icon-todo-list-o:before{content:"\F0CB"}.van-icon-todo-list:before{content:"\F0CC"}.van-icon-tosend:before{content:"\F0CD"}.van-icon-tv-o:before{content:"\F0CE"}.van-icon-umbrella-circle:before{content:"\F0CF"}.van-icon-underway-o:before{content:"\F0D0"}.van-icon-underway:before{content:"\F0D1"}.van-icon-upgrade:before{content:"\F0D2"}.van-icon-user-circle-o:before{content:"\F0D3"}.van-icon-user-o:before{content:"\F0D4"}.van-icon-video-o:before{content:"\F0D5"}.van-icon-video:before{content:"\F0D6"}.van-icon-vip-card-o:before{content:"\F0D7"}.van-icon-vip-card:before{content:"\F0D8"}.van-icon-volume-o:before{content:"\F0D9"}.van-icon-volume:before{content:"\F0DA"}.van-icon-wap-home-o:before{content:"\F0DB"}.van-icon-wap-home:before{content:"\F0DC"}.van-icon-wap-nav:before{content:"\F0DD"}.van-icon-warn-o:before{content:"\F0DE"}.van-icon-warning-o:before{content:"\F0DF"}.van-icon-warning:before{content:"\F0E0"}.van-icon-weapp-nav:before{content:"\F0E1"}.van-icon-wechat-pay:before{content:"\F0E2"}.van-icon-wechat:before{content:"\F0EE"}.van-icon-youzan-shield:before{content:"\F0E3"}:host{display:-webkit-inline-flex;display:inline-flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center}.van-icon--image{width:1em;height:1em}.van-icon__image{width:100%;height:100%}.van-icon__info{z-index:1}
\ No newline at end of file
+@import '../common/index.wxss';.van-icon{text-rendering:auto;-webkit-font-smoothing:antialiased;font:normal normal normal 14px/1 var(--van-icon-font-family,"vant-icon");font-size:inherit;position:relative}.van-icon,.van-icon:before{display:inline-block}.van-icon-contact:before{content:"\e753"}.van-icon-notes:before{content:"\e63c"}.van-icon-records:before{content:"\e63d"}.van-icon-cash-back-record:before{content:"\e63e"}.van-icon-newspaper:before{content:"\e63f"}.van-icon-discount:before{content:"\e640"}.van-icon-completed:before{content:"\e641"}.van-icon-user:before{content:"\e642"}.van-icon-description:before{content:"\e643"}.van-icon-list-switch:before{content:"\e6ad"}.van-icon-list-switching:before{content:"\e65a"}.van-icon-link-o:before{content:"\e751"}.van-icon-miniprogram-o:before{content:"\e752"}.van-icon-qq:before{content:"\e74e"}.van-icon-wechat-moments:before{content:"\e74f"}.van-icon-weibo:before{content:"\e750"}.van-icon-cash-o:before{content:"\e74d"}.van-icon-guide-o:before{content:"\e74c"}.van-icon-invitation:before{content:"\e6d6"}.van-icon-shield-o:before{content:"\e74b"}.van-icon-exchange:before{content:"\e6af"}.van-icon-eye:before{content:"\e6b0"}.van-icon-enlarge:before{content:"\e6b1"}.van-icon-expand-o:before{content:"\e6b2"}.van-icon-eye-o:before{content:"\e6b3"}.van-icon-expand:before{content:"\e6b4"}.van-icon-filter-o:before{content:"\e6b5"}.van-icon-fire:before{content:"\e6b6"}.van-icon-fail:before{content:"\e6b7"}.van-icon-failure:before{content:"\e6b8"}.van-icon-fire-o:before{content:"\e6b9"}.van-icon-flag-o:before{content:"\e6ba"}.van-icon-font:before{content:"\e6bb"}.van-icon-font-o:before{content:"\e6bc"}.van-icon-gem-o:before{content:"\e6bd"}.van-icon-flower-o:before{content:"\e6be"}.van-icon-gem:before{content:"\e6bf"}.van-icon-gift-card:before{content:"\e6c0"}.van-icon-friends:before{content:"\e6c1"}.van-icon-friends-o:before{content:"\e6c2"}.van-icon-gold-coin:before{content:"\e6c3"}.van-icon-gold-coin-o:before{content:"\e6c4"}.van-icon-good-job-o:before{content:"\e6c5"}.van-icon-gift:before{content:"\e6c6"}.van-icon-gift-o:before{content:"\e6c7"}.van-icon-gift-card-o:before{content:"\e6c8"}.van-icon-good-job:before{content:"\e6c9"}.van-icon-home-o:before{content:"\e6ca"}.van-icon-goods-collect:before{content:"\e6cb"}.van-icon-graphic:before{content:"\e6cc"}.van-icon-goods-collect-o:before{content:"\e6cd"}.van-icon-hot-o:before{content:"\e6ce"}.van-icon-info:before{content:"\e6cf"}.van-icon-hotel-o:before{content:"\e6d0"}.van-icon-info-o:before{content:"\e6d1"}.van-icon-hot-sale-o:before{content:"\e6d2"}.van-icon-hot:before{content:"\e6d3"}.van-icon-like:before{content:"\e6d4"}.van-icon-idcard:before{content:"\e6d5"}.van-icon-like-o:before{content:"\e6d7"}.van-icon-hot-sale:before{content:"\e6d8"}.van-icon-location-o:before{content:"\e6d9"}.van-icon-location:before{content:"\e6da"}.van-icon-label:before{content:"\e6db"}.van-icon-lock:before{content:"\e6dc"}.van-icon-label-o:before{content:"\e6dd"}.van-icon-map-marked:before{content:"\e6de"}.van-icon-logistics:before{content:"\e6df"}.van-icon-manager:before{content:"\e6e0"}.van-icon-more:before{content:"\e6e1"}.van-icon-live:before{content:"\e6e2"}.van-icon-manager-o:before{content:"\e6e3"}.van-icon-medal:before{content:"\e6e4"}.van-icon-more-o:before{content:"\e6e5"}.van-icon-music-o:before{content:"\e6e6"}.van-icon-music:before{content:"\e6e7"}.van-icon-new-arrival-o:before{content:"\e6e8"}.van-icon-medal-o:before{content:"\e6e9"}.van-icon-new-o:before{content:"\e6ea"}.van-icon-free-postage:before{content:"\e6eb"}.van-icon-newspaper-o:before{content:"\e6ec"}.van-icon-new-arrival:before{content:"\e6ed"}.van-icon-minus:before{content:"\e6ee"}.van-icon-orders-o:before{content:"\e6ef"}.van-icon-new:before{content:"\e6f0"}.van-icon-paid:before{content:"\e6f1"}.van-icon-notes-o:before{content:"\e6f2"}.van-icon-other-pay:before{content:"\e6f3"}.van-icon-pause-circle:before{content:"\e6f4"}.van-icon-pause:before{content:"\e6f5"}.van-icon-pause-circle-o:before{content:"\e6f6"}.van-icon-peer-pay:before{content:"\e6f7"}.van-icon-pending-payment:before{content:"\e6f8"}.van-icon-passed:before{content:"\e6f9"}.van-icon-plus:before{content:"\e6fa"}.van-icon-phone-circle-o:before{content:"\e6fb"}.van-icon-phone-o:before{content:"\e6fc"}.van-icon-printer:before{content:"\e6fd"}.van-icon-photo-fail:before{content:"\e6fe"}.van-icon-phone:before{content:"\e6ff"}.van-icon-photo-o:before{content:"\e700"}.van-icon-play-circle:before{content:"\e701"}.van-icon-play:before{content:"\e702"}.van-icon-phone-circle:before{content:"\e703"}.van-icon-point-gift-o:before{content:"\e704"}.van-icon-point-gift:before{content:"\e705"}.van-icon-play-circle-o:before{content:"\e706"}.van-icon-shrink:before{content:"\e707"}.van-icon-photo:before{content:"\e708"}.van-icon-qr:before{content:"\e709"}.van-icon-qr-invalid:before{content:"\e70a"}.van-icon-question-o:before{content:"\e70b"}.van-icon-revoke:before{content:"\e70c"}.van-icon-replay:before{content:"\e70d"}.van-icon-service:before{content:"\e70e"}.van-icon-question:before{content:"\e70f"}.van-icon-search:before{content:"\e710"}.van-icon-refund-o:before{content:"\e711"}.van-icon-service-o:before{content:"\e712"}.van-icon-scan:before{content:"\e713"}.van-icon-share:before{content:"\e714"}.van-icon-send-gift-o:before{content:"\e715"}.van-icon-share-o:before{content:"\e716"}.van-icon-setting:before{content:"\e717"}.van-icon-points:before{content:"\e718"}.van-icon-photograph:before{content:"\e719"}.van-icon-shop:before{content:"\e71a"}.van-icon-shop-o:before{content:"\e71b"}.van-icon-shop-collect-o:before{content:"\e71c"}.van-icon-shop-collect:before{content:"\e71d"}.van-icon-smile:before{content:"\e71e"}.van-icon-shopping-cart-o:before{content:"\e71f"}.van-icon-sign:before{content:"\e720"}.van-icon-sort:before{content:"\e721"}.van-icon-star-o:before{content:"\e722"}.van-icon-smile-comment-o:before{content:"\e723"}.van-icon-stop:before{content:"\e724"}.van-icon-stop-circle-o:before{content:"\e725"}.van-icon-smile-o:before{content:"\e726"}.van-icon-star:before{content:"\e727"}.van-icon-success:before{content:"\e728"}.van-icon-stop-circle:before{content:"\e729"}.van-icon-records-o:before{content:"\e72a"}.van-icon-shopping-cart:before{content:"\e72b"}.van-icon-tosend:before{content:"\e72c"}.van-icon-todo-list:before{content:"\e72d"}.van-icon-thumb-circle-o:before{content:"\e72e"}.van-icon-thumb-circle:before{content:"\e72f"}.van-icon-umbrella-circle:before{content:"\e730"}.van-icon-underway:before{content:"\e731"}.van-icon-upgrade:before{content:"\e732"}.van-icon-todo-list-o:before{content:"\e733"}.van-icon-tv-o:before{content:"\e734"}.van-icon-underway-o:before{content:"\e735"}.van-icon-user-o:before{content:"\e736"}.van-icon-vip-card-o:before{content:"\e737"}.van-icon-vip-card:before{content:"\e738"}.van-icon-send-gift:before{content:"\e739"}.van-icon-wap-home:before{content:"\e73a"}.van-icon-wap-nav:before{content:"\e73b"}.van-icon-volume-o:before{content:"\e73c"}.van-icon-video:before{content:"\e73d"}.van-icon-wap-home-o:before{content:"\e73e"}.van-icon-volume:before{content:"\e73f"}.van-icon-warning:before{content:"\e740"}.van-icon-weapp-nav:before{content:"\e741"}.van-icon-wechat-pay:before{content:"\e742"}.van-icon-warning-o:before{content:"\e743"}.van-icon-wechat:before{content:"\e744"}.van-icon-setting-o:before{content:"\e745"}.van-icon-youzan-shield:before{content:"\e746"}.van-icon-warn-o:before{content:"\e747"}.van-icon-smile-comment:before{content:"\e748"}.van-icon-user-circle-o:before{content:"\e749"}.van-icon-video-o:before{content:"\e74a"}.van-icon-add-square:before{content:"\e65c"}.van-icon-add:before{content:"\e65d"}.van-icon-arrow-down:before{content:"\e65e"}.van-icon-arrow-up:before{content:"\e65f"}.van-icon-arrow:before{content:"\e660"}.van-icon-after-sale:before{content:"\e661"}.van-icon-add-o:before{content:"\e662"}.van-icon-alipay:before{content:"\e663"}.van-icon-ascending:before{content:"\e664"}.van-icon-apps-o:before{content:"\e665"}.van-icon-aim:before{content:"\e666"}.van-icon-award:before{content:"\e667"}.van-icon-arrow-left:before{content:"\e668"}.van-icon-award-o:before{content:"\e669"}.van-icon-audio:before{content:"\e66a"}.van-icon-bag-o:before{content:"\e66b"}.van-icon-balance-list:before{content:"\e66c"}.van-icon-back-top:before{content:"\e66d"}.van-icon-bag:before{content:"\e66e"}.van-icon-balance-pay:before{content:"\e66f"}.van-icon-balance-o:before{content:"\e670"}.van-icon-bar-chart-o:before{content:"\e671"}.van-icon-bars:before{content:"\e672"}.van-icon-balance-list-o:before{content:"\e673"}.van-icon-birthday-cake-o:before{content:"\e674"}.van-icon-bookmark:before{content:"\e675"}.van-icon-bill:before{content:"\e676"}.van-icon-bell:before{content:"\e677"}.van-icon-browsing-history-o:before{content:"\e678"}.van-icon-browsing-history:before{content:"\e679"}.van-icon-bookmark-o:before{content:"\e67a"}.van-icon-bulb-o:before{content:"\e67b"}.van-icon-bullhorn-o:before{content:"\e67c"}.van-icon-bill-o:before{content:"\e67d"}.van-icon-calendar-o:before{content:"\e67e"}.van-icon-brush-o:before{content:"\e67f"}.van-icon-card:before{content:"\e680"}.van-icon-cart-o:before{content:"\e681"}.van-icon-cart-circle:before{content:"\e682"}.van-icon-cart-circle-o:before{content:"\e683"}.van-icon-cart:before{content:"\e684"}.van-icon-cash-on-deliver:before{content:"\e685"}.van-icon-cash-back-record-o:before{content:"\e686"}.van-icon-cashier-o:before{content:"\e687"}.van-icon-chart-trending-o:before{content:"\e688"}.van-icon-certificate:before{content:"\e689"}.van-icon-chat:before{content:"\e68a"}.van-icon-clear:before{content:"\e68b"}.van-icon-chat-o:before{content:"\e68c"}.van-icon-checked:before{content:"\e68d"}.van-icon-clock:before{content:"\e68e"}.van-icon-clock-o:before{content:"\e68f"}.van-icon-close:before{content:"\e690"}.van-icon-closed-eye:before{content:"\e691"}.van-icon-circle:before{content:"\e692"}.van-icon-cluster-o:before{content:"\e693"}.van-icon-column:before{content:"\e694"}.van-icon-comment-circle-o:before{content:"\e695"}.van-icon-cluster:before{content:"\e696"}.van-icon-comment:before{content:"\e697"}.van-icon-comment-o:before{content:"\e698"}.van-icon-comment-circle:before{content:"\e699"}.van-icon-completed-o:before{content:"\e69a"}.van-icon-credit-pay:before{content:"\e69b"}.van-icon-coupon:before{content:"\e69c"}.van-icon-debit-pay:before{content:"\e69d"}.van-icon-coupon-o:before{content:"\e69e"}.van-icon-contact-o:before{content:"\e69f"}.van-icon-descending:before{content:"\e6a0"}.van-icon-desktop-o:before{content:"\e6a1"}.van-icon-diamond-o:before{content:"\e6a2"}.van-icon-description-o:before{content:"\e6a3"}.van-icon-delete:before{content:"\e6a4"}.van-icon-diamond:before{content:"\e6a5"}.van-icon-delete-o:before{content:"\e6a6"}.van-icon-cross:before{content:"\e6a7"}.van-icon-edit:before{content:"\e6a8"}.van-icon-ellipsis:before{content:"\e6a9"}.van-icon-down:before{content:"\e6aa"}.van-icon-discount-o:before{content:"\e6ab"}.van-icon-ecard-pay:before{content:"\e6ac"}.van-icon-envelop-o:before{content:"\e6ae"}@font-face{font-display:auto;font-family:vant-icon;font-style:normal;font-weight:400;src:url(//at.alicdn.com/t/c/font_2553510_kfwma2yq1rs.woff2?t=1694918397022) format("woff2"),url(//at.alicdn.com/t/c/font_2553510_kfwma2yq1rs.woff?t=1694918397022) format("woff")}:host{align-items:center;display:inline-flex;justify-content:center}.van-icon--custom{position:relative}.van-icon--image{height:1em;width:1em}.van-icon__image{height:100%;width:100%}.van-icon__info{z-index:1}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/image/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/image/index.js
index 76265d0..40f6812 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/image/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/image/index.js
@@ -1,63 +1,66 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var button_1 = require('../mixins/button');
-var open_type_1 = require('../mixins/open-type');
-component_1.VantComponent({
- mixins: [button_1.button, open_type_1.openType],
- classes: ['custom-class', 'loading-class', 'error-class', 'image-class'],
- props: {
- src: {
- type: String,
- observer: function () {
- this.setData({
- error: false,
- loading: true,
- });
- },
- },
- round: Boolean,
- width: null,
- height: null,
- radius: null,
- lazyLoad: Boolean,
- useErrorSlot: Boolean,
- useLoadingSlot: Boolean,
- showMenuByLongpress: Boolean,
- fit: {
- type: String,
- value: 'fill',
- },
- showError: {
- type: Boolean,
- value: true,
- },
- showLoading: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- error: false,
- loading: true,
- viewStyle: '',
- },
- methods: {
- onLoad: function (event) {
- this.setData({
- loading: false,
- });
- this.$emit('load', event.detail);
- },
- onError: function (event) {
- this.setData({
- loading: false,
- error: true,
- });
- this.$emit('error', event.detail);
- },
- onClick: function (event) {
- this.$emit('click', event.detail);
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var button_1 = require("../mixins/button");
+(0, component_1.VantComponent)({
+ mixins: [button_1.button],
+ classes: ['custom-class', 'loading-class', 'error-class', 'image-class'],
+ props: {
+ src: {
+ type: String,
+ observer: function () {
+ this.setData({
+ error: false,
+ loading: true,
+ });
+ },
+ },
+ round: Boolean,
+ width: null,
+ height: null,
+ radius: null,
+ lazyLoad: Boolean,
+ useErrorSlot: Boolean,
+ useLoadingSlot: Boolean,
+ showMenuByLongpress: Boolean,
+ fit: {
+ type: String,
+ value: 'fill',
+ },
+ webp: {
+ type: Boolean,
+ value: false,
+ },
+ showError: {
+ type: Boolean,
+ value: true,
+ },
+ showLoading: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ data: {
+ error: false,
+ loading: true,
+ viewStyle: '',
+ },
+ methods: {
+ onLoad: function (event) {
+ this.setData({
+ loading: false,
+ });
+ this.$emit('load', event.detail);
+ },
+ onError: function (event) {
+ this.setData({
+ loading: false,
+ error: true,
+ });
+ this.$emit('error', event.detail);
+ },
+ onClick: function (event) {
+ this.$emit('click', event.detail);
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/image/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/image/index.json
index 8e23ad6..e00a588 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/image/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/image/index.json
@@ -1,7 +1,7 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index",
- "van-loading": "../loading/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index",
+ "van-loading": "../loading/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxml
index 4bfa0e0..a6f573c 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxml
@@ -1,34 +1,35 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxs
index 5a11335..cec14b8 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxs
@@ -1,32 +1,32 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
- return style([
- {
- width: addUnit(data.width),
- height: addUnit(data.height),
- 'border-radius': addUnit(data.radius),
- },
- data.radius ? 'overflow: hidden' : null,
- ]);
-}
-
-var FIT_MODE_MAP = {
- none: 'center',
- fill: 'scaleToFill',
- cover: 'aspectFill',
- contain: 'aspectFit',
- widthFix: 'widthFix',
- heightFix: 'heightFix',
-};
-
-function mode(fit) {
- return FIT_MODE_MAP[fit];
-}
-
-module.exports = {
- rootStyle: rootStyle,
- mode: mode,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function rootStyle(data) {
+ return style([
+ {
+ width: addUnit(data.width),
+ height: addUnit(data.height),
+ 'border-radius': addUnit(data.radius),
+ },
+ data.radius ? 'overflow: hidden' : null,
+ ]);
+}
+
+var FIT_MODE_MAP = {
+ none: 'center',
+ fill: 'scaleToFill',
+ cover: 'aspectFill',
+ contain: 'aspectFit',
+ widthFix: 'widthFix',
+ heightFix: 'heightFix',
+};
+
+function mode(fit) {
+ return FIT_MODE_MAP[fit];
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+ mode: mode,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxss
index 4758910..a9c6ebb 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-image{position:relative;display:inline-block}.van-image--round{overflow:hidden;border-radius:50%}.van-image--round .van-image__img{border-radius:inherit}.van-image__error,.van-image__img,.van-image__loading{display:block;width:100%;height:100%}.van-image__error,.van-image__loading{position:absolute;top:0;left:0;display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;color:#969799;color:var(--image-placeholder-text-color,#969799);font-size:14px;font-size:var(--image-placeholder-font-size,14px);background-color:#f7f8fa;background-color:var(--image-placeholder-background-color,#f7f8fa)}.van-image__loading-icon{color:#dcdee0;color:var(--image-loading-icon-color,#dcdee0);font-size:32px!important;font-size:var(--image-loading-icon-size,32px)!important}.van-image__error-icon{color:#dcdee0;color:var(--image-error-icon-color,#dcdee0);font-size:32px!important;font-size:var(--image-error-icon-size,32px)!important}
\ No newline at end of file
+@import '../common/index.wxss';.van-image{display:inline-block;position:relative}.van-image--round{border-radius:50%;overflow:hidden}.van-image--round .van-image__img{border-radius:inherit}.van-image__error,.van-image__img,.van-image__loading{display:block;height:100%;width:100%}.van-image__error,.van-image__loading{align-items:center;background-color:var(--image-placeholder-background-color,#f7f8fa);color:var(--image-placeholder-text-color,#969799);display:flex;flex-direction:column;font-size:var(--image-placeholder-font-size,14px);justify-content:center;left:0;position:absolute;top:0}.van-image__loading-icon{color:var(--image-loading-icon-color,#dcdee0);font-size:var(--image-loading-icon-size,32px)!important}.van-image__error-icon{color:var(--image-error-icon-color,#dcdee0);font-size:var(--image-error-icon-size,32px)!important}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.js
index 14ecfb7..9a361a9 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.js
@@ -1,28 +1,28 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var utils_1 = require('../common/utils');
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-component_1.VantComponent({
- relation: relation_1.useParent('index-bar'),
- props: {
- useSlot: Boolean,
- index: null,
- },
- data: {
- active: false,
- wrapperStyle: '',
- anchorStyle: '',
- },
- methods: {
- scrollIntoView: function (scrollTop) {
- var _this = this;
- utils_1.getRect(this, '.van-index-anchor-wrapper').then(function (rect) {
- wx.pageScrollTo({
- duration: 0,
- scrollTop: scrollTop + rect.top - _this.parent.data.stickyOffsetTop,
- });
- });
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var utils_1 = require("../common/utils");
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useParent)('index-bar'),
+ props: {
+ useSlot: Boolean,
+ index: null,
+ },
+ data: {
+ active: false,
+ wrapperStyle: '',
+ anchorStyle: '',
+ },
+ methods: {
+ scrollIntoView: function (scrollTop) {
+ var _this = this;
+ (0, utils_1.getRect)(this, '.van-index-anchor-wrapper').then(function (rect) {
+ wx.pageScrollTo({
+ duration: 0,
+ scrollTop: scrollTop + rect.top - _this.parent.data.stickyOffsetTop,
+ });
+ });
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.wxml
index 6304f1f..49affa7 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.wxml
@@ -1,14 +1,14 @@
-
-
-
-
- {{ index }}
-
-
-
+
+
+
+
+ {{ index }}
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.wxss
index b8c3c0a..4b91560 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-index-anchor{padding:0 16px;padding:var(--index-anchor-padding,0 16px);color:#323233;color:var(--index-anchor-text-color,#323233);font-weight:500;font-weight:var(--index-anchor-font-weight,500);font-size:14px;font-size:var(--index-anchor-font-size,14px);line-height:32px;line-height:var(--index-anchor-line-height,32px);background-color:initial;background-color:var(--index-anchor-background-color,transparent)}.van-index-anchor--active{right:0;left:0;color:#07c160;color:var(--index-anchor-active-text-color,#07c160);background-color:#fff;background-color:var(--index-anchor-active-background-color,#fff)}
\ No newline at end of file
+@import '../common/index.wxss';.van-index-anchor{background-color:var(--index-anchor-background-color,transparent);color:var(--index-anchor-text-color,#323233);font-size:var(--index-anchor-font-size,14px);font-weight:var(--index-anchor-font-weight,500);line-height:var(--index-anchor-line-height,32px);padding:var(--index-anchor-padding,0 16px)}.van-index-anchor--active{background-color:var(--index-anchor-active-background-color,#fff);color:var(--index-anchor-active-text-color,#07c160);left:0;right:0}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.js
index 1b6f0c0..afc5412 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.js
@@ -1,278 +1,243 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var color_1 = require('../common/color');
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-var utils_1 = require('../common/utils');
-var page_scroll_1 = require('../mixins/page-scroll');
-var indexList = function () {
- var indexList = [];
- var charCodeOfA = 'A'.charCodeAt(0);
- for (var i = 0; i < 26; i++) {
- indexList.push(String.fromCharCode(charCodeOfA + i));
- }
- return indexList;
-};
-component_1.VantComponent({
- relation: relation_1.useChildren('index-anchor', function () {
- this.updateData();
- }),
- props: {
- sticky: {
- type: Boolean,
- value: true,
- },
- zIndex: {
- type: Number,
- value: 1,
- },
- highlightColor: {
- type: String,
- value: color_1.GREEN,
- },
- stickyOffsetTop: {
- type: Number,
- value: 0,
- },
- indexList: {
- type: Array,
- value: indexList(),
- },
- },
- mixins: [
- page_scroll_1.pageScrollMixin(function (event) {
- this.scrollTop =
- (event === null || event === void 0 ? void 0 : event.scrollTop) || 0;
- this.onScroll();
- }),
- ],
- data: {
- activeAnchorIndex: null,
- showSidebar: false,
- },
- created: function () {
- this.scrollTop = 0;
- },
- methods: {
- updateData: function () {
- var _this = this;
- wx.nextTick(function () {
- if (_this.timer != null) {
- clearTimeout(_this.timer);
- }
- _this.timer = setTimeout(function () {
- _this.setData({
- showSidebar: !!_this.children.length,
- });
- _this.setRect().then(function () {
- _this.onScroll();
- });
- }, 0);
- });
- },
- setRect: function () {
- return Promise.all([
- this.setAnchorsRect(),
- this.setListRect(),
- this.setSiderbarRect(),
- ]);
- },
- setAnchorsRect: function () {
- var _this = this;
- return Promise.all(
- this.children.map(function (anchor) {
- return utils_1
- .getRect(anchor, '.van-index-anchor-wrapper')
- .then(function (rect) {
- Object.assign(anchor, {
- height: rect.height,
- top: rect.top + _this.scrollTop,
- });
- });
- })
- );
- },
- setListRect: function () {
- var _this = this;
- return utils_1.getRect(this, '.van-index-bar').then(function (rect) {
- Object.assign(_this, {
- height: rect.height,
- top: rect.top + _this.scrollTop,
- });
- });
- },
- setSiderbarRect: function () {
- var _this = this;
- return utils_1
- .getRect(this, '.van-index-bar__sidebar')
- .then(function (res) {
- _this.sidebar = {
- height: res.height,
- top: res.top,
- };
- });
- },
- setDiffData: function (_a) {
- var target = _a.target,
- data = _a.data;
- var diffData = {};
- Object.keys(data).forEach(function (key) {
- if (target.data[key] !== data[key]) {
- diffData[key] = data[key];
- }
- });
- if (Object.keys(diffData).length) {
- target.setData(diffData);
- }
- },
- getAnchorRect: function (anchor) {
- return utils_1
- .getRect(anchor, '.van-index-anchor-wrapper')
- .then(function (rect) {
- return {
- height: rect.height,
- top: rect.top,
- };
- });
- },
- getActiveAnchorIndex: function () {
- var _a = this,
- children = _a.children,
- scrollTop = _a.scrollTop;
- var _b = this.data,
- sticky = _b.sticky,
- stickyOffsetTop = _b.stickyOffsetTop;
- for (var i = this.children.length - 1; i >= 0; i--) {
- var preAnchorHeight = i > 0 ? children[i - 1].height : 0;
- var reachTop = sticky ? preAnchorHeight + stickyOffsetTop : 0;
- if (reachTop + scrollTop >= children[i].top) {
- return i;
- }
- }
- return -1;
- },
- onScroll: function () {
- var _this = this;
- var _a = this,
- _b = _a.children,
- children = _b === void 0 ? [] : _b,
- scrollTop = _a.scrollTop;
- if (!children.length) {
- return;
- }
- var _c = this.data,
- sticky = _c.sticky,
- stickyOffsetTop = _c.stickyOffsetTop,
- zIndex = _c.zIndex,
- highlightColor = _c.highlightColor;
- var active = this.getActiveAnchorIndex();
- this.setDiffData({
- target: this,
- data: {
- activeAnchorIndex: active,
- },
- });
- if (sticky) {
- var isActiveAnchorSticky_1 = false;
- if (active !== -1) {
- isActiveAnchorSticky_1 =
- children[active].top <= stickyOffsetTop + scrollTop;
- }
- children.forEach(function (item, index) {
- if (index === active) {
- var wrapperStyle = '';
- var anchorStyle =
- '\n color: ' + highlightColor + ';\n ';
- if (isActiveAnchorSticky_1) {
- wrapperStyle =
- '\n height: ' +
- children[index].height +
- 'px;\n ';
- anchorStyle =
- '\n position: fixed;\n top: ' +
- stickyOffsetTop +
- 'px;\n z-index: ' +
- zIndex +
- ';\n color: ' +
- highlightColor +
- ';\n ';
- }
- _this.setDiffData({
- target: item,
- data: {
- active: true,
- anchorStyle: anchorStyle,
- wrapperStyle: wrapperStyle,
- },
- });
- } else if (index === active - 1) {
- var currentAnchor = children[index];
- var currentOffsetTop = currentAnchor.top;
- var targetOffsetTop =
- index === children.length - 1
- ? _this.top
- : children[index + 1].top;
- var parentOffsetHeight = targetOffsetTop - currentOffsetTop;
- var translateY = parentOffsetHeight - currentAnchor.height;
- var anchorStyle =
- '\n position: relative;\n transform: translate3d(0, ' +
- translateY +
- 'px, 0);\n z-index: ' +
- zIndex +
- ';\n color: ' +
- highlightColor +
- ';\n ';
- _this.setDiffData({
- target: item,
- data: {
- active: true,
- anchorStyle: anchorStyle,
- },
- });
- } else {
- _this.setDiffData({
- target: item,
- data: {
- active: false,
- anchorStyle: '',
- wrapperStyle: '',
- },
- });
- }
- });
- }
- },
- onClick: function (event) {
- this.scrollToAnchor(event.target.dataset.index);
- },
- onTouchMove: function (event) {
- var sidebarLength = this.children.length;
- var touch = event.touches[0];
- var itemHeight = this.sidebar.height / sidebarLength;
- var index = Math.floor((touch.clientY - this.sidebar.top) / itemHeight);
- if (index < 0) {
- index = 0;
- } else if (index > sidebarLength - 1) {
- index = sidebarLength - 1;
- }
- this.scrollToAnchor(index);
- },
- onTouchStop: function () {
- this.scrollToAnchorIndex = null;
- },
- scrollToAnchor: function (index) {
- var _this = this;
- if (typeof index !== 'number' || this.scrollToAnchorIndex === index) {
- return;
- }
- this.scrollToAnchorIndex = index;
- var anchor = this.children.find(function (item) {
- return item.data.index === _this.data.indexList[index];
- });
- if (anchor) {
- anchor.scrollIntoView(this.scrollTop);
- this.$emit('select', anchor.data.index);
- }
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var color_1 = require("../common/color");
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+var utils_1 = require("../common/utils");
+var page_scroll_1 = require("../mixins/page-scroll");
+var indexList = function () {
+ var indexList = [];
+ var charCodeOfA = 'A'.charCodeAt(0);
+ for (var i = 0; i < 26; i++) {
+ indexList.push(String.fromCharCode(charCodeOfA + i));
+ }
+ return indexList;
+};
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useChildren)('index-anchor', function () {
+ this.updateData();
+ }),
+ props: {
+ sticky: {
+ type: Boolean,
+ value: true,
+ },
+ zIndex: {
+ type: Number,
+ value: 1,
+ },
+ highlightColor: {
+ type: String,
+ value: color_1.GREEN,
+ },
+ stickyOffsetTop: {
+ type: Number,
+ value: 0,
+ },
+ indexList: {
+ type: Array,
+ value: indexList(),
+ },
+ },
+ mixins: [
+ (0, page_scroll_1.pageScrollMixin)(function (event) {
+ this.scrollTop = (event === null || event === void 0 ? void 0 : event.scrollTop) || 0;
+ this.onScroll();
+ }),
+ ],
+ data: {
+ activeAnchorIndex: null,
+ showSidebar: false,
+ },
+ created: function () {
+ this.scrollTop = 0;
+ },
+ methods: {
+ updateData: function () {
+ var _this = this;
+ wx.nextTick(function () {
+ if (_this.timer != null) {
+ clearTimeout(_this.timer);
+ }
+ _this.timer = setTimeout(function () {
+ _this.setData({
+ showSidebar: !!_this.children.length,
+ });
+ _this.setRect().then(function () {
+ _this.onScroll();
+ });
+ }, 0);
+ });
+ },
+ setRect: function () {
+ return Promise.all([
+ this.setAnchorsRect(),
+ this.setListRect(),
+ this.setSiderbarRect(),
+ ]);
+ },
+ setAnchorsRect: function () {
+ var _this = this;
+ return Promise.all(this.children.map(function (anchor) {
+ return (0, utils_1.getRect)(anchor, '.van-index-anchor-wrapper').then(function (rect) {
+ Object.assign(anchor, {
+ height: rect.height,
+ top: rect.top + _this.scrollTop,
+ });
+ });
+ }));
+ },
+ setListRect: function () {
+ var _this = this;
+ return (0, utils_1.getRect)(this, '.van-index-bar').then(function (rect) {
+ if (!(0, utils_1.isDef)(rect)) {
+ return;
+ }
+ Object.assign(_this, {
+ height: rect.height,
+ top: rect.top + _this.scrollTop,
+ });
+ });
+ },
+ setSiderbarRect: function () {
+ var _this = this;
+ return (0, utils_1.getRect)(this, '.van-index-bar__sidebar').then(function (res) {
+ if (!(0, utils_1.isDef)(res)) {
+ return;
+ }
+ _this.sidebar = {
+ height: res.height,
+ top: res.top,
+ };
+ });
+ },
+ setDiffData: function (_a) {
+ var target = _a.target, data = _a.data;
+ var diffData = {};
+ Object.keys(data).forEach(function (key) {
+ if (target.data[key] !== data[key]) {
+ diffData[key] = data[key];
+ }
+ });
+ if (Object.keys(diffData).length) {
+ target.setData(diffData);
+ }
+ },
+ getAnchorRect: function (anchor) {
+ return (0, utils_1.getRect)(anchor, '.van-index-anchor-wrapper').then(function (rect) { return ({
+ height: rect.height,
+ top: rect.top,
+ }); });
+ },
+ getActiveAnchorIndex: function () {
+ var _a = this, children = _a.children, scrollTop = _a.scrollTop;
+ var _b = this.data, sticky = _b.sticky, stickyOffsetTop = _b.stickyOffsetTop;
+ for (var i = this.children.length - 1; i >= 0; i--) {
+ var preAnchorHeight = i > 0 ? children[i - 1].height : 0;
+ var reachTop = sticky ? preAnchorHeight + stickyOffsetTop : 0;
+ if (reachTop + scrollTop >= children[i].top) {
+ return i;
+ }
+ }
+ return -1;
+ },
+ onScroll: function () {
+ var _this = this;
+ var _a = this, _b = _a.children, children = _b === void 0 ? [] : _b, scrollTop = _a.scrollTop;
+ if (!children.length) {
+ return;
+ }
+ var _c = this.data, sticky = _c.sticky, stickyOffsetTop = _c.stickyOffsetTop, zIndex = _c.zIndex, highlightColor = _c.highlightColor;
+ var active = this.getActiveAnchorIndex();
+ this.setDiffData({
+ target: this,
+ data: {
+ activeAnchorIndex: active,
+ },
+ });
+ if (sticky) {
+ var isActiveAnchorSticky_1 = false;
+ if (active !== -1) {
+ isActiveAnchorSticky_1 =
+ children[active].top <= stickyOffsetTop + scrollTop;
+ }
+ children.forEach(function (item, index) {
+ if (index === active) {
+ var wrapperStyle = '';
+ var anchorStyle = "\n color: ".concat(highlightColor, ";\n ");
+ if (isActiveAnchorSticky_1) {
+ wrapperStyle = "\n height: ".concat(children[index].height, "px;\n ");
+ anchorStyle = "\n position: fixed;\n top: ".concat(stickyOffsetTop, "px;\n z-index: ").concat(zIndex, ";\n color: ").concat(highlightColor, ";\n ");
+ }
+ _this.setDiffData({
+ target: item,
+ data: {
+ active: true,
+ anchorStyle: anchorStyle,
+ wrapperStyle: wrapperStyle,
+ },
+ });
+ }
+ else if (index === active - 1) {
+ var currentAnchor = children[index];
+ var currentOffsetTop = currentAnchor.top;
+ var targetOffsetTop = index === children.length - 1
+ ? _this.top
+ : children[index + 1].top;
+ var parentOffsetHeight = targetOffsetTop - currentOffsetTop;
+ var translateY = parentOffsetHeight - currentAnchor.height;
+ var anchorStyle = "\n position: relative;\n transform: translate3d(0, ".concat(translateY, "px, 0);\n z-index: ").concat(zIndex, ";\n color: ").concat(highlightColor, ";\n ");
+ _this.setDiffData({
+ target: item,
+ data: {
+ active: true,
+ anchorStyle: anchorStyle,
+ },
+ });
+ }
+ else {
+ _this.setDiffData({
+ target: item,
+ data: {
+ active: false,
+ anchorStyle: '',
+ wrapperStyle: '',
+ },
+ });
+ }
+ });
+ }
+ },
+ onClick: function (event) {
+ this.scrollToAnchor(event.target.dataset.index);
+ },
+ onTouchMove: function (event) {
+ var sidebarLength = this.children.length;
+ var touch = event.touches[0];
+ var itemHeight = this.sidebar.height / sidebarLength;
+ var index = Math.floor((touch.clientY - this.sidebar.top) / itemHeight);
+ if (index < 0) {
+ index = 0;
+ }
+ else if (index > sidebarLength - 1) {
+ index = sidebarLength - 1;
+ }
+ this.scrollToAnchor(index);
+ },
+ onTouchStop: function () {
+ this.scrollToAnchorIndex = null;
+ },
+ scrollToAnchor: function (index) {
+ var _this = this;
+ if (typeof index !== 'number' || this.scrollToAnchorIndex === index) {
+ return;
+ }
+ this.scrollToAnchorIndex = index;
+ var anchor = this.children.find(function (item) { return item.data.index === _this.data.indexList[index]; });
+ if (anchor) {
+ anchor.scrollIntoView(this.scrollTop);
+ this.$emit('select', anchor.data.index);
+ }
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.wxml
index 019e256..19a59cf 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.wxml
@@ -1,22 +1,22 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.wxss
index dba5dc0..8568801 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-index-bar{position:relative}.van-index-bar__sidebar{position:fixed;top:50%;right:0;display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-user-select:none;user-select:none}.van-index-bar__index{font-weight:500;padding:0 4px 0 16px;padding:0 var(--padding-base,4px) 0 var(--padding-md,16px);font-size:10px;font-size:var(--index-bar-index-font-size,10px);line-height:14px;line-height:var(--index-bar-index-line-height,14px)}
\ No newline at end of file
+@import '../common/index.wxss';.van-index-bar{position:relative}.van-index-bar__sidebar{display:flex;flex-direction:column;position:fixed;right:0;text-align:center;top:50%;transform:translateY(-50%);-webkit-user-select:none;user-select:none}.van-index-bar__index{font-size:var(--index-bar-index-font-size,10px);font-weight:500;line-height:var(--index-bar-index-line-height,14px);padding:0 var(--padding-base,4px) 0 var(--padding-md,16px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/info/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/info/index.js
index 0137628..e61af73 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/info/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/info/index.js
@@ -1,10 +1,10 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-component_1.VantComponent({
- props: {
- dot: Boolean,
- info: null,
- customStyle: String,
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ dot: Boolean,
+ info: null,
+ customStyle: String,
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/info/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/info/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/info/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/info/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/info/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/info/index.wxml
index e2bd698..b39b524 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/info/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/info/index.wxml
@@ -1,7 +1,7 @@
-
-
-{{ dot ? '' : info }}
+
+
+{{ dot ? '' : info }}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/info/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/info/index.wxss
index 953136a..375ed5a 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/info/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/info/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-info{position:absolute;top:0;right:0;display:-webkit-inline-flex;display:inline-flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;white-space:nowrap;-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%);-webkit-transform-origin:100%;transform-origin:100%;height:16px;height:var(--info-size,16px);min-width:16px;min-width:var(--info-size,16px);padding:0 3px;padding:var(--info-padding,0 3px);color:#fff;color:var(--info-color,#fff);font-weight:500;font-weight:var(--info-font-weight,500);font-size:12px;font-size:var(--info-font-size,12px);font-family:-apple-system-font,Helvetica Neue,Arial,sans-serif;font-family:var(--info-font-family,-apple-system-font,Helvetica Neue,Arial,sans-serif);background-color:#ee0a24;background-color:var(--info-background-color,#ee0a24);border:1px solid #fff;border:var(--info-border-width,1px) solid var(--white,#fff);border-radius:16px;border-radius:var(--info-size,16px)}.van-info--dot{min-width:0;border-radius:100%;width:8px;width:var(--info-dot-size,8px);height:8px;height:var(--info-dot-size,8px);background-color:#ee0a24;background-color:var(--info-dot-color,#ee0a24)}
\ No newline at end of file
+@import '../common/index.wxss';.van-info{align-items:center;background-color:var(--info-background-color,#ee0a24);border:var(--info-border-width,1px) solid #fff;border-radius:var(--info-size,16px);box-sizing:border-box;color:var(--info-color,#fff);display:inline-flex;font-family:var(--info-font-family,-apple-system-font,Helvetica Neue,Arial,sans-serif);font-size:var(--info-font-size,12px);font-weight:var(--info-font-weight,500);height:var(--info-size,16px);justify-content:center;min-width:var(--info-size,16px);padding:var(--info-padding,0 3px);position:absolute;right:0;top:0;transform:translate(50%,-50%);transform-origin:100%;white-space:nowrap}.van-info--dot{background-color:var(--info-dot-color,#ee0a24);border-radius:100%;height:var(--info-dot-size,8px);min-width:0;width:var(--info-dot-size,8px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.js
index e78179d..be9c0ef 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.js
@@ -1,18 +1,18 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-component_1.VantComponent({
- props: {
- color: String,
- vertical: Boolean,
- type: {
- type: String,
- value: 'circular',
- },
- size: String,
- textSize: String,
- },
- data: {
- array12: Array.from({ length: 12 }),
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ color: String,
+ vertical: Boolean,
+ type: {
+ type: String,
+ value: 'circular',
+ },
+ size: String,
+ textSize: String,
+ },
+ data: {
+ array12: Array.from({ length: 12 }),
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxml
index d2090c9..7d4a539 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxml
@@ -1,19 +1,19 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxs
index 83c1c23..02a0b80 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxs
@@ -1,22 +1,22 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function spinnerStyle(data) {
- return style({
- color: data.color,
- width: addUnit(data.size),
- height: addUnit(data.size),
- });
-}
-
-function textStyle(data) {
- return style({
- 'font-size': addUnit(data.textSize),
- });
-}
-
-module.exports = {
- spinnerStyle: spinnerStyle,
- textStyle: textStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function spinnerStyle(data) {
+ return style({
+ color: data.color,
+ width: addUnit(data.size),
+ height: addUnit(data.size),
+ });
+}
+
+function textStyle(data) {
+ return style({
+ 'font-size': addUnit(data.textSize),
+ });
+}
+
+module.exports = {
+ spinnerStyle: spinnerStyle,
+ textStyle: textStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxss
index f28a6b4..fc84e84 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';:host{font-size:0;line-height:1}.van-loading{display:-webkit-inline-flex;display:inline-flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;color:#c8c9cc;color:var(--loading-spinner-color,#c8c9cc)}.van-loading__spinner{position:relative;box-sizing:border-box;width:30px;width:var(--loading-spinner-size,30px);max-width:100%;max-height:100%;height:30px;height:var(--loading-spinner-size,30px);-webkit-animation:van-rotate .8s linear infinite;animation:van-rotate .8s linear infinite;-webkit-animation:van-rotate var(--loading-spinner-animation-duration,.8s) linear infinite;animation:van-rotate var(--loading-spinner-animation-duration,.8s) linear infinite}.van-loading__spinner--spinner{-webkit-animation-timing-function:steps(12);animation-timing-function:steps(12)}.van-loading__spinner--circular{border:1px solid transparent;border-top-color:initial;border-radius:100%}.van-loading__text{margin-left:8px;margin-left:var(--padding-xs,8px);color:#969799;color:var(--loading-text-color,#969799);font-size:14px;font-size:var(--loading-text-font-size,14px);line-height:20px;line-height:var(--loading-text-line-height,20px)}.van-loading__text:empty{display:none}.van-loading--vertical{-webkit-flex-direction:column;flex-direction:column}.van-loading--vertical .van-loading__text{margin:8px 0 0;margin:var(--padding-xs,8px) 0 0}.van-loading__dot{position:absolute;top:0;left:0;width:100%;height:100%}.van-loading__dot:before{display:block;width:2px;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:" "}.van-loading__dot:first-of-type{-webkit-transform:rotate(30deg);transform:rotate(30deg);opacity:1}.van-loading__dot:nth-of-type(2){-webkit-transform:rotate(60deg);transform:rotate(60deg);opacity:.9375}.van-loading__dot:nth-of-type(3){-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:.875}.van-loading__dot:nth-of-type(4){-webkit-transform:rotate(120deg);transform:rotate(120deg);opacity:.8125}.van-loading__dot:nth-of-type(5){-webkit-transform:rotate(150deg);transform:rotate(150deg);opacity:.75}.van-loading__dot:nth-of-type(6){-webkit-transform:rotate(180deg);transform:rotate(180deg);opacity:.6875}.van-loading__dot:nth-of-type(7){-webkit-transform:rotate(210deg);transform:rotate(210deg);opacity:.625}.van-loading__dot:nth-of-type(8){-webkit-transform:rotate(240deg);transform:rotate(240deg);opacity:.5625}.van-loading__dot:nth-of-type(9){-webkit-transform:rotate(270deg);transform:rotate(270deg);opacity:.5}.van-loading__dot:nth-of-type(10){-webkit-transform:rotate(300deg);transform:rotate(300deg);opacity:.4375}.van-loading__dot:nth-of-type(11){-webkit-transform:rotate(330deg);transform:rotate(330deg);opacity:.375}.van-loading__dot:nth-of-type(12){-webkit-transform:rotate(1turn);transform:rotate(1turn);opacity:.3125}@-webkit-keyframes van-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes van-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}
\ No newline at end of file
+@import '../common/index.wxss';:host{font-size:0;line-height:1}.van-loading{align-items:center;color:var(--loading-spinner-color,#c8c9cc);display:inline-flex;justify-content:center}.van-loading__spinner{animation:van-rotate var(--loading-spinner-animation-duration,.8s) linear infinite;box-sizing:border-box;height:var(--loading-spinner-size,30px);max-height:100%;max-width:100%;position:relative;width:var(--loading-spinner-size,30px)}.van-loading__spinner--spinner{animation-timing-function:steps(12)}.van-loading__spinner--circular{border:1px solid transparent;border-radius:100%;border-top-color:initial}.van-loading__text{color:var(--loading-text-color,#969799);font-size:var(--loading-text-font-size,14px);line-height:var(--loading-text-line-height,20px);margin-left:var(--padding-xs,8px)}.van-loading__text:empty{display:none}.van-loading--vertical{flex-direction:column}.van-loading--vertical .van-loading__text{margin:var(--padding-xs,8px) 0 0}.van-loading__dot{height:100%;left:0;position:absolute;top:0;width:100%}.van-loading__dot:before{background-color:currentColor;border-radius:40%;content:" ";display:block;height:25%;margin:0 auto;width:2px}.van-loading__dot:first-of-type{opacity:1;transform:rotate(30deg)}.van-loading__dot:nth-of-type(2){opacity:.9375;transform:rotate(60deg)}.van-loading__dot:nth-of-type(3){opacity:.875;transform:rotate(90deg)}.van-loading__dot:nth-of-type(4){opacity:.8125;transform:rotate(120deg)}.van-loading__dot:nth-of-type(5){opacity:.75;transform:rotate(150deg)}.van-loading__dot:nth-of-type(6){opacity:.6875;transform:rotate(180deg)}.van-loading__dot:nth-of-type(7){opacity:.625;transform:rotate(210deg)}.van-loading__dot:nth-of-type(8){opacity:.5625;transform:rotate(240deg)}.van-loading__dot:nth-of-type(9){opacity:.5;transform:rotate(270deg)}.van-loading__dot:nth-of-type(10){opacity:.4375;transform:rotate(300deg)}.van-loading__dot:nth-of-type(11){opacity:.375;transform:rotate(330deg)}.van-loading__dot:nth-of-type(12){opacity:.3125;transform:rotate(1turn)}@keyframes van-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/basic.js b/src/openeuler/miniprogram_npm/@vant/weapp/mixins/basic.js
index 2a1f541..4373ad4 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/basic.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/mixins/basic.js
@@ -1,16 +1,14 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.basic = void 0;
-exports.basic = Behavior({
- methods: {
- $emit: function (name, detail, options) {
- this.triggerEvent(name, detail, options);
- },
- set: function (data) {
- this.setData(data);
- return new Promise(function (resolve) {
- return wx.nextTick(resolve);
- });
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.basic = void 0;
+exports.basic = Behavior({
+ methods: {
+ $emit: function (name, detail, options) {
+ this.triggerEvent(name, detail, options);
+ },
+ set: function (data) {
+ this.setData(data);
+ return new Promise(function (resolve) { return wx.nextTick(resolve); });
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/button.js b/src/openeuler/miniprogram_npm/@vant/weapp/mixins/button.js
index 640a9fe..8c1c499 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/button.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/mixins/button.js
@@ -1,18 +1,54 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.button = void 0;
-exports.button = Behavior({
- externalClasses: ['hover-class'],
- properties: {
- id: String,
- lang: String,
- businessId: Number,
- sessionFrom: String,
- sendMessageTitle: String,
- sendMessagePath: String,
- sendMessageImg: String,
- showMessageCard: Boolean,
- appParameter: String,
- ariaLabel: String,
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.button = void 0;
+var version_1 = require("../common/version");
+exports.button = Behavior({
+ externalClasses: ['hover-class'],
+ properties: {
+ id: String,
+ buttonId: String,
+ lang: String,
+ businessId: Number,
+ sessionFrom: String,
+ sendMessageTitle: String,
+ sendMessagePath: String,
+ sendMessageImg: String,
+ showMessageCard: Boolean,
+ appParameter: String,
+ ariaLabel: String,
+ openType: String,
+ getUserProfileDesc: String,
+ },
+ data: {
+ canIUseGetUserProfile: (0, version_1.canIUseGetUserProfile)(),
+ },
+ methods: {
+ onGetUserInfo: function (event) {
+ this.triggerEvent('getuserinfo', event.detail);
+ },
+ onContact: function (event) {
+ this.triggerEvent('contact', event.detail);
+ },
+ onGetPhoneNumber: function (event) {
+ this.triggerEvent('getphonenumber', event.detail);
+ },
+ onGetRealTimePhoneNumber: function (event) {
+ this.triggerEvent('getrealtimephonenumber', event.detail);
+ },
+ onError: function (event) {
+ this.triggerEvent('error', event.detail);
+ },
+ onLaunchApp: function (event) {
+ this.triggerEvent('launchapp', event.detail);
+ },
+ onOpenSetting: function (event) {
+ this.triggerEvent('opensetting', event.detail);
+ },
+ onAgreePrivacyAuthorization: function (event) {
+ this.triggerEvent('agreeprivacyauthorization', event.detail);
+ },
+ onChooseAvatar: function (event) {
+ this.triggerEvent('chooseavatar', event.detail);
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/link.js b/src/openeuler/miniprogram_npm/@vant/weapp/mixins/link.js
index 35959dd..14cb7e8 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/link.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/mixins/link.js
@@ -1,30 +1,27 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.link = void 0;
-exports.link = Behavior({
- properties: {
- url: String,
- linkType: {
- type: String,
- value: 'navigateTo',
- },
- },
- methods: {
- jumpLink: function (urlKey) {
- if (urlKey === void 0) {
- urlKey = 'url';
- }
- var url = this.data[urlKey];
- if (url) {
- if (
- this.data.linkType === 'navigateTo' &&
- getCurrentPages().length > 9
- ) {
- wx.redirectTo({ url: url });
- } else {
- wx[this.data.linkType]({ url: url });
- }
- }
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.link = void 0;
+exports.link = Behavior({
+ properties: {
+ url: String,
+ linkType: {
+ type: String,
+ value: 'navigateTo',
+ },
+ },
+ methods: {
+ jumpLink: function (urlKey) {
+ if (urlKey === void 0) { urlKey = 'url'; }
+ var url = this.data[urlKey];
+ if (url) {
+ if (this.data.linkType === 'navigateTo' &&
+ getCurrentPages().length > 9) {
+ wx.redirectTo({ url: url });
+ }
+ else {
+ wx[this.data.linkType]({ url: url });
+ }
+ }
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/open-type.js b/src/openeuler/miniprogram_npm/@vant/weapp/mixins/open-type.js
deleted file mode 100644
index d03bf8a..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/open-type.js
+++ /dev/null
@@ -1,29 +0,0 @@
-'use strict';
-// @ts-nocheck
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.openType = void 0;
-exports.openType = Behavior({
- properties: {
- openType: String,
- },
- methods: {
- bindGetUserInfo: function (event) {
- this.$emit('getuserinfo', event.detail);
- },
- bindContact: function (event) {
- this.$emit('contact', event.detail);
- },
- bindGetPhoneNumber: function (event) {
- this.$emit('getphonenumber', event.detail);
- },
- bindError: function (event) {
- this.$emit('error', event.detail);
- },
- bindLaunchApp: function (event) {
- this.$emit('launchapp', event.detail);
- },
- bindOpenSetting: function (event) {
- this.$emit('opensetting', event.detail);
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/page-scroll.js b/src/openeuler/miniprogram_npm/@vant/weapp/mixins/page-scroll.js
index 4636044..fce7049 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/page-scroll.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/mixins/page-scroll.js
@@ -1,40 +1,47 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.pageScrollMixin = void 0;
-var utils_1 = require('../common/utils');
-function onPageScroll(event) {
- var _a = utils_1.getCurrentPage().vanPageScroller,
- vanPageScroller = _a === void 0 ? [] : _a;
- vanPageScroller.forEach(function (scroller) {
- if (typeof scroller === 'function') {
- // @ts-ignore
- scroller(event);
- }
- });
-}
-exports.pageScrollMixin = function (scroller) {
- return Behavior({
- attached: function () {
- var page = utils_1.getCurrentPage();
- if (Array.isArray(page.vanPageScroller)) {
- page.vanPageScroller.push(scroller.bind(this));
- } else {
- page.vanPageScroller =
- typeof page.onPageScroll === 'function'
- ? [page.onPageScroll.bind(page), scroller.bind(this)]
- : [scroller.bind(this)];
- }
- page.onPageScroll = onPageScroll;
- },
- detached: function () {
- var _a;
- var page = utils_1.getCurrentPage();
- page.vanPageScroller =
- ((_a = page.vanPageScroller) === null || _a === void 0
- ? void 0
- : _a.filter(function (item) {
- return item !== scroller;
- })) || [];
- },
- });
-};
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.pageScrollMixin = void 0;
+var validator_1 = require("../common/validator");
+var utils_1 = require("../common/utils");
+function onPageScroll(event) {
+ var _a = (0, utils_1.getCurrentPage)().vanPageScroller, vanPageScroller = _a === void 0 ? [] : _a;
+ vanPageScroller.forEach(function (scroller) {
+ if (typeof scroller === 'function') {
+ // @ts-ignore
+ scroller(event);
+ }
+ });
+}
+function pageScrollMixin(scroller) {
+ return Behavior({
+ attached: function () {
+ var page = (0, utils_1.getCurrentPage)();
+ if (!(0, utils_1.isDef)(page)) {
+ return;
+ }
+ var _scroller = scroller.bind(this);
+ var _a = page.vanPageScroller, vanPageScroller = _a === void 0 ? [] : _a;
+ if ((0, validator_1.isFunction)(page.onPageScroll) && page.onPageScroll !== onPageScroll) {
+ vanPageScroller.push(page.onPageScroll.bind(page));
+ }
+ vanPageScroller.push(_scroller);
+ page.vanPageScroller = vanPageScroller;
+ page.onPageScroll = onPageScroll;
+ this._scroller = _scroller;
+ },
+ detached: function () {
+ var _this = this;
+ var page = (0, utils_1.getCurrentPage)();
+ if (!(0, utils_1.isDef)(page) || !(0, utils_1.isDef)(page.vanPageScroller)) {
+ return;
+ }
+ var vanPageScroller = page.vanPageScroller;
+ var index = vanPageScroller.findIndex(function (v) { return v === _this._scroller; });
+ if (index > -1) {
+ page.vanPageScroller.splice(index, 1);
+ }
+ this._scroller = undefined;
+ },
+ });
+}
+exports.pageScrollMixin = pageScrollMixin;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/touch.js b/src/openeuler/miniprogram_npm/@vant/weapp/mixins/touch.js
index 9026613..d762c2c 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/touch.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/mixins/touch.js
@@ -1,40 +1,40 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.touch = void 0;
-// @ts-nocheck
-var MIN_DISTANCE = 10;
-function getDirection(x, y) {
- if (x > y && x > MIN_DISTANCE) {
- return 'horizontal';
- }
- if (y > x && y > MIN_DISTANCE) {
- return 'vertical';
- }
- return '';
-}
-exports.touch = Behavior({
- methods: {
- resetTouchStatus: function () {
- this.direction = '';
- this.deltaX = 0;
- this.deltaY = 0;
- this.offsetX = 0;
- this.offsetY = 0;
- },
- touchStart: function (event) {
- this.resetTouchStatus();
- var touch = event.touches[0];
- this.startX = touch.clientX;
- this.startY = touch.clientY;
- },
- touchMove: function (event) {
- var touch = event.touches[0];
- this.deltaX = touch.clientX - this.startX;
- this.deltaY = touch.clientY - this.startY;
- this.offsetX = Math.abs(this.deltaX);
- this.offsetY = Math.abs(this.deltaY);
- this.direction =
- this.direction || getDirection(this.offsetX, this.offsetY);
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.touch = void 0;
+// @ts-nocheck
+var MIN_DISTANCE = 10;
+function getDirection(x, y) {
+ if (x > y && x > MIN_DISTANCE) {
+ return 'horizontal';
+ }
+ if (y > x && y > MIN_DISTANCE) {
+ return 'vertical';
+ }
+ return '';
+}
+exports.touch = Behavior({
+ methods: {
+ resetTouchStatus: function () {
+ this.direction = '';
+ this.deltaX = 0;
+ this.deltaY = 0;
+ this.offsetX = 0;
+ this.offsetY = 0;
+ },
+ touchStart: function (event) {
+ this.resetTouchStatus();
+ var touch = event.touches[0];
+ this.startX = touch.clientX;
+ this.startY = touch.clientY;
+ },
+ touchMove: function (event) {
+ var touch = event.touches[0];
+ this.deltaX = touch.clientX - this.startX;
+ this.deltaY = touch.clientY - this.startY;
+ this.offsetX = Math.abs(this.deltaX);
+ this.offsetY = Math.abs(this.deltaY);
+ this.direction =
+ this.direction || getDirection(this.offsetX, this.offsetY);
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/transition.js b/src/openeuler/miniprogram_npm/@vant/weapp/mixins/transition.js
index d1eaba7..4a1b62f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/transition.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/mixins/transition.js
@@ -1,155 +1,124 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.transition = void 0;
-// @ts-nocheck
-var utils_1 = require('../common/utils');
-var validator_1 = require('../common/validator');
-var getClassNames = function (name) {
- return {
- enter:
- 'van-' +
- name +
- '-enter van-' +
- name +
- '-enter-active enter-class enter-active-class',
- 'enter-to':
- 'van-' +
- name +
- '-enter-to van-' +
- name +
- '-enter-active enter-to-class enter-active-class',
- leave:
- 'van-' +
- name +
- '-leave van-' +
- name +
- '-leave-active leave-class leave-active-class',
- 'leave-to':
- 'van-' +
- name +
- '-leave-to van-' +
- name +
- '-leave-active leave-to-class leave-active-class',
- };
-};
-function transition(showDefaultValue) {
- return Behavior({
- properties: {
- customStyle: String,
- // @ts-ignore
- show: {
- type: Boolean,
- value: showDefaultValue,
- observer: 'observeShow',
- },
- // @ts-ignore
- duration: {
- type: null,
- value: 300,
- observer: 'observeDuration',
- },
- name: {
- type: String,
- value: 'fade',
- },
- },
- data: {
- type: '',
- inited: false,
- display: false,
- },
- ready: function () {
- if (this.data.show === true) {
- this.observeShow(true, false);
- }
- },
- methods: {
- observeShow: function (value, old) {
- if (value === old) {
- return;
- }
- value ? this.enter() : this.leave();
- },
- enter: function () {
- var _this = this;
- var _a = this.data,
- duration = _a.duration,
- name = _a.name;
- var classNames = getClassNames(name);
- var currentDuration = validator_1.isObj(duration)
- ? duration.enter
- : duration;
- this.status = 'enter';
- this.$emit('before-enter');
- utils_1.requestAnimationFrame(function () {
- if (_this.status !== 'enter') {
- return;
- }
- _this.$emit('enter');
- _this.setData({
- inited: true,
- display: true,
- classes: classNames.enter,
- currentDuration: currentDuration,
- });
- utils_1.requestAnimationFrame(function () {
- if (_this.status !== 'enter') {
- return;
- }
- _this.transitionEnded = false;
- _this.setData({ classes: classNames['enter-to'] });
- });
- });
- },
- leave: function () {
- var _this = this;
- if (!this.data.display) {
- return;
- }
- var _a = this.data,
- duration = _a.duration,
- name = _a.name;
- var classNames = getClassNames(name);
- var currentDuration = validator_1.isObj(duration)
- ? duration.leave
- : duration;
- this.status = 'leave';
- this.$emit('before-leave');
- utils_1.requestAnimationFrame(function () {
- if (_this.status !== 'leave') {
- return;
- }
- _this.$emit('leave');
- _this.setData({
- classes: classNames.leave,
- currentDuration: currentDuration,
- });
- utils_1.requestAnimationFrame(function () {
- if (_this.status !== 'leave') {
- return;
- }
- _this.transitionEnded = false;
- setTimeout(function () {
- return _this.onTransitionEnd();
- }, currentDuration);
- _this.setData({ classes: classNames['leave-to'] });
- });
- });
- },
- onTransitionEnd: function () {
- if (this.transitionEnded) {
- return;
- }
- this.transitionEnded = true;
- this.$emit('after-' + this.status);
- var _a = this.data,
- show = _a.show,
- display = _a.display;
- if (!show && display) {
- this.setData({ display: false });
- }
- },
- },
- });
-}
-exports.transition = transition;
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.transition = void 0;
+// @ts-nocheck
+var utils_1 = require("../common/utils");
+var validator_1 = require("../common/validator");
+var getClassNames = function (name) { return ({
+ enter: "van-".concat(name, "-enter van-").concat(name, "-enter-active enter-class enter-active-class"),
+ 'enter-to': "van-".concat(name, "-enter-to van-").concat(name, "-enter-active enter-to-class enter-active-class"),
+ leave: "van-".concat(name, "-leave van-").concat(name, "-leave-active leave-class leave-active-class"),
+ 'leave-to': "van-".concat(name, "-leave-to van-").concat(name, "-leave-active leave-to-class leave-active-class"),
+}); };
+function transition(showDefaultValue) {
+ return Behavior({
+ properties: {
+ customStyle: String,
+ // @ts-ignore
+ show: {
+ type: Boolean,
+ value: showDefaultValue,
+ observer: 'observeShow',
+ },
+ // @ts-ignore
+ duration: {
+ type: null,
+ value: 300,
+ observer: 'observeDuration',
+ },
+ name: {
+ type: String,
+ value: 'fade',
+ },
+ },
+ data: {
+ type: '',
+ inited: false,
+ display: false,
+ },
+ ready: function () {
+ if (this.data.show === true) {
+ this.observeShow(true, false);
+ }
+ },
+ methods: {
+ observeShow: function (value, old) {
+ if (value === old) {
+ return;
+ }
+ value ? this.enter() : this.leave();
+ },
+ enter: function () {
+ var _this = this;
+ var _a = this.data, duration = _a.duration, name = _a.name;
+ var classNames = getClassNames(name);
+ var currentDuration = (0, validator_1.isObj)(duration) ? duration.enter : duration;
+ if (this.status === 'enter') {
+ return;
+ }
+ this.status = 'enter';
+ this.$emit('before-enter');
+ (0, utils_1.requestAnimationFrame)(function () {
+ if (_this.status !== 'enter') {
+ return;
+ }
+ _this.$emit('enter');
+ _this.setData({
+ inited: true,
+ display: true,
+ classes: classNames.enter,
+ currentDuration: currentDuration,
+ });
+ (0, utils_1.requestAnimationFrame)(function () {
+ if (_this.status !== 'enter') {
+ return;
+ }
+ _this.transitionEnded = false;
+ _this.setData({ classes: classNames['enter-to'] });
+ });
+ });
+ },
+ leave: function () {
+ var _this = this;
+ if (!this.data.display) {
+ return;
+ }
+ var _a = this.data, duration = _a.duration, name = _a.name;
+ var classNames = getClassNames(name);
+ var currentDuration = (0, validator_1.isObj)(duration) ? duration.leave : duration;
+ this.status = 'leave';
+ this.$emit('before-leave');
+ (0, utils_1.requestAnimationFrame)(function () {
+ if (_this.status !== 'leave') {
+ return;
+ }
+ _this.$emit('leave');
+ _this.setData({
+ classes: classNames.leave,
+ currentDuration: currentDuration,
+ });
+ (0, utils_1.requestAnimationFrame)(function () {
+ if (_this.status !== 'leave') {
+ return;
+ }
+ _this.transitionEnded = false;
+ setTimeout(function () { return _this.onTransitionEnd(); }, currentDuration);
+ _this.setData({ classes: classNames['leave-to'] });
+ });
+ });
+ },
+ onTransitionEnd: function () {
+ if (this.transitionEnded) {
+ return;
+ }
+ this.transitionEnded = true;
+ this.$emit("after-".concat(this.status));
+ var _a = this.data, show = _a.show, display = _a.display;
+ if (!show && display) {
+ this.setData({ display: false });
+ }
+ },
+ },
+ });
+}
+exports.transition = transition;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.js
index 286c8ea..376b561 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.js
@@ -1,68 +1,68 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var utils_1 = require('../common/utils');
-component_1.VantComponent({
- classes: ['title-class'],
- props: {
- title: String,
- fixed: {
- type: Boolean,
- observer: 'setHeight',
- },
- placeholder: {
- type: Boolean,
- observer: 'setHeight',
- },
- leftText: String,
- rightText: String,
- customStyle: String,
- leftArrow: Boolean,
- border: {
- type: Boolean,
- value: true,
- },
- zIndex: {
- type: Number,
- value: 1,
- },
- safeAreaInsetTop: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- height: 46,
- },
- created: function () {
- var statusBarHeight = utils_1.getSystemInfoSync().statusBarHeight;
- this.setData({
- statusBarHeight: statusBarHeight,
- height: 46 + statusBarHeight,
- });
- },
- mounted: function () {
- this.setHeight();
- },
- methods: {
- onClickLeft: function () {
- this.$emit('click-left');
- },
- onClickRight: function () {
- this.$emit('click-right');
- },
- setHeight: function () {
- var _this = this;
- if (!this.data.fixed || !this.data.placeholder) {
- return;
- }
- wx.nextTick(function () {
- utils_1.getRect(_this, '.van-nav-bar').then(function (res) {
- if (res && 'height' in res) {
- _this.setData({ height: res.height });
- }
- });
- });
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var utils_1 = require("../common/utils");
+(0, component_1.VantComponent)({
+ classes: ['title-class'],
+ props: {
+ title: String,
+ fixed: {
+ type: Boolean,
+ observer: 'setHeight',
+ },
+ placeholder: {
+ type: Boolean,
+ observer: 'setHeight',
+ },
+ leftText: String,
+ rightText: String,
+ customStyle: String,
+ leftArrow: Boolean,
+ border: {
+ type: Boolean,
+ value: true,
+ },
+ zIndex: {
+ type: Number,
+ value: 1,
+ },
+ safeAreaInsetTop: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ data: {
+ height: 46,
+ },
+ created: function () {
+ var statusBarHeight = (0, utils_1.getSystemInfoSync)().statusBarHeight;
+ this.setData({
+ statusBarHeight: statusBarHeight,
+ height: 46 + statusBarHeight,
+ });
+ },
+ mounted: function () {
+ this.setHeight();
+ },
+ methods: {
+ onClickLeft: function () {
+ this.$emit('click-left');
+ },
+ onClickRight: function () {
+ this.$emit('click-right');
+ },
+ setHeight: function () {
+ var _this = this;
+ if (!this.data.fixed || !this.data.placeholder) {
+ return;
+ }
+ wx.nextTick(function () {
+ (0, utils_1.getRect)(_this, '.van-nav-bar').then(function (res) {
+ if (res && 'height' in res) {
+ _this.setData({ height: res.height });
+ }
+ });
+ });
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.json
index 8abfe20..0a336c0 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxml
index 5263e8e..b6405fd 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxml
@@ -1,42 +1,42 @@
-
-
-
-
-
-
-
-
-
-
- {{ leftText }}
-
-
-
-
- {{ title }}
-
-
-
- {{ rightText }}
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ {{ leftText }}
+
+
+
+
+ {{ title }}
+
+
+
+ {{ rightText }}
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxs
index e288643..55b4158 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxs
@@ -1,13 +1,13 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-
-function barStyle(data) {
- return style({
- 'z-index': data.zIndex,
- 'padding-top': data.safeAreaInsetTop ? data.statusBarHeight + 'px' : 0,
- });
-}
-
-module.exports = {
- barStyle: barStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+
+function barStyle(data) {
+ return style({
+ 'z-index': data.zIndex,
+ 'padding-top': data.safeAreaInsetTop ? data.statusBarHeight + 'px' : 0,
+ });
+}
+
+module.exports = {
+ barStyle: barStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxss
index 48e9e3f..d11c31e 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-nav-bar{position:relative;text-align:center;-webkit-user-select:none;user-select:none;height:46px;height:var(--nav-bar-height,46px);line-height:46px;line-height:var(--nav-bar-height,46px);background-color:#fff;background-color:var(--nav-bar-background-color,#fff)}.van-nav-bar__content{position:relative;height:100%}.van-nav-bar__text{display:inline-block;vertical-align:middle;margin:0 -16px;margin:0 -var(--padding-md,16px);padding:0 16px;padding:0 var(--padding-md,16px);color:#1989fa;color:var(--nav-bar-text-color,#1989fa)}.van-nav-bar__text--hover{background-color:#f2f3f5;background-color:var(--active-color,#f2f3f5)}.van-nav-bar__arrow{vertical-align:middle;font-size:16px!important;font-size:var(--nav-bar-arrow-size,16px)!important;color:#1989fa!important;color:var(--nav-bar-icon-color,#1989fa)!important}.van-nav-bar__arrow+.van-nav-bar__text{margin-left:-20px;padding-left:25px}.van-nav-bar--fixed{position:fixed;top:0;left:0;width:100%}.van-nav-bar__title{max-width:60%;margin:0 auto;color:#323233;color:var(--nav-bar-title-text-color,#323233);font-weight:500;font-weight:var(--font-weight-bold,500);font-size:16px;font-size:var(--nav-bar-title-font-size,16px)}.van-nav-bar__left,.van-nav-bar__right{position:absolute;top:0;bottom:0;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;font-size:14px;font-size:var(--font-size-md,14px)}.van-nav-bar__left{left:16px;left:var(--padding-md,16px)}.van-nav-bar__right{right:16px;right:var(--padding-md,16px)}
\ No newline at end of file
+@import '../common/index.wxss';.van-nav-bar{background-color:var(--nav-bar-background-color,#fff);box-sizing:initial;height:var(--nav-bar-height,46px);line-height:var(--nav-bar-height,46px);position:relative;text-align:center;-webkit-user-select:none;user-select:none}.van-nav-bar__content{height:100%;position:relative}.van-nav-bar__text{color:var(--nav-bar-text-color,#1989fa);display:inline-block;margin:0 calc(var(--padding-md, 16px)*-1);padding:0 var(--padding-md,16px);vertical-align:middle}.van-nav-bar__text--hover{background-color:#f2f3f5}.van-nav-bar__arrow{color:var(--nav-bar-icon-color,#1989fa)!important;font-size:var(--nav-bar-arrow-size,16px)!important;vertical-align:middle}.van-nav-bar__arrow+.van-nav-bar__text{margin-left:-20px;padding-left:25px}.van-nav-bar--fixed{left:0;position:fixed;top:0;width:100%}.van-nav-bar__title{color:var(--nav-bar-title-text-color,#323233);font-size:var(--nav-bar-title-font-size,16px);font-weight:var(--font-weight-bold,500);margin:0 auto;max-width:60%}.van-nav-bar__left,.van-nav-bar__right{align-items:center;bottom:0;display:flex;font-size:var(--font-size-md,14px);position:absolute;top:0}.van-nav-bar__left{left:var(--padding-md,16px)}.van-nav-bar__right{right:var(--padding-md,16px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.js
index 55e06a7..db2a755 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.js
@@ -1,132 +1,125 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var utils_1 = require('../common/utils');
-component_1.VantComponent({
- props: {
- text: {
- type: String,
- value: '',
- observer: 'init',
- },
- mode: {
- type: String,
- value: '',
- },
- url: {
- type: String,
- value: '',
- },
- openType: {
- type: String,
- value: 'navigate',
- },
- delay: {
- type: Number,
- value: 1,
- },
- speed: {
- type: Number,
- value: 50,
- observer: 'init',
- },
- scrollable: {
- type: Boolean,
- value: true,
- },
- leftIcon: {
- type: String,
- value: '',
- },
- color: String,
- backgroundColor: String,
- background: String,
- wrapable: Boolean,
- },
- data: {
- show: true,
- },
- created: function () {
- this.resetAnimation = wx.createAnimation({
- duration: 0,
- timingFunction: 'linear',
- });
- },
- destroyed: function () {
- this.timer && clearTimeout(this.timer);
- },
- mounted: function () {
- this.init();
- },
- methods: {
- init: function () {
- var _this = this;
- utils_1.requestAnimationFrame(function () {
- Promise.all([
- utils_1.getRect(_this, '.van-notice-bar__content'),
- utils_1.getRect(_this, '.van-notice-bar__wrap'),
- ]).then(function (rects) {
- var contentRect = rects[0],
- wrapRect = rects[1];
- if (
- contentRect == null ||
- wrapRect == null ||
- !contentRect.width ||
- !wrapRect.width
- ) {
- return;
- }
- var _a = _this.data,
- speed = _a.speed,
- scrollable = _a.scrollable,
- delay = _a.delay;
- if (scrollable || wrapRect.width < contentRect.width) {
- var duration = (contentRect.width / speed) * 1000;
- _this.wrapWidth = wrapRect.width;
- _this.contentWidth = contentRect.width;
- _this.duration = duration;
- _this.animation = wx.createAnimation({
- duration: duration,
- timingFunction: 'linear',
- delay: delay,
- });
- _this.scroll();
- }
- });
- });
- },
- scroll: function () {
- var _this = this;
- this.timer && clearTimeout(this.timer);
- this.timer = null;
- this.setData({
- animationData: this.resetAnimation
- .translateX(this.wrapWidth)
- .step()
- .export(),
- });
- utils_1.requestAnimationFrame(function () {
- _this.setData({
- animationData: _this.animation
- .translateX(-_this.contentWidth)
- .step()
- .export(),
- });
- });
- this.timer = setTimeout(function () {
- _this.scroll();
- }, this.duration);
- },
- onClickIcon: function (event) {
- if (this.data.mode === 'closeable') {
- this.timer && clearTimeout(this.timer);
- this.timer = null;
- this.setData({ show: false });
- this.$emit('close', event.detail);
- }
- },
- onClick: function (event) {
- this.$emit('click', event);
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var utils_1 = require("../common/utils");
+(0, component_1.VantComponent)({
+ props: {
+ text: {
+ type: String,
+ value: '',
+ observer: 'init',
+ },
+ mode: {
+ type: String,
+ value: '',
+ },
+ url: {
+ type: String,
+ value: '',
+ },
+ openType: {
+ type: String,
+ value: 'navigate',
+ },
+ delay: {
+ type: Number,
+ value: 1,
+ },
+ speed: {
+ type: Number,
+ value: 60,
+ observer: 'init',
+ },
+ scrollable: null,
+ leftIcon: {
+ type: String,
+ value: '',
+ },
+ color: String,
+ backgroundColor: String,
+ background: String,
+ wrapable: Boolean,
+ },
+ data: {
+ show: true,
+ },
+ created: function () {
+ this.resetAnimation = wx.createAnimation({
+ duration: 0,
+ timingFunction: 'linear',
+ });
+ },
+ destroyed: function () {
+ this.timer && clearTimeout(this.timer);
+ },
+ mounted: function () {
+ this.init();
+ },
+ methods: {
+ init: function () {
+ var _this = this;
+ (0, utils_1.requestAnimationFrame)(function () {
+ Promise.all([
+ (0, utils_1.getRect)(_this, '.van-notice-bar__content'),
+ (0, utils_1.getRect)(_this, '.van-notice-bar__wrap'),
+ ]).then(function (rects) {
+ var contentRect = rects[0], wrapRect = rects[1];
+ var _a = _this.data, speed = _a.speed, scrollable = _a.scrollable, delay = _a.delay;
+ if (contentRect == null ||
+ wrapRect == null ||
+ !contentRect.width ||
+ !wrapRect.width ||
+ scrollable === false) {
+ return;
+ }
+ if (scrollable || wrapRect.width < contentRect.width) {
+ var duration = ((wrapRect.width + contentRect.width) / speed) * 1000;
+ _this.wrapWidth = wrapRect.width;
+ _this.contentWidth = contentRect.width;
+ _this.duration = duration;
+ _this.animation = wx.createAnimation({
+ duration: duration,
+ timingFunction: 'linear',
+ delay: delay,
+ });
+ _this.scroll(true);
+ }
+ });
+ });
+ },
+ scroll: function (isInit) {
+ var _this = this;
+ if (isInit === void 0) { isInit = false; }
+ this.timer && clearTimeout(this.timer);
+ this.timer = null;
+ this.setData({
+ animationData: this.resetAnimation
+ .translateX(isInit ? 0 : this.wrapWidth)
+ .step()
+ .export(),
+ });
+ (0, utils_1.requestAnimationFrame)(function () {
+ _this.setData({
+ animationData: _this.animation
+ .translateX(-_this.contentWidth)
+ .step()
+ .export(),
+ });
+ });
+ this.timer = setTimeout(function () {
+ _this.scroll();
+ }, this.duration + this.data.delay);
+ },
+ onClickIcon: function (event) {
+ if (this.data.mode === 'closeable') {
+ this.timer && clearTimeout(this.timer);
+ this.timer = null;
+ this.setData({ show: false });
+ this.$emit('close', event.detail);
+ }
+ },
+ onClick: function (event) {
+ this.$emit('click', event);
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.json
index 8abfe20..0a336c0 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxml
index 30c9a54..21b0973 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxml
@@ -1,39 +1,38 @@
-
-
-
-
-
-
-
-
-
- {{ text }}
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ {{ text }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxs
index 571840c..11e6456 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxs
@@ -1,15 +1,15 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
- return style({
- color: data.color,
- 'background-color': data.backgroundColor,
- background: data.background,
- });
-}
-
-module.exports = {
- rootStyle: rootStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function rootStyle(data) {
+ return style({
+ color: data.color,
+ 'background-color': data.backgroundColor,
+ background: data.background,
+ });
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxss
index 6a49858..497636c 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-notice-bar{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;height:40px;height:var(--notice-bar-height,40px);padding:0 16px;padding:var(--notice-bar-padding,0 16px);font-size:14px;font-size:var(--notice-bar-font-size,14px);color:#ed6a0c;color:var(--notice-bar-text-color,#ed6a0c);line-height:24px;line-height:var(--notice-bar-line-height,24px);background-color:#fffbe8;background-color:var(--notice-bar-background-color,#fffbe8)}.van-notice-bar--withicon{position:relative;padding-right:40px}.van-notice-bar--wrapable{height:auto;padding:8px 16px;padding:var(--notice-bar-wrapable-padding,8px 16px)}.van-notice-bar--wrapable .van-notice-bar__wrap{height:auto}.van-notice-bar--wrapable .van-notice-bar__content{position:relative;white-space:normal}.van-notice-bar__left-icon{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;margin-right:4px;vertical-align:middle}.van-notice-bar__left-icon,.van-notice-bar__right-icon{font-size:16px;font-size:var(--notice-bar-icon-size,16px);min-width:22px;min-width:var(--notice-bar-icon-min-width,22px)}.van-notice-bar__right-icon{position:absolute;top:10px;right:15px}.van-notice-bar__wrap{position:relative;-webkit-flex:1;flex:1;overflow:hidden;height:24px;height:var(--notice-bar-line-height,24px)}.van-notice-bar__content{position:absolute;white-space:nowrap}.van-notice-bar__content.van-ellipsis{max-width:100%}
\ No newline at end of file
+@import '../common/index.wxss';.van-notice-bar{align-items:center;background-color:var(--notice-bar-background-color,#fffbe8);color:var(--notice-bar-text-color,#ed6a0c);display:flex;font-size:var(--notice-bar-font-size,14px);height:var(--notice-bar-height,40px);line-height:var(--notice-bar-line-height,24px);padding:var(--notice-bar-padding,0 16px)}.van-notice-bar--withicon{padding-right:40px;position:relative}.van-notice-bar--wrapable{height:auto;padding:var(--notice-bar-wrapable-padding,8px 16px)}.van-notice-bar--wrapable .van-notice-bar__wrap{height:auto}.van-notice-bar--wrapable .van-notice-bar__content{position:relative;white-space:normal}.van-notice-bar__left-icon{align-items:center;display:flex;margin-right:4px;vertical-align:middle}.van-notice-bar__left-icon,.van-notice-bar__right-icon{font-size:var(--notice-bar-icon-size,16px);min-width:var(--notice-bar-icon-min-width,22px)}.van-notice-bar__right-icon{position:absolute;right:15px;top:10px}.van-notice-bar__wrap{flex:1;height:var(--notice-bar-line-height,24px);overflow:hidden;position:relative}.van-notice-bar__content{position:absolute;white-space:nowrap}.van-notice-bar__content.van-ellipsis{max-width:100%}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.js
index 20ea20b..a9526aa 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.js
@@ -1,70 +1,68 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var color_1 = require('../common/color');
-var utils_1 = require('../common/utils');
-component_1.VantComponent({
- props: {
- message: String,
- background: String,
- type: {
- type: String,
- value: 'danger',
- },
- color: {
- type: String,
- value: color_1.WHITE,
- },
- duration: {
- type: Number,
- value: 3000,
- },
- zIndex: {
- type: Number,
- value: 110,
- },
- safeAreaInsetTop: {
- type: Boolean,
- value: false,
- },
- top: null,
- },
- data: {
- show: false,
- onOpened: null,
- onClose: null,
- onClick: null,
- },
- created: function () {
- var statusBarHeight = utils_1.getSystemInfoSync().statusBarHeight;
- this.setData({ statusBarHeight: statusBarHeight });
- },
- methods: {
- show: function () {
- var _this = this;
- var _a = this.data,
- duration = _a.duration,
- onOpened = _a.onOpened;
- clearTimeout(this.timer);
- this.setData({ show: true });
- wx.nextTick(onOpened);
- if (duration > 0 && duration !== Infinity) {
- this.timer = setTimeout(function () {
- _this.hide();
- }, duration);
- }
- },
- hide: function () {
- var onClose = this.data.onClose;
- clearTimeout(this.timer);
- this.setData({ show: false });
- wx.nextTick(onClose);
- },
- onTap: function (event) {
- var onClick = this.data.onClick;
- if (onClick) {
- onClick(event.detail);
- }
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var color_1 = require("../common/color");
+var utils_1 = require("../common/utils");
+(0, component_1.VantComponent)({
+ props: {
+ message: String,
+ background: String,
+ type: {
+ type: String,
+ value: 'danger',
+ },
+ color: {
+ type: String,
+ value: color_1.WHITE,
+ },
+ duration: {
+ type: Number,
+ value: 3000,
+ },
+ zIndex: {
+ type: Number,
+ value: 110,
+ },
+ safeAreaInsetTop: {
+ type: Boolean,
+ value: false,
+ },
+ top: null,
+ },
+ data: {
+ show: false,
+ onOpened: null,
+ onClose: null,
+ onClick: null,
+ },
+ created: function () {
+ var statusBarHeight = (0, utils_1.getSystemInfoSync)().statusBarHeight;
+ this.setData({ statusBarHeight: statusBarHeight });
+ },
+ methods: {
+ show: function () {
+ var _this = this;
+ var _a = this.data, duration = _a.duration, onOpened = _a.onOpened;
+ clearTimeout(this.timer);
+ this.setData({ show: true });
+ wx.nextTick(onOpened);
+ if (duration > 0 && duration !== Infinity) {
+ this.timer = setTimeout(function () {
+ _this.hide();
+ }, duration);
+ }
+ },
+ hide: function () {
+ var onClose = this.data.onClose;
+ clearTimeout(this.timer);
+ this.setData({ show: false });
+ wx.nextTick(onClose);
+ },
+ onTap: function (event) {
+ var onClick = this.data.onClick;
+ if (onClick) {
+ onClick(event.detail);
+ }
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.json
index eaad93e..c14a65f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-transition": "../transition/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-transition": "../transition/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxml
index 9648d9b..42d913e 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxml
@@ -1,21 +1,21 @@
-
-
-
-
-
-
- {{ message }}
-
-
+
+
+
+
+
+
+ {{ message }}
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxs
index e4c6da9..bbb94c2 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxs
@@ -1,22 +1,22 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
- return style({
- 'z-index': data.zIndex,
- top: addUnit(data.top),
- });
-}
-
-function notifyStyle(data) {
- return style({
- background: data.background,
- color: data.color,
- });
-}
-
-module.exports = {
- rootStyle: rootStyle,
- notifyStyle: notifyStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function rootStyle(data) {
+ return style({
+ 'z-index': data.zIndex,
+ top: addUnit(data.top),
+ });
+}
+
+function notifyStyle(data) {
+ return style({
+ background: data.background,
+ color: data.color,
+ });
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+ notifyStyle: notifyStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxss
index 8a7688b..c030e9b 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-notify{text-align:center;word-wrap:break-word;padding:6px 15px;padding:var(--notify-padding,6px 15px);font-size:14px;font-size:var(--notify-font-size,14px);line-height:20px;line-height:var(--notify-line-height,20px)}.van-notify__container{position:fixed;top:0;left:0;box-sizing:border-box;width:100%}.van-notify--primary{background-color:#1989fa;background-color:var(--notify-primary-background-color,#1989fa)}.van-notify--success{background-color:#07c160;background-color:var(--notify-success-background-color,#07c160)}.van-notify--danger{background-color:#ee0a24;background-color:var(--notify-danger-background-color,#ee0a24)}.van-notify--warning{background-color:#ff976a;background-color:var(--notify-warning-background-color,#ff976a)}
\ No newline at end of file
+@import '../common/index.wxss';.van-notify{word-wrap:break-word;font-size:var(--notify-font-size,14px);line-height:var(--notify-line-height,20px);padding:var(--notify-padding,6px 15px);text-align:center}.van-notify__container{box-sizing:border-box;left:0;position:fixed;top:0;width:100%}.van-notify--primary{background-color:var(--notify-primary-background-color,#1989fa)}.van-notify--success{background-color:var(--notify-success-background-color,#07c160)}.van-notify--danger{background-color:var(--notify-danger-background-color,#ee0a24)}.van-notify--warning{background-color:var(--notify-warning-background-color,#ff976a)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notify/notify.js b/src/openeuler/miniprogram_npm/@vant/weapp/notify/notify.js
index 30fb854..d470431 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notify/notify.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/notify/notify.js
@@ -1,64 +1,67 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-Object.defineProperty(exports, '__esModule', { value: true });
-var color_1 = require('../common/color');
-var defaultOptions = {
- selector: '#van-notify',
- type: 'danger',
- message: '',
- background: '',
- duration: 3000,
- zIndex: 110,
- top: 0,
- color: color_1.WHITE,
- safeAreaInsetTop: false,
- onClick: function () {},
- onOpened: function () {},
- onClose: function () {},
-};
-function parseOptions(message) {
- if (message == null) {
- return {};
- }
- return typeof message === 'string' ? { message: message } : message;
-}
-function getContext() {
- var pages = getCurrentPages();
- return pages[pages.length - 1];
-}
-function Notify(options) {
- options = __assign(__assign({}, defaultOptions), parseOptions(options));
- var context = options.context || getContext();
- var notify = context.selectComponent(options.selector);
- delete options.context;
- delete options.selector;
- if (notify) {
- notify.setData(options);
- notify.show();
- return notify;
- }
- console.warn('未找到 van-notify 节点,请确认 selector 及 context 是否正确');
-}
-exports.default = Notify;
-Notify.clear = function (options) {
- options = __assign(__assign({}, defaultOptions), parseOptions(options));
- var context = options.context || getContext();
- var notify = context.selectComponent(options.selector);
- if (notify) {
- notify.hide();
- }
-};
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var color_1 = require("../common/color");
+var defaultOptions = {
+ selector: '#van-notify',
+ type: 'danger',
+ message: '',
+ background: '',
+ duration: 3000,
+ zIndex: 110,
+ top: 0,
+ color: color_1.WHITE,
+ safeAreaInsetTop: false,
+ onClick: function () { },
+ onOpened: function () { },
+ onClose: function () { },
+};
+var currentOptions = __assign({}, defaultOptions);
+function parseOptions(message) {
+ if (message == null) {
+ return {};
+ }
+ return typeof message === 'string' ? { message: message } : message;
+}
+function getContext() {
+ var pages = getCurrentPages();
+ return pages[pages.length - 1];
+}
+function Notify(options) {
+ options = __assign(__assign({}, currentOptions), parseOptions(options));
+ var context = options.context || getContext();
+ var notify = context.selectComponent(options.selector);
+ delete options.context;
+ delete options.selector;
+ if (notify) {
+ notify.setData(options);
+ notify.show();
+ return notify;
+ }
+ console.warn('未找到 van-notify 节点,请确认 selector 及 context 是否正确');
+}
+exports.default = Notify;
+Notify.clear = function (options) {
+ options = __assign(__assign({}, defaultOptions), parseOptions(options));
+ var context = options.context || getContext();
+ var notify = context.selectComponent(options.selector);
+ if (notify) {
+ notify.hide();
+ }
+};
+Notify.setDefaultOptions = function (options) {
+ Object.assign(currentOptions, options);
+};
+Notify.resetDefaultOptions = function () {
+ currentOptions = __assign({}, defaultOptions);
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.js
index 2ea1424..9b58b5f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.js
@@ -1,24 +1,32 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-component_1.VantComponent({
- props: {
- show: Boolean,
- customStyle: String,
- duration: {
- type: null,
- value: 300,
- },
- zIndex: {
- type: Number,
- value: 1,
- },
- },
- methods: {
- onClick: function () {
- this.$emit('click');
- },
- // for prevent touchmove
- noop: function () {},
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ show: Boolean,
+ customStyle: String,
+ duration: {
+ type: null,
+ value: 300,
+ },
+ zIndex: {
+ type: Number,
+ value: 1,
+ },
+ lockScroll: {
+ type: Boolean,
+ value: true,
+ },
+ rootPortal: {
+ type: Boolean,
+ value: false,
+ },
+ },
+ methods: {
+ onClick: function () {
+ this.$emit('click');
+ },
+ // for prevent touchmove
+ noop: function () { },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.json
index eaad93e..c14a65f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-transition": "../transition/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-transition": "../transition/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.wxml
index a65de2b..17fc56f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.wxml
@@ -1,10 +1,7 @@
-
-
-
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.wxss
index 0f9df0e..d1ad81a 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.7);background-color:var(--overlay-background-color,rgba(0,0,0,.7))}
\ No newline at end of file
+@import '../common/index.wxss';.van-overlay{background-color:var(--overlay-background-color,rgba(0,0,0,.7));height:100%;left:0;position:fixed;top:0;width:100%}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.js
index 7048a5d..818b8c5 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.js
@@ -1,12 +1,11 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-component_1.VantComponent({
- classes: ['header-class', 'footer-class'],
- props: {
- desc: String,
- title: String,
- status: String,
- useFooterSlot: Boolean,
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ classes: ['header-class', 'footer-class'],
+ props: {
+ desc: String,
+ title: String,
+ status: String,
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.json
index 7069216..0e5425c 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-cell": "../cell/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-cell": "../cell/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.wxml
index e277c9d..1843703 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.wxml
@@ -1,19 +1,19 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.wxss
index ffd9df9..485edcd 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-panel{background:#fff;background:var(--panel-background-color,#fff)}.van-panel__header-value{color:#ee0a24;color:var(--panel-header-value-color,#ee0a24)}.van-panel__footer{padding:8px 16px;padding:var(--panel-footer-padding,8px 16px)}
\ No newline at end of file
+@import '../common/index.wxss';.van-panel{background:var(--panel-background-color,#fff)}.van-panel__header-value{color:var(--panel-header-value-color,#ee0a24)}.van-panel__footer{padding:var(--panel-footer-padding,8px 16px)}.van-panel__footer:empty{display:none}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.js
index dd9a570..9dbf17c 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.js
@@ -1,132 +1,122 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var utils_1 = require('../common/utils');
-var validator_1 = require('../common/validator');
-var DEFAULT_DURATION = 200;
-component_1.VantComponent({
- classes: ['active-class'],
- props: {
- valueKey: String,
- className: String,
- itemHeight: Number,
- visibleItemCount: Number,
- initialOptions: {
- type: Array,
- value: [],
- },
- defaultIndex: {
- type: Number,
- value: 0,
- observer: function (value) {
- this.setIndex(value);
- },
- },
- },
- data: {
- startY: 0,
- offset: 0,
- duration: 0,
- startOffset: 0,
- options: [],
- currentIndex: 0,
- },
- created: function () {
- var _this = this;
- var _a = this.data,
- defaultIndex = _a.defaultIndex,
- initialOptions = _a.initialOptions;
- this.set({
- currentIndex: defaultIndex,
- options: initialOptions,
- }).then(function () {
- _this.setIndex(defaultIndex);
- });
- },
- methods: {
- getCount: function () {
- return this.data.options.length;
- },
- onTouchStart: function (event) {
- this.setData({
- startY: event.touches[0].clientY,
- startOffset: this.data.offset,
- duration: 0,
- });
- },
- onTouchMove: function (event) {
- var data = this.data;
- var deltaY = event.touches[0].clientY - data.startY;
- this.setData({
- offset: utils_1.range(
- data.startOffset + deltaY,
- -(this.getCount() * data.itemHeight),
- data.itemHeight
- ),
- });
- },
- onTouchEnd: function () {
- var data = this.data;
- if (data.offset !== data.startOffset) {
- this.setData({ duration: DEFAULT_DURATION });
- var index = utils_1.range(
- Math.round(-data.offset / data.itemHeight),
- 0,
- this.getCount() - 1
- );
- this.setIndex(index, true);
- }
- },
- onClickItem: function (event) {
- var index = event.currentTarget.dataset.index;
- this.setIndex(index, true);
- },
- adjustIndex: function (index) {
- var data = this.data;
- var count = this.getCount();
- index = utils_1.range(index, 0, count);
- for (var i = index; i < count; i++) {
- if (!this.isDisabled(data.options[i])) return i;
- }
- for (var i = index - 1; i >= 0; i--) {
- if (!this.isDisabled(data.options[i])) return i;
- }
- },
- isDisabled: function (option) {
- return validator_1.isObj(option) && option.disabled;
- },
- getOptionText: function (option) {
- var data = this.data;
- return validator_1.isObj(option) && data.valueKey in option
- ? option[data.valueKey]
- : option;
- },
- setIndex: function (index, userAction) {
- var _this = this;
- var data = this.data;
- index = this.adjustIndex(index) || 0;
- var offset = -index * data.itemHeight;
- if (index !== data.currentIndex) {
- return this.set({ offset: offset, currentIndex: index }).then(
- function () {
- userAction && _this.$emit('change', index);
- }
- );
- }
- return this.set({ offset: offset });
- },
- setValue: function (value) {
- var options = this.data.options;
- for (var i = 0; i < options.length; i++) {
- if (this.getOptionText(options[i]) === value) {
- return this.setIndex(i);
- }
- }
- return Promise.resolve();
- },
- getValue: function () {
- var data = this.data;
- return data.options[data.currentIndex];
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var utils_1 = require("../common/utils");
+var validator_1 = require("../common/validator");
+var DEFAULT_DURATION = 200;
+(0, component_1.VantComponent)({
+ classes: ['active-class'],
+ props: {
+ valueKey: String,
+ className: String,
+ itemHeight: Number,
+ visibleItemCount: Number,
+ initialOptions: {
+ type: Array,
+ value: [],
+ },
+ defaultIndex: {
+ type: Number,
+ value: 0,
+ observer: function (value) {
+ this.setIndex(value);
+ },
+ },
+ },
+ data: {
+ startY: 0,
+ offset: 0,
+ duration: 0,
+ startOffset: 0,
+ options: [],
+ currentIndex: 0,
+ },
+ created: function () {
+ var _this = this;
+ var _a = this.data, defaultIndex = _a.defaultIndex, initialOptions = _a.initialOptions;
+ this.set({
+ currentIndex: defaultIndex,
+ options: initialOptions,
+ }).then(function () {
+ _this.setIndex(defaultIndex);
+ });
+ },
+ methods: {
+ getCount: function () {
+ return this.data.options.length;
+ },
+ onTouchStart: function (event) {
+ this.setData({
+ startY: event.touches[0].clientY,
+ startOffset: this.data.offset,
+ duration: 0,
+ });
+ },
+ onTouchMove: function (event) {
+ var data = this.data;
+ var deltaY = event.touches[0].clientY - data.startY;
+ this.setData({
+ offset: (0, utils_1.range)(data.startOffset + deltaY, -(this.getCount() * data.itemHeight), data.itemHeight),
+ });
+ },
+ onTouchEnd: function () {
+ var data = this.data;
+ if (data.offset !== data.startOffset) {
+ this.setData({ duration: DEFAULT_DURATION });
+ var index = (0, utils_1.range)(Math.round(-data.offset / data.itemHeight), 0, this.getCount() - 1);
+ this.setIndex(index, true);
+ }
+ },
+ onClickItem: function (event) {
+ var index = event.currentTarget.dataset.index;
+ this.setIndex(index, true);
+ },
+ adjustIndex: function (index) {
+ var data = this.data;
+ var count = this.getCount();
+ index = (0, utils_1.range)(index, 0, count);
+ for (var i = index; i < count; i++) {
+ if (!this.isDisabled(data.options[i]))
+ return i;
+ }
+ for (var i = index - 1; i >= 0; i--) {
+ if (!this.isDisabled(data.options[i]))
+ return i;
+ }
+ },
+ isDisabled: function (option) {
+ return (0, validator_1.isObj)(option) && option.disabled;
+ },
+ getOptionText: function (option) {
+ var data = this.data;
+ return (0, validator_1.isObj)(option) && data.valueKey in option
+ ? option[data.valueKey]
+ : option;
+ },
+ setIndex: function (index, userAction) {
+ var _this = this;
+ var data = this.data;
+ index = this.adjustIndex(index) || 0;
+ var offset = -index * data.itemHeight;
+ if (index !== data.currentIndex) {
+ return this.set({ offset: offset, currentIndex: index }).then(function () {
+ userAction && _this.$emit('change', index);
+ });
+ }
+ return this.set({ offset: offset });
+ },
+ setValue: function (value) {
+ var options = this.data.options;
+ for (var i = 0; i < options.length; i++) {
+ if (this.getOptionText(options[i]) === value) {
+ return this.setIndex(i);
+ }
+ }
+ return Promise.resolve();
+ },
+ getValue: function () {
+ var data = this.data;
+ return data.options[data.currentIndex];
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxml
index eae4151..f2c8da2 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxml
@@ -1,23 +1,23 @@
-
-
-
-
-
- {{ computed.optionText(option, valueKey) }}
-
-
+
+
+
+
+
+ {{ computed.optionText(option, valueKey) }}
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxs
index 62c45de..2d5a611 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxs
@@ -1,36 +1,36 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function isObj(x) {
- var type = typeof x;
- return x !== null && (type === 'object' || type === 'function');
-}
-
-function optionText(option, valueKey) {
- return isObj(option) && option[valueKey] != null ? option[valueKey] : option;
-}
-
-function rootStyle(data) {
- return style({
- height: addUnit(data.itemHeight * data.visibleItemCount),
- });
-}
-
-function wrapperStyle(data) {
- var offset = addUnit(
- data.offset + (data.itemHeight * (data.visibleItemCount - 1)) / 2
- );
-
- return style({
- transition: 'transform ' + data.duration + 'ms',
- 'line-height': addUnit(data.itemHeight),
- transform: 'translate3d(0, ' + offset + ', 0)',
- });
-}
-
-module.exports = {
- optionText: optionText,
- rootStyle: rootStyle,
- wrapperStyle: wrapperStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function isObj(x) {
+ var type = typeof x;
+ return x !== null && (type === 'object' || type === 'function');
+}
+
+function optionText(option, valueKey) {
+ return isObj(option) && option[valueKey] != null ? option[valueKey] : option;
+}
+
+function rootStyle(data) {
+ return style({
+ height: addUnit(data.itemHeight * data.visibleItemCount),
+ });
+}
+
+function wrapperStyle(data) {
+ var offset = addUnit(
+ data.offset + (data.itemHeight * (data.visibleItemCount - 1)) / 2
+ );
+
+ return style({
+ transition: 'transform ' + data.duration + 'ms',
+ 'line-height': addUnit(data.itemHeight),
+ transform: 'translate3d(0, ' + offset + ', 0)',
+ });
+}
+
+module.exports = {
+ optionText: optionText,
+ rootStyle: rootStyle,
+ wrapperStyle: wrapperStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxss
index c5c6910..519a438 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-picker-column{overflow:hidden;text-align:center;color:#000;color:var(--picker-option-text-color,#000);font-size:16px;font-size:var(--picker-option-font-size,16px)}.van-picker-column__item{padding:0 5px}.van-picker-column__item--selected{font-weight:500;font-weight:var(--font-weight-bold,500);color:#323233;color:var(--picker-option-selected-text-color,#323233)}.van-picker-column__item--disabled{opacity:.3;opacity:var(--picker-option-disabled-opacity,.3)}
\ No newline at end of file
+@import '../common/index.wxss';.van-picker-column{color:var(--picker-option-text-color,#000);font-size:var(--picker-option-font-size,16px);overflow:hidden;text-align:center}.van-picker-column__item{padding:0 5px}.van-picker-column__item--selected{color:var(--picker-option-selected-text-color,#323233);font-weight:var(--font-weight-bold,500)}.van-picker-column__item--disabled{opacity:var(--picker-option-disabled-opacity,.3)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.js
index 42587d3..06d1826 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.js
@@ -1,179 +1,161 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var shared_1 = require('./shared');
-component_1.VantComponent({
- classes: ['active-class', 'toolbar-class', 'column-class'],
- props: __assign(__assign({}, shared_1.pickerProps), {
- valueKey: {
- type: String,
- value: 'text',
- },
- toolbarPosition: {
- type: String,
- value: 'top',
- },
- defaultIndex: {
- type: Number,
- value: 0,
- },
- columns: {
- type: Array,
- value: [],
- observer: function (columns) {
- if (columns === void 0) {
- columns = [];
- }
- this.simple = columns.length && !columns[0].values;
- if (Array.isArray(this.children) && this.children.length) {
- this.setColumns().catch(function () {});
- }
- },
- },
- }),
- beforeCreate: function () {
- var _this = this;
- Object.defineProperty(this, 'children', {
- get: function () {
- return _this.selectAllComponents('.van-picker__column') || [];
- },
- });
- },
- methods: {
- noop: function () {},
- setColumns: function () {
- var _this = this;
- var data = this.data;
- var columns = this.simple ? [{ values: data.columns }] : data.columns;
- var stack = columns.map(function (column, index) {
- return _this.setColumnValues(index, column.values);
- });
- return Promise.all(stack);
- },
- emit: function (event) {
- var type = event.currentTarget.dataset.type;
- if (this.simple) {
- this.$emit(type, {
- value: this.getColumnValue(0),
- index: this.getColumnIndex(0),
- });
- } else {
- this.$emit(type, {
- value: this.getValues(),
- index: this.getIndexes(),
- });
- }
- },
- onChange: function (event) {
- if (this.simple) {
- this.$emit('change', {
- picker: this,
- value: this.getColumnValue(0),
- index: this.getColumnIndex(0),
- });
- } else {
- this.$emit('change', {
- picker: this,
- value: this.getValues(),
- index: event.currentTarget.dataset.index,
- });
- }
- },
- // get column instance by index
- getColumn: function (index) {
- return this.children[index];
- },
- // get column value by index
- getColumnValue: function (index) {
- var column = this.getColumn(index);
- return column && column.getValue();
- },
- // set column value by index
- setColumnValue: function (index, value) {
- var column = this.getColumn(index);
- if (column == null) {
- return Promise.reject(new Error('setColumnValue: 对应列不存在'));
- }
- return column.setValue(value);
- },
- // get column option index by column index
- getColumnIndex: function (columnIndex) {
- return (this.getColumn(columnIndex) || {}).data.currentIndex;
- },
- // set column option index by column index
- setColumnIndex: function (columnIndex, optionIndex) {
- var column = this.getColumn(columnIndex);
- if (column == null) {
- return Promise.reject(new Error('setColumnIndex: 对应列不存在'));
- }
- return column.setIndex(optionIndex);
- },
- // get options of column by index
- getColumnValues: function (index) {
- return (this.children[index] || {}).data.options;
- },
- // set options of column by index
- setColumnValues: function (index, options, needReset) {
- if (needReset === void 0) {
- needReset = true;
- }
- var column = this.children[index];
- if (column == null) {
- return Promise.reject(new Error('setColumnValues: 对应列不存在'));
- }
- var isSame =
- JSON.stringify(column.data.options) === JSON.stringify(options);
- if (isSame) {
- return Promise.resolve();
- }
- return column.set({ options: options }).then(function () {
- if (needReset) {
- column.setIndex(0);
- }
- });
- },
- // get values of all columns
- getValues: function () {
- return this.children.map(function (child) {
- return child.getValue();
- });
- },
- // set values of all columns
- setValues: function (values) {
- var _this = this;
- var stack = values.map(function (value, index) {
- return _this.setColumnValue(index, value);
- });
- return Promise.all(stack);
- },
- // get indexes of all columns
- getIndexes: function () {
- return this.children.map(function (child) {
- return child.data.currentIndex;
- });
- },
- // set indexes of all columns
- setIndexes: function (indexes) {
- var _this = this;
- var stack = indexes.map(function (optionIndex, columnIndex) {
- return _this.setColumnIndex(columnIndex, optionIndex);
- });
- return Promise.all(stack);
- },
- },
-});
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var shared_1 = require("./shared");
+(0, component_1.VantComponent)({
+ classes: ['active-class', 'toolbar-class', 'column-class'],
+ props: __assign(__assign({}, shared_1.pickerProps), { valueKey: {
+ type: String,
+ value: 'text',
+ }, toolbarPosition: {
+ type: String,
+ value: 'top',
+ }, defaultIndex: {
+ type: Number,
+ value: 0,
+ }, columns: {
+ type: Array,
+ value: [],
+ observer: function (columns) {
+ if (columns === void 0) { columns = []; }
+ this.simple = columns.length && !columns[0].values;
+ if (Array.isArray(this.children) && this.children.length) {
+ this.setColumns().catch(function () { });
+ }
+ },
+ } }),
+ beforeCreate: function () {
+ var _this = this;
+ Object.defineProperty(this, 'children', {
+ get: function () { return _this.selectAllComponents('.van-picker__column') || []; },
+ });
+ },
+ methods: {
+ noop: function () { },
+ setColumns: function () {
+ var _this = this;
+ var data = this.data;
+ var columns = this.simple ? [{ values: data.columns }] : data.columns;
+ var stack = columns.map(function (column, index) {
+ return _this.setColumnValues(index, column.values);
+ });
+ return Promise.all(stack);
+ },
+ emit: function (event) {
+ var type = event.currentTarget.dataset.type;
+ if (this.simple) {
+ this.$emit(type, {
+ value: this.getColumnValue(0),
+ index: this.getColumnIndex(0),
+ });
+ }
+ else {
+ this.$emit(type, {
+ value: this.getValues(),
+ index: this.getIndexes(),
+ });
+ }
+ },
+ onChange: function (event) {
+ if (this.simple) {
+ this.$emit('change', {
+ picker: this,
+ value: this.getColumnValue(0),
+ index: this.getColumnIndex(0),
+ });
+ }
+ else {
+ this.$emit('change', {
+ picker: this,
+ value: this.getValues(),
+ index: event.currentTarget.dataset.index,
+ });
+ }
+ },
+ // get column instance by index
+ getColumn: function (index) {
+ return this.children[index];
+ },
+ // get column value by index
+ getColumnValue: function (index) {
+ var column = this.getColumn(index);
+ return column && column.getValue();
+ },
+ // set column value by index
+ setColumnValue: function (index, value) {
+ var column = this.getColumn(index);
+ if (column == null) {
+ return Promise.reject(new Error('setColumnValue: 对应列不存在'));
+ }
+ return column.setValue(value);
+ },
+ // get column option index by column index
+ getColumnIndex: function (columnIndex) {
+ return (this.getColumn(columnIndex) || {}).data.currentIndex;
+ },
+ // set column option index by column index
+ setColumnIndex: function (columnIndex, optionIndex) {
+ var column = this.getColumn(columnIndex);
+ if (column == null) {
+ return Promise.reject(new Error('setColumnIndex: 对应列不存在'));
+ }
+ return column.setIndex(optionIndex);
+ },
+ // get options of column by index
+ getColumnValues: function (index) {
+ return (this.children[index] || {}).data.options;
+ },
+ // set options of column by index
+ setColumnValues: function (index, options, needReset) {
+ if (needReset === void 0) { needReset = true; }
+ var column = this.children[index];
+ if (column == null) {
+ return Promise.reject(new Error('setColumnValues: 对应列不存在'));
+ }
+ var isSame = JSON.stringify(column.data.options) === JSON.stringify(options);
+ if (isSame) {
+ return Promise.resolve();
+ }
+ return column.set({ options: options }).then(function () {
+ if (needReset) {
+ column.setIndex(0);
+ }
+ });
+ },
+ // get values of all columns
+ getValues: function () {
+ return this.children.map(function (child) { return child.getValue(); });
+ },
+ // set values of all columns
+ setValues: function (values) {
+ var _this = this;
+ var stack = values.map(function (value, index) {
+ return _this.setColumnValue(index, value);
+ });
+ return Promise.all(stack);
+ },
+ // get indexes of all columns
+ getIndexes: function () {
+ return this.children.map(function (child) { return child.data.currentIndex; });
+ },
+ // set indexes of all columns
+ setIndexes: function (indexes) {
+ var _this = this;
+ var stack = indexes.map(function (optionIndex, columnIndex) {
+ return _this.setColumnIndex(columnIndex, optionIndex);
+ });
+ return Promise.all(stack);
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.json
index bbeaf0a..2fcec89 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.json
@@ -1,7 +1,7 @@
-{
- "component": true,
- "usingComponents": {
- "picker-column": "../picker-column/index",
- "loading": "../loading/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "picker-column": "../picker-column/index",
+ "loading": "../loading/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxml
index 5b31ab6..8564ccc 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxml
@@ -1,37 +1,37 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxs
index c8a91ab..0abbd10 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxs
@@ -1,42 +1,42 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-var array = require('../wxs/array.wxs');
-
-function columnsStyle(data) {
- return style({
- height: addUnit(data.itemHeight * data.visibleItemCount),
- });
-}
-
-function maskStyle(data) {
- return style({
- 'background-size':
- '100% ' + addUnit((data.itemHeight * (data.visibleItemCount - 1)) / 2),
- });
-}
-
-function frameStyle(data) {
- return style({
- height: addUnit(data.itemHeight),
- });
-}
-
-function columns(columns) {
- if (!array.isArray(columns)) {
- return [];
- }
-
- if (columns.length && !columns[0].values) {
- return [{ values: columns }];
- }
-
- return columns;
-}
-
-module.exports = {
- columnsStyle: columnsStyle,
- frameStyle: frameStyle,
- maskStyle: maskStyle,
- columns: columns,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+var array = require('../wxs/array.wxs');
+
+function columnsStyle(data) {
+ return style({
+ height: addUnit(data.itemHeight * data.visibleItemCount),
+ });
+}
+
+function maskStyle(data) {
+ return style({
+ 'background-size':
+ '100% ' + addUnit((data.itemHeight * (data.visibleItemCount - 1)) / 2),
+ });
+}
+
+function frameStyle(data) {
+ return style({
+ height: addUnit(data.itemHeight),
+ });
+}
+
+function columns(columns) {
+ if (!array.isArray(columns)) {
+ return [];
+ }
+
+ if (columns.length && !columns[0].values) {
+ return [{ values: columns }];
+ }
+
+ return columns;
+}
+
+module.exports = {
+ columnsStyle: columnsStyle,
+ frameStyle: frameStyle,
+ maskStyle: maskStyle,
+ columns: columns,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxss
index f74b164..d924abb 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-picker{position:relative;overflow:hidden;-webkit-text-size-adjust:100%;-webkit-user-select:none;user-select:none;background-color:#fff;background-color:var(--picker-background-color,#fff)}.van-picker__toolbar{display:-webkit-flex;display:flex;-webkit-justify-content:space-between;justify-content:space-between;height:44px;height:var(--picker-toolbar-height,44px);line-height:44px;line-height:var(--picker-toolbar-height,44px)}.van-picker__cancel,.van-picker__confirm{padding:0 16px;padding:var(--picker-action-padding,0 16px);font-size:14px;font-size:var(--picker-action-font-size,14px)}.van-picker__cancel--hover,.van-picker__confirm--hover{opacity:.7}.van-picker__confirm{color:#576b95;color:var(--picker-confirm-action-color,#576b95)}.van-picker__cancel{color:#969799;color:var(--picker-cancel-action-color,#969799)}.van-picker__title{max-width:50%;text-align:center;font-weight:500;font-weight:var(--font-weight-bold,500);font-size:16px;font-size:var(--picker-option-font-size,16px)}.van-picker__columns{position:relative;display:-webkit-flex;display:flex}.van-picker__column{-webkit-flex:1 1;flex:1 1;width:0}.van-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:4;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;background-color:hsla(0,0%,100%,.9);background-color:var(--picker-loading-mask-color,hsla(0,0%,100%,.9))}.van-picker__mask{top:0;left:0;z-index:2;width:100%;height:100%;background-image:linear-gradient(180deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4)),linear-gradient(0deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4));background-repeat:no-repeat;background-position:top,bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden}.van-picker__frame,.van-picker__mask{position:absolute;pointer-events:none}.van-picker__frame{top:50%;right:16px;left:16px;z-index:1;-webkit-transform:translateY(-50%);transform:translateY(-50%)}
\ No newline at end of file
+@import '../common/index.wxss';.van-picker{-webkit-text-size-adjust:100%;background-color:var(--picker-background-color,#fff);overflow:hidden;position:relative;-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:flex;height:var(--picker-toolbar-height,44px);justify-content:space-between;line-height:var(--picker-toolbar-height,44px)}.van-picker__cancel,.van-picker__confirm{font-size:var(--picker-action-font-size,14px);padding:var(--picker-action-padding,0 16px)}.van-picker__cancel--hover,.van-picker__confirm--hover{opacity:.7}.van-picker__confirm{color:var(--picker-confirm-action-color,#576b95)}.van-picker__cancel{color:var(--picker-cancel-action-color,#969799)}.van-picker__title{font-size:var(--picker-option-font-size,16px);font-weight:var(--font-weight-bold,500);max-width:50%;text-align:center}.van-picker__columns{display:flex;position:relative}.van-picker__column{flex:1 1;width:0}.van-picker__loading{align-items:center;background-color:var(--picker-loading-mask-color,hsla(0,0%,100%,.9));bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:4}.van-picker__mask{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-image:linear-gradient(180deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4)),linear-gradient(0deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4));background-position:top,bottom;background-repeat:no-repeat;height:100%;left:0;top:0;width:100%;z-index:2}.van-picker__frame,.van-picker__mask{pointer-events:none;position:absolute}.van-picker__frame{left:16px;right:16px;top:50%;transform:translateY(-50%);z-index:1}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker/shared.js b/src/openeuler/miniprogram_npm/@vant/weapp/picker/shared.js
index 02c9aaf..3d40a8c 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker/shared.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/picker/shared.js
@@ -1,24 +1,24 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.pickerProps = void 0;
-exports.pickerProps = {
- title: String,
- loading: Boolean,
- showToolbar: Boolean,
- cancelButtonText: {
- type: String,
- value: '取消',
- },
- confirmButtonText: {
- type: String,
- value: '确认',
- },
- visibleItemCount: {
- type: Number,
- value: 6,
- },
- itemHeight: {
- type: Number,
- value: 44,
- },
-};
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.pickerProps = void 0;
+exports.pickerProps = {
+ title: String,
+ loading: Boolean,
+ showToolbar: Boolean,
+ cancelButtonText: {
+ type: String,
+ value: '取消',
+ },
+ confirmButtonText: {
+ type: String,
+ value: '确认',
+ },
+ visibleItemCount: {
+ type: Number,
+ value: 6,
+ },
+ itemHeight: {
+ type: Number,
+ value: 44,
+ },
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker/toolbar.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/picker/toolbar.wxml
index 2502578..414f612 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker/toolbar.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/picker/toolbar.wxml
@@ -1,23 +1,23 @@
-
-
- {{ cancelButtonText }}
-
- {{
- title
- }}
-
- {{ confirmButtonText }}
-
-
+
+
+ {{ cancelButtonText }}
+
+ {{
+ title
+ }}
+
+ {{ confirmButtonText }}
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.js
index 0687bdb..18b08e6 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.js
@@ -1,89 +1,99 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var transition_1 = require('../mixins/transition');
-component_1.VantComponent({
- classes: [
- 'enter-class',
- 'enter-active-class',
- 'enter-to-class',
- 'leave-class',
- 'leave-active-class',
- 'leave-to-class',
- 'close-icon-class',
- ],
- mixins: [transition_1.transition(false)],
- props: {
- round: Boolean,
- closeable: Boolean,
- customStyle: String,
- overlayStyle: String,
- transition: {
- type: String,
- observer: 'observeClass',
- },
- zIndex: {
- type: Number,
- value: 100,
- },
- overlay: {
- type: Boolean,
- value: true,
- },
- closeIcon: {
- type: String,
- value: 'cross',
- },
- closeIconPosition: {
- type: String,
- value: 'top-right',
- },
- closeOnClickOverlay: {
- type: Boolean,
- value: true,
- },
- position: {
- type: String,
- value: 'center',
- observer: 'observeClass',
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- safeAreaInsetTop: {
- type: Boolean,
- value: false,
- },
- },
- created: function () {
- this.observeClass();
- },
- methods: {
- onClickCloseIcon: function () {
- this.$emit('close');
- },
- onClickOverlay: function () {
- this.$emit('click-overlay');
- if (this.data.closeOnClickOverlay) {
- this.$emit('close');
- }
- },
- observeClass: function () {
- var _a = this.data,
- transition = _a.transition,
- position = _a.position,
- duration = _a.duration;
- var updateData = {
- name: transition || position,
- };
- if (transition === 'none') {
- updateData.duration = 0;
- this.originDuration = duration;
- } else if (this.originDuration != null) {
- updateData.duration = this.originDuration;
- }
- this.setData(updateData);
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var transition_1 = require("../mixins/transition");
+(0, component_1.VantComponent)({
+ classes: [
+ 'enter-class',
+ 'enter-active-class',
+ 'enter-to-class',
+ 'leave-class',
+ 'leave-active-class',
+ 'leave-to-class',
+ 'close-icon-class',
+ ],
+ mixins: [(0, transition_1.transition)(false)],
+ props: {
+ round: Boolean,
+ closeable: Boolean,
+ customStyle: String,
+ overlayStyle: String,
+ transition: {
+ type: String,
+ observer: 'observeClass',
+ },
+ zIndex: {
+ type: Number,
+ value: 100,
+ },
+ overlay: {
+ type: Boolean,
+ value: true,
+ },
+ closeIcon: {
+ type: String,
+ value: 'cross',
+ },
+ closeIconPosition: {
+ type: String,
+ value: 'top-right',
+ },
+ closeOnClickOverlay: {
+ type: Boolean,
+ value: true,
+ },
+ position: {
+ type: String,
+ value: 'center',
+ observer: 'observeClass',
+ },
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
+ safeAreaInsetTop: {
+ type: Boolean,
+ value: false,
+ },
+ safeAreaTabBar: {
+ type: Boolean,
+ value: false,
+ },
+ lockScroll: {
+ type: Boolean,
+ value: true,
+ },
+ rootPortal: {
+ type: Boolean,
+ value: false,
+ },
+ },
+ created: function () {
+ this.observeClass();
+ },
+ methods: {
+ onClickCloseIcon: function () {
+ this.$emit('close');
+ },
+ onClickOverlay: function () {
+ this.$emit('click-overlay');
+ if (this.data.closeOnClickOverlay) {
+ this.$emit('close');
+ }
+ },
+ observeClass: function () {
+ var _a = this.data, transition = _a.transition, position = _a.position, duration = _a.duration;
+ var updateData = {
+ name: transition || position,
+ };
+ if (transition === 'none') {
+ updateData.duration = 0;
+ this.originDuration = duration;
+ }
+ else if (this.originDuration != null) {
+ updateData.duration = this.originDuration;
+ }
+ this.setData(updateData);
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.json
index deabcd8..88a6eab 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.json
@@ -1,7 +1,7 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index",
- "van-overlay": "../overlay/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index",
+ "van-overlay": "../overlay/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxml
index 2287f4c..ab824b1 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxml
@@ -1,25 +1,21 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxs
index 1751dd5..8d59f24 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxs
@@ -1,18 +1,18 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-
-function popupStyle(data) {
- return style([
- {
- 'z-index': data.zIndex,
- '-webkit-transition-duration': data.currentDuration + 'ms',
- 'transition-duration': data.currentDuration + 'ms',
- },
- data.display ? null : 'display: none',
- data.customStyle,
- ]);
-}
-
-module.exports = {
- popupStyle: popupStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+
+function popupStyle(data) {
+ return style([
+ {
+ 'z-index': data.zIndex,
+ '-webkit-transition-duration': data.currentDuration + 'ms',
+ 'transition-duration': data.currentDuration + 'ms',
+ },
+ data.display ? null : 'display: none',
+ data.customStyle,
+ ]);
+}
+
+module.exports = {
+ popupStyle: popupStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxss
index a3d6e6f..91983b4 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-popup{position:fixed;box-sizing:border-box;max-height:100%;overflow-y:auto;transition-timing-function:ease;-webkit-animation:ease both;animation:ease both;-webkit-overflow-scrolling:touch;background-color:#fff;background-color:var(--popup-background-color,#fff)}.van-popup--center{top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.van-popup--center.van-popup--round{border-radius:16px;border-radius:var(--popup-round-border-radius,16px)}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 16px 16px;border-radius:0 0 var(--popup-round-border-radius,16px) var(--popup-round-border-radius,16px)}.van-popup--right{top:50%;right:0;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:16px 0 0 16px;border-radius:var(--popup-round-border-radius,16px) 0 0 var(--popup-round-border-radius,16px)}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:16px 16px 0 0;border-radius:var(--popup-round-border-radius,16px) var(--popup-round-border-radius,16px) 0 0}.van-popup--left{top:50%;left:0;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 16px 16px 0;border-radius:0 var(--popup-round-border-radius,16px) var(--popup-round-border-radius,16px) 0}.van-popup--bottom.van-popup--safe{padding-bottom:env(safe-area-inset-bottom)}.van-popup--safeTop{padding-top:env(safe-area-inset-top)}.van-popup__close-icon{position:absolute;z-index:1;z-index:var(--popup-close-icon-z-index,1);color:#969799;color:var(--popup-close-icon-color,#969799);font-size:18px;font-size:var(--popup-close-icon-size,18px)}.van-popup__close-icon--top-left{top:16px;top:var(--popup-close-icon-margin,16px);left:16px;left:var(--popup-close-icon-margin,16px)}.van-popup__close-icon--top-right{top:16px;top:var(--popup-close-icon-margin,16px);right:16px;right:var(--popup-close-icon-margin,16px)}.van-popup__close-icon--bottom-left{bottom:16px;bottom:var(--popup-close-icon-margin,16px);left:16px;left:var(--popup-close-icon-margin,16px)}.van-popup__close-icon--bottom-right{right:16px;right:var(--popup-close-icon-margin,16px);bottom:16px;bottom:var(--popup-close-icon-margin,16px)}.van-popup__close-icon:active{opacity:.6}.van-scale-enter-active,.van-scale-leave-active{transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.van-scale-enter,.van-scale-leave-to{-webkit-transform:translate3d(-50%,-50%,0) scale(.7);transform:translate3d(-50%,-50%,0) scale(.7);opacity:0}.van-fade-enter-active,.van-fade-leave-active{transition-property:opacity}.van-fade-enter,.van-fade-leave-to{opacity:0}.van-center-enter-active,.van-center-leave-active{transition-property:opacity}.van-center-enter,.van-center-leave-to{opacity:0}.van-bottom-enter-active,.van-bottom-leave-active,.van-left-enter-active,.van-left-leave-active,.van-right-enter-active,.van-right-leave-active,.van-top-enter-active,.van-top-leave-active{transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}.van-bottom-enter,.van-bottom-leave-to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.van-top-enter,.van-top-leave-to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}.van-left-enter,.van-left-leave-to{-webkit-transform:translate3d(-100%,-50%,0);transform:translate3d(-100%,-50%,0)}.van-right-enter,.van-right-leave-to{-webkit-transform:translate3d(100%,-50%,0);transform:translate3d(100%,-50%,0)}
\ No newline at end of file
+@import '../common/index.wxss';.van-popup{-webkit-overflow-scrolling:touch;animation:ease both;background-color:var(--popup-background-color,#fff);box-sizing:border-box;max-height:100%;overflow-y:auto;position:fixed;transition-timing-function:ease}.van-popup--center{left:50%;top:50%;transform:translate3d(-50%,-50%,0)}.van-popup--center.van-popup--round{border-radius:var(--popup-round-border-radius,16px)}.van-popup--top{left:0;top:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px))}.van-popup--right{right:0;top:50%;transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0 0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px))}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0 0}.van-popup--left{left:0;top:50%;transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0}.van-popup--bottom.van-popup--safe{padding-bottom:env(safe-area-inset-bottom)}.van-popup--bottom.van-popup--safeTabBar,.van-popup--top.van-popup--safeTabBar{bottom:var(--tabbar-height,50px)}.van-popup--safeTop{padding-top:env(safe-area-inset-top)}.van-popup__close-icon{color:var(--popup-close-icon-color,#969799);font-size:var(--popup-close-icon-size,18px);position:absolute;z-index:var(--popup-close-icon-z-index,1)}.van-popup__close-icon--top-left{left:var(--popup-close-icon-margin,16px);top:var(--popup-close-icon-margin,16px)}.van-popup__close-icon--top-right{right:var(--popup-close-icon-margin,16px);top:var(--popup-close-icon-margin,16px)}.van-popup__close-icon--bottom-left{bottom:var(--popup-close-icon-margin,16px);left:var(--popup-close-icon-margin,16px)}.van-popup__close-icon--bottom-right{bottom:var(--popup-close-icon-margin,16px);right:var(--popup-close-icon-margin,16px)}.van-popup__close-icon:active{opacity:.6}.van-scale-enter-active,.van-scale-leave-active{transition-property:opacity,transform}.van-scale-enter,.van-scale-leave-to{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.van-fade-enter-active,.van-fade-leave-active{transition-property:opacity}.van-fade-enter,.van-fade-leave-to{opacity:0}.van-center-enter-active,.van-center-leave-active{transition-property:opacity}.van-center-enter,.van-center-leave-to{opacity:0}.van-bottom-enter-active,.van-bottom-leave-active,.van-left-enter-active,.van-left-leave-active,.van-right-enter-active,.van-right-leave-active,.van-top-enter-active,.van-top-leave-active{transition-property:transform}.van-bottom-enter,.van-bottom-leave-to{transform:translate3d(0,100%,0)}.van-top-enter,.van-top-leave-to{transform:translate3d(0,-100%,0)}.van-left-enter,.van-left-leave-to{transform:translate3d(-100%,-50%,0)}.van-right-enter,.van-right-leave-to{transform:translate3d(100%,-50%,0)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.js
index e775b36..3bca928 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.js
@@ -1,56 +1,55 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var color_1 = require('../common/color');
-var utils_1 = require('../common/utils');
-component_1.VantComponent({
- props: {
- inactive: Boolean,
- percentage: {
- type: Number,
- observer: 'setLeft',
- },
- pivotText: String,
- pivotColor: String,
- trackColor: String,
- showPivot: {
- type: Boolean,
- value: true,
- },
- color: {
- type: String,
- value: color_1.BLUE,
- },
- textColor: {
- type: String,
- value: '#fff',
- },
- strokeWidth: {
- type: null,
- value: 4,
- },
- },
- data: {
- right: 0,
- },
- mounted: function () {
- this.setLeft();
- },
- methods: {
- setLeft: function () {
- var _this = this;
- Promise.all([
- utils_1.getRect(this, '.van-progress'),
- utils_1.getRect(this, '.van-progress__pivot'),
- ]).then(function (_a) {
- var portion = _a[0],
- pivot = _a[1];
- if (portion && pivot) {
- _this.setData({
- right: (pivot.width * (_this.data.percentage - 100)) / 100,
- });
- }
- });
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var color_1 = require("../common/color");
+var utils_1 = require("../common/utils");
+(0, component_1.VantComponent)({
+ props: {
+ inactive: Boolean,
+ percentage: {
+ type: Number,
+ observer: 'setLeft',
+ },
+ pivotText: String,
+ pivotColor: String,
+ trackColor: String,
+ showPivot: {
+ type: Boolean,
+ value: true,
+ },
+ color: {
+ type: String,
+ value: color_1.BLUE,
+ },
+ textColor: {
+ type: String,
+ value: '#fff',
+ },
+ strokeWidth: {
+ type: null,
+ value: 4,
+ },
+ },
+ data: {
+ right: 0,
+ },
+ mounted: function () {
+ this.setLeft();
+ },
+ methods: {
+ setLeft: function () {
+ var _this = this;
+ Promise.all([
+ (0, utils_1.getRect)(this, '.van-progress'),
+ (0, utils_1.getRect)(this, '.van-progress__pivot'),
+ ]).then(function (_a) {
+ var portion = _a[0], pivot = _a[1];
+ if (portion && pivot) {
+ _this.setData({
+ right: (pivot.width * (_this.data.percentage - 100)) / 100,
+ });
+ }
+ });
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxml
index 9cde2d4..e81514d 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxml
@@ -1,20 +1,20 @@
-
-
-
-
-
-
- {{ computed.pivotText(pivotText, percentage) }}
-
-
-
+
+
+
+
+
+
+ {{ computed.pivotText(pivotText, percentage) }}
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxs
index d1b41b5..5b1e8e6 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxs
@@ -1,36 +1,36 @@
-/* eslint-disable */
-var utils = require('../wxs/utils.wxs');
-var style = require('../wxs/style.wxs');
-
-function pivotText(pivotText, percentage) {
- return pivotText || percentage + '%';
-}
-
-function rootStyle(data) {
- return style({
- 'height': data.strokeWidth ? utils.addUnit(data.strokeWidth) : '',
- 'background': data.trackColor,
- });
-}
-
-function portionStyle(data) {
- return style({
- background: data.inactive ? '#cacaca' : data.color,
- width: data.percentage ? data.percentage + '%' : '',
- });
-}
-
-function pivotStyle(data) {
- return style({
- color: data.textColor,
- right: data.right + 'px',
- background: data.pivotColor ? data.pivotColor : data.inactive ? '#cacaca' : data.color,
- });
-}
-
-module.exports = {
- pivotText: pivotText,
- rootStyle: rootStyle,
- portionStyle: portionStyle,
- pivotStyle: pivotStyle,
-};
+/* eslint-disable */
+var utils = require('../wxs/utils.wxs');
+var style = require('../wxs/style.wxs');
+
+function pivotText(pivotText, percentage) {
+ return pivotText || percentage + '%';
+}
+
+function rootStyle(data) {
+ return style({
+ 'height': data.strokeWidth ? utils.addUnit(data.strokeWidth) : '',
+ 'background': data.trackColor,
+ });
+}
+
+function portionStyle(data) {
+ return style({
+ background: data.inactive ? '#cacaca' : data.color,
+ width: data.percentage ? data.percentage + '%' : '',
+ });
+}
+
+function pivotStyle(data) {
+ return style({
+ color: data.textColor,
+ right: data.right + 'px',
+ background: data.pivotColor ? data.pivotColor : data.inactive ? '#cacaca' : data.color,
+ });
+}
+
+module.exports = {
+ pivotText: pivotText,
+ rootStyle: rootStyle,
+ portionStyle: portionStyle,
+ pivotStyle: pivotStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxss
index 3844a59..a08972a 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-progress{position:relative;height:4px;height:var(--progress-height,4px);border-radius:4px;border-radius:var(--progress-height,4px);background:#ebedf0;background:var(--progress-background-color,#ebedf0)}.van-progress__portion{position:absolute;left:0;height:100%;border-radius:inherit;background:#1989fa;background:var(--progress-color,#1989fa)}.van-progress__pivot{position:absolute;top:50%;box-sizing:border-box;min-width:3.6em;text-align:center;word-break:keep-all;border-radius:1em;-webkit-transform:translateY(-50%);transform:translateY(-50%);color:#fff;color:var(--progress-pivot-text-color,#fff);padding:0 5px;padding:var(--progress-pivot-padding,0 5px);font-size:10px;font-size:var(--progress-pivot-font-size,10px);line-height:1.6;line-height:var(--progress-pivot-line-height,1.6);background-color:#1989fa;background-color:var(--progress-pivot-background-color,#1989fa)}
\ No newline at end of file
+@import '../common/index.wxss';.van-progress{background:var(--progress-background-color,#ebedf0);border-radius:var(--progress-height,4px);height:var(--progress-height,4px);position:relative}.van-progress__portion{background:var(--progress-color,#1989fa);border-radius:inherit;height:100%;left:0;position:absolute}.van-progress__pivot{background-color:var(--progress-pivot-background-color,#1989fa);border-radius:1em;box-sizing:border-box;color:var(--progress-pivot-text-color,#fff);font-size:var(--progress-pivot-font-size,10px);line-height:var(--progress-pivot-line-height,1.6);min-width:3.6em;padding:var(--progress-pivot-padding,0 5px);position:absolute;text-align:center;top:50%;transform:translateY(-50%);word-break:keep-all}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.js
index b66deaa..ddb2a60 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.js
@@ -1,40 +1,24 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-component_1.VantComponent({
- field: true,
- relation: relation_1.useChildren('radio', function (target) {
- this.updateChild(target);
- }),
- props: {
- value: {
- type: null,
- observer: 'updateChildren',
- },
- direction: String,
- disabled: {
- type: Boolean,
- observer: 'updateChildren',
- },
- },
- methods: {
- updateChildren: function () {
- var _this = this;
- this.children.forEach(function (child) {
- return _this.updateChild(child);
- });
- },
- updateChild: function (child) {
- var _a = this.data,
- value = _a.value,
- disabled = _a.disabled,
- direction = _a.direction;
- child.setData({
- value: value,
- direction: direction,
- disabled: disabled || child.data.disabled,
- });
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ field: true,
+ relation: (0, relation_1.useChildren)('radio'),
+ props: {
+ value: {
+ type: null,
+ observer: 'updateChildren',
+ },
+ direction: String,
+ disabled: {
+ type: Boolean,
+ observer: 'updateChildren',
+ },
+ },
+ methods: {
+ updateChildren: function () {
+ this.children.forEach(function (child) { return child.updateFromParent(); });
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.wxml
index 1b654ac..0ab17af 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.wxml
@@ -1,5 +1,5 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.wxss
index df45fd6..4e3b5d4 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-radio-group--horizontal{display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}
\ No newline at end of file
+@import '../common/index.wxss';.van-radio-group--horizontal{display:flex;flex-wrap:wrap}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.js
index 7f8bffb..61a86d5 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.js
@@ -1,50 +1,68 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-component_1.VantComponent({
- field: true,
- relation: relation_1.useParent('radio-group'),
- classes: ['icon-class', 'label-class'],
- props: {
- name: null,
- value: null,
- disabled: Boolean,
- useIconSlot: Boolean,
- checkedColor: String,
- labelPosition: {
- type: String,
- value: 'right',
- },
- labelDisabled: Boolean,
- shape: {
- type: String,
- value: 'round',
- },
- iconSize: {
- type: null,
- value: 20,
- },
- },
- methods: {
- emitChange: function (value) {
- var instance = this.parent || this;
- instance.$emit('input', value);
- instance.$emit('change', value);
- },
- onChange: function () {
- if (!this.data.disabled) {
- this.emitChange(this.data.name);
- }
- },
- onClickLabel: function () {
- var _a = this.data,
- disabled = _a.disabled,
- labelDisabled = _a.labelDisabled,
- name = _a.name;
- if (!disabled && !labelDisabled) {
- this.emitChange(name);
- }
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var version_1 = require("../common/version");
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ field: true,
+ relation: (0, relation_1.useParent)('radio-group', function () {
+ this.updateFromParent();
+ }),
+ classes: ['icon-class', 'label-class'],
+ props: {
+ name: null,
+ value: null,
+ disabled: Boolean,
+ useIconSlot: Boolean,
+ checkedColor: String,
+ labelPosition: {
+ type: String,
+ value: 'right',
+ },
+ labelDisabled: Boolean,
+ shape: {
+ type: String,
+ value: 'round',
+ },
+ iconSize: {
+ type: null,
+ value: 20,
+ },
+ },
+ data: {
+ direction: '',
+ parentDisabled: false,
+ },
+ methods: {
+ updateFromParent: function () {
+ if (!this.parent) {
+ return;
+ }
+ var _a = this.parent.data, value = _a.value, parentDisabled = _a.disabled, direction = _a.direction;
+ this.setData({
+ value: value,
+ direction: direction,
+ parentDisabled: parentDisabled,
+ });
+ },
+ emitChange: function (value) {
+ var instance = this.parent || this;
+ instance.$emit('input', value);
+ instance.$emit('change', value);
+ if ((0, version_1.canIUseModel)()) {
+ instance.setData({ value: value });
+ }
+ },
+ onChange: function () {
+ if (!this.data.disabled && !this.data.parentDisabled) {
+ this.emitChange(this.data.name);
+ }
+ },
+ onClickLabel: function () {
+ var _a = this.data, disabled = _a.disabled, parentDisabled = _a.parentDisabled, labelDisabled = _a.labelDisabled, name = _a.name;
+ if (!(disabled || parentDisabled) && !labelDisabled) {
+ this.emitChange(name);
+ }
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.json
index 8abfe20..0a336c0 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.wxml
index f6166b7..5f898c0 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.wxml
@@ -1,29 +1,30 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.wxss
index 602a69e..257b0c7 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-radio{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;overflow:hidden;-webkit-user-select:none;user-select:none}.van-radio__icon-wrap{-webkit-flex:none;flex:none}.van-radio--horizontal{margin-right:12px;margin-right:var(--padding-sm,12px)}.van-radio__icon{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;width:1em;height:1em;color:transparent;text-align:center;transition-property:color,border-color,background-color;border:1px solid #c8c9cc;border:1px solid var(--radio-border-color,#c8c9cc);font-size:20px;font-size:var(--radio-size,20px);transition-duration:.2s;transition-duration:var(--radio-transition-duration,.2s)}.van-radio__icon--round{border-radius:100%}.van-radio__icon--checked{color:#fff;color:var(--white,#fff);background-color:#1989fa;background-color:var(--radio-checked-icon-color,#1989fa);border-color:#1989fa;border-color:var(--radio-checked-icon-color,#1989fa)}.van-radio__icon--disabled{background-color:#ebedf0;background-color:var(--radio-disabled-background-color,#ebedf0);border-color:#c8c9cc;border-color:var(--radio-disabled-icon-color,#c8c9cc)}.van-radio__icon--disabled.van-radio__icon--checked{color:#c8c9cc;color:var(--radio-disabled-icon-color,#c8c9cc)}.van-radio__label{word-wrap:break-word;margin-left:10px;margin-left:var(--radio-label-margin,10px);color:#323233;color:var(--radio-label-color,#323233);line-height:20px;line-height:var(--radio-size,20px)}.van-radio__label--left{float:left;margin:0 10px 0 0;margin:0 var(--radio-label-margin,10px) 0 0}.van-radio__label--disabled{color:#c8c9cc;color:var(--radio-disabled-label-color,#c8c9cc)}.van-radio__label:empty{margin:0}
\ No newline at end of file
+@import '../common/index.wxss';.van-radio{align-items:center;display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-radio__icon-wrap{flex:none}.van-radio--horizontal{margin-right:var(--padding-sm,12px)}.van-radio__icon{align-items:center;border:1px solid var(--radio-border-color,#c8c9cc);box-sizing:border-box;color:transparent;display:flex;font-size:var(--radio-size,20px);height:1em;justify-content:center;text-align:center;transition-duration:var(--radio-transition-duration,.2s);transition-property:color,border-color,background-color;width:1em}.van-radio__icon--round{border-radius:100%}.van-radio__icon--checked{background-color:var(--radio-checked-icon-color,#1989fa);border-color:var(--radio-checked-icon-color,#1989fa);color:#fff}.van-radio__icon--disabled{background-color:var(--radio-disabled-background-color,#ebedf0);border-color:var(--radio-disabled-icon-color,#c8c9cc)}.van-radio__icon--disabled.van-radio__icon--checked{color:var(--radio-disabled-icon-color,#c8c9cc)}.van-radio__label{word-wrap:break-word;color:var(--radio-label-color,#323233);line-height:var(--radio-size,20px);padding-left:var(--radio-label-margin,10px)}.van-radio__label--left{float:left;margin:0 var(--radio-label-margin,10px) 0 0}.van-radio__label--disabled{color:var(--radio-disabled-label-color,#c8c9cc)}.van-radio__label:empty{margin:0}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.js
index fe1a435..30a96de 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.js
@@ -1,111 +1,93 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-Object.defineProperty(exports, '__esModule', { value: true });
-var utils_1 = require('../common/utils');
-var component_1 = require('../common/component');
-var version_1 = require('../common/version');
-component_1.VantComponent({
- field: true,
- classes: ['icon-class'],
- props: {
- value: {
- type: Number,
- observer: function (value) {
- if (value !== this.data.innerValue) {
- this.setData({ innerValue: value });
- }
- },
- },
- readonly: Boolean,
- disabled: Boolean,
- allowHalf: Boolean,
- size: null,
- icon: {
- type: String,
- value: 'star',
- },
- voidIcon: {
- type: String,
- value: 'star-o',
- },
- color: {
- type: String,
- value: '#ffd21e',
- },
- voidColor: {
- type: String,
- value: '#c7c7c7',
- },
- disabledColor: {
- type: String,
- value: '#bdbdbd',
- },
- count: {
- type: Number,
- value: 5,
- observer: function (value) {
- this.setData({ innerCountArray: Array.from({ length: value }) });
- },
- },
- gutter: null,
- touchable: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- innerValue: 0,
- innerCountArray: Array.from({ length: 5 }),
- },
- methods: {
- onSelect: function (event) {
- var _this = this;
- var data = this.data;
- var score = event.currentTarget.dataset.score;
- if (!data.disabled && !data.readonly) {
- this.setData({ innerValue: score + 1 });
- if (version_1.canIUseModel()) {
- this.setData({ value: score + 1 });
- }
- wx.nextTick(function () {
- _this.$emit('input', score + 1);
- _this.$emit('change', score + 1);
- });
- }
- },
- onTouchMove: function (event) {
- var _this = this;
- var touchable = this.data.touchable;
- if (!touchable) return;
- var clientX = event.touches[0].clientX;
- utils_1.getAllRect(this, '.van-rate__icon').then(function (list) {
- var target = list
- .sort(function (item) {
- return item.right - item.left;
- })
- .find(function (item) {
- return clientX >= item.left && clientX <= item.right;
- });
- if (target != null) {
- _this.onSelect(
- __assign(__assign({}, event), { currentTarget: target })
- );
- }
- });
- },
- },
-});
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var utils_1 = require("../common/utils");
+var component_1 = require("../common/component");
+var version_1 = require("../common/version");
+(0, component_1.VantComponent)({
+ field: true,
+ classes: ['icon-class'],
+ props: {
+ value: {
+ type: Number,
+ observer: function (value) {
+ if (value !== this.data.innerValue) {
+ this.setData({ innerValue: value });
+ }
+ },
+ },
+ readonly: Boolean,
+ disabled: Boolean,
+ allowHalf: Boolean,
+ size: null,
+ icon: {
+ type: String,
+ value: 'star',
+ },
+ voidIcon: {
+ type: String,
+ value: 'star-o',
+ },
+ color: String,
+ voidColor: String,
+ disabledColor: String,
+ count: {
+ type: Number,
+ value: 5,
+ observer: function (value) {
+ this.setData({ innerCountArray: Array.from({ length: value }) });
+ },
+ },
+ gutter: null,
+ touchable: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ data: {
+ innerValue: 0,
+ innerCountArray: Array.from({ length: 5 }),
+ },
+ methods: {
+ onSelect: function (event) {
+ var _this = this;
+ var data = this.data;
+ var score = event.currentTarget.dataset.score;
+ if (!data.disabled && !data.readonly) {
+ this.setData({ innerValue: score + 1 });
+ if ((0, version_1.canIUseModel)()) {
+ this.setData({ value: score + 1 });
+ }
+ wx.nextTick(function () {
+ _this.$emit('input', score + 1);
+ _this.$emit('change', score + 1);
+ });
+ }
+ },
+ onTouchMove: function (event) {
+ var _this = this;
+ var touchable = this.data.touchable;
+ if (!touchable)
+ return;
+ var clientX = event.touches[0].clientX;
+ (0, utils_1.getAllRect)(this, '.van-rate__icon').then(function (list) {
+ var target = list
+ .sort(function (cur, next) { return cur.dataset.score - next.dataset.score; })
+ .find(function (item) { return clientX >= item.left && clientX <= item.right; });
+ if (target != null) {
+ _this.onSelect(__assign(__assign({}, event), { currentTarget: target }));
+ }
+ });
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.json
index 8abfe20..0a336c0 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.wxml
index d348c57..049714c 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.wxml
@@ -1,34 +1,35 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.wxss
index 6fd3435..470e4f4 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-rate{display:-webkit-inline-flex;display:inline-flex;-webkit-user-select:none;user-select:none}.van-rate__item{position:relative;padding:0 2px;padding:0 var(--rate-horizontal-padding,2px)}.van-rate__icon{display:block;height:1em;font-size:20px;font-size:var(--rate-icon-size,20px)}.van-rate__icon--half{position:absolute;top:0;width:.5em;overflow:hidden;left:2px;left:var(--rate-horizontal-padding,2px)}
\ No newline at end of file
+@import '../common/index.wxss';.van-rate{display:inline-flex;-webkit-user-select:none;user-select:none}.van-rate__item{padding:0 var(--rate-horizontal-padding,2px);position:relative}.van-rate__item:not(:last-child){padding-right:var(--rate-icon-gutter,4px)}.van-rate__icon{color:var(--rate-icon-void-color,#c8c9cc);display:block;font-size:var(--rate-icon-size,20px);height:100%}.van-rate__icon--half{left:var(--rate-horizontal-padding,2px);overflow:hidden;position:absolute;top:0;width:.5em}.van-rate__icon--full,.van-rate__icon--half{color:var(--rate-icon-full-color,#ee0a24)}.van-rate__icon--disabled{color:var(--rate-icon-disabled-color,#c8c9cc)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/row/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/row/index.js
index d99659a..c27acd6 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/row/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/row/index.js
@@ -1,26 +1,26 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-component_1.VantComponent({
- relation: relation_1.useChildren('col', function (target) {
- var gutter = this.data.gutter;
- if (gutter) {
- target.setData({ gutter: gutter });
- }
- }),
- props: {
- gutter: {
- type: Number,
- observer: 'setGutter',
- },
- },
- methods: {
- setGutter: function () {
- var _this = this;
- this.children.forEach(function (col) {
- col.setData(_this.data);
- });
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useChildren)('col', function (target) {
+ var gutter = this.data.gutter;
+ if (gutter) {
+ target.setData({ gutter: gutter });
+ }
+ }),
+ props: {
+ gutter: {
+ type: Number,
+ observer: 'setGutter',
+ },
+ },
+ methods: {
+ setGutter: function () {
+ var _this = this;
+ this.children.forEach(function (col) {
+ col.setData(_this.data);
+ });
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/row/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/row/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/row/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/row/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxml
index f5a667e..69a4359 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxml
@@ -1,5 +1,5 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxs
index 9c884d3..f5c5958 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxs
@@ -1,18 +1,18 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
- if (!data.gutter) {
- return '';
- }
-
- return style({
- 'margin-right': addUnit(-data.gutter / 2),
- 'margin-left': addUnit(-data.gutter / 2),
- });
-}
-
-module.exports = {
- rootStyle: rootStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function rootStyle(data) {
+ if (!data.gutter) {
+ return '';
+ }
+
+ return style({
+ 'margin-right': addUnit(-data.gutter / 2),
+ 'margin-left': addUnit(-data.gutter / 2),
+ });
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxss
index 32a098b..bb8946b 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-row:after{display:table;clear:both;content:""}
\ No newline at end of file
+@import '../common/index.wxss';.van-row:after{clear:both;content:"";display:table}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/search/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/search/index.js
index 01b89de..b5348b0 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/search/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/search/index.js
@@ -1,81 +1,100 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var version_1 = require('../common/version');
-component_1.VantComponent({
- field: true,
- classes: ['field-class', 'input-class', 'cancel-class'],
- props: {
- label: String,
- focus: Boolean,
- error: Boolean,
- disabled: Boolean,
- readonly: Boolean,
- inputAlign: String,
- showAction: Boolean,
- useActionSlot: Boolean,
- useLeftIconSlot: Boolean,
- useRightIconSlot: Boolean,
- leftIcon: {
- type: String,
- value: 'search',
- },
- rightIcon: String,
- placeholder: String,
- placeholderStyle: String,
- actionText: {
- type: String,
- value: '取消',
- },
- background: {
- type: String,
- value: '#ffffff',
- },
- maxlength: {
- type: Number,
- value: -1,
- },
- shape: {
- type: String,
- value: 'square',
- },
- clearable: {
- type: Boolean,
- value: true,
- },
- },
- methods: {
- onChange: function (event) {
- if (version_1.canIUseModel()) {
- this.setData({ value: event.detail });
- }
- this.$emit('change', event.detail);
- },
- onCancel: function () {
- var _this = this;
- /**
- * 修复修改输入框值时,输入框失焦和赋值同时触发,赋值失效
- * https://github.com/youzan/@vant/weapp/issues/1768
- */
- setTimeout(function () {
- if (version_1.canIUseModel()) {
- _this.setData({ value: '' });
- }
- _this.$emit('cancel');
- _this.$emit('change', '');
- }, 200);
- },
- onSearch: function (event) {
- this.$emit('search', event.detail);
- },
- onFocus: function (event) {
- this.$emit('focus', event.detail);
- },
- onBlur: function (event) {
- this.$emit('blur', event.detail);
- },
- onClear: function (event) {
- this.$emit('clear', event.detail);
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var version_1 = require("../common/version");
+(0, component_1.VantComponent)({
+ field: true,
+ classes: ['field-class', 'input-class', 'cancel-class'],
+ props: {
+ value: {
+ type: String,
+ value: '',
+ },
+ label: String,
+ focus: Boolean,
+ error: Boolean,
+ disabled: Boolean,
+ readonly: Boolean,
+ inputAlign: String,
+ showAction: Boolean,
+ useActionSlot: Boolean,
+ useLeftIconSlot: Boolean,
+ useRightIconSlot: Boolean,
+ leftIcon: {
+ type: String,
+ value: 'search',
+ },
+ rightIcon: String,
+ placeholder: String,
+ placeholderStyle: String,
+ actionText: {
+ type: String,
+ value: '取消',
+ },
+ background: {
+ type: String,
+ value: '#ffffff',
+ },
+ maxlength: {
+ type: Number,
+ value: -1,
+ },
+ shape: {
+ type: String,
+ value: 'square',
+ },
+ clearable: {
+ type: Boolean,
+ value: true,
+ },
+ clearTrigger: {
+ type: String,
+ value: 'focus',
+ },
+ clearIcon: {
+ type: String,
+ value: 'clear',
+ },
+ cursorSpacing: {
+ type: Number,
+ value: 0,
+ },
+ },
+ methods: {
+ onChange: function (event) {
+ if ((0, version_1.canIUseModel)()) {
+ this.setData({ value: event.detail });
+ }
+ this.$emit('change', event.detail);
+ },
+ onCancel: function () {
+ var _this = this;
+ /**
+ * 修复修改输入框值时,输入框失焦和赋值同时触发,赋值失效
+ * https://github.com/youzan/vant-weapp/issues/1768
+ */
+ setTimeout(function () {
+ if ((0, version_1.canIUseModel)()) {
+ _this.setData({ value: '' });
+ }
+ _this.$emit('cancel');
+ _this.$emit('change', '');
+ }, 200);
+ },
+ onSearch: function (event) {
+ this.$emit('search', event.detail);
+ },
+ onFocus: function (event) {
+ this.$emit('focus', event.detail);
+ },
+ onBlur: function (event) {
+ this.$emit('blur', event.detail);
+ },
+ onClear: function (event) {
+ this.$emit('clear', event.detail);
+ },
+ onClickInput: function (event) {
+ this.$emit('click-input', event.detail);
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/search/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/search/index.json
index 8c052fe..b4cfe91 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/search/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/search/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-field": "../field/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-field": "../field/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/search/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/search/index.wxml
index 9967ef4..cbcb47a 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/search/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/search/index.wxml
@@ -1,50 +1,54 @@
-
-
-
-
- {{ label }}
-
-
-
-
-
-
-
-
-
-
- {{ actionText }}
-
-
+
+
+
+
+ {{ label }}
+
+
+
+
+
+
+
+
+
+
+ {{ actionText }}
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/search/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/search/index.wxss
index c918deb..4f306b0 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/search/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/search/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-search{-webkit-align-items:center;align-items:center;box-sizing:border-box;padding:10px 12px;padding:var(--search-padding,10px 12px)}.van-search,.van-search__content{display:-webkit-flex;display:flex}.van-search__content{-webkit-flex:1;flex:1;padding-left:12px;padding-left:var(--padding-sm,12px);border-radius:2px;border-radius:var(--border-radius-sm,2px);background-color:#f7f8fa;background-color:var(--search-background-color,#f7f8fa)}.van-search__content--round{border-radius:17px;border-radius:calc(var(--search-input-height, 34px)/2)}.van-search__label{padding:0 5px;padding:var(--search-label-padding,0 5px);font-size:14px;font-size:var(--search-label-font-size,14px);line-height:34px;line-height:var(--search-input-height,34px);color:#323233;color:var(--search-label-color,#323233)}.van-search__field{-webkit-flex:1;flex:1}.van-search__field__left-icon{color:#969799;color:var(--search-left-icon-color,#969799)}.van-search--withaction{padding-right:0}.van-search__action{padding:0 8px;padding:var(--search-action-padding,0 8px);font-size:14px;font-size:var(--search-action-font-size,14px);line-height:34px;line-height:var(--search-input-height,34px);color:#323233;color:var(--search-action-text-color,#323233)}.van-search__action--hover{background-color:#f2f3f5;background-color:var(--active-color,#f2f3f5)}
\ No newline at end of file
+@import '../common/index.wxss';.van-search{align-items:center;box-sizing:border-box;display:flex;padding:var(--search-padding,10px 12px)}.van-search__content{background-color:var(--search-background-color,#f7f8fa);border-radius:2px;display:flex;flex:1;padding-left:var(--padding-sm,12px)}.van-search__content--round{border-radius:999px}.van-search__label{color:var(--search-label-color,#323233);font-size:var(--search-label-font-size,14px);line-height:var(--search-input-height,34px);padding:var(--search-label-padding,0 5px)}.van-search__field{flex:1}.van-search__field__left-icon{color:var(--search-left-icon-color,#969799)}.van-search--withaction{padding-right:0}.van-search__action{color:var(--search-action-text-color,#323233);font-size:var(--search-action-font-size,14px);line-height:var(--search-input-height,34px)}.van-search__action--hover{background-color:#f2f3f5}.van-search__action-button{padding:var(--search-action-padding,0 8px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.js
index d25a8ca..669ca0d 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.js
@@ -1,57 +1,57 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-component_1.VantComponent({
- props: {
- // whether to show popup
- show: Boolean,
- // overlay custom style
- overlayStyle: Object,
- // z-index
- zIndex: {
- type: Number,
- value: 100,
- },
- title: String,
- cancelText: {
- type: String,
- value: '取消',
- },
- description: String,
- options: {
- type: Array,
- value: [],
- },
- overlay: {
- type: Boolean,
- value: true,
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- closeOnClickOverlay: {
- type: Boolean,
- value: true,
- },
- duration: {
- type: null,
- value: 300,
- },
- },
- methods: {
- onClickOverlay: function () {
- this.$emit('click-overlay');
- },
- onCancel: function () {
- this.onClose();
- this.$emit('cancel');
- },
- onSelect: function (event) {
- this.$emit('select', event.detail);
- },
- onClose: function () {
- this.$emit('close');
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ // whether to show popup
+ show: Boolean,
+ // overlay custom style
+ overlayStyle: String,
+ // z-index
+ zIndex: {
+ type: Number,
+ value: 100,
+ },
+ title: String,
+ cancelText: {
+ type: String,
+ value: '取消',
+ },
+ description: String,
+ options: {
+ type: Array,
+ value: [],
+ },
+ overlay: {
+ type: Boolean,
+ value: true,
+ },
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
+ closeOnClickOverlay: {
+ type: Boolean,
+ value: true,
+ },
+ duration: {
+ type: null,
+ value: 300,
+ },
+ },
+ methods: {
+ onClickOverlay: function () {
+ this.$emit('click-overlay');
+ },
+ onCancel: function () {
+ this.onClose();
+ this.$emit('cancel');
+ },
+ onSelect: function (event) {
+ this.$emit('select', event.detail);
+ },
+ onClose: function () {
+ this.$emit('close');
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.json
index 0ef7b7a..15a7c22 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.json
@@ -1,7 +1,7 @@
-{
- "component": true,
- "usingComponents": {
- "van-popup": "../popup/index",
- "options": "./options"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-popup": "../popup/index",
+ "options": "./options"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxml
index 6786ce0..cefc3af 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxml
@@ -1,46 +1,46 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxs
index bf7392c..2149ee9 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxs
@@ -1,12 +1,12 @@
-/* eslint-disable */
-function isMulti(options) {
- if (options == null || options[0] == null) {
- return false;
- }
-
- return "Array" === options.constructor && "Array" === options[0].constructor;
-}
-
-module.exports = {
- isMulti: isMulti
-};
+/* eslint-disable */
+function isMulti(options) {
+ if (options == null || options[0] == null) {
+ return false;
+ }
+
+ return "Array" === options.constructor && "Array" === options[0].constructor;
+}
+
+module.exports = {
+ isMulti: isMulti
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxss
index 8d42eb2..e8d8dae 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-share-sheet__header{padding:12px 16px 4px;text-align:center}.van-share-sheet__title{margin-top:8px;color:#323233;font-weight:400;font-size:14px;line-height:20px}.van-share-sheet__title:empty,.van-share-sheet__title:not(:empty)+.van-share-sheet__title{display:none}.van-share-sheet__description{display:block;margin-top:8px;color:#969799;font-size:12px;line-height:16px}.van-share-sheet__description:empty,.van-share-sheet__description:not(:empty)+.van-share-sheet__description{display:none}.van-share-sheet__cancel{display:block;box-sizing:initial;width:100%;height:auto;padding:0;font-size:16px;line-height:48px;text-align:center;background:#fff;border:none}.van-share-sheet__cancel:before{display:block;height:8px;background-color:#f7f8fa;content:" "}.van-share-sheet__cancel:after{display:none}.van-share-sheet__cancel:active{background-color:#f2f3f5}
\ No newline at end of file
+@import '../common/index.wxss';.van-share-sheet__header{padding:12px 16px 4px;text-align:center}.van-share-sheet__title{color:#323233;font-size:14px;font-weight:400;line-height:20px;margin-top:8px}.van-share-sheet__title:empty,.van-share-sheet__title:not(:empty)+.van-share-sheet__title{display:none}.van-share-sheet__description{color:#969799;display:block;font-size:12px;line-height:16px;margin-top:8px}.van-share-sheet__description:empty,.van-share-sheet__description:not(:empty)+.van-share-sheet__description{display:none}.van-share-sheet__cancel{background:#fff;border:none;box-sizing:initial;display:block;font-size:16px;height:auto;line-height:48px;padding:0;text-align:center;width:100%}.van-share-sheet__cancel:before{background-color:#f7f8fa;content:" ";display:block;height:8px}.van-share-sheet__cancel:after{display:none}.van-share-sheet__cancel:active{background-color:#f2f3f5}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.js b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.js
index 9fcf174..0432d4f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.js
@@ -1,31 +1,27 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-component_1.VantComponent({
- props: {
- options: Array,
- showBorder: Boolean,
- },
- methods: {
- onSelect: function (event) {
- var index = event.currentTarget.dataset.index;
- var option = this.data.options[index];
- this.$emit('select', __assign(__assign({}, option), { index: index }));
- },
- },
-});
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ options: Array,
+ showBorder: Boolean,
+ },
+ methods: {
+ onSelect: function (event) {
+ var index = event.currentTarget.dataset.index;
+ var option = this.data.options[index];
+ this.$emit('select', __assign(__assign({}, option), { index: index }));
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.json b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxml
index 623b060..2983ebb 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxml
@@ -1,20 +1,20 @@
-
-
-
-
-
-
- {{ item.name }}
-
- {{ item.description }}
-
-
-
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxs
index 81ab08a..a116d32 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxs
@@ -1,14 +1,14 @@
-/* eslint-disable */
-var PRESET_ICONS = ['qq', 'weibo', 'wechat', 'link', 'qrcode', 'poster'];
-
-function getIconURL(icon) {
- if (PRESET_ICONS.indexOf(icon) !== -1) {
- return 'https://img.yzcdn.cn/vant/share-icon-' + icon + '.png';
- }
-
- return icon;
-}
-
-module.exports = {
- getIconURL: getIconURL,
-};
+/* eslint-disable */
+var PRESET_ICONS = ['qq', 'link', 'weibo', 'wechat', 'poster', 'qrcode', 'weapp-qrcode', 'wechat-moments'];
+
+function getIconURL(icon) {
+ if (PRESET_ICONS.indexOf(icon) !== -1) {
+ return 'https://img.yzcdn.cn/vant/share-sheet-' + icon + '.png';
+ }
+
+ return icon;
+}
+
+module.exports = {
+ getIconURL: getIconURL,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxss
index ca7b02f..b7f5455 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-share-sheet__options{position:relative;display:-webkit-flex;display:flex;padding:16px 0 16px 8px;overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch}.van-share-sheet__options--border:before{position:absolute;box-sizing:border-box;-webkit-transform-origin:center;transform-origin:center;content:" ";pointer-events:none;top:0;right:0;left:16px;border-top:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-share-sheet__options::-webkit-scrollbar{height:0}.van-share-sheet__option{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-user-select:none;user-select:none}.van-share-sheet__option:active{opacity:.7}.van-share-sheet__button{height:auto;padding:0;line-height:inherit;background-color:initial;border:0}.van-share-sheet__button:after{border:0}.van-share-sheet__icon{width:48px;height:48px;margin:0 16px}.van-share-sheet__name{margin-top:8px;padding:0 4px;color:#646566;font-size:12px}.van-share-sheet__option-description{padding:0 4px;color:#c8c9cc;font-size:12px}
\ No newline at end of file
+@import '../common/index.wxss';.van-share-sheet__options{-webkit-overflow-scrolling:touch;display:flex;overflow-x:auto;overflow-y:visible;padding:16px 0 16px 8px;position:relative}.van-share-sheet__options--border:before{border-top:1px solid #ebedf0;box-sizing:border-box;content:" ";left:16px;pointer-events:none;position:absolute;right:0;top:0;transform:scaleY(.5);transform-origin:center}.van-share-sheet__options::-webkit-scrollbar{height:0}.van-share-sheet__option{align-items:center;display:flex;flex-direction:column;-webkit-user-select:none;user-select:none}.van-share-sheet__option:active{opacity:.7}.van-share-sheet__button{background-color:initial;border:0;height:auto;line-height:inherit;padding:0}.van-share-sheet__button:after{border:0}.van-share-sheet__icon{height:48px;margin:0 16px;width:48px}.van-share-sheet__name{color:#646566;font-size:12px;margin-top:8px;padding:0 4px}.van-share-sheet__option-description{color:#c8c9cc;font-size:12px;padding:0 4px}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.js
index a6c6d4d..eac568f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.js
@@ -1,32 +1,32 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-component_1.VantComponent({
- classes: ['active-class', 'disabled-class'],
- relation: relation_1.useParent('sidebar'),
- props: {
- dot: Boolean,
- badge: null,
- info: null,
- title: String,
- disabled: Boolean,
- },
- methods: {
- onClick: function () {
- var _this = this;
- var parent = this.parent;
- if (!parent || this.data.disabled) {
- return;
- }
- var index = parent.children.indexOf(this);
- parent.setActive(index).then(function () {
- _this.$emit('click', index);
- parent.$emit('change', index);
- });
- },
- setActive: function (selected) {
- return this.setData({ selected: selected });
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ classes: ['active-class', 'disabled-class'],
+ relation: (0, relation_1.useParent)('sidebar'),
+ props: {
+ dot: Boolean,
+ badge: null,
+ info: null,
+ title: String,
+ disabled: Boolean,
+ },
+ methods: {
+ onClick: function () {
+ var _this = this;
+ var parent = this.parent;
+ if (!parent || this.data.disabled) {
+ return;
+ }
+ var index = parent.children.indexOf(this);
+ parent.setActive(index).then(function () {
+ _this.$emit('click', index);
+ parent.$emit('change', index);
+ });
+ },
+ setActive: function (selected) {
+ return this.setData({ selected: selected });
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.json
index 82369bf..bf0ebe0 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-info": "../info/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-info": "../info/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.wxml
index 0f92337..c5c08a6 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.wxml
@@ -1,18 +1,18 @@
-
-
-
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.wxss
index f134528..f1ce421 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-sidebar-item{display:block;box-sizing:border-box;overflow:hidden;border-left:3px solid transparent;-webkit-user-select:none;user-select:none;padding:20px 12px 20px 8px;padding:var(--sidebar-padding,20px 12px 20px 8px);font-size:14px;font-size:var(--sidebar-font-size,14px);line-height:20px;line-height:var(--sidebar-line-height,20px);color:#323233;color:var(--sidebar-text-color,#323233);background-color:#f7f8fa;background-color:var(--sidebar-background-color,#f7f8fa)}.van-sidebar-item__text{position:relative;display:inline-block;word-break:break-all}.van-sidebar-item--hover:not(.van-sidebar-item--disabled){background-color:#f2f3f5;background-color:var(--sidebar-active-color,#f2f3f5)}.van-sidebar-item:after{border-bottom-width:1px}.van-sidebar-item--selected{color:#323233;color:var(--sidebar-selected-text-color,#323233);font-weight:500;font-weight:var(--sidebar-selected-font-weight,500);border-color:#ee0a24;border-color:var(--sidebar-selected-border-color,#ee0a24)}.van-sidebar-item--selected:after{border-right-width:1px}.van-sidebar-item--selected,.van-sidebar-item--selected.van-sidebar-item--hover{background-color:#fff;background-color:var(--sidebar-selected-background-color,#fff)}.van-sidebar-item--disabled{color:#c8c9cc;color:var(--sidebar-disabled-text-color,#c8c9cc)}
\ No newline at end of file
+@import '../common/index.wxss';.van-sidebar-item{background-color:var(--sidebar-background-color,#f7f8fa);border-left:3px solid transparent;box-sizing:border-box;color:var(--sidebar-text-color,#323233);display:block;font-size:var(--sidebar-font-size,14px);line-height:var(--sidebar-line-height,20px);overflow:hidden;padding:var(--sidebar-padding,20px 12px 20px 8px);-webkit-user-select:none;user-select:none}.van-sidebar-item__text{display:inline-block;position:relative;word-break:break-all}.van-sidebar-item--hover:not(.van-sidebar-item--disabled){background-color:var(--sidebar-active-color,#f2f3f5)}.van-sidebar-item:after{border-bottom-width:1px}.van-sidebar-item--selected{border-color:var(--sidebar-selected-border-color,#ee0a24);color:var(--sidebar-selected-text-color,#323233);font-weight:var(--sidebar-selected-font-weight,500)}.van-sidebar-item--selected:after{border-right-width:1px}.van-sidebar-item--selected,.van-sidebar-item--selected.van-sidebar-item--hover{background-color:var(--sidebar-selected-background-color,#fff)}.van-sidebar-item--disabled{color:var(--sidebar-disabled-text-color,#c8c9cc)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.js
index 3bcab16..f3e0a58 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.js
@@ -1,38 +1,36 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-component_1.VantComponent({
- relation: relation_1.useChildren('sidebar-item', function () {
- this.setActive(this.data.activeKey);
- }),
- props: {
- activeKey: {
- type: Number,
- value: 0,
- observer: 'setActive',
- },
- },
- beforeCreate: function () {
- this.currentActive = -1;
- },
- methods: {
- setActive: function (activeKey) {
- var _a = this,
- children = _a.children,
- currentActive = _a.currentActive;
- if (!children.length) {
- return Promise.resolve();
- }
- this.currentActive = activeKey;
- var stack = [];
- if (currentActive !== activeKey && children[currentActive]) {
- stack.push(children[currentActive].setActive(false));
- }
- if (children[activeKey]) {
- stack.push(children[activeKey].setActive(true));
- }
- return Promise.all(stack);
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useChildren)('sidebar-item', function () {
+ this.setActive(this.data.activeKey);
+ }),
+ props: {
+ activeKey: {
+ type: Number,
+ value: 0,
+ observer: 'setActive',
+ },
+ },
+ beforeCreate: function () {
+ this.currentActive = -1;
+ },
+ methods: {
+ setActive: function (activeKey) {
+ var _a = this, children = _a.children, currentActive = _a.currentActive;
+ if (!children.length) {
+ return Promise.resolve();
+ }
+ this.currentActive = activeKey;
+ var stack = [];
+ if (currentActive !== activeKey && children[currentActive]) {
+ stack.push(children[currentActive].setActive(false));
+ }
+ if (children[activeKey]) {
+ stack.push(children[activeKey].setActive(true));
+ }
+ return Promise.all(stack);
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.wxml
index e76ecaf..96b11c7 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.wxml
@@ -1,3 +1,3 @@
-
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.wxss
index 8ad1884..5a2d44f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-sidebar{width:80px;width:var(--sidebar-width,80px)}
\ No newline at end of file
+@import '../common/index.wxss';.van-sidebar{width:var(--sidebar-width,80px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.js
index f89af1d..2ab3175 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.js
@@ -1,48 +1,48 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-component_1.VantComponent({
- classes: ['avatar-class', 'title-class', 'row-class'],
- props: {
- row: {
- type: Number,
- value: 0,
- observer: function (value) {
- this.setData({ rowArray: Array.from({ length: value }) });
- },
- },
- title: Boolean,
- avatar: Boolean,
- loading: {
- type: Boolean,
- value: true,
- },
- animate: {
- type: Boolean,
- value: true,
- },
- avatarSize: {
- type: String,
- value: '32px',
- },
- avatarShape: {
- type: String,
- value: 'round',
- },
- titleWidth: {
- type: String,
- value: '40%',
- },
- rowWidth: {
- type: null,
- value: '100%',
- observer: function (val) {
- this.setData({ isArray: val instanceof Array });
- },
- },
- },
- data: {
- isArray: false,
- rowArray: [],
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ classes: ['avatar-class', 'title-class', 'row-class'],
+ props: {
+ row: {
+ type: Number,
+ value: 0,
+ observer: function (value) {
+ this.setData({ rowArray: Array.from({ length: value }) });
+ },
+ },
+ title: Boolean,
+ avatar: Boolean,
+ loading: {
+ type: Boolean,
+ value: true,
+ },
+ animate: {
+ type: Boolean,
+ value: true,
+ },
+ avatarSize: {
+ type: String,
+ value: '32px',
+ },
+ avatarShape: {
+ type: String,
+ value: 'round',
+ },
+ titleWidth: {
+ type: String,
+ value: '40%',
+ },
+ rowWidth: {
+ type: null,
+ value: '100%',
+ observer: function (val) {
+ this.setData({ isArray: val instanceof Array });
+ },
+ },
+ },
+ data: {
+ isArray: false,
+ rowArray: [],
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.json
index f719411..a89ef4d 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.json
@@ -1,4 +1,4 @@
-{
- "component": true,
- "usingComponents": {}
-}
+{
+ "component": true,
+ "usingComponents": {}
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.wxml
index 4ad7bd0..058e2ef 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.wxml
@@ -1,29 +1,29 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.wxss
index 565b26e..d59a5ed 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-skeleton{display:-webkit-flex;display:flex;box-sizing:border-box;width:100%;padding:0 16px;padding:var(--skeleton-padding,0 16px)}.van-skeleton__avatar{-webkit-flex-shrink:0;flex-shrink:0;margin-right:16px;margin-right:var(--padding-md,16px);background-color:#f2f3f5;background-color:var(--skeleton-avatar-background-color,#f2f3f5)}.van-skeleton__avatar--round{border-radius:100%}.van-skeleton__content{-webkit-flex:1;flex:1}.van-skeleton__avatar+.van-skeleton__content{padding-top:8px;padding-top:var(--padding-xs,8px)}.van-skeleton__row,.van-skeleton__title{height:16px;height:var(--skeleton-row-height,16px);background-color:#f2f3f5;background-color:var(--skeleton-row-background-color,#f2f3f5)}.van-skeleton__title{margin:0}.van-skeleton__row:not(:first-child){margin-top:12px;margin-top:var(--skeleton-row-margin-top,12px)}.van-skeleton__title+.van-skeleton__row{margin-top:20px}.van-skeleton--animate{-webkit-animation:van-skeleton-blink 1.2s ease-in-out infinite;animation:van-skeleton-blink 1.2s ease-in-out infinite}@-webkit-keyframes van-skeleton-blink{50%{opacity:.6}}@keyframes van-skeleton-blink{50%{opacity:.6}}
\ No newline at end of file
+@import '../common/index.wxss';.van-skeleton{box-sizing:border-box;display:flex;padding:var(--skeleton-padding,0 16px);width:100%}.van-skeleton__avatar{background-color:var(--skeleton-avatar-background-color,#f2f3f5);flex-shrink:0;margin-right:var(--padding-md,16px)}.van-skeleton__avatar--round{border-radius:100%}.van-skeleton__content{flex:1}.van-skeleton__avatar+.van-skeleton__content{padding-top:var(--padding-xs,8px)}.van-skeleton__row,.van-skeleton__title{background-color:var(--skeleton-row-background-color,#f2f3f5);height:var(--skeleton-row-height,16px)}.van-skeleton__title{margin:0}.van-skeleton__row:not(:first-child){margin-top:var(--skeleton-row-margin-top,12px)}.van-skeleton__title+.van-skeleton__row{margin-top:20px}.van-skeleton--animate{animation:van-skeleton-blink 1.2s ease-in-out infinite}@keyframes van-skeleton-blink{50%{opacity:.6}}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.js
index fc7cb4c..92adca8 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.js
@@ -1,118 +1,206 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var touch_1 = require('../mixins/touch');
-var version_1 = require('../common/version');
-var utils_1 = require('../common/utils');
-component_1.VantComponent({
- mixins: [touch_1.touch],
- props: {
- disabled: Boolean,
- useButtonSlot: Boolean,
- activeColor: String,
- inactiveColor: String,
- max: {
- type: Number,
- value: 100,
- },
- min: {
- type: Number,
- value: 0,
- },
- step: {
- type: Number,
- value: 1,
- },
- value: {
- type: Number,
- value: 0,
- observer: function (val) {
- if (val !== this.value) {
- this.updateValue(val);
- }
- },
- },
- barHeight: {
- type: null,
- value: 2,
- },
- },
- created: function () {
- this.updateValue(this.data.value);
- },
- methods: {
- onTouchStart: function (event) {
- if (this.data.disabled) return;
- this.touchStart(event);
- this.startValue = this.format(this.value);
- this.dragStatus = 'start';
- },
- onTouchMove: function (event) {
- var _this = this;
- if (this.data.disabled) return;
- if (this.dragStatus === 'start') {
- this.$emit('drag-start');
- }
- this.touchMove(event);
- this.dragStatus = 'draging';
- utils_1.getRect(this, '.van-slider').then(function (rect) {
- var diff = (_this.deltaX / rect.width) * _this.getRange();
- _this.newValue = _this.startValue + diff;
- _this.updateValue(_this.newValue, false, true);
- });
- },
- onTouchEnd: function () {
- if (this.data.disabled) return;
- if (this.dragStatus === 'draging') {
- this.updateValue(this.newValue, true);
- this.$emit('drag-end');
- }
- },
- onClick: function (event) {
- var _this = this;
- if (this.data.disabled) return;
- var min = this.data.min;
- utils_1.getRect(this, '.van-slider').then(function (rect) {
- var value =
- ((event.detail.x - rect.left) / rect.width) * _this.getRange() + min;
- _this.updateValue(value, true);
- });
- },
- updateValue: function (value, end, drag) {
- value = this.format(value);
- var min = this.data.min;
- var width = ((value - min) * 100) / this.getRange() + '%';
- this.value = value;
- this.setData({
- barStyle:
- '\n width: ' +
- width +
- ';\n ' +
- (drag ? 'transition: none;' : '') +
- '\n ',
- });
- if (drag) {
- this.$emit('drag', { value: value });
- }
- if (end) {
- this.$emit('change', value);
- }
- if ((drag || end) && version_1.canIUseModel()) {
- this.setData({ value: value });
- }
- },
- getRange: function () {
- var _a = this.data,
- max = _a.max,
- min = _a.min;
- return max - min;
- },
- format: function (value) {
- var _a = this.data,
- max = _a.max,
- min = _a.min,
- step = _a.step;
- return Math.round(Math.max(min, Math.min(value, max)) / step) * step;
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var touch_1 = require("../mixins/touch");
+var version_1 = require("../common/version");
+var utils_1 = require("../common/utils");
+var DRAG_STATUS = {
+ START: 'start',
+ MOVING: 'moving',
+ END: 'end',
+};
+(0, component_1.VantComponent)({
+ mixins: [touch_1.touch],
+ props: {
+ range: Boolean,
+ disabled: Boolean,
+ useButtonSlot: Boolean,
+ activeColor: String,
+ inactiveColor: String,
+ max: {
+ type: Number,
+ value: 100,
+ },
+ min: {
+ type: Number,
+ value: 0,
+ },
+ step: {
+ type: Number,
+ value: 1,
+ },
+ value: {
+ type: null,
+ value: 0,
+ observer: function (val) {
+ if (val !== this.value) {
+ this.updateValue(val);
+ }
+ },
+ },
+ vertical: Boolean,
+ barHeight: null,
+ },
+ created: function () {
+ this.updateValue(this.data.value);
+ },
+ methods: {
+ onTouchStart: function (event) {
+ var _this = this;
+ if (this.data.disabled)
+ return;
+ var index = event.currentTarget.dataset.index;
+ if (typeof index === 'number') {
+ this.buttonIndex = index;
+ }
+ this.touchStart(event);
+ this.startValue = this.format(this.value);
+ this.newValue = this.value;
+ if (this.isRange(this.newValue)) {
+ this.startValue = this.newValue.map(function (val) { return _this.format(val); });
+ }
+ else {
+ this.startValue = this.format(this.newValue);
+ }
+ this.dragStatus = DRAG_STATUS.START;
+ },
+ onTouchMove: function (event) {
+ var _this = this;
+ if (this.data.disabled)
+ return;
+ if (this.dragStatus === DRAG_STATUS.START) {
+ this.$emit('drag-start');
+ }
+ this.touchMove(event);
+ this.dragStatus = DRAG_STATUS.MOVING;
+ (0, utils_1.getRect)(this, '.van-slider').then(function (rect) {
+ var vertical = _this.data.vertical;
+ var delta = vertical ? _this.deltaY : _this.deltaX;
+ var total = vertical ? rect.height : rect.width;
+ var diff = (delta / total) * _this.getRange();
+ if (_this.isRange(_this.startValue)) {
+ _this.newValue[_this.buttonIndex] =
+ _this.startValue[_this.buttonIndex] + diff;
+ }
+ else {
+ _this.newValue = _this.startValue + diff;
+ }
+ _this.updateValue(_this.newValue, false, true);
+ });
+ },
+ onTouchEnd: function () {
+ var _this = this;
+ if (this.data.disabled)
+ return;
+ if (this.dragStatus === DRAG_STATUS.MOVING) {
+ this.dragStatus = DRAG_STATUS.END;
+ (0, utils_1.nextTick)(function () {
+ _this.updateValue(_this.newValue, true);
+ _this.$emit('drag-end');
+ });
+ }
+ },
+ onClick: function (event) {
+ var _this = this;
+ if (this.data.disabled)
+ return;
+ var min = this.data.min;
+ (0, utils_1.getRect)(this, '.van-slider').then(function (rect) {
+ var vertical = _this.data.vertical;
+ var touch = event.touches[0];
+ var delta = vertical
+ ? touch.clientY - rect.top
+ : touch.clientX - rect.left;
+ var total = vertical ? rect.height : rect.width;
+ var value = Number(min) + (delta / total) * _this.getRange();
+ if (_this.isRange(_this.value)) {
+ var _a = _this.value, left = _a[0], right = _a[1];
+ var middle = (left + right) / 2;
+ if (value <= middle) {
+ _this.updateValue([value, right], true);
+ }
+ else {
+ _this.updateValue([left, value], true);
+ }
+ }
+ else {
+ _this.updateValue(value, true);
+ }
+ });
+ },
+ isRange: function (val) {
+ var range = this.data.range;
+ return range && Array.isArray(val);
+ },
+ handleOverlap: function (value) {
+ if (value[0] > value[1]) {
+ return value.slice(0).reverse();
+ }
+ return value;
+ },
+ updateValue: function (value, end, drag) {
+ var _this = this;
+ if (this.isRange(value)) {
+ value = this.handleOverlap(value).map(function (val) { return _this.format(val); });
+ }
+ else {
+ value = this.format(value);
+ }
+ this.value = value;
+ var vertical = this.data.vertical;
+ var mainAxis = vertical ? 'height' : 'width';
+ this.setData({
+ wrapperStyle: "\n background: ".concat(this.data.inactiveColor || '', ";\n ").concat(vertical ? 'width' : 'height', ": ").concat((0, utils_1.addUnit)(this.data.barHeight) || '', ";\n "),
+ barStyle: "\n ".concat(mainAxis, ": ").concat(this.calcMainAxis(), ";\n left: ").concat(vertical ? 0 : this.calcOffset(), ";\n top: ").concat(vertical ? this.calcOffset() : 0, ";\n ").concat(drag ? 'transition: none;' : '', "\n "),
+ });
+ if (drag) {
+ this.$emit('drag', { value: value });
+ }
+ if (end) {
+ this.$emit('change', value);
+ }
+ if ((drag || end) && (0, version_1.canIUseModel)()) {
+ this.setData({ value: value });
+ }
+ },
+ getScope: function () {
+ return Number(this.data.max) - Number(this.data.min);
+ },
+ getRange: function () {
+ var _a = this.data, max = _a.max, min = _a.min;
+ return max - min;
+ },
+ getOffsetWidth: function (current, min) {
+ var scope = this.getScope();
+ // 避免最小值小于最小step时出现负数情况
+ return "".concat(Math.max(((current - min) * 100) / scope, 0), "%");
+ },
+ // 计算选中条的长度百分比
+ calcMainAxis: function () {
+ var value = this.value;
+ var min = this.data.min;
+ if (this.isRange(value)) {
+ return this.getOffsetWidth(value[1], value[0]);
+ }
+ return this.getOffsetWidth(value, Number(min));
+ },
+ // 计算选中条的开始位置的偏移量
+ calcOffset: function () {
+ var value = this.value;
+ var min = this.data.min;
+ var scope = this.getScope();
+ if (this.isRange(value)) {
+ return "".concat(((value[0] - Number(min)) * 100) / scope, "%");
+ }
+ return '0%';
+ },
+ format: function (value) {
+ var min = +this.data.min;
+ var max = +this.data.max;
+ var step = +this.data.step;
+ value = (0, utils_1.clamp)(value, min, max);
+ var diff = Math.round((value - min) / step) * step;
+ return (0, utils_1.addNumber)(min, diff);
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxml
index 25d3655..7c0184f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxml
@@ -1,30 +1,68 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxs
index f132b9c..7c43e6e 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxs
@@ -1,14 +1,14 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function barStyle(barHeight, activeColor) {
- return style({
- height: addUnit(barHeight),
- background: activeColor,
- });
-}
-
-module.exports = {
- barStyle: barStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function barStyle(barHeight, activeColor) {
+ return style({
+ height: addUnit(barHeight),
+ background: activeColor,
+ });
+}
+
+module.exports = {
+ barStyle: barStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxss
index 7886b60..d1587de 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-slider{position:relative;border-radius:999px;border-radius:var(--border-radius-max,999px);background-color:#ebedf0;background-color:var(--slider-inactive-background-color,#ebedf0)}.van-slider:before{position:absolute;right:0;left:0;content:"";top:-8px;top:-var(--padding-xs,8px);bottom:-8px;bottom:-var(--padding-xs,8px)}.van-slider__bar{position:relative;border-radius:inherit;transition:width .2s;transition:width var(--animation-duration-fast,.2s);background-color:#1989fa;background-color:var(--slider-active-background-color,#1989fa)}.van-slider__button{width:24px;height:24px;border-radius:50%;box-shadow:0 1px 2px rgba(0,0,0,.5);background-color:#fff;background-color:var(--slider-button-background-color,#fff)}.van-slider__button-wrapper{position:absolute;top:50%;right:0;-webkit-transform:translate3d(50%,-50%,0);transform:translate3d(50%,-50%,0)}.van-slider--disabled{opacity:.5}
\ No newline at end of file
+@import '../common/index.wxss';.van-slider{background-color:var(--slider-inactive-background-color,#ebedf0);border-radius:999px;height:var(--slider-bar-height,2px);position:relative}.van-slider:before{bottom:calc(var(--padding-xs, 8px)*-1);content:"";left:0;position:absolute;right:0;top:calc(var(--padding-xs, 8px)*-1)}.van-slider__bar{background-color:var(--slider-active-background-color,#1989fa);border-radius:inherit;height:100%;position:relative;transition:all .2s;width:100%}.van-slider__button{background-color:var(--slider-button-background-color,#fff);border-radius:var(--slider-button-border-radius,50%);box-shadow:var(--slider-button-box-shadow,0 1px 2px rgba(0,0,0,.5));height:var(--slider-button-height,24px);width:var(--slider-button-width,24px)}.van-slider__button-wrapper,.van-slider__button-wrapper-right{position:absolute;right:0;top:50%;transform:translate3d(50%,-50%,0)}.van-slider__button-wrapper-left{left:0;position:absolute;top:50%;transform:translate3d(-50%,-50%,0)}.van-slider--disabled{opacity:var(--slider-disabled-opacity,.5)}.van-slider--vertical{display:inline-block;height:100%;width:var(--slider-bar-height,2px)}.van-slider--vertical .van-slider__button-wrapper,.van-slider--vertical .van-slider__button-wrapper-right{bottom:0;right:50%;top:auto;transform:translate3d(50%,50%,0)}.van-slider--vertical .van-slider__button-wrapper-left{left:auto;right:50%;top:0;transform:translate3d(50%,-50%,0)}.van-slider--vertical:before{bottom:0;left:-8px;right:-8px;top:0}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.js
index 7578743..1aa2c27 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.js
@@ -1,218 +1,203 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var validator_1 = require('../common/validator');
-var LONG_PRESS_START_TIME = 600;
-var LONG_PRESS_INTERVAL = 200;
-// add num and avoid float number
-function add(num1, num2) {
- var cardinal = Math.pow(10, 10);
- return Math.round((num1 + num2) * cardinal) / cardinal;
-}
-function equal(value1, value2) {
- return String(value1) === String(value2);
-}
-component_1.VantComponent({
- field: true,
- classes: ['input-class', 'plus-class', 'minus-class'],
- props: {
- value: {
- type: null,
- observer: 'observeValue',
- },
- integer: {
- type: Boolean,
- observer: 'check',
- },
- disabled: Boolean,
- inputWidth: String,
- buttonSize: String,
- asyncChange: Boolean,
- disableInput: Boolean,
- decimalLength: {
- type: Number,
- value: null,
- observer: 'check',
- },
- min: {
- type: null,
- value: 1,
- observer: 'check',
- },
- max: {
- type: null,
- value: Number.MAX_SAFE_INTEGER,
- observer: 'check',
- },
- step: {
- type: null,
- value: 1,
- },
- showPlus: {
- type: Boolean,
- value: true,
- },
- showMinus: {
- type: Boolean,
- value: true,
- },
- disablePlus: Boolean,
- disableMinus: Boolean,
- longPress: {
- type: Boolean,
- value: true,
- },
- theme: String,
- },
- data: {
- currentValue: '',
- },
- created: function () {
- this.setData({
- currentValue: this.format(this.data.value),
- });
- },
- methods: {
- observeValue: function () {
- var _a = this.data,
- value = _a.value,
- currentValue = _a.currentValue;
- if (!equal(value, currentValue)) {
- this.setData({ currentValue: this.format(value) });
- }
- },
- check: function () {
- var val = this.format(this.data.currentValue);
- if (!equal(val, this.data.currentValue)) {
- this.setData({ currentValue: val });
- }
- },
- isDisabled: function (type) {
- var _a = this.data,
- disabled = _a.disabled,
- disablePlus = _a.disablePlus,
- disableMinus = _a.disableMinus,
- currentValue = _a.currentValue,
- max = _a.max,
- min = _a.min;
- if (type === 'plus') {
- return disabled || disablePlus || currentValue >= max;
- }
- return disabled || disableMinus || currentValue <= min;
- },
- onFocus: function (event) {
- this.$emit('focus', event.detail);
- },
- onBlur: function (event) {
- var value = this.format(event.detail.value);
- this.emitChange(value);
- this.$emit(
- 'blur',
- __assign(__assign({}, event.detail), { value: value })
- );
- },
- // filter illegal characters
- filter: function (value) {
- value = String(value).replace(/[^0-9.-]/g, '');
- if (this.data.integer && value.indexOf('.') !== -1) {
- value = value.split('.')[0];
- }
- return value;
- },
- // limit value range
- format: function (value) {
- value = this.filter(value);
- // format range
- value = value === '' ? 0 : +value;
- value = Math.max(Math.min(this.data.max, value), this.data.min);
- // format decimal
- if (validator_1.isDef(this.data.decimalLength)) {
- value = value.toFixed(this.data.decimalLength);
- }
- return value;
- },
- onInput: function (event) {
- var _a = (event.detail || {}).value,
- value = _a === void 0 ? '' : _a;
- // allow input to be empty
- if (value === '') {
- return;
- }
- var formatted = this.filter(value);
- // limit max decimal length
- if (
- validator_1.isDef(this.data.decimalLength) &&
- formatted.indexOf('.') !== -1
- ) {
- var pair = formatted.split('.');
- formatted = pair[0] + '.' + pair[1].slice(0, this.data.decimalLength);
- }
- this.emitChange(formatted);
- },
- emitChange: function (value) {
- if (!this.data.asyncChange) {
- this.setData({ currentValue: value });
- }
- this.$emit('change', value);
- },
- onChange: function () {
- var type = this.type;
- if (this.isDisabled(type)) {
- this.$emit('overlimit', type);
- return;
- }
- var diff = type === 'minus' ? -this.data.step : +this.data.step;
- var value = this.format(add(+this.data.currentValue, diff));
- this.emitChange(value);
- this.$emit(type);
- },
- longPressStep: function () {
- var _this = this;
- this.longPressTimer = setTimeout(function () {
- _this.onChange();
- _this.longPressStep();
- }, LONG_PRESS_INTERVAL);
- },
- onTap: function (event) {
- var type = event.currentTarget.dataset.type;
- this.type = type;
- this.onChange();
- },
- onTouchStart: function (event) {
- var _this = this;
- if (!this.data.longPress) {
- return;
- }
- clearTimeout(this.longPressTimer);
- var type = event.currentTarget.dataset.type;
- this.type = type;
- this.isLongPress = false;
- this.longPressTimer = setTimeout(function () {
- _this.isLongPress = true;
- _this.onChange();
- _this.longPressStep();
- }, LONG_PRESS_START_TIME);
- },
- onTouchEnd: function () {
- if (!this.data.longPress) {
- return;
- }
- clearTimeout(this.longPressTimer);
- },
- },
-});
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var validator_1 = require("../common/validator");
+var LONG_PRESS_START_TIME = 600;
+var LONG_PRESS_INTERVAL = 200;
+// add num and avoid float number
+function add(num1, num2) {
+ var cardinal = Math.pow(10, 10);
+ return Math.round((num1 + num2) * cardinal) / cardinal;
+}
+function equal(value1, value2) {
+ return String(value1) === String(value2);
+}
+(0, component_1.VantComponent)({
+ field: true,
+ classes: ['input-class', 'plus-class', 'minus-class'],
+ props: {
+ value: {
+ type: null,
+ },
+ integer: {
+ type: Boolean,
+ observer: 'check',
+ },
+ disabled: Boolean,
+ inputWidth: String,
+ buttonSize: String,
+ asyncChange: Boolean,
+ disableInput: Boolean,
+ decimalLength: {
+ type: Number,
+ value: null,
+ observer: 'check',
+ },
+ min: {
+ type: null,
+ value: 1,
+ observer: 'check',
+ },
+ max: {
+ type: null,
+ value: Number.MAX_SAFE_INTEGER,
+ observer: 'check',
+ },
+ step: {
+ type: null,
+ value: 1,
+ },
+ showPlus: {
+ type: Boolean,
+ value: true,
+ },
+ showMinus: {
+ type: Boolean,
+ value: true,
+ },
+ disablePlus: Boolean,
+ disableMinus: Boolean,
+ longPress: {
+ type: Boolean,
+ value: true,
+ },
+ theme: String,
+ alwaysEmbed: Boolean,
+ },
+ data: {
+ currentValue: '',
+ },
+ watch: {
+ value: function () {
+ this.observeValue();
+ },
+ },
+ created: function () {
+ this.setData({
+ currentValue: this.format(this.data.value),
+ });
+ },
+ methods: {
+ observeValue: function () {
+ var value = this.data.value;
+ this.setData({ currentValue: this.format(value) });
+ },
+ check: function () {
+ var val = this.format(this.data.currentValue);
+ if (!equal(val, this.data.currentValue)) {
+ this.setData({ currentValue: val });
+ }
+ },
+ isDisabled: function (type) {
+ var _a = this.data, disabled = _a.disabled, disablePlus = _a.disablePlus, disableMinus = _a.disableMinus, currentValue = _a.currentValue, max = _a.max, min = _a.min;
+ if (type === 'plus') {
+ return disabled || disablePlus || +currentValue >= +max;
+ }
+ return disabled || disableMinus || +currentValue <= +min;
+ },
+ onFocus: function (event) {
+ this.$emit('focus', event.detail);
+ },
+ onBlur: function (event) {
+ var value = this.format(event.detail.value);
+ this.setData({ currentValue: value });
+ this.emitChange(value);
+ this.$emit('blur', __assign(__assign({}, event.detail), { value: value }));
+ },
+ // filter illegal characters
+ filter: function (value) {
+ value = String(value).replace(/[^0-9.-]/g, '');
+ if (this.data.integer && value.indexOf('.') !== -1) {
+ value = value.split('.')[0];
+ }
+ return value;
+ },
+ // limit value range
+ format: function (value) {
+ value = this.filter(value);
+ // format range
+ value = value === '' ? 0 : +value;
+ value = Math.max(Math.min(this.data.max, value), this.data.min);
+ // format decimal
+ if ((0, validator_1.isDef)(this.data.decimalLength)) {
+ value = value.toFixed(this.data.decimalLength);
+ }
+ return value;
+ },
+ onInput: function (event) {
+ var _a = (event.detail || {}).value, value = _a === void 0 ? '' : _a;
+ // allow input to be empty
+ if (value === '') {
+ return;
+ }
+ var formatted = this.filter(value);
+ // limit max decimal length
+ if ((0, validator_1.isDef)(this.data.decimalLength) && formatted.indexOf('.') !== -1) {
+ var pair = formatted.split('.');
+ formatted = "".concat(pair[0], ".").concat(pair[1].slice(0, this.data.decimalLength));
+ }
+ this.emitChange(formatted);
+ },
+ emitChange: function (value) {
+ if (!this.data.asyncChange) {
+ this.setData({ currentValue: value });
+ }
+ this.$emit('change', value);
+ },
+ onChange: function () {
+ var type = this.type;
+ if (this.isDisabled(type)) {
+ this.$emit('overlimit', type);
+ return;
+ }
+ var diff = type === 'minus' ? -this.data.step : +this.data.step;
+ var value = this.format(add(+this.data.currentValue, diff));
+ this.emitChange(value);
+ this.$emit(type);
+ },
+ longPressStep: function () {
+ var _this = this;
+ this.longPressTimer = setTimeout(function () {
+ _this.onChange();
+ _this.longPressStep();
+ }, LONG_PRESS_INTERVAL);
+ },
+ onTap: function (event) {
+ var type = event.currentTarget.dataset.type;
+ this.type = type;
+ this.onChange();
+ },
+ onTouchStart: function (event) {
+ var _this = this;
+ if (!this.data.longPress) {
+ return;
+ }
+ clearTimeout(this.longPressTimer);
+ var type = event.currentTarget.dataset.type;
+ this.type = type;
+ this.isLongPress = false;
+ this.longPressTimer = setTimeout(function () {
+ _this.isLongPress = true;
+ _this.onChange();
+ _this.longPressStep();
+ }, LONG_PRESS_START_TIME);
+ },
+ onTouchEnd: function () {
+ if (!this.data.longPress) {
+ return;
+ }
+ clearTimeout(this.longPressTimer);
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxml
index afd9ad1..6dd44bc 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxml
@@ -1,42 +1,43 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxs
index 46475a0..a13e818 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxs
@@ -1,22 +1,22 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function buttonStyle(data) {
- return style({
- width: addUnit(data.buttonSize),
- height: addUnit(data.buttonSize),
- });
-}
-
-function inputStyle(data) {
- return style({
- width: addUnit(data.inputWidth),
- height: addUnit(data.buttonSize),
- });
-}
-
-module.exports = {
- buttonStyle: buttonStyle,
- inputStyle: inputStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function buttonStyle(data) {
+ return style({
+ width: addUnit(data.buttonSize),
+ height: addUnit(data.buttonSize),
+ });
+}
+
+function inputStyle(data) {
+ return style({
+ width: addUnit(data.inputWidth),
+ height: addUnit(data.buttonSize),
+ });
+}
+
+module.exports = {
+ buttonStyle: buttonStyle,
+ inputStyle: inputStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxss
index e924a2b..2561a7e 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-stepper{font-size:0}.van-stepper__minus,.van-stepper__plus{position:relative;display:inline-block;box-sizing:border-box;margin:1px;vertical-align:middle;border:0;background-color:#f2f3f5;background-color:var(--stepper-background-color,#f2f3f5);color:#323233;color:var(--stepper-button-icon-color,#323233);width:28px;width:var(--stepper-input-height,28px);height:28px;height:var(--stepper-input-height,28px);padding:4px;padding:var(--padding-base,4px)}.van-stepper__minus:before,.van-stepper__plus:before{width:9px;height:1px}.van-stepper__minus:after,.van-stepper__plus:after{width:1px;height:9px}.van-stepper__minus:empty.van-stepper__minus:after,.van-stepper__minus:empty.van-stepper__minus:before,.van-stepper__minus:empty.van-stepper__plus:after,.van-stepper__minus:empty.van-stepper__plus:before,.van-stepper__plus:empty.van-stepper__minus:after,.van-stepper__plus:empty.van-stepper__minus:before,.van-stepper__plus:empty.van-stepper__plus:after,.van-stepper__plus:empty.van-stepper__plus:before{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;background-color:currentColor;content:""}.van-stepper__minus--hover,.van-stepper__plus--hover{background-color:#e8e8e8;background-color:var(--stepper-active-color,#e8e8e8)}.van-stepper__minus--disabled,.van-stepper__plus--disabled{color:#c8c9cc;color:var(--stepper-button-disabled-icon-color,#c8c9cc)}.van-stepper__minus--disabled,.van-stepper__minus--disabled.van-stepper__minus--hover,.van-stepper__minus--disabled.van-stepper__plus--hover,.van-stepper__plus--disabled,.van-stepper__plus--disabled.van-stepper__minus--hover,.van-stepper__plus--disabled.van-stepper__plus--hover{background-color:#f7f8fa;background-color:var(--stepper-button-disabled-color,#f7f8fa)}.van-stepper__minus{border-radius:4px 0 0 4px;border-radius:var(--stepper-border-radius,4px) 0 0 var(--stepper-border-radius,4px)}.van-stepper__minus:after{display:none}.van-stepper__plus{border-radius:0 4px 4px 0;border-radius:0 var(--stepper-border-radius,4px) var(--stepper-border-radius,4px) 0}.van-stepper--round .van-stepper__input{background-color:initial!important}.van-stepper--round .van-stepper__minus,.van-stepper--round .van-stepper__plus{border-radius:100%}.van-stepper--round .van-stepper__minus:active,.van-stepper--round .van-stepper__plus:active{opacity:.7}.van-stepper--round .van-stepper__minus--disabled,.van-stepper--round .van-stepper__minus--disabled:active,.van-stepper--round .van-stepper__plus--disabled,.van-stepper--round .van-stepper__plus--disabled:active{opacity:.3}.van-stepper--round .van-stepper__plus{color:#fff;background-color:#ee0a24}.van-stepper--round .van-stepper__minus{color:#ee0a24;background-color:#fff;border:1px solid #ee0a24}.van-stepper__input{display:inline-block;box-sizing:border-box;min-height:0;margin:1px;padding:1px;text-align:center;vertical-align:middle;border:0;border-width:1px 0;border-radius:0;-webkit-appearance:none;font-size:14px;font-size:var(--stepper-input-font-size,14px);color:#323233;color:var(--stepper-input-text-color,#323233);background-color:#f2f3f5;background-color:var(--stepper-background-color,#f2f3f5);width:32px;width:var(--stepper-input-width,32px);height:28px;height:var(--stepper-input-height,28px)}.van-stepper__input--disabled{color:#c8c9cc;color:var(--stepper-input-disabled-text-color,#c8c9cc);background-color:#f2f3f5;background-color:var(--stepper-input-disabled-background-color,#f2f3f5)}
\ No newline at end of file
+@import '../common/index.wxss';.van-stepper{font-size:0}.van-stepper__minus,.van-stepper__plus{background-color:var(--stepper-background-color,#f2f3f5);border:0;box-sizing:border-box;color:var(--stepper-button-icon-color,#323233);display:inline-block;height:var(--stepper-input-height,28px);margin:1px;padding:var(--padding-base,4px);position:relative;vertical-align:middle;width:var(--stepper-input-height,28px)}.van-stepper__minus:before,.van-stepper__plus:before{height:1px;width:9px}.van-stepper__minus:after,.van-stepper__plus:after{height:9px;width:1px}.van-stepper__minus:empty.van-stepper__minus:after,.van-stepper__minus:empty.van-stepper__minus:before,.van-stepper__minus:empty.van-stepper__plus:after,.van-stepper__minus:empty.van-stepper__plus:before,.van-stepper__plus:empty.van-stepper__minus:after,.van-stepper__plus:empty.van-stepper__minus:before,.van-stepper__plus:empty.van-stepper__plus:after,.van-stepper__plus:empty.van-stepper__plus:before{background-color:currentColor;bottom:0;content:"";left:0;margin:auto;position:absolute;right:0;top:0}.van-stepper__minus--hover,.van-stepper__plus--hover{background-color:var(--stepper-active-color,#e8e8e8)}.van-stepper__minus--disabled,.van-stepper__plus--disabled{color:var(--stepper-button-disabled-icon-color,#c8c9cc)}.van-stepper__minus--disabled,.van-stepper__minus--disabled.van-stepper__minus--hover,.van-stepper__minus--disabled.van-stepper__plus--hover,.van-stepper__plus--disabled,.van-stepper__plus--disabled.van-stepper__minus--hover,.van-stepper__plus--disabled.van-stepper__plus--hover{background-color:var(--stepper-button-disabled-color,#f7f8fa)}.van-stepper__minus{border-radius:var(--stepper-border-radius,var(--stepper-border-radius,4px)) 0 0 var(--stepper-border-radius,var(--stepper-border-radius,4px))}.van-stepper__minus:after{display:none}.van-stepper__plus{border-radius:0 var(--stepper-border-radius,var(--stepper-border-radius,4px)) var(--stepper-border-radius,var(--stepper-border-radius,4px)) 0}.van-stepper--round .van-stepper__input{background-color:initial!important}.van-stepper--round .van-stepper__minus,.van-stepper--round .van-stepper__plus{border-radius:100%}.van-stepper--round .van-stepper__minus:active,.van-stepper--round .van-stepper__plus:active{opacity:.7}.van-stepper--round .van-stepper__minus--disabled,.van-stepper--round .van-stepper__minus--disabled:active,.van-stepper--round .van-stepper__plus--disabled,.van-stepper--round .van-stepper__plus--disabled:active{opacity:.3}.van-stepper--round .van-stepper__plus{background-color:#ee0a24;color:#fff}.van-stepper--round .van-stepper__minus{background-color:#fff;border:1px solid #ee0a24;color:#ee0a24}.van-stepper__input{-webkit-appearance:none;background-color:var(--stepper-background-color,#f2f3f5);border:0;border-radius:0;border-width:1px 0;box-sizing:border-box;color:var(--stepper-input-text-color,#323233);display:inline-block;font-size:var(--stepper-input-font-size,14px);height:var(--stepper-input-height,28px);margin:1px;min-height:0;padding:1px;text-align:center;vertical-align:middle;width:var(--stepper-input-width,32px)}.van-stepper__input--disabled{background-color:var(--stepper-input-disabled-background-color,#f2f3f5);color:var(--stepper-input-disabled-text-color,#c8c9cc)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.js
index f9282f9..1a9986a 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.js
@@ -1,35 +1,35 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var color_1 = require('../common/color');
-component_1.VantComponent({
- classes: ['desc-class'],
- props: {
- icon: String,
- steps: Array,
- active: Number,
- direction: {
- type: String,
- value: 'horizontal',
- },
- activeColor: {
- type: String,
- value: color_1.GREEN,
- },
- inactiveColor: {
- type: String,
- value: color_1.GRAY_DARK,
- },
- activeIcon: {
- type: String,
- value: 'checked',
- },
- inactiveIcon: String,
- },
- methods: {
- onClick: function (event) {
- var index = event.currentTarget.dataset.index;
- this.$emit('click-step', index);
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var color_1 = require("../common/color");
+(0, component_1.VantComponent)({
+ classes: ['desc-class'],
+ props: {
+ icon: String,
+ steps: Array,
+ active: Number,
+ direction: {
+ type: String,
+ value: 'horizontal',
+ },
+ activeColor: {
+ type: String,
+ value: color_1.GREEN,
+ },
+ inactiveColor: {
+ type: String,
+ value: color_1.GRAY_DARK,
+ },
+ activeIcon: {
+ type: String,
+ value: 'checked',
+ },
+ inactiveIcon: String,
+ },
+ methods: {
+ onClick: function (event) {
+ var index = event.currentTarget.dataset.index;
+ this.$emit('click-step', index);
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.json
index 8abfe20..0a336c0 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.wxml
index eb3174b..00c8e10 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.wxml
@@ -1,54 +1,54 @@
-
-
-
-
-
-
- {{ item.text }}
- {{ item.desc }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-function get(index, active) {
- if (index < active) {
- return 'finish';
- } else if (index === active) {
- return 'process';
- }
-
- return 'inactive';
-}
-
-module.exports = get;
-
+
+
+
+
+
+
+ {{ item.text }}
+ {{ item.desc }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+function get(index, active) {
+ if (index < active) {
+ return 'finish';
+ } else if (index === active) {
+ return 'process';
+ }
+
+ return 'inactive';
+}
+
+module.exports = get;
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.wxss
index 2c50b1a..c653884 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-steps{overflow:hidden;background-color:#fff;background-color:var(--steps-background-color,#fff)}.van-steps--horizontal{padding:10px}.van-steps--horizontal .van-step__wrapper{position:relative;display:-webkit-flex;display:flex;overflow:hidden}.van-steps--vertical{padding-left:10px}.van-steps--vertical .van-step__wrapper{padding:0 0 0 20px}.van-step{position:relative;-webkit-flex:1;flex:1;font-size:14px;font-size:var(--step-font-size,14px);color:#969799;color:var(--step-text-color,#969799)}.van-step--finish{color:#323233;color:var(--step-finish-text-color,#323233)}.van-step__circle{border-radius:50%;width:5px;width:var(--step-circle-size,5px);height:5px;height:var(--step-circle-size,5px);background-color:#969799;background-color:var(--step-circle-color,#969799)}.van-step--horizontal{padding-bottom:14px}.van-step--horizontal:first-child .van-step__title{-webkit-transform:none;transform:none}.van-step--horizontal:first-child .van-step__circle-container{padding:0 8px 0 0;-webkit-transform:translate3d(0,50%,0);transform:translate3d(0,50%,0)}.van-step--horizontal:last-child{position:absolute;right:0;width:auto}.van-step--horizontal:last-child .van-step__title{text-align:right;-webkit-transform:none;transform:none}.van-step--horizontal:last-child .van-step__circle-container{right:0;padding:0 0 0 8px;-webkit-transform:translate3d(0,50%,0);transform:translate3d(0,50%,0)}.van-step--horizontal .van-step__circle-container{position:absolute;bottom:6px;z-index:1;-webkit-transform:translate3d(-50%,50%,0);transform:translate3d(-50%,50%,0);background-color:#fff;background-color:var(--white,#fff);padding:0 8px;padding:0 var(--padding-xs,8px)}.van-step--horizontal .van-step__title{display:inline-block;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0);font-size:12px;font-size:var(--step-horizontal-title-font-size,12px)}.van-step--horizontal .van-step__line{position:absolute;right:0;bottom:6px;left:0;height:1px;-webkit-transform:translate3d(0,50%,0);transform:translate3d(0,50%,0);background-color:#ebedf0;background-color:var(--step-line-color,#ebedf0)}.van-step--horizontal.van-step--process{color:#323233;color:var(--step-process-text-color,#323233)}.van-step--horizontal.van-step--process .van-step__icon{display:block;line-height:1;font-size:12px;font-size:var(--step-icon-size,12px)}.van-step--vertical{padding:10px 10px 10px 0;line-height:18px}.van-step--vertical:after{border-bottom-width:1px}.van-step--vertical:last-child:after{border-bottom-width:none}.van-step--vertical:first-child:before{position:absolute;top:0;left:-15px;z-index:1;width:1px;height:20px;content:"";background-color:#fff;background-color:var(--white,#fff)}.van-step--vertical .van-step__circle,.van-step--vertical .van-step__icon,.van-step--vertical .van-step__line{position:absolute;top:19px;left:-14px;z-index:2;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.van-step--vertical .van-step__icon{line-height:1;font-size:12px;font-size:var(--step-icon-size,12px)}.van-step--vertical .van-step__line{z-index:1;width:1px;height:100%;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0);background-color:#ebedf0;background-color:var(--step-line-color,#ebedf0)}
\ No newline at end of file
+@import '../common/index.wxss';.van-steps{background-color:var(--steps-background-color,#fff);overflow:hidden}.van-steps--horizontal{padding:10px}.van-steps--horizontal .van-step__wrapper{display:flex;overflow:hidden;position:relative}.van-steps--vertical{padding-left:10px}.van-steps--vertical .van-step__wrapper{padding:0 0 0 20px}.van-step{color:var(--step-text-color,#969799);flex:1;font-size:var(--step-font-size,14px);position:relative}.van-step--finish{color:var(--step-finish-text-color,#323233)}.van-step__circle{background-color:var(--step-circle-color,#969799);border-radius:50%;height:var(--step-circle-size,5px);width:var(--step-circle-size,5px)}.van-step--horizontal{padding-bottom:14px}.van-step--horizontal:first-child .van-step__title{transform:none}.van-step--horizontal:first-child .van-step__circle-container{padding:0 8px 0 0;transform:translate3d(0,50%,0)}.van-step--horizontal:last-child{position:absolute;right:0;width:auto}.van-step--horizontal:last-child .van-step__title{text-align:right;transform:none}.van-step--horizontal:last-child .van-step__circle-container{padding:0 0 0 8px;right:0;transform:translate3d(0,50%,0)}.van-step--horizontal .van-step__circle-container{background-color:#fff;bottom:6px;padding:0 var(--padding-xs,8px);position:absolute;transform:translate3d(-50%,50%,0);z-index:1}.van-step--horizontal .van-step__title{display:inline-block;font-size:var(--step-horizontal-title-font-size,12px);transform:translate3d(-50%,0,0)}.van-step--horizontal .van-step__line{background-color:var(--step-line-color,#ebedf0);bottom:6px;height:1px;left:0;position:absolute;right:0;transform:translate3d(0,50%,0)}.van-step--horizontal.van-step--process{color:var(--step-process-text-color,#323233)}.van-step--horizontal.van-step--process .van-step__icon{display:block;font-size:var(--step-icon-size,12px);line-height:1}.van-step--vertical{line-height:18px;padding:10px 10px 10px 0}.van-step--vertical:after{border-bottom-width:1px}.van-step--vertical:last-child:after{border-bottom-width:none}.van-step--vertical:first-child:before{background-color:#fff;content:"";height:20px;left:-15px;position:absolute;top:0;width:1px;z-index:1}.van-step--vertical .van-step__circle,.van-step--vertical .van-step__icon,.van-step--vertical .van-step__line{left:-14px;position:absolute;top:19px;transform:translate3d(-50%,-50%,0);z-index:2}.van-step--vertical .van-step__icon{background-color:var(--steps-background-color,#fff);font-size:var(--step-icon-size,12px);line-height:1}.van-step--vertical .van-step__line{background-color:var(--step-line-color,#ebedf0);height:100%;transform:translate3d(-50%,0,0);width:1px;z-index:1}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.js
index 26ea1c8..ffeb125 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.js
@@ -1,123 +1,126 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var utils_1 = require('../common/utils');
-var component_1 = require('../common/component');
-var page_scroll_1 = require('../mixins/page-scroll');
-var ROOT_ELEMENT = '.van-sticky';
-component_1.VantComponent({
- props: {
- zIndex: {
- type: Number,
- value: 99,
- },
- offsetTop: {
- type: Number,
- value: 0,
- observer: 'onScroll',
- },
- disabled: {
- type: Boolean,
- observer: 'onScroll',
- },
- container: {
- type: null,
- observer: 'onScroll',
- },
- scrollTop: {
- type: null,
- observer: function (val) {
- this.onScroll({ scrollTop: val });
- },
- },
- },
- mixins: [
- page_scroll_1.pageScrollMixin(function (event) {
- if (this.data.scrollTop != null) {
- return;
- }
- this.onScroll(event);
- }),
- ],
- data: {
- height: 0,
- fixed: false,
- transform: 0,
- },
- mounted: function () {
- this.onScroll();
- },
- methods: {
- onScroll: function (_a) {
- var _this = this;
- var scrollTop = (_a === void 0 ? {} : _a).scrollTop;
- var _b = this.data,
- container = _b.container,
- offsetTop = _b.offsetTop,
- disabled = _b.disabled;
- if (disabled) {
- this.setDataAfterDiff({
- fixed: false,
- transform: 0,
- });
- return;
- }
- this.scrollTop = scrollTop || this.scrollTop;
- if (typeof container === 'function') {
- Promise.all([
- utils_1.getRect(this, ROOT_ELEMENT),
- this.getContainerRect(),
- ]).then(function (_a) {
- var root = _a[0],
- container = _a[1];
- if (offsetTop + root.height > container.height + container.top) {
- _this.setDataAfterDiff({
- fixed: false,
- transform: container.height - root.height,
- });
- } else if (offsetTop >= root.top) {
- _this.setDataAfterDiff({
- fixed: true,
- height: root.height,
- transform: 0,
- });
- } else {
- _this.setDataAfterDiff({ fixed: false, transform: 0 });
- }
- });
- return;
- }
- utils_1.getRect(this, ROOT_ELEMENT).then(function (root) {
- if (offsetTop >= root.top) {
- _this.setDataAfterDiff({ fixed: true, height: root.height });
- _this.transform = 0;
- } else {
- _this.setDataAfterDiff({ fixed: false });
- }
- });
- },
- setDataAfterDiff: function (data) {
- var _this = this;
- wx.nextTick(function () {
- var diff = Object.keys(data).reduce(function (prev, key) {
- if (data[key] !== _this.data[key]) {
- prev[key] = data[key];
- }
- return prev;
- }, {});
- if (Object.keys(diff).length > 0) {
- _this.setData(diff);
- }
- _this.$emit('scroll', {
- scrollTop: _this.scrollTop,
- isFixed: data.fixed || _this.data.fixed,
- });
- });
- },
- getContainerRect: function () {
- var nodesRef = this.data.container();
- return new Promise(function (resolve) {
- return nodesRef.boundingClientRect(resolve).exec();
- });
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var utils_1 = require("../common/utils");
+var component_1 = require("../common/component");
+var validator_1 = require("../common/validator");
+var page_scroll_1 = require("../mixins/page-scroll");
+var ROOT_ELEMENT = '.van-sticky';
+(0, component_1.VantComponent)({
+ props: {
+ zIndex: {
+ type: Number,
+ value: 99,
+ },
+ offsetTop: {
+ type: Number,
+ value: 0,
+ observer: 'onScroll',
+ },
+ disabled: {
+ type: Boolean,
+ observer: 'onScroll',
+ },
+ container: {
+ type: null,
+ observer: 'onScroll',
+ },
+ scrollTop: {
+ type: null,
+ observer: function (val) {
+ this.onScroll({ scrollTop: val });
+ },
+ },
+ },
+ mixins: [
+ (0, page_scroll_1.pageScrollMixin)(function (event) {
+ if (this.data.scrollTop != null) {
+ return;
+ }
+ this.onScroll(event);
+ }),
+ ],
+ data: {
+ height: 0,
+ fixed: false,
+ transform: 0,
+ },
+ mounted: function () {
+ this.onScroll();
+ },
+ methods: {
+ onScroll: function (_a) {
+ var _this = this;
+ var _b = _a === void 0 ? {} : _a, scrollTop = _b.scrollTop;
+ var _c = this.data, container = _c.container, offsetTop = _c.offsetTop, disabled = _c.disabled;
+ if (disabled) {
+ this.setDataAfterDiff({
+ fixed: false,
+ transform: 0,
+ });
+ return;
+ }
+ this.scrollTop = scrollTop || this.scrollTop;
+ if (typeof container === 'function') {
+ Promise.all([(0, utils_1.getRect)(this, ROOT_ELEMENT), this.getContainerRect()])
+ .then(function (_a) {
+ var root = _a[0], container = _a[1];
+ if (offsetTop + root.height > container.height + container.top) {
+ _this.setDataAfterDiff({
+ fixed: false,
+ transform: container.height - root.height,
+ });
+ }
+ else if (offsetTop >= root.top) {
+ _this.setDataAfterDiff({
+ fixed: true,
+ height: root.height,
+ transform: 0,
+ });
+ }
+ else {
+ _this.setDataAfterDiff({ fixed: false, transform: 0 });
+ }
+ })
+ .catch(function () { });
+ return;
+ }
+ (0, utils_1.getRect)(this, ROOT_ELEMENT).then(function (root) {
+ if (!(0, validator_1.isDef)(root) || (!root.width && !root.height)) {
+ return;
+ }
+ if (offsetTop >= root.top) {
+ _this.setDataAfterDiff({ fixed: true, height: root.height });
+ _this.transform = 0;
+ }
+ else {
+ _this.setDataAfterDiff({ fixed: false });
+ }
+ });
+ },
+ setDataAfterDiff: function (data) {
+ var _this = this;
+ wx.nextTick(function () {
+ var diff = Object.keys(data).reduce(function (prev, key) {
+ if (data[key] !== _this.data[key]) {
+ prev[key] = data[key];
+ }
+ return prev;
+ }, {});
+ if (Object.keys(diff).length > 0) {
+ _this.setData(diff);
+ }
+ _this.$emit('scroll', {
+ scrollTop: _this.scrollTop,
+ isFixed: data.fixed || _this.data.fixed,
+ });
+ });
+ },
+ getContainerRect: function () {
+ var nodesRef = this.data.container();
+ if (!nodesRef) {
+ return Promise.reject(new Error('not found container'));
+ }
+ return new Promise(function (resolve) { return nodesRef.boundingClientRect(resolve).exec(); });
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxml
index daba5d6..15e9f4a 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxml
@@ -1,8 +1,8 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxs
index b753ac8..be99d89 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxs
@@ -1,25 +1,25 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function wrapStyle(data) {
- return style({
- transform: data.transform
- ? 'translate3d(0, ' + data.transform + 'px, 0)'
- : '',
- top: data.fixed ? addUnit(data.offsetTop) : '',
- 'z-index': data.zIndex,
- });
-}
-
-function containerStyle(data) {
- return style({
- height: data.fixed ? addUnit(data.height) : '',
- 'z-index': data.zIndex,
- });
-}
-
-module.exports = {
- wrapStyle: wrapStyle,
- containerStyle: containerStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function wrapStyle(data) {
+ return style({
+ transform: data.transform
+ ? 'translate3d(0, ' + data.transform + 'px, 0)'
+ : '',
+ top: data.fixed ? addUnit(data.offsetTop) : '',
+ 'z-index': data.zIndex,
+ });
+}
+
+function containerStyle(data) {
+ return style({
+ height: data.fixed ? addUnit(data.height) : '',
+ 'z-index': data.zIndex,
+ });
+}
+
+module.exports = {
+ wrapStyle: wrapStyle,
+ containerStyle: containerStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxss
index 5269387..34d76aa 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-sticky{position:relative}.van-sticky-wrap--fixed{position:fixed;right:0;left:0}
\ No newline at end of file
+@import '../common/index.wxss';.van-sticky{position:relative}.van-sticky-wrap--fixed{left:0;position:fixed;right:0}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.js
index 4c2e9c9..d3bfc25 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.js
@@ -1,61 +1,58 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-component_1.VantComponent({
- classes: ['bar-class', 'price-class', 'button-class'],
- props: {
- tip: {
- type: null,
- observer: 'updateTip',
- },
- tipIcon: String,
- type: Number,
- price: {
- type: null,
- observer: 'updatePrice',
- },
- label: String,
- loading: Boolean,
- disabled: Boolean,
- buttonText: String,
- currency: {
- type: String,
- value: '¥',
- },
- buttonType: {
- type: String,
- value: 'danger',
- },
- decimalLength: {
- type: Number,
- value: 2,
- observer: 'updatePrice',
- },
- suffixLabel: String,
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- },
- methods: {
- updatePrice: function () {
- var _a = this.data,
- price = _a.price,
- decimalLength = _a.decimalLength;
- var priceStrArr =
- typeof price === 'number' &&
- (price / 100).toFixed(decimalLength).split('.');
- this.setData({
- hasPrice: typeof price === 'number',
- integerStr: priceStrArr && priceStrArr[0],
- decimalStr: decimalLength && priceStrArr ? '.' + priceStrArr[1] : '',
- });
- },
- updateTip: function () {
- this.setData({ hasTip: typeof this.data.tip === 'string' });
- },
- onSubmit: function (event) {
- this.$emit('submit', event.detail);
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ classes: ['bar-class', 'price-class', 'button-class'],
+ props: {
+ tip: {
+ type: null,
+ observer: 'updateTip',
+ },
+ tipIcon: String,
+ type: Number,
+ price: {
+ type: null,
+ observer: 'updatePrice',
+ },
+ label: String,
+ loading: Boolean,
+ disabled: Boolean,
+ buttonText: String,
+ currency: {
+ type: String,
+ value: '¥',
+ },
+ buttonType: {
+ type: String,
+ value: 'danger',
+ },
+ decimalLength: {
+ type: Number,
+ value: 2,
+ observer: 'updatePrice',
+ },
+ suffixLabel: String,
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ methods: {
+ updatePrice: function () {
+ var _a = this.data, price = _a.price, decimalLength = _a.decimalLength;
+ var priceStrArr = typeof price === 'number' &&
+ (price / 100).toFixed(decimalLength).split('.');
+ this.setData({
+ hasPrice: typeof price === 'number',
+ integerStr: priceStrArr && priceStrArr[0],
+ decimalStr: decimalLength && priceStrArr ? ".".concat(priceStrArr[1]) : '',
+ });
+ },
+ updateTip: function () {
+ this.setData({ hasTip: typeof this.data.tip === 'string' });
+ },
+ onSubmit: function (event) {
+ this.$emit('submit', event.detail);
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.json
index 61add22..bda9b8d 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.json
@@ -1,7 +1,7 @@
-{
- "component": true,
- "usingComponents": {
- "van-button": "../button/index",
- "van-icon": "../icon/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-button": "../button/index",
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.wxml
index e5a4dc1..a56dd46 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.wxml
@@ -1,44 +1,44 @@
-
-
-
-
-
-
-
-
- {{ tip }}
-
-
-
-
-
-
-
- {{ label || '合计:' }}
-
- {{ currency }}
- {{ integerStr }}{{decimalStr}}
-
- {{ suffixLabel }}
-
-
- {{ loading ? '' : buttonText }}
-
-
-
-
-
+
+
+
+
+
+
+
+
+ {{ tip }}
+
+
+
+
+
+
+
+ {{ label || '合计:' }}
+
+ {{ currency }}
+ {{ integerStr }}{{decimalStr}}
+
+ {{ suffixLabel }}
+
+
+ {{ loading ? '' : buttonText }}
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.wxss
index 3126e91..8379a30 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-submit-bar{position:fixed;bottom:0;left:0;width:100%;-webkit-user-select:none;user-select:none;z-index:100;z-index:var(--submit-bar-z-index,100);background-color:#fff;background-color:var(--submit-bar-background-color,#fff)}.van-submit-bar__tip{padding:10px;padding:var(--submit-bar-tip-padding,10px);color:#f56723;color:var(--submit-bar-tip-color,#f56723);font-size:12px;font-size:var(--submit-bar-tip-font-size,12px);line-height:1.5;line-height:var(--submit-bar-tip-line-height,1.5);background-color:#fff7cc;background-color:var(--submit-bar-tip-background-color,#fff7cc)}.van-submit-bar__tip:empty{display:none}.van-submit-bar__tip-icon{width:12px;height:12px;margin-right:4px;vertical-align:middle;font-size:12px;font-size:var(--submit-bar-tip-icon-size,12px);min-width:18px;min-width:calc(var(--submit-bar-tip-icon-size, 12px)*1.5)}.van-submit-bar__tip-text{display:inline;vertical-align:middle}.van-submit-bar__bar{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:flex-end;justify-content:flex-end;padding:0 16px;padding:var(--submit-bar-padding,0 16px);height:50px;height:var(--submit-bar-height,50px);font-size:14px;font-size:var(--submit-bar-text-font-size,14px);background-color:#fff;background-color:var(--submit-bar-background-color,#fff)}.van-submit-bar__safe{height:constant(safe-area-inset-bottom);height:env(safe-area-inset-bottom)}.van-submit-bar__text{-webkit-flex:1;flex:1;text-align:right;color:#323233;color:var(--submit-bar-text-color,#323233);padding-right:12px;padding-right:var(--padding-sm,12px)}.van-submit-bar__price,.van-submit-bar__text{font-weight:500;font-weight:var(--font-weight-bold,500)}.van-submit-bar__price{color:#ee0a24;color:var(--submit-bar-price-color,#ee0a24);font-size:12px;font-size:var(--submit-bar-price-font-size,12px)}.van-submit-bar__price-integer{font-size:20px;font-family:Avenir-Heavy,PingFang SC,Helvetica Neue,Arial,sans-serif}.van-submit-bar__currency{font-size:12px;font-size:var(--submit-bar-currency-font-size,12px)}.van-submit-bar__suffix-label{margin-left:5px}.van-submit-bar__button{width:110px;width:var(--submit-bar-button-width,110px);font-weight:500;font-weight:var(--font-weight-bold,500);--button-default-height:40px!important;--button-default-height:var(--submit-bar-button-height,40px)!important;--button-line-height:40px!important;--button-line-height:var(--submit-bar-button-height,40px)!important}
\ No newline at end of file
+@import '../common/index.wxss';.van-submit-bar{background-color:var(--submit-bar-background-color,#fff);bottom:0;left:0;position:fixed;-webkit-user-select:none;user-select:none;width:100%;z-index:var(--submit-bar-z-index,100)}.van-submit-bar__tip{background-color:var(--submit-bar-tip-background-color,#fff7cc);color:var(--submit-bar-tip-color,#f56723);font-size:var(--submit-bar-tip-font-size,12px);line-height:var(--submit-bar-tip-line-height,1.5);padding:var(--submit-bar-tip-padding,10px)}.van-submit-bar__tip:empty{display:none}.van-submit-bar__tip-icon{margin-right:4px;vertical-align:middle}.van-submit-bar__tip-text{display:inline;vertical-align:middle}.van-submit-bar__bar{align-items:center;background-color:var(--submit-bar-background-color,#fff);display:flex;font-size:var(--submit-bar-text-font-size,14px);height:var(--submit-bar-height,50px);justify-content:flex-end;padding:var(--submit-bar-padding,0 16px)}.van-submit-bar__safe{height:constant(safe-area-inset-bottom);height:env(safe-area-inset-bottom)}.van-submit-bar__text{color:var(--submit-bar-text-color,#323233);flex:1;font-weight:var(--font-weight-bold,500);padding-right:var(--padding-sm,12px);text-align:right}.van-submit-bar__price{color:var(--submit-bar-price-color,#ee0a24);font-size:var(--submit-bar-price-font-size,12px);font-weight:var(--font-weight-bold,500)}.van-submit-bar__price-integer{font-family:Avenir-Heavy,PingFang SC,Helvetica Neue,Arial,sans-serif;font-size:20px}.van-submit-bar__currency{font-size:var(--submit-bar-currency-font-size,12px)}.van-submit-bar__suffix-label{margin-left:5px}.van-submit-bar__button{--button-default-height:var(--submit-bar-button-height,40px)!important;--button-line-height:var(--submit-bar-button-height,40px)!important;font-weight:var(--font-weight-bold,500);width:var(--submit-bar-button-width,110px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.js
index 92a8a89..1582b6c 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.js
@@ -1,162 +1,135 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var touch_1 = require('../mixins/touch');
-var utils_1 = require('../common/utils');
-var THRESHOLD = 0.3;
-var ARRAY = [];
-component_1.VantComponent({
- props: {
- disabled: Boolean,
- leftWidth: {
- type: Number,
- value: 0,
- observer: function (leftWidth) {
- if (leftWidth === void 0) {
- leftWidth = 0;
- }
- if (this.offset > 0) {
- this.swipeMove(leftWidth);
- }
- },
- },
- rightWidth: {
- type: Number,
- value: 0,
- observer: function (rightWidth) {
- if (rightWidth === void 0) {
- rightWidth = 0;
- }
- if (this.offset < 0) {
- this.swipeMove(-rightWidth);
- }
- },
- },
- asyncClose: Boolean,
- name: {
- type: null,
- value: '',
- },
- },
- mixins: [touch_1.touch],
- data: {
- catchMove: false,
- wrapperStyle: '',
- },
- created: function () {
- this.offset = 0;
- ARRAY.push(this);
- },
- destroyed: function () {
- var _this = this;
- ARRAY = ARRAY.filter(function (item) {
- return item !== _this;
- });
- },
- methods: {
- open: function (position) {
- var _a = this.data,
- leftWidth = _a.leftWidth,
- rightWidth = _a.rightWidth;
- var offset = position === 'left' ? leftWidth : -rightWidth;
- this.swipeMove(offset);
- this.$emit('open', {
- position: position,
- name: this.data.name,
- });
- },
- close: function () {
- this.swipeMove(0);
- },
- swipeMove: function (offset) {
- if (offset === void 0) {
- offset = 0;
- }
- this.offset = utils_1.range(
- offset,
- -this.data.rightWidth,
- this.data.leftWidth
- );
- var transform = 'translate3d(' + this.offset + 'px, 0, 0)';
- var transition = this.dragging
- ? 'none'
- : 'transform .6s cubic-bezier(0.18, 0.89, 0.32, 1)';
- this.setData({
- wrapperStyle:
- '\n -webkit-transform: ' +
- transform +
- ';\n -webkit-transition: ' +
- transition +
- ';\n transform: ' +
- transform +
- ';\n transition: ' +
- transition +
- ';\n ',
- });
- },
- swipeLeaveTransition: function () {
- var _a = this.data,
- leftWidth = _a.leftWidth,
- rightWidth = _a.rightWidth;
- var offset = this.offset;
- if (rightWidth > 0 && -offset > rightWidth * THRESHOLD) {
- this.open('right');
- } else if (leftWidth > 0 && offset > leftWidth * THRESHOLD) {
- this.open('left');
- } else {
- this.swipeMove(0);
- }
- this.setData({ catchMove: false });
- },
- startDrag: function (event) {
- if (this.data.disabled) {
- return;
- }
- this.startOffset = this.offset;
- this.touchStart(event);
- },
- noop: function () {},
- onDrag: function (event) {
- var _this = this;
- if (this.data.disabled) {
- return;
- }
- this.touchMove(event);
- if (this.direction !== 'horizontal') {
- return;
- }
- this.dragging = true;
- ARRAY.filter(function (item) {
- return item !== _this && item.offset !== 0;
- }).forEach(function (item) {
- return item.close();
- });
- this.setData({ catchMove: true });
- this.swipeMove(this.startOffset + this.deltaX);
- },
- endDrag: function () {
- if (this.data.disabled) {
- return;
- }
- this.dragging = false;
- this.swipeLeaveTransition();
- },
- onClick: function (event) {
- var _a = event.currentTarget.dataset.key,
- position = _a === void 0 ? 'outside' : _a;
- this.$emit('click', position);
- if (!this.offset) {
- return;
- }
- if (this.data.asyncClose) {
- this.$emit('close', {
- position: position,
- instance: this,
- name: this.data.name,
- });
- } else {
- this.swipeMove(0);
- }
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var touch_1 = require("../mixins/touch");
+var utils_1 = require("../common/utils");
+var THRESHOLD = 0.3;
+var ARRAY = [];
+(0, component_1.VantComponent)({
+ props: {
+ disabled: Boolean,
+ leftWidth: {
+ type: Number,
+ value: 0,
+ observer: function (leftWidth) {
+ if (leftWidth === void 0) { leftWidth = 0; }
+ if (this.offset > 0) {
+ this.swipeMove(leftWidth);
+ }
+ },
+ },
+ rightWidth: {
+ type: Number,
+ value: 0,
+ observer: function (rightWidth) {
+ if (rightWidth === void 0) { rightWidth = 0; }
+ if (this.offset < 0) {
+ this.swipeMove(-rightWidth);
+ }
+ },
+ },
+ asyncClose: Boolean,
+ name: {
+ type: null,
+ value: '',
+ },
+ },
+ mixins: [touch_1.touch],
+ data: {
+ catchMove: false,
+ wrapperStyle: '',
+ },
+ created: function () {
+ this.offset = 0;
+ ARRAY.push(this);
+ },
+ destroyed: function () {
+ var _this = this;
+ ARRAY = ARRAY.filter(function (item) { return item !== _this; });
+ },
+ methods: {
+ open: function (position) {
+ var _a = this.data, leftWidth = _a.leftWidth, rightWidth = _a.rightWidth;
+ var offset = position === 'left' ? leftWidth : -rightWidth;
+ this.swipeMove(offset);
+ this.$emit('open', {
+ position: position,
+ name: this.data.name,
+ });
+ },
+ close: function () {
+ this.swipeMove(0);
+ },
+ swipeMove: function (offset) {
+ if (offset === void 0) { offset = 0; }
+ this.offset = (0, utils_1.range)(offset, -this.data.rightWidth, this.data.leftWidth);
+ var transform = "translate3d(".concat(this.offset, "px, 0, 0)");
+ var transition = this.dragging
+ ? 'none'
+ : 'transform .6s cubic-bezier(0.18, 0.89, 0.32, 1)';
+ this.setData({
+ wrapperStyle: "\n -webkit-transform: ".concat(transform, ";\n -webkit-transition: ").concat(transition, ";\n transform: ").concat(transform, ";\n transition: ").concat(transition, ";\n "),
+ });
+ },
+ swipeLeaveTransition: function () {
+ var _a = this.data, leftWidth = _a.leftWidth, rightWidth = _a.rightWidth;
+ var offset = this.offset;
+ if (rightWidth > 0 && -offset > rightWidth * THRESHOLD) {
+ this.open('right');
+ }
+ else if (leftWidth > 0 && offset > leftWidth * THRESHOLD) {
+ this.open('left');
+ }
+ else {
+ this.swipeMove(0);
+ }
+ this.setData({ catchMove: false });
+ },
+ startDrag: function (event) {
+ if (this.data.disabled) {
+ return;
+ }
+ this.startOffset = this.offset;
+ this.touchStart(event);
+ },
+ noop: function () { },
+ onDrag: function (event) {
+ var _this = this;
+ if (this.data.disabled) {
+ return;
+ }
+ this.touchMove(event);
+ if (this.direction !== 'horizontal') {
+ return;
+ }
+ this.dragging = true;
+ ARRAY.filter(function (item) { return item !== _this && item.offset !== 0; }).forEach(function (item) { return item.close(); });
+ this.setData({ catchMove: true });
+ this.swipeMove(this.startOffset + this.deltaX);
+ },
+ endDrag: function () {
+ if (this.data.disabled) {
+ return;
+ }
+ this.dragging = false;
+ this.swipeLeaveTransition();
+ },
+ onClick: function (event) {
+ var _a = event.currentTarget.dataset.key, position = _a === void 0 ? 'outside' : _a;
+ this.$emit('click', position);
+ if (!this.offset) {
+ return;
+ }
+ if (this.data.asyncClose) {
+ this.$emit('close', {
+ position: position,
+ instance: this,
+ name: this.data.name,
+ });
+ }
+ else {
+ this.swipeMove(0);
+ }
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.wxml
index 2646746..3f7f726 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.wxml
@@ -1,20 +1,20 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.wxss
index d615270..3a265bf 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-swipe-cell{position:relative;overflow:hidden}.van-swipe-cell__left,.van-swipe-cell__right{position:absolute;top:0;height:100%}.van-swipe-cell__left{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.van-swipe-cell__right{right:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}
\ No newline at end of file
+@import '../common/index.wxss';.van-swipe-cell{overflow:hidden;position:relative}.van-swipe-cell__left,.van-swipe-cell__right{height:100%;position:absolute;top:0}.van-swipe-cell__left{left:0;transform:translate3d(-100%,0,0)}.van-swipe-cell__right{right:0;transform:translate3d(100%,0,0)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.js
index df9e138..1d2317f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.js
@@ -1,42 +1,38 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-component_1.VantComponent({
- field: true,
- classes: ['node-class'],
- props: {
- checked: null,
- loading: Boolean,
- disabled: Boolean,
- activeColor: String,
- inactiveColor: String,
- size: {
- type: String,
- value: '30',
- },
- activeValue: {
- type: null,
- value: true,
- },
- inactiveValue: {
- type: null,
- value: false,
- },
- },
- methods: {
- onClick: function () {
- var _a = this.data,
- activeValue = _a.activeValue,
- inactiveValue = _a.inactiveValue,
- disabled = _a.disabled,
- loading = _a.loading;
- if (disabled || loading) {
- return;
- }
- var checked = this.data.checked === activeValue;
- var value = checked ? inactiveValue : activeValue;
- this.$emit('input', value);
- this.$emit('change', value);
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ field: true,
+ classes: ['node-class'],
+ props: {
+ checked: null,
+ loading: Boolean,
+ disabled: Boolean,
+ activeColor: String,
+ inactiveColor: String,
+ size: {
+ type: String,
+ value: '30',
+ },
+ activeValue: {
+ type: null,
+ value: true,
+ },
+ inactiveValue: {
+ type: null,
+ value: false,
+ },
+ },
+ methods: {
+ onClick: function () {
+ var _a = this.data, activeValue = _a.activeValue, inactiveValue = _a.inactiveValue, disabled = _a.disabled, loading = _a.loading;
+ if (disabled || loading) {
+ return;
+ }
+ var checked = this.data.checked === activeValue;
+ var value = checked ? inactiveValue : activeValue;
+ this.$emit('input', value);
+ this.$emit('change', value);
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.json
index 71a2515..01077f5 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-loading": "../loading/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-loading": "../loading/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxml
index fc08e1e..4e9789b 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxml
@@ -1,16 +1,16 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxs
index 2d3a63a..3ae387a 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxs
@@ -1,26 +1,26 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
- var currentColor = data.checked ? data.activeColor : data.inactiveColor;
-
- return style({
- 'font-size': addUnit(data.size),
- 'background-color': currentColor,
- });
-}
-
-var BLUE = '#1989fa';
-var GRAY_DARK = '#969799';
-
-function loadingColor(data) {
- return data.checked
- ? data.activeColor || BLUE
- : data.inactiveColor || GRAY_DARK;
-}
-
-module.exports = {
- rootStyle: rootStyle,
- loadingColor: loadingColor,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function rootStyle(data) {
+ var currentColor = data.checked === data.activeValue ? data.activeColor : data.inactiveColor;
+
+ return style({
+ 'font-size': addUnit(data.size),
+ 'background-color': currentColor,
+ });
+}
+
+var BLUE = '#1989fa';
+var GRAY_DARK = '#969799';
+
+function loadingColor(data) {
+ return data.checked === data.activeValue
+ ? data.activeColor || BLUE
+ : data.inactiveColor || GRAY_DARK;
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+ loadingColor: loadingColor,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxss
index e32a72a..35929de 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-switch{position:relative;display:inline-block;box-sizing:initial;width:2em;width:var(--switch-width,2em);height:1em;height:var(--switch-height,1em);background-color:#fff;background-color:var(--switch-background-color,#fff);border:1px solid rgba(0,0,0,.1);border:var(--switch-border,1px solid rgba(0,0,0,.1));border-radius:1em;border-radius:var(--switch-node-size,1em);transition:background-color .3s;transition:background-color var(--switch-transition-duration,.3s)}.van-switch__node{position:absolute;top:0;left:0;border-radius:100%;z-index:1;z-index:var(--switch-node-z-index,1);width:1em;width:var(--switch-node-size,1em);height:1em;height:var(--switch-node-size,1em);background-color:#fff;background-color:var(--switch-node-background-color,#fff);box-shadow:0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05);box-shadow:var(--switch-node-box-shadow,0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05));transition:-webkit-transform .3s cubic-bezier(.3,1.05,.4,1.05);transition:transform .3s cubic-bezier(.3,1.05,.4,1.05);transition:transform .3s cubic-bezier(.3,1.05,.4,1.05),-webkit-transform .3s cubic-bezier(.3,1.05,.4,1.05);transition:-webkit-transform var(--switch-transition-duration,.3s) cubic-bezier(.3,1.05,.4,1.05);transition:transform var(--switch-transition-duration,.3s) cubic-bezier(.3,1.05,.4,1.05);transition:transform var(--switch-transition-duration,.3s) cubic-bezier(.3,1.05,.4,1.05),-webkit-transform var(--switch-transition-duration,.3s) cubic-bezier(.3,1.05,.4,1.05)}.van-switch__loading{position:absolute!important;top:25%;left:25%;width:50%;height:50%}.van-switch--on{background-color:#1989fa;background-color:var(--switch-on-background-color,#1989fa)}.van-switch--on .van-switch__node{-webkit-transform:translateX(1em);transform:translateX(1em);-webkit-transform:translateX(calc(var(--switch-width, 2em) - var(--switch-node-size, 1em)));transform:translateX(calc(var(--switch-width, 2em) - var(--switch-node-size, 1em)))}.van-switch--disabled{opacity:.4;opacity:var(--switch-disabled-opacity,.4)}
\ No newline at end of file
+@import '../common/index.wxss';.van-switch{background-color:var(--switch-background-color,#fff);border:var(--switch-border,1px solid rgba(0,0,0,.1));border-radius:var(--switch-node-size,1em);box-sizing:initial;display:inline-block;height:var(--switch-height,1em);position:relative;transition:background-color var(--switch-transition-duration,.3s);width:var(--switch-width,2em)}.van-switch__node{background-color:var(--switch-node-background-color,#fff);border-radius:100%;box-shadow:var(--switch-node-box-shadow,0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05));height:var(--switch-node-size,1em);left:0;position:absolute;top:0;transition:var(--switch-transition-duration,.3s) cubic-bezier(.3,1.05,.4,1.05);width:var(--switch-node-size,1em);z-index:var(--switch-node-z-index,1)}.van-switch__loading{height:50%;left:25%;position:absolute!important;top:25%;width:50%}.van-switch--on{background-color:var(--switch-on-background-color,#1989fa)}.van-switch--on .van-switch__node{transform:translateX(calc(var(--switch-width, 2em) - var(--switch-node-size, 1em)))}.van-switch--disabled{opacity:var(--switch-disabled-opacity,.4)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.js
index 8c680b3..ae4d06b 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.js
@@ -1,58 +1,58 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var relation_1 = require('../common/relation');
-var component_1 = require('../common/component');
-component_1.VantComponent({
- relation: relation_1.useParent('tabs'),
- props: {
- dot: {
- type: Boolean,
- observer: 'update',
- },
- info: {
- type: null,
- observer: 'update',
- },
- title: {
- type: String,
- observer: 'update',
- },
- disabled: {
- type: Boolean,
- observer: 'update',
- },
- titleStyle: {
- type: String,
- observer: 'update',
- },
- name: {
- type: null,
- value: '',
- },
- },
- data: {
- active: false,
- },
- methods: {
- getComputedName: function () {
- if (this.data.name !== '') {
- return this.data.name;
- }
- return this.index;
- },
- updateRender: function (active, parent) {
- var parentData = parent.data;
- this.inited = this.inited || active;
- this.setData({
- active: active,
- shouldRender: this.inited || !parentData.lazyRender,
- shouldShow: active || parentData.animated,
- });
- },
- update: function () {
- if (this.parent) {
- this.parent.updateTabs();
- }
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var relation_1 = require("../common/relation");
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useParent)('tabs'),
+ props: {
+ dot: {
+ type: Boolean,
+ observer: 'update',
+ },
+ info: {
+ type: null,
+ observer: 'update',
+ },
+ title: {
+ type: String,
+ observer: 'update',
+ },
+ disabled: {
+ type: Boolean,
+ observer: 'update',
+ },
+ titleStyle: {
+ type: String,
+ observer: 'update',
+ },
+ name: {
+ type: null,
+ value: '',
+ },
+ },
+ data: {
+ active: false,
+ },
+ methods: {
+ getComputedName: function () {
+ if (this.data.name !== '') {
+ return this.data.name;
+ }
+ return this.index;
+ },
+ updateRender: function (active, parent) {
+ var parentData = parent.data;
+ this.inited = this.inited || active;
+ this.setData({
+ active: active,
+ shouldRender: this.inited || !parentData.lazyRender,
+ shouldShow: active || parentData.animated,
+ });
+ },
+ update: function () {
+ if (this.parent) {
+ this.parent.updateTabs();
+ }
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.wxml
index 6acf5ae..f5e99f2 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.wxml
@@ -1,8 +1,8 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.wxss
index 76ddf06..1c90c88 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';:host{-webkit-flex-shrink:0;flex-shrink:0;width:100%}.van-tab__pane,:host{box-sizing:border-box}.van-tab__pane{overflow-y:auto;-webkit-overflow-scrolling:touch}.van-tab__pane--active{height:auto}.van-tab__pane--inactive{height:0;overflow:visible}
\ No newline at end of file
+@import '../common/index.wxss';:host{box-sizing:border-box;flex-shrink:0;width:100%}.van-tab__pane{-webkit-overflow-scrolling:touch;box-sizing:border-box;overflow-y:auto}.van-tab__pane--active{height:auto}.van-tab__pane--inactive{height:0;overflow:visible}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.js
index 51c4deb..58a5065 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.js
@@ -1,58 +1,70 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-component_1.VantComponent({
- props: {
- info: null,
- name: null,
- icon: String,
- dot: Boolean,
- iconPrefix: {
- type: String,
- value: 'van-icon',
- },
- },
- relation: relation_1.useParent('tabbar'),
- data: {
- active: false,
- activeColor: '',
- inactiveColor: '',
- },
- methods: {
- onClick: function () {
- var parent = this.parent;
- if (parent) {
- var index = parent.children.indexOf(this);
- var active = this.data.name || index;
- if (active !== this.data.active) {
- parent.$emit('change', active);
- }
- }
- this.$emit('click');
- },
- updateFromParent: function () {
- var parent = this.parent;
- if (!parent) {
- return;
- }
- var index = parent.children.indexOf(this);
- var parentData = parent.data;
- var data = this.data;
- var active = (data.name || index) === parentData.active;
- var patch = {};
- if (active !== data.active) {
- patch.active = active;
- }
- if (parentData.activeColor !== data.activeColor) {
- patch.activeColor = parentData.activeColor;
- }
- if (parentData.inactiveColor !== data.inactiveColor) {
- patch.inactiveColor = parentData.inactiveColor;
- }
- if (Object.keys(patch).length > 0) {
- this.setData(patch);
- }
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ props: {
+ info: null,
+ name: null,
+ icon: String,
+ dot: Boolean,
+ url: {
+ type: String,
+ value: '',
+ },
+ linkType: {
+ type: String,
+ value: 'redirectTo',
+ },
+ iconPrefix: {
+ type: String,
+ value: 'van-icon',
+ },
+ },
+ relation: (0, relation_1.useParent)('tabbar'),
+ data: {
+ active: false,
+ activeColor: '',
+ inactiveColor: '',
+ },
+ methods: {
+ onClick: function () {
+ var parent = this.parent;
+ if (parent) {
+ var index = parent.children.indexOf(this);
+ var active = this.data.name || index;
+ if (active !== this.data.active) {
+ parent.$emit('change', active);
+ }
+ }
+ var _a = this.data, url = _a.url, linkType = _a.linkType;
+ if (url && wx[linkType]) {
+ return wx[linkType]({ url: url });
+ }
+ this.$emit('click');
+ },
+ updateFromParent: function () {
+ var parent = this.parent;
+ if (!parent) {
+ return;
+ }
+ var index = parent.children.indexOf(this);
+ var parentData = parent.data;
+ var data = this.data;
+ var active = (data.name || index) === parentData.active;
+ var patch = {};
+ if (active !== data.active) {
+ patch.active = active;
+ }
+ if (parentData.activeColor !== data.activeColor) {
+ patch.activeColor = parentData.activeColor;
+ }
+ if (parentData.inactiveColor !== data.inactiveColor) {
+ patch.inactiveColor = parentData.inactiveColor;
+ }
+ if (Object.keys(patch).length > 0) {
+ this.setData(patch);
+ }
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.json
index 8ed8bcd..16f174c 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.json
@@ -1,7 +1,7 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index",
- "van-info": "../info/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index",
+ "van-info": "../info/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.wxml
index 98bb8f5..524728f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.wxml
@@ -1,28 +1,28 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.wxss
index ff33bd2..21ee224 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';:host{-webkit-flex:1;flex:1}.van-tabbar-item{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;height:100%;color:#646566;color:var(--tabbar-item-text-color,#646566);font-size:12px;font-size:var(--tabbar-item-font-size,12px);line-height:1;line-height:var(--tabbar-item-line-height,1)}.van-tabbar-item__icon{position:relative;margin-bottom:4px;margin-bottom:var(--tabbar-item-margin-bottom,4px);font-size:22px;font-size:var(--tabbar-item-icon-size,22px)}.van-tabbar-item__icon__inner{display:block;min-width:1em}.van-tabbar-item--active{color:#1989fa;color:var(--tabbar-item-active-color,#1989fa)}.van-tabbar-item__info{margin-top:2px}
\ No newline at end of file
+@import '../common/index.wxss';:host{flex:1}.van-tabbar-item{align-items:center;color:var(--tabbar-item-text-color,#646566);display:flex;flex-direction:column;font-size:var(--tabbar-item-font-size,12px);height:100%;justify-content:center;line-height:var(--tabbar-item-line-height,1)}.van-tabbar-item__icon{font-size:var(--tabbar-item-icon-size,22px);margin-bottom:var(--tabbar-item-margin-bottom,4px);position:relative}.van-tabbar-item__icon__inner{display:block;min-width:1em}.van-tabbar-item--active{color:var(--tabbar-item-active-color,#1989fa)}.van-tabbar-item__info{margin-top:2px}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.js
index 403d96d..3db793d 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.js
@@ -1,70 +1,68 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-var utils_1 = require('../common/utils');
-component_1.VantComponent({
- relation: relation_1.useChildren('tabbar-item', function () {
- this.updateChildren();
- }),
- props: {
- active: {
- type: null,
- observer: 'updateChildren',
- },
- activeColor: {
- type: String,
- observer: 'updateChildren',
- },
- inactiveColor: {
- type: String,
- observer: 'updateChildren',
- },
- fixed: {
- type: Boolean,
- value: true,
- observer: 'setHeight',
- },
- placeholder: {
- type: Boolean,
- observer: 'setHeight',
- },
- border: {
- type: Boolean,
- value: true,
- },
- zIndex: {
- type: Number,
- value: 1,
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- height: 50,
- },
- methods: {
- updateChildren: function () {
- var children = this.children;
- if (!Array.isArray(children) || !children.length) {
- return;
- }
- children.forEach(function (child) {
- return child.updateFromParent();
- });
- },
- setHeight: function () {
- var _this = this;
- if (!this.data.fixed || !this.data.placeholder) {
- return;
- }
- wx.nextTick(function () {
- utils_1.getRect(_this, '.van-tabbar').then(function (res) {
- _this.setData({ height: res.height });
- });
- });
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+var utils_1 = require("../common/utils");
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useChildren)('tabbar-item', function () {
+ this.updateChildren();
+ }),
+ props: {
+ active: {
+ type: null,
+ observer: 'updateChildren',
+ },
+ activeColor: {
+ type: String,
+ observer: 'updateChildren',
+ },
+ inactiveColor: {
+ type: String,
+ observer: 'updateChildren',
+ },
+ fixed: {
+ type: Boolean,
+ value: true,
+ observer: 'setHeight',
+ },
+ placeholder: {
+ type: Boolean,
+ observer: 'setHeight',
+ },
+ border: {
+ type: Boolean,
+ value: true,
+ },
+ zIndex: {
+ type: Number,
+ value: 1,
+ },
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ data: {
+ height: 50,
+ },
+ methods: {
+ updateChildren: function () {
+ var children = this.children;
+ if (!Array.isArray(children) || !children.length) {
+ return;
+ }
+ children.forEach(function (child) { return child.updateFromParent(); });
+ },
+ setHeight: function () {
+ var _this = this;
+ if (!this.data.fixed || !this.data.placeholder) {
+ return;
+ }
+ wx.nextTick(function () {
+ (0, utils_1.getRect)(_this, '.van-tabbar').then(function (res) {
+ _this.setData({ height: res.height });
+ });
+ });
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.wxml
index 4229c4a..43bb111 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.wxml
@@ -1,10 +1,10 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.wxss
index 6819569..42b6c1e 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-tabbar{display:-webkit-flex;display:flex;box-sizing:initial;width:100%;height:50px;height:var(--tabbar-height,50px);background-color:#fff;background-color:var(--tabbar-background-color,#fff)}.van-tabbar--fixed{position:fixed;bottom:0;left:0}.van-tabbar--safe{padding-bottom:env(safe-area-inset-bottom)}
\ No newline at end of file
+@import '../common/index.wxss';.van-tabbar{background-color:var(--tabbar-background-color,#fff);box-sizing:initial;display:flex;height:var(--tabbar-height,50px);width:100%}.van-tabbar--fixed{bottom:0;left:0;position:fixed}.van-tabbar--safe{padding-bottom:env(safe-area-inset-bottom)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.js
index 1b16226..3121957 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.js
@@ -1,305 +1,327 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var touch_1 = require('../mixins/touch');
-var utils_1 = require('../common/utils');
-var validator_1 = require('../common/validator');
-var relation_1 = require('../common/relation');
-component_1.VantComponent({
- mixins: [touch_1.touch],
- classes: ['nav-class', 'tab-class', 'tab-active-class', 'line-class'],
- relation: relation_1.useChildren('tab', function () {
- this.updateTabs();
- }),
- props: {
- sticky: Boolean,
- border: Boolean,
- swipeable: Boolean,
- titleActiveColor: String,
- titleInactiveColor: String,
- color: String,
- animated: {
- type: Boolean,
- observer: function () {
- var _this = this;
- this.children.forEach(function (child, index) {
- return child.updateRender(index === _this.data.currentIndex, _this);
- });
- },
- },
- lineWidth: {
- type: null,
- value: 40,
- observer: 'resize',
- },
- lineHeight: {
- type: null,
- value: -1,
- },
- active: {
- type: null,
- value: 0,
- observer: function (name) {
- if (name !== this.getCurrentName()) {
- this.setCurrentIndexByName(name);
- }
- },
- },
- type: {
- type: String,
- value: 'line',
- },
- ellipsis: {
- type: Boolean,
- value: true,
- },
- duration: {
- type: Number,
- value: 0.3,
- },
- zIndex: {
- type: Number,
- value: 1,
- },
- swipeThreshold: {
- type: Number,
- value: 5,
- observer: function (value) {
- this.setData({
- scrollable: this.children.length > value || !this.data.ellipsis,
- });
- },
- },
- offsetTop: {
- type: Number,
- value: 0,
- },
- lazyRender: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- tabs: [],
- scrollLeft: 0,
- scrollable: false,
- currentIndex: 0,
- container: null,
- skipTransition: true,
- lineOffsetLeft: 0,
- },
- mounted: function () {
- var _this = this;
- utils_1.requestAnimationFrame(function () {
- _this.setData({
- container: function () {
- return _this.createSelectorQuery().select('.van-tabs');
- },
- });
- _this.resize(true);
- _this.scrollIntoView();
- });
- },
- methods: {
- updateTabs: function () {
- var _a = this,
- _b = _a.children,
- children = _b === void 0 ? [] : _b,
- data = _a.data;
- this.setData({
- tabs: children.map(function (child) {
- return child.data;
- }),
- scrollable:
- this.children.length > data.swipeThreshold || !data.ellipsis,
- });
- this.setCurrentIndexByName(data.active || this.getCurrentName());
- },
- trigger: function (eventName, child) {
- var currentIndex = this.data.currentIndex;
- var currentChild = child || this.children[currentIndex];
- if (!validator_1.isDef(currentChild)) {
- return;
- }
- this.$emit(eventName, {
- index: currentChild.index,
- name: currentChild.getComputedName(),
- title: currentChild.data.title,
- });
- },
- onTap: function (event) {
- var _this = this;
- var index = event.currentTarget.dataset.index;
- var child = this.children[index];
- if (child.data.disabled) {
- this.trigger('disabled', child);
- } else {
- this.setCurrentIndex(index);
- utils_1.nextTick(function () {
- _this.trigger('click');
- });
- }
- },
- // correct the index of active tab
- setCurrentIndexByName: function (name) {
- var _a = this.children,
- children = _a === void 0 ? [] : _a;
- var matched = children.filter(function (child) {
- return child.getComputedName() === name;
- });
- if (matched.length) {
- this.setCurrentIndex(matched[0].index);
- }
- },
- setCurrentIndex: function (currentIndex) {
- var _this = this;
- var _a = this,
- data = _a.data,
- _b = _a.children,
- children = _b === void 0 ? [] : _b;
- if (
- !validator_1.isDef(currentIndex) ||
- currentIndex >= children.length ||
- currentIndex < 0
- ) {
- return;
- }
- utils_1.groupSetData(this, function () {
- children.forEach(function (item, index) {
- var active = index === currentIndex;
- if (active !== item.data.active || !item.inited) {
- item.updateRender(active, _this);
- }
- });
- });
- if (currentIndex === data.currentIndex) {
- return;
- }
- var shouldEmitChange = data.currentIndex !== null;
- this.setData({ currentIndex: currentIndex });
- utils_1.nextTick(function () {
- _this.resize();
- _this.scrollIntoView();
- _this.trigger('input');
- if (shouldEmitChange) {
- _this.trigger('change');
- }
- });
- },
- getCurrentName: function () {
- var activeTab = this.children[this.data.currentIndex];
- if (activeTab) {
- return activeTab.getComputedName();
- }
- },
- resize: function (skipTransition) {
- var _this = this;
- if (skipTransition === void 0) {
- skipTransition = false;
- }
- if (this.data.type !== 'line') {
- return;
- }
- var _a = this.data,
- currentIndex = _a.currentIndex,
- ellipsis = _a.ellipsis;
- Promise.all([
- utils_1.getAllRect(this, '.van-tab'),
- utils_1.getRect(this, '.van-tabs__line'),
- ]).then(function (_a) {
- var _b = _a[0],
- rects = _b === void 0 ? [] : _b,
- lineRect = _a[1];
- var rect = rects[currentIndex];
- if (rect == null) {
- return;
- }
- var lineOffsetLeft = rects
- .slice(0, currentIndex)
- .reduce(function (prev, curr) {
- return prev + curr.width;
- }, 0);
- lineOffsetLeft +=
- (rect.width - lineRect.width) / 2 + (ellipsis ? 0 : 8);
- _this.setData({
- lineOffsetLeft: lineOffsetLeft,
- skipTransition: skipTransition,
- });
- });
- },
- // scroll active tab into view
- scrollIntoView: function () {
- var _this = this;
- var _a = this.data,
- currentIndex = _a.currentIndex,
- scrollable = _a.scrollable;
- if (!scrollable) {
- return;
- }
- Promise.all([
- utils_1.getAllRect(this, '.van-tab'),
- utils_1.getRect(this, '.van-tabs__nav'),
- ]).then(function (_a) {
- var tabRects = _a[0],
- navRect = _a[1];
- var tabRect = tabRects[currentIndex];
- var offsetLeft = tabRects
- .slice(0, currentIndex)
- .reduce(function (prev, curr) {
- return prev + curr.width;
- }, 0);
- _this.setData({
- scrollLeft: offsetLeft - (navRect.width - tabRect.width) / 2,
- });
- });
- },
- onTouchScroll: function (event) {
- this.$emit('scroll', event.detail);
- },
- onTouchStart: function (event) {
- if (!this.data.swipeable) return;
- this.touchStart(event);
- },
- onTouchMove: function (event) {
- if (!this.data.swipeable) return;
- this.touchMove(event);
- },
- // watch swipe touch end
- onTouchEnd: function () {
- if (!this.data.swipeable) return;
- var _a = this,
- direction = _a.direction,
- deltaX = _a.deltaX,
- offsetX = _a.offsetX;
- var minSwipeDistance = 50;
- if (direction === 'horizontal' && offsetX >= minSwipeDistance) {
- var index = this.getAvaiableTab(deltaX);
- if (index !== -1) {
- this.setCurrentIndex(index);
- }
- }
- },
- getAvaiableTab: function (direction) {
- var _a = this.data,
- tabs = _a.tabs,
- currentIndex = _a.currentIndex;
- var step = direction > 0 ? -1 : 1;
- for (
- var i = step;
- currentIndex + i < tabs.length && currentIndex + i >= 0;
- i += step
- ) {
- var index = currentIndex + i;
- if (
- index >= 0 &&
- index < tabs.length &&
- tabs[index] &&
- !tabs[index].disabled
- ) {
- return index;
- }
- }
- return -1;
- },
- },
-});
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var touch_1 = require("../mixins/touch");
+var utils_1 = require("../common/utils");
+var validator_1 = require("../common/validator");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ mixins: [touch_1.touch],
+ classes: [
+ 'nav-class',
+ 'tab-class',
+ 'tab-active-class',
+ 'line-class',
+ 'wrap-class',
+ ],
+ relation: (0, relation_1.useChildren)('tab', function () {
+ this.updateTabs();
+ }),
+ props: {
+ sticky: Boolean,
+ border: Boolean,
+ swipeable: Boolean,
+ titleActiveColor: String,
+ titleInactiveColor: String,
+ color: String,
+ animated: {
+ type: Boolean,
+ observer: function () {
+ var _this = this;
+ this.children.forEach(function (child, index) {
+ return child.updateRender(index === _this.data.currentIndex, _this);
+ });
+ },
+ },
+ lineWidth: {
+ type: null,
+ value: 40,
+ observer: 'resize',
+ },
+ lineHeight: {
+ type: null,
+ value: -1,
+ },
+ active: {
+ type: null,
+ value: 0,
+ observer: function (name) {
+ if (name !== this.getCurrentName()) {
+ this.setCurrentIndexByName(name);
+ }
+ },
+ },
+ type: {
+ type: String,
+ value: 'line',
+ },
+ ellipsis: {
+ type: Boolean,
+ value: true,
+ },
+ duration: {
+ type: Number,
+ value: 0.3,
+ },
+ zIndex: {
+ type: Number,
+ value: 1,
+ },
+ swipeThreshold: {
+ type: Number,
+ value: 5,
+ observer: function (value) {
+ this.setData({
+ scrollable: this.children.length > value || !this.data.ellipsis,
+ });
+ },
+ },
+ offsetTop: {
+ type: Number,
+ value: 0,
+ },
+ lazyRender: {
+ type: Boolean,
+ value: true,
+ },
+ useBeforeChange: {
+ type: Boolean,
+ value: false,
+ },
+ },
+ data: {
+ tabs: [],
+ scrollLeft: 0,
+ scrollable: false,
+ currentIndex: 0,
+ container: null,
+ skipTransition: true,
+ scrollWithAnimation: false,
+ lineOffsetLeft: 0,
+ inited: false,
+ },
+ mounted: function () {
+ var _this = this;
+ (0, utils_1.requestAnimationFrame)(function () {
+ _this.swiping = true;
+ _this.setData({
+ container: function () { return _this.createSelectorQuery().select('.van-tabs'); },
+ });
+ _this.resize();
+ _this.scrollIntoView();
+ });
+ },
+ methods: {
+ updateTabs: function () {
+ var _a = this, _b = _a.children, children = _b === void 0 ? [] : _b, data = _a.data;
+ this.setData({
+ tabs: children.map(function (child) { return child.data; }),
+ scrollable: this.children.length > data.swipeThreshold || !data.ellipsis,
+ });
+ this.setCurrentIndexByName(data.active || this.getCurrentName());
+ },
+ trigger: function (eventName, child) {
+ var currentIndex = this.data.currentIndex;
+ var data = this.getChildData(currentIndex, child);
+ if (!(0, validator_1.isDef)(data)) {
+ return;
+ }
+ this.$emit(eventName, data);
+ },
+ onTap: function (event) {
+ var _this = this;
+ var index = event.currentTarget.dataset.index;
+ var child = this.children[index];
+ if (child.data.disabled) {
+ this.trigger('disabled', child);
+ return;
+ }
+ this.onBeforeChange(index).then(function () {
+ _this.setCurrentIndex(index);
+ (0, utils_1.nextTick)(function () {
+ _this.trigger('click');
+ });
+ });
+ },
+ // correct the index of active tab
+ setCurrentIndexByName: function (name) {
+ var _a = this.children, children = _a === void 0 ? [] : _a;
+ var matched = children.filter(function (child) { return child.getComputedName() === name; });
+ if (matched.length) {
+ this.setCurrentIndex(matched[0].index);
+ }
+ },
+ setCurrentIndex: function (currentIndex) {
+ var _this = this;
+ var _a = this, data = _a.data, _b = _a.children, children = _b === void 0 ? [] : _b;
+ if (!(0, validator_1.isDef)(currentIndex) ||
+ currentIndex >= children.length ||
+ currentIndex < 0) {
+ return;
+ }
+ (0, utils_1.groupSetData)(this, function () {
+ children.forEach(function (item, index) {
+ var active = index === currentIndex;
+ if (active !== item.data.active || !item.inited) {
+ item.updateRender(active, _this);
+ }
+ });
+ });
+ if (currentIndex === data.currentIndex) {
+ if (!data.inited) {
+ this.resize();
+ }
+ return;
+ }
+ var shouldEmitChange = data.currentIndex !== null;
+ this.setData({ currentIndex: currentIndex });
+ (0, utils_1.requestAnimationFrame)(function () {
+ _this.resize();
+ _this.scrollIntoView();
+ });
+ (0, utils_1.nextTick)(function () {
+ _this.trigger('input');
+ if (shouldEmitChange) {
+ _this.trigger('change');
+ }
+ });
+ },
+ getCurrentName: function () {
+ var activeTab = this.children[this.data.currentIndex];
+ if (activeTab) {
+ return activeTab.getComputedName();
+ }
+ },
+ resize: function () {
+ var _this = this;
+ if (this.data.type !== 'line') {
+ return;
+ }
+ var _a = this.data, currentIndex = _a.currentIndex, ellipsis = _a.ellipsis, skipTransition = _a.skipTransition;
+ Promise.all([
+ (0, utils_1.getAllRect)(this, '.van-tab'),
+ (0, utils_1.getRect)(this, '.van-tabs__line'),
+ ]).then(function (_a) {
+ var _b = _a[0], rects = _b === void 0 ? [] : _b, lineRect = _a[1];
+ var rect = rects[currentIndex];
+ if (rect == null) {
+ return;
+ }
+ var lineOffsetLeft = rects
+ .slice(0, currentIndex)
+ .reduce(function (prev, curr) { return prev + curr.width; }, 0);
+ lineOffsetLeft +=
+ (rect.width - lineRect.width) / 2 + (ellipsis ? 0 : 8);
+ _this.setData({ lineOffsetLeft: lineOffsetLeft, inited: true });
+ _this.swiping = true;
+ if (skipTransition) {
+ // waiting transition end
+ setTimeout(function () {
+ _this.setData({ skipTransition: false });
+ }, _this.data.duration);
+ }
+ });
+ },
+ // scroll active tab into view
+ scrollIntoView: function () {
+ var _this = this;
+ var _a = this.data, currentIndex = _a.currentIndex, scrollable = _a.scrollable, scrollWithAnimation = _a.scrollWithAnimation;
+ if (!scrollable) {
+ return;
+ }
+ Promise.all([
+ (0, utils_1.getAllRect)(this, '.van-tab'),
+ (0, utils_1.getRect)(this, '.van-tabs__nav'),
+ ]).then(function (_a) {
+ var tabRects = _a[0], navRect = _a[1];
+ var tabRect = tabRects[currentIndex];
+ var offsetLeft = tabRects
+ .slice(0, currentIndex)
+ .reduce(function (prev, curr) { return prev + curr.width; }, 0);
+ _this.setData({
+ scrollLeft: offsetLeft - (navRect.width - tabRect.width) / 2,
+ });
+ if (!scrollWithAnimation) {
+ (0, utils_1.nextTick)(function () {
+ _this.setData({ scrollWithAnimation: true });
+ });
+ }
+ });
+ },
+ onTouchScroll: function (event) {
+ this.$emit('scroll', event.detail);
+ },
+ onTouchStart: function (event) {
+ if (!this.data.swipeable)
+ return;
+ this.swiping = true;
+ this.touchStart(event);
+ },
+ onTouchMove: function (event) {
+ if (!this.data.swipeable || !this.swiping)
+ return;
+ this.touchMove(event);
+ },
+ // watch swipe touch end
+ onTouchEnd: function () {
+ var _this = this;
+ if (!this.data.swipeable || !this.swiping)
+ return;
+ var _a = this, direction = _a.direction, deltaX = _a.deltaX, offsetX = _a.offsetX;
+ var minSwipeDistance = 50;
+ if (direction === 'horizontal' && offsetX >= minSwipeDistance) {
+ var index_1 = this.getAvaiableTab(deltaX);
+ if (index_1 !== -1) {
+ this.onBeforeChange(index_1).then(function () { return _this.setCurrentIndex(index_1); });
+ }
+ }
+ this.swiping = false;
+ },
+ getAvaiableTab: function (direction) {
+ var _a = this.data, tabs = _a.tabs, currentIndex = _a.currentIndex;
+ var step = direction > 0 ? -1 : 1;
+ for (var i = step; currentIndex + i < tabs.length && currentIndex + i >= 0; i += step) {
+ var index = currentIndex + i;
+ if (index >= 0 &&
+ index < tabs.length &&
+ tabs[index] &&
+ !tabs[index].disabled) {
+ return index;
+ }
+ }
+ return -1;
+ },
+ onBeforeChange: function (index) {
+ var _this = this;
+ var useBeforeChange = this.data.useBeforeChange;
+ if (!useBeforeChange) {
+ return Promise.resolve();
+ }
+ return new Promise(function (resolve, reject) {
+ _this.$emit('before-change', __assign(__assign({}, _this.getChildData(index)), { callback: function (status) { return (status ? resolve() : reject()); } }));
+ });
+ },
+ getChildData: function (index, child) {
+ var currentChild = child || this.children[index];
+ if (!(0, validator_1.isDef)(currentChild)) {
+ return;
+ }
+ return {
+ index: currentChild.index,
+ name: currentChild.getComputedName(),
+ title: currentChild.data.title,
+ };
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.json
index 7bf32aa..19c0bc3 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.json
@@ -1,7 +1,7 @@
-{
- "component": true,
- "usingComponents": {
- "van-info": "../info/index",
- "van-sticky": "../sticky/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-info": "../info/index",
+ "van-sticky": "../sticky/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxml
index 6b765b9..05bb1e1 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxml
@@ -1,63 +1,63 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.title }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxs
index b5c2760..4059c7f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxs
@@ -1,82 +1,83 @@
-/* eslint-disable */
-var utils = require('../wxs/utils.wxs');
-var style = require('../wxs/style.wxs');
-
-function tabClass(active, ellipsis) {
- var classes = ['tab-class'];
-
- if (active) {
- classes.push('tab-active-class');
- }
-
- if (ellipsis) {
- classes.push('van-ellipsis');
- }
-
- return classes.join(' ');
-}
-
-function tabStyle(data) {
- var titleColor = data.active
- ? data.titleActiveColor
- : data.titleInactiveColor;
-
- var ellipsis = data.scrollable && data.ellipsis;
-
- // card theme color
- if (data.type === 'card') {
- return style({
- 'border-color': data.color,
- 'background-color': !data.disabled && data.active ? data.color : null,
- color: titleColor || (!data.disabled && !data.active ? data.color : null),
- 'flex-basis': ellipsis ? 88 / data.swipeThreshold + '%' : null,
- });
- }
-
- return style({
- color: titleColor,
- 'flex-basis': ellipsis ? 88 / data.swipeThreshold + '%' : null,
- });
-}
-
-function navStyle(color, type) {
- return style({
- 'border-color': type === 'card' && color ? color : null,
- });
-}
-
-function trackStyle(data) {
- if (!data.animated) {
- return '';
- }
-
- return style({
- left: -100 * data.currentIndex + '%',
- 'transition-duration': data.duration + 's',
- '-webkit-transition-duration': data.duration + 's',
- });
-}
-
-function lineStyle(data) {
- return style({
- width: utils.addUnit(data.lineWidth),
- transform: 'translateX(' + data.lineOffsetLeft + 'px)',
- '-webkit-transform': 'translateX(' + data.lineOffsetLeft + 'px)',
- 'background-color': data.color,
- height: data.lineHeight !== -1 ? utils.addUnit(data.lineHeight) : null,
- 'border-radius':
- data.lineHeight !== -1 ? utils.addUnit(data.lineHeight) : null,
- 'transition-duration': !data.skipTransition ? data.duration + 's' : null,
- '-webkit-transition-duration': !data.skipTransition
- ? data.duration + 's'
- : null,
- });
-}
-
-module.exports = {
- tabClass: tabClass,
- tabStyle: tabStyle,
- trackStyle: trackStyle,
- lineStyle: lineStyle,
- navStyle: navStyle,
-};
+/* eslint-disable */
+var utils = require('../wxs/utils.wxs');
+var style = require('../wxs/style.wxs');
+
+function tabClass(active, ellipsis) {
+ var classes = ['tab-class'];
+
+ if (active) {
+ classes.push('tab-active-class');
+ }
+
+ if (ellipsis) {
+ classes.push('van-ellipsis');
+ }
+
+ return classes.join(' ');
+}
+
+function tabStyle(data) {
+ var titleColor = data.active
+ ? data.titleActiveColor
+ : data.titleInactiveColor;
+
+ var ellipsis = data.scrollable && data.ellipsis;
+
+ // card theme color
+ if (data.type === 'card') {
+ return style({
+ 'border-color': data.color,
+ 'background-color': !data.disabled && data.active ? data.color : null,
+ color: titleColor || (!data.disabled && !data.active ? data.color : null),
+ 'flex-basis': ellipsis ? 88 / data.swipeThreshold + '%' : null,
+ });
+ }
+
+ return style({
+ color: titleColor,
+ 'flex-basis': ellipsis ? 88 / data.swipeThreshold + '%' : null,
+ });
+}
+
+function navStyle(color, type) {
+ return style({
+ 'border-color': type === 'card' && color ? color : null,
+ });
+}
+
+function trackStyle(data) {
+ if (!data.animated) {
+ return '';
+ }
+
+ return style({
+ left: -100 * data.currentIndex + '%',
+ 'transition-duration': data.duration + 's',
+ '-webkit-transition-duration': data.duration + 's',
+ });
+}
+
+function lineStyle(data) {
+ return style({
+ width: utils.addUnit(data.lineWidth),
+ opacity: data.inited ? 1 : 0,
+ transform: 'translateX(' + data.lineOffsetLeft + 'px)',
+ '-webkit-transform': 'translateX(' + data.lineOffsetLeft + 'px)',
+ 'background-color': data.color,
+ height: data.lineHeight !== -1 ? utils.addUnit(data.lineHeight) : null,
+ 'border-radius':
+ data.lineHeight !== -1 ? utils.addUnit(data.lineHeight) : null,
+ 'transition-duration': !data.skipTransition ? data.duration + 's' : null,
+ '-webkit-transition-duration': !data.skipTransition
+ ? data.duration + 's'
+ : null,
+ });
+}
+
+module.exports = {
+ tabClass: tabClass,
+ tabStyle: tabStyle,
+ trackStyle: trackStyle,
+ lineStyle: lineStyle,
+ navStyle: navStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxss
index d0449e6..09a93af 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-tabs{position:relative;-webkit-tap-highlight-color:transparent}.van-tabs__wrap{display:-webkit-flex;display:flex;overflow:hidden}.van-tabs__wrap--scrollable .van-tab{-webkit-flex:0 0 22%;flex:0 0 22%}.van-tabs__wrap--scrollable .van-tab--complete{-webkit-flex:1 0 auto!important;flex:1 0 auto!important;padding:0 12px}.van-tabs__wrap--scrollable .van-tabs__nav--complete{padding-right:8px;padding-left:8px}.van-tabs__scroll{background-color:#fff;background-color:var(--tabs-nav-background-color,#fff)}.van-tabs__scroll--line{box-sizing:initial;height:calc(100% + 15px)}.van-tabs__scroll--card{margin:0 16px;margin:0 var(--padding-md,16px)}.van-tabs__scroll::-webkit-scrollbar{display:none}.van-tabs__nav{position:relative;display:-webkit-flex;display:flex;-webkit-user-select:none;user-select:none}.van-tabs__nav--card{box-sizing:border-box;height:30px;height:var(--tabs-card-height,30px);border:1px solid #ee0a24;border:var(--border-width-base,1px) solid var(--tabs-default-color,#ee0a24);border-radius:2px;border-radius:var(--border-radius-sm,2px)}.van-tabs__nav--card .van-tab{color:#ee0a24;color:var(--tabs-default-color,#ee0a24);line-height:28px;line-height:calc(var(--tabs-card-height, 30px) - var(--border-width-base, 1px)*2);border-right:1px solid #ee0a24;border-right:var(--border-width-base,1px) solid var(--tabs-default-color,#ee0a24)}.van-tabs__nav--card .van-tab:last-child{border-right:none}.van-tabs__nav--card .van-tab.van-tab--active{color:#fff;color:var(--white,#fff);background-color:#ee0a24;background-color:var(--tabs-default-color,#ee0a24)}.van-tabs__nav--card .van-tab--disabled{color:#c8c9cc;color:var(--tab-disabled-text-color,#c8c9cc)}.van-tabs__line{position:absolute;bottom:0;left:0;z-index:1;height:3px;height:var(--tabs-bottom-bar-height,3px);border-radius:3px;border-radius:var(--tabs-bottom-bar-height,3px);background-color:#ee0a24;background-color:var(--tabs-bottom-bar-color,#ee0a24)}.van-tabs__track{position:relative;width:100%;height:100%}.van-tabs__track--animated{display:-webkit-flex;display:flex;transition-property:left}.van-tabs__content{overflow:hidden}.van-tabs--line .van-tabs__wrap{height:44px;height:var(--tabs-line-height,44px)}.van-tabs--card .van-tabs__wrap{height:30px;height:var(--tabs-card-height,30px)}.van-tab{position:relative;-webkit-flex:1;flex:1;box-sizing:border-box;min-width:0;padding:0 5px;text-align:center;cursor:pointer;color:#646566;color:var(--tab-text-color,#646566);font-size:14px;font-size:var(--tab-font-size,14px);line-height:44px;line-height:var(--tabs-line-height,44px)}.van-tab--active{font-weight:500;font-weight:var(--font-weight-bold,500);color:#323233;color:var(--tab-active-text-color,#323233)}.van-tab--disabled{color:#c8c9cc;color:var(--tab-disabled-text-color,#c8c9cc)}.van-tab__title__info{position:relative!important;top:-1px!important;display:inline-block;-webkit-transform:translateX(0)!important;transform:translateX(0)!important}
\ No newline at end of file
+@import '../common/index.wxss';.van-tabs{-webkit-tap-highlight-color:transparent;position:relative}.van-tabs__wrap{display:flex;overflow:hidden}.van-tabs__wrap--scrollable .van-tab{flex:0 0 22%}.van-tabs__wrap--scrollable .van-tab--complete{flex:1 0 auto!important;padding:0 12px}.van-tabs__wrap--scrollable .van-tabs__nav--complete{padding-left:8px;padding-right:8px}.van-tabs__scroll{background-color:var(--tabs-nav-background-color,#fff);overflow:auto}.van-tabs__scroll--line{box-sizing:initial;height:calc(100% + 15px)}.van-tabs__scroll--card{border:1px solid var(--tabs-default-color,#ee0a24);border-radius:2px;box-sizing:border-box;margin:0 var(--padding-md,16px);width:calc(100% - var(--padding-md, 16px)*2)}.van-tabs__scroll::-webkit-scrollbar{display:none}.van-tabs__nav{display:flex;position:relative;-webkit-user-select:none;user-select:none}.van-tabs__nav--card{box-sizing:border-box;height:var(--tabs-card-height,30px)}.van-tabs__nav--card .van-tab{border-right:1px solid var(--tabs-default-color,#ee0a24);color:var(--tabs-default-color,#ee0a24);line-height:calc(var(--tabs-card-height, 30px) - 2px)}.van-tabs__nav--card .van-tab:last-child{border-right:none}.van-tabs__nav--card .van-tab.van-tab--active{background-color:var(--tabs-default-color,#ee0a24);color:#fff}.van-tabs__nav--card .van-tab--disabled{color:var(--tab-disabled-text-color,#c8c9cc)}.van-tabs__line{background-color:var(--tabs-bottom-bar-color,#ee0a24);border-radius:var(--tabs-bottom-bar-height,3px);bottom:0;height:var(--tabs-bottom-bar-height,3px);left:0;opacity:0;position:absolute;z-index:1}.van-tabs__track{height:100%;position:relative;width:100%}.van-tabs__track--animated{display:flex;transition-property:left}.van-tabs__content{overflow:hidden}.van-tabs--line{height:var(--tabs-line-height,44px)}.van-tabs--card{height:var(--tabs-card-height,30px)}.van-tab{box-sizing:border-box;color:var(--tab-text-color,#646566);cursor:pointer;flex:1;font-size:var(--tab-font-size,14px);line-height:var(--tabs-line-height,44px);min-width:0;padding:0 5px;position:relative;text-align:center}.van-tab--active{color:var(--tab-active-text-color,#323233);font-weight:var(--font-weight-bold,500)}.van-tab--disabled{color:var(--tab-disabled-text-color,#c8c9cc)}.van-tab__title__info{position:relative!important;top:-1px!important;transform:translateX(0)!important}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.js
index 0aa166b..ec4069a 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.js
@@ -1,23 +1,23 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-component_1.VantComponent({
- props: {
- size: String,
- mark: Boolean,
- color: String,
- plain: Boolean,
- round: Boolean,
- textColor: String,
- type: {
- type: String,
- value: 'default',
- },
- closeable: Boolean,
- },
- methods: {
- onClose: function () {
- this.$emit('close');
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ size: String,
+ mark: Boolean,
+ color: String,
+ plain: Boolean,
+ round: Boolean,
+ textColor: String,
+ type: {
+ type: String,
+ value: 'default',
+ },
+ closeable: Boolean,
+ },
+ methods: {
+ onClose: function () {
+ this.$emit('close');
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.json
index 8abfe20..0a336c0 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.json
@@ -1,6 +1,6 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxml
index 1e70950..59352dd 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxml
@@ -1,15 +1,15 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxs
index 40d82de..12d1668 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxs
@@ -1,13 +1,13 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-
-function rootStyle(data) {
- return style({
- 'background-color': data.plain ? '' : data.color,
- color: data.textColor || data.plain ? data.textColor || data.color : '',
- });
-}
-
-module.exports = {
- rootStyle: rootStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+
+function rootStyle(data) {
+ return style({
+ 'background-color': data.plain ? '' : data.color,
+ color: data.textColor || data.plain ? data.textColor || data.color : '',
+ });
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxss
index 46df0da..0f0cbae 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-tag{position:relative;display:-webkit-inline-flex;display:inline-flex;-webkit-align-items:center;align-items:center;padding:0 4px;padding:var(--tag-padding,0 4px);color:#fff;color:var(--tag-text-color,#fff);font-size:12px;font-size:var(--tag-font-size,12px);line-height:16px;line-height:var(--tag-line-height,16px);border-radius:2px;border-radius:var(--tag-border-radius,2px)}.van-tag--default{background-color:#969799;background-color:var(--tag-default-color,#969799)}.van-tag--default.van-tag--plain{color:#969799;color:var(--tag-default-color,#969799)}.van-tag--danger{background-color:#ee0a24;background-color:var(--tag-danger-color,#ee0a24)}.van-tag--danger.van-tag--plain{color:#ee0a24;color:var(--tag-danger-color,#ee0a24)}.van-tag--primary{background-color:#1989fa;background-color:var(--tag-primary-color,#1989fa)}.van-tag--primary.van-tag--plain{color:#1989fa;color:var(--tag-primary-color,#1989fa)}.van-tag--success{background-color:#07c160;background-color:var(--tag-success-color,#07c160)}.van-tag--success.van-tag--plain{color:#07c160;color:var(--tag-success-color,#07c160)}.van-tag--warning{background-color:#ff976a;background-color:var(--tag-warning-color,#ff976a)}.van-tag--warning.van-tag--plain{color:#ff976a;color:var(--tag-warning-color,#ff976a)}.van-tag--plain{background-color:#fff;background-color:var(--tag-plain-background-color,#fff)}.van-tag--plain:before{position:absolute;top:0;right:0;bottom:0;left:0;border:1px solid;border-radius:inherit;content:"";pointer-events:none}.van-tag--medium{padding:2px 6px;padding:var(--tag-medium-padding,2px 6px)}.van-tag--large{padding:4px 8px;padding:var(--tag-large-padding,4px 8px);font-size:14px;font-size:var(--tag-large-font-size,14px);border-radius:4px;border-radius:var(--tag-large-border-radius,4px)}.van-tag--mark{border-radius:0 999px 999px 0;border-radius:0 var(--tag-round-border-radius,999px) var(--tag-round-border-radius,999px) 0}.van-tag--mark:after{display:block;width:2px;content:""}.van-tag--round{border-radius:999px;border-radius:var(--tag-round-border-radius,999px)}.van-tag__close{min-width:1em;margin-left:2px}
\ No newline at end of file
+@import '../common/index.wxss';.van-tag{align-items:center;border-radius:var(--tag-border-radius,2px);color:var(--tag-text-color,#fff);display:inline-flex;font-size:var(--tag-font-size,12px);line-height:var(--tag-line-height,16px);padding:var(--tag-padding,0 4px);position:relative}.van-tag--default{background-color:var(--tag-default-color,#969799)}.van-tag--default.van-tag--plain{color:var(--tag-default-color,#969799)}.van-tag--danger{background-color:var(--tag-danger-color,#ee0a24)}.van-tag--danger.van-tag--plain{color:var(--tag-danger-color,#ee0a24)}.van-tag--primary{background-color:var(--tag-primary-color,#1989fa)}.van-tag--primary.van-tag--plain{color:var(--tag-primary-color,#1989fa)}.van-tag--success{background-color:var(--tag-success-color,#07c160)}.van-tag--success.van-tag--plain{color:var(--tag-success-color,#07c160)}.van-tag--warning{background-color:var(--tag-warning-color,#ff976a)}.van-tag--warning.van-tag--plain{color:var(--tag-warning-color,#ff976a)}.van-tag--plain{background-color:var(--tag-plain-background-color,#fff)}.van-tag--plain:before{border:1px solid;border-radius:inherit;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.van-tag--medium{padding:var(--tag-medium-padding,2px 6px)}.van-tag--large{border-radius:var(--tag-large-border-radius,4px);font-size:var(--tag-large-font-size,14px);padding:var(--tag-large-padding,4px 8px)}.van-tag--mark{border-radius:0 var(--tag-round-border-radius,var(--tag-round-border-radius,999px)) var(--tag-round-border-radius,var(--tag-round-border-radius,999px)) 0}.van-tag--mark:after{content:"";display:block;width:2px}.van-tag--round{border-radius:var(--tag-round-border-radius,999px)}.van-tag__close{margin-left:2px;min-width:1em}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.js
index 263f35b..0c01366 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.js
@@ -1,31 +1,31 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-component_1.VantComponent({
- props: {
- show: Boolean,
- mask: Boolean,
- message: String,
- forbidClick: Boolean,
- zIndex: {
- type: Number,
- value: 1000,
- },
- type: {
- type: String,
- value: 'text',
- },
- loadingType: {
- type: String,
- value: 'circular',
- },
- position: {
- type: String,
- value: 'middle',
- },
- },
- methods: {
- // for prevent touchmove
- noop: function () {},
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ show: Boolean,
+ mask: Boolean,
+ message: String,
+ forbidClick: Boolean,
+ zIndex: {
+ type: Number,
+ value: 1000,
+ },
+ type: {
+ type: String,
+ value: 'text',
+ },
+ loadingType: {
+ type: String,
+ value: 'circular',
+ },
+ position: {
+ type: String,
+ value: 'middle',
+ },
+ },
+ methods: {
+ // for prevent touchmove
+ noop: function () { },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.json
index 5971bb1..9b1b78c 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.json
@@ -1,9 +1,9 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index",
- "van-loading": "../loading/index",
- "van-overlay": "../overlay/index",
- "van-transition": "../transition/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index",
+ "van-loading": "../loading/index",
+ "van-overlay": "../overlay/index",
+ "van-transition": "../transition/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.wxml
index 6a53bda..69f143e 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.wxml
@@ -1,33 +1,36 @@
-
-
-
-
- {{ message }}
-
-
-
-
-
- {{ message }}
-
-
-
-
-
+
+
+
+
+ {{ message }}
+
+
+
+
+
+
+
+
+ {{ message }}
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.wxss
index 85dc7a8..3b7a34e 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-toast{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;box-sizing:initial;color:#fff;color:var(--toast-text-color,#fff);font-size:14px;font-size:var(--toast-font-size,14px);line-height:20px;line-height:var(--toast-line-height,20px);white-space:pre-wrap;word-wrap:break-word;background-color:rgba(0,0,0,.7);background-color:var(--toast-background-color,rgba(0,0,0,.7));border-radius:8px;border-radius:var(--toast-border-radius,8px)}.van-toast__container{position:fixed;top:50%;left:50%;width:-webkit-fit-content;width:fit-content;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);max-width:70%;max-width:var(--toast-max-width,70%)}.van-toast--text{min-width:96px;min-width:var(--toast-text-min-width,96px);padding:8px 12px;padding:var(--toast-text-padding,8px 12px)}.van-toast--icon{width:88px;width:var(--toast-default-width,88px);min-height:88px;min-height:var(--toast-default-min-height,88px);padding:16px;padding:var(--toast-default-padding,16px)}.van-toast--icon .van-toast__icon{font-size:36px;font-size:var(--toast-icon-size,36px)}.van-toast--icon .van-toast__text{padding-top:8px}.van-toast__loading{margin:10px 0}.van-toast--top{-webkit-transform:translateY(-30vh);transform:translateY(-30vh)}.van-toast--bottom{-webkit-transform:translateY(30vh);transform:translateY(30vh)}
\ No newline at end of file
+@import '../common/index.wxss';.van-toast{word-wrap:break-word;align-items:center;background-color:var(--toast-background-color,rgba(0,0,0,.7));border-radius:var(--toast-border-radius,8px);box-sizing:initial;color:var(--toast-text-color,#fff);display:flex;flex-direction:column;font-size:var(--toast-font-size,14px);justify-content:center;line-height:var(--toast-line-height,20px);white-space:pre-wrap}.van-toast__container{left:50%;max-width:var(--toast-max-width,70%);position:fixed;top:50%;transform:translate(-50%,-50%);width:-webkit-fit-content;width:fit-content}.van-toast--text{min-width:var(--toast-text-min-width,96px);padding:var(--toast-text-padding,8px 12px)}.van-toast--icon{min-height:var(--toast-default-min-height,88px);padding:var(--toast-default-padding,16px);width:var(--toast-default-width,88px)}.van-toast--icon .van-toast__icon{font-size:var(--toast-icon-size,36px)}.van-toast--icon .van-toast__text{padding-top:8px}.van-toast__loading{margin:10px 0}.van-toast--top{transform:translateY(-30vh)}.van-toast--bottom{transform:translateY(30vh)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/toast/toast.js b/src/openeuler/miniprogram_npm/@vant/weapp/toast/toast.js
index 076fff8..f51a89a 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/toast/toast.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/toast/toast.js
@@ -1,92 +1,83 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-Object.defineProperty(exports, '__esModule', { value: true });
-var validator_1 = require('../common/validator');
-var defaultOptions = {
- type: 'text',
- mask: false,
- message: '',
- show: true,
- zIndex: 1000,
- duration: 2000,
- position: 'middle',
- forbidClick: false,
- loadingType: 'circular',
- selector: '#van-toast',
-};
-var queue = [];
-var currentOptions = __assign({}, defaultOptions);
-function parseOptions(message) {
- return validator_1.isObj(message) ? message : { message: message };
-}
-function getContext() {
- var pages = getCurrentPages();
- return pages[pages.length - 1];
-}
-function Toast(toastOptions) {
- var options = __assign(
- __assign({}, currentOptions),
- parseOptions(toastOptions)
- );
- var context = options.context || getContext();
- var toast = context.selectComponent(options.selector);
- if (!toast) {
- console.warn('未找到 van-toast 节点,请确认 selector 及 context 是否正确');
- return;
- }
- delete options.context;
- delete options.selector;
- toast.clear = function () {
- toast.setData({ show: false });
- if (options.onClose) {
- options.onClose();
- }
- };
- queue.push(toast);
- toast.setData(options);
- clearTimeout(toast.timer);
- if (options.duration != null && options.duration > 0) {
- toast.timer = setTimeout(function () {
- toast.clear();
- queue = queue.filter(function (item) {
- return item !== toast;
- });
- }, options.duration);
- }
- return toast;
-}
-var createMethod = function (type) {
- return function (options) {
- return Toast(__assign({ type: type }, parseOptions(options)));
- };
-};
-Toast.loading = createMethod('loading');
-Toast.success = createMethod('success');
-Toast.fail = createMethod('fail');
-Toast.clear = function () {
- queue.forEach(function (toast) {
- toast.clear();
- });
- queue = [];
-};
-Toast.setDefaultOptions = function (options) {
- Object.assign(currentOptions, options);
-};
-Toast.resetDefaultOptions = function () {
- currentOptions = __assign({}, defaultOptions);
-};
-exports.default = Toast;
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var validator_1 = require("../common/validator");
+var defaultOptions = {
+ type: 'text',
+ mask: false,
+ message: '',
+ show: true,
+ zIndex: 1000,
+ duration: 2000,
+ position: 'middle',
+ forbidClick: false,
+ loadingType: 'circular',
+ selector: '#van-toast',
+};
+var queue = [];
+var currentOptions = __assign({}, defaultOptions);
+function parseOptions(message) {
+ return (0, validator_1.isObj)(message) ? message : { message: message };
+}
+function getContext() {
+ var pages = getCurrentPages();
+ return pages[pages.length - 1];
+}
+function Toast(toastOptions) {
+ var options = __assign(__assign({}, currentOptions), parseOptions(toastOptions));
+ var context = (typeof options.context === 'function'
+ ? options.context()
+ : options.context) || getContext();
+ var toast = context.selectComponent(options.selector);
+ if (!toast) {
+ console.warn('未找到 van-toast 节点,请确认 selector 及 context 是否正确');
+ return;
+ }
+ delete options.context;
+ delete options.selector;
+ toast.clear = function () {
+ toast.setData({ show: false });
+ if (options.onClose) {
+ options.onClose();
+ }
+ };
+ queue.push(toast);
+ toast.setData(options);
+ clearTimeout(toast.timer);
+ if (options.duration != null && options.duration > 0) {
+ toast.timer = setTimeout(function () {
+ toast.clear();
+ queue = queue.filter(function (item) { return item !== toast; });
+ }, options.duration);
+ }
+ return toast;
+}
+var createMethod = function (type) { return function (options) {
+ return Toast(__assign({ type: type }, parseOptions(options)));
+}; };
+Toast.loading = createMethod('loading');
+Toast.success = createMethod('success');
+Toast.fail = createMethod('fail');
+Toast.clear = function () {
+ queue.forEach(function (toast) {
+ toast.clear();
+ });
+ queue = [];
+};
+Toast.setDefaultOptions = function (options) {
+ Object.assign(currentOptions, options);
+};
+Toast.resetDefaultOptions = function () {
+ currentOptions = __assign({}, defaultOptions);
+};
+exports.default = Toast;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.js
index 547fb06..55fc8b8 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.js
@@ -1,15 +1,15 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var transition_1 = require('../mixins/transition');
-component_1.VantComponent({
- classes: [
- 'enter-class',
- 'enter-active-class',
- 'enter-to-class',
- 'leave-class',
- 'leave-active-class',
- 'leave-to-class',
- ],
- mixins: [transition_1.transition(true)],
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var transition_1 = require("../mixins/transition");
+(0, component_1.VantComponent)({
+ classes: [
+ 'enter-class',
+ 'enter-active-class',
+ 'enter-to-class',
+ 'leave-class',
+ 'leave-active-class',
+ 'leave-to-class',
+ ],
+ mixins: [(0, transition_1.transition)(true)],
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.json
index efdc3c8..467ce29 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.json
@@ -1,3 +1,3 @@
-{
- "component": true
-}
+{
+ "component": true
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxml
index 9b2f912..2743785 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxml
@@ -1,10 +1,10 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxs
index f2e16d4..e0babf6 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxs
@@ -1,17 +1,17 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-
-function rootStyle(data) {
- return style([
- {
- '-webkit-transition-duration': data.currentDuration + 'ms',
- 'transition-duration': data.currentDuration + 'ms',
- },
- data.display ? null : 'display: none',
- data.customStyle,
- ]);
-}
-
-module.exports = {
- rootStyle: rootStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+
+function rootStyle(data) {
+ return style([
+ {
+ '-webkit-transition-duration': data.currentDuration + 'ms',
+ 'transition-duration': data.currentDuration + 'ms',
+ },
+ data.display ? null : 'display: none',
+ data.customStyle,
+ ]);
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxss
index d459f5c..3a3d37f 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-transition{transition-timing-function:ease}.van-fade-enter-active,.van-fade-leave-active{transition-property:opacity}.van-fade-enter,.van-fade-leave-to{opacity:0}.van-fade-down-enter-active,.van-fade-down-leave-active,.van-fade-left-enter-active,.van-fade-left-leave-active,.van-fade-right-enter-active,.van-fade-right-leave-active,.van-fade-up-enter-active,.van-fade-up-leave-active{transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.van-fade-up-enter,.van-fade-up-leave-to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);opacity:0}.van-fade-down-enter,.van-fade-down-leave-to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);opacity:0}.van-fade-left-enter,.van-fade-left-leave-to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);opacity:0}.van-fade-right-enter,.van-fade-right-leave-to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);opacity:0}.van-slide-down-enter-active,.van-slide-down-leave-active,.van-slide-left-enter-active,.van-slide-left-leave-active,.van-slide-right-enter-active,.van-slide-right-leave-active,.van-slide-up-enter-active,.van-slide-up-leave-active{transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}.van-slide-up-enter,.van-slide-up-leave-to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.van-slide-down-enter,.van-slide-down-leave-to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}.van-slide-left-enter,.van-slide-left-leave-to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.van-slide-right-enter,.van-slide-right-leave-to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}
\ No newline at end of file
+@import '../common/index.wxss';.van-transition{transition-timing-function:ease}.van-fade-enter-active,.van-fade-leave-active{transition-property:opacity}.van-fade-enter,.van-fade-leave-to{opacity:0}.van-fade-down-enter-active,.van-fade-down-leave-active,.van-fade-left-enter-active,.van-fade-left-leave-active,.van-fade-right-enter-active,.van-fade-right-leave-active,.van-fade-up-enter-active,.van-fade-up-leave-active{transition-property:opacity,transform}.van-fade-up-enter,.van-fade-up-leave-to{opacity:0;transform:translate3d(0,100%,0)}.van-fade-down-enter,.van-fade-down-leave-to{opacity:0;transform:translate3d(0,-100%,0)}.van-fade-left-enter,.van-fade-left-leave-to{opacity:0;transform:translate3d(-100%,0,0)}.van-fade-right-enter,.van-fade-right-leave-to{opacity:0;transform:translate3d(100%,0,0)}.van-slide-down-enter-active,.van-slide-down-leave-active,.van-slide-left-enter-active,.van-slide-left-leave-active,.van-slide-right-enter-active,.van-slide-right-leave-active,.van-slide-up-enter-active,.van-slide-up-leave-active{transition-property:transform}.van-slide-up-enter,.van-slide-up-leave-to{transform:translate3d(0,100%,0)}.van-slide-down-enter,.van-slide-down-leave-to{transform:translate3d(0,-100%,0)}.van-slide-left-enter,.van-slide-left-leave-to{transform:translate3d(-100%,0,0)}.van-slide-right-enter,.van-slide-right-leave-to{transform:translate3d(100%,0,0)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.js
index 19e8013..b6f69b2 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.js
@@ -1,73 +1,70 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-component_1.VantComponent({
- classes: [
- 'main-item-class',
- 'content-item-class',
- 'main-active-class',
- 'content-active-class',
- 'main-disabled-class',
- 'content-disabled-class',
- ],
- props: {
- items: {
- type: Array,
- observer: 'updateSubItems',
- },
- activeId: null,
- mainActiveIndex: {
- type: Number,
- value: 0,
- observer: 'updateSubItems',
- },
- height: {
- type: null,
- value: 300,
- },
- max: {
- type: Number,
- value: Infinity,
- },
- selectedIcon: {
- type: String,
- value: 'success',
- },
- },
- data: {
- subItems: [],
- },
- methods: {
- // 当一个子项被选择时
- onSelectItem: function (event) {
- var item = event.currentTarget.dataset.item;
- var isArray = Array.isArray(this.data.activeId);
- // 判断有没有超出右侧选择的最大数
- var isOverMax = isArray && this.data.activeId.length >= this.data.max;
- // 判断该项有没有被选中, 如果有被选中,则忽视是否超出的条件
- var isSelected = isArray
- ? this.data.activeId.indexOf(item.id) > -1
- : this.data.activeId === item.id;
- if (!item.disabled && (!isOverMax || isSelected)) {
- this.$emit('click-item', item);
- }
- },
- // 当一个导航被点击时
- onClickNav: function (event) {
- var index = event.detail;
- var item = this.data.items[index];
- if (!item.disabled) {
- this.$emit('click-nav', { index: index });
- }
- },
- // 更新子项列表
- updateSubItems: function () {
- var _a = this.data,
- items = _a.items,
- mainActiveIndex = _a.mainActiveIndex;
- var _b = (items[mainActiveIndex] || {}).children,
- children = _b === void 0 ? [] : _b;
- this.setData({ subItems: children });
- },
- },
-});
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ classes: [
+ 'main-item-class',
+ 'content-item-class',
+ 'main-active-class',
+ 'content-active-class',
+ 'main-disabled-class',
+ 'content-disabled-class',
+ ],
+ props: {
+ items: {
+ type: Array,
+ observer: 'updateSubItems',
+ },
+ activeId: null,
+ mainActiveIndex: {
+ type: Number,
+ value: 0,
+ observer: 'updateSubItems',
+ },
+ height: {
+ type: null,
+ value: 300,
+ },
+ max: {
+ type: Number,
+ value: Infinity,
+ },
+ selectedIcon: {
+ type: String,
+ value: 'success',
+ },
+ },
+ data: {
+ subItems: [],
+ },
+ methods: {
+ // 当一个子项被选择时
+ onSelectItem: function (event) {
+ var item = event.currentTarget.dataset.item;
+ var isArray = Array.isArray(this.data.activeId);
+ // 判断有没有超出右侧选择的最大数
+ var isOverMax = isArray && this.data.activeId.length >= this.data.max;
+ // 判断该项有没有被选中, 如果有被选中,则忽视是否超出的条件
+ var isSelected = isArray
+ ? this.data.activeId.indexOf(item.id) > -1
+ : this.data.activeId === item.id;
+ if (!item.disabled && (!isOverMax || isSelected)) {
+ this.$emit('click-item', item);
+ }
+ },
+ // 当一个导航被点击时
+ onClickNav: function (event) {
+ var index = event.detail;
+ var item = this.data.items[index];
+ if (!item.disabled) {
+ this.$emit('click-nav', { index: index });
+ }
+ },
+ // 更新子项列表
+ updateSubItems: function () {
+ var _a = this.data, items = _a.items, mainActiveIndex = _a.mainActiveIndex;
+ var _b = (items[mainActiveIndex] || {}).children, children = _b === void 0 ? [] : _b;
+ this.setData({ subItems: children });
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.json
index 467cd25..42991a2 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.json
@@ -1,8 +1,8 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index",
- "van-sidebar": "../sidebar/index",
- "van-sidebar-item": "../sidebar-item/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index",
+ "van-sidebar": "../sidebar/index",
+ "van-sidebar-item": "../sidebar-item/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxml
index 4ee2fae..2663e52 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxml
@@ -1,41 +1,41 @@
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.text }}
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.text }}
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxs
index 45add81..b1cbb39 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxs
@@ -1,12 +1,12 @@
-/* eslint-disable */
-var array = require('../wxs/array.wxs');
-
-function isActive (activeList, itemId) {
- if (array.isArray(activeList)) {
- return activeList.indexOf(itemId) > -1;
- }
-
- return activeList === itemId;
-}
-
-module.exports.isActive = isActive;
+/* eslint-disable */
+var array = require('../wxs/array.wxs');
+
+function isActive (activeList, itemId) {
+ if (array.isArray(activeList)) {
+ return activeList.indexOf(itemId) > -1;
+ }
+
+ return activeList === itemId;
+}
+
+module.exports.isActive = isActive;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxss
index 3f7cca6..5bef0ac 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-tree-select{position:relative;display:-webkit-flex;display:flex;-webkit-user-select:none;user-select:none;font-size:14px;font-size:var(--tree-select-font-size,14px)}.van-tree-select__nav{-webkit-flex:1;flex:1;background-color:#f7f8fa;background-color:var(--tree-select-nav-background-color,#f7f8fa);--sidebar-padding:12px 8px 12px 12px}.van-tree-select__nav__inner{width:100%!important;height:100%}.van-tree-select__content{-webkit-flex:2;flex:2;background-color:#fff;background-color:var(--tree-select-content-background-color,#fff)}.van-tree-select__item{position:relative;font-weight:700;padding:0 32px 0 16px;padding:0 32px 0 var(--padding-md,16px);line-height:44px;line-height:var(--tree-select-item-height,44px)}.van-tree-select__item--active{color:#ee0a24;color:var(--tree-select-item-active-color,#ee0a24)}.van-tree-select__item--disabled{color:#c8c9cc;color:var(--tree-select-item-disabled-color,#c8c9cc)}.van-tree-select__selected{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;right:var(--padding-md,16px)}
\ No newline at end of file
+@import '../common/index.wxss';.van-tree-select{display:flex;font-size:var(--tree-select-font-size,14px);position:relative;-webkit-user-select:none;user-select:none}.van-tree-select__nav{--sidebar-padding:12px 8px 12px 12px;background-color:var(--tree-select-nav-background-color,#f7f8fa);flex:1}.van-tree-select__nav__inner{height:100%;width:100%!important}.van-tree-select__content{background-color:var(--tree-select-content-background-color,#fff);flex:2}.van-tree-select__item{font-weight:700;line-height:var(--tree-select-item-height,44px);padding:0 32px 0 var(--padding-md,16px);position:relative}.van-tree-select__item--active{color:var(--tree-select-item-active-color,#ee0a24)}.van-tree-select__item--disabled{color:var(--tree-select-item-disabled-color,#c8c9cc)}.van-tree-select__selected{position:absolute;right:var(--padding-md,16px);top:50%;transform:translateY(-50%)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.js
index cc3c107..5492d40 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.js
@@ -1,246 +1,183 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var utils_1 = require('./utils');
-var shared_1 = require('./shared');
-var validator_1 = require('../common/validator');
-component_1.VantComponent({
- props: __assign(
- __assign(
- {
- disabled: Boolean,
- multiple: Boolean,
- uploadText: String,
- useBeforeRead: Boolean,
- afterRead: null,
- beforeRead: null,
- previewSize: {
- type: null,
- value: 80,
- },
- name: {
- type: null,
- value: '',
- },
- accept: {
- type: String,
- value: 'image',
- },
- fileList: {
- type: Array,
- value: [],
- observer: 'formatFileList',
- },
- maxSize: {
- type: Number,
- value: Number.MAX_VALUE,
- },
- maxCount: {
- type: Number,
- value: 100,
- },
- deletable: {
- type: Boolean,
- value: true,
- },
- showUpload: {
- type: Boolean,
- value: true,
- },
- previewImage: {
- type: Boolean,
- value: true,
- },
- previewFullImage: {
- type: Boolean,
- value: true,
- },
- imageFit: {
- type: String,
- value: 'scaleToFill',
- },
- uploadIcon: {
- type: String,
- value: 'photograph',
- },
- },
- shared_1.chooseImageProps
- ),
- shared_1.chooseVideoProps
- ),
- data: {
- lists: [],
- isInCount: true,
- },
- methods: {
- formatFileList: function () {
- var _a = this.data,
- _b = _a.fileList,
- fileList = _b === void 0 ? [] : _b,
- maxCount = _a.maxCount;
- var lists = fileList.map(function (item) {
- return __assign(__assign({}, item), {
- isImage: utils_1.isImageFile(item),
- isVideo: utils_1.isVideoFile(item),
- deletable: validator_1.isBoolean(item.deletable)
- ? item.deletable
- : true,
- });
- });
- this.setData({ lists: lists, isInCount: lists.length < maxCount });
- },
- getDetail: function (index) {
- return {
- name: this.data.name,
- index: index == null ? this.data.fileList.length : index,
- };
- },
- startUpload: function () {
- var _this = this;
- var _a = this.data,
- maxCount = _a.maxCount,
- multiple = _a.multiple,
- lists = _a.lists,
- disabled = _a.disabled;
- if (disabled) return;
- utils_1
- .chooseFile(
- __assign(__assign({}, this.data), {
- maxCount: maxCount - lists.length,
- })
- )
- .then(function (res) {
- _this.onBeforeRead(multiple ? res : res[0]);
- })
- .catch(function (error) {
- _this.$emit('error', error);
- });
- },
- onBeforeRead: function (file) {
- var _this = this;
- var _a = this.data,
- beforeRead = _a.beforeRead,
- useBeforeRead = _a.useBeforeRead;
- var res = true;
- if (typeof beforeRead === 'function') {
- res = beforeRead(file, this.getDetail());
- }
- if (useBeforeRead) {
- res = new Promise(function (resolve, reject) {
- _this.$emit(
- 'before-read',
- __assign(__assign({ file: file }, _this.getDetail()), {
- callback: function (ok) {
- ok ? resolve() : reject();
- },
- })
- );
- });
- }
- if (!res) {
- return;
- }
- if (validator_1.isPromise(res)) {
- res.then(function (data) {
- return _this.onAfterRead(data || file);
- });
- } else {
- this.onAfterRead(file);
- }
- },
- onAfterRead: function (file) {
- var _a = this.data,
- maxSize = _a.maxSize,
- afterRead = _a.afterRead;
- var oversize = Array.isArray(file)
- ? file.some(function (item) {
- return item.size > maxSize;
- })
- : file.size > maxSize;
- if (oversize) {
- this.$emit('oversize', __assign({ file: file }, this.getDetail()));
- return;
- }
- if (typeof afterRead === 'function') {
- afterRead(file, this.getDetail());
- }
- this.$emit('after-read', __assign({ file: file }, this.getDetail()));
- },
- deleteItem: function (event) {
- var index = event.currentTarget.dataset.index;
- this.$emit(
- 'delete',
- __assign(__assign({}, this.getDetail(index)), {
- file: this.data.fileList[index],
- })
- );
- },
- onPreviewImage: function (event) {
- if (!this.data.previewFullImage) return;
- var index = event.currentTarget.dataset.index;
- var lists = this.data.lists;
- var item = lists[index];
- wx.previewImage({
- urls: lists
- .filter(function (item) {
- return utils_1.isImageFile(item);
- })
- .map(function (item) {
- return item.url;
- }),
- current: item.url,
- fail: function () {
- wx.showToast({ title: '预览图片失败', icon: 'none' });
- },
- });
- },
- onPreviewVideo: function (event) {
- if (!this.data.previewFullImage) return;
- var index = event.currentTarget.dataset.index;
- var lists = this.data.lists;
- wx.previewMedia({
- sources: lists
- .filter(function (item) {
- return utils_1.isVideoFile(item);
- })
- .map(function (item) {
- return __assign(__assign({}, item), { type: 'video' });
- }),
- current: index,
- fail: function () {
- wx.showToast({ title: '预览视频失败', icon: 'none' });
- },
- });
- },
- onPreviewFile: function (event) {
- var index = event.currentTarget.dataset.index;
- wx.openDocument({
- filePath: this.data.lists[index].url,
- showMenu: true,
- });
- },
- onClickPreview: function (event) {
- var index = event.currentTarget.dataset.index;
- var item = this.data.lists[index];
- this.$emit(
- 'click-preview',
- __assign(__assign({}, item), this.getDetail(index))
- );
- },
- },
-});
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var utils_1 = require("./utils");
+var shared_1 = require("./shared");
+var validator_1 = require("../common/validator");
+(0, component_1.VantComponent)({
+ props: __assign(__assign(__assign(__assign({ disabled: Boolean, multiple: Boolean, uploadText: String, useBeforeRead: Boolean, afterRead: null, beforeRead: null, previewSize: {
+ type: null,
+ value: 80,
+ }, name: {
+ type: null,
+ value: '',
+ }, accept: {
+ type: String,
+ value: 'image',
+ }, fileList: {
+ type: Array,
+ value: [],
+ observer: 'formatFileList',
+ }, maxSize: {
+ type: Number,
+ value: Number.MAX_VALUE,
+ }, maxCount: {
+ type: Number,
+ value: 100,
+ }, deletable: {
+ type: Boolean,
+ value: true,
+ }, showUpload: {
+ type: Boolean,
+ value: true,
+ }, previewImage: {
+ type: Boolean,
+ value: true,
+ }, previewFullImage: {
+ type: Boolean,
+ value: true,
+ }, videoFit: {
+ type: String,
+ value: 'contain',
+ }, imageFit: {
+ type: String,
+ value: 'scaleToFill',
+ }, uploadIcon: {
+ type: String,
+ value: 'photograph',
+ } }, shared_1.imageProps), shared_1.videoProps), shared_1.mediaProps), shared_1.messageFileProps),
+ data: {
+ lists: [],
+ isInCount: true,
+ },
+ methods: {
+ formatFileList: function () {
+ var _a = this.data, _b = _a.fileList, fileList = _b === void 0 ? [] : _b, maxCount = _a.maxCount;
+ var lists = fileList.map(function (item) { return (__assign(__assign({}, item), { isImage: (0, utils_1.isImageFile)(item), isVideo: (0, utils_1.isVideoFile)(item), deletable: (0, validator_1.isBoolean)(item.deletable) ? item.deletable : true })); });
+ this.setData({ lists: lists, isInCount: lists.length < maxCount });
+ },
+ getDetail: function (index) {
+ return {
+ name: this.data.name,
+ index: index == null ? this.data.fileList.length : index,
+ };
+ },
+ startUpload: function () {
+ var _this = this;
+ var _a = this.data, maxCount = _a.maxCount, multiple = _a.multiple, lists = _a.lists, disabled = _a.disabled;
+ if (disabled)
+ return;
+ (0, utils_1.chooseFile)(__assign(__assign({}, this.data), { maxCount: maxCount - lists.length }))
+ .then(function (res) {
+ _this.onBeforeRead(multiple ? res : res[0]);
+ })
+ .catch(function (error) {
+ _this.$emit('error', error);
+ });
+ },
+ onBeforeRead: function (file) {
+ var _this = this;
+ var _a = this.data, beforeRead = _a.beforeRead, useBeforeRead = _a.useBeforeRead;
+ var res = true;
+ if (typeof beforeRead === 'function') {
+ res = beforeRead(file, this.getDetail());
+ }
+ if (useBeforeRead) {
+ res = new Promise(function (resolve, reject) {
+ _this.$emit('before-read', __assign(__assign({ file: file }, _this.getDetail()), { callback: function (ok) {
+ ok ? resolve() : reject();
+ } }));
+ });
+ }
+ if (!res) {
+ return;
+ }
+ if ((0, validator_1.isPromise)(res)) {
+ res.then(function (data) { return _this.onAfterRead(data || file); });
+ }
+ else {
+ this.onAfterRead(file);
+ }
+ },
+ onAfterRead: function (file) {
+ var _a = this.data, maxSize = _a.maxSize, afterRead = _a.afterRead;
+ var oversize = Array.isArray(file)
+ ? file.some(function (item) { return item.size > maxSize; })
+ : file.size > maxSize;
+ if (oversize) {
+ this.$emit('oversize', __assign({ file: file }, this.getDetail()));
+ return;
+ }
+ if (typeof afterRead === 'function') {
+ afterRead(file, this.getDetail());
+ }
+ this.$emit('after-read', __assign({ file: file }, this.getDetail()));
+ },
+ deleteItem: function (event) {
+ var index = event.currentTarget.dataset.index;
+ this.$emit('delete', __assign(__assign({}, this.getDetail(index)), { file: this.data.fileList[index] }));
+ },
+ onPreviewImage: function (event) {
+ if (!this.data.previewFullImage)
+ return;
+ var index = event.currentTarget.dataset.index;
+ var _a = this.data, lists = _a.lists, showmenu = _a.showmenu;
+ var item = lists[index];
+ wx.previewImage({
+ urls: lists.filter(function (item) { return (0, utils_1.isImageFile)(item); }).map(function (item) { return item.url; }),
+ current: item.url,
+ showmenu: showmenu,
+ fail: function () {
+ wx.showToast({ title: '预览图片失败', icon: 'none' });
+ },
+ });
+ },
+ onPreviewVideo: function (event) {
+ if (!this.data.previewFullImage)
+ return;
+ var index = event.currentTarget.dataset.index;
+ var lists = this.data.lists;
+ var sources = [];
+ var current = lists.reduce(function (sum, cur, curIndex) {
+ if (!(0, utils_1.isVideoFile)(cur)) {
+ return sum;
+ }
+ sources.push(__assign(__assign({}, cur), { type: 'video' }));
+ if (curIndex < index) {
+ sum++;
+ }
+ return sum;
+ }, 0);
+ wx.previewMedia({
+ sources: sources,
+ current: current,
+ fail: function () {
+ wx.showToast({ title: '预览视频失败', icon: 'none' });
+ },
+ });
+ },
+ onPreviewFile: function (event) {
+ var index = event.currentTarget.dataset.index;
+ wx.openDocument({
+ filePath: this.data.lists[index].url,
+ showMenu: true,
+ });
+ },
+ onClickPreview: function (event) {
+ var index = event.currentTarget.dataset.index;
+ var item = this.data.lists[index];
+ this.$emit('click-preview', __assign(__assign({}, item), this.getDetail(index)));
+ },
+ },
+});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.json
index 8e23ad6..e00a588 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.json
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.json
@@ -1,7 +1,7 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index",
- "van-loading": "../loading/index"
- }
-}
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index",
+ "van-loading": "../loading/index"
+ }
+}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxml
index 1c763be..3e61fd9 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxml
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxml
@@ -1,83 +1,84 @@
-
-
-
-
-
-
-
-
-
-
-
- {{ item.name || item.url }}
-
-
-
-
- {{ item.message }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ uploadText }}
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name || item.url }}
+
+
+
+
+ {{ item.message }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ uploadText }}
+
+
+
+
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxs
index b9e57fc..c567ec2 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxs
@@ -1,14 +1,17 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function sizeStyle(data) {
- return style({
- width: addUnit(data.previewSize),
- height: addUnit(data.previewSize),
- });
-}
-
-module.exports = {
- sizeStyle: sizeStyle,
-};
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function sizeStyle(data) {
+ return "Array" === data.previewSize.constructor ? style({
+ width: addUnit(data.previewSize[0]),
+ height: addUnit(data.previewSize[1]),
+ }) : style({
+ width: addUnit(data.previewSize),
+ height: addUnit(data.previewSize),
+ });
+}
+
+module.exports = {
+ sizeStyle: sizeStyle,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxss
index 5023d71..11f8696 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxss
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-uploader{position:relative;display:inline-block}.van-uploader__wrapper{display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.van-uploader__slot:empty{display:none}.van-uploader__slot:not(:empty)+.van-uploader__upload{display:none!important}.van-uploader__upload{position:relative;display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;width:80px;width:var(--uploader-size,80px);height:80px;height:var(--uploader-size,80px);margin:0 8px 8px 0;margin:0 var(--padding-xs,8px) var(--padding-xs,8px) 0;background-color:#f7f8fa;background-color:var(--uploader-upload-background-color,#f7f8fa)}.van-uploader__upload:active{background-color:#f2f3f5;background-color:var(--uploader-upload-active-color,#f2f3f5)}.van-uploader__upload-icon{color:#dcdee0;color:var(--uploader-icon-color,#dcdee0);font-size:24px;font-size:var(--uploader-icon-size,24px)}.van-uploader__upload-text{margin-top:8px;margin-top:var(--padding-xs,8px);color:#969799;color:var(--uploader-text-color,#969799);font-size:12px;font-size:var(--uploader-text-font-size,12px)}.van-uploader__upload--disabled{opacity:.5;opacity:var(--uploader-disabled-opacity,.5)}.van-uploader__preview{position:relative;cursor:pointer;margin:0 8px 8px 0;margin:0 var(--padding-xs,8px) var(--padding-xs,8px) 0}.van-uploader__preview-image{display:block;overflow:hidden;width:80px;width:var(--uploader-size,80px);height:80px;height:var(--uploader-size,80px)}.van-uploader__preview-delete{padding:0 0 8px 8px;padding:0 0 var(--padding-xs,8px) var(--padding-xs,8px)}.van-uploader__preview-delete,.van-uploader__preview-delete:after{position:absolute;top:0;right:0;width:14px;width:var(--uploader-delete-icon-size,14px);height:14px;height:var(--uploader-delete-icon-size,14px)}.van-uploader__preview-delete:after{content:"";background-color:rgba(0,0,0,.7);background-color:var(--uploader-delete-background-color,rgba(0,0,0,.7));border-radius:0 0 0 12px;border-radius:0 0 0 calc(var(--uploader-delete-icon-size, 14px) - 2px)}.van-uploader__preview-delete-icon{position:absolute;top:-2px;right:-2px;z-index:1;-webkit-transform:scale(.5);transform:scale(.5);font-size:16px;font-size:calc(var(--uploader-delete-icon-size, 14px) + 2px);color:#fff;color:var(--uploader-delete-color,#fff)}.van-uploader__file{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;width:80px;width:var(--uploader-size,80px);height:80px;height:var(--uploader-size,80px);background-color:#f7f8fa;background-color:var(--uploader-file-background-color,#f7f8fa)}.van-uploader__file-icon{color:#646566;color:var(--uploader-file-icon-color,#646566);font-size:20px;font-size:var(--uploader-file-icon-size,20px)}.van-uploader__file-name{box-sizing:border-box;width:100%;text-align:center;margin-top:8px;margin-top:var(--uploader-file-name-margin-top,8px);padding:0 4px;padding:var(--uploader-file-name-padding,0 4px);color:#646566;color:var(--uploader-file-name-text-color,#646566);font-size:12px;font-size:var(--uploader-file-name-font-size,12px)}.van-uploader__mask{position:absolute;top:0;right:0;bottom:0;left:0;display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;color:#fff;color:var(--white,#fff);background-color:rgba(50,50,51,.88);background-color:var(--uploader-mask-background-color,rgba(50,50,51,.88))}.van-uploader__mask-icon{font-size:22px;font-size:var(--uploader-mask-icon-size,22px)}.van-uploader__mask-message{margin-top:6px;padding:0 4px;padding:0 var(--padding-base,4px);font-size:12px;font-size:var(--uploader-mask-message-font-size,12px);line-height:14px;line-height:var(--uploader-mask-message-line-height,14px)}.van-uploader__loading{width:22px;width:var(--uploader-loading-icon-size,22px);height:22px;height:var(--uploader-loading-icon-size,22px);color:#fff!important;color:var(--uploader-loading-icon-color,#fff)!important}
\ No newline at end of file
+@import '../common/index.wxss';.van-uploader{display:inline-block;position:relative}.van-uploader__wrapper{display:flex;flex-wrap:wrap}.van-uploader__slot:empty{display:none}.van-uploader__slot:not(:empty)+.van-uploader__upload{display:none!important}.van-uploader__upload{align-items:center;background-color:var(--uploader-upload-background-color,#f7f8fa);box-sizing:border-box;display:flex;flex-direction:column;height:var(--uploader-size,80px);justify-content:center;margin:0 8px 8px 0;position:relative;width:var(--uploader-size,80px)}.van-uploader__upload:active{background-color:var(--uploader-upload-active-color,#f2f3f5)}.van-uploader__upload-icon{color:var(--uploader-icon-color,#dcdee0);font-size:var(--uploader-icon-size,24px)}.van-uploader__upload-text{color:var(--uploader-text-color,#969799);font-size:var(--uploader-text-font-size,12px);margin-top:var(--padding-xs,8px)}.van-uploader__upload--disabled{opacity:var(--uploader-disabled-opacity,.5)}.van-uploader__preview{cursor:pointer;margin:0 8px 8px 0;position:relative}.van-uploader__preview-image{display:block;height:var(--uploader-size,80px);overflow:hidden;width:var(--uploader-size,80px)}.van-uploader__preview-delete,.van-uploader__preview-delete:after{height:var(--uploader-delete-icon-size,14px);position:absolute;right:0;top:0;width:var(--uploader-delete-icon-size,14px)}.van-uploader__preview-delete:after{background-color:var(--uploader-delete-background-color,rgba(0,0,0,.7));border-radius:0 0 0 12px;content:""}.van-uploader__preview-delete-icon{color:var(--uploader-delete-color,#fff);font-size:var(--uploader-delete-icon-size,14px);position:absolute;right:0;top:0;transform:scale(.7) translate(10%,-10%);z-index:1}.van-uploader__file{align-items:center;background-color:var(--uploader-file-background-color,#f7f8fa);display:flex;flex-direction:column;height:var(--uploader-size,80px);justify-content:center;width:var(--uploader-size,80px)}.van-uploader__file-icon{color:var(--uploader-file-icon-color,#646566);font-size:var(--uploader-file-icon-size,20px)}.van-uploader__file-name{box-sizing:border-box;color:var(--uploader-file-name-text-color,#646566);font-size:var(--uploader-file-name-font-size,12px);margin-top:var(--uploader-file-name-margin-top,8px);padding:var(--uploader-file-name-padding,0 4px);text-align:center;width:100%}.van-uploader__mask{align-items:center;background-color:var(--uploader-mask-background-color,rgba(50,50,51,.88));bottom:0;color:#fff;display:flex;flex-direction:column;justify-content:center;left:0;position:absolute;right:0;top:0}.van-uploader__mask-icon{font-size:var(--uploader-mask-icon-size,22px)}.van-uploader__mask-message{font-size:var(--uploader-mask-message-font-size,12px);line-height:var(--uploader-mask-message-line-height,14px);margin-top:6px;padding:0 var(--padding-base,4px)}.van-uploader__loading{color:var(--uploader-loading-icon-color,#fff)!important;height:var(--uploader-loading-icon-size,22px);width:var(--uploader-loading-icon-size,22px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/shared.js b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/shared.js
index 5a0fb6a..4e07727 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/shared.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/shared.js
@@ -1,33 +1,60 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.chooseVideoProps = exports.chooseImageProps = void 0;
-// props for choose image
-exports.chooseImageProps = {
- sizeType: {
- type: Array,
- value: ['original', 'compressed'],
- },
- capture: {
- type: Array,
- value: ['album', 'camera'],
- },
-};
-// props for choose video
-exports.chooseVideoProps = {
- capture: {
- type: Array,
- value: ['album', 'camera'],
- },
- compressed: {
- type: Boolean,
- value: true,
- },
- maxDuration: {
- type: Number,
- value: 60,
- },
- camera: {
- type: String,
- value: 'back',
- },
-};
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.messageFileProps = exports.mediaProps = exports.videoProps = exports.imageProps = void 0;
+// props for image
+exports.imageProps = {
+ sizeType: {
+ type: Array,
+ value: ['original', 'compressed'],
+ },
+ capture: {
+ type: Array,
+ value: ['album', 'camera'],
+ },
+ showmenu: {
+ type: Boolean,
+ value: true,
+ },
+};
+// props for video
+exports.videoProps = {
+ capture: {
+ type: Array,
+ value: ['album', 'camera'],
+ },
+ compressed: {
+ type: Boolean,
+ value: true,
+ },
+ maxDuration: {
+ type: Number,
+ value: 60,
+ },
+ camera: {
+ type: String,
+ value: 'back',
+ },
+};
+// props for media
+exports.mediaProps = {
+ capture: {
+ type: Array,
+ value: ['album', 'camera'],
+ },
+ mediaType: {
+ type: Array,
+ value: ['image', 'video'],
+ },
+ maxDuration: {
+ type: Number,
+ value: 60,
+ },
+ camera: {
+ type: String,
+ value: 'back',
+ },
+};
+// props for file
+exports.messageFileProps = {
+ extension: null,
+};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/utils.js b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/utils.js
index c5fd503..b8cf452 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/utils.js
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/utils.js
@@ -1,158 +1,112 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-Object.defineProperty(exports, '__esModule', { value: true });
-exports.chooseFile = exports.isVideoFile = exports.isImageFile = void 0;
-var utils_1 = require('../common/utils');
-var validator_1 = require('../common/validator');
-function isImageFile(item) {
- if (item.isImage != null) {
- return item.isImage;
- }
- if (item.type) {
- return item.type === 'image';
- }
- if (item.url) {
- return validator_1.isImageUrl(item.url);
- }
- return false;
-}
-exports.isImageFile = isImageFile;
-function isVideoFile(item) {
- if (item.isVideo != null) {
- return item.isVideo;
- }
- if (item.type) {
- return item.type === 'video';
- }
- if (item.url) {
- return validator_1.isVideoUrl(item.url);
- }
- return false;
-}
-exports.isVideoFile = isVideoFile;
-function formatImage(res) {
- return res.tempFiles.map(function (item) {
- return __assign(__assign({}, utils_1.pickExclude(item, ['path'])), {
- type: 'image',
- url: item.path,
- thumb: item.path,
- });
- });
-}
-function formatVideo(res) {
- return [
- __assign(
- __assign(
- {},
- utils_1.pickExclude(res, [
- 'tempFilePath',
- 'thumbTempFilePath',
- 'errMsg',
- ])
- ),
- { type: 'video', url: res.tempFilePath, thumb: res.thumbTempFilePath }
- ),
- ];
-}
-function formatMedia(res) {
- return res.tempFiles.map(function (item) {
- return __assign(
- __assign(
- {},
- utils_1.pickExclude(item, [
- 'fileType',
- 'thumbTempFilePath',
- 'tempFilePath',
- ])
- ),
- {
- type: res.type,
- url: item.tempFilePath,
- thumb:
- res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath,
- }
- );
- });
-}
-function formatFile(res) {
- return res.tempFiles.map(function (item) {
- return __assign(__assign({}, utils_1.pickExclude(item, ['path'])), {
- url: item.path,
- });
- });
-}
-function chooseFile(_a) {
- var accept = _a.accept,
- multiple = _a.multiple,
- capture = _a.capture,
- compressed = _a.compressed,
- maxDuration = _a.maxDuration,
- sizeType = _a.sizeType,
- camera = _a.camera,
- maxCount = _a.maxCount;
- return new Promise(function (resolve, reject) {
- switch (accept) {
- case 'image':
- wx.chooseImage({
- count: multiple ? Math.min(maxCount, 9) : 1,
- sourceType: capture,
- sizeType: sizeType,
- success: function (res) {
- return resolve(formatImage(res));
- },
- fail: reject,
- });
- break;
- case 'media':
- wx.chooseMedia({
- count: multiple ? Math.min(maxCount, 9) : 1,
- sourceType: capture,
- maxDuration: maxDuration,
- sizeType: sizeType,
- camera: camera,
- success: function (res) {
- return resolve(formatMedia(res));
- },
- fail: reject,
- });
- break;
- case 'video':
- wx.chooseVideo({
- sourceType: capture,
- compressed: compressed,
- maxDuration: maxDuration,
- camera: camera,
- success: function (res) {
- return resolve(formatVideo(res));
- },
- fail: reject,
- });
- break;
- default:
- wx.chooseMessageFile({
- count: multiple ? maxCount : 1,
- type: accept,
- success: function (res) {
- return resolve(formatFile(res));
- },
- fail: reject,
- });
- break;
- }
- });
-}
-exports.chooseFile = chooseFile;
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.chooseFile = exports.isVideoFile = exports.isImageFile = void 0;
+var utils_1 = require("../common/utils");
+var validator_1 = require("../common/validator");
+function isImageFile(item) {
+ if (item.isImage != null) {
+ return item.isImage;
+ }
+ if (item.type) {
+ return item.type === 'image';
+ }
+ if (item.url) {
+ return (0, validator_1.isImageUrl)(item.url);
+ }
+ return false;
+}
+exports.isImageFile = isImageFile;
+function isVideoFile(item) {
+ if (item.isVideo != null) {
+ return item.isVideo;
+ }
+ if (item.type) {
+ return item.type === 'video';
+ }
+ if (item.url) {
+ return (0, validator_1.isVideoUrl)(item.url);
+ }
+ return false;
+}
+exports.isVideoFile = isVideoFile;
+function formatImage(res) {
+ return res.tempFiles.map(function (item) { return (__assign(__assign({}, (0, utils_1.pickExclude)(item, ['path'])), { type: 'image', url: item.tempFilePath || item.path, thumb: item.tempFilePath || item.path })); });
+}
+function formatVideo(res) {
+ return [
+ __assign(__assign({}, (0, utils_1.pickExclude)(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), { type: 'video', url: res.tempFilePath, thumb: res.thumbTempFilePath }),
+ ];
+}
+function formatMedia(res) {
+ return res.tempFiles.map(function (item) { return (__assign(__assign({}, (0, utils_1.pickExclude)(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), { type: res.type, url: item.tempFilePath, thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath })); });
+}
+function formatFile(res) {
+ return res.tempFiles.map(function (item) { return (__assign(__assign({}, (0, utils_1.pickExclude)(item, ['path'])), { url: item.path })); });
+}
+function chooseFile(_a) {
+ var accept = _a.accept, multiple = _a.multiple, capture = _a.capture, compressed = _a.compressed, maxDuration = _a.maxDuration, sizeType = _a.sizeType, camera = _a.camera, maxCount = _a.maxCount, mediaType = _a.mediaType, extension = _a.extension;
+ return new Promise(function (resolve, reject) {
+ switch (accept) {
+ case 'image':
+ if (utils_1.isPC) {
+ wx.chooseImage({
+ count: multiple ? Math.min(maxCount, 9) : 1,
+ sourceType: capture,
+ sizeType: sizeType,
+ success: function (res) { return resolve(formatImage(res)); },
+ fail: reject,
+ });
+ }
+ else {
+ wx.chooseMedia({
+ count: multiple ? Math.min(maxCount, 9) : 1,
+ mediaType: ['image'],
+ sourceType: capture,
+ maxDuration: maxDuration,
+ sizeType: sizeType,
+ camera: camera,
+ success: function (res) { return resolve(formatImage(res)); },
+ fail: reject,
+ });
+ }
+ break;
+ case 'media':
+ wx.chooseMedia({
+ count: multiple ? Math.min(maxCount, 9) : 1,
+ mediaType: mediaType,
+ sourceType: capture,
+ maxDuration: maxDuration,
+ sizeType: sizeType,
+ camera: camera,
+ success: function (res) { return resolve(formatMedia(res)); },
+ fail: reject,
+ });
+ break;
+ case 'video':
+ wx.chooseVideo({
+ sourceType: capture,
+ compressed: compressed,
+ maxDuration: maxDuration,
+ camera: camera,
+ success: function (res) { return resolve(formatVideo(res)); },
+ fail: reject,
+ });
+ break;
+ default:
+ wx.chooseMessageFile(__assign(__assign({ count: multiple ? maxCount : 1, type: accept }, (extension ? { extension: extension } : {})), { success: function (res) { return resolve(formatFile(res)); }, fail: reject }));
+ break;
+ }
+ });
+}
+exports.chooseFile = chooseFile;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/add-unit.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/add-unit.wxs
index fd62d4e..4f33462 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/add-unit.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/add-unit.wxs
@@ -1,12 +1,12 @@
-/* eslint-disable */
-var REGEXP = getRegExp('^-?\d+(\.\d+)?$');
-
-function addUnit(value) {
- if (value == null) {
- return undefined;
- }
-
- return REGEXP.test('' + value) ? value + 'px' : value;
-}
-
-module.exports = addUnit;
+/* eslint-disable */
+var REGEXP = getRegExp('^-?\d+(\.\d+)?$');
+
+function addUnit(value) {
+ if (value == null) {
+ return undefined;
+ }
+
+ return REGEXP.test('' + value) ? value + 'px' : value;
+}
+
+module.exports = addUnit;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/array.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/array.wxs
index 4681032..610089c 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/array.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/array.wxs
@@ -1,5 +1,5 @@
-function isArray(array) {
- return array && array.constructor === 'Array';
-}
-
-module.exports.isArray = isArray;
+function isArray(array) {
+ return array && array.constructor === 'Array';
+}
+
+module.exports.isArray = isArray;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/bem.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/bem.wxs
index 70629b2..1efa129 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/bem.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/bem.wxs
@@ -1,39 +1,39 @@
-/* eslint-disable */
-var array = require('./array.wxs');
-var object = require('./object.wxs');
-var PREFIX = 'van-';
-
-function join(name, mods) {
- name = PREFIX + name;
- mods = mods.map(function(mod) {
- return name + '--' + mod;
- });
- mods.unshift(name);
- return mods.join(' ');
-}
-
-function traversing(mods, conf) {
- if (!conf) {
- return;
- }
-
- if (typeof conf === 'string' || typeof conf === 'number') {
- mods.push(conf);
- } else if (array.isArray(conf)) {
- conf.forEach(function(item) {
- traversing(mods, item);
- });
- } else if (typeof conf === 'object') {
- object.keys(conf).forEach(function(key) {
- conf[key] && mods.push(key);
- });
- }
-}
-
-function bem(name, conf) {
- var mods = [];
- traversing(mods, conf);
- return join(name, mods);
-}
-
-module.exports = bem;
+/* eslint-disable */
+var array = require('./array.wxs');
+var object = require('./object.wxs');
+var PREFIX = 'van-';
+
+function join(name, mods) {
+ name = PREFIX + name;
+ mods = mods.map(function(mod) {
+ return name + '--' + mod;
+ });
+ mods.unshift(name);
+ return mods.join(' ');
+}
+
+function traversing(mods, conf) {
+ if (!conf) {
+ return;
+ }
+
+ if (typeof conf === 'string' || typeof conf === 'number') {
+ mods.push(conf);
+ } else if (array.isArray(conf)) {
+ conf.forEach(function(item) {
+ traversing(mods, item);
+ });
+ } else if (typeof conf === 'object') {
+ object.keys(conf).forEach(function(key) {
+ conf[key] && mods.push(key);
+ });
+ }
+}
+
+function bem(name, conf) {
+ var mods = [];
+ traversing(mods, conf);
+ return join(name, mods);
+}
+
+module.exports = bem;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/memoize.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/memoize.wxs
index 641c17f..8f7f46d 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/memoize.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/memoize.wxs
@@ -1,55 +1,55 @@
-/**
- * Simple memoize
- * wxs doesn't support fn.apply, so this memoize only support up to 2 args
- */
-/* eslint-disable */
-
-function isPrimitive(value) {
- var type = typeof value;
- return (
- type === 'boolean' ||
- type === 'number' ||
- type === 'string' ||
- type === 'undefined' ||
- value === null
- );
-}
-
-// mock simple fn.call in wxs
-function call(fn, args) {
- if (args.length === 2) {
- return fn(args[0], args[1]);
- }
-
- if (args.length === 1) {
- return fn(args[0]);
- }
-
- return fn();
-}
-
-function serializer(args) {
- if (args.length === 1 && isPrimitive(args[0])) {
- return args[0];
- }
- var obj = {};
- for (var i = 0; i < args.length; i++) {
- obj['key' + i] = args[i];
- }
- return JSON.stringify(obj);
-}
-
-function memoize(fn) {
- var cache = {};
-
- return function() {
- var key = serializer(arguments);
- if (cache[key] === undefined) {
- cache[key] = call(fn, arguments);
- }
-
- return cache[key];
- };
-}
-
-module.exports = memoize;
+/**
+ * Simple memoize
+ * wxs doesn't support fn.apply, so this memoize only support up to 2 args
+ */
+/* eslint-disable */
+
+function isPrimitive(value) {
+ var type = typeof value;
+ return (
+ type === 'boolean' ||
+ type === 'number' ||
+ type === 'string' ||
+ type === 'undefined' ||
+ value === null
+ );
+}
+
+// mock simple fn.call in wxs
+function call(fn, args) {
+ if (args.length === 2) {
+ return fn(args[0], args[1]);
+ }
+
+ if (args.length === 1) {
+ return fn(args[0]);
+ }
+
+ return fn();
+}
+
+function serializer(args) {
+ if (args.length === 1 && isPrimitive(args[0])) {
+ return args[0];
+ }
+ var obj = {};
+ for (var i = 0; i < args.length; i++) {
+ obj['key' + i] = args[i];
+ }
+ return JSON.stringify(obj);
+}
+
+function memoize(fn) {
+ var cache = {};
+
+ return function() {
+ var key = serializer(arguments);
+ if (cache[key] === undefined) {
+ cache[key] = call(fn, arguments);
+ }
+
+ return cache[key];
+ };
+}
+
+module.exports = memoize;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/object.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/object.wxs
index 69f16ea..e077107 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/object.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/object.wxs
@@ -1,13 +1,13 @@
-/* eslint-disable */
-var REGEXP = getRegExp('{|}|"', 'g');
-
-function keys(obj) {
- return JSON.stringify(obj)
- .replace(REGEXP, '')
- .split(',')
- .map(function(item) {
- return item.split(':')[0];
- });
-}
-
-module.exports.keys = keys;
+/* eslint-disable */
+var REGEXP = getRegExp('{|}|"', 'g');
+
+function keys(obj) {
+ return JSON.stringify(obj)
+ .replace(REGEXP, '')
+ .split(',')
+ .map(function(item) {
+ return item.split(':')[0];
+ });
+}
+
+module.exports.keys = keys;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/style.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/style.wxs
index 743a4ad..d88ca7c 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/style.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/style.wxs
@@ -1,32 +1,42 @@
-/* eslint-disable */
-var object = require('./object.wxs');
-var array = require('./array.wxs');
-
-function style(styles) {
- if (array.isArray(styles)) {
- return styles
- .filter(function (item) {
- return item != null && item !== '';
- })
- .map(function (item) {
- return style(item);
- })
- .join(';');
- }
-
- if ('Object' === styles.constructor) {
- return object
- .keys(styles)
- .filter(function (key) {
- return styles[key] != null && styles[key] !== '';
- })
- .map(function (key) {
- return [key, [styles[key]]].join(':');
- })
- .join(';');
- }
-
- return styles;
-}
-
-module.exports = style;
+/* eslint-disable */
+var object = require('./object.wxs');
+var array = require('./array.wxs');
+
+function kebabCase(word) {
+ var newWord = word
+ .replace(getRegExp("[A-Z]", 'g'), function (i) {
+ return '-' + i;
+ })
+ .toLowerCase()
+
+ return newWord;
+}
+
+function style(styles) {
+ if (array.isArray(styles)) {
+ return styles
+ .filter(function (item) {
+ return item != null && item !== '';
+ })
+ .map(function (item) {
+ return style(item);
+ })
+ .join(';');
+ }
+
+ if ('Object' === styles.constructor) {
+ return object
+ .keys(styles)
+ .filter(function (key) {
+ return styles[key] != null && styles[key] !== '';
+ })
+ .map(function (key) {
+ return [kebabCase(key), [styles[key]]].join(':');
+ })
+ .join(';');
+ }
+
+ return styles;
+}
+
+module.exports = style;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/utils.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/utils.wxs
index bb6e285..f66d33a 100644
--- a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/utils.wxs
+++ b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/utils.wxs
@@ -1,10 +1,10 @@
-/* eslint-disable */
-var bem = require('./bem.wxs');
-var memoize = require('./memoize.wxs');
-var addUnit = require('./add-unit.wxs');
-
-module.exports = {
- bem: memoize(bem),
- memoize: memoize,
- addUnit: addUnit
-};
+/* eslint-disable */
+var bem = require('./bem.wxs');
+var memoize = require('./memoize.wxs');
+var addUnit = require('./add-unit.wxs');
+
+module.exports = {
+ bem: memoize(bem),
+ memoize: memoize,
+ addUnit: addUnit
+};
diff --git a/src/openeuler/miniprogram_npm/eventemitter3/index.js b/src/openeuler/miniprogram_npm/eventemitter3/index.js
index 455a3ab..5f4e7a9 100644
--- a/src/openeuler/miniprogram_npm/eventemitter3/index.js
+++ b/src/openeuler/miniprogram_npm/eventemitter3/index.js
@@ -1,348 +1,349 @@
-module.exports = (function() {
-var __MODS__ = {};
-var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexports: {} }; __MODS__[modId] = { status: 0, func: func, req: req, m: m }; };
-var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
-var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
-var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
-__DEFINE__(1617789047371, function(require, module, exports) {
-
-
-var has = Object.prototype.hasOwnProperty
- , prefix = '~';
-
-/**
- * Constructor to create a storage for our `EE` objects.
- * An `Events` instance is a plain object whose properties are event names.
- *
- * @constructor
- * @private
- */
-function Events() {}
-
-//
-// We try to not inherit from `Object.prototype`. In some engines creating an
-// instance in this way is faster than calling `Object.create(null)` directly.
-// If `Object.create(null)` is not supported we prefix the event names with a
-// character to make sure that the built-in object properties are not
-// overridden or used as an attack vector.
-//
-if (Object.create) {
- Events.prototype = Object.create(null);
-
- //
- // This hack is needed because the `__proto__` property is still inherited in
- // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.
- //
- if (!new Events().__proto__) prefix = false;
-}
-
-/**
- * Representation of a single event listener.
- *
- * @param {Function} fn The listener function.
- * @param {*} context The context to invoke the listener with.
- * @param {Boolean} [once=false] Specify if the listener is a one-time listener.
- * @constructor
- * @private
- */
-function EE(fn, context, once) {
- this.fn = fn;
- this.context = context;
- this.once = once || false;
-}
-
-/**
- * Add a listener for a given event.
- *
- * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.
- * @param {(String|Symbol)} event The event name.
- * @param {Function} fn The listener function.
- * @param {*} context The context to invoke the listener with.
- * @param {Boolean} once Specify if the listener is a one-time listener.
- * @returns {EventEmitter}
- * @private
- */
-function addListener(emitter, event, fn, context, once) {
- if (typeof fn !== 'function') {
- throw new TypeError('The listener must be a function');
- }
-
- var listener = new EE(fn, context || emitter, once)
- , evt = prefix ? prefix + event : event;
-
- if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;
- else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);
- else emitter._events[evt] = [emitter._events[evt], listener];
-
- return emitter;
-}
-
-/**
- * Clear event by name.
- *
- * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.
- * @param {(String|Symbol)} evt The Event name.
- * @private
- */
-function clearEvent(emitter, evt) {
- if (--emitter._eventsCount === 0) emitter._events = new Events();
- else delete emitter._events[evt];
-}
-
-/**
- * Minimal `EventEmitter` interface that is molded against the Node.js
- * `EventEmitter` interface.
- *
- * @constructor
- * @public
- */
-function EventEmitter() {
- this._events = new Events();
- this._eventsCount = 0;
-}
-
-/**
- * Return an array listing the events for which the emitter has registered
- * listeners.
- *
- * @returns {Array}
- * @public
- */
-EventEmitter.prototype.eventNames = function eventNames() {
- var names = []
- , events
- , name;
-
- if (this._eventsCount === 0) return names;
-
- for (name in (events = this._events)) {
- if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);
- }
-
- if (Object.getOwnPropertySymbols) {
- return names.concat(Object.getOwnPropertySymbols(events));
- }
-
- return names;
-};
-
-/**
- * Return the listeners registered for a given event.
- *
- * @param {(String|Symbol)} event The event name.
- * @returns {Array} The registered listeners.
- * @public
- */
-EventEmitter.prototype.listeners = function listeners(event) {
- var evt = prefix ? prefix + event : event
- , handlers = this._events[evt];
-
- if (!handlers) return [];
- if (handlers.fn) return [handlers.fn];
-
- for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) {
- ee[i] = handlers[i].fn;
- }
-
- return ee;
-};
-
-/**
- * Return the number of listeners listening to a given event.
- *
- * @param {(String|Symbol)} event The event name.
- * @returns {Number} The number of listeners.
- * @public
- */
-EventEmitter.prototype.listenerCount = function listenerCount(event) {
- var evt = prefix ? prefix + event : event
- , listeners = this._events[evt];
-
- if (!listeners) return 0;
- if (listeners.fn) return 1;
- return listeners.length;
-};
-
-/**
- * Calls each of the listeners registered for a given event.
- *
- * @param {(String|Symbol)} event The event name.
- * @returns {Boolean} `true` if the event had listeners, else `false`.
- * @public
- */
-EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
- var evt = prefix ? prefix + event : event;
-
- if (!this._events[evt]) return false;
-
- var listeners = this._events[evt]
- , len = arguments.length
- , args
- , i;
-
- if (listeners.fn) {
- if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);
-
- switch (len) {
- case 1: return listeners.fn.call(listeners.context), true;
- case 2: return listeners.fn.call(listeners.context, a1), true;
- case 3: return listeners.fn.call(listeners.context, a1, a2), true;
- case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;
- case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
- case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
- }
-
- for (i = 1, args = new Array(len -1); i < len; i++) {
- args[i - 1] = arguments[i];
- }
-
- listeners.fn.apply(listeners.context, args);
- } else {
- var length = listeners.length
- , j;
-
- for (i = 0; i < length; i++) {
- if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);
-
- switch (len) {
- case 1: listeners[i].fn.call(listeners[i].context); break;
- case 2: listeners[i].fn.call(listeners[i].context, a1); break;
- case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break;
- case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break;
- default:
- if (!args) for (j = 1, args = new Array(len -1); j < len; j++) {
- args[j - 1] = arguments[j];
- }
-
- listeners[i].fn.apply(listeners[i].context, args);
- }
- }
- }
-
- return true;
-};
-
-/**
- * Add a listener for a given event.
- *
- * @param {(String|Symbol)} event The event name.
- * @param {Function} fn The listener function.
- * @param {*} [context=this] The context to invoke the listener with.
- * @returns {EventEmitter} `this`.
- * @public
- */
-EventEmitter.prototype.on = function on(event, fn, context) {
- return addListener(this, event, fn, context, false);
-};
-
-/**
- * Add a one-time listener for a given event.
- *
- * @param {(String|Symbol)} event The event name.
- * @param {Function} fn The listener function.
- * @param {*} [context=this] The context to invoke the listener with.
- * @returns {EventEmitter} `this`.
- * @public
- */
-EventEmitter.prototype.once = function once(event, fn, context) {
- return addListener(this, event, fn, context, true);
-};
-
-/**
- * Remove the listeners of a given event.
- *
- * @param {(String|Symbol)} event The event name.
- * @param {Function} fn Only remove the listeners that match this function.
- * @param {*} context Only remove the listeners that have this context.
- * @param {Boolean} once Only remove one-time listeners.
- * @returns {EventEmitter} `this`.
- * @public
- */
-EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {
- var evt = prefix ? prefix + event : event;
-
- if (!this._events[evt]) return this;
- if (!fn) {
- clearEvent(this, evt);
- return this;
- }
-
- var listeners = this._events[evt];
-
- if (listeners.fn) {
- if (
- listeners.fn === fn &&
- (!once || listeners.once) &&
- (!context || listeners.context === context)
- ) {
- clearEvent(this, evt);
- }
- } else {
- for (var i = 0, events = [], length = listeners.length; i < length; i++) {
- if (
- listeners[i].fn !== fn ||
- (once && !listeners[i].once) ||
- (context && listeners[i].context !== context)
- ) {
- events.push(listeners[i]);
- }
- }
-
- //
- // Reset the array, or remove it completely if we have no more listeners.
- //
- if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;
- else clearEvent(this, evt);
- }
-
- return this;
-};
-
-/**
- * Remove all listeners, or those of the specified event.
- *
- * @param {(String|Symbol)} [event] The event name.
- * @returns {EventEmitter} `this`.
- * @public
- */
-EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {
- var evt;
-
- if (event) {
- evt = prefix ? prefix + event : event;
- if (this._events[evt]) clearEvent(this, evt);
- } else {
- this._events = new Events();
- this._eventsCount = 0;
- }
-
- return this;
-};
-
-//
-// Alias methods names because people roll like that.
-//
-EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
-EventEmitter.prototype.addListener = EventEmitter.prototype.on;
-
-//
-// Expose the prefix.
-//
-EventEmitter.prefixed = prefix;
-
-//
-// Allow `EventEmitter` to be imported as module namespace.
-//
-EventEmitter.EventEmitter = EventEmitter;
-
-//
-// Expose the module.
-//
-if ('undefined' !== typeof module) {
- module.exports = EventEmitter;
-}
-
-}, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
-return __REQUIRE__(1617789047371);
-})()
+module.exports = (function() {
+var __MODS__ = {};
+var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexports: {} }; __MODS__[modId] = { status: 0, func: func, req: req, m: m }; };
+var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
+var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
+var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
+__DEFINE__(1698905245833, function(require, module, exports) {
+
+
+var has = Object.prototype.hasOwnProperty
+ , prefix = '~';
+
+/**
+ * Constructor to create a storage for our `EE` objects.
+ * An `Events` instance is a plain object whose properties are event names.
+ *
+ * @constructor
+ * @private
+ */
+function Events() {}
+
+//
+// We try to not inherit from `Object.prototype`. In some engines creating an
+// instance in this way is faster than calling `Object.create(null)` directly.
+// If `Object.create(null)` is not supported we prefix the event names with a
+// character to make sure that the built-in object properties are not
+// overridden or used as an attack vector.
+//
+if (Object.create) {
+ Events.prototype = Object.create(null);
+
+ //
+ // This hack is needed because the `__proto__` property is still inherited in
+ // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.
+ //
+ if (!new Events().__proto__) prefix = false;
+}
+
+/**
+ * Representation of a single event listener.
+ *
+ * @param {Function} fn The listener function.
+ * @param {*} context The context to invoke the listener with.
+ * @param {Boolean} [once=false] Specify if the listener is a one-time listener.
+ * @constructor
+ * @private
+ */
+function EE(fn, context, once) {
+ this.fn = fn;
+ this.context = context;
+ this.once = once || false;
+}
+
+/**
+ * Add a listener for a given event.
+ *
+ * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.
+ * @param {(String|Symbol)} event The event name.
+ * @param {Function} fn The listener function.
+ * @param {*} context The context to invoke the listener with.
+ * @param {Boolean} once Specify if the listener is a one-time listener.
+ * @returns {EventEmitter}
+ * @private
+ */
+function addListener(emitter, event, fn, context, once) {
+ if (typeof fn !== 'function') {
+ throw new TypeError('The listener must be a function');
+ }
+
+ var listener = new EE(fn, context || emitter, once)
+ , evt = prefix ? prefix + event : event;
+
+ if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;
+ else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);
+ else emitter._events[evt] = [emitter._events[evt], listener];
+
+ return emitter;
+}
+
+/**
+ * Clear event by name.
+ *
+ * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.
+ * @param {(String|Symbol)} evt The Event name.
+ * @private
+ */
+function clearEvent(emitter, evt) {
+ if (--emitter._eventsCount === 0) emitter._events = new Events();
+ else delete emitter._events[evt];
+}
+
+/**
+ * Minimal `EventEmitter` interface that is molded against the Node.js
+ * `EventEmitter` interface.
+ *
+ * @constructor
+ * @public
+ */
+function EventEmitter() {
+ this._events = new Events();
+ this._eventsCount = 0;
+}
+
+/**
+ * Return an array listing the events for which the emitter has registered
+ * listeners.
+ *
+ * @returns {Array}
+ * @public
+ */
+EventEmitter.prototype.eventNames = function eventNames() {
+ var names = []
+ , events
+ , name;
+
+ if (this._eventsCount === 0) return names;
+
+ for (name in (events = this._events)) {
+ if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);
+ }
+
+ if (Object.getOwnPropertySymbols) {
+ return names.concat(Object.getOwnPropertySymbols(events));
+ }
+
+ return names;
+};
+
+/**
+ * Return the listeners registered for a given event.
+ *
+ * @param {(String|Symbol)} event The event name.
+ * @returns {Array} The registered listeners.
+ * @public
+ */
+EventEmitter.prototype.listeners = function listeners(event) {
+ var evt = prefix ? prefix + event : event
+ , handlers = this._events[evt];
+
+ if (!handlers) return [];
+ if (handlers.fn) return [handlers.fn];
+
+ for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) {
+ ee[i] = handlers[i].fn;
+ }
+
+ return ee;
+};
+
+/**
+ * Return the number of listeners listening to a given event.
+ *
+ * @param {(String|Symbol)} event The event name.
+ * @returns {Number} The number of listeners.
+ * @public
+ */
+EventEmitter.prototype.listenerCount = function listenerCount(event) {
+ var evt = prefix ? prefix + event : event
+ , listeners = this._events[evt];
+
+ if (!listeners) return 0;
+ if (listeners.fn) return 1;
+ return listeners.length;
+};
+
+/**
+ * Calls each of the listeners registered for a given event.
+ *
+ * @param {(String|Symbol)} event The event name.
+ * @returns {Boolean} `true` if the event had listeners, else `false`.
+ * @public
+ */
+EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
+ var evt = prefix ? prefix + event : event;
+
+ if (!this._events[evt]) return false;
+
+ var listeners = this._events[evt]
+ , len = arguments.length
+ , args
+ , i;
+
+ if (listeners.fn) {
+ if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);
+
+ switch (len) {
+ case 1: return listeners.fn.call(listeners.context), true;
+ case 2: return listeners.fn.call(listeners.context, a1), true;
+ case 3: return listeners.fn.call(listeners.context, a1, a2), true;
+ case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;
+ case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
+ case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
+ }
+
+ for (i = 1, args = new Array(len -1); i < len; i++) {
+ args[i - 1] = arguments[i];
+ }
+
+ listeners.fn.apply(listeners.context, args);
+ } else {
+ var length = listeners.length
+ , j;
+
+ for (i = 0; i < length; i++) {
+ if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);
+
+ switch (len) {
+ case 1: listeners[i].fn.call(listeners[i].context); break;
+ case 2: listeners[i].fn.call(listeners[i].context, a1); break;
+ case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break;
+ case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break;
+ default:
+ if (!args) for (j = 1, args = new Array(len -1); j < len; j++) {
+ args[j - 1] = arguments[j];
+ }
+
+ listeners[i].fn.apply(listeners[i].context, args);
+ }
+ }
+ }
+
+ return true;
+};
+
+/**
+ * Add a listener for a given event.
+ *
+ * @param {(String|Symbol)} event The event name.
+ * @param {Function} fn The listener function.
+ * @param {*} [context=this] The context to invoke the listener with.
+ * @returns {EventEmitter} `this`.
+ * @public
+ */
+EventEmitter.prototype.on = function on(event, fn, context) {
+ return addListener(this, event, fn, context, false);
+};
+
+/**
+ * Add a one-time listener for a given event.
+ *
+ * @param {(String|Symbol)} event The event name.
+ * @param {Function} fn The listener function.
+ * @param {*} [context=this] The context to invoke the listener with.
+ * @returns {EventEmitter} `this`.
+ * @public
+ */
+EventEmitter.prototype.once = function once(event, fn, context) {
+ return addListener(this, event, fn, context, true);
+};
+
+/**
+ * Remove the listeners of a given event.
+ *
+ * @param {(String|Symbol)} event The event name.
+ * @param {Function} fn Only remove the listeners that match this function.
+ * @param {*} context Only remove the listeners that have this context.
+ * @param {Boolean} once Only remove one-time listeners.
+ * @returns {EventEmitter} `this`.
+ * @public
+ */
+EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {
+ var evt = prefix ? prefix + event : event;
+
+ if (!this._events[evt]) return this;
+ if (!fn) {
+ clearEvent(this, evt);
+ return this;
+ }
+
+ var listeners = this._events[evt];
+
+ if (listeners.fn) {
+ if (
+ listeners.fn === fn &&
+ (!once || listeners.once) &&
+ (!context || listeners.context === context)
+ ) {
+ clearEvent(this, evt);
+ }
+ } else {
+ for (var i = 0, events = [], length = listeners.length; i < length; i++) {
+ if (
+ listeners[i].fn !== fn ||
+ (once && !listeners[i].once) ||
+ (context && listeners[i].context !== context)
+ ) {
+ events.push(listeners[i]);
+ }
+ }
+
+ //
+ // Reset the array, or remove it completely if we have no more listeners.
+ //
+ if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;
+ else clearEvent(this, evt);
+ }
+
+ return this;
+};
+
+/**
+ * Remove all listeners, or those of the specified event.
+ *
+ * @param {(String|Symbol)} [event] The event name.
+ * @returns {EventEmitter} `this`.
+ * @public
+ */
+EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {
+ var evt;
+
+ if (event) {
+ evt = prefix ? prefix + event : event;
+ if (this._events[evt]) clearEvent(this, evt);
+ } else {
+ this._events = new Events();
+ this._eventsCount = 0;
+ }
+
+ return this;
+};
+
+//
+// Alias methods names because people roll like that.
+//
+EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
+EventEmitter.prototype.addListener = EventEmitter.prototype.on;
+
+//
+// Expose the prefix.
+//
+EventEmitter.prefixed = prefix;
+
+//
+// Allow `EventEmitter` to be imported as module namespace.
+//
+EventEmitter.EventEmitter = EventEmitter;
+
+//
+// Expose the module.
+//
+if ('undefined' !== typeof module) {
+ module.exports = EventEmitter;
+}
+
+}, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
+return __REQUIRE__(1698905245833);
+})()
+//miniprogram-npm-outsideDeps=[]
//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/CHANGELOG.md b/src/openeuler/miniprogram_npm/tdesign-miniprogram/CHANGELOG.md
deleted file mode 100644
index 02a0865..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/CHANGELOG.md
+++ /dev/null
@@ -1,1323 +0,0 @@
----
-title: 更新日志
-spline: explain
-toc: false
-docClass: timeline
----
-
-## 🌈 1.0.0-rc.1 `2023-01-18`
-### ❗ BREAKING CHANGES
-- `Dialog`: 移除内置的 input 样式 @LeeJim ([#1516](https://github.com/Tencent/tdesign-miniprogram/pull/1516))
-- `Input`: 优化 DOM,移除外置的 wapper 元素 @LeeJim ([#1516](https://github.com/Tencent/tdesign-miniprogram/pull/1516))
-
-### 🚀 Features
-- `Cell`: 新增底边框左右边距 CSS Variables @anlyyao ([#1515](https://github.com/Tencent/tdesign-miniprogram/pull/1515))
-- `Cell`: 补充 CSS Variables @anlyyao ([#1517](https://github.com/Tencent/tdesign-miniprogram/pull/1517))
-- `SideBar`: 支持传入 Icon @LeeJim ([#1520](https://github.com/Tencent/tdesign-miniprogram/pull/1520))
-- `Tabs`: 支持传入 icon @LeeJim ([#1519](https://github.com/Tencent/tdesign-miniprogram/pull/1519))
-### 🐞 Bug Fixes
-- `Upload`: 修复 add-content 不生效的问题 @LeeJim ([#1507](https://github.com/Tencent/tdesign-miniprogram/pull/1507))
-- `Upload`: 优化插槽渲染,不再需要传入 add-content = 'slot' @LeeJim ([#1507](https://github.com/Tencent/tdesign-miniprogram/pull/1507))
-- `Cascader`: 修复 slot 无法使用的问题 @LeeJim ([#1508](https://github.com/Tencent/tdesign-miniprogram/pull/1508))
-- `Picker`: 修复样式、优化布局以及交互体验 @LeeJim ([#1513](https://github.com/Tencent/tdesign-miniprogram/pull/1513))
-- `Swiper`: 修复 `autoplay` 状态下,`swiper` 偶现左右抖动问题 @anlyyao ([#1494](https://github.com/Tencent/tdesign-miniprogram/pull/1494))
-
-## 🌈 1.0.0-rc `2023-01-12`
-### ❗ Breaking Changes
-- 全部组件开启 vritualHost,当基础库版本低于 2.19.2 自动关闭 @LeeJim ([#1495](https://github.com/Tencent/tdesign-miniprogram/pull/1495))
-- 全部组件使用 style 属性替代 customStyle @LeeJim ([#1495](https://github.com/Tencent/tdesign-miniprogram/pull/1495))
-- `Tabs`: 废弃 placement 属性,左右布局请使用 SideBar 组件 @LeeJim ([#1492](https://github.com/Tencent/tdesign-miniprogram/pull/1492))
-
-### 🚀 Features
-- `Cell`: 新增 CSS Varialbes 用于控制高度 @LeeJim ([#1482](https://github.com/Tencent/tdesign-miniprogram/pull/1482))
-- `Indexes`: 新增支持 stickyOffset 属性,用于调整吸顶时的距离 @LeeJim ([#1485](https://github.com/Tencent/tdesign-miniprogram/pull/1485))
-- `Button`: 支持 0.5px 边框 @anlyyao ([#1474](https://github.com/Tencent/tdesign-miniprogram/pull/1474))
-
-### 🐞 Bug Fixes
-- `Button`: 修复 `shape = 'round'` 或 `‘circle’` 时,`border`样式错误 @anlyyao ([#1491](https://github.com/Tencent/tdesign-miniprogram/pull/1491))
-- `Calendar`: 修复视觉问题 @LeeJim ([#1473](https://github.com/Tencent/tdesign-miniprogram/pull/1473))
-- `Collapse`: 当 panel 内容为动态内容时,支持展开 @LeeJim ([#1477](https://github.com/Tencent/tdesign-miniprogram/pull/1477))
-- `Textarea`: 支持自适应父容器高度 @anlyyao ([#1484](https://github.com/Tencent/tdesign-miniprogram/pull/1484))
-- `Dialog`: 修复 confirmBtn 为 string 类型时,样式错误 @anlyyao ([#1474](https://github.com/Tencent/tdesign-miniprogram/pull/1474))
-- `Stepper`: 修复 `theme='normal'`时禁用态视觉错误 @anlyyao ([#1487](https://github.com/Tencent/tdesign-miniprogram/pull/1487))
-- `Rate`: 修复半选时 tips 的图标 @LeeJim ([#1490](https://github.com/Tencent/tdesign-miniprogram/pull/1490))
-- `Collapse`: 面板收起时,隐藏 header 的边框 @LeeJim ([#1493](https://github.com/Tencent/tdesign-miniprogram/pull/1493))
-
-## 🌈 0.34.0 `2023-01-09`
-### ❗ Breaking Changes
-- `Avatar`: 优化类名,符合 BEM 规范 @LeeJim ([#1441](https://github.com/Tencent/tdesign-miniprogram/pull/1441))
-- `Button`: 优化类名,符合 BEM 规范 @anlyyao ([#1352](https://github.com/Tencent/tdesign-miniprogram/pull/1352))
-- `Input`: 移除 size 属性 @anlyyao ([#1381](https://github.com/Tencent/tdesign-miniprogram/pull/1381))
-- `Input`: 属性 borderless 默认值变更为 false @anlyyao ([#1381](https://github.com/Tencent/tdesign-miniprogram/pull/1381))
-- `Avatar`: 将 avatar-group 的路径调整为 `tdesign-miniprogram/avatar-group/avatar-group` @LeeJim ([#1452](https://github.com/Tencent/tdesign-miniprogram/pull/1452))
-- `Collapse`: 将 collapse-panel 的路径调整为 `tdesign-miniprogram/collapse-panel/collapse-panel` @LeeJim ([#1453](https://github.com/Tencent/tdesign-miniprogram/pull/1453))
-- `DropdownMenu`: 将 dropdown-item 的路径调整为 `tdesign-miniprogram/dropdown-item/dropdown-item` @LeeJim ([#1454](https://github.com/Tencent/tdesign-miniprogram/pull/1454))
-- `Picker`: 将 picker-item 的路径调整为 `tdesign-miniprogram/picker-item/picker-item` @LeeJim ([#1455](https://github.com/Tencent/tdesign-miniprogram/pull/1455))
-- `Steps`: 将 step-item 的路径调整为 `tdesign-miniprogram/step-item/step-item` @LeeJim ([#1456](https://github.com/Tencent/tdesign-miniprogram/pull/1456))
-- `Swiper`: 将 swiper-nav 的路径调整为 `tdesign-miniprogram/swiper-nav/swiper-nav` @LeeJim ([#1457](https://github.com/Tencent/tdesign-miniprogram/pull/1457))
-- `Grid`: 将 grid-item 的路径调整为 `tdesign-miniprogram/grid-item/grid-item` @LeeJim ([#1459](https://github.com/Tencent/tdesign-miniprogram/pull/1459))
-- `TabBar`: 将 tab-bar-item 的路径调整为 `tdesign-miniprogram/tab-bar-item/tab-bar-item` @LeeJim ([#1460](https://github.com/Tencent/tdesign-miniprogram/pull/1460))
-- `Tabs`: 将 tab-panel 的路径调整为 `tdesign-miniprogram/tab-panel/tab-panel` @LeeJim ([#1462](https://github.com/Tencent/tdesign-miniprogram/pull/1462))
-- `Tag`: 将 check-tag 的路径调整为 `tdesign-miniprogram/check-tag/check-tag` @LeeJim ([#1466](https://github.com/Tencent/tdesign-miniprogram/pull/1466))
-
-### 🚀 Features
-- `ActionSheet`: 支持透传 image 至 Grid 组件 @LeeJim ([#1382](https://github.com/Tencent/tdesign-miniprogram/pull/1382))
-- `Swiper`: 属性 navigation 支持 boolean,默认值为 true @LeeJim ([#1387](https://github.com/Tencent/tdesign-miniprogram/pull/1387))
-- `SwiperNav`: 新增属性用于单独控制 @LeeJim ([#1387](https://github.com/Tencent/tdesign-miniprogram/pull/1387))
-- `Indexes`: 增加 change 事件 @LeeJim ([#1403](https://github.com/Tencent/tdesign-miniprogram/pull/1403))
-- `Indexes`: 修复视觉问题 @LeeJim ([#1403](https://github.com/Tencent/tdesign-miniprogram/pull/1403))
-- `Swiper`: 新增 image-props 属性 @LeeJim ([#1411](https://github.com/Tencent/tdesign-miniprogram/pull/1411))
-- `Button`: 新增部分 CSS Variables @anlyyao ([#1407](https://github.com/Tencent/tdesign-miniprogram/pull/1407))
-- `Swiper`: 增加 click 事件 @LeeJim ([#1420](https://github.com/Tencent/tdesign-miniprogram/pull/1420))
-- `PullDownRefresh`: 新增 scroll 事件 @LeeJim ([#1424](https://github.com/Tencent/tdesign-miniprogram/pull/1424))
-- `BackTop`: 放置 pull-down-refresh 内部时,将会滚动该容器到顶部 @LeeJim ([#1424](https://github.com/Tencent/tdesign-miniprogram/pull/1424))
-- `Swiper`: 增加 click 事件 @LeeJim ([#1435](https://github.com/Tencent/tdesign-miniprogram/pull/1435))
-- `Collapse`: 新增 placmen 属性,支持内容面板在上方 @LeeJim ([#1446](https://github.com/Tencent/tdesign-miniprogram/pull/1446))
-- `Calendar`: 新增 auto-close 属性,以及 close 事件 @LeeJim ([#1448](https://github.com/Tencent/tdesign-miniprogram/pull/1448))
-- `Textarea`: 补充 cursor、disableDefaultPadding、showConfirmBar、 selection-Start、 selectionEnd、holdKeyboard 等属性 @anlyyao ([#1463](https://github.com/Tencent/tdesign-miniprogram/pull/1463))
-- `Textarea`: 补充 keyboardheightchange 事件 @anlyyao ([#1463](https://github.com/Tencent/tdesign-miniprogram/pull/1463))
-
-### 🐞 Bug Fixes
-- `ActionSheet`: 修复视觉问题 @LeeJim ([#1382](https://github.com/Tencent/tdesign-miniprogram/pull/1382))
-- `SideBar`: 支持选项标题换行 @LeeJim ([#1392](https://github.com/Tencent/tdesign-miniprogram/pull/1392))
-- `TreeSelect`: 修复视觉问题 @LeeJim ([#1401](https://github.com/Tencent/tdesign-miniprogram/pull/1401))
-- `Avatar`: 修复 cascading = ‘left-up' 时,位置不正确问题 @anlyyao ([#1413](https://github.com/Tencent/tdesign-miniprogram/pull/1413))
-- `Radio`: 修复 a11y 的点击事件 @LeeJim ([#1416](https://github.com/Tencent/tdesign-miniprogram/pull/1416))
-- `Checkbox`: 修复 a11y 的点击事件 @LeeJim ([#1416](https://github.com/Tencent/tdesign-miniprogram/pull/1416))
-- `Dialog`: 修复 Dialog 的按钮不能使用 ghost 和 shape 属性的问题 @anlyyao ([#1407](https://github.com/Tencent/tdesign-miniprogram/pull/1407))
-- `ActionSheet`: 移除 focus 样式 @byq1213 ([#1427](https://github.com/Tencent/tdesign-miniprogram/pull/1427))
-- `Badge`: 修复样式问题 @LeeJim ([#1429](https://github.com/Tencent/tdesign-miniprogram/pull/1429))
-- `Toast`: 禁止 toast 区域滑动 @LeeJim ([#1430](https://github.com/Tencent/tdesign-miniprogram/pull/1430))
-- `Icon`: 移除无效的 behaviors @LeeJim ([#1434](https://github.com/Tencent/tdesign-miniprogram/pull/1434))
-- `Slider`: 优化刻度样式,以及默认风格时滑动的距离 @LeeJim ([#1440](https://github.com/Tencent/tdesign-miniprogram/pull/1440))
-- `Collapse`: 修复在 Android 下部分机型收起延迟的问题 @LeeJim ([#1445](https://github.com/Tencent/tdesign-miniprogram/pull/1445))
-- `SwipeCell`: 修复滑动距离计算错误 @anlyyao ([#1449](https://github.com/Tencent/tdesign-miniprogram/pull/1449))
-- `Textarea`: 修复 model:value 无效的问题 @anlyyao ([#1463](https://github.com/Tencent/tdesign-miniprogram/pull/1463))
-
-## 🌈 0.33.0 `2023-01-02`
-### ❗ Breaking Changes
-- `Swiper`: 增加 `18rpx` 的圆角,并支持 CSS Variables,移除了图片的 shape @LeeJim ([#1327](https://github.com/Tencent/tdesign-miniprogram/pull/1327))
-- `Rate`: 修复 gap 取值错误,移除 disabled 的样式 @LeeJim ([#1350](https://github.com/Tencent/tdesign-miniprogram/pull/1350))
-- `Avatar`: 移除 iconProps 属性,属性 icon 支持传入对象 @anlyyao ([#1295](https://github.com/Tencent/tdesign-miniprogram/pull/1295))
-- `Button`: 移除 iconProps 属性,属性 icon 支持传入对象 @anlyyao ([#1295](https://github.com/Tencent/tdesign-miniprogram/pull/1295))
-- `Empty`: 移除 iconProps 属性,属性 icon 支持传入对象 @anlyyao ([#1295](https://github.com/Tencent/tdesign-miniprogram/pull/1295))
-- `GridItem`: 移除 iconProps 属性,属性 icon 支持传入对象 @anlyyao ([#1295](https://github.com/Tencent/tdesign-miniprogram/pull/1295))
-- `ImageViewer`: 移除 deleteIconProps、closeIconProps 属性,属性 delete-btn、close-btn 支持传入对象 @anlyyao ([#1295](https://github.com/Tencent/tdesign-miniprogram/pull/1295))
-- `Result`: 移除 iconProps 属性,属性 icon 支持传入对象 @anlyyao ([#1295](https://github.com/Tencent/tdesign-miniprogram/pull/1295))
-- docs: 文档 button 属性使用错误 @AuYuHui ([#1347](https://github.com/Tencent/tdesign-miniprogram/pull/1347))
-- `NavBar`: 胶囊相关 CSS Variables 命名变更 @LeeJim ([#1372](https://github.com/Tencent/tdesign-miniprogram/pull/1372))
-
-### 🚀 Features
-- `Cascader`: 自动定位到已选的 radio 项 @LeeJim ([#1326](https://github.com/Tencent/tdesign-miniprogram/pull/1326))
-- `tag`: 属性 icon 支持对象,透传至 icon 组件 @LeeJim ([#1358](https://github.com/Tencent/tdesign-miniprogram/pull/1358))
-- `CheckTag`: 属性 content 支持数组类型,用于显示已选/未选文案 @LeeJim ([#1358](https://github.com/Tencent/tdesign-miniprogram/pull/1358))
-- `Cell`: 支持无障碍访问 @lsdyi ([#1212](https://github.com/Tencent/tdesign-miniprogram/pull/1212))
-- `DropdownMenu`: 支持无障碍访问 @Lindddt ([#1285](https://github.com/Tencent/tdesign-miniprogram/pull/1285))
-- `Indexes`: 支持无障碍访问 @Leon-z ([#1237](https://github.com/Tencent/tdesign-miniprogram/pull/1237))
-- `Cell`: 支持无障碍访问 @lsdyi ([#1212](https://github.com/Tencent/tdesign-miniprogram/pull/1212))
-- `Indexes`: 支持无障碍访问 @Leon-z ([#1237](https://github.com/Tencent/tdesign-miniprogram/pull/1237))
-- `Badge`: 支持无障碍访问 @yaogengzhu ([#1196](https://github.com/Tencent/tdesign-miniprogram/pull/1196))
-- `Progress`: 支持无障碍访问 @yaogengzhu ([#1283](https://github.com/Tencent/tdesign-miniprogram/pull/1283))
-- `TreeSelect): 支持无障碍访问 @Leon-z ([#1355](https://github.com/Tencent/tdesign-miniprogram/pull/1355))
-- `ActionSheet`: 支持无障碍访问 @byq1213 ([#1235](https://github.com/Tencent/tdesign-miniprogram/pull/1235))
-- `Switch`: 支持无障碍访问 @byq1213 ([#1279](https://github.com/Tencent/tdesign-miniprogram/pull/1279))
-- `Slider`: 支持无障碍访问 @byq1213 ([#1360](https://github.com/Tencent/tdesign-miniprogram/pull/1360))
-
-### 🐞 Bug Fixes
-- `Empty`: 移除无用示例,更新占位图片 @anlyyao ([#1314](https://github.com/Tencent/tdesign-miniprogram/pull/1314))
-- `NoticeBar`: 修复示例样式问题 @anlyyao ([#1314](https://github.com/Tencent/tdesign-miniprogram/pull/1314))
-- `Cascader`: 修复视觉问题 @LeeJim ([#1326](https://github.com/Tencent/tdesign-miniprogram/pull/1326))
-- `Result`: 修复视觉问题 @anlyyao ([#1325](https://github.com/Tencent/tdesign-miniprogram/pull/1325))
-- `PullDownRefresh`: 修复示例视觉错误,并移除无关示例 @anlyyao ([#1333](https://github.com/Tencent/tdesign-miniprogram/pull/1333))
-- `Progress`: 修复视觉问题 @anlyyao ([#1328](https://github.com/Tencent/tdesign-miniprogram/pull/1328))
-- `Tabs`: 修复视觉问题 @LeeJim ([#1339](https://github.com/Tencent/tdesign-miniprogram/pull/1339))
-- `Tabs`: 修复激活项定位的问题 @LeeJim ([#1339](https://github.com/Tencent/tdesign-miniprogram/pull/1339))
-- `Steps`: 修复垂直样式不对齐的问题 @LeeJim ([#1351](https://github.com/Tencent/tdesign-miniprogram/pull/1351))
-- `Stepper`: 修复组件视觉错误 @anlyyao ([#1356](https://github.com/Tencent/tdesign-miniprogram/pull/1356))
-- `CheckTag`: 修复非受控用法 @LeeJim ([#1358](https://github.com/Tencent/tdesign-miniprogram/pull/1358))
-- `CheckTag`: 修复 content 不可用的问题 @LeeJim ([#1358](https://github.com/Tencent/tdesign-miniprogram/pull/1358))
-- `Drawer`: 修复样式问题 @LeeJim ([#1359](https://github.com/Tencent/tdesign-miniprogram/pull/1359))
-- `Upload`: 修复样式问题 @LeeJim ([#1365](https://github.com/Tencent/tdesign-miniprogram/pull/1365))
-- `DropdownMenu`: 修复重置逻辑,调整字体大小 @LeeJim ([#1363](https://github.com/Tencent/tdesign-miniprogram/pull/1363))
-- `TabBar`: 修复视觉问题 @LeeJim ([#1369](https://github.com/Tencent/tdesign-miniprogram/pull/1369))
-- `Checkbox`: 修复水平布局时垂直居中的问题 @LeeJim ([#1371](https://github.com/Tencent/tdesign-miniprogram/pull/1371))
-- `NavBar`: 修复视觉问题 @LeeJim ([#1372](https://github.com/Tencent/tdesign-miniprogram/pull/1372))
-- `Navbar`: 修复 custom-style 属性的响应式问题 @LeeJim ([#1374](https://github.com/Tencent/tdesign-miniprogram/pull/1374))
-
-## 🌈 0.32.0 `2022-12-27`
-### ❗ Breaking Changes
-- 全局修正插槽名称,保持和文档一致,使用 kebab-case @LeeJim ([#1277](https://github.com/Tencent/tdesign-miniprogram/pull/1277))
-- `ButtonGroup`: 移除该组件 @LeeJim ([#1289](https://github.com/Tencent/tdesign-miniprogram/pull/1289))
-- `DropdownMenu`: 调整外部样式类命名、DOM @LeeJim ([#1259](https://github.com/Tencent/tdesign-miniprogram/pull/1259))
-- `DropdownMenu`: 废弃 optionsLayout 属性,移除 tree 相关逻辑,独立出 treeSelect 组件 @LeeJim ([#1265](https://github.com/Tencent/tdesign-miniprogram/pull/1265))
-- `DropdownMenu`: 变更外部样式类命名 @LeeJim ([#1265](https://github.com/Tencent/tdesign-miniprogram/pull/1265))
-- `Indexes`: 不再依赖 Cell ,独立出锚点组件,可自定义内容 @LeeJim ([#1267](https://github.com/Tencent/tdesign-miniprogram/pull/1267))
-- `Indexes`: 移除 height 属性 @LeeJim ([#1271](https://github.com/Tencent/tdesign-miniprogram/pull/1271))
-- `Indexes`: 移除 scroll-view,使用全局滚动 @LeeJim ([#1271](https://github.com/Tencent/tdesign-miniprogram/pull/1271))
-- `CheckTag`: 移除 closable、shape 属性,以及 close 事件 @LeeJim ([#1274](https://github.com/Tencent/tdesign-miniprogram/pull/1274))
-- `Swiper`: 基于原生 swiper 组件改造,移除 t-swiper-item 组件,新增 list 属性。 @LeeJim ([#1282](https://github.com/Tencent/tdesign-miniprogram/pull/1282))
-- `SwiperNav`: 属性 show-nav-btn 更名为 show-controls @LeeJim ([#1282](https://github.com/Tencent/tdesign-miniprogram/pull/1282))
-- `Input`: 移除聚焦相关样式 @anlyyao ([#1247](https://github.com/Tencent/tdesign-miniprogram/pull/1247))
-
-### 🚀 Features
-- `Link`: 新增链接组件 @anlyyao ([#1236](https://github.com/Tencent/tdesign-miniprogram/pull/1236))
-- `TreeSelect`: 新增树形选择组件 @LeeJim ([#1262](https://github.com/Tencent/tdesign-miniprogram/pull/1262))
-- `IndexesAnchor`: 新增索引锚点组件 @LeeJim ([#1267](https://github.com/Tencent/tdesign-miniprogram/pull/1267))
-- `DropdownMenu`: 视觉升级 @LeeJim ([#1259](https://github.com/Tencent/tdesign-miniprogram/pull/1259))
-- `Indexes`: 视觉升级 @LeeJim ([#1267](https://github.com/Tencent/tdesign-miniprogram/pull/1267))
-- `Calendar`: 支持 CSS Variables,可自定义主题 @LeeJim ([#1252](https://github.com/Tencent/tdesign-miniprogram/pull/1252))
-- `Collapse`: 支持 CSS Variables,可自定义主题 @LeeJim ([#1273](https://github.com/Tencent/tdesign-miniprogram/pull/1273))
-- `Swiper`: 支持 CSS Variables,可自定义主题 @LeeJim ([#1282](https://github.com/Tencent/tdesign-miniprogram/pull/1282))
-- `Overlay`: 支持 CSS Variables,可自定义主题 @LeeJim ([#1258](https://github.com/Tencent/tdesign-miniprogram/pull/1258))
-- `DropdownMenu`: 支持 CSS Variables,可自定义主题 @LeeJim ([#1259](https://github.com/Tencent/tdesign-miniprogram/pull/1259))
-- `Calendar`: 新增 usePopup 属性,支持不使用弹出层用法 @LeeJim ([#1252](https://github.com/Tencent/tdesign-miniprogram/pull/1252))
-- `DropdownMenu`: 可通过 value 和 options 自动切换 label @LeeJim ([#1265](https://github.com/Tencent/tdesign-miniprogram/pull/1265))
-- `CheckTag`: 新增 click 事件 @LeeJim ([#1274](https://github.com/Tencent/tdesign-miniprogram/pull/1274))
-- `Input`: 新增 click 事件 @anlyyao ([#1247](https://github.com/Tencent/tdesign-miniprogram/pull/1247))
-- `Popup`: 支持无障碍访问 @zhangpaopao0609 ([#1189](https://github.com/Tencent/tdesign-miniprogram/pull/1189))
-- `Input`: 支持无障碍访问 @szu-bee ([#1246](https://github.com/Tencent/tdesign-miniprogram/pull/1246))
-- `Empty`: 支持无障碍访问 @huaiyinfeilong ([#1187](https://github.com/Tencent/tdesign-miniprogram/pull/1187))
-- `Tag`: 支持无障碍访问 @huaiyinfeilong ([#1220](https://github.com/Tencent/tdesign-miniprogram/pull/1220))
-- `Link`: 支持无障碍访问 @byq1213 ([#1263](https://github.com/Tencent/tdesign-miniprogram/pull/1263))
-
-### 🐞 Bug Fixes
-- `Popup`: 修复 placement 不支持响应式的问题 @LeeJim ([#1257](https://github.com/Tencent/tdesign-miniprogram/pull/1257))
-- `Checkbox`: 修复图标右侧显示时 border 样式错误的问题 @LeeJim ([#1259](https://github.com/Tencent/tdesign-miniprogram/pull/1259))
-- `Radio`: 修复图标右侧显示时 border 样式错误的问题 @LeeJim ([#1259](https://github.com/Tencent/tdesign-miniprogram/pull/1259))
-- `Search`: 修复 CSS Variables 命名错误的问题 @LeeJim ([#1272](https://github.com/Tencent/tdesign-miniprogram/pull/1272))
-- `Radio`: 修复 icon = line 时,图标错误的问题 @LeeJim ([#1284](https://github.com/Tencent/tdesign-miniprogram/pull/1284))
-- `Checkbox`: 修复 icon = line 时,图标错误的问题 @LeeJim ([#1284](https://github.com/Tencent/tdesign-miniprogram/pull/1284))
-- `Textarea`: 支持 value 变更时更新字符长度 @anlyyao ([#1280](https://github.com/Tencent/tdesign-miniprogram/pull/1280))
-- `Textarea`: 修复 less 变量使用错误 @anlyyao ([#1280](https://github.com/Tencent/tdesign-miniprogram/pull/1280))
-- `NoticeBar`: 修复右侧额外信息行高不正确问题 @anlyyao ([#1281](https://github.com/Tencent/tdesign-miniprogram/pull/1281))
-- `Message`: 修复间距、颜色样式错误问题 @anlyyao ([#1286](https://github.com/Tencent/tdesign-miniprogram/pull/1286))
-
-## 🌈 0.31.0 `2022-12-19`
-### ❗ BREAKING CHANGES
-- `Input`: 移除 clearableIconProps、prefixIconProps、suffixIconProps 属性 @anlyyao ([#1188](https://github.com/Tencent/tdesign-miniprogram/pull/1188))
-- `SwipeCell`: 调整 DOM @anlyyao ([#1201](https://github.com/Tencent/tdesign-miniprogram/pull/1201))
-- `Dialog`: 属性 closeOnOverlayClick 默认值从 true 改成 undefined @LeeJim ([#1240](https://github.com/Tencent/tdesign-miniprogram/pull/1240))
-- `Dialog`: 调整 DOM @LeeJim ([#1240](https://github.com/Tencent/tdesign-miniprogram/pull/1240))
-
-### 🚀 Features
-- `Steps`: 视觉升级 @LeeJim ([#1225](https://github.com/Tencent/tdesign-miniprogram/pull/1225))
-- `Picker`: 视觉升级 @LeeJim ([#1248](https://github.com/Tencent/tdesign-miniprogram/pull/1248))
-- `Dialog`: 视觉升级 @LeeJim ([#1240](https://github.com/Tencent/tdesign-miniprogram/pull/1240))
-- `Dialog`: 新增 closeBtn 属性,支持关闭按钮 @LeeJim ([#1240](https://github.com/Tencent/tdesign-miniprogram/pull/1240))
-- `Dialog`: 支持 CSS Variables,支持主题定制 @LeeJim ([#1240](https://github.com/Tencent/tdesign-miniprogram/pull/1240))
-- `Picker`: 支持 CSS Variables,支持主题定制 @LeeJim ([#1248](https://github.com/Tencent/tdesign-miniprogram/pull/1248))
-- `DateTimePicker`: 支持 CSS Variables,支持主题定制 @LeeJim ([#1248](https://github.com/Tencent/tdesign-miniprogram/pull/1248))
-- `Input`: clearable、prefixIcon、suffixIcon等属性新增 Object 类型,透传至 icon 组件 @anlyyao ([#1188](https://github.com/Tencent/tdesign-miniprogram/pull/1188))
-- `SwipeCell`: 属性 right 和 left 支持使用 icon @anlyyao ([#1201](https://github.com/Tencent/tdesign-miniprogram/pull/1201))
-- `Overlay`: 支持无障碍访问 @szu-bee ([#1205](https://github.com/Tencent/tdesign-miniprogram/pull/1205))
-- `BackTop`: 支持无障碍访问 @szu-bee ([#1206](https://github.com/Tencent/tdesign-miniprogram/pull/1206))
-- `CountDown`: 支持无障碍访问 @szu-bee ([#1207](https://github.com/Tencent/tdesign-miniprogram/pull/1207))
-- `Button`: 支持无障碍访问 @zhangpaopao0609 ([#1149](https://github.com/Tencent/tdesign-miniprogram/pull/1149))
-- `Collapse`: 支持无障碍访问 @gzzhanghao ([#1224](https://github.com/Tencent/tdesign-miniprogram/pull/1224))
-- `Calendar`: 支持无障碍访问 @gzzhanghao ([#1217](https://github.com/Tencent/tdesign-miniprogram/pull/1217))
-- `Fab`: 支持无障碍访问 @zhangpaopao0609 ([#1231](https://github.com/Tencent/tdesign-miniprogram/pull/1231))
-- `Tabs`: 支持无障碍访问 @zhangpaopao0609 ([#1227](https://github.com/Tencent/tdesign-miniprogram/pull/1227))
-- `Overlay`: 支持无障碍访问 @szu-bee ([#1205](https://github.com/Tencent/tdesign-miniprogram/pull/1205))
-- `Collapse`: 支持无障碍访问 @gzzhanghao ([#1224](https://github.com/Tencent/tdesign-miniprogram/pull/1224))
-- `Toast`: 支持无障碍访问 @huaiyinfeilong ([#1210](https://github.com/Tencent/tdesign-miniprogram/pull/1210))
-
-### 🐞 Bug Fixes
-- `TabBar`: 修复圆角下开启安全距离时视觉错误的问题 @LeeJim ([#1223](https://github.com/Tencent/tdesign-miniprogram/pull/1223))
-
-
-## 🌈 0.30.0 `2022-12-12`
-### ❗ BREAKING CHANGE
-- `Rate`: 属性 gap 默认值由 8 调整成 4 @LeeJim ([#1177](https://github.com/Tencent/tdesign-miniprogram/pull/1177))
-- `Rate`: 属性 size 默认值由 20 调整成 24 @LeeJim ([#1177](https://github.com/Tencent/tdesign-miniprogram/pull/1177))
-- `Stepper`: 属性 theme 的 gray 名为 filled,并新增 outline 主题 @anlyyao ([#1191](https://github.com/Tencent/tdesign-miniprogram/pull/1191))
-- `Slider`: 属性 colors 和 disabledColor 移除默认值 @LeeJim ([#1192](https://github.com/Tencent/tdesign-miniprogram/pull/1192))
-- `Calendar`: 按钮的插槽变更成和文档一致:`confirm-btn` @LeeJim ([#1204](https://github.com/Tencent/tdesign-miniprogram/pull/1204))
-
-### 🚀 Features
-- `Rate`: 视觉升级 @LeeJim ([#1177](https://github.com/Tencent/tdesign-miniprogram/pull/1177))
-- `Slider`: 视觉升级 @LeeJim ([#1192](https://github.com/Tencent/tdesign-miniprogram/pull/1192))
-- `Rate`: 新增 color 属性,并支持 CSS Variables @LeeJim ([#1177](https://github.com/Tencent/tdesign-miniprogram/pull/1177))
-- `Rate`: 新增 icon 属性,可自定义图标 @LeeJim ([#1177](https://github.com/Tencent/tdesign-miniprogram/pull/1177))
-- `NoticeBar`: 新增 direction 属性,新支持垂直方向滚动 @anlyyao ([#1036](https://github.com/Tencent/tdesign-miniprogram/pull/1036))
-- `Slider`: 新增 theme 属性,新增胶囊风格 @LeeJim ([#1192](https://github.com/Tencent/tdesign-miniprogram/pull/1192))
-- `Message`: 属性 icon 和 closeBtn 新增 Object 类型透传至 icon 组件 @anlyyao ([#1153](https://github.com/Tencent/tdesign-miniprogram/pull/1153))
-- `BackTop`: 属性 icon 新增支持 Object 类型透传至图标组件,并支持同名插槽 @anlyyao ([#1151](https://github.com/Tencent/tdesign-miniprogram/pull/1151))
-- `NoticeBar`: 属性 content 新增 Array 类型 @anlyyao ([#1036](https://github.com/Tencent/tdesign-miniprogram/pull/1036))
-- `NoticeBar`: 属性 suffixIcon 新增 Object 类型透传至图标组件 @anlyyao ([#1036](https://github.com/Tencent/tdesign-miniprogram/pull/1036))
-- `NoticeBar`: 属性 prefixIcon 新增 Boolean、Object 类型 @anlyyao ([#1036](https://github.com/Tencent/tdesign-miniprogram/pull/1036))
-- `Stepper`: input-width 属性默认单位更新为 px @anlyyao ([#1191](https://github.com/Tencent/tdesign-miniprogram/pull/1191))
-- `Progress`: 属性 theme 支持 plump 和 circle 类型 @anlyyao ([#1178](https://github.com/Tencent/tdesign-miniprogram/pull/1178))
-- `Message`: 新增 CSS Variables, 用于调整信息通知文本、背景颜色 @anlyyao ([#1153](https://github.com/Tencent/tdesign-miniprogram/pull/1153))
-- `BackTop`: 新增 CSS Variables @anlyyao ([#1151](https://github.com/Tencent/tdesign-miniprogram/pull/1151))
-- `Slider`: 支持 CSS Variables @LeeJim ([#1192](https://github.com/Tencent/tdesign-miniprogram/pull/1192))
-- `NoticeBar`: 新增 CSS Variables, 用于调整公告栏文本、背景颜色 @anlyyao ([#1036](https://github.com/Tencent/tdesign-miniprogram/pull/1036))
-- `Stepper`: 新增 CSS Variables, 用于调整步进器文本/图标颜色等 @anlyyao ([#1191](https://github.com/Tencent/tdesign-miniprogram/pull/1191))
-- `Progress`: 新增 CSS Variables, 用于调整进度条背景颜色 @anlyyao ([#1178](https://github.com/Tencent/tdesign-miniprogram/pull/1178))
-- `Grid`: 支持无障碍访问 @zhangpaopao0609 ([#1138](https://github.com/Tencent/tdesign-miniprogram/pull/1138))
-- `NavBar`: 支持无障碍访问 @Lindddt ([#1140](https://github.com/Tencent/tdesign-miniprogram/pull/1140))
-- `TabBar`: 支持无障碍访问 @Isabella327 ([#1148](https://github.com/Tencent/tdesign-miniprogram/pull/1148))
-
-
-### 🐞 Bug Fixes
-
-- `Message`: 修复入场动画错误 @anlyyao ([#1153](https://github.com/Tencent/tdesign-miniprogram/pull/1153))
-- `Calendar`: 修复 `max-date`, `min-date`, `firstDayOfWeek` 无法动态修改的问题 @LeeJim ([#1172](https://github.com/Tencent/tdesign-miniprogram/pull/1172))
-- `Switch`: 修复视觉问题 @LeeJim ([#1186](https://github.com/Tencent/tdesign-miniprogram/pull/1186))
-- `Calendar`: 修复小屏幕适配的问题 @LeeJim ([#1203](https://github.com/Tencent/tdesign-miniprogram/pull/1203))
-- `Calendar`: 修复按钮传入 text 不生效,以及不支持响应式的问题 @LeeJim ([#1204](https://github.com/Tencent/tdesign-miniprogram/pull/1204))
-
-
-## 🌈 0.29.0 `2022-12-05`
-### ❗ BREAKING CHANGES
-- `Loading`: `theme = spinner` 默认颜色改成黑色 @LeeJim ([#1152](https://github.com/Tencent/tdesign-miniprogram/pull/1152))
-- `Loading`: 简化 DOM @LeeJim ([#1152](https://github.com/Tencent/tdesign-miniprogram/pull/1152))
-
-### 🚀 Features
-- `ActionSheet`: 视觉升级 @LeeJim ([#1142](https://github.com/Tencent/tdesign-miniprogram/pull/1142))
-- `Drawer`: 视觉升级 @LeeJim ([#1147](https://github.com/Tencent/tdesign-miniprogram/pull/1147))
-- `Search`: 支持无障碍访问 @Isabella327 ([#1132](https://github.com/Tencent/tdesign-miniprogram/pull/1132))
-- `Message`: 支持无障碍访问 @zhangpaopao0609 ([#1150](https://github.com/Tencent/tdesign-miniprogram/pull/1150))
-- `Stepper`: 支持无障碍访问 @zhangpaopao0609 ([#1144](https://github.com/Tencent/tdesign-miniprogram/pull/1144))
-- `Progress`: 支持无障碍访问 @yaogengzhu ([#1156](https://github.com/Tencent/tdesign-miniprogram/pull/1156))
-- `Image`: 支持无障碍访问 @zhangpaopao0609 ([#1136](https://github.com/Tencent/tdesign-miniprogram/pull/1136))
-- `Radio`: 支持无障碍访问 @byq1213 ([#1139](https://github.com/Tencent/tdesign-miniprogram/pull/1139))
-- `Avatar`: 支持无障碍访问 @byq1213 ([#1137](https://github.com/Tencent/tdesign-miniprogram/pull/1137))
-- `ActionSheet`: 新增 description 和 align 属性 @LeeJim ([#1142](https://github.com/Tencent/tdesign-miniprogram/pull/1142))
-- `Loading`: 支持默认插槽、CSS Variables @LeeJim ([#1152](https://github.com/Tencent/tdesign-miniprogram/pull/1152))
-- `Drawer`: 新增支持 titile 属性,footer 插槽 @LeeJim ([#1147](https://github.com/Tencent/tdesign-miniprogram/pull/1147))
-- `ActionSheet`: 新增支持 CSS Variables @LeeJim ([#1142](https://github.com/Tencent/tdesign-miniprogram/pull/1142))
-
-### 🐞 Bug Fixes
-- `Checkbox`: 修复数组图标无法使用的问题 @LeeJim ([#1135](https://github.com/Tencent/tdesign-miniprogram/pull/1135))
-- `Cascader`: 修复重置 `options = []` 时报错的问题 @LeeJim ([#1163](https://github.com/Tencent/tdesign-miniprogram/pull/1163))
-
-## 🌈 0.28.0 `2022-11-28`
-### ❗ BREAKING CHANGES
-- `Radio`: 调整 icon 属性,新增 dot 类型,并简化原有命名 @LeeJim ([#1098](https://github.com/Tencent/tdesign-miniprogram/pull/1098))
-- `Checkbox`: 移除 color 属性,使用 CSS Variables 代替 @LeeJim ([#1100](https://github.com/Tencent/tdesign-miniprogram/pull/1100))
-- `Search`: 移除 label 属性 @LeeJim ([#1103](https://github.com/Tencent/tdesign-miniprogram/pull/1103))
-- `Textarea`: 类名变更,默认不展示计数器,需设置 indicator = true @anlyyao ([#1097](https://github.com/Tencent/tdesign-miniprogram/pull/1097))
-- `CountDown`: size 属性默认值变更为 `medium` @anlyyao ([#1085](https://github.com/Tencent/tdesign-miniprogram/pull/1085))
-- `Calendar`: 事件返回参数改成时间戳,保持和 value 一致 @LeeJim ([#1120](https://github.com/Tencent/tdesign-miniprogram/pull/1120))
-- `Input`: 外部样式类 t-class-icon 变更为 t-class-prefix-icon @anlyyao ([#1109](https://github.com/Tencent/tdesign-miniprogram/pull/1109))
-- `Input`: size 属性默认值变更为 medium @anlyyao ([#1109](https://github.com/Tencent/tdesign-miniprogram/pull/1109))
-
-### 🚀 Features
-- `Radio`: 视觉更新 @LeeJim ([#1098](https://github.com/Tencent/tdesign-miniprogram/pull/1098))
-- `Checkbox`: 视觉升级 @LeeJim ([#1100](https://github.com/Tencent/tdesign-miniprogram/pull/1100))
-- `Search`: 视觉升级 @LeeJim ([#1103](https://github.com/Tencent/tdesign-miniprogram/pull/1103))
-- `Radio`: 新增 block 属性,支持横向布局 @LeeJim ([#1098](https://github.com/Tencent/tdesign-miniprogram/pull/1098))
-- `Radio`: 支持 icon 同名插槽 @LeeJim ([#1098](https://github.com/Tencent/tdesign-miniprogram/pull/1098))
-- `Checkbox`: 新增 block 属性,支持横向布局 @LeeJim ([#1100](https://github.com/Tencent/tdesign-miniprogram/pull/1100))
-- `Checkbox`: 属性 icon 新增 string 类型,可选值为 circle/line/rectangle @LeeJim ([#1100](https://github.com/Tencent/tdesign-miniprogram/pull/1100))
-- `Search`: 支持更多 CSS Variables @LeeJim ([#1103](https://github.com/Tencent/tdesign-miniprogram/pull/1103))
-- `Textarea`: 新增 placeholderStyle、fixed 、bordered、 indicator 等属性 @anlyyao ([#1097](https://github.com/Tencent/tdesign-miniprogram/pull/1097))
-- `Textarea`: 新增 CSS Variables, 用于调整文本框背景、输入文本颜色 @anlyyao ([#1097](https://github.com/Tencent/tdesign-miniprogram/pull/1097))
-- `Textarea`: 外部样式类新增 t-class-indicator @anlyyao ([#1097](https://github.com/Tencent/tdesign-miniprogram/pull/1097))
-- `CountDown`: 外部样式类新增 `t-class-count` 和 `t-class-split` @anlyyao ([#1085](https://github.com/Tencent/tdesign-miniprogram/pull/1085))
-- `CountDown`: 新增 CSS Variables, 用于调整倒计时背景、文本颜色 @anlyyao ([#1085](https://github.com/Tencent/tdesign-miniprogram/pull/1085))
-- `Input`: 新增支持 type = nickname @LeeJim ([#1115](https://github.com/Tencent/tdesign-miniprogram/pull/1115))
-- `Calendar`: 自动滚动到 value 对应的月份 @LeeJim ([#1119](https://github.com/Tencent/tdesign-miniprogram/pull/1119))
-- `Calendar`: 新增 change 事件,在不显示确认按钮时使用 @LeeJim ([#1120](https://github.com/Tencent/tdesign-miniprogram/pull/1120))
-- `Checkbox`: 无障碍支持 @Isabella327 ([#1105](https://github.com/Tencent/tdesign-miniprogram/pull/1105))
-- `Grid`: 新增 iconProps 属性 @anlyyao ([#1123](https://github.com/Tencent/tdesign-miniprogram/pull/1123))
-- `Icon`: 新增支持 `aira-*` 属性 @LeeJim ([#1127](https://github.com/Tencent/tdesign-miniprogram/pull/1127))
-- `Input`: 完成 status 和 tips 属性开发 @anlyyao ([#1109](https://github.com/Tencent/tdesign-miniprogram/pull/1109))
-- `Input`: 新增 layout、clearableIconProps、suffixIconProps、 prefixIconProps属性 @anlyyao ([#1109](https://github.com/Tencent/tdesign-miniprogram/pull/1109))
-- `Input`: 新增 CSS Variables @anlyyao ([#1109](https://github.com/Tencent/tdesign-miniprogram/pull/1109))
-- `Input`: 外部样式新增 t-class-tips @anlyyao ([#1109](https://github.com/Tencent/tdesign-miniprogram/pull/1109))
-### 🐞 Bug Fixes
-- `Tabs`: 修复渲染 panel 时闪烁的问题 @LeeJim ([#1093](https://github.com/Tencent/tdesign-miniprogram/pull/1093))
-- `Result`: 修复装饰性图标获取焦点的问题 @aomnisz ([#1082](https://github.com/Tencent/tdesign-miniprogram/pull/1082))
-- `Tabs`: 修复 placement=left 时,面板内容不显示问题 @anlyyao ([#1099](https://github.com/Tencent/tdesign-miniprogram/pull/1099))
-- `Toast`: 支持文字换行 @LeeJim ([#1107](https://github.com/Tencent/tdesign-miniprogram/pull/1107))
-- `Tabs`: 修复 panel 切换的问题 @LeeJim ([#1106](https://github.com/Tencent/tdesign-miniprogram/pull/1106))
-- `Textarea`: maxlength 默认值变更为 -1 @anlyyao ([#1097](https://github.com/Tencent/tdesign-miniprogram/pull/1097))
-- `Tabs`: 修复下标不显示的问题 @LeeJim ([#1111](https://github.com/Tencent/tdesign-miniprogram/pull/1111))
-- `Footer`: 支持无障碍 @Isabella327 ([#1104](https://github.com/Tencent/tdesign-miniprogram/pull/1104))
-- `NavBar`: 修复背景色失效的问题 @LeeJim ([#1116](https://github.com/Tencent/tdesign-miniprogram/pull/1116))
-- `Calendar`: 修复受控用法 @LeeJim ([#1119](https://github.com/Tencent/tdesign-miniprogram/pull/1119))
-- `Calendar`: 修复 confirm-btn = null 时仍显示按钮的问题 @LeeJim ([#1120](https://github.com/Tencent/tdesign-miniprogram/pull/1120))
-- `Cell`: 新增支持 CSS Variables @LeeJim ([#1117](https://github.com/Tencent/tdesign-miniprogram/pull/1117))
-- `Popup`: 修复 Popup 以及底层依赖 Popup 的组件无法滚动的问题 @LeeJim ([#1125](https://github.com/Tencent/tdesign-miniprogram/pull/1125))
-- `Loading`: 修复尺寸问题 @LeeJim ([#1128](https://github.com/Tencent/tdesign-miniprogram/pull/1128))
-- `Result`: 修复装饰性图标获取焦点的问题 @aomnisz ([#1082](https://github.com/Tencent/tdesign-miniprogram/pull/1082))
-- `Footer`: 支持无障碍 @Isabella327 ([#1104](https://github.com/Tencent/tdesign-miniprogram/pull/1104))
-
-## 🌈 0.27.0 `2022-11-21`
-### ❗️BREAKING CHANGES
-- `Divider`: 移除 line-color 属性,使用 CSS Variables 代替 @LeeJim ([#1035](https://github.com/Tencent/tdesign-miniprogram/pull/1035))
-- `Upload`: 数据对象 file 新增 status 字段,不再以 percent 区分 @LeeJim ([#1034](https://github.com/Tencent/tdesign-miniprogram/pull/1034))
-- `Switch`: 移除 colors 属性,使用 CSS Variables 代替 @LeeJim ([#1080](https://github.com/Tencent/tdesign-miniprogram/pull/1080))
-- `Switch`: 调整 label 的类型,改成 Array 类型,同时调整显示位置 @LeeJim ([#1080](https://github.com/Tencent/tdesign-miniprogram/pull/1080))
-- `Badge`: 移除 shape 属性的 square 类型,新增 bubble 类型 @LeeJim ([#1004](https://github.com/Tencent/tdesign-miniprogram/pull/1004))
-
-### 🚀 Features
-- `Divider`: 视觉升级 @LeeJim ([#1035](https://github.com/Tencent/tdesign-miniprogram/pull/1035))
-- `Upload`: 视觉升级 @LeeJim ([#1034](https://github.com/Tencent/tdesign-miniprogram/pull/1034))
-- `Image`: 视觉升级 @LeeJim ([#1038](https://github.com/Tencent/tdesign-miniprogram/pull/1038))
-- `Toast`: 视觉升级 @LeeJim ([#1073](https://github.com/Tencent/tdesign-miniprogram/pull/1073))
-- `Skeleton`: 视觉升级 @anlyyao ([#1037](https://github.com/Tencent/tdesign-miniprogram/pull/1037))
-- `Switch`: 视觉升级 @LeeJim ([#1080](https://github.com/Tencent/tdesign-miniprogram/pull/1080))
-- `Badge`: 视觉升级 @LeeJim ([#1004](https://github.com/Tencent/tdesign-miniprogram/pull/1004))
-- `Collapse`: 新增 theme 属性,支持 card 风格 @LeeJim ([#1039](https://github.com/Tencent/tdesign-miniprogram/pull/1039))
-- `Image`: 新增 `width` 和 `height` 属性用于控制图片尺寸 @LeeJim ([#1038](https://github.com/Tencent/tdesign-miniprogram/pull/1038))
-- `Empty`: 新增 iconProps 属性 @anlyyao ([#1041](https://github.com/Tencent/tdesign-miniprogram/pull/1041))
-- `Empty`: 新增 CSS Variables, 用于调整描述、操作内容文本颜色和间距等 @anlyyao ([#1041](https://github.com/Tencent/tdesign-miniprogram/pull/1041))
-- `Result`: 新增 iconProps 属性 @anlyyao ([#1040](https://github.com/Tencent/tdesign-miniprogram/pull/1040))
-- `Result`: 新增 CSS Variables, 用于调整标题、描述文本颜色 @anlyyao ([#1040](https://github.com/Tencent/tdesign-miniprogram/pull/1040))
-- `Skeleton`: 新增 CSS Variables, 用于调整骨架屏背景颜色、行间距等 @anlyyao ([#1037](https://github.com/Tencent/tdesign-miniprogram/pull/1037))
-- `ImageViewer`: 新增 closeIconProps 和 deleteIconProps 属性 @anlyyao ([#1074](https://github.com/Tencent/tdesign-miniprogram/pull/1074))
-- `ImageViewer`: 新增 CSS Variables, 用于调整操作条背景、文本颜色等 @anlyyao ([#1074](https://github.com/Tencent/tdesign-miniprogram/pull/1074))
-- `Footer`: 新增 CSS Variables, 用于调整页脚文本大小、颜色等 @anlyyao ([#1042](https://github.com/Tencent/tdesign-miniprogram/pull/1042))
-- `Switch`: 新增 icon 属性,用于显示开关的图标 @LeeJim ([#1080](https://github.com/Tencent/tdesign-miniprogram/pull/1080))
-- `Avatar`: 新增 CSS Variables, 用于调整头像背景、文本颜色 @anlyyao ([#1076](https://github.com/Tencent/tdesign-miniprogram/pull/1076))
-- `Avatar`: 支持 imageProps,并新增 iconProps 和 bordered 属性 @anlyyao ([#1076](https://github.com/Tencent/tdesign-miniprogram/pull/1076))
-
-### 🐞 Bug Fixes
-- `Switch`: 修复 size、loading 不生效的问题 @LeeJim ([#1080](https://github.com/Tencent/tdesign-miniprogram/pull/1080))
-- `Avatar`: 修复 alt 属性无效 @anlyyao ([#1076](https://github.com/Tencent/tdesign-miniprogram/pull/1076))
-- `NavBar`: 使用正确的状态栏高度 @LeeJim ([#1083](https://github.com/Tencent/tdesign-miniprogram/pull/1083))
-- `Search`: 修复插槽需要对应值为空时才渲染的问题 @LeeJim ([#1087](https://github.com/Tencent/tdesign-miniprogram/pull/1087))
-
-## 🌈 0.26.0 `2022-11-14`
-### ❗ Breaking Changes
-- `Textarea`: 调整 confirm-type 的默认值为 return @LeeJim ([#1007](https://github.com/Tencent/tdesign-miniprogram/pull/1007))
-- `Navbar`: 移除 background 使用 CSS Variables 代替 @LeeJim ([#1010](https://github.com/Tencent/tdesign-miniprogram/pull/1010))
-- `Navbar`: 属性 left-icon 更名为 left-arrow,只保留 Boolean 类型 @LeeJim ([#1010](https://github.com/Tencent/tdesign-miniprogram/pull/1010))
-- `Navbar`: 移除 home-icon,新增名为 left 和 capsule 的插槽 @LeeJim ([#1010](https://github.com/Tencent/tdesign-miniprogram/pull/1010))
-- `Navbar`: 移除 go-home 事件 @LeeJim ([#1010](https://github.com/Tencent/tdesign-miniprogram/pull/1010))
-
-### 🚀 Features
-- `Button`: 视觉升级 @LeeJim ([#993](https://github.com/Tencent/tdesign-miniprogram/pull/993))
-- `Fab`: 视觉升级 @LeeJim ([#995](https://github.com/Tencent/tdesign-miniprogram/pull/995))
-- `Tag`: 视觉升级 @LeeJim ([#997](https://github.com/Tencent/tdesign-miniprogram/pull/997))
-- `Cell`: 视觉升级 @LeeJim ([#1003](https://github.com/Tencent/tdesign-miniprogram/pull/1003))
-- `Grid`: 视觉升级 @LeeJim ([#1006](https://github.com/Tencent/tdesign-miniprogram/pull/1006))
-- `Navbar`: 视觉升级 @LeeJim ([#1010](https://github.com/Tencent/tdesign-miniprogram/pull/1010))
-- `Button`: 新增 light 主题 @LeeJim ([#993](https://github.com/Tencent/tdesign-miniprogram/pull/993))
-- `Tag`: 属性 size 新增 extra-large 加大尺寸 @LeeJim ([#997](https://github.com/Tencent/tdesign-miniprogram/pull/997))
-- `CheckTag`: 新增支持 variant 支持 4 种变体 @LeeJim ([#997](https://github.com/Tencent/tdesign-miniprogram/pull/997))
-- `NoticeBar`: 支持 prefixIcon 、theme 属性动态更新 @anlyyao ([#999](https://github.com/Tencent/tdesign-miniprogram/pull/999))
-- `CellGroup`: 新增 theme 属性,支持 card 风格 @LeeJim ([#1003](https://github.com/Tencent/tdesign-miniprogram/pull/1003))
-- `Grid`: 新增 theme 属性,增加 card 风格 @LeeJim ([#1006](https://github.com/Tencent/tdesign-miniprogram/pull/1006))
-- `Grid`: 新增 BadgeProps 属性,透传至徽章组件 @LeeJim ([#1006](https://github.com/Tencent/tdesign-miniprogram/pull/1006))
-- `Grid`: 新增 icon 属性,支持传入图标 @LeeJim ([#1006](https://github.com/Tencent/tdesign-miniprogram/pull/1006))
-- `Grid`: 支持当 column = 0 时,将不平分空间,支持滑动 @LeeJim ([#1006](https://github.com/Tencent/tdesign-miniprogram/pull/1006))
-
-### 🐞 Bug Fixes
-- `Button`: 修复有主题的幽灵按钮颜色丢失的问题 @LeeJim ([#993](https://github.com/Tencent/tdesign-miniprogram/pull/993))
-- `NoticeBar`: 修复 content 动态更新时, 滚动动画计算错误。 @anlyyao ([#999](https://github.com/Tencent/tdesign-miniprogram/pull/999))
-- `TabBar`: 修复绝对定位时,宽度没有撑开的问题 @LeeJim ([#1001](https://github.com/Tencent/tdesign-miniprogram/pull/1001))
-- `Cascader`: 修复异步获取 options 时,无法使用 value 初始化已选选项 @LeeJim ([#1011](https://github.com/Tencent/tdesign-miniprogram/pull/1011))
-
-## 🌈 0.25.0 `2022-11-07`
-### ❗ Breaking Changes
-- `Badge`: 修复 offset 的顺序,首值应该调整水平方向 @LeeJim ([#971](https://github.com/Tencent/tdesign-miniprogram/pull/971))
-- `Tabs`: 调整非 BEM 的类名,此变更属于破坏性变更 @LeeJim ([#970](https://github.com/Tencent/tdesign-miniprogram/pull/970))
-### 🚀 Features
-- 全部组件支持 `customStyle` 属性,作为 style 传入根元素 @anlyyao ([#985](https://github.com/Tencent/tdesign-miniprogram/pull/985))
-- `SideBar`: 新增侧边导航组件 @LeeJim ([#974](https://github.com/Tencent/tdesign-miniprogram/pull/974))
-- `RadioGroup`: 新增支持 keys 属性,使用 options 时有效 @LeeJim ([#964](https://github.com/Tencent/tdesign-miniprogram/pull/964))
-- `Tabs`: 新增 space-evenly 属性,默认均分选项卡片的空间 @LeeJim ([#965](https://github.com/Tencent/tdesign-miniprogram/pull/965))
-- `Cascader`: 视觉全新升级 @LeeJim ([#966](https://github.com/Tencent/tdesign-miniprogram/pull/966))
-- `Cascader`: 新增 theme 属性,新增 tab 风格 @LeeJim ([#966](https://github.com/Tencent/tdesign-miniprogram/pull/966))
-- `Cascader`: 新增 keys 属性,支持映射 optiosn 属性名 @LeeJim ([#966](https://github.com/Tencent/tdesign-miniprogram/pull/966))
-- `Cascader`: 新增 sub-titles 属性,显示每级的次标题 @LeeJim ([#966](https://github.com/Tencent/tdesign-miniprogram/pull/966))
-- `Button`: 新增 CSS Variable 调整文本、边框、背景等颜色,具体查看文档 @anlyyao ([#947](https://github.com/Tencent/tdesign-miniprogram/pull/947))
-- `GridItem`: 新增 image-props 透传至 image 组件 @LeeJim ([#976](https://github.com/Tencent/tdesign-miniprogram/pull/976))
-- `TabBar`: 视觉升级 @LeeJim ([#987](https://github.com/Tencent/tdesign-miniprogram/pull/987))
-- `TabBar`: 新增 shape 属性,新增悬浮胶囊形状的标签栏 @LeeJim ([#987](https://github.com/Tencent/tdesign-miniprogram/pull/987))
-- `TabBar`: 新增 theme 属性,新增 tag 风格 @LeeJim ([#987](https://github.com/Tencent/tdesign-miniprogram/pull/987))
-- `DropdownMenu`: 新增 `external-classes` 属性 @anlyyao ([#991](https://github.com/Tencent/tdesign-miniprogram/pull/991))
-- `Csacader`: 支持 CSS Variables 进行自定义主题 @LeeJim ([#990](https://github.com/Tencent/tdesign-miniprogram/pull/990))
-### 🐞 Bug Fixes
-- 修复没传值时不支持非受控的问题 @LeeJim ([#977](https://github.com/Tencent/tdesign-miniprogram/pull/977))
-- `RadioGroup`: 修复使用 options 时无法选中的问题 @LeeJim ([#964](https://github.com/Tencent/tdesign-miniprogram/pull/964))
-- `Tabs`: 修复动态 label 无法生效的问题 @LeeJim ([#963](https://github.com/Tencent/tdesign-miniprogram/pull/963))
-- `Tabs`: 优化样式细节 @LeeJim ([#965](https://github.com/Tencent/tdesign-miniprogram/pull/965))
-- `Cascader`: 修复传入 value 不会渲染选项的问题 @LeeJim ([#966](https://github.com/Tencent/tdesign-miniprogram/pull/966))
-- `Button`: 修复 variant=text 时,文本颜色样式错误 @anlyyao ([#947](https://github.com/Tencent/tdesign-miniprogram/pull/947))
-- `Input`: 修复 `--td-input-disabled-text-color` 无效的问题 @anlyyao ([#960](https://github.com/Tencent/tdesign-miniprogram/pull/960))
-- `Calendar`: 修复无法滚动的问题 @LeeJim ([#989](https://github.com/Tencent/tdesign-miniprogram/pull/989))
-- `Calandar`: 修复在布局不兼容的问题 @LeeJim ([#989](https://github.com/Tencent/tdesign-miniprogram/pull/989))
-
-## 🌈 0.24.0 `2022-10-31`
-### ❗️BREAKING CHANGES
-- `Radio`: 移除 color 属性,使用 CSS Variable 替代 @anlyyao ([#944](https://github.com/Tencent/tdesign-miniprogram/pull/944))
-
-### 🚀 Features
-- `Tabs`: 视觉全新升级 @LeeJim ([#957](https://github.com/Tencent/tdesign-miniprogram/pull/957))
-- `Tabs`: 新增 theme 属性,支持 line/tag/card @LeeJim ([#957](https://github.com/Tencent/tdesign-miniprogram/pull/957))
-- `Tabs`: 新增 CSS Variables,用于调整滑块尺寸 @LeeJim ([#957](https://github.com/Tencent/tdesign-miniprogram/pull/957))
-- `TabPanel`: 新增 badgeProps 属性,支持使用徽章 @LeeJim ([#957](https://github.com/Tencent/tdesign-miniprogram/pull/957))
-- `CheckTag`: 支持外部样式类 @anlyyao ([#945](https://github.com/Tencent/tdesign-miniprogram/pull/945))
-- `Radio`: 新增 CSS Variable 调整文案、图标等颜色,具体查看文档 @anlyyao ([#944](https://github.com/Tencent/tdesign-miniprogram/pull/944))
-
-### 🐞 Bug Fixes
-- `Popup`: 阻止内容区域滑动穿透 @LeeJim ([#943](https://github.com/Tencent/tdesign-miniprogram/pull/943))
-- `Cascader`: 调整 `usingComponents` 中的绝对路径为相对路径 @miauyo ([#938](https://github.com/Tencent/tdesign-miniprogram/pull/938))
-- `Icon`: 修复 customStyle 属性无效的问题 @anlyyao ([#950](https://github.com/Tencent/tdesign-miniprogram/pull/950))
-- `DateTimePicker`: 修复 mode = second 不生效的问题 @LeeJim ([#952](https://github.com/Tencent/tdesign-miniprogram/pull/952))
-### 🚧 Others
-- `Textarea`: 修复 "带标题多行文本框" 示例不显示 @anlyyao ([#937](https://github.com/Tencent/tdesign-miniprogram/pull/937))
-
-## 🌈 0.23.1 `2022-10-24`
-### 🐞 Bug Fixes
-
-- `Steps`: 修复内存溢出的问题 @LeeJim ([#928](https://github.com/Tencent/tdesign-miniprogram/pull/928))
-- `tabBar`: 使用正确的备用初始值 @anlyyao ([#930](https://github.com/Tencent/tdesign-miniprogram/pull/930))
-
-### 🚧 Others
-- `Input`: 修复 `demo`中 `value` 属性拼写错误 @anlyyao ([#923](https://github.com/Tencent/tdesign-miniprogram/pull/923))
-- `Cascader`: 修改文档导入示例错误 @miauyo ([#924](https://github.com/Tencent/tdesign-miniprogram/pull/924))
-- `Message`: 新增示例演示如何在自定义导航栏时使用 message @LeeJim ([#932](https://github.com/Tencent/tdesign-miniprogram/pull/932))
-- 修复因 buffer 超出限制导致单元测试报错的问题 @LeeJim ([#925](https://github.com/Tencent/tdesign-miniprogram/pull/925))
-- 更新官网 Demo 示例的二维码 @anlyyao ([#917](https://github.com/Tencent/tdesign-miniprogram/pull/917))
-
-
-## 🌈 0.23.0 `2022-10-17`
-### 🚀 Features
-- `Cascader`: 新增级联选择器 @LeeJim ([#912](https://github.com/Tencent/tdesign-miniprogram/pull/912))
-- `RadioGroup`: 新增 align 和 icon 属性,当使用 options 渲染子项时有效 @LeeJim ([#912](https://github.com/Tencent/tdesign-miniprogram/pull/912))
-### 🐞 Bug Fixes
-- `PulldownRefresh`: 修复高度无法自适应外容器的问题 @LeeJim ([#909](https://github.com/Tencent/tdesign-miniprogram/pull/909))
-- `Tabs`: 修复 placement = left 时, Nav 不可见且不居左的问题 @LeeJim ([#908](https://github.com/Tencent/tdesign-miniprogram/pull/908))
-- `TabBar`: 修复 item 不传 value 时无法自动生成备用值的问题 @LeeJim ([#914](https://github.com/Tencent/tdesign-miniprogram/pull/914))
-### 🚧 Others
-- `Calendar`: 修复动态数据导致测试用例一直报错的问题 @LeeJim ([#916](https://github.com/Tencent/tdesign-miniprogram/pull/916))
-
-## 🌈 0.22.0 `2022-10-10`
-### 🚀 Features
-- `Calendar`: 新增日历组件 @LeeJim ([#896](https://github.com/Tencent/tdesign-miniprogram/pull/896))
-### 🐞 Bug Fixes
-- `Dialog`: 函数式`Dialog.close()` 关闭窗体支持自定义 `selector` @anlyyao ([#894](https://github.com/Tencent/tdesign-miniprogram/pull/894))
-- `Message`: 函数式`Dialog.hide()` 关闭窗体支持自定义 `selector` @anlyyao ([#894](https://github.com/Tencent/tdesign-miniprogram/pull/894))
-
-## 🌈 0.21.2 `2022-09-26`
-### 🐞 Bug Fixes
-- `Input`: 修复 `clearable` 的显示和隐藏问题 @anlyyao ([#874](https://github.com/Tencent/tdesign-miniprogram/pull/874))
-- `Tabbar`: 使用 fallback value 保证颜色展示正确 @LeeJim ([#875](https://github.com/Tencent/tdesign-miniprogram/pull/875))
-- `Icon`: 移除 `CSS` 属性 `speak` @anlyyao ([#885](https://github.com/Tencent/tdesign-miniprogram/pull/885))
-- `Textarea`: 修复 maxLength 情况下,显示值和实际值不一致问题 @anlyyao ([#883](https://github.com/Tencent/tdesign-miniprogram/pull/883))
-- `Textarea`: 修复 maxcharacter 情况下,输入值超出 maxcharacter 的问题 @anlyyao ([#883](https://github.com/Tencent/tdesign-miniprogram/pull/883))
-- `Input`: 修复 maxcharacter 情况下,输入值超出 maxcharacter 的问题 @anlyyao ([#883](https://github.com/Tencent/tdesign-miniprogram/pull/883))
-- `DateTimePicker`: 修复选项重置错误的问题 @LeeJim ([#888](https://github.com/Tencent/tdesign-miniprogram/pull/888))
-### 🚧 Others
-- NPM 包中保留 dts,更好得支持 TypeScript @AntzyMo ([#682](https://github.com/Tencent/tdesign-miniprogram/pull/682))
-
-## 🌈 0.21.1 `2022-09-19`
-### 🚀 Features
-- `Toast`: 使用 Transition 实现淡入淡出动画 @LeeJim ([#863](https://github.com/Tencent/tdesign-miniprogram/pull/863))
-- `Upload`: 新增 source 属性,支持从聊天会话中读取文件 @LeeJim ([#868](https://github.com/Tencent/tdesign-miniprogram/pull/868))
-### 🐞 Bug Fixes
-- `Toast`: 重构 DOM 以及代码逻辑 @LeeJim ([#863](https://github.com/Tencent/tdesign-miniprogram/pull/863))
-- `ActionSheet`: 修复 theme = list 时点击选项之后报错的问题 @LeeJim ([#866](https://github.com/Tencent/tdesign-miniprogram/pull/866))
-- `Tabs`: 修复嵌套使用时样式错误的问题 @LeeJim ([#869](https://github.com/Tencent/tdesign-miniprogram/pull/869))
-### 🚧 Others
-- `Indexes`: 新增单元测试 @CodingOnStar ([#850](https://github.com/Tencent/tdesign-miniprogram/pull/850))
-- `Message`: 新增单元测试 @anlyyao ([#859](https://github.com/Tencent/tdesign-miniprogram/pull/859))
-- `SwipeCell`: 新增单元测试 @webwyb ([#861](https://github.com/Tencent/tdesign-miniprogram/pull/861))
-- `Swiper`: 新增单元测试 @anlyyao ([#864](https://github.com/Tencent/tdesign-miniprogram/pull/864))
-
-## 🌈 0.21.0 `2022-09-13`
-### ❗️BREAKING CHANGES
-- `TabBar`: 点击 subTabBar 选项时,返回的值从数组改成选项的值 @LeeJim ([#846](https://github.com/Tencent/tdesign-miniprogram/pull/846))
-### 🚀 Features
-- `Slider`: 属性 marks 支持动态响应 @LeeJim ([#853](https://github.com/Tencent/tdesign-miniprogram/pull/853))
-### 🐞 Bug Fixes
-- `TabBar`: 修复子选项激活时,父选项未展示激活的问题 @LeeJim ([#846](https://github.com/Tencent/tdesign-miniprogram/pull/846))
-- `Slider`: 修复 disabled 状态下点击报错的问题 @LeeJim ([#853](https://github.com/Tencent/tdesign-miniprogram/pull/853))
-### 🚧 Others
-- `TabBar`: 新增单元测试 @LeeJim ([#846](https://github.com/Tencent/tdesign-miniprogram/pull/846))
-- `Upload`: 新增单元测试 @anlyyao ([#847](https://github.com/Tencent/tdesign-miniprogram/pull/847))
-- `DropdownMenu`: 新增单元测试 @LeeJim ([#848](https://github.com/Tencent/tdesign-miniprogram/pull/848))
-- `Slider`: 新增单元测试 @LeeJim ([#853](https://github.com/Tencent/tdesign-miniprogram/pull/853))
-- `Picker`: 新增单元测试 @LeeJim ([#854](https://github.com/Tencent/tdesign-miniprogram/pull/854))
-- `DateTimePicker`: 新增单元测试 @LeeJim ([#855](https://github.com/Tencent/tdesign-miniprogram/pull/855))
-- `Sticky`: 新增单元测试 @Perisiguiendo ([#852](https://github.com/Tencent/tdesign-miniprogram/pull/852))
-
-## 🌈 0.20.0 `2022-09-05`
-### ❗️BREKING CHANGES
-- `Icon`: `size` 不在支持 `middle`、`small`等关键字,默认单位 `px` @anlyyao ([#828](https://github.com/Tencent/tdesign-miniprogram/pull/828))
-### 🚀 Features
-- `Textarea`: 更新演示代码文档 @anlyyao ([#817](https://github.com/Tencent/tdesign-miniprogram/pull/817))
-- `Dialog`: 新增 overlayProps 属性透传至 Overlay 组件 @LeeJim ([#822](https://github.com/Tencent/tdesign-miniprogram/pull/822))
-- `Icon`: `name` 支持图片链接 @anlyyao ([#828](https://github.com/Tencent/tdesign-miniprogram/pull/828))
-- `Tabs`: change 和 click 事件返回 label 的值 @LeeJim ([#841](https://github.com/Tencent/tdesign-miniprogram/pull/841))
-- `Icon`: 新增更多的图标 @anlyyao ([#838](https://github.com/Tencent/tdesign-miniprogram/pull/838))
-
-### 🐞 Bug Fixes
-- `Tab`: 修复滑块定位错误的问题 @CodingOnStar ([#781](https://github.com/Tencent/tdesign-miniprogram/pull/781))
-- `NoticeBar`: 解决函数同名导致控制台报错 @anlyyao ([#814](https://github.com/Tencent/tdesign-miniprogram/pull/814))
-- `tabs`: 修复无法正常移除 tab panel 的问题 @LeeJim ([#830](https://github.com/Tencent/tdesign-miniprogram/pull/830))
-- `DropdownMenu`: 修复下拉菜单定位错误的问题 @LeeJim ([#836](https://github.com/Tencent/tdesign-miniprogram/pull/836))
-- `Tabs`: 修复垂直模式下内容区域绑定事件无效的问题 @anlyyao ([#837](https://github.com/Tencent/tdesign-miniprogram/pull/837))
-- `Fab`: 修复悬浮按钮随页面滚动的问题 @anlyyao ([#842](https://github.com/Tencent/tdesign-miniprogram/pull/842))
-### 🚧 Others
-- `ActionSheet`: 新增单元测试 @anlyyao ([#832](https://github.com/Tencent/tdesign-miniprogram/pull/832))
-- `Dialog`: 新增单元测试 @LeeJim ([#816](https://github.com/Tencent/tdesign-miniprogram/pull/816))
-- `Overlay`: 新增单元测试 @LeeJim ([#818](https://github.com/Tencent/tdesign-miniprogram/pull/818))
-- `Avatar`: 新增单元测试 @Perisiguiendo ([#812](https://github.com/Tencent/tdesign-miniprogram/pull/812))
-- `Image`: 新增单元测试 @LeeJim ([#820](https://github.com/Tencent/tdesign-miniprogram/pull/820))
-- `NoticeBar`: 新增单元测试 @anlyyao ([#821](https://github.com/Tencent/tdesign-miniprogram/pull/821))
-- `CountDown`: 新增单元测试 @LeeJim ([#824](https://github.com/Tencent/tdesign-miniprogram/pull/824))
-- `Collapse`: 新增单元测试 @LeeJim ([#825](https://github.com/Tencent/tdesign-miniprogram/pull/825))
-- `Navbar`: 新增单元测试 @LeeJim ([#829](https://github.com/Tencent/tdesign-miniprogram/pull/829))
-- `ImageViewer`: 新增单元测试 @LeeJim ([#826](https://github.com/Tencent/tdesign-miniprogram/pull/826))
-- `Tabs`: 新增单元测试 @LeeJim ([#831](https://github.com/Tencent/tdesign-miniprogram/pull/831))
-- `PullDownRefresh`: 新增单元测试 @anlyyao ([#835](https://github.com/Tencent/tdesign-miniprogram/pull/835))
-
-## 🌈 0.19.3 `2022-08-29`
-### 🚀 Features
-- `Toast`: 新增 close 事件 @AntzyMo ([#680](https://github.com/Tencent/tdesign-miniprogram/pull/680))
-- `Toast`: 新增 destory 事件 @LeeJim ([#796](https://github.com/Tencent/tdesign-miniprogram/pull/796))
-### 🐞 Bug Fixes
-- `Picker`: 修复 `Picker` 示例显示不全 @anlyyao ([#804](https://github.com/Tencent/tdesign-miniprogram/pull/804))
-### 🚧 Others
-- `Toast`: 新增单元测试 @LeeJim ([#797](https://github.com/Tencent/tdesign-miniprogram/pull/797))
-- `Footer`: 新增单元测试 @zhangpaopao0609 ([#794](https://github.com/Tencent/tdesign-miniprogram/pull/794))
-- `Step`: 新增单元测试 @isanxia ([#792](https://github.com/Tencent/tdesign-miniprogram/pull/792))
-- `Search`: 新增单元测试 @Perisiguiendo ([#790](https://github.com/Tencent/tdesign-miniprogram/pull/790))
-- `Switch`: 新增单元测试 @Perisiguiendo ([#791](https://github.com/Tencent/tdesign-miniprogram/pull/791))
-- `Empty`: 新增单元测试 @AntzyMo ([#801](https://github.com/Tencent/tdesign-miniprogram/pull/801))
-- `Skeleton`: 新增单元测试 @Perisiguiendo ([#803](https://github.com/Tencent/tdesign-miniprogram/pull/803))
-
-## 🌈 0.19.2 `2022-08-22`
-### 🚀 Features
-- `Badge`: 新增单元测试 @Perisiguiendo ([#776](https://github.com/Tencent/tdesign-miniprogram/pull/776))
-- `Input`: 新增单元测试 @anlyyao ([#775](https://github.com/Tencent/tdesign-miniprogram/pull/775))
-- `Textarea`: 新增单元测试 @anlyyao ([#774](https://github.com/Tencent/tdesign-miniprogram/pull/774))
-- `Stepper`: 新增单元测试 @anlyyao ([#773](https://github.com/Tencent/tdesign-miniprogram/pull/773))
-- `Divider`: 新增单元测试 @Perisiguiendo ([#771](https://github.com/Tencent/tdesign-miniprogram/pull/771))
-- `Result`: 新增单元测试 @CodingOnStar ([#769](https://github.com/Tencent/tdesign-miniprogram/pull/769))
-- `Progress`: `strokeWidth` 支持字符类型 @anlyyao ([#772](https://github.com/Tencent/tdesign-miniprogram/pull/772))
-- `Progress`: 更新测试用例 @anlyyao ([#772](https://github.com/Tencent/tdesign-miniprogram/pull/772))
-- `Rate`: 新增单元测试 @isanxia ([#767](https://github.com/Tencent/tdesign-miniprogram/pull/767))
-- `ImageViewer`: 更新 `demo` 示例图片 @anlyyao ([#782](https://github.com/Tencent/tdesign-miniprogram/pull/782))
-- `Rate`: 新增单元测试 @isanxia ([#767](https://github.com/Tencent/tdesign-miniprogram/pull/767))
-### 🐞 Bug Fixes
-- `Badge`: 修复 `showZero` && `offset` 无单位情况 @Perisiguiendo ([#776](https://github.com/Tencent/tdesign-miniprogram/pull/776))
-- `Popup`: 修复 `zIndex` 无效问题 @anlyyao ([#784](https://github.com/Tencent/tdesign-miniprogram/pull/784))
-- `ImageViewer`: 修复图片宽高都小于屏幕宽高时的拉伸问题 @anlyyao ([#782](https://github.com/Tencent/tdesign-miniprogram/pull/782))
-
-## 🌈 0.19.1 `2022-08-15`
-### 🚀 Features
-- `Upload`: 新增 click 事件 @LeeJim ([#762](https://github.com/Tencent/tdesign-miniprogram/pull/762))
-
-### 🐞 Bug Fixes
-- `Tag`: 修复 click 事件不生效 @anlyyao ([#738](https://github.com/Tencent/tdesign-miniprogram/pull/738))
-- `Tag`: 修复行内元素基线对齐不正确 @anlyyao ([#738](https://github.com/Tencent/tdesign-miniprogram/pull/738))
-- `Grid`: 修复垂直布局时间,align 无效 @anlyyao ([#739](https://github.com/Tencent/tdesign-miniprogram/pull/739))
-- `Tag`: 修复 disabled 为true时,closable 无效的问题 @anlyyao ([#743](https://github.com/Tencent/tdesign-miniprogram/pull/743))
-- `Tag`: 修复 maxWidth 输入为字符时,宽度计算错误问题 @anlyyao ([#743](https://github.com/Tencent/tdesign-miniprogram/pull/743))
-- `Upload`: 修复自定义上传没有关联成功/失败状态 @Winfans ([#758](https://github.com/Tencent/tdesign-miniprogram/pull/758))
-- `Swiper`: 修复动态修改 `swiper-item` 时,视图响应不正确问题 @anlyyao ([#761](https://github.com/Tencent/tdesign-miniprogram/pull/761))
-- `Tabs`: 修复垂直布局时,内容区域不正确。 @anlyyao ([#760](https://github.com/Tencent/tdesign-miniprogram/pull/760))
-
-### 🚧 Others
-- `Fab`: 新增单元测试 @LeeJim ([#740](https://github.com/Tencent/tdesign-miniprogram/pull/740))
-- `Icon`: 新增单元测试 @LeeJim ([#741](https://github.com/Tencent/tdesign-miniprogram/pull/741))
-- `Cell`: 新增单元测试 @LeeJim ([#742](https://github.com/Tencent/tdesign-miniprogram/pull/742))
-- `Popup`: 完善单元测试 @LeeJim ([#746](https://github.com/Tencent/tdesign-miniprogram/pull/746))
-- `Progress`: 新增单元测试 @anlyyao ([#731](https://github.com/Tencent/tdesign-miniprogram/pull/731))
-- `Drawer`: 新增单元测试 @anlyyao ([#732](https://github.com/Tencent/tdesign-miniprogram/pull/732))
-- `Loading`: 新增单元测试 @anlyyao ([#733](https://github.com/Tencent/tdesign-miniprogram/pull/733))
-- `Tag`: 修复文档 CheckTag 事件名称不正确 @anlyyao ([#738](https://github.com/Tencent/tdesign-miniprogram/pull/738))
-- `Tag`: 完善单元测试 @anlyyao ([#743](https://github.com/Tencent/tdesign-miniprogram/pull/743))
-- `Grid`: 新增单元测试 @LeeJim ([#752](https://github.com/Tencent/tdesign-miniprogram/pull/752))
-
-## 🌈 0.19.0 `2022-08-08`
-### 🚀 Features
-- `Skeleton`: 新增 `t-class-row` 外部样式类 @anlyyao ([#699](https://github.com/Tencent/tdesign-miniprogram/pull/699))
-- `Cell`: 新增 `t-class-left-icon` 外部样式类 @anlyyao ([#703](https://github.com/Tencent/tdesign-miniprogram/pull/703))
-- `Tabs`: 新增 sticky 和 stickyProps 属性透传至 Sticky 组件 @anlyyao ([#725](https://github.com/Tencent/tdesign-miniprogram/pull/725))
-- `Tabs`: 新增 CSS Variable 调整选项卡背景色 @anlyyao ([#725](https://github.com/Tencent/tdesign-miniprogram/pull/725))
-- `Tabs`: 新增 scroll 事件 @anlyyao ([#725](https://github.com/Tencent/tdesign-miniprogram/pull/725))
-- `PulldownRefresh`: 新增 ScrollToTop 方法,手动调用滚动到顶部 @LeeJim ([#730](https://github.com/Tencent/tdesign-miniprogram/pull/730))
-- `Checkbox`: 新增单元测试 @LeeJim ([#724](https://github.com/Tencent/tdesign-miniprogram/pull/724))
-- `Button`: 新增单元测试 @LeeJim ([#726](https://github.com/Tencent/tdesign-miniprogram/pull/726))
-- `Radio`: 新增单元测试 @LeeJim ([#729](https://github.com/Tencent/tdesign-miniprogram/pull/729))
-- `BackTop`: 新增单元测试 @anlyyao ([#728](https://github.com/Tencent/tdesign-miniprogram/pull/728))
-### 🐞 Bug Fixes
-- `Cell`: 修复 `image` 插槽无效问题 @anlyyao ([#703](https://github.com/Tencent/tdesign-miniprogram/pull/703))
-- `Tag`: 改用 `display: inline-flex`,宽度自适应 @anlyyao ([#723](https://github.com/Tencent/tdesign-miniprogram/pull/723))
-### 🚧 Others
-- 新增单元测试 @LeeJim ([#700](https://github.com/Tencent/tdesign-miniprogram/pull/700))
-- `SwipeCell`: 更新示例代码 @anlyyao ([#698](https://github.com/Tencent/tdesign-miniprogram/pull/698))
-- `Message`: 更新示例代码 @AntzyMo ([#695](https://github.com/Tencent/tdesign-miniprogram/pull/695))
-- `Dialog`: 更新示例代码 @AntzyMo ([#704](https://github.com/Tencent/tdesign-miniprogram/pull/704))
-- `Input`: 修复文档描述错误 @anlyyao ([#706](https://github.com/Tencent/tdesign-miniprogram/pull/706))
-- `Checkbox`: 更新示例代码 @wangyuan0108 ([#668](https://github.com/Tencent/tdesign-miniprogram/pull/668))
-- `Radio`: 更新示例代码 @wangyuan0108 ([#667](https://github.com/Tencent/tdesign-miniprogram/pull/667))
-- `Toast`: 更新示例代码 @CodingOnStar ([#676](https://github.com/Tencent/tdesign-miniprogram/pull/676))
-- `Empty`: 更新示例代码 @AntzyMo ([#709](https://github.com/Tencent/tdesign-miniprogram/pull/709))
-- `Toast`: 优化示例代码 @LeeJim ([#711](https://github.com/Tencent/tdesign-miniprogram/pull/711))
-- `BackTop`: 更新示例代码 @anlyyao ([#710](https://github.com/Tencent/tdesign-miniprogram/pull/710))
-- `ActionSheet`: 更新示例代码 @LeeJim ([#716](https://github.com/Tencent/tdesign-miniprogram/pull/716))
-- `DropdownMenu`: 更新示例代码 @LeeJim ([#721](https://github.com/Tencent/tdesign-miniprogram/pull/721))
-- `ImageViewer`: 更新示例代码 @anlyyao ([#712](https://github.com/Tencent/tdesign-miniprogram/pull/712))
-- `Sticky`: 更新示例代码 @anlyyao ([#720](https://github.com/Tencent/tdesign-miniprogram/pull/720))
-- `Countdown`: 更新示例代码 @AntzyMo ([#714](https://github.com/Tencent/tdesign-miniprogram/pull/714))
-- `Badge`: 更新示例代码 @wangyuan0108 ([#717](https://github.com/Tencent/tdesign-miniprogram/pull/717))
-- `Message`: 更新示例代码 @AntzyMo ([#695](https://github.com/Tencent/tdesign-miniprogram/pull/695))
-
-## 🌈 0.18.0 `2022-08-01`
-
-### ❗️ BREAKING CHANGES
-- `Tabbar`: CSS Variables 命名规则由 `--t` 改成 `--td` 开头 @LeeJim ([#663](https://github.com/Tencent/tdesign-miniprogram/pull/663))
-- `Avatar`: 头像组的样式内置进组件内 @anlyyao ([#665](https://github.com/Tencent/tdesign-miniprogram/pull/665))
-### 🚀 Features
-- `Avatar`: 新增 CSS Variable 调整 Avatar 背景、内容(文本或图标)颜色 @anlyyao ([#665](https://github.com/Tencent/tdesign-miniprogram/pull/665))
-- `Swiper`: 新增 `paginationPosition` 属性,用于调整页码信息的位置 @anlyyao ([#669](https://github.com/Tencent/tdesign-miniprogram/pull/669))
-- `Swiper`: 新增 CSS Variable 调整 Swiper 导航器背景、内容颜色 @anlyyao ([#669](https://github.com/Tencent/tdesign-miniprogram/pull/669))
-- `Button`: 新增 loadingProps 属性透传至 Loading 组件 @anlyyao ([#673](https://github.com/Tencent/tdesign-miniprogram/pull/673))
-- `Tabs`: 新增 CSS Variables 调整字体、滑块颜色等,具体查看文档 @LeeJim ([#684](https://github.com/Tencent/tdesign-miniprogram/pull/684))
-- `Toast`: 支持 `duration` 传入 0 的时候,toast 不消失 @LeeJim ([#683](https://github.com/Tencent/tdesign-miniprogram/pull/683))
-### 🐞 Bug Fixes
-- `Tabbar`: 修复因 CSS Variables 没有写 fallback 导致样式丢失的问题 @LeeJim ([#663](https://github.com/Tencent/tdesign-miniprogram/pull/663))
-- `Avatar`: 修复组件类名错误 @anlyyao ([#665](https://github.com/Tencent/tdesign-miniprogram/pull/665))
-- `upload`: 修复组件中图片被挤压问题 @anlyyao ([#666](https://github.com/Tencent/tdesign-miniprogram/pull/666))
-- `Button`: 修复 loading 无效的问题 @anlyyao ([#673](https://github.com/Tencent/tdesign-miniprogram/pull/673))
-- `DropdownMenu`: 修复树形选择时,点击单选仍自动关闭的问题 @LeeJim ([#686](https://github.com/Tencent/tdesign-miniprogram/pull/686))
-- `DropdownMenu`: 修复 `closeOnClickOverlay` 不生效的问题 @LeeJim ([#685](https://github.com/Tencent/tdesign-miniprogram/pull/685))
-- `Cell`: 优化 slot 的渲染逻辑 @LeeJim ([#688](https://github.com/Tencent/tdesign-miniprogram/pull/688))
-
-### 🚧 Others
-- `Avatar`: 更新示例代码 @anlyyao ([#665](https://github.com/Tencent/tdesign-miniprogram/pull/665))
-- `Swiper`: 更新示例代码 @anlyyao ([#669](https://github.com/Tencent/tdesign-miniprogram/pull/669))
-- `Stepper`: 更新示例代码 @anlyyao ([#670](https://github.com/Tencent/tdesign-miniprogram/pull/670))
-- `Progress`: 更新示例代码 @anlyyao ([#690](https://github.com/Tencent/tdesign-miniprogram/pull/690))
-- `Loading`: 更新示例代码 @anlyyao ([#691](https://github.com/Tencent/tdesign-miniprogram/pull/691))
-- `Slider`: 更新示例代码 @anlyyao ([#671](https://github.com/Tencent/tdesign-miniprogram/pull/671))
-- `Cell`: 更新示例代码 @CodingOnStar ([#675](https://github.com/Tencent/tdesign-miniprogram/pull/675))
-- `tabbar`: 修复文档中主题定制前缀错误的问题 @anlyyao ([#674](https://github.com/Tencent/tdesign-miniprogram/pull/674))
-
-## 🌈 0.17.0 `2022-07-25`
-### ❗️BREAKING CHANGES
-- `Tabbar`: 移除 color 属性,使用 CSS Variable 替代 @LeeJim ([#650](https://github.com/Tencent/tdesign-miniprogram/pull/650))
-- `Rate`: 移除 color 属性,使用 CSS Variable 替代 @anlyyao ([#653](https://github.com/Tencent/tdesign-miniprogram/pull/653))
-- `Rate`: `external-classes` 属性中的 `t-class-desc` 更名为 `t-class-text` @anlyyao ([#653](https://github.com/Tencent/tdesign-miniprogram/pull/653))
-- `Search`: 将 `external-classes` 属性中的 `t-class-cancel` 更名为 `t-class-action`。 @anlyyao ([#654](https://github.com/Tencent/tdesign-miniprogram/pull/654))
-
-### 🚀 Features
-- `Tabs`: 超过屏幕时,自动将激活的选项滚动到中间 @LeeJim ([#633](https://github.com/Tencent/tdesign-miniprogram/pull/633))
-- `Tabs`: 新增 `swipeable` 属性,用于控制是否滑动切换 @LeeJim ([#634](https://github.com/Tencent/tdesign-miniprogram/pull/634))
-- `PullDownRefresh`: 新增 `scrolltolower` 事件 @ws2003gq ([#641](https://github.com/Tencent/tdesign-miniprogram/pull/641))
-- `Button`: `variant` 属性新增 `dashed` @anlyyao ([#648](https://github.com/Tencent/tdesign-miniprogram/pull/648))
-- `Tabbar`: 新增 CSS Variable 调整标签栏字体和图标颜色,具体查看文档 @LeeJim ([#650](https://github.com/Tencent/tdesign-miniprogram/pull/650))
-- `Grid`: `external-classes` 属性增加 `t-class-content` @anlyyao ([#635](https://github.com/Tencent/tdesign-miniprogram/pull/635))
-- `Grid`: 新增 CSS Variable 调整宫格背景、文本等颜色,具体查看文档 @anlyyao ([#635](https://github.com/Tencent/tdesign-miniprogram/pull/635))
-- `Search`: 新增 CSS Variable 调整 `Search` 字体、背景、图标等颜色,具体查看文档 @anlyyao ([#654](https://github.com/Tencent/tdesign-miniprogram/pull/654))
-- `Rate`: 新增 CSS Variable 调整 Rate 辅助文本、选中、未选中及禁用态图标颜色,具体查看文档 @anlyyao ([#653](https://github.com/Tencent/tdesign-miniprogram/pull/653))
-- `Input`: 移除 `external-classes` 属性中的 `t-class-placeholder`。 @anlyyao ([#651](https://github.com/Tencent/tdesign-miniprogram/pull/651))
-- `Input`: `external-classes` 属性新增 `t-class-icon`, `t-class-label`, `t-class-clearable`, `t-class-suffix`, `t-class-suffix-icon` @anlyyao ([#651](https://github.com/Tencent/tdesign-miniprogram/pull/651))
-- `Input`: 新增 CSS Variable 调整 `Input` 字体、背景、图标等颜色,具体查看文档 @anlyyao ([#651](https://github.com/Tencent/tdesign-miniprogram/pull/651))
-- `Divider`: 新增 CSS Variable 调整分割线、文本颜色,具体查看文档 @anlyyao ([#656](https://github.com/Tencent/tdesign-miniprogram/pull/656))
-- `Indexes`: 新增 CSS Variable 调整 标题、背景、文本等颜色,具体查看文档 @anlyyao ([#649](https://github.com/Tencent/tdesign-miniprogram/pull/649))
-- `Drawer`: 新增 CSS Variable 调整抽屉背景、列表项标题、列表项图标、列表项下边框颜色,具体查看文档 @anlyyao ([#658](https://github.com/Tencent/tdesign-miniprogram/pull/658))
-
-### 🐞 Bug Fixes
-- `Tabs`: 修复值等于 0 时不能正常切换的问题 @LeeJim ([#632](https://github.com/Tencent/tdesign-miniprogram/pull/632))
-- `Textarea`: 修复超出 `maxcharacter` 后,仍能继续输入的问题 @anlyyao ([#625](https://github.com/Tencent/tdesign-miniprogram/pull/625))
-- `Picker`: 修复因重复定义 `options` 导致告警的问题 @LeeJim ([#638](https://github.com/Tencent/tdesign-miniprogram/pull/638))
-- `Image`: 补充缺失的 `shape = square` 样式 @anlyyao ([#637](https://github.com/Tencent/tdesign-miniprogram/pull/637))
-- `Button`: 修复 `variant=outline`无效 @anlyyao ([#648](https://github.com/Tencent/tdesign-miniprogram/pull/648))
-
-### 🚧 Others
-- `Navbar`: 更新示例代码 @anlyyao ([#636](https://github.com/Tencent/tdesign-miniprogram/pull/636))
-- `Textarea`: 更新示例代码 @anlyyao ([#625](https://github.com/Tencent/tdesign-miniprogram/pull/625))
-- `Icon`: 更新示例代码 @anlyyao ([#642](https://github.com/Tencent/tdesign-miniprogram/pull/642))
-- `Image`: 更新示例代码 @anlyyao ([#637](https://github.com/Tencent/tdesign-miniprogram/pull/637))
-- `Fab`: 更新示例代码 @wangyuan0108 ([#602](https://github.com/Tencent/tdesign-miniprogram/pull/602))
-- `Tabbar`: 新增自定义主题示例代码 @LeeJim ([#650](https://github.com/Tencent/tdesign-miniprogram/pull/650))
-- `Divider`: 更新示例代码 @wangyuan0108 ([#608](https://github.com/Tencent/tdesign-miniprogram/pull/608))
-- `Overlay`: 更新示例代码 @LeeJim ([#655](https://github.com/Tencent/tdesign-miniprogram/pull/655))
-- `Grid`: 更新示例代码 @anlyyao ([#635](https://github.com/Tencent/tdesign-miniprogram/pull/635))
-- `Search`: 更新示例代码 @anlyyao ([#654](https://github.com/Tencent/tdesign-miniprogram/pull/654))
-- `Rate`: 更新示例代码 @anlyyao ([#653](https://github.com/Tencent/tdesign-miniprogram/pull/653))
-- `DateTimePicker`: 更新示例代码 @anlyyao ([#652](https://github.com/Tencent/tdesign-miniprogram/pull/652))
-- `Button`: 更新示例代码 @wangyuan0108 ([#607](https://github.com/Tencent/tdesign-miniprogram/pull/607))
-- `Drawer`: 更新示例代码 @wangyuan0108 ([#613](https://github.com/Tencent/tdesign-miniprogram/pull/613))
-- `Tabs`: 更新示例代码 @wangyuan0108 ([#616](https://github.com/Tencent/tdesign-miniprogram/pull/616))
-- `Input`: 更新示例代码 @anlyyao ([#651](https://github.com/Tencent/tdesign-miniprogram/pull/651))
-- `Indexes`: 更新示例代码 @anlyyao ([#649](https://github.com/Tencent/tdesign-miniprogram/pull/649))
-
-## 🌈 0.16.0 `2022-07-18`
-### ❗ BREAKING CHANGES
-- `Drawer`: 调整 `placement` 属性,只支持 `left` 和 `right` @LeeJim ([#619](https://github.com/Tencent/tdesign-miniprogram/pull/619))
-- `Button`: `tap` 事件返回值更新为 `event` 对象 @anlyyao ([#603](https://github.com/Tencent/tdesign-miniprogram/pull/603))
-- `Skeleton`: 属性 `theme` 移除 `avatar-text`;新增 `avatar` 、`image` 、`paragraph` @anlyyao ([#617](https://github.com/Tencent/tdesign-miniprogram/pull/617))
-- `Skeleton`: 外部样式类移除 `t-class-avatar` 、`t-class-image` 、`t-class-text` ;新增 `t-class-col` @anlyyao ([#617](https://github.com/Tencent/tdesign-miniprogram/pull/617))
-- `Skeleton`: 属性 `rowCol ` 移除默认值 `[1, 1, 1, { width: 70% }]` @anlyyao ([#617](https://github.com/Tencent/tdesign-miniprogram/pull/617))
-### 🚀 Features
-- `Picker`: 增加 `autoClose` 属性,点击确认、取消、遮罩层时自动关闭 @LeeJim ([#614](https://github.com/Tencent/tdesign-miniprogram/pull/614))
-- `Result`: 新增组件 @anlyyao ([#589](https://github.com/Tencent/tdesign-miniprogram/pull/589))
-### 🐞 Bug Fixes
-- `Picker`: 修复 `pick` 事件返回的 `label `不正确的问题 @LeeJim ([#612](https://github.com/Tencent/tdesign-miniprogram/pull/612))
-- `Picker`: `confirm-btn` 和 `cancel-btn` 增加 `boolean` 类型,值为 `true` 时使用默认文案 @LeeJim ([#614](https://github.com/Tencent/tdesign-miniprogram/pull/614))
-- `DropdownMenu`: 移除冗余的 `z-index` @LeeJim ([#623](https://github.com/Tencent/tdesign-miniprogram/pull/623))
-- `Loading`: 修复 `text` 为空时仍渲染非空节点的问题 @wanpan11 ([#621](https://github.com/Tencent/tdesign-miniprogram/pull/621))
-### 🚧 Others
-- `Switch`: 更新示例代码 @wangyuan0108 ([#615](https://github.com/Tencent/tdesign-miniprogram/pull/615))
-- `NoticeBar`: 更新示例代码 @anlyyao ([#610](https://github.com/Tencent/tdesign-miniprogram/pull/610))
-- `Picker`: 展示示例代码 @anlyyao ([#606](https://github.com/Tencent/tdesign-miniprogram/pull/606))
-- `Tag`: 更新示例代码 @anlyyao ([#622](https://github.com/Tencent/tdesign-miniprogram/pull/622))
-- `Steps`: 更新示例代码 @anlyyao ([#609](https://github.com/Tencent/tdesign-miniprogram/pull/609))
-- `Skeleton`: 更新示例代码 @anlyyao ([#617](https://github.com/Tencent/tdesign-miniprogram/pull/617))
-
-## 🌈 0.15.1 `2022-07-13`
-### 🚀 Features
-- `TabBar`: 支持使用 CSS Variable 定制颜色 @LeeJim ([#601](https://github.com/Tencent/tdesign-miniprogram/pull/601))
-### 🐞 Bug Fixes
-- `DropdownMenu`: 优化按钮样式 @LeeJim ([#592](https://github.com/Tencent/tdesign-miniprogram/pull/592))
-- `DropdownMenu`: 修复切换菜单时出现漂移的问题 @LeeJim ([#592](https://github.com/Tencent/tdesign-miniprogram/pull/592))
-- `Dialog`: 修复无法展示的问题以及过渡动画 @LeeJim ([#596](https://github.com/Tencent/tdesign-miniprogram/pull/596))
-- `DropdownMenu`: 修复下拉菜单无法展开的问题 @LeeJim ([#604](https://github.com/Tencent/tdesign-miniprogram/pull/604))
-### 🚧 Others
-- 官网文档升级更新: 展示所有代码(WXML、JS、WXSS、JSON),并且 DEMO 与 示例代码保持一致 @LeeJim ([#590](https://github.com/Tencent/tdesign-miniprogram/pull/590))
-- `Popup`: 展示示例代码 @LeeJim ([#599](https://github.com/Tencent/tdesign-miniprogram/pull/599))
-- `Upload`: 展示示例代码 @anlyyao ([#595](https://github.com/Tencent/tdesign-miniprogram/pull/595))
-- `TabBar`: 更新示例代码 @LeeJim ([#601](https://github.com/Tencent/tdesign-miniprogram/pull/601))
-- `Footer`: 更新示例代码 @wangyuan0108 ([#593](https://github.com/Tencent/tdesign-miniprogram/pull/593))
-
-## 0.15.0 `2022-7-11`
-
-### BREAKING CHANGES
-
-- DropdownMenu: 属性 overlay 更名为 showOverlay [#582](https://github.com/Tencent/tdesign-miniprogram/pull/582) [@LeeJim](https://github.com/LeeJim)
-- Popup: 移除 transitionProps 属性 [#585](https://github.com/Tencent/tdesign-miniprogram/pull/585) [@LeeJim](https://github.com/LeeJim)
-### Bug Fixes
-
-- Tabs: 修复选项卡不存在时滑动报错问题 [#573](https://github.com/Tencent/tdesign-miniprogram/pull/573) [@anlyyao](https://github.com/anlyyao)
-- DropdownMenu: 修复关闭时无动画的问题 [#587](https://github.com/Tencent/tdesign-miniprogram/pull/587) [@LeeJim](https://github.com/LeeJim)
-### Features
-
-- Fab: 支持文本自适应 [#575](https://github.com/Tencent/tdesign-miniprogram/pull/575) [@anlyyao](https://github.com/anlyyao)
-- Tag: [#581](https://github.com/Tencent/tdesign-miniprogram/pull/581) [@anlyyao](https://github.com/anlyyao)
- - 视觉更新
- - 支持图标
-- DropdownMenu: 新增 toggle 示例方法,用于切换下拉菜单 [#584](https://github.com/Tencent/tdesign-miniprogram/pull/584) [@LeeJim](https://github.com/LeeJim)
-- DropdownMenu: 新增 keys 属性以支持自定义 label 和 value 的字段名 [#582](https://github.com/Tencent/tdesign-miniprogram/pull/582) [@LeeJim](https://github.com/LeeJim)
-- Popup: [#585](https://github.com/Tencent/tdesign-miniprogram/pull/585) [@LeeJim](https://github.com/LeeJim)
- - 新增 duration 属性,控制动画过渡时间
- - 新增 customStyle 透传样式至根节点
- - 新增 overlayProps 属性,透传至 overlay 组件
-
-## 0.14.0 `2022-7-1`
-
-### BREAKING CHANGES
-
-- TextArea: 移除不生效的外部样式类 `t-class-placeholder`, 建议使用类名 `t-textarea__placeholder` 进行样式覆盖 [#541](https://github.com/Tencent/tdesign-miniprogram/pull/541) [@anlyyao](https://github.com/anlyyao)
-### Bug Fixes
-
-- Tabbar: 修复具名插槽无法使用的问题 [#548](https://github.com/Tencent/tdesign-miniprogram/pull/548) [@LeeJim](https://github.com/LeeJim)
-- 修复默认层级问题 [#553](https://github.com/Tencent/tdesign-miniprogram/pull/553) [@webwyb](https://github.com/webwyb)
- - Dialog
- - DropdownMenu
- - Drawer
- - Message
- - Popup
-- Fab: 修复 `text` 属性不生效的问题 [#561](https://github.com/Tencent/tdesign-miniprogram/pull/561) [@LeeJim](https://github.com/LeeJim)
-- NoticeBar: 修复公告不滚动问题 [#562](https://github.com/Tencent/tdesign-miniprogram/pull/562) [@LeeJim](https://github.com/LeeJim)
-- Dialog: 修复点击遮罩层不会触发 `close` 事件的问题 [#566](https://github.com/Tencent/tdesign-miniprogram/pull/566) [@LeeJim](https://github.com/LeeJim)
-
-### Features
-
-- ActionSheet: 新增 `t-class-content`、`t-class-cancel` 外部样式类 [#557](https://github.com/Tencent/tdesign-miniprogram/pull/557) [@webwyb](https://github.com/webwyb)
-- Progress: 新增 `t-class-bar` 外部样式类 [#558](https://github.com/Tencent/tdesign-miniprogram/pull/558) [@anlyyao](https://github.com/anlyyao)
-- Picker: [#565](https://github.com/Tencent/tdesign-miniprogram/pull/565) [@LeeJim](https://github.com/LeeJim)
- - 新增 `confirm` 事件,返回参数和 `change` 一致
- - `confirm`、`change`、`pick` 事件均返回 `label` 参数
-
-## 0.13.2 `2022-6-16`
-
-### Bug Fixes
-
-- Dialog: 修复取消按钮传递 Object 显示不正确的问题 [#510](https://github.com/Tencent/tdesign-miniprogram/pull/510) [@weihongyu12](https://github.com/weihongyu12)
-- Checkbox: 修复外部样式类无法使用的问题 [#535](https://github.com/Tencent/tdesign-miniprogram/pull/535) [@LeeJim](https://github.com/LeeJim)
-
-### Features
-
-- DropdownMenu: 单选的情况下,选择之后直接关闭 [#539](https://github.com/Tencent/tdesign-miniprogram/pull/539) [@LeeJim](https://github.com/LeeJim)
-
-## 0.13.1 `2022-6-10`
-
-### Bug Fixes
-
-- Textarea: 修复字数统计不生效的问题 [#510](https://github.com/Tencent/tdesign-miniprogram/pull/510) [@anlyyao](https://github.com/anlyyao)
-- Textarea: 移除无用的组件依赖 [#520](https://github.com/Tencent/tdesign-miniprogram/pull/520) [@LeeJim](https://github.com/LeeJim)
-
-### Features
-
-- Textarea: 支持 `cursor-spacing` 属性 [#512](https://github.com/Tencent/tdesign-miniprogram/pull/512) [@anlyyao](https://github.com/anlyyao)
-- Toast: 新增 `showToast` 和 `hideToast` 方法 [#514](https://github.com/Tencent/tdesign-miniprogram/pull/514) [@webwyb](https://github.com/webwyb)
-
-### Others
-
-- 支持微信开发者工具可视化编程
-
-## 0.13.0 `2022-6-1`
-### BREAKING CHANGES
-
-- Picker: [#462](https://github.com/Tencent/tdesign-miniprogram/pull/462) [@wutianSweet](https://github.com/wutianSweet)
- - 事件 `change` 更名为 `pick`
- - 事件 `confirm` 更名为 `change`
-- PickerItem: [#462](https://github.com/Tencent/tdesign-miniprogram/pull/462) [@wutianSweet](https://github.com/wutianSweet)
- - 移除 `value` 属性
-- DateTimePicker: [#462](https://github.com/Tencent/tdesign-miniprogram/pull/462) [@wutianSweet](https://github.com/wutianSweet)
- - 新增 `start` 和 `end` 属性用于替代 `disable-date` 属性
- - 移除 `disable-date` 属性
- - 事件 `change` 更名为 `pick`
- - 事件 `confirm` 更名为 `change`
- - 移除 `column-change` 事件
- - 属性 `format` 默认值改成 `''`
- - 重构了事件返回参数,在传入了 `format` 属性时,`value` 则是格式化之后的值,否则就是 `picker-item` 的值
-
-### Bug Fixes
-
-- Tabs: 修复在 `popup` 中使用时丢失 `tab-nav` 的问题 [#491](https://github.com/Tencent/tdesign-miniprogram/pull/491) [@LeeJim](https://github.com/LeeJim)
-- Input: 修复 `max-character` 不生效的问题 [#495](https://github.com/Tencent/tdesign-miniprogram/pull/495) [@LeeJim](https://github.com/LeeJim)
-- PullDownRefresh: 修复使用组件之后无法滚动的问题 [#502](https://github.com/Tencent/tdesign-miniprogram/pull/502) [@LeeJim](https://github.com/LeeJim)
-
-### Features
-
-- Tabbar: 新增支持 `icon` 插槽 [#485](https://github.com/Tencent/tdesign-miniprogram/pull/485) [@LeeJim](https://github.com/LeeJim)
-- Button: 新增 `iconProps` 属性透传至 `icon` [#492](https://github.com/Tencent/tdesign-miniprogram/pull/492) [@LeeJim](https://github.com/LeeJim)
-- Collapse: 新增 `t-class-header` & `t-class-content` 外部样式类 [#496](https://github.com/Tencent/tdesign-miniprogram/pull/496) [@LeeJim](https://github.com/LeeJim)
-- Input: 新增 `prefixIcon` 属性和插槽 [#498](https://github.com/Tencent/tdesign-miniprogram/pull/498) [@LeeJim](https://github.com/LeeJim)
-
-## 0.12.1 `2022-5-27`
-### Bug Fixes
-
-- Dialog: 修复按钮传入 `openType` 不生效的问题 [#470](https://github.com/Tencent/tdesign-miniprogram/pull/470) [@LeeJim](https://github.com/LeeJim)
-- Collapse: 修复 `t-class` 外部样式类无法使用的问题 [#473](https://github.com/Tencent/tdesign-miniprogram/pull/473) [@LeeJim](https://github.com/LeeJim)
-- DropdownMenu: 修复 `label` 无法实时更新的问题 [#474](https://github.com/Tencent/tdesign-miniprogram/pull/474) [@LeeJim](https://github.com/LeeJim)
-- Sticky: 修复吸顶后 `tabs` 无法滑动的问题 [#475](https://github.com/Tencent/tdesign-miniprogram/pull/475) [@LeeJim](https://github.com/LeeJim)
-- Tabbar: 补充缺失的 `icon` 插槽 [#485](https://github.com/Tencent/tdesign-miniprogram/pull/485) [@LeeJim](https://github.com/LeeJim)
-
-## 0.12.0 `2022-5-24`
-
-### BREAKING CHANGES
-
-- Collapse: `expandIcon` 默认值从 `true` 改成 `null` [#462](https://github.com/Tencent/tdesign-miniprogram/pull/462) [@LeeJim](https://github.com/LeeJim)
-- Collapse: `headerRightContent` 移除 `boolean` 类型 [#462](https://github.com/Tencent/tdesign-miniprogram/pull/462) [@LeeJim](https://github.com/LeeJim)
-### Bug Fixes
-
-- Tabbar: 优化代码避免在 setData 里传输不必要的页面实例 [#448](https://github.com/Tencent/tdesign-miniprogram/pull/448) [@1977474741](https://github.com/1977474741)
-- Sticky: 修复在无法获取页面实例时报错的问题 [#449](https://github.com/Tencent/tdesign-miniprogram/pull/449) [@JJunYang](https://github.com/JJunYang)
-- Skeleton: 添加组件基础默认样式 [#453](https://github.com/Tencent/tdesign-miniprogram/pull/453) [@JJunYang](https://github.com/JJunYang)
-- DropdownMenu: 修正遮罩层的位置,以及下拉菜单的高度 [#456](https://github.com/Tencent/tdesign-miniprogram/pull/456) [@LeeJim](https://github.com/LeeJim)
-- DropdownMenu: 修复菜单选项点击区域过小的问题 [#457](https://github.com/Tencent/tdesign-miniprogram/pull/457) [@LeeJim](https://github.com/LeeJim)
-- BackTop: 修复丢失的 `to-top` 事件 [#460](https://github.com/Tencent/tdesign-miniprogram/pull/460) [@JJunYang](https://github.com/JJunYang)
-- Collapse: 修复 `header`、`expand-icon`、`header-right-content` 插槽无法使用的问题 [#462](https://github.com/Tencent/tdesign-miniprogram/pull/462) [@LeeJim](https://github.com/LeeJim)
-### Features
-
-- Steps: 节点支持自定义样式 [#437](https://github.com/Tencent/tdesign-miniprogram/pull/437) [@anlyyao](https://github.com/anlyyao)
-
-## 0.11.2 `2022-5-15`
-
-### Bug Fixes
-
-- Picker: 修复在没有取消和确认按钮的时候,标题没居中对齐的问题 [#435](https://github.com/Tencent/tdesign-miniprogram/pull/435) [@LeeJim](https://github.com/LeeJim)
-- Sticky: 修复在极端情况下报错的问题 [#440](https://github.com/Tencent/tdesign-miniprogram/pull/440) [@JJunYang](https://github.com/JJunYang)
-
-### Features
-
-- 完善 Input 原生属性: [#434](https://github.com/Tencent/tdesign-miniprogram/pull/434) [@LeeJim](https://github.com/LeeJim)
- - 完善 `change` 事件,增加返回 `cursor` 和 `keyCode` 数据
- - 增加 `keyboardheightchange` 事件,键盘高度发生变化的时候触发
- - 增加占位符相关属性:`placehoderStyle` 和 `placeholderClass`
- - 增加光标相关属性:`cursor`、`selection-start`、`selection-end`
- - 增加 `hold-keyboard` 属性
- - 增加安全键盘相关属性
-- Button: 增加 `bindchooseavatar` 原生事件,用户选择头像 [#443](https://github.com/Tencent/tdesign-miniprogram/pull/443) [@anlyyao](https://github.com/anlyyao)
-- Input: 支持 `borderless` 属性 [3cd7d58](https://github.com/Tencent/tdesign-miniprogram/commit/3cd7d58beed539914382784701e1b611293ad257) [@LeeJim](https://github.com/LeeJim)
-## 0.11.1 `2022-5-10`
-
-### Bug Fixes
-
-- 依赖错误的问题 [#438](https://github.com/Tencent/tdesign-miniprogram/pull/438) [@LeeJim](https://github.com/LeeJim)
-
-## 0.11.0 `2022-5-7`
-
-### BREAKING CHANGES
-
-- Tabs: 不再支持 slot 类型的 `label` [#423](https://github.com/Tencent/tdesign-miniprogram/pull/423) [@LeeJim](https://github.com/LeeJim)
-
-### Bug Fixes
-
-- Picker: 修复滑动延迟的问题 [#415](https://github.com/Tencent/tdesign-miniprogram/pull/415) [@LeeJim](https://github.com/LeeJim)
-- Avatar: 修复图标大小不随尺寸变化的问题 [#424](https://github.com/Tencent/tdesign-miniprogram/pull/424) [@Perisiguiendo](https://github.com/Perisiguiendo)
-- Tabbar: 修复样式告警问题 [#426](https://github.com/Tencent/tdesign-miniprogram/pull/426) [@anlyyao](https://github.com/anlyyao)
-- 修复样式告警问题: [#431](https://github.com/Tencent/tdesign-miniprogram/pull/431) [@anlyyao](https://github.com/anlyyao)
- - ActionSheet
- - ImageViewer
- - Picker
- - Steps
-## 0.10.0 `2022-4-29`
-
-### BREAKING CHANGES
-
-- Picker: 子组件名称从 `t-picker-column` 改成 `t-picker-item` [#392](https://github.com/Tencent/tdesign-miniprogram/pull/392) [@LeeJim](https://github.com/LeeJim)
-- DateTimePicker: `value` 从非受控改成受控 [#413](https://github.com/Tencent/tdesign-miniprogram/pull/413) [@LeeJim](https://github.com/LeeJim)
-### Bug Fixes
-
-- Drawer: 修复 `items` 标题无法显示的问题 [#388](https://github.com/Tencent/tdesign-miniprogram/pull/388) [@anlyyao](https://github.com/anlyyao)
-- PullDownRefresh: 修复无法使用的问题 [#400](https://github.com/Tencent/tdesign-miniprogram/pull/400) [@LeeJim](https://github.com/LeeJim)
-- Toast: 更正 `Loading` 标志的颜色 [#405](https://github.com/Tencent/tdesign-miniprogram/pull/405) [@LeeJim](https://github.com/LeeJim)
-- DateTimePicker: 修复 `defaultValue` 无法使用的问题 [#413](https://github.com/Tencent/tdesign-miniprogram/pull/413) [@LeeJim](https://github.com/LeeJim)
-
-### Features
-
-- Overlay: 新增遮罩层组件 [#407](https://github.com/Tencent/tdesign-miniprogram/pull/407) [@LeeJim](https://github.com/LeeJim)
-- ImageViewer: 新增图片预览组件 [#408](https://github.com/Tencent/tdesign-miniprogram/pull/408) [@NuoHui](https://github.com/NuoHui)
-- Tabs: 新增 `click` 事件 [#384](https://github.com/Tencent/tdesign-miniprogram/pull/384) [@JJunYang](https://github.com/JJunYang)
-- Grid: 新增 default `slot` [#395](https://github.com/Tencent/tdesign-miniprogram/pull/395) [@LeeJim](https://github.com/LeeJim)
-- Loading: 新增 `inheritColor` 属性,加载标志的颜色继承外部 [#404](https://github.com/Tencent/tdesign-miniprogram/pull/404) [@LeeJim](https://github.com/LeeJim)
-- Toast: 新增遮罩层,通过 `showOverlay` 和 `overlayProps` 控制 [#409](https://github.com/Tencent/tdesign-miniprogram/pull/409) [@LeeJim](https://github.com/LeeJim)
-
-## 0.9.0 `2022-4-21`
-
-### BREAKING CHANGES
-
-- Steps: 子组件名称从 `t-step` 改成 `t-step-item` [#373](https://github.com/Tencent/tdesign-miniprogram/pull/373) [@anlyyao](https://github.com/anlyyao)
-### Bug Fixes
-
-- Checkbox: 优化渲染性能 [#358](https://github.com/Tencent/tdesign-miniprogram/pull/358) [@LeeJim](https://github.com/LeeJim)
-- Switch: 修复无法选择的问题 [#362](https://github.com/Tencent/tdesign-miniprogram/pull/362) [@LeeJim](https://github.com/LeeJim)
-
-### Features
-
-- ActionSheet: 新增动作面板组件 [#347](https://github.com/Tencent/tdesign-miniprogram/pull/347) [@NuoHui](https://github.com/NuoHui)
-- NoticeBar: 新增公告栏组件 [#354](https://github.com/Tencent/tdesign-miniprogram/pull/354) [@anlyyao](https://github.com/anlyyao)
-
-## 0.8.0 `2022-4-15`
-
-### BREAKING CHANGES
-
-- CheckboxGroup: change 事件返回的 value 将会过滤非 checkbox 的值 [#347](https://github.com/Tencent/tdesign-miniprogram/pull/347) [@LeeJim](https://github.com/LeeJim)
-### Bug Fixes
-
-- Steps: 修复子步骤条不支持 status 的问题 [#334](https://github.com/Tencent/tdesign-miniprogram/pull/334) [@anlyyao](https://github.com/anlyyao)
-- Picker: 修复出现空白的取消和确认按钮 [#342](https://github.com/Tencent/tdesign-miniprogram/pull/342) [@jin0209](https://github.com/jin0209)
-- Swiper: 修复点击误触发翻页问题 [#343](https://github.com/Tencent/tdesign-miniprogram/pull/343) [@esky](https://github.com/esky)
-- Radio: 修复 label 错误的渲染位置 [#347](https://github.com/Tencent/tdesign-miniprogram/pull/347) [@LeeJim](https://github.com/LeeJim)
-- Checkbox: 修复 label 错误的渲染位置 [#347](https://github.com/Tencent/tdesign-miniprogram/pull/347) [@LeeJim](https://github.com/LeeJim)
-- Textarea:
- - 修复缺失的 label 插槽 [#348](https://github.com/Tencent/tdesign-miniprogram/pull/348) [@anlyyao](https://github.com/anlyyao)
- - 修复传入 adjust-position 不生效的问题 [#349](https://github.com/Tencent/tdesign-miniprogram/pull/349) [@anlyyao](https://github.com/anlyyao)
-- Transition: 修复动画过程中触发 leave 会导致界面卡死的问题 [#356](https://github.com/Tencent/tdesign-miniprogram/pull/356) [@esky](https://github.com/esky)
-### Features
-
-- DropdownMenu: 新增下拉菜单组件 [#347](https://github.com/Tencent/tdesign-miniprogram/pull/347) [@LeeJim](https://github.com/LeeJim)
-- Radio: 新增 borderless 属性 [#347](https://github.com/Tencent/tdesign-miniprogram/pull/347) [@LeeJim](https://github.com/LeeJim)
-- Checkbox:
- - 新增 borderless 属性 [#347](https://github.com/Tencent/tdesign-miniprogram/pull/347) [@LeeJim](https://github.com/LeeJim)
- - 新增 theme 属性,添加 tag 类型,默认值为 default [#347](https://github.com/Tencent/tdesign-miniprogram/pull/347) [@LeeJim](https://github.com/LeeJim)
-- CheckboxGroup: 新增 customStyle 属性,透传 style 至根元素 [#347](https://github.com/Tencent/tdesign-miniprogram/pull/347) [@LeeJim](https://github.com/LeeJim)
-
-
-
-## 0.7.3 `2022-4-7`
-
-### Bug Fixes
-
-- Cell: 修复传入 String 类型的 `right-icon` 不生效的问题 [#321](https://github.com/Tencent/tdesign-miniprogram/pull/321) [@LeeJim](https://github.com/LeeJim)
-- Tabs: 属性 `label` 支持 slot [#327](https://github.com/Tencent/tdesign-miniprogram/pull/327) [@LeeJim](https://github.com/LeeJim)
-- Dialog: 完善 `close` 事件返回的参数 [#332](https://github.com/Tencent/tdesign-miniprogram/pull/332) [@LeeJim](https://github.com/LeeJim)
-- 受控优化:支持不传值时默认为非受控用法 [#329](https://github.com/Tencent/tdesign-miniprogram/pull/329) [#331](https://github.com/Tencent/tdesign-miniprogram/pull/331) [@LeeJim](https://github.com/LeeJim)
-### Features
-
-- 新增组件:
- - Collapse 折叠面板 [#322](https://github.com/Tencent/tdesign-miniprogram/pull/322) [@LeeJim](https://github.com/LeeJim)
- - Progress 进度条 [#318](https://github.com/Tencent/tdesign-miniprogram/pull/318) [@anlyyao](https://github.com/anlyyao)
-- Picker: 新增属性 `header` 以及 `header` 和 `footer` 的插槽 [#323](https://github.com/Tencent/tdesign-miniprogram/pull/323) [@jin0209](https://github.com/jin0209)
-- DateTimePicker: 新增属性 `header` 以及 `header` 和 `footer` 的插槽 [#323](https://github.com/Tencent/tdesign-miniprogram/pull/323) [@jin0209](https://github.com/jin0209)
-
-## 0.7.2 `2022-3-31`
-
-### Bug Fixes
-
-- Search: 修复 `submit` 事件返回参数错误的问题 [#291](https://github.com/Tencent/tdesign-miniprogram/pull/291) [@anlyyao](https://github.com/anlyyao)
-- Toast: 修复最大宽度和文案没对齐的问题 [#301](https://github.com/Tencent/tdesign-miniprogram/pull/301) [@zhenzhencai](https://github.com/zhenzhencai)
-- Input: 修复设置 `clearable` ,点击不清除内容的问题 [#303](https://github.com/Tencent/tdesign-miniprogram/pull/303) [@LeeJim](https://github.com/LeeJim)
-- Dialog: 修复 1px 边框在 iOS 上消失的问题 [#304](https://github.com/Tencent/tdesign-miniprogram/pull/304) [@jin0209](https://github.com/jin0209)
-- Swiper: 修复延迟设置地址时,显示不正常的问题 [#305](https://github.com/Tencent/tdesign-miniprogram/pull/305) [@esky](https://github.com/esky)
-- Button: 修复文案没有垂直居中的问题 [#311](https://github.com/Tencent/tdesign-miniprogram/pull/311) [@anlyyao](https://github.com/anlyyao)
-
-### Features
-
-- 新增组件:
- - Fab 悬浮按钮 [#310](https://github.com/Tencent/tdesign-miniprogram/pull/310) [@LeeJim](https://github.com/LeeJim)
- - Drawer 抽屉 [#308](https://github.com/Tencent/tdesign-miniprogram/pull/308) [@anlyyao](https://github.com/anlyyao)
-
-## 0.7.1 `2022-3-25`
-### Bug Fixes
-
-- Loading: 修复 `loading` 默认值为 `true` 但不显示的问题 [#272](https://github.com/Tencent/tdesign-miniprogram/pull/272) [@JJunYang](https://github.com/JJunYang)
-- Stepper: 修复图标偏移的问题 [#280](https://github.com/Tencent/tdesign-miniprogram/pull/280) [@Winfans](https://github.com/Winfans)
-- Search: 修复 `action-click` 事件不生效的问题 [#283](https://github.com/Tencent/tdesign-miniprogram/pull/283) [@LeeJim](https://github.com/LeeJim)
-- Textarea: 修复 `Form` 无法获取值的问题 [#284](https://github.com/Tencent/tdesign-miniprogram/pull/284) [@anlyyao](https://github.com/anlyyao)
-
-### Feature
-
-- 增加点击态:[#279](https://github.com/Tencent/tdesign-miniprogram/pull/279) [@Perisiguiendo](https://github.com/Perisiguiendo)
- - Grid
- - Tabbar
-- Upload: 使用 `t-image` 封装,并支持 `image-props` 用于属性透传 [#289](https://github.com/Tencent/tdesign-miniprogram/pull/289) [@xihangzhou](https://github.com/xihangzhou)
-
-## 0.7.0 `2022-3-18`
-
-### BREAKING CHANGES
-
-- Image:
- - 属性 `load-failed` 变更为 `error` [#265](https://github.com/Tencent/tdesign-miniprogram/pull/265) [@xihangzhou](https://github.com/xihangzhou)
- - 属性 `lazy-load` 变更为 `lazy` [#269](https://github.com/Tencent/tdesign-miniprogram/pull/269) [@LeeJim](https://github.com/LeeJim)
-
-### Bug Fixes
-
-- Button: 样式调整 [#262](https://github.com/Tencent/tdesign-miniprogram/pull/262) [@anlyyao](https://github.com/anlyyao)
-- Tag: 修复样式文件冗余的问题 [#267](https://github.com/Tencent/tdesign-miniprogram/pull/267) [@LeeJim](https://github.com/LeeJim)
-- Steps: 修复样式文件冗余的问题 [#268](https://github.com/Tencent/tdesign-miniprogram/pull/268) [@LeeJim](https://github.com/LeeJim)
-
-### Feature
-
-- Image: 新增 `shape` 属性 [#265](https://github.com/Tencent/tdesign-miniprogram/pull/265) [@xihangzhou](https://github.com/xihangzhou)
-
-## 0.6.2 `2022-3-14`
-
-### Bug Fixes
-
-- Button:
- - 兼容不支持 `wx://form-field-button` 的版本 [#249](https://github.com/Tencent/tdesign-miniprogram/pull/249) [@anlyyao](https://github.com/anlyyao)
- - 修正 type 属性的正确实现 [#250](https://github.com/Tencent/tdesign-miniprogram/pull/250) [@anlyyao](https://github.com/anlyyao)
-- 修复在 `form` 下无法获取值的问题:
- - Input [#256](https://github.com/Tencent/tdesign-miniprogram/pull/256) [@anlyyao](https://github.com/anlyyao)
- - Checkbox、Radio、Switch [#257](https://github.com/Tencent/tdesign-miniprogram/pull/257) [@anlyyao](https://github.com/anlyyao)
-- Upload: 修复关闭按钮层级过低的问题 [#246](https://github.com/Tencent/tdesign-miniprogram/pull/246) [@Winfans ](https://github.com/Winfans )
-- Toast: 修复层级过低的问题 [f4f6b5b](https://github.com/Tencent/tdesign-miniprogram/commit/f4f6b5be9c0f770c54c9c3ac976dce3f57ca2591) [@LeeJim](https://github.com/LeeJim)
-- Rate: 修复 iOS 下颜色失效的问题 [#244](https://github.com/Tencent/tdesign-miniprogram/pull/244) [@zhenzhencai ](https://github.com/zhenzhencai )
-### Feature
-
-- Button: 新增 `customDataset` 属性,可通过 `event.currentTarget.dataset.custom` 获取 [#259](https://github.com/Tencent/tdesign-miniprogram/pull/259) [@anlyyao](https://github.com/anlyyao)
-- Upload: 支持对图片和视频的同时上传 [#245](https://github.com/Tencent/tdesign-miniprogram/pull/245) [@xihangzhou](https://github.com/xihangzhou)
-
-## 0.6.1 `2022-3-10`
-
-### Bug Fixes
-- Dialog:
- - 修复调用时没重复默认值问题 [#235](https://github.com/Tencent/tdesign-miniprogram/pull/235) [@scshsy](https://github.com/scshsy)
- - 修复内部 `Button` 样式错误 [#236](https://github.com/Tencent/tdesign-miniprogram/pull/236) [@anlyyao](https://github.com/anlyyao)
-- Upload: 修复在 iOS 上无法选择的问题 [#239](https://github.com/Tencent/tdesign-miniprogram/pull/239) [@LeeJim](https://github.com/LeeJim)
-- Button: 属性 shape 的默认值改为 rectangle [#240](https://github.com/Tencent/tdesign-miniprogram/pull/240) [@anlyyao](https://github.com/anlyyao)
-- Rate: 修复 `value = 0` 时无法点击的问题 [#242](https://github.com/Tencent/tdesign-miniprogram/pull/242) [@zhenzhencai](https://github.com/zhenzhencai)
-- Grid: 修复样式问题 [#243](https://github.com/Tencent/tdesign-miniprogram/pull/243) [@xihangzhou](https://github.com/xihangzhou)
-
-## 0.6.0 `2022-3-8`
-
-### BREAKING CHANGES
-
-- Button: [#212](https://github.com/Tencent/tdesign-miniprogram/pull/212) [@anlyyao](https://github.com/anlyyao)
- - 重构 `shape` 的实现,新增支持 `rectangle`、`circle` 类型
- - 修复 `shape = round` 样式不对的问题
- - 支持纯图标按钮
-### Bug Fixes
-
-- Stepper: 修复 `Stepper` 组件事件向上冒泡 [#216](https://github.com/Tencent/tdesign-miniprogram/pull/216) [@zhenzhencai](https://github.com/zhenzhencai)
-- Checkbox: 修复 `prefix` 问题 [#218](https://github.com/Tencent/tdesign-miniprogram/pull/218) [@amberlwan](https://github.com/amberlwan)
-- Popup: 支持默认 `slot` [#219](https://github.com/Tencent/tdesign-miniprogram/pull/219) [@Perisiguiendo](https://github.com/Perisiguiendo)
-- Image: 记录 `Image` 组件传入的 src, 防止 src 相同时重复刷新 [#221](https://github.com/Tencent/tdesign-miniprogram/pull/221) [@xihangzhou](https://github.com/xihangzhou)
-- Tag: 增加外部样式类 [#223](https://github.com/Tencent/tdesign-miniprogram/pull/223) [@xihangzhou](https://github.com/xihangzhou)
-- Button: 修改对 `Button` 组件的使用 demo [#229](https://github.com/Tencent/tdesign-miniprogram/pull/229) [@anlyyao](https://github.com/anlyyao)
-- Toast:
- - 修改未传入的参数为默认值 [#230](https://github.com/Tencent/tdesign-miniprogram/pull/230) [@scshsy](https://github.com/scshsy)
- - 修复 `z-index` 低于 `Popup` 问题 [#233](https://github.com/Tencent/tdesign-miniprogram/pull/233) [@LeeJim](https://github.com/LeeJim)
-
-## 0.5.4 `2022-3-4`
-### Bug Fixes
-- Slider: 视觉调整 & demo无法滑动问题修复 [#200](https://github.com/Tencent/tdesign-miniprogram/pull/200) [@anlyyao](https://github.com/anlyyao)
-- Search: 修复圆角样式不生效问题 [#208](https://github.com/Tencent/tdesign-miniprogram/pull/208) [@JJunYang](https://github.com/JJunYang)
-- Tab-bar: 修复 `value` 不生效问题 [#211](https://github.com/Tencent/tdesign-miniprogram/pull/211) [@LeeJim](https://github.com/LeeJim)
-### Feature
-- Picker: 支持渐进式滚动 [#203](https://github.com/Tencent/tdesign-miniprogram/pull/203) [@wutianSweet](https://github.com/wutianSweet)
-- Tabs: 添加滚动条外部样式类 [#213](https://github.com/Tencent/tdesign-miniprogram/pull/213) [@JJunYang](https://github.com/JJunYang)
-
-## 0.5.3 `2022-2-24`
-### Bug Fixes
-- Input: 修复 `label` 不生效的问题 [#190](https://github.com/Tencent/tdesign-miniprogram/pull/190) [@zhenzhencai](https://github.com/zhenzhencai)
-- Slider: 修复 `value` 不受控的问题 [#193](https://github.com/Tencent/tdesign-miniprogram/pull/193) [@LeeJim](https://github.com/LeeJim)
-- Search: [#195](https://github.com/Tencent/tdesign-miniprogram/pull/195) [@LeeJim](https://github.com/LeeJim)
- - 移除受控用法
- - 支持双向绑定
- - 修复 `placeholder` 展示错误的问题
-## 0.5.2 `2022-2-15`
-
-### Bug Fixes
-- Stepper: 修复标签过长时的遮挡问题 [#175](https://github.com/Tencent/tdesign-miniprogram/pull/175) [@GAOGAO1994](https://github.com/GAOGAO1994)
-- Upload: 修复 `success` 事件,返回当前选择的所有文件 [#181](https://github.com/Tencent/tdesign-miniprogram/pull/181) [@LeeJim](https://github.com/LeeJim)
-- Checkbox: 修复选择异常的问题 [#181](https://github.com/Tencent/tdesign-miniprogram/pull/181) [@LeeJim](https://github.com/LeeJim)
-### Feature
-- Upload: 新增 `add` 事件,返回当前选择的文件 [#181](https://github.com/Tencent/tdesign-miniprogram/pull/181) [@LeeJim](https://github.com/LeeJim)
-
-## 0.5.1 `2022-2-15`
-
-### Bug Fixes
-
-- Stepper
- - 修复外部样式类失效的问题 [#168](https://github.com/Tencent/tdesign-miniprogram/pull/168) [@walkerliu01](https://github.com/walkerliu01)
- - 修复点击热区过于小的问题 [#169](https://github.com/Tencent/tdesign-miniprogram/pull/169) [@LeeJim](https://github.com/LeeJim)
-- Cell: 修复基础样式丢失的问题 [#171](https://github.com/Tencent/tdesign-miniprogram/pull/171) [@LeeJim](https://github.com/LeeJim)
-- CountDown: 修复基础样式丢失的问题 [#172](https://github.com/Tencent/tdesign-miniprogram/pull/172) [@LeeJim](https://github.com/LeeJim)
-- Divider: 修复基础样式丢失的问题 [#173](https://github.com/Tencent/tdesign-miniprogram/pull/173) [@LeeJim](https://github.com/LeeJim)
-- Checkbox: 修复禁用状态下的选中态 [#175](https://github.com/Tencent/tdesign-miniprogram/pull/175) [@amberlwan](https://github.com/amberlwan)
-### Feature
-
-- Steps: 升级新版视觉 [#167](https://github.com/Tencent/tdesign-miniprogram/pull/167) [@LeeJim](https://github.com/LeeJim)
-- Dialog: 新增外部样式类 [#170](https://github.com/Tencent/tdesign-miniprogram/pull/170) [@LeeJim](https://github.com/LeeJim)
-- CountDown: 新增 3 个属性:`size`、`theme`、`splitWithUnit` [#172](https://github.com/Tencent/tdesign-miniprogram/pull/172) [@LeeJim](https://github.com/LeeJim)
-
-## 0.5.0 `2022-1-28`
-
-### BREAKING CHANGES
-
-- 组件支持受控用法,对应的非受控属性增加了 `default` 前缀。支持受控的组件如下:
- - Checkbox [#158](https://github.com/Tencent/tdesign-miniprogram/pull/158) [@amberlwan](https://github.com/amberlwan)
- - Upload [#156](https://github.com/Tencent/tdesign-miniprogram/pull/156) [@LeeJim](https://github.com/LeeJim)
- - Search [#152](https://github.com/Tencent/tdesign-miniprogram/pull/152) [@LeeJim](https://github.com/LeeJim)
- - Slider [#151](https://github.com/Tencent/tdesign-miniprogram/pull/151) [@LeeJim](https://github.com/LeeJim)
- - Stepper [#150](https://github.com/Tencent/tdesign-miniprogram/pull/150) [@LeeJim](https://github.com/LeeJim)
- - Rate [#149](https://github.com/Tencent/tdesign-miniprogram/pull/149) [@LeeJim](https://github.com/LeeJim)
- - Tabbar [#148](https://github.com/Tencent/tdesign-miniprogram/pull/148) [@LeeJim](https://github.com/LeeJim)
- - Tabs [#147](https://github.com/Tencent/tdesign-miniprogram/pull/147) [@LeeJim](https://github.com/LeeJim)
- - Steps [#146](https://github.com/Tencent/tdesign-miniprogram/pull/146) [@LeeJim](https://github.com/LeeJim)
- - Radio [#143](https://github.com/Tencent/tdesign-miniprogram/pull/143) [@LeeJim](https://github.com/LeeJim)
- - Tag [#130](https://github.com/Tencent/tdesign-miniprogram/pull/130) [@LeeJim](https://github.com/LeeJim)
- - Dialog [#124](https://github.com/Tencent/tdesign-miniprogram/pull/124) [@LeeJim](https://github.com/LeeJim)
- - Switch [#122](https://github.com/Tencent/tdesign-miniprogram/pull/122) [@LeeJim](https://github.com/LeeJim)
-- Textarea: 属性 `name` 变更为 `label` [#157](https://github.com/Tencent/tdesign-miniprogram/pull/157) [@LeeJim](https://github.com/LeeJim)
-- Input: 属性 `name` 变更为 `label` [#153](https://github.com/Tencent/tdesign-miniprogram/pull/153) [@LeeJim](https://github.com/LeeJim)
-- Search: [#152](https://github.com/Tencent/tdesign-miniprogram/pull/152) [@LeeJim](https://github.com/LeeJim)
- - 属性 `actionText` 变更为 `action`
- - 属性 `keyword` 变更为 `value`
-
-### Bug Fixes
-
-- 修复基础样式丢失的问题:
- - Loading [#140](https://github.com/Tencent/tdesign-miniprogram/pull/140) [@JJunYang](https://github.com/JJunYang)
- - Badge [#131](https://github.com/Tencent/tdesign-miniprogram/pull/131) [@Perisiguiendo](https://github.com/Perisiguiendo)
- - Avatar [#116](https://github.com/Tencent/tdesign-miniprogram/pull/116) [@Perisiguiendo](https://github.com/Perisiguiendo)
-- Button: 修复 `disabled` 失效的问题 [#134](https://github.com/Tencent/tdesign-miniprogram/pull/134) [@LeeJim](https://github.com/LeeJim)
-- Search: 修复事件参数错误的问题 [#132](https://github.com/Tencent/tdesign-miniprogram/pull/132) [@Perisiguiendo](https://github.com/Perisiguiendo)
-- Dialog: 修复 `Dialog.action` 显示错误的问题 [#124](https://github.com/Tencent/tdesign-miniprogram/pull/124) [@LeeJim](https://github.com/LeeJim)
-
-### Feature
-
-- Input: 支持双向绑定 [#133](https://github.com/Tencent/tdesign-miniprogram/pull/133) [@LeeJim](https://github.com/LeeJim)
-- Tabbar: 新增 `split` 属性控制是否展示分割线 [#126](https://github.com/Tencent/tdesign-miniprogram/pull/126) [@LeeJim](https://github.com/LeeJim)
-- Icon: 支持自定义 `prefix` [#117](https://github.com/Tencent/tdesign-miniprogram/pull/117) [@vhxubo](https://github.com/vhxubo)
-## 0.4.2 `2022-1-10`
-
-### Bug Fixes
-
-- Popup: 修复事件参数错误的问题 [#91](https://github.com/Tencent/tdesign-miniprogram/pull/91) [@LeeJim](https://github.com/LeeJim)
-- Checkbox: 完善缺失的插槽(`label`、`content`) [#95](https://github.com/Tencent/tdesign-miniprogram/pull/95) [@LeeJim](https://github.com/LeeJim)
-- Dialog: 修复按钮宽度计算错误的问题 [#100](https://github.com/Tencent/tdesign-miniprogram/pull/100) [@LeeJim](https://github.com/LeeJim)
-- Button: 修复在 `{ style: "v2" }` 的情况下,按钮宽度异常的问题 [#79](https://github.com/Tencent/tdesign-miniprogram/pull/79) [@vhxubo](https://github.com/vhxubo)
-
-## 0.4.1 `2022-1-6`
-### Bug Fixes
-
-- Tabs: 修复滑动切换时,不会触发 `change` 事件的问题 [#65](https://github.com/Tencent/tdesign-miniprogram/pull/65) [@BeanCookie](https://github.com/BeanCookie)
-- Message: 未正确引入组件时,抛出的错误信息 [#73](https://github.com/Tencent/tdesign-miniprogram/pull/73) [@LeeJim](https://github.com/LeeJim)
-- Dialog: 修复样式异常的问题 [#83](https://github.com/Tencent/tdesign-miniprogram/pull/83) [@LeeJim](https://github.com/LeeJim)
-
-### Feature
-
-- Button: 支持 `content` 属性,代表按钮内容 [#83](https://github.com/Tencent/tdesign-miniprogram/pull/83) [@LeeJim](https://github.com/LeeJim)
-- Dialog: `cancelBtn` 和 `confirmBtn` 支持所有 `t-button` 的属性 [#83](https://github.com/Tencent/tdesign-miniprogram/pull/83) [@LeeJim](https://github.com/LeeJim)
-
-## 0.4.0 `2021-12-30`
-
-### BREAKING CHANGES
-- CSS 类名规范:
- - Slider [#45](https://github.com/Tencent/tdesign-miniprogram/pull/45) [@JJunYang](https://github.com/JJunYang)
- - Stepper [#46](https://github.com/Tencent/tdesign-miniprogram/pull/46) [@JJunYang](https://github.com/JJunYang)
- - Button [#51](https://github.com/Tencent/tdesign-miniprogram/pull/51) [@LeeJim](https://github.com/LeeJim)
- - Search [#54](https://github.com/Tencent/tdesign-miniprogram/pull/54) [@JJunYang](https://github.com/JJunYang)
- - Upload [#55](https://github.com/Tencent/tdesign-miniprogram/pull/55) [@JJunYang](https://github.com/JJunYang)
- - Radio [#56](https://github.com/Tencent/tdesign-miniprogram/pull/56) [@LeeJim](https://github.com/LeeJim)
-### Bug Fixes
-
-- Input: 移除了废弃属性 `auto-focus`,详情可关注小程序官方文档 [@LeeJim](https://github.com/LeeJim)
-- Tabs:
- - 修复选项卡底部滑条丢失的问题 [#52](https://github.com/Tencent/tdesign-miniprogram/pull/52) [@LeeJim](https://github.com/LeeJim)
- - 补充了初始化样式 [#68](https://github.com/Tencent/tdesign-miniprogram/pull/68) [@LeeJim](https://github.com/LeeJim)
-
-## 0.3.0 `2021-12-23`
-
-### BREAKING CHANGES
-- CSS 类名规范:
- - Textarea [#26](https://github.com/Tencent/tdesign-miniprogram/pull/26) [@JJunYang](https://github.com/JJunYang)
- - Toast [#27](https://github.com/Tencent/tdesign-miniprogram/pull/27) [@jin0209](https://github.com/jin0209)
- - Sticky [#24](https://github.com/Tencent/tdesign-miniprogram/pull/24) [@jin0209](https://github.com/jin0209)
- - Search [#28](https://github.com/Tencent/tdesign-miniprogram/pull/28) [@JJunYang](https://github.com/JJunYang)
- - Tabbar [#34](https://github.com/Tencent/tdesign-miniprogram/pull/34) [@LeeJim](https://github.com/LeeJim)
- - Backtop [#35](https://github.com/Tencent/tdesign-miniprogram/pull/35) [@LeeJim](https://github.com/LeeJim)
- - Skeleton [#20](https://github.com/Tencent/tdesign-miniprogram/pull/20) [@jin0209](https://github.com/jin0209)
- - PullDownRefresh [#38](https://github.com/Tencent/tdesign-miniprogram/pull/38) [@jin0209](https://github.com/jin0209)
-
-### Bug Fixes
-
-- 修复开发者工具进行 NPM 构建时报错的问题 [@LeeJim](https://github.com/LeeJim)
-
-### Feature
-
-- Steps: 支持通过 `slot` 的方式传入 `icon` [#22](https://github.com/Tencent/tdesign-miniprogram/pull/22) [@LeeJim](https://github.com/LeeJim)
-
-## 0.2.0 `2021-12-20`
-### BREAKING CHANGES
-
-- CSS 类名规范:
- - Cell [[4a0db04]](https://github.com/Tencent/tdesign-miniprogram/commit/4a0db04768f56016b27405090890d8fcb113c38b) [@jin0209](https://github.com/jin0209)
- - Grid [[13c77c9]](https://github.com/Tencent/tdesign-miniprogram/commit/13c77c93f55e04d7fac144ba5a0b16d336642080) [@jin0209](https://github.com/jin0209)
- - Tabs [[e064d8e]](https://github.com/Tencent/tdesign-miniprogram/commit/e064d8e7fd6c33e81b399bf0b5c15f21ebc7c38e) [@jin0209](https://github.com/jin0209)
- - NavBar [[249af24]](https://github.com/Tencent/tdesign-miniprogram/commit/249af24a8dc05eb868d63138069ad13858a586eb) [@jin0209](https://github.com/jin0209)
- - CountDown [[c6ce131]](https://github.com/Tencent/tdesign-miniprogram/commit/c6ce131cdfd453c8250124d874d6a705a4332a07) [@jin0209](https://github.com/jin0209)
- - Image [[707f9ec]](https://github.com/Tencent/tdesign-miniprogram/commit/707f9ec91cf95a70db86c6dc519d0c4ad869a9c0) [@jin0209](https://github.com/jin0209)
- - Footer [[15036a7]](https://github.com/Tencent/tdesign-miniprogram/commit/15036a75f47244fb859f067309a8a8288b4b606d) [@jin0209](https://github.com/jin0209)
- - Divider [[4cad692]](https://github.com/Tencent/tdesign-miniprogram/commit/4cad69212ab4d71fc84014a82a43440ac9c47592) [@jin0209](https://github.com/jin0209)
- - Avatar [[b7ef036]](https://github.com/Tencent/tdesign-miniprogram/commit/b7ef036106a662275941c4217c4e870a2460736f) [@jin0209](https://github.com/jin0209)
- - Badge [[154a087]](https://github.com/Tencent/tdesign-miniprogram/commit/154a0870f8565f42168990af207051b0c2e427d4) [@jin0209](https://github.com/jin0209)
- - Indexes [[bf0ae0]](https://github.com/Tencent/tdesign-miniprogram/commit/bf0ae05dc0f419aa0a50904f0d22221f67526b18) [@jin0209](https://github.com/jin0209)
- - Input [[6201113]](https://github.com/Tencent/tdesign-miniprogram/commit/6201113a3a7d114b75ca7813ac4c6cb74ccbbf1f) [@JJunYang](https://github.com/JJunYang)
- - Checkbox [[6bf8fc8]](https://github.com/Tencent/tdesign-miniprogram/commit/6bf8fc8c49abf9084c4f968374896ae63270c0a7) [@JJunYang](https://github.com/JJunYang)
-- Tabs: 移除 `click` 事件 [[5973c8a]](https://github.com/Tencent/tdesign-miniprogram/commit/5973c8a76e18fe68bfba81a26ff78a30f11cd5eb) [@JJunYang](https://github.com/JJunYang)
-
-### Bug Fixes
-
-- Icon: 修复没有垂直居中的问题 [[97e1b7f]](https://github.com/Tencent/tdesign-miniprogram/commit/97e1b7f86cb406e49fc73f154a90a1107ddb17e3) [@LeeJim](https://github.com/LeeJim)
-- Rate: 修复展示错乱的问题 [[8c5fe61]](https://github.com/Tencent/tdesign-miniprogram/commit/8c5fe61d4fe00ffe86996743414a738d6e8b2407) [@LeeJim](https://github.com/LeeJim)
-- Tabs: 修复初始化时触发 `change` 的问题 [[1411217]](https://github.com/Tencent/tdesign-miniprogram/commit/141121785f6d7ca2458425aa5fcf10d2419ec248) [@JJunYang](https://github.com/JJunYang)
-
-### Feature
-
-- Tag: 支持不同尺寸的 `icon` [[574cc3c]](https://github.com/Tencent/tdesign-miniprogram/commit/6eee831f4308d205cc2e7187886909922) [@LeeJim](https://github.com/LeeJim)
-
-## 0.1.0-alpha.1 `2021-12-8`
-
-### Bug Fixes
-
-- Swiper: 修复无法切换的问题
-- Picker: 修复默认按钮没显示的问题
-
-## 0.1.0 (2021-11-25)
-
-### BREAKING CHANGES
-
-- Badege: 属性 `visible` 更名为 `showZero`
-- Steps: 属性 `direction` 更名为 `layout`
-
-### Bug Fixes
-
-- DateTimePicker: 修复初始值为空时,取消筛选的问题
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/LICENSE b/src/openeuler/miniprogram_npm/tdesign-miniprogram/LICENSE
deleted file mode 100644
index 789cbde..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/LICENSE
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) 2021-present TDesign
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/README.md b/src/openeuler/miniprogram_npm/tdesign-miniprogram/README.md
deleted file mode 100644
index 0bf45d6..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/README.md
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-[TDesign](https://github.com/Tencent/tdesign) 适配微信小程序的组件库。
-
-## 预览
-
-小程序组件示例小程序,请使用微信扫码预览 ↓
-
-
-
-
-## 安装
-
-### 使用 NPM
-
-小程序已经支持使用 NPM 安装第三方包。
-
-具体使用方式,可以参考小程序官网文档: [《NPM 支持》](https://developers.weixin.qq.com/miniprogram/dev/devtools/npm.html?search-key=npm)
-
-```bash
-npm i tdesign-miniprogram -S --production
-```
-
-> 建议使用 NPM,不再推荐“源码拷贝的方式”
-
-## 使用组件
-
-以按钮组件为例,只需要在 `JSON` 文件中引入按钮对应的自定义组件即可
-
-```json
-{
- "usingComponents": {
- "t-button": "tdesign-miniprogram/button/button"
- }
-}
-```
-
-## 在开发者工具中预览
-
-```bash
-# 安装项目依赖
-npm install
-
-# 执行组件编译
-npm run dev
-```
-
-打开[微信开发者工具](https://mp.weixin.qq.com/debug/wxadoc/dev/devtools/download.html),把 `_example` 目录添加进去就可以预览示例了。
-
-## 基础库版本
-
-最低基础库版本`^2.6.5`
-
-## 开源协议
-
-TDesign 遵循 [MIT 协议](https://github.com/Tencent/tdesign-miniprogram/LICENSE)。
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/.wechatide.ib.json b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/.wechatide.ib.json
deleted file mode 100644
index 461d4e1..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/.wechatide.ib.json
+++ /dev/null
@@ -1,3895 +0,0 @@
-{
- "key": "TDesign",
- "label": "Tdesign",
- "components": {
- "t-action-sheet": {
- "key": "t-action-sheet",
- "label": "动作面板",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-actionsheet.png",
- "properties": [
- {
- "key": "cancelText",
- "type": ["String"],
- "desc": "设置取消按钮的文本",
- "label": ""
- },
- {
- "key": "count",
- "type": ["Number"],
- "desc": "设置每页展示菜单的数量,仅当 type=grid 时有效",
- "label": ""
- },
- {
- "key": "items",
- "type": ["Array"],
- "desc": "菜单项",
- "label": ""
- },
- {
- "key": "showCancel",
- "type": ["Boolean"],
- "desc": "是否显示取消按钮",
- "label": ""
- },
- {
- "key": "theme",
- "type": ["String"],
- "desc": "展示类型,列表和表格形式展示",
- "label": ""
- },
- {
- "key": "visible",
- "type": ["Boolean"],
- "desc": "显示与隐藏",
- "label": ""
- }
- ],
- "events": [
- {
- "key": "bind:cancel",
- "desc": "点击取消按钮时触发",
- "label": ""
- },
- {
- "key": "bind:close",
- "desc": "关闭时触发",
- "label": ""
- },
- {
- "key": "bind:selected",
- "desc": "选择菜单项时触发",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./action-sheet/action-sheet"
- },
- "t-avatar-group": {
- "key": "t-avatar-group",
- "label": "头像组",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-avatar.png",
- "properties": [
- {
- "key": "cascading",
- "type": ["String"],
- "desc": "图片之间的层叠关系,可选值:左侧图片在上和右侧图片在上",
- "label": ""
- },
- {
- "key": "collapseAvatar",
- "type": ["String"],
- "desc": "头像数量超出时,会出现一个头像折叠元素。该元素内容可自定义。默认为 `+N`。示例:`+5`,`...`, `更多`",
- "label": ""
- },
- {
- "key": "max",
- "type": ["Number"],
- "desc": "能够同时显示的最多头像数量",
- "label": ""
- },
- {
- "key": "size",
- "type": ["String"],
- "desc": "尺寸,示例值:small/medium/large/24px/38px 等。优先级低于 Avatar.size",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-image", "t-class-content"],
- "tpl": "",
- "require": {
- "t-avatar": "./avatar/avatar"
- },
- "path": "./avatar/avatar-group"
- },
- "t-avatar": {
- "key": "t-avatar",
- "label": "头像",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-avatar.png",
- "properties": [
- {
- "key": "alt",
- "type": ["String"],
- "desc": "头像替换文本,仅当图片加载失败时有效",
- "label": ""
- },
- {
- "key": "badgeProps",
- "type": ["Object"],
- "desc": "头像右上角提示信息,继承 Badge 组件的全部特性。如:小红点,或者数字",
- "label": ""
- },
- {
- "key": "hideOnLoadFailed",
- "type": ["Boolean"],
- "desc": "加载失败时隐藏图片",
- "label": ""
- },
- {
- "key": "icon",
- "type": ["String"],
- "desc": "图标",
- "label": ""
- },
- {
- "key": "image",
- "type": ["String"],
- "desc": "图片地址",
- "label": ""
- },
- {
- "key": "shape",
- "type": ["String"],
- "desc": "形状",
- "label": ""
- },
- {
- "key": "size",
- "type": ["String"],
- "desc": "尺寸,示例值:small/medium/large/24px/38px 等,默认为 large",
- "label": ""
- }
- ],
- "externalClasses": ["t-class"],
- "events": [
- {
- "key": "bind:error",
- "desc": "图片加载失败时触发",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./avatar/avatar"
- },
- "t-back-top": {
- "key": "t-back-top",
- "label": "回到顶部",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-backtop.png",
- "properties": [
- {
- "key": "fixed",
- "type": ["Boolean"],
- "desc": "是否绝对定位固定到屏幕右下方",
- "label": ""
- },
- {
- "key": "icon",
- "type": ["String"],
- "desc": "图标",
- "label": ""
- },
- {
- "key": "text",
- "type": ["String"],
- "desc": "文案",
- "label": ""
- },
- {
- "key": "theme",
- "type": ["String"],
- "desc": "预设的样式类型",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-icon", "t-class-text"],
- "events": [
- {
- "key": "bind:to-top",
- "desc": "点击触发",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./back-top/back-top"
- },
- "t-badge": {
- "key": "t-badge",
- "label": "徽标数",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-badge.png",
- "properties": [
- {
- "key": "color",
- "type": ["String"],
- "desc": "颜色",
- "label": ""
- },
- {
- "key": "content",
- "type": ["String"],
- "desc": "徽标内容,示例:`content='自定义内容'`。也可以使用默认插槽定义",
- "label": ""
- },
- {
- "key": "count",
- "type": ["String", "Number"],
- "desc": "徽标右上角内容。可以是数字,也可以是文字。如:'new'/3/99+。特殊:值为空表示使用插槽渲染",
- "label": ""
- },
- {
- "key": "dot",
- "type": ["Boolean"],
- "desc": "是否为红点",
- "label": ""
- },
- {
- "key": "maxCount",
- "type": ["Number"],
- "desc": "封顶的数字值",
- "label": ""
- },
- {
- "key": "offset",
- "type": ["Array"],
- "desc": "设置状态点的位置偏移,示例:[-10, 20] 或 ['10em', '8rem']",
- "label": ""
- },
- {
- "key": "shape",
- "type": ["String"],
- "desc": "形状",
- "label": ""
- },
- {
- "key": "showZero",
- "type": ["Boolean"],
- "desc": "当数值为 0 时,是否展示徽标",
- "label": ""
- },
- {
- "key": "size",
- "type": ["String"],
- "desc": "尺寸",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-content", "t-class-count"],
- "tpl": "",
- "path": "./badge/badge"
- },
- "t-button": {
- "key": "t-button",
- "label": "按钮",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-button.png",
- "properties": [
- {
- "key": "block",
- "type": ["Boolean"],
- "desc": "是否为块级元素",
- "label": ""
- },
- {
- "key": "content",
- "type": ["String"],
- "desc": "按钮内容",
- "label": ""
- },
- {
- "key": "customDataset",
- "type": ["Object"],
- "desc": "自定义 dataset,可通过 event.currentTarget.dataset.custom 获取",
- "label": ""
- },
- {
- "key": "disabled",
- "type": ["Boolean"],
- "desc": "是否禁用按钮",
- "label": ""
- },
- {
- "key": "ghost",
- "type": ["Boolean"],
- "desc": "是否为幽灵按钮(镂空按钮)",
- "label": ""
- },
- {
- "key": "icon",
- "type": ["String"],
- "desc": "图标名称",
- "label": ""
- },
- {
- "key": "loading",
- "type": ["Boolean"],
- "desc": "是否显示为加载状态",
- "label": ""
- },
- {
- "key": "shape",
- "type": ["String"],
- "desc": "按钮形状,有 4 种:长方形、正方形、圆角长方形、圆形",
- "label": ""
- },
- {
- "key": "size",
- "type": ["String"],
- "desc": "组件尺寸",
- "label": ""
- },
- {
- "key": "theme",
- "type": ["String"],
- "desc": "组件风格,依次为品牌色、危险色",
- "label": ""
- },
- {
- "key": "type",
- "type": ["String"],
- "desc": "同小程序的 formType",
- "label": ""
- },
- {
- "key": "variant",
- "type": ["String"],
- "desc": "按钮形式,基础、线框、文字",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-icon"],
- "events": [
- {
- "key": "bind:click",
- "desc": "点击时触发",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./button/button"
- },
- "t-cell-group": {
- "key": "t-cell-group",
- "label": "单元格组",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-cell.png",
- "properties": [
- {
- "key": "bordered",
- "type": ["Boolean"],
- "desc": "是否显示组边框",
- "label": ""
- },
- {
- "key": "title",
- "type": ["String"],
- "desc": "单元格组标题",
- "label": ""
- }
- ],
- "externalClasses": ["t-class"],
- "tpl": "",
- "require": {
- "t-cell": "./cell/cell"
- },
- "path": "./cell-group/cell-group"
- },
- "t-cell": {
- "key": "t-cell",
- "label": "单元格",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-cell.png",
- "properties": [
- {
- "key": "align",
- "type": ["String"],
- "desc": "内容的对齐方式,默认居中对齐",
- "label": ""
- },
- {
- "key": "arrow",
- "type": ["Boolean"],
- "desc": "是否显示右侧箭头",
- "label": ""
- },
- {
- "key": "bordered",
- "type": ["Boolean"],
- "desc": "是否显示下边框",
- "label": ""
- },
- {
- "key": "description",
- "type": ["String"],
- "desc": "下方内容描述",
- "label": ""
- },
- {
- "key": "hover",
- "type": ["Boolean"],
- "desc": "是否开启点击反馈",
- "label": ""
- },
- {
- "key": "image",
- "type": ["String"],
- "desc": "主图",
- "label": ""
- },
- {
- "key": "jumpType",
- "type": ["String"],
- "desc": "链接跳转类型",
- "label": ""
- },
- {
- "key": "leftIcon",
- "type": ["String"],
- "desc": "左侧图标,出现在单元格标题的左侧",
- "label": ""
- },
- {
- "key": "note",
- "type": ["String"],
- "desc": "和标题同行的说明文字",
- "label": ""
- },
- {
- "key": "required",
- "type": ["Boolean"],
- "desc": "是否显示表单必填星号",
- "label": ""
- },
- {
- "key": "rightIcon",
- "type": ["String"],
- "desc": "最右侧图标",
- "label": ""
- },
- {
- "key": "title",
- "type": ["String"],
- "desc": "标题",
- "label": ""
- },
- {
- "key": "url",
- "type": ["String"],
- "desc": "点击后跳转链接地址。如果值为空,则表示不需要跳转",
- "label": ""
- }
- ],
- "externalClasses": [
- "t-class",
- "t-class-title",
- "t-class-note",
- "t-class-description",
- "t-class-thumb",
- "t-class-hover",
- "t-class-left",
- "t-class-right"
- ],
- "events": [
- {
- "key": "bind:click",
- "desc": "右侧内容",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./cell/cell"
- },
- "t-check-tag": {
- "key": "t-check-tag",
- "label": "可选标签",
- "icon": "",
- "properties": [
- {
- "key": "checked",
- "type": ["Boolean"],
- "desc": "标签选中的状态,默认风格(theme=default)才有选中态",
- "label": ""
- },
- {
- "key": "closable",
- "type": ["Boolean"],
- "desc": "标签是否可关闭",
- "label": ""
- },
- {
- "key": "content",
- "type": ["String", "Number"],
- "desc": "组件子元素",
- "label": ""
- },
- {
- "key": "disabled",
- "type": ["Boolean"],
- "desc": "标签禁用态,失效标签不能触发事件。默认风格(theme=default)才有禁用态",
- "label": ""
- },
- {
- "key": "icon",
- "type": ["String"],
- "desc": "标签中的图标,可自定义图标呈现",
- "label": ""
- },
- {
- "key": "shape",
- "type": ["String"],
- "desc": "标签类型,有三种:方形、圆角方形、标记型",
- "label": ""
- },
- {
- "key": "size",
- "type": ["String"],
- "desc": "标签尺寸",
- "label": ""
- }
- ],
- "events": [
- {
- "key": "bind:change",
- "desc": "组件子元素",
- "label": ""
- },
- {
- "key": "bind:click",
- "desc": "点击标签时触发",
- "label": ""
- }
- ],
- "tpl": "check tag",
- "path": "./check-tag/check-tag"
- },
- "t-checkbox-group": {
- "key": "t-checkbox-group",
- "label": "多选框组",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-checkbox.png",
- "properties": [
- {
- "key": "disabled",
- "type": ["Boolean"],
- "desc": "是否禁用组件",
- "label": ""
- },
- {
- "key": "max",
- "type": ["Number"],
- "desc": "支持最多选中的数量",
- "label": ""
- },
- {
- "key": "name",
- "type": ["String"],
- "desc": "统一设置内部复选框 HTML 属性",
- "label": ""
- },
- {
- "key": "options",
- "type": ["Array"],
- "desc": "以配置形式设置子元素。示例1:`['北京', '上海']` ,示例2: `[{ label: '全选', checkAll: true }, { label: '上海', value: 'shanghai' }]`。checkAll 值为 true 表示当前选项为「全选选项」",
- "label": ""
- },
- {
- "key": "value",
- "type": ["Array"],
- "desc": "选中值",
- "label": ""
- }
- ],
- "events": [
- {
- "key": "bind:change",
- "desc": "值变化时触发。`context.current` 表示当前变化的数据项,如果是全选则为空;`context.type` 表示引起选中数据变化的是选中或是取消选中,`context.option` 表示当前变化的数据项",
- "label": ""
- }
- ],
- "tpl": "",
- "require": {
- "t-checkbox": "./checkbox/checkbox"
- },
- "path": "./checkbox-group/checkbox-group"
- },
- "t-checkbox": {
- "key": "t-checkbox",
- "label": "多选框",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-checkbox.png",
- "properties": [
- {
- "key": "align",
- "type": ["String"],
- "desc": "多选框和内容相对位置",
- "label": ""
- },
- {
- "key": "checkAll",
- "type": ["Boolean"],
- "desc": "用于标识是否为「全选选项」。单独使用无效,需在 CheckboxGroup 中使用",
- "label": ""
- },
- {
- "key": "checked",
- "type": ["Boolean"],
- "desc": "是否选中",
- "label": ""
- },
- {
- "key": "color",
- "type": ["String"],
- "desc": "多选框颜色",
- "label": ""
- },
- {
- "key": "content",
- "type": ["String"],
- "desc": "多选框内容",
- "label": ""
- },
- {
- "key": "contentDisabled",
- "type": ["Boolean"],
- "desc": "是否禁用组件内容(content)触发选中",
- "label": ""
- },
- {
- "key": "disabled",
- "type": ["Boolean"],
- "desc": "是否禁用组件",
- "label": ""
- },
- {
- "key": "icon",
- "type": ["Array"],
- "desc": "自定义选中图标和非选中图标。示例:[选中态图标地址,非选中态图标地址]",
- "label": ""
- },
- {
- "key": "indeterminate",
- "type": ["Boolean"],
- "desc": "是否为半选",
- "label": ""
- },
- {
- "key": "label",
- "type": ["String"],
- "desc": "主文案",
- "label": ""
- },
- {
- "key": "maxContentRow",
- "type": ["Number"],
- "desc": "内容最大行数限制",
- "label": ""
- },
- {
- "key": "maxLabelRow",
- "type": ["Number"],
- "desc": "主文案最大行数限制",
- "label": ""
- },
- {
- "key": "name",
- "type": ["String"],
- "desc": "HTML 元素原生属性",
- "label": ""
- },
- {
- "key": "readonly",
- "type": ["Boolean"],
- "desc": "只读状态",
- "label": ""
- },
- {
- "key": "value",
- "type": ["String", "Number"],
- "desc": "多选框的值",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-icon", "t-class-label", "t-class-content", "t-class-border"],
- "events": [
- {
- "key": "bind:change",
- "desc": "值变化时触发",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./checkbox/checkbox"
- },
- "t-collapse-panel": {
- "key": "t-collapse-panel",
- "label": "折叠面板",
- "icon": "",
- "properties": [
- {
- "key": "content",
- "type": ["String"],
- "desc": "折叠面板内容",
- "label": ""
- },
- {
- "key": "disabled",
- "type": ["Boolean"],
- "desc": "禁止当前面板展开,优先级大于 Collapse 的同名属性",
- "label": ""
- },
- {
- "key": "expandIcon",
- "type": ["Boolean"],
- "desc": "当前折叠面板展开图标,优先级大于 Collapse 的同名属性",
- "label": ""
- },
- {
- "key": "header",
- "type": ["String"],
- "desc": "面板头内容",
- "label": ""
- },
- {
- "key": "headerRightContent",
- "type": ["String"],
- "desc": "面板头的右侧区域,一般用于呈现面板操作",
- "label": ""
- },
- {
- "key": "value",
- "type": ["String", "Number"],
- "desc": "当前面板唯一标识,如果值为空则取当前面下标兜底作为唯一标识",
- "label": ""
- }
- ],
- "tpl": "此处可自定义内容",
- "path": "./collapse/collapse-panel"
- },
- "t-collapse": {
- "key": "t-collapse",
- "label": "折叠",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-collapse.png",
- "properties": [
- {
- "key": "defaultExpandAll",
- "type": ["Boolean"],
- "desc": "默认是否展开全部",
- "label": ""
- },
- {
- "key": "disabled",
- "type": ["Boolean"],
- "desc": "是否禁用面板展开/收起操作",
- "label": ""
- },
- {
- "key": "expandIcon",
- "type": ["Boolean"],
- "desc": "展开图标。值为 undefined 或 false 则不显示展开图标;值为 true 显示默认图标;值类型为函数,则表示完全自定义展开图标",
- "label": ""
- },
- {
- "key": "expandMutex",
- "type": ["Boolean"],
- "desc": "每个面板互斥展开,每次只展开一个面板",
- "label": ""
- },
- {
- "key": "value",
- "type": ["Array"],
- "desc": "展开的面板集合",
- "label": ""
- }
- ],
- "events": [
- {
- "key": "bind:change",
- "desc": "切换面板时触发,返回变化的值",
- "label": ""
- }
- ],
- "tpl": "此处可自定义内容",
- "require": {
- "t-collapse-panel": "./collapse/collapse-panel"
- },
- "path": "./collapse/collapse"
- },
- "t-date-time-picker": {
- "key": "t-date-time-picker",
- "label": "日期时间选择器",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-datetimepicker.png",
- "properties": [
- {
- "key": "cancelBtn",
- "type": ["String"],
- "desc": "取消按钮文字",
- "label": ""
- },
- {
- "key": "confirmBtn",
- "type": ["String"],
- "desc": "确定按钮文字",
- "label": ""
- },
- {
- "key": "end",
- "type": ["String", "Number"],
- "desc": "选择器的结束时间",
- "label": ""
- },
- {
- "key": "footer",
- "type": ["String"],
- "desc": "底部内容",
- "label": ""
- },
- {
- "key": "format",
- "type": ["String"],
- "desc": "用于格式化日期,[详细文档](https://day.js.org/docs/en/display/format)",
- "label": ""
- },
- {
- "key": "header",
- "type": ["Boolean"],
- "desc": "头部内容。值为 true 显示空白头部,值为 false 不显示任何内容,值类型为 TNode 表示自定义头部内容",
- "label": ""
- },
- {
- "key": "mode",
- "type": ["String", "Array"],
- "desc": "选择器模式,用于表示可以选择到哪一个层级。【示例一】year 或者 ['year'] 表示纯日期选择器,只能选择到年份,只显示年份。【示例二】'hour' 或 ['hour'] 表示纯时间选择器,只能选择到小时维度。【示例三】['year', 'month', 'date', 'hour', 'minute'] 表示,日期和时间 混合选择器,可以选择到具体哪一分钟,显示全部时间:年/月/日/时/分",
- "label": ""
- },
- {
- "key": "showWeek",
- "type": ["Boolean"],
- "desc": "【开发中】是否在日期旁边显示周几(如周一,周二,周日等)",
- "label": ""
- },
- {
- "key": "start",
- "type": ["String", "Number"],
- "desc": "选择器的开始时间",
- "label": ""
- },
- {
- "key": "title",
- "type": ["String"],
- "desc": "标题",
- "label": ""
- },
- {
- "key": "value",
- "type": ["String", "Number"],
- "desc": "选中值",
- "label": ""
- },
- {
- "key": "visible",
- "type": ["Boolean"],
- "desc": "是否显示",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-confirm", "t-class-cancel", "t-class-title"],
- "events": [
- {
- "key": "bind:cancel",
- "desc": "取消按钮点击时触发",
- "label": ""
- },
- {
- "key": "bind:change",
- "desc": "选中值发生变化时触发",
- "label": ""
- },
- {
- "key": "bind:column-change",
- "desc": "每一列选中数据变化时触发",
- "label": ""
- },
- {
- "key": "bind:confirm",
- "desc": "确认按钮点击时触发",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./date-time-picker/date-time-picker"
- },
- "t-dialog": {
- "key": "t-dialog",
- "label": "对话框",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-dialog.png",
- "properties": [
- {
- "key": "actions",
- "type": ["Array"],
- "desc": "操作栏",
- "label": ""
- },
- {
- "key": "buttonLayout",
- "type": ["String"],
- "desc": "多按钮排列方式",
- "label": ""
- },
- {
- "key": "cancelBtn",
- "type": ["String", "Object"],
- "desc": "取消按钮,可自定义。值为 null 则不显示取消按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 TNode 自定义按钮时,需自行控制取消事件",
- "label": ""
- },
- {
- "key": "closeOnOverlayClick",
- "type": ["Boolean"],
- "desc": "点击蒙层时是否触发关闭事件",
- "label": ""
- },
- {
- "key": "confirmBtn",
- "type": ["String", "Object"],
- "desc": "确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 TNode 自定义按钮时,需自行控制确认事件",
- "label": ""
- },
- {
- "key": "content",
- "type": ["String"],
- "desc": "内容",
- "label": ""
- },
- {
- "key": "preventScrollThrough",
- "type": ["Boolean"],
- "desc": "防止滚动穿透",
- "label": ""
- },
- {
- "key": "showInAttachedElement",
- "type": ["Boolean"],
- "desc": "【开发中】仅在挂载元素中显示抽屉,默认在浏览器可视区域显示。父元素需要有定位属性,如:position: relative",
- "label": ""
- },
- {
- "key": "showOverlay",
- "type": ["Boolean"],
- "desc": "是否显示遮罩层",
- "label": ""
- },
- {
- "key": "title",
- "type": ["String"],
- "desc": "标题",
- "label": ""
- },
- {
- "key": "visible",
- "type": ["Boolean"],
- "desc": "控制对话框是否显示",
- "label": ""
- },
- {
- "key": "zIndex",
- "type": ["Number"],
- "desc": "对话框层级,Web 侧样式默认为 2500,移动端和小程序样式默认为 1500",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-content", "t-class-confirm", "t-class-cancel"],
- "events": [
- {
- "key": "bind:cancel",
- "desc": "如果“取消”按钮存在,则点击“取消”按钮时触发,同时触发关闭事件",
- "label": ""
- },
- {
- "key": "bind:close",
- "desc": "关闭事件,点击 取消按钮 或 点击蒙层 时触发",
- "label": ""
- },
- {
- "key": "bind:overlay-click",
- "desc": "如果蒙层存在,点击蒙层时触发",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./dialog/dialog"
- },
- "t-divider": {
- "key": "t-divider",
- "label": "分割线",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-divider.png",
- "properties": [
- {
- "key": "align",
- "type": ["String"],
- "desc": "文本位置(仅在水平分割线有效)",
- "label": ""
- },
- {
- "key": "content",
- "type": ["String"],
- "desc": "子元素",
- "label": ""
- },
- {
- "key": "dashed",
- "type": ["Boolean"],
- "desc": "是否虚线(仅在水平分割线有效)",
- "label": ""
- },
- {
- "key": "layout",
- "type": ["String"],
- "desc": "分隔线类型有两种:水平和垂直",
- "label": ""
- },
- {
- "key": "lineColor",
- "type": ["String"],
- "desc": "分隔线颜色",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-line", "t-class-content"],
- "tpl": "",
- "path": "./divider/divider"
- },
- "t-drawer": {
- "key": "t-drawer",
- "label": "模态抽屉",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-drawer.png",
- "properties": [
- {
- "key": "closeOnOverlayClick",
- "type": ["Boolean"],
- "desc": "点击蒙层时是否触发抽屉关闭事件",
- "label": ""
- },
- {
- "key": "destroyOnClose",
- "type": ["Boolean"],
- "desc": "抽屉关闭时是否销毁节点",
- "label": ""
- },
- {
- "key": "items",
- "type": ["Array"],
- "desc": "抽屉里的列表项",
- "label": ""
- },
- {
- "key": "placement",
- "type": ["String"],
- "desc": "抽屉方向",
- "label": ""
- },
- {
- "key": "showOverlay",
- "type": ["Boolean"],
- "desc": "是否显示遮罩层",
- "label": ""
- },
- {
- "key": "visible",
- "type": ["Boolean"],
- "desc": "组件是否可见",
- "label": ""
- },
- {
- "key": "zIndex",
- "type": ["Number"],
- "desc": "抽屉层级,样式默认为 1500",
- "label": ""
- }
- ],
- "events": [
- {
- "key": "bind:close",
- "desc": "关闭事件,取消按钮点击时、关闭按钮点击时、点击蒙层时均会触发",
- "label": ""
- },
- {
- "key": "bind:item-click",
- "desc": "点击抽屉里的列表项",
- "label": ""
- },
- {
- "key": "bind:overlay-click",
- "desc": "如果蒙层存在,点击蒙层时触发",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./drawer/drawer"
- },
- "t-dropdown-item": {
- "key": "t-dropdown-item",
- "label": "下拉菜单子项",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-dropdownmenu.png",
- "properties": [
- {
- "key": "disabled",
- "type": ["Boolean"],
- "desc": "是否禁用",
- "label": ""
- },
- {
- "key": "label",
- "type": ["String"],
- "desc": "标题",
- "label": ""
- },
- {
- "key": "multiple",
- "type": ["Boolean"],
- "desc": "是否多选",
- "label": ""
- },
- {
- "key": "options",
- "type": ["Array"],
- "desc": "选项数据",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./dropdown-menu/dropdown-item"
- },
- "t-dropdown-menu": {
- "key": "t-dropdown-menu",
- "label": "下拉菜单",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-dropdownmenu.png",
- "properties": [
- {
- "key": "activeColor",
- "type": ["String"],
- "desc": "【讨论中】菜单标题和选项的选中态颜色",
- "label": ""
- },
- {
- "key": "closeOnClickOverlay",
- "type": ["Boolean"],
- "desc": "是否在点击遮罩层后关闭菜单",
- "label": ""
- },
- {
- "key": "duration",
- "type": ["String", "Number"],
- "desc": "动画时长",
- "label": ""
- },
- {
- "key": "showOverlay",
- "type": ["Boolean"],
- "desc": "是否显示遮罩层",
- "label": ""
- },
- {
- "key": "zIndex",
- "type": ["Number"],
- "desc": "菜单栏 z-index 层级",
- "label": ""
- }
- ],
- "tpl": "",
- "require": {
- "t-dropdown-item": "./dropdown-menu/dropdown-item"
- },
- "path": "./dropdown-menu/dropdown-menu"
- },
- "t-empty": {
- "key": "t-empty",
- "label": "空状态",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-empty.png",
- "properties": [
- {
- "key": "action",
- "type": ["String"],
- "desc": "操作按钮",
- "label": ""
- },
- {
- "key": "description",
- "type": ["String"],
- "desc": "描述文字",
- "label": ""
- },
- {
- "key": "icon",
- "type": ["String"],
- "desc": "图标名称",
- "label": ""
- },
- {
- "key": "image",
- "type": ["String"],
- "desc": "图片地址",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-description", "t-class-image", "t-class-actions"],
- "tpl": "",
- "path": "./empty/empty"
- },
- "t-fab": {
- "key": "t-fab",
- "label": "悬浮按钮",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-fab.png",
- "properties": [
- {
- "key": "buttonProps",
- "type": ["Object"],
- "desc": "透传至 Button 组件",
- "label": ""
- },
- {
- "key": "icon",
- "type": ["String"],
- "desc": "图标",
- "label": ""
- },
- {
- "key": "style",
- "type": ["String"],
- "desc": "悬浮按钮的样式,常用于调整位置",
- "label": ""
- },
- {
- "key": "text",
- "type": ["String"],
- "desc": "文本内容",
- "label": ""
- }
- ],
- "events": [
- {
- "key": "bind:click",
- "desc": "悬浮按钮点击事件",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./fab/fab"
- },
- "t-footer": {
- "key": "t-footer",
- "label": "布局-底部内容",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-footer.png",
- "properties": [
- {
- "key": "copyright",
- "type": ["String"],
- "desc": "版权信息,type 为`text`生效",
- "label": ""
- },
- {
- "key": "logo",
- "type": ["Object"],
- "desc": "图标配置,type 为`logo`生效。`logo.icon` 表示图标链接地址,`logo.title` 表示标题文本,`logo.url` 表示链接跳转地址",
- "label": ""
- },
- {
- "key": "textLinkList",
- "type": ["Array"],
- "desc": "链接列表,type 为`text`生效。name 表示链接名称, url 表示链接 page 路径,目前只支持小程序内部跳转,openType 表示跳转方式",
- "label": ""
- },
- {
- "key": "theme",
- "type": ["String"],
- "desc": "页脚展示类型",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./footer/footer"
- },
- "t-grid-item": {
- "key": "t-grid-item",
- "label": "宫格子项",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-grid.png",
- "properties": [
- {
- "key": "badgeProps",
- "type": ["Object"],
- "desc": "头像右上角提示信息,继承 Badge 组件的全部特性。如:小红点,或者数字",
- "label": ""
- },
- {
- "key": "description",
- "type": ["String"],
- "desc": "文本以外的更多描述,辅助信息。可以通过 Props 传入文本,也可以自定义标题节点",
- "label": ""
- },
- {
- "key": "image",
- "type": ["String"],
- "desc": "图片,可以是图片地址,也可以自定义图片节点",
- "label": ""
- },
- {
- "key": "jumpType",
- "type": ["String"],
- "desc": "链接跳转类型",
- "label": ""
- },
- {
- "key": "layout",
- "type": ["String"],
- "desc": "内容布局方式",
- "label": ""
- },
- {
- "key": "text",
- "type": ["String"],
- "desc": "文本,可以通过 Props 传入文本,也可以自定义标题节点",
- "label": ""
- },
- {
- "key": "url",
- "type": ["String"],
- "desc": "点击后的跳转链接",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-image", "t-class-text", "t-class-description"],
- "tpl": "",
- "path": "./grid-item/grid-item"
- },
- "t-grid": {
- "key": "t-grid",
- "label": "栅格",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-grid.png",
- "properties": [
- {
- "key": "align",
- "type": ["String"],
- "desc": "内容对齐方式",
- "label": ""
- },
- {
- "key": "border",
- "type": ["Boolean", "Object"],
- "desc": "边框,默认不显示。值为 true 则显示默认边框,值类型为 object 则表示自定义边框样式",
- "label": ""
- },
- {
- "key": "column",
- "type": ["Number"],
- "desc": "每一行的列数量",
- "label": ""
- },
- {
- "key": "gutter",
- "type": ["Number"],
- "desc": "间隔大小",
- "label": ""
- },
- {
- "key": "hover",
- "type": ["Boolean"],
- "desc": "是否开启点击反馈",
- "label": ""
- }
- ],
- "externalClasses": ["t-class"],
- "tpl": "",
- "require": {
- "t-grid-item": "./grid-item/grid-item"
- },
- "path": "./grid/grid"
- },
- "t-icon": {
- "key": "t-icon",
- "label": "图标",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-icon.png",
- "properties": [
- {
- "key": "classPrefix",
- "type": ["String"],
- "desc": "自定义icon前缀",
- "label": ""
- },
- {
- "key": "color",
- "type": ["String"],
- "desc": "图标颜色",
- "label": ""
- },
- {
- "key": "style",
- "type": ["String"],
- "desc": "自定义样式",
- "label": ""
- },
- {
- "key": "name",
- "type": ["String"],
- "desc": "图标名称",
- "label": ""
- },
- {
- "key": "size",
- "type": ["String", "Number"],
- "desc": "图标名称",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./icon/icon"
- },
- "t-image": {
- "key": "t-image",
- "label": "图片",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-image.png",
- "properties": [
- {
- "key": "error",
- "type": ["String"],
- "desc": "加载失败时显示的内容。值为 `default` 则表示使用默认加载失败风格;值为空或者 `slot` 表示使用插槽渲染,插槽名称为 `error`;值为其他则表示普通文本内容,如“加载失败”",
- "label": ""
- },
- {
- "key": "lazy",
- "type": ["Boolean"],
- "desc": "是否开启图片懒加载",
- "label": ""
- },
- {
- "key": "loading",
- "type": ["String"],
- "desc": "加载态内容。值为 `default` 则表示使用默认加载中风格;值为空或者 `slot` 表示使用插槽渲染,插槽名称为 `loading`;值为其他则表示普通文本内容,如“加载中”",
- "label": ""
- },
- {
- "key": "shape",
- "type": ["String"],
- "desc": "图片圆角类型",
- "label": ""
- },
- {
- "key": "src",
- "type": ["String"],
- "desc": "图片链接",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-load"],
- "events": [
- {
- "key": "bind:error",
- "desc": "图片加载失败时触发",
- "label": ""
- },
- {
- "key": "bind:load",
- "desc": "图片加载完成时触发",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./image/image"
- },
- "t-indexes": {
- "key": "t-indexes",
- "label": "索引",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-indexes.png",
- "properties": [
- {
- "key": "height",
- "type": ["Number"],
- "desc": "列表高度,未设置默认占满设备高度",
- "label": ""
- },
- {
- "key": "list",
- "type": ["Array"],
- "desc": "索引列表的列表数据。每个元素包含三个子元素,index(string):索引值,例如1,2,3,...或A,B,C等;title(string): 索引标题,可不填将默认设为索引值;children(Array<{title: string}>): 子元素列表,title为子元素的展示文案。",
- "label": ""
- },
- {
- "key": "sticky",
- "type": ["Boolean"],
- "desc": "索引是否吸顶,默认为true",
- "label": ""
- }
- ],
- "events": [
- {
- "key": "bind:select",
- "desc": "点击行元素时触发事件",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./indexes/indexes"
- },
- "t-input": {
- "key": "t-input",
- "label": "输入框",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-input.png",
- "properties": [
- {
- "key": "align",
- "type": ["String"],
- "desc": "文本内容位置,居左/居中/居右",
- "label": ""
- },
- {
- "key": "borderless",
- "type": ["Boolean"],
- "desc": "【讨论中】是否开启无边框模式",
- "label": ""
- },
- {
- "key": "clearable",
- "type": ["Boolean"],
- "desc": "是否可清空",
- "label": ""
- },
- {
- "key": "disabled",
- "type": ["Boolean"],
- "desc": "是否禁用输入框",
- "label": ""
- },
- {
- "key": "errorMessage",
- "type": ["String"],
- "desc": "错误提示文本,值为空不显示(废弃属性,如果需要,请更为使用 status 和 tips)",
- "label": ""
- },
- {
- "key": "format",
- "type": ["String"],
- "desc": "【开发中】指定输入框展示值的格式",
- "label": ""
- },
- {
- "key": "label",
- "type": ["String"],
- "desc": "左侧文本",
- "label": ""
- },
- {
- "key": "maxcharacter",
- "type": ["Number"],
- "desc": "用户最多可以输入的字符个数,一个中文汉字表示两个字符长度。`maxcharacter` 和 `maxlength` 二选一使用",
- "label": ""
- },
- {
- "key": "maxlength",
- "type": ["Number"],
- "desc": "用户最多可以输入的文本长度,一个中文等于一个计数长度。值小于等于 0 的时候,则表示不限制输入长度。`maxcharacter` 和 `maxlength` 二选一使用",
- "label": ""
- },
- {
- "key": "placeholder",
- "type": ["String"],
- "desc": "占位符",
- "label": ""
- },
- {
- "key": "prefixIcon",
- "type": ["String"],
- "desc": "组件前置图标,值为字符串则表示图标名称",
- "label": ""
- },
- {
- "key": "readonly",
- "type": ["Boolean"],
- "desc": "只读状态",
- "label": ""
- },
- {
- "key": "size",
- "type": ["String"],
- "desc": "输入框尺寸",
- "label": ""
- },
- {
- "key": "status",
- "type": ["String"],
- "desc": "输入框状态",
- "label": ""
- },
- {
- "key": "suffix",
- "type": ["String"],
- "desc": "后置图标前的后置内容",
- "label": ""
- },
- {
- "key": "suffixIcon",
- "type": ["String"],
- "desc": "后置文本内容,值为字符串则表示图标名称",
- "label": ""
- },
- {
- "key": "tips",
- "type": ["String"],
- "desc": "输入框下方提示文本,会根据不同的 `status` 呈现不同的样式",
- "label": ""
- },
- {
- "key": "value",
- "type": ["String", "Number"],
- "desc": "输入框的值",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-input", "t-class-placeholder", "t-class-error-msg"],
- "events": [
- {
- "key": "bind:blur",
- "desc": "失去焦点时触发",
- "label": ""
- },
- {
- "key": "bind:change",
- "desc": "输入框值发生变化时触发",
- "label": ""
- },
- {
- "key": "bind:clear",
- "desc": "清空按钮点击时触发",
- "label": ""
- },
- {
- "key": "bind:enter",
- "desc": "回车键按下时触发",
- "label": ""
- },
- {
- "key": "bind:focus",
- "desc": "获得焦点时触发",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./input/input"
- },
- "t-loading": {
- "key": "t-loading",
- "label": "加载中",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-loading.png",
- "properties": [
- {
- "key": "delay",
- "type": ["Number"],
- "desc": "延迟显示加载效果的时间,用于防止请求速度过快引起的加载闪烁,单位:毫秒",
- "label": ""
- },
- {
- "key": "duration",
- "type": ["Number"],
- "desc": "加载动画执行完成一次的时间,单位:毫秒",
- "label": ""
- },
- {
- "key": "indicator",
- "type": ["Boolean"],
- "desc": "是否显示加载指示符",
- "label": ""
- },
- {
- "key": "inheritColor",
- "type": ["Boolean"],
- "desc": "是否继承父元素颜色",
- "label": ""
- },
- {
- "key": "layout",
- "type": ["String"],
- "desc": "对齐方式",
- "label": ""
- },
- {
- "key": "loading",
- "type": ["Boolean"],
- "desc": "是否处于加载状态",
- "label": ""
- },
- {
- "key": "pause",
- "type": ["Boolean"],
- "desc": "是否暂停动画",
- "label": ""
- },
- {
- "key": "progress",
- "type": ["Number"],
- "desc": "加载进度",
- "label": ""
- },
- {
- "key": "reverse",
- "type": ["Boolean"],
- "desc": "加载动画是否反向",
- "label": ""
- },
- {
- "key": "size",
- "type": ["String"],
- "desc": "尺寸,示例:40rpx/20px",
- "label": ""
- },
- {
- "key": "text",
- "type": ["String"],
- "desc": "加载提示文案",
- "label": ""
- },
- {
- "key": "theme",
- "type": ["String"],
- "desc": "加载组件类型",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-text", "t-class-indicator"],
- "tpl": "",
- "path": "./loading/loading"
- },
- "t-message": {
- "key": "t-message",
- "label": "全局提醒",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-message.png",
- "properties": [
- {
- "key": "action",
- "type": ["String"],
- "desc": "操作",
- "label": ""
- },
- {
- "key": "align",
- "type": ["String"],
- "desc": "文本对齐方式",
- "label": ""
- },
- {
- "key": "closeBtn",
- "type": ["String", "Boolean"],
- "desc": "关闭按钮,可以自定义。值为 true 显示默认关闭按钮,值为 false 不显示关闭按钮。值类型为 string 则直接显示值,如:“关闭”。也可以完全自定义按钮",
- "label": ""
- },
- {
- "key": "content",
- "type": ["String"],
- "desc": "用于自定义消息弹出内容",
- "label": ""
- },
- {
- "key": "duration",
- "type": ["Number"],
- "desc": "消息内置计时器,计时到达时会触发 duration-end 事件。单位:毫秒。值为 0 则表示没有计时器。",
- "label": ""
- },
- {
- "key": "icon",
- "type": ["String", "Boolean"],
- "desc": "消息提醒前面的图标。值为 true 则根据 theme 显示对应的图标,值为 false 则不显示图标。值为 'info' 或 'bell' 则显示组件内置图标。也可以完全自定义图标节点",
- "label": ""
- },
- {
- "key": "marquee",
- "type": ["Boolean", "Object"],
- "desc": "跑马灯效果。speed 指速度控制;loop 指循环播放次数,值为 -1 表示循环播放,值为 0 表示不循环播放;delay 表示延迟多久开始播放",
- "label": ""
- },
- {
- "key": "offset",
- "type": ["Array"],
- "desc": "相对于 placement 的偏移量,示例:[-10, 20] 或 ['10rpx', '8rpx']",
- "label": ""
- },
- {
- "key": "theme",
- "type": ["String"],
- "desc": "消息组件风格",
- "label": ""
- },
- {
- "key": "visible",
- "type": ["Boolean"],
- "desc": "是否显示,隐藏时默认销毁组件",
- "label": ""
- },
- {
- "key": "zIndex",
- "type": ["Number"],
- "desc": "元素层级,样式默认为 5000",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-content", "t-class-icon", "t-class-action", "t-class-close-btn"],
- "events": [
- {
- "key": "bind:action-btn-click",
- "desc": "当操作按钮存在时,用户点击操作按钮时触发",
- "label": ""
- },
- {
- "key": "bind:close-btn-click",
- "desc": "当关闭按钮存在时,用户点击关闭按钮触发",
- "label": ""
- },
- {
- "key": "bind:duration-end",
- "desc": "计时结束后触发",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./message/message"
- },
- "t-navbar": {
- "key": "t-navbar",
- "label": "导航条",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-navbar.png",
- "properties": [
- {
- "key": "animation",
- "type": ["Boolean"],
- "desc": "是否添加动画效果",
- "label": ""
- },
- {
- "key": "background",
- "type": ["String"],
- "desc": "背景",
- "label": ""
- },
- {
- "key": "delta",
- "type": ["Number"],
- "desc": "后退按钮后退层数,含义参考 [wx.navigateBack](https://developers.weixin.qq.com/miniprogram/dev/api/route/wx.navigateBack.html),特殊的,传入 0 不会发生执行 wx.navigateBack,只会触发一个 goback 事件供自行处理。",
- "label": ""
- },
- {
- "key": "fixed",
- "type": ["Boolean"],
- "desc": "是否固定在顶部",
- "label": ""
- },
- {
- "key": "homeIcon",
- "type": ["String"],
- "desc": "首页图标地址。值为 '' 或者 undefiend 则表示不显示返回图标,值为 'circle' 表示显示默认图标,值为 'slot' 表示使用插槽渲染,值为其他则表示图标地址",
- "label": ""
- },
- {
- "key": "leftIcon",
- "type": ["String"],
- "desc": "左侧图标地址,值为 '' 或者 undefiend 则表示不显示返回图标,值为 'arrow-left' 表示显示返回图标,值为 'slot' 表示使用插槽渲染,值为其他则表示图标地址",
- "label": ""
- },
- {
- "key": "title",
- "type": ["String"],
- "desc": "页面标题",
- "label": ""
- },
- {
- "key": "titleMaxLength",
- "type": ["Number"],
- "desc": "标题文字最大长度,超出的范围使用 `...` 表示",
- "label": ""
- },
- {
- "key": "visible",
- "type": ["Boolean"],
- "desc": "是否显示",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-title", "t-class-left-icon", "t-class-home-icon", "t-class-capsule"],
- "events": [
- {
- "key": "bind:complete",
- "desc": "navigateBack 执行完成后触发(失败或成功均会触发)",
- "label": ""
- },
- {
- "key": "bind:fail",
- "desc": "navigateBack 执行失败后触发",
- "label": ""
- },
- {
- "key": "bind:go-back",
- "desc": "delta 值为 0 时,点击返回,触发该事件",
- "label": ""
- },
- {
- "key": "bind:go-home",
- "desc": "点击 Home 触发",
- "label": ""
- },
- {
- "key": "bind:success",
- "desc": "navigateBack 执行成功后触发",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./navbar/navbar"
- },
- "t-picker-item": {
- "key": "t-picker-item",
- "label": "选择器子项",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-picker.png",
- "properties": [
- {
- "key": "format",
- "type": ["String"],
- "desc": "格式化标签",
- "label": ""
- },
- {
- "key": "options",
- "type": ["Array"],
- "desc": "数据源",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./picker-item/picker-item"
- },
- "t-picker": {
- "key": "t-picker",
- "label": "选择器",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-picker.png",
- "properties": [
- {
- "key": "cancelBtn",
- "type": ["String", "Object"],
- "desc": "取消按钮文字",
- "label": ""
- },
- {
- "key": "confirmBtn",
- "type": ["String", "Object"],
- "desc": "确定按钮文字",
- "label": ""
- },
- {
- "key": "footer",
- "type": ["String"],
- "desc": "底部内容",
- "label": ""
- },
- {
- "key": "header",
- "type": ["Boolean"],
- "desc": "头部内容。值为 true 显示空白头部,值为 false 不显示任何内容,值类型为 TNode 表示自定义头部内容",
- "label": ""
- },
- {
- "key": "title",
- "type": ["String"],
- "desc": "标题",
- "label": ""
- },
- {
- "key": "value",
- "type": ["Array"],
- "desc": "选中值",
- "label": ""
- },
- {
- "key": "visible",
- "type": ["Boolean"],
- "desc": "是否显示",
- "label": ""
- }
- ],
- "events": [
- {
- "key": "bind:cancel",
- "desc": "点击取消按钮时触发",
- "label": ""
- },
- {
- "key": "bind:change",
- "desc": "选中变化时候触发",
- "label": ""
- },
- {
- "key": "bind:pick",
- "desc": "任何一列选中都会触发,不同的列参数不同。`context.column` 表示第几列变化,`context.index` 表示变化那一列的选中项下标",
- "label": ""
- }
- ],
- "tpl": "",
- "require": {
- "t-picker-item": "./picker-item/picker-item"
- },
- "path": "./picker/picker"
- },
- "t-popup": {
- "key": "t-popup",
- "label": "气泡框",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-popup.png",
- "properties": [
- {
- "key": "closeBtn",
- "type": ["Boolean"],
- "desc": "关闭按钮,值类型为 Boolean 时表示是否显示关闭按钮。也可以自定义关闭按钮",
- "label": ""
- },
- {
- "key": "closeOnOverlayClick",
- "type": ["Boolean"],
- "desc": "点击遮罩层是否关闭",
- "label": ""
- },
- {
- "key": "content",
- "type": ["String"],
- "desc": "浮层里面的内容",
- "label": ""
- },
- {
- "key": "placement",
- "type": ["String"],
- "desc": "浮层出现位置",
- "label": ""
- },
- {
- "key": "preventScrollThrough",
- "type": ["Boolean"],
- "desc": "防止滚动穿透",
- "label": ""
- },
- {
- "key": "showOverlay",
- "type": ["Boolean"],
- "desc": "是否显示遮罩层",
- "label": ""
- },
- {
- "key": "transitionProps",
- "type": ["Object"],
- "desc": "动画效果定义",
- "label": ""
- },
- {
- "key": "visible",
- "type": ["Boolean"],
- "desc": "是否显示浮层",
- "label": ""
- },
- {
- "key": "zIndex",
- "type": ["Number"],
- "desc": "组件层级,Web 侧样式默认为 5500,移动端和小程序样式默认为 1500",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-overlay", "t-class-content"],
- "events": [
- {
- "key": "bind:visible-change",
- "desc": "当浮层隐藏或显示时触发",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./popup/popup"
- },
- "t-progress": {
- "key": "t-progress",
- "label": "进度条",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-progress.png",
- "properties": [
- {
- "key": "color",
- "type": ["String", "Object", "Array"],
- "desc": "进度条颜色。示例:'#ED7B2F' 或 'orange' 或 `['#f00', '#0ff', '#f0f']` 或 `{ '0%': '#f00', '100%': '#0ff' }` 或 `{ from: '#000', to: '#000' }` 等",
- "label": ""
- },
- {
- "key": "label",
- "type": ["String", "Boolean"],
- "desc": "进度百分比,可自定义",
- "label": ""
- },
- {
- "key": "percentage",
- "type": ["Number"],
- "desc": "进度条百分比",
- "label": ""
- },
- {
- "key": "size",
- "type": ["String", "Number"],
- "desc": "进度条尺寸,示例:small/medium/large/240。small 值为 72; medium 值为 112;large 值为 160",
- "label": ""
- },
- {
- "key": "status",
- "type": ["String"],
- "desc": "进度条状态",
- "label": ""
- },
- {
- "key": "strokeWidth",
- "type": ["String", "Number"],
- "desc": "进度条线宽。宽度数值不能超过 size 的一半,否则不能输出环形进度",
- "label": ""
- },
- {
- "key": "theme",
- "type": ["String"],
- "desc": "进度条风格。值为 line,标签(label)显示在进度条右侧;值为 plump,标签(label)显示在进度条里面;值为 circle,标签(label)显示在进度条正中间",
- "label": ""
- },
- {
- "key": "trackColor",
- "type": ["String"],
- "desc": "进度条未完成部分颜色",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./progress/progress"
- },
- "t-pull-down-refresh": {
- "key": "t-pull-down-refresh",
- "label": "下拉刷新",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-pulldownrefresh.png",
- "properties": [
- {
- "key": "loadingBarHeight",
- "type": ["String", "Number"],
- "desc": "加载中下拉高度,如果值为数字则单位是:'px'",
- "label": ""
- },
- {
- "key": "loadingProps",
- "type": ["Object"],
- "desc": "加载loading样式",
- "label": ""
- },
- {
- "key": "loadingTexts",
- "type": ["Array"],
- "desc": "提示语,组件内部默认值为 ['下拉刷新', '松手刷新', '正在刷新', '刷新完成']",
- "label": ""
- },
- {
- "key": "maxBarHeight",
- "type": ["String", "Number"],
- "desc": "最大下拉高度,如果值为数字则单位是:'px'",
- "label": ""
- },
- {
- "key": "refreshTimeout",
- "type": ["Number"],
- "desc": "刷新超时时间",
- "label": ""
- },
- {
- "key": "value",
- "type": ["Boolean"],
- "desc": "组件状态,值为 `true` 表示下拉状态,值为 `false` 表示收起状态",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-loading", "t-class-text", "t-class-indicator"],
- "events": [
- {
- "key": "bind:change",
- "desc": "下拉或收起时触发,用户手势往下滑动触发下拉状态,手势松开触发收起状态",
- "label": ""
- },
- {
- "key": "bind:refresh",
- "desc": "结束下拉时触发",
- "label": ""
- },
- {
- "key": "bind:timeout",
- "desc": "刷新超时触发",
- "label": ""
- }
- ],
- "tpl": "拖拽该区域演示 中间下拉刷新",
- "path": "./pull-down-refresh/pull-down-refresh"
- },
- "t-radio-group": {
- "key": "t-radio-group",
- "label": "单选框组",
- "icon": "",
- "properties": [
- {
- "key": "disabled",
- "type": ["Boolean"],
- "desc": "是否禁用全部子单选框",
- "label": ""
- },
- {
- "key": "name",
- "type": ["String"],
- "desc": "HTML 元素原生属性",
- "label": ""
- },
- {
- "key": "options",
- "type": ["Array"],
- "desc": "单选组件按钮形式。RadioOption 数据类型为 string 或 number 时,表示 label 和 value 值相同",
- "label": ""
- },
- {
- "key": "value",
- "type": ["String", "Number", "Boolean"],
- "desc": "选中的值",
- "label": ""
- }
- ],
- "events": [
- {
- "key": "bind:change",
- "desc": "选中值发生变化时触发",
- "label": ""
- }
- ],
- "tpl": "",
- "require": {
- "t-radio": "./radio/radio"
- },
- "path": "./radio-group/radio-group"
- },
- "t-radio": {
- "key": "t-radio",
- "label": "单选框",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-radio.png",
- "properties": [
- {
- "key": "align",
- "type": ["String"],
- "desc": "复选框和内容相对位置",
- "label": ""
- },
- {
- "key": "allowUncheck",
- "type": ["Boolean"],
- "desc": "是否允许取消选中",
- "label": ""
- },
- {
- "key": "checked",
- "type": ["Boolean"],
- "desc": "是否选中",
- "label": ""
- },
- {
- "key": "color",
- "type": ["String"],
- "desc": "单选按钮颜色",
- "label": ""
- },
- {
- "key": "content",
- "type": ["String"],
- "desc": "单选内容",
- "label": ""
- },
- {
- "key": "contentDisabled",
- "type": ["Boolean"],
- "desc": "是否禁用组件内容(content)触发选中",
- "label": ""
- },
- {
- "key": "disabled",
- "type": ["Boolean"],
- "desc": "是否为禁用态",
- "label": ""
- },
- {
- "key": "icon",
- "type": ["String", "Array"],
- "desc": "自定义选中图标和非选中图标。示例:[选中态图标,非选中态图标]。值为 fill-circle 表示图标为填充型图标,值为 stroke-line 表示图标为描边型图标",
- "label": ""
- },
- {
- "key": "label",
- "type": ["String"],
- "desc": "主文案",
- "label": ""
- },
- {
- "key": "maxContentRow",
- "type": ["Number"],
- "desc": "内容最大行数限制",
- "label": ""
- },
- {
- "key": "maxLabelRow",
- "type": ["Number"],
- "desc": "主文案最大行数限制",
- "label": ""
- },
- {
- "key": "name",
- "type": ["String"],
- "desc": "HTML 元素原生属性",
- "label": ""
- },
- {
- "key": "value",
- "type": ["String", "Number", "Boolean"],
- "desc": "单选按钮的值",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-icon", "t-class-label", "t-class-content", "t-class-border"],
- "events": [
- {
- "key": "bind:change",
- "desc": "值变化时触发",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./radio/radio"
- },
- "t-rate": {
- "key": "t-rate",
- "label": "评分",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-rate.png",
- "properties": [
- {
- "key": "allowHalf",
- "type": ["Boolean"],
- "desc": "是否允许半选",
- "label": ""
- },
- {
- "key": "color",
- "type": ["String", "Array"],
- "desc": "评分图标的颜色,样式中默认为 #ED7B2F。一个值表示设置选中高亮的五角星颜色,示例:[选中颜色]。数组则表示分别设置 选中高亮的五角星颜色 和 未选中暗灰的五角星颜色,[选中颜色,未选中颜色]。示例:['#ED7B2F', '#E3E6EB']",
- "label": ""
- },
- {
- "key": "count",
- "type": ["Number"],
- "desc": "评分的数量",
- "label": ""
- },
- {
- "key": "disabled",
- "type": ["Boolean"],
- "desc": "是否禁用评分",
- "label": ""
- },
- {
- "key": "gap",
- "type": ["Number"],
- "desc": "评分图标的间距",
- "label": ""
- },
- {
- "key": "showText",
- "type": ["Boolean"],
- "desc": "是否显示对应的辅助文字",
- "label": ""
- },
- {
- "key": "size",
- "type": ["String"],
- "desc": "评分图标的大小,示例:`20`",
- "label": ""
- },
- {
- "key": "texts",
- "type": ["Array"],
- "desc": "评分等级对应的辅助文字。组件内置默认值为:['极差', '失望', '一般', '满意', '惊喜']。自定义值示例:['1分', '2分', '3分', '4分', '5分']",
- "label": ""
- },
- {
- "key": "value",
- "type": ["Number"],
- "desc": "选择评分的值",
- "label": ""
- },
- {
- "key": "variant",
- "type": ["String"],
- "desc": "形状类型,有描边类型和填充类型两种",
- "label": ""
- }
- ],
- "events": [
- {
- "key": "bind:change",
- "desc": "评分数改变时触发",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./rate/rate"
- },
- "t-search": {
- "key": "t-search",
- "label": "搜索",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-search.png",
- "properties": [
- {
- "key": "action",
- "type": ["String"],
- "desc": "自定义右侧操作按钮文字",
- "label": ""
- },
- {
- "key": "center",
- "type": ["Boolean"],
- "desc": "是否居中",
- "label": ""
- },
- {
- "key": "disabled",
- "type": ["Boolean"],
- "desc": "是否禁用",
- "label": ""
- },
- {
- "key": "focus",
- "type": ["Boolean"],
- "desc": "是否聚焦",
- "label": ""
- },
- {
- "key": "label",
- "type": ["String"],
- "desc": "左侧文本",
- "label": ""
- },
- {
- "key": "leftIcon",
- "type": ["String"],
- "desc": "左侧图标",
- "label": ""
- },
- {
- "key": "placeholder",
- "type": ["String"],
- "desc": "占位符",
- "label": ""
- },
- {
- "key": "rightIcon",
- "type": ["String"],
- "desc": "右侧图标",
- "label": ""
- },
- {
- "key": "shape",
- "type": ["String"],
- "desc": "搜索框形状",
- "label": ""
- },
- {
- "key": "value",
- "type": ["String"],
- "desc": "值",
- "label": ""
- }
- ],
- "externalClasses": [
- "t-class",
- "t-class-input",
- "t-class-input-container",
- "t-class-cancel",
- "t-class-left",
- "t-class-right"
- ],
- "events": [
- {
- "key": "bind:action-click",
- "desc": "点击右侧操作按钮文字时触发",
- "label": ""
- },
- {
- "key": "bind:blur",
- "desc": "失去焦点时触发",
- "label": ""
- },
- {
- "key": "bind:change",
- "desc": "值发生变化时触发",
- "label": ""
- },
- {
- "key": "bind:clear",
- "desc": "点击清除时触发",
- "label": ""
- },
- {
- "key": "bind:focus",
- "desc": "聚焦时触发",
- "label": ""
- },
- {
- "key": "bind:submit",
- "desc": "提交时触发",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./search/search"
- },
- "t-skeleton": {
- "key": "t-skeleton",
- "label": "骨架屏",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-skeleton.png",
- "properties": [
- {
- "key": "animation",
- "type": ["String"],
- "desc": "动画效果,有「渐变加载动画」和「闪烁加载动画」两种。值为 'none' 则表示没有动画",
- "label": ""
- },
- {
- "key": "delay",
- "type": ["Number"],
- "desc": "【开发中】延迟显示加载效果的时间,用于防止请求速度过快引起的加载闪烁,单位:毫秒",
- "label": ""
- },
- {
- "key": "loading",
- "type": ["Boolean"],
- "desc": "是否为加载状态,如果是则显示骨架图,如果不是则显示加载完成的内容",
- "label": ""
- },
- {
- "key": "rowCol",
- "type": ["Array"],
- "desc": "用于设置行列数量、宽度高度、间距等。【示例一】,`[1, 1, 2]` 表示输出三行骨架图,第一行一列,第二行一列,第三行两列。【示例二】,`[1, 1, { width: '100px' }]` 表示自定义第三行的宽度为 `100px`。【示例三】,`[1, 2, [{ width, height }, { width, height, marginLeft }]]` 表示第三行有两列,且自定义宽度、高度和间距",
- "label": ""
- },
- {
- "key": "theme",
- "type": ["String"],
- "desc": "骨架图风格,有基础、头像组合等两大类",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-avatar", "t-class-image", "t-class-text"],
- "tpl": "",
- "path": "./skeleton/skeleton"
- },
- "t-slider": {
- "key": "t-slider",
- "label": "滑块",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-slider.png",
- "properties": [
- {
- "key": "colors",
- "type": ["Array"],
- "desc": "颜色,[已选择, 未选择]",
- "label": ""
- },
- {
- "key": "disabled",
- "type": ["Boolean"],
- "desc": "是否禁用组件",
- "label": ""
- },
- {
- "key": "disabledColor",
- "type": ["Array"],
- "desc": "禁用状态滑动条的颜色,[已选, 未选]",
- "label": ""
- },
- {
- "key": "label",
- "type": ["String", "Boolean"],
- "desc": "滑块当前值文本。
值为 true 显示默认文案;值为 false 不显示滑块当前值文本;
值为 `${value}%` 则表示组件会根据占位符渲染文案;
值类型为函数时,参数 `value` 标识滑块值,参数 `position=start` 表示范围滑块的起始值,参数 `position=end` 表示范围滑块的终点值",
- "label": ""
- },
- {
- "key": "marks",
- "type": ["Object", "Array"],
- "desc": "刻度标记,示例:`[0, 10, 40, 200]` 或者 `{ 5: '5¥', 10: '10%' }`",
- "label": ""
- },
- {
- "key": "max",
- "type": ["Number"],
- "desc": "滑块范围最大值",
- "label": ""
- },
- {
- "key": "min",
- "type": ["Number"],
- "desc": "滑块范围最小值",
- "label": ""
- },
- {
- "key": "range",
- "type": ["Boolean"],
- "desc": "双游标滑块",
- "label": ""
- },
- {
- "key": "showExtremeValue",
- "type": ["Boolean"],
- "desc": "是否边界值",
- "label": ""
- },
- {
- "key": "step",
- "type": ["Number"],
- "desc": "步长",
- "label": ""
- },
- {
- "key": "value",
- "type": ["Number", "Array"],
- "desc": "滑块值",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-bar", "t-class-bar-active", "t-class-bar-disabled", "t-class-cursor"],
- "events": [
- {
- "key": "bind:change",
- "desc": "滑块值变化时触发",
- "label": ""
- },
- {
- "key": "bind:dragend",
- "desc": "结束拖动时触发",
- "label": ""
- },
- {
- "key": "bind:dragstart",
- "desc": "开始拖动时触发",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./slider/slider"
- },
- "t-step-item": {
- "key": "t-step-item",
- "label": "步骤",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-steps.png",
- "properties": [
- {
- "key": "content",
- "type": ["String"],
- "desc": "步骤描述",
- "label": ""
- },
- {
- "key": "icon",
- "type": ["String"],
- "desc": "图标。传入 slot 代表使用插槽,其他字符串代表使用内置图标",
- "label": ""
- },
- {
- "key": "status",
- "type": ["String"],
- "desc": "当前步骤的状态",
- "label": ""
- },
- {
- "key": "subStepItems",
- "type": ["Array"],
- "desc": "子步骤条,仅支持 layout = 'vertical' 时",
- "label": ""
- },
- {
- "key": "title",
- "type": ["String"],
- "desc": "标题",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-content", "t-class-title", "t-class-description", "t-class-extra"],
- "tpl": "",
- "path": "./step-item/step-item"
- },
- "t-stepper": {
- "key": "t-stepper",
- "label": "步进器",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-stepper.png",
- "properties": [
- {
- "key": "disabled",
- "type": ["Boolean"],
- "desc": "禁用全部操作",
- "label": ""
- },
- {
- "key": "disableInput",
- "type": ["Boolean"],
- "desc": "禁用输入框",
- "label": ""
- },
- {
- "key": "inputWidth",
- "type": ["Number"],
- "desc": "输入框宽度",
- "label": ""
- },
- {
- "key": "max",
- "type": ["Number"],
- "desc": "最大值",
- "label": ""
- },
- {
- "key": "min",
- "type": ["Number"],
- "desc": "最小值",
- "label": ""
- },
- {
- "key": "step",
- "type": ["Number"],
- "desc": "步长",
- "label": ""
- },
- {
- "key": "theme",
- "type": ["String"],
- "desc": "组件风格",
- "label": ""
- },
- {
- "key": "value",
- "type": ["String", "Number"],
- "desc": "值",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-input", "t-class-add", "t-class-minus"],
- "events": [
- {
- "key": "bind:blur",
- "desc": "输入框失去焦点时触发",
- "label": ""
- },
- {
- "key": "bind:change",
- "desc": "数值发生变更时触发",
- "label": ""
- },
- {
- "key": "bind:overlimit",
- "desc": "数值超出限制时触发",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./stepper/stepper"
- },
- "t-steps": {
- "key": "t-steps",
- "label": "步骤条",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-steps.png",
- "properties": [
- {
- "key": "current",
- "type": ["String", "Number"],
- "desc": "当前步骤,即整个步骤条进度。默认根据步骤下标判断步骤的完成状态,当前步骤为进行中,当前步骤之前的步骤为已完成,当前步骤之后的步骤为未开始。如果每个步骤没有设置 value,current 值为步骤长度则表示所有步骤已完成。如果每个步骤设置了自定义 value,则 current = 'FINISH' 表示所有状态完成",
- "label": ""
- },
- {
- "key": "currentStatus",
- "type": ["String"],
- "desc": "用于控制 current 指向的步骤条的状态",
- "label": ""
- },
- {
- "key": "layout",
- "type": ["String"],
- "desc": "步骤条方向,有两种:横向和纵向",
- "label": ""
- },
- {
- "key": "readonly",
- "type": ["Boolean"],
- "desc": "只读状态",
- "label": ""
- },
- {
- "key": "separator",
- "type": ["String"],
- "desc": "步骤条分割符",
- "label": ""
- },
- {
- "key": "theme",
- "type": ["String"],
- "desc": "步骤条风格",
- "label": ""
- }
- ],
- "externalClasses": ["t-class"],
- "events": [
- {
- "key": "bind:change",
- "desc": "当前步骤发生变化时触发",
- "label": ""
- }
- ],
- "tpl": "",
- "require": {
- "t-step-item": "./step-item/step-item"
- },
- "path": "./steps/steps"
- },
- "t-sticky": {
- "key": "t-sticky",
- "label": "吸顶容器",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-sticky.png",
- "properties": [
- {
- "key": "container",
- "type": ["String"],
- "desc": "函数返回容器对应的 NodesRef 节点,将对应节点指定为组件的外部容器,滚动时组件会始终保持在容器范围内,当组件即将超出容器底部时,会返回原位置。",
- "label": ""
- },
- {
- "key": "disabled",
- "type": ["Boolean"],
- "desc": "是否禁用组件",
- "label": ""
- },
- {
- "key": "offsetTop",
- "type": ["String", "Number"],
- "desc": "吸顶时与顶部的距离,单位`px`",
- "label": ""
- },
- {
- "key": "zIndex",
- "type": ["Number"],
- "desc": "吸顶时的 z-index",
- "label": ""
- }
- ],
- "externalClasses": ["t-class"],
- "events": [
- {
- "key": "bind:scroll",
- "desc": "滚动时触发,scrollTop: 距离顶部位置,isFixed: 是否吸顶",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./sticky/sticky"
- },
- "t-swipe-cell": {
- "key": "t-swipe-cell",
- "label": "滑动操作",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-swipecell.png",
- "properties": [
- {
- "key": "disabled",
- "type": ["Boolean"],
- "desc": "是否禁用滑动",
- "label": ""
- },
- {
- "key": "expanded",
- "type": ["String"],
- "desc": "操作项是否呈现为打开态",
- "label": ""
- },
- {
- "key": "left",
- "type": ["Array"],
- "desc": "左侧滑动操作项。所有行为同 `right`",
- "label": ""
- },
- {
- "key": "right",
- "type": ["Array"],
- "desc": "右侧滑动操作项。有两种定义方式,一种是使用数组,二种是使用插槽。`right.text` 表示操作文本,`right.className` 表示操作项类名,`right.style` 表示操作项样式,`right.onClick` 表示点击操作项后执行的回调函数。示例:`[{ text: '删除', style: 'background-color: red', onClick: () => {} }]`",
- "label": ""
- }
- ],
- "events": [
- {
- "key": "bind:click",
- "desc": "操作项点击时触发(插槽写法组件不触发,业务侧自定义内容和事件)",
- "label": ""
- }
- ],
- "tpl": "删除",
- "require": {
- "t-cell": "./cell/cell"
- },
- "path": "./swipe-cell/swipe-cell"
- },
- "t-swiper": {
- "key": "t-swiper",
- "label": "轮播",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-swiper.png",
- "properties": [
- {
- "key": "animation",
- "type": ["String"],
- "desc": "轮播切换动画效果类型",
- "label": ""
- },
- {
- "key": "autoplay",
- "type": ["Boolean"],
- "desc": "是否自动播放",
- "label": ""
- },
- {
- "key": "current",
- "type": ["Number"],
- "desc": "当前轮播在哪一项(下标)",
- "label": ""
- },
- {
- "key": "direction",
- "type": ["String"],
- "desc": "轮播滑动方向,包括横向滑动和纵向滑动两个方向",
- "label": ""
- },
- {
- "key": "duration",
- "type": ["Number"],
- "desc": "滑动动画时长",
- "label": ""
- },
- {
- "key": "height",
- "type": ["Number"],
- "desc": "当使用垂直方向滚动时的高度",
- "label": ""
- },
- {
- "key": "interval",
- "type": ["Number"],
- "desc": "轮播间隔时间",
- "label": ""
- },
- {
- "key": "loop",
- "type": ["Boolean"],
- "desc": "是否循环播放",
- "label": ""
- },
- {
- "key": "navigation",
- "type": ["Object"],
- "desc": "导航器全部配置",
- "label": ""
- }
- ],
- "events": [
- {
- "key": "bind:change",
- "desc": "轮播切换时触发",
- "label": ""
- }
- ],
- "tpl": "",
- "require": {
- "t-swiper-item": "./swiper/swiper-item"
- },
- "path": "./swiper/swiper"
- },
- "t-switch": {
- "key": "t-switch",
- "label": "开关",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-switch.png",
- "properties": [
- {
- "key": "colors",
- "type": ["Array"],
- "desc": "自定义颜色,[打开时的颜色,关闭时的颜色]。组件默认颜色为 ['#0052d9', 'rgba(0, 0, 0, .26']。示例:[blue, gray]",
- "label": ""
- },
- {
- "key": "customValue",
- "type": ["Array"],
- "desc": "开关内容,[打开时的值,关闭时的值]。默认为 [true, false]。示例:[1, 0]",
- "label": ""
- },
- {
- "key": "disabled",
- "type": ["Boolean"],
- "desc": "是否禁用组件",
- "label": ""
- },
- {
- "key": "label",
- "type": ["String"],
- "desc": "开关的标签",
- "label": ""
- },
- {
- "key": "loading",
- "type": ["Boolean"],
- "desc": "是否处于加载中状态",
- "label": ""
- },
- {
- "key": "size",
- "type": ["String"],
- "desc": "开关尺寸",
- "label": ""
- },
- {
- "key": "value",
- "type": ["String", "Number", "Boolean"],
- "desc": "开关值",
- "label": ""
- }
- ],
- "events": [
- {
- "key": "bind:change",
- "desc": "数据发生变化时触发",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./switch/switch"
- },
- "t-tab-bar-item": {
- "key": "t-tab-bar-item",
- "label": "标签栏选项",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-tabbar.png",
- "properties": [
- {
- "key": "badgeProps",
- "type": ["Object"],
- "desc": "图标右上角提示信息",
- "label": ""
- },
- {
- "key": "icon",
- "type": ["String"],
- "desc": "图标名称",
- "label": ""
- },
- {
- "key": "subTabBar",
- "type": ["Array"],
- "desc": "二级菜单",
- "label": ""
- },
- {
- "key": "value",
- "type": ["String", "Number"],
- "desc": "标识符",
- "label": ""
- }
- ],
- "tpl": "{{item.label}}",
- "path": "./tab-bar-item/tab-bar-item"
- },
- "t-tab-bar": {
- "key": "t-tab-bar",
- "label": "标签栏",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-tabbar.png",
- "properties": [
- {
- "key": "bordered",
- "type": ["Boolean"],
- "desc": "是否显示外边框",
- "label": ""
- },
- {
- "key": "color",
- "type": ["Array"],
- "desc": "标签颜色设置。示例:[选中标签的颜色, 未选中的标签颜色]",
- "label": ""
- },
- {
- "key": "fixed",
- "type": ["Boolean"],
- "desc": "是否固定在底部",
- "label": ""
- },
- {
- "key": "safeAreaInsetBottom",
- "type": ["Boolean"],
- "desc": "是否为 iPhoneX 留出底部安全距离",
- "label": ""
- },
- {
- "key": "split",
- "type": ["Boolean"],
- "desc": "是否需要分割线",
- "label": ""
- },
- {
- "key": "value",
- "type": ["String", "Number", "Array"],
- "desc": "当前选中标签的索引",
- "label": ""
- }
- ],
- "externalClasses": ["t-class"],
- "events": [
- {
- "key": "bind:change",
- "desc": "选中标签切换时触发",
- "label": ""
- }
- ],
- "tpl": "{{item.label}}",
- "require": {
- "t-tab-bar-item": "./tab-bar-item/tab-bar-item"
- },
- "path": "./tab-bar/tab-bar"
- },
- "t-tab-panel": {
- "key": "t-tab-panel",
- "label": "选项卡面板",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-tabs.png",
- "properties": [
- {
- "key": "destroyOnHide",
- "type": ["Boolean"],
- "desc": "选项卡内容隐藏时是否销毁",
- "label": ""
- },
- {
- "key": "disabled",
- "type": ["Boolean"],
- "desc": "是否禁用当前选项卡",
- "label": ""
- },
- {
- "key": "label",
- "type": ["String"],
- "desc": "选项卡名称",
- "label": ""
- },
- {
- "key": "panel",
- "type": ["String"],
- "desc": "用于自定义选项卡面板内容",
- "label": ""
- },
- {
- "key": "value",
- "type": ["String", "Number"],
- "desc": "选项卡的值,唯一标识",
- "label": ""
- }
- ],
- "tpl": "标签一内容",
- "path": "./tab-panel/tab-panel"
- },
- "t-tabs": {
- "key": "t-tabs",
- "label": "选项卡",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-tabs.png",
- "properties": [
- {
- "key": "animation",
- "type": ["Object"],
- "desc": "动画效果设置。其中 duration 表示动画时长",
- "label": ""
- },
- {
- "key": "placement",
- "type": ["String"],
- "desc": "选项卡位置",
- "label": ""
- },
- {
- "key": "showBottomLine",
- "type": ["Boolean"],
- "desc": "是否展示底部激活线条",
- "label": ""
- },
- {
- "key": "stickyProps",
- "type": ["Object"],
- "desc": "是否支持吸顶",
- "label": ""
- },
- {
- "key": "value",
- "type": ["String", "Number"],
- "desc": "激活的选项卡值",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-item", "t-class-active", "t-class-track"],
- "events": [
- {
- "key": "bind:change",
- "desc": "激活的选项卡发生变化时触发",
- "label": ""
- }
- ],
- "tpl": "标签一内容标签二内容",
- "require": {
- "t-tab-panel": "./tab-panel/tab-panel"
- },
- "path": "./tabs/tabs"
- },
- "t-tag": {
- "key": "t-tag",
- "label": "标签",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-tag.png",
- "properties": [
- {
- "key": "closable",
- "type": ["Boolean"],
- "desc": "标签是否可关闭",
- "label": ""
- },
- {
- "key": "disabled",
- "type": ["Boolean"],
- "desc": "标签禁用态,失效标签不能触发事件。默认风格(theme=default)才有禁用态",
- "label": ""
- },
- {
- "key": "icon",
- "type": ["String"],
- "desc": "标签中的图标,可自定义图标呈现",
- "label": ""
- },
- {
- "key": "maxWidth",
- "type": ["String", "Number"],
- "desc": "标签最大宽度,宽度超出后会出现省略号。示例:'50px' / 80",
- "label": ""
- },
- {
- "key": "shape",
- "type": ["String"],
- "desc": "标签类型,有三种:方形、圆角方形、标记型",
- "label": ""
- },
- {
- "key": "size",
- "type": ["String"],
- "desc": "标签尺寸",
- "label": ""
- },
- {
- "key": "theme",
- "type": ["String"],
- "desc": "组件风格,用于描述组件不同的应用场景",
- "label": ""
- },
- {
- "key": "variant",
- "type": ["String"],
- "desc": "标签风格变体",
- "label": ""
- }
- ],
- "externalClasses": ["t-class"],
- "events": [
- {
- "key": "bind:click",
- "desc": "点击时触发",
- "label": ""
- },
- {
- "key": "bind:close",
- "desc": "如果关闭按钮存在,点击关闭按钮时触发",
- "label": ""
- }
- ],
- "tpl": "重要",
- "path": "./tag/tag"
- },
- "t-textarea": {
- "key": "t-textarea",
- "label": "文本输入框",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-textarea.png",
- "properties": [
- {
- "key": "adjustPosition",
- "type": ["Boolean"],
- "desc": "键盘弹起时,是否自动上推页面",
- "label": ""
- },
- {
- "key": "autofocus",
- "type": ["Boolean"],
- "desc": "自动聚焦,拉起键盘",
- "label": ""
- },
- {
- "key": "autosize",
- "type": ["Boolean"],
- "desc": "是否自动增高,值为 autosize 时,style.height 不生效",
- "label": ""
- },
- {
- "key": "confirmHold",
- "type": ["Boolean"],
- "desc": "点击键盘右下角按钮时是否保持键盘不收起点",
- "label": ""
- },
- {
- "key": "confirmType",
- "type": ["String"],
- "desc": "设置键盘右下角按钮的文字,仅在 type='text'时生效",
- "label": ""
- },
- {
- "key": "disabled",
- "type": ["Boolean"],
- "desc": "是否禁用文本框",
- "label": ""
- },
- {
- "key": "focus",
- "type": ["Boolean"],
- "desc": "自动聚焦",
- "label": ""
- },
- {
- "key": "label",
- "type": ["String"],
- "desc": "左侧文本",
- "label": ""
- },
- {
- "key": "maxcharacter",
- "type": ["Number"],
- "desc": "用户最多可以输入的字符个数,一个中文汉字表示两个字符长度",
- "label": ""
- },
- {
- "key": "maxlength",
- "type": ["Number"],
- "desc": "用户最多可以输入的字符个数",
- "label": ""
- },
- {
- "key": "placeholder",
- "type": ["String"],
- "desc": "占位符",
- "label": ""
- },
- {
- "key": "value",
- "type": ["String"],
- "desc": "文本框值",
- "label": ""
- }
- ],
- "externalClasses": ["t-class", "t-class-textarea", "t-class-placeholder", "t-class-name"],
- "events": [
- {
- "key": "bind:blur",
- "desc": "失去焦点时触发",
- "label": ""
- },
- {
- "key": "bind:change",
- "desc": "输入内容变化时触发",
- "label": ""
- },
- {
- "key": "bind:enter",
- "desc": "点击完成时触发",
- "label": ""
- },
- {
- "key": "bind:focus",
- "desc": "获得焦点时触发",
- "label": ""
- },
- {
- "key": "bind:line-change",
- "desc": "行高发生变化时触发",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./textarea/textarea"
- },
- "t-toast": {
- "key": "t-toast",
- "label": "轻提示",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-toast.png",
- "properties": [
- {
- "key": "direction",
- "type": ["String"],
- "desc": "图标排列方式",
- "label": ""
- },
- {
- "key": "duration",
- "type": ["Number"],
- "desc": "弹窗显示毫秒数",
- "label": ""
- },
- {
- "key": "icon",
- "type": ["String"],
- "desc": "自定义图标",
- "label": ""
- },
- {
- "key": "message",
- "type": ["String"],
- "desc": "弹窗显示文字",
- "label": ""
- },
- {
- "key": "overlayProps",
- "type": ["Object"],
- "desc": "遮罩层属性,透传至 Overlay",
- "label": ""
- },
- {
- "key": "placement",
- "type": ["String"],
- "desc": "弹窗展示位置",
- "label": ""
- },
- {
- "key": "preventScrollThrough",
- "type": ["Boolean"],
- "desc": "防止滚动穿透,即不允许点击和滚动",
- "label": ""
- },
- {
- "key": "showOverlay",
- "type": ["Boolean"],
- "desc": "是否显示遮罩层",
- "label": ""
- },
- {
- "key": "theme",
- "type": ["String"],
- "desc": "提示类型",
- "label": ""
- }
- ],
- "externalClasses": ["t-class"],
- "tpl": "",
- "path": "./toast/toast"
- },
- "t-transition": {
- "key": "t-transition",
- "label": "动画",
- "icon": "",
- "properties": [
- {
- "key": "appear",
- "type": ["Boolean"],
- "desc": "首次出现是否展示动画",
- "label": ""
- },
- {
- "key": "customClass",
- "type": ["String"],
- "desc": "自定义容器类名",
- "label": ""
- },
- {
- "key": "destoryOnClose",
- "type": ["Boolean"],
- "desc": "隐藏时是否销毁内容",
- "label": ""
- },
- {
- "key": "duration",
- "type": ["Number"],
- "desc": "指定过渡时间",
- "label": ""
- },
- {
- "key": "name",
- "type": ["String"],
- "desc": "过渡类名",
- "label": ""
- },
- {
- "key": "visible",
- "type": ["Boolean"],
- "desc": "是否显示",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./transition/transition"
- },
- "t-upload": {
- "key": "t-upload",
- "label": "上传",
- "icon": "https://tdesign.gtimg.com/site/miniprogram-doc/doc-upload.png",
- "properties": [
- {
- "key": "addContent",
- "type": ["String"],
- "desc": "添加按钮内容。值为空,使用默认图标渲染;值为 slot 则表示使用插槽渲染;其他值无效。",
- "label": ""
- },
- {
- "key": "allowUploadDuplicateFile",
- "type": ["Boolean"],
- "desc": "是否允许重复上传相同文件名的文件",
- "label": ""
- },
- {
- "key": "config",
- "type": ["Object"],
- "desc": "图片上传配置,视频上传配置,文件上传配置等,包含图片尺寸、图片来源、视频来源、视频拍摄最长时间等。更多细节查看小程序官网。[图片上传](https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.chooseImage.html)。[视频上传](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseVideo.html)",
- "label": ""
- },
- {
- "key": "deleteBtn",
- "type": ["String"],
- "desc": "删除图标。值为空,使用默认图标渲染;值为 slot 则表示使用插槽渲染;其他值无效。",
- "label": ""
- },
- {
- "key": "fileListDisplay",
- "type": ["String"],
- "desc": "用于完全自定义文件列表内容",
- "label": ""
- },
- {
- "key": "files",
- "type": ["Array"],
- "desc": "已上传文件列表",
- "label": ""
- },
- {
- "key": "gridConfig",
- "type": ["Object"],
- "desc": "upload组件每行上传图片列数以及图片的宽度和高度",
- "label": ""
- },
- {
- "key": "gutter",
- "type": ["Number"],
- "desc": "预览窗格的 `gutter` 大小,单位 rpx",
- "label": ""
- },
- {
- "key": "imageProps",
- "type": ["Object"],
- "desc": "透传 Image 组件全部属性",
- "label": ""
- },
- {
- "key": "max",
- "type": ["Number"],
- "desc": "用于控制文件上传数量,值为 0 则不限制",
- "label": ""
- },
- {
- "key": "mediaType",
- "type": ["Array"],
- "desc": "支持上传的文件类型,图片或视频",
- "label": ""
- },
- {
- "key": "requestMethod",
- "type": ["String"],
- "desc": "自定义上传方法",
- "label": ""
- },
- {
- "key": "sizeLimit",
- "type": ["Number", "Object"],
- "desc": "图片文件大小限制,单位 KB。可选单位有:`'B' | 'KB' | 'MB' | 'GB'`。示例一:`1000`。示例二:`{ size: 2, unit: 'MB', message: '图片大小不超过 {sizeLimit} MB' }`",
- "label": ""
- }
- ],
- "events": [
- {
- "key": "bind:add",
- "desc": "上传成功后触发,仅包含本次选择的照片;`url` 表示选定视频的临时文件路径 (本地路径)。`duration` 表示选定视频的时间长度。`size`选定视频的数据量大小。更多描述参考 wx.chooseMedia 小程序官网描述",
- "label": ""
- },
- {
- "key": "bind:complete",
- "desc": "上传成功或失败后触发",
- "label": ""
- },
- {
- "key": "bind:fail",
- "desc": "上传失败后触发",
- "label": ""
- },
- {
- "key": "bind:remove",
- "desc": "移除文件时触发",
- "label": ""
- },
- {
- "key": "bind:select-change",
- "desc": "选择文件或图片之后,上传之前,触发该事件。
`files` 表示之前已经上传完成的文件列表。
`currentSelectedFiles` 表示本次上传选中的文件列表",
- "label": ""
- },
- {
- "key": "bind:success",
- "desc": "上传成功后触发,包含所有上传的文件;`url` 表示选定视频的临时文件路径 (本地路径)。`duration` 表示选定视频的时间长度。`size`选定视频的数据量大小。更多描述参考 wx.chooseMedia 小程序官网描述",
- "label": ""
- }
- ],
- "tpl": "",
- "path": "./upload/upload"
- }
- },
- "common": {
- "properties": {},
- "events": {}
- },
- "menu": [
- {
- "key": "menu-basic",
- "label": "基础",
- "submenu": [
- {
- "key": "subMenu-button",
- "label": "Button 按钮",
- "components": ["t-button"]
- },
- {
- "key": "subMenu-divider",
- "label": "Divider 分割线",
- "components": ["t-divider"]
- },
- {
- "key": "subMenu-fab",
- "label": "Fab 悬浮按钮",
- "components": ["t-fab"]
- },
- {
- "key": "subMenu-icon",
- "label": "Icon 图标",
- "components": ["t-icon"]
- }
- ]
- },
- {
- "key": "menu-nav",
- "label": "导航",
- "submenu": [
- {
- "key": "subMenu-drawer",
- "label": "Drawer 抽屉",
- "components": ["t-drawer"]
- },
- {
- "key": "subMenu-indexes",
- "label": "Indexes 索引",
- "components": ["t-indexes"]
- },
- {
- "key": "subMenu-navbar",
- "label": "Navbar 导航条",
- "components": ["t-navbar"]
- },
- {
- "key": "subMenu-steps",
- "label": "Steps 步骤条",
- "components": ["t-steps"]
- },
- {
- "key": "subMenu-tabbar",
- "label": "TabBar 标签栏",
- "components": ["t-tab-bar"]
- },
- {
- "key": "subMenu-tabs",
- "label": "Tabs 选项卡",
- "components": ["t-tabs"]
- }
- ]
- },
- {
- "key": "menu-input",
- "label": "输入",
- "submenu": [
- {
- "key": "subMenu-checkbox",
- "label": "CheckBox 复选框",
- "components": ["t-checkbox"]
- },
- {
- "key": "subMenu-dateTimePicker",
- "label": "DateTimePicker 时间选择器",
- "components": ["t-date-time-picker"]
- },
- {
- "key": "subMenu-input",
- "label": "Input 输入框",
- "components": ["t-input"]
- },
- {
- "key": "subMenu-picker",
- "label": "Picker 选择器",
- "components": ["t-picker"]
- },
- {
- "key": "subMenu-radio",
- "label": "Radio 单选框",
- "components": ["t-radio"]
- },
- {
- "key": "subMenu-rate",
- "label": "Rate 评分",
- "components": ["t-rate"]
- },
- {
- "key": "subMenu-search",
- "label": "Search 搜索框",
- "components": ["t-search"]
- },
- {
- "key": "subMenu-slider",
- "label": "Slider 滑动选择器",
- "components": ["t-slider"]
- },
- {
- "key": "subMenu-stepper",
- "label": "Stepper 步进器",
- "components": ["t-stepper"]
- },
- {
- "key": "subMenu-switch",
- "label": "Switch 开关",
- "components": ["t-switch"]
- },
- {
- "key": "subMenu-textarea",
- "label": "Textarea 多行文本框",
- "components": ["t-textarea"]
- },
- {
- "key": "subMenu-upload",
- "label": "UpLoad 上传",
- "components": ["t-upload"]
- }
- ]
- },
- {
- "key": "menu-data",
- "label": "数据展示",
- "submenu": [
- {
- "key": "subMenu-avatar",
- "label": "Avatar 头像",
- "components": ["t-avatar"]
- },
- {
- "key": "subMenu-badge",
- "label": "Badge 徽标",
- "components": ["t-badge"]
- },
- {
- "key": "subMenu-cell",
- "label": "Cell 单元格",
- "components": ["t-cell"]
- },
- {
- "key": "subMenu-collapse",
- "label": "Collapse 折叠面板",
- "components": ["t-collapse"]
- },
- {
- "key": "subMenu-dropdown-menu",
- "label": "DropdownMenu 下拉菜单",
- "components": ["t-dropdown-menu"]
- },
- {
- "key": "subMenu-empty",
- "label": "Empty 空状态",
- "components": ["t-empty"]
- },
- {
- "key": "subMenu-footer",
- "label": "Footer 页脚",
- "components": ["t-footer"]
- },
- {
- "key": "subMenu-grid",
- "label": "Grid 宫格",
- "components": ["t-grid"]
- },
- {
- "key": "subMenu-image",
- "label": "Image 图片",
- "components": ["t-image"]
- },
- {
- "key": "subMenu-skeleton",
- "label": "Skeleton 骨架屏",
- "components": ["t-skeleton"]
- },
- {
- "key": "subMenu-sticky",
- "label": "Sticky 吸顶容器",
- "components": ["t-sticky"]
- },
- {
- "key": "subMenu-swiper",
- "label": "Swiper 轮播图",
- "components": ["t-swiper"]
- },
- {
- "key": "subMenu-tag",
- "label": "Tag 标签",
- "components": ["t-tag"]
- }
- ]
- },
- {
- "key": "menu-info",
- "label": "消息提醒",
- "submenu": [
- {
- "key": "subMenu-actionsheet",
- "label": "ActionSheet 动作面板",
- "components": ["t-action-sheet"]
- },
- {
- "key": "subMenu-back-top",
- "label": "BackTop 返回顶部",
- "components": ["t-back-top"]
- },
- {
- "key": "subMenu-dialog",
- "label": "Dialog 弹出框",
- "components": ["t-dialog"]
- },
- {
- "key": "subMenu-loading",
- "label": "Loading 加载",
- "components": ["t-loading"]
- },
- {
- "key": "subMenu-message",
- "label": "Message 消息通知",
- "components": ["t-message"]
- },
- {
- "key": "subMenu-popup",
- "label": "Popup 弹出层",
- "components": ["t-popup"]
- },
- {
- "key": "subMenu-progress",
- "label": "Progress 进度条",
- "components": ["t-progress"]
- },
- {
- "key": "subMenu-pullDownRefresh",
- "label": "PullDownRefresh 下拉刷新",
- "components": ["t-pull-down-refresh"]
- },
- {
- "key": "subMenu-swipeCell",
- "label": "SwipeCell 滑动操作",
- "components": ["t-swipe-cell"]
- },
- {
- "key": "subMenu-toast",
- "label": "Toast 轻提示",
- "components": ["t-toast"]
- }
- ]
- }
- ]
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/bus.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/bus.d.ts
deleted file mode 100644
index 0ed92bb..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/bus.d.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-export default class Bus {
- listeners: Map;
- constructor();
- on(evtName: string, listener: any): void;
- emit(evtName: string): void;
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/bus.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/bus.js
deleted file mode 100644
index 5626d27..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/bus.js
+++ /dev/null
@@ -1,16 +0,0 @@
-export default class Bus {
- constructor() {
- this.listeners = new Map();
- }
- on(evtName, listener) {
- const target = this.listeners.get(evtName) || [];
- target.push(listener);
- this.listeners.set(evtName, target);
- }
- emit(evtName) {
- const listeners = this.listeners.get(evtName);
- if (listeners) {
- listeners.forEach((func) => func());
- }
- }
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/common.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/common.d.ts
deleted file mode 100644
index 44a4e72..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/common.d.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-export declare type Classes = Array;
-export interface Styles {
- [css: string]: string | number;
-}
-export declare type OptionData = {
- label?: string;
- value?: string | number;
-} & {
- [key: string]: any;
-};
-export declare type TreeOptionData = {
- children?: Array;
-} & OptionData;
-export declare type SizeEnum = 'small' | 'medium' | 'large';
-export declare type HorizontalAlignEnum = 'left' | 'center' | 'right';
-export declare type VerticalAlignEnum = 'top' | 'middle' | 'bottom';
-export declare type ClassName = {
- [className: string]: any;
-} | ClassName[] | string;
-export declare type CSSSelector = string;
-export interface KeysType {
- value?: string;
- label?: string;
-}
-export interface HTMLElementAttributes {
- [css: string]: string;
-}
-export interface InfinityScroll {
- bufferSize?: number;
- isFixedRowHeight?: boolean;
- rowHeight?: number;
- threshold?: number;
- type: 'lazy' | 'virtual';
-}
-export declare type TScroll = InfinityScroll;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/common.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/common.js
deleted file mode 100644
index cb0ff5c..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/common.js
+++ /dev/null
@@ -1 +0,0 @@
-export {};
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/component.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/component.d.ts
deleted file mode 100644
index a8d86ae..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/component.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-///
-declare const TComponent: typeof Component;
-export default TComponent;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/component.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/component.js
deleted file mode 100644
index 4e01a69..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/component.js
+++ /dev/null
@@ -1,5 +0,0 @@
-const TComponent = (options) => {
- options.options = Object.assign({ multipleSlots: true, addGlobalClass: true }, options.options);
- return Component(options);
-};
-export default TComponent;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/config.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/config.d.ts
deleted file mode 100644
index 68879b4..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/config.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-declare const _default: {
- prefix: string;
-};
-export default _default;
-export declare const prefix = "t";
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/config.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/config.js
deleted file mode 100644
index c0dfab2..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/config.js
+++ /dev/null
@@ -1,4 +0,0 @@
-export default {
- prefix: "t",
-};
-export const prefix = "t";
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/index.wxss b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/index.wxss
deleted file mode 100644
index 1d532d2..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/index.wxss
+++ /dev/null
@@ -1,27 +0,0 @@
-.t-float-left {
- float: left;
-}
-.t-float-right {
- float: right;
-}
-@keyframes tdesign-fade-out {
- from {
- opacity: 1;
- }
- to {
- opacity: 0;
- }
-}
-.hotspot-expanded.relative {
- position: relative;
-}
-.hotspot-expanded::after {
- content: '';
- display: block;
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transform: scale(1.5);
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/calendar/index.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/calendar/index.d.ts
deleted file mode 100644
index 2a119d1..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/calendar/index.d.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import type { TDate, TCalendarType, TCalendarValue } from './type';
-export default class TCalendar {
- firstDayOfWeek: number;
- value: TCalendarValue | TCalendarValue[];
- type: TCalendarType;
- minDate: Date;
- maxDate: Date;
- format: (day: TDate) => TDate;
- constructor(options: any);
- getTrimValue(): Date | Date[];
- getDays(): any[];
- getMonths(): any[];
- select({ cellType, year, month, date }: {
- cellType: any;
- year: any;
- month: any;
- date: any;
- }): Date | TCalendarValue[];
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/calendar/index.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/calendar/index.js
deleted file mode 100644
index 9de8d65..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/calendar/index.js
+++ /dev/null
@@ -1,128 +0,0 @@
-import { getDateRect, isSameDate, getMonthDateRect, isValidDate, getDate } from '../date';
-export default class TCalendar {
- constructor(options) {
- this.type = 'single';
- Object.assign(this, options);
- if (!this.minDate)
- this.minDate = getDate();
- if (!this.maxDate)
- this.maxDate = getDate(6);
- }
- getTrimValue() {
- const { value, type } = this;
- const format = (val) => {
- if (val instanceof Date)
- return val;
- if (typeof val === 'number')
- return new Date(val);
- return new Date();
- };
- if (type === 'single' && isValidDate(value))
- return format(value);
- if (type === 'multiple' || type === 'range') {
- if (Array.isArray(value)) {
- const isValid = value.every((item) => isValidDate(item));
- return isValid ? value.map((item) => format(item)) : [];
- }
- return [];
- }
- }
- getDays() {
- const raw = '日一二三四五六';
- const ans = [];
- let i = this.firstDayOfWeek % 7;
- while (ans.length < 7) {
- ans.push(raw[i]);
- i = (i + 1) % 7;
- }
- return ans;
- }
- getMonths() {
- const ans = [];
- const selectedDate = this.getTrimValue();
- const { minDate, maxDate, type, format } = this;
- let { year: minYear, month: minMonth, time: minTime } = getDateRect(minDate);
- const { year: maxYear, month: maxMonth, time: maxTime } = getDateRect(maxDate);
- const calcType = (year, month, date) => {
- const curDate = new Date(year, month, date, 23, 59, 59);
- if (type === 'single' && selectedDate) {
- if (isSameDate({ year, month, date }, selectedDate))
- return 'selected';
- }
- if (type === 'multiple' && selectedDate) {
- const hit = selectedDate.some((item) => isSameDate({ year, month, date }, item));
- if (hit) {
- return 'selected';
- }
- }
- if (type === 'range' && selectedDate) {
- if (Array.isArray(selectedDate)) {
- const [startDate, endDate] = selectedDate;
- if (startDate && isSameDate({ year, month, date }, startDate))
- return 'start';
- if (endDate && isSameDate({ year, month, date }, endDate))
- return 'end';
- if (startDate && endDate && curDate.getTime() > startDate.getTime() && curDate.getTime() < endDate.getTime())
- return 'centre';
- }
- }
- const minCurDate = new Date(year, month, date, 0, 0, 0);
- if (curDate.getTime() < minTime || minCurDate.getTime() > maxTime) {
- return 'disabled';
- }
- return '';
- };
- while (minYear < maxYear || (minYear === maxYear && minMonth <= maxMonth)) {
- const target = getMonthDateRect(new Date(minYear, minMonth, 1));
- const months = [];
- for (let i = 1; i <= 31; i++) {
- if (i > target.lastDate)
- break;
- const dateObj = {
- date: new Date(minYear, minMonth, i),
- day: i,
- type: calcType(minYear, minMonth, i),
- };
- months.push(format ? format(dateObj) : dateObj);
- }
- ans.push({
- year: minYear,
- month: minMonth,
- months,
- weekdayOfFirstDay: target.weekdayOfFirstDay,
- });
- const curDate = getDateRect(new Date(minYear, minMonth + 1, 1));
- minYear = curDate.year;
- minMonth = curDate.month;
- }
- return ans;
- }
- select({ cellType, year, month, date }) {
- const { type } = this;
- const selectedDate = this.getTrimValue();
- if (cellType === 'disabled')
- return;
- const selected = new Date(year, month, date);
- this.value = selected;
- if (type === 'range' && Array.isArray(selectedDate)) {
- if (selectedDate.length === 1 && selected > selectedDate[0]) {
- this.value = [selectedDate[0], selected];
- }
- else {
- this.value = [selected];
- }
- }
- else if (type === 'multiple' && Array.isArray(selectedDate)) {
- const newVal = [...selectedDate];
- const index = selectedDate.findIndex((item) => isSameDate(item, selected));
- if (index > -1) {
- newVal.splice(index, 1);
- }
- else {
- newVal.push(selected);
- }
- this.value = newVal;
- }
- return this.value;
- }
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/calendar/type.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/calendar/type.d.ts
deleted file mode 100644
index 621b949..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/calendar/type.d.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-export interface TDate {
- date: Date;
- day: number;
- type: TDateType;
- className?: string;
- prefix?: string;
- suffix?: string;
-}
-export declare type TCalendarValue = number | Date;
-export declare type TDateType = 'selected' | 'disabled' | 'start' | 'centre' | 'end' | '';
-export declare type TCalendarType = 'single' | 'multiple' | 'range';
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/calendar/type.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/calendar/type.js
deleted file mode 100644
index cb0ff5c..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/calendar/type.js
+++ /dev/null
@@ -1 +0,0 @@
-export {};
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/date.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/date.d.ts
deleted file mode 100644
index e123831..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/date.d.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-export declare type CompareDate = Date | number | {
- year: number;
- month: number;
- date: number;
-};
-export declare const getDateRect: (date: Date | number) => {
- year: number;
- month: number;
- date: number;
- day: number;
- time: number;
-};
-export declare const isSameDate: (date1: CompareDate, date2: CompareDate) => boolean;
-export declare const getMonthDateRect: (date: Date | number) => {
- year: number;
- month: number;
- weekdayOfFirstDay: number;
- lastDate: number;
-};
-export declare const isValidDate: (val: any) => boolean;
-export declare const getDate: (...args: any[]) => any;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/date.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/date.js
deleted file mode 100644
index 3ac46b3..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/shared/date.js
+++ /dev/null
@@ -1,41 +0,0 @@
-export const getDateRect = (date) => {
- const _date = new Date(date);
- return {
- year: _date.getFullYear(),
- month: _date.getMonth(),
- date: _date.getDate(),
- day: _date.getDay(),
- time: _date.getTime(),
- };
-};
-export const isSameDate = (date1, date2) => {
- if (date1 instanceof Date || typeof date1 === 'number')
- date1 = getDateRect(date1);
- if (date2 instanceof Date || typeof date2 === 'number')
- date2 = getDateRect(date2);
- const keys = ['year', 'month', 'date'];
- return keys.every((key) => date1[key] === date2[key]);
-};
-export const getMonthDateRect = (date) => {
- const { year, month } = getDateRect(date);
- const firstDay = new Date(year, month, 1);
- const weekdayOfFirstDay = firstDay.getDay();
- const lastDate = new Date(+new Date(year, month + 1, 1) - 24 * 3600 * 1000).getDate();
- return {
- year,
- month,
- weekdayOfFirstDay,
- lastDate,
- };
-};
-export const isValidDate = (val) => typeof val === 'number' || val instanceof Date;
-export const getDate = (...args) => {
- const now = new Date();
- if (args.length === 0)
- return now;
- if (args.length === 1 && args[0] <= 1000) {
- const { year, month, date } = getDateRect(now);
- return new Date(year, month + args[0], date);
- }
- return Date.apply(null, args);
-};
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/control.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/control.d.ts
deleted file mode 100644
index ed3f4a0..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/control.d.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-declare type ControlInstance = {
- controlled: boolean;
- initValue: any;
- set(newVal: any, extObj?: Object, fn?: any): void;
- get(): any;
- change(newVal: any, customChangeData?: any, customUpdateFn?: any): void;
-};
-declare type ControlOption = {
- valueKey?: string;
- defaultValueKey?: string;
- changeEventName?: string;
- strict?: boolean;
-};
-declare function useControl(this: any, option?: ControlOption): ControlInstance;
-export { ControlOption, ControlInstance, useControl };
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/control.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/control.js
deleted file mode 100644
index 03c9e77..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/control.js
+++ /dev/null
@@ -1,40 +0,0 @@
-const defaultOption = {
- valueKey: 'value',
- defaultValueKey: 'defaultValue',
- changeEventName: 'change',
- strict: true,
-};
-function useControl(option = {}) {
- const { valueKey, defaultValueKey, changeEventName, strict } = Object.assign(Object.assign({}, defaultOption), option);
- const props = this.properties || {};
- const value = props[valueKey];
- const defaultValue = props[strict ? defaultValueKey : valueKey];
- let controlled = false;
- if (strict && typeof value !== 'undefined' && value !== null) {
- controlled = true;
- }
- const set = (newVal, extObj, fn) => {
- this.setData(Object.assign({ [`_${valueKey}`]: newVal }, extObj), fn);
- };
- return {
- controlled,
- initValue: controlled ? value : defaultValue,
- set,
- get: () => {
- return this.data[`_${valueKey}`];
- },
- change: (newVal, customChangeData, customUpdateFn) => {
- this.triggerEvent(changeEventName, typeof customChangeData !== 'undefined' ? customChangeData : newVal);
- if (controlled) {
- return;
- }
- if (typeof customUpdateFn === 'function') {
- customUpdateFn();
- }
- else {
- set(newVal);
- }
- },
- };
-}
-export { useControl };
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/flatTool.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/flatTool.d.ts
deleted file mode 100644
index 4183d79..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/flatTool.d.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-export declare const getPrototypeOf: (obj: any) => any;
-export declare const isObject: (something: any) => boolean;
-export declare const iterateInheritedPrototype: (callback: (proto: Record) => boolean | void, fromCtor: any, toCtor: any, includeToCtor?: boolean) => void;
-export interface ClassInstanceToObjectOptions {
- bindTo?: any;
- excludes?: string[];
- till?: any;
- enumerable?: 0 | boolean;
- configurable?: 0 | boolean;
- writable?: 0 | boolean;
-}
-export declare const toObject: (something: any, options?: ClassInstanceToObjectOptions) => {
- [key: string]: any;
-};
-export declare const isPlainObject: (something: any) => boolean;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/flatTool.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/flatTool.js
deleted file mode 100644
index 045abd7..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/flatTool.js
+++ /dev/null
@@ -1,57 +0,0 @@
-export const getPrototypeOf = function (obj) {
- return Object.getPrototypeOf ? Object.getPrototypeOf(obj) : obj.__proto__;
-};
-export const isObject = function isObject(something) {
- const type = typeof something;
- return something !== null && (type === 'function' || type === 'object');
-};
-export const iterateInheritedPrototype = function iterateInheritedPrototype(callback, fromCtor, toCtor, includeToCtor = true) {
- let proto = fromCtor.prototype || fromCtor;
- const toProto = toCtor.prototype || toCtor;
- while (proto) {
- if (!includeToCtor && proto === toProto)
- break;
- if (callback(proto) === false)
- break;
- if (proto === toProto)
- break;
- proto = getPrototypeOf(proto);
- }
-};
-export const toObject = function toObject(something, options = {}) {
- const obj = {};
- if (!isObject(something))
- return obj;
- const excludes = options.excludes || ['constructor'];
- const { enumerable = true, configurable = 0, writable = 0 } = options;
- const defaultDesc = {};
- if (enumerable !== 0)
- defaultDesc.enumerable = enumerable;
- if (configurable !== 0)
- defaultDesc.configurable = configurable;
- if (writable !== 0)
- defaultDesc.writable = writable;
- iterateInheritedPrototype((proto) => {
- Object.getOwnPropertyNames(proto).forEach((key) => {
- if (excludes.indexOf(key) >= 0)
- return;
- if (Object.prototype.hasOwnProperty.call(obj, key))
- return;
- const desc = Object.getOwnPropertyDescriptor(proto, key);
- const fnKeys = ['get', 'set', 'value'];
- fnKeys.forEach((k) => {
- if (typeof desc[k] === 'function') {
- const oldFn = desc[k];
- desc[k] = function (...args) {
- return oldFn.apply(Object.prototype.hasOwnProperty.call(options, 'bindTo') ? options.bindTo : this, args);
- };
- }
- });
- Object.defineProperty(obj, key, Object.assign(Object.assign({}, desc), defaultDesc));
- });
- }, something, options.till || Object, false);
- return obj;
-};
-export const isPlainObject = function isPlainObject(something) {
- return Object.prototype.toString.call(something) === '[object Object]';
-};
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/index.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/index.d.ts
deleted file mode 100644
index 94e7ce1..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/index.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export * from './superComponent';
-export * from './flatTool';
-export * from './instantiationDecorator';
-export * from './control';
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/index.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/index.js
deleted file mode 100644
index 94e7ce1..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-export * from './superComponent';
-export * from './flatTool';
-export * from './instantiationDecorator';
-export * from './control';
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/instantiationDecorator.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/instantiationDecorator.d.ts
deleted file mode 100644
index 3a06f2c..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/instantiationDecorator.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { SuperComponent } from './superComponent';
-export declare const toComponent: (options: Record) => Record;
-export declare const wxComponent: () => (constructor: new () => SuperComponent) => void;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/instantiationDecorator.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/instantiationDecorator.js
deleted file mode 100644
index 7411831..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/instantiationDecorator.js
+++ /dev/null
@@ -1,141 +0,0 @@
-import { isPlainObject, toObject } from './flatTool';
-import { canUseVirtualHost } from '../version';
-const RawLifeCycles = ['Created', 'Attached', 'Ready', 'Moved', 'Detached', 'Error'];
-const NativeLifeCycles = RawLifeCycles.map((k) => k.toLowerCase());
-const ComponentNativeProps = [
- 'properties',
- 'data',
- 'observers',
- 'methods',
- 'behaviors',
- ...NativeLifeCycles,
- 'relations',
- 'externalClasses',
- 'options',
- 'lifetimes',
- 'pageLifeTimes',
- 'definitionFilter',
-];
-export const toComponent = function toComponent(options) {
- const { relations, behaviors = [], properties } = options;
- if (options.properties) {
- Object.keys(options.properties).forEach((k) => {
- let opt = options.properties[k];
- if (!isPlainObject(opt)) {
- opt = { type: opt };
- }
- options.properties[k] = opt;
- });
- const ariaProps = [
- { key: 'ariaHidden', type: Boolean },
- { key: 'ariaRole', type: String },
- { key: 'ariaLabel', type: String },
- { key: 'ariaLabelledby', type: String },
- { key: 'ariaDescribedby', type: String },
- { key: 'ariaBusy', type: Boolean },
- ];
- ariaProps.forEach(({ key, type }) => {
- options.properties[key] = {
- type,
- };
- });
- options.properties.style = { type: String, value: '' };
- options.properties.customStyle = { type: String, value: '' };
- }
- if (!options.methods)
- options.methods = {};
- if (!options.lifetimes)
- options.lifetimes = {};
- const inits = {};
- if (relations) {
- const getRelations = (relation, path) => Behavior({
- created() {
- Object.defineProperty(this, `$${relation}`, {
- get: () => {
- const nodes = this.getRelationNodes(path) || [];
- return relation === 'parent' ? nodes[0] : nodes;
- },
- });
- },
- });
- const map = {};
- Object.keys(relations).forEach((path) => {
- const comp = relations[path];
- const relation = ['parent', 'ancestor'].includes(comp.type) ? 'parent' : 'children';
- const mixin = getRelations(relation, path);
- map[relation] = mixin;
- });
- behaviors.push(...Object.keys(map).map((key) => map[key]));
- }
- options.behaviors = [...behaviors];
- Object.getOwnPropertyNames(options).forEach((k) => {
- const desc = Object.getOwnPropertyDescriptor(options, k);
- if (!desc)
- return;
- if (NativeLifeCycles.indexOf(k) < 0 && typeof desc.value === 'function') {
- Object.defineProperty(options.methods, k, desc);
- delete options[k];
- }
- else if (ComponentNativeProps.indexOf(k) < 0) {
- inits[k] = desc;
- }
- else if (NativeLifeCycles.indexOf(k) >= 0) {
- options.lifetimes[k] = options[k];
- }
- });
- if (Object.keys(inits).length) {
- const oldCreated = options.lifetimes.created;
- const oldAttached = options.lifetimes.attached;
- const { controlledProps = [] } = options;
- options.lifetimes.created = function (...args) {
- Object.defineProperties(this, inits);
- if (oldCreated)
- oldCreated.apply(this, args);
- };
- options.lifetimes.attached = function (...args) {
- if (oldAttached)
- oldAttached.apply(this, args);
- controlledProps.forEach(({ key }) => {
- const defaultKey = `default${key.replace(/^(\w)/, (m, m1) => m1.toUpperCase())}`;
- const props = this.properties;
- if (props[key] == null) {
- this._selfControlled = true;
- }
- if (props[key] == null && props[defaultKey] != null) {
- this.setData({
- [key]: props[defaultKey],
- });
- }
- });
- };
- options.methods._trigger = function (evtName, detail, opts) {
- const target = controlledProps.find((item) => item.event == evtName);
- if (target) {
- const { key } = target;
- if (this._selfControlled) {
- this.setData({
- [key]: detail[key],
- });
- }
- }
- this.triggerEvent(evtName, detail, opts);
- };
- }
- return options;
-};
-export const wxComponent = function wxComponent() {
- return function (constructor) {
- class WxComponent extends constructor {
- }
- const current = new WxComponent();
- current.options = current.options || {};
- if (current.options.addGlobalClass === undefined) {
- current.options.addGlobalClass = true;
- }
- if (canUseVirtualHost()) {
- current.options.virtualHost = true;
- }
- const obj = toComponent(toObject(current));
- Component(obj);
- };
-};
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/superComponent.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/superComponent.d.ts
deleted file mode 100644
index 4455e19..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/superComponent.d.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-///
-export interface ComponentsOptionsType extends WechatMiniprogram.Component.ComponentOptions {
- styleIsolation?: 'isolated' | 'apply-shared' | 'shared' | 'page-isolated' | 'page-apply-shared' | 'page-shared';
-}
-export interface RelationsOptions {
- [componentName: string]: WechatMiniprogram.Component.RelationOption;
-}
-export interface SuperComponent extends WechatMiniprogram.Component.Lifetimes, WechatMiniprogram.Component.OtherOption, WechatMiniprogram.Component.InstanceMethods {
- properties: P;
- data: D;
- options: ComponentsOptionsType;
- methods: M | Record any>;
- $global: Function;
- [x: string]: any;
-}
-export declare class SuperComponent {
- readonly app: any;
- constructor();
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/superComponent.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/superComponent.js
deleted file mode 100644
index 3cb17dc..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/src/superComponent.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export class SuperComponent {
- constructor() {
- this.app = getApp();
- }
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/_variables.wxss b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/_variables.wxss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/base.wxss b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/base.wxss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/index.wxss b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/index.wxss
deleted file mode 100644
index 1d532d2..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/index.wxss
+++ /dev/null
@@ -1,27 +0,0 @@
-.t-float-left {
- float: left;
-}
-.t-float-right {
- float: right;
-}
-@keyframes tdesign-fade-out {
- from {
- opacity: 1;
- }
- to {
- opacity: 0;
- }
-}
-.hotspot-expanded.relative {
- position: relative;
-}
-.hotspot-expanded::after {
- content: '';
- display: block;
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transform: scale(1.5);
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/mixins/_clearfix.wxss b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/mixins/_clearfix.wxss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/mixins/_cursor.wxss b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/mixins/_cursor.wxss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/mixins/_ellipsis.wxss b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/mixins/_ellipsis.wxss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/mixins/_hairline.wxss b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/mixins/_hairline.wxss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/mixins/_index.wxss b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/mixins/_index.wxss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/theme/_index.wxss b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/theme/_index.wxss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/utilities/_animation.wxss b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/utilities/_animation.wxss
deleted file mode 100644
index a04e7c5..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/utilities/_animation.wxss
+++ /dev/null
@@ -1,8 +0,0 @@
-@keyframes tdesign-fade-out {
- from {
- opacity: 1;
- }
- to {
- opacity: 0;
- }
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/utilities/_float.wxss b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/utilities/_float.wxss
deleted file mode 100644
index e88ef0e..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/utilities/_float.wxss
+++ /dev/null
@@ -1,6 +0,0 @@
-.t-float-left {
- float: left;
-}
-.t-float-right {
- float: right;
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/utilities/_index.wxss b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/utilities/_index.wxss
deleted file mode 100644
index 1d532d2..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/style/utilities/_index.wxss
+++ /dev/null
@@ -1,27 +0,0 @@
-.t-float-left {
- float: left;
-}
-.t-float-right {
- float: right;
-}
-@keyframes tdesign-fade-out {
- from {
- opacity: 1;
- }
- to {
- opacity: 0;
- }
-}
-.hotspot-expanded.relative {
- position: relative;
-}
-.hotspot-expanded::after {
- content: '';
- display: block;
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transform: scale(1.5);
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/template/badge.wxml b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/template/badge.wxml
deleted file mode 100644
index df8c717..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/template/badge.wxml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/template/button.wxml b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/template/button.wxml
deleted file mode 100644
index 173e8bb..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/template/button.wxml
+++ /dev/null
@@ -1,37 +0,0 @@
-
- {{content}}
-
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/template/icon.wxml b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/template/icon.wxml
deleted file mode 100644
index 0fafa2c..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/template/icon.wxml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/template/image.wxml b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/template/image.wxml
deleted file mode 100644
index cbbbc2b..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/template/image.wxml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/utils.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/utils.d.ts
deleted file mode 100644
index f9dcb79..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/utils.d.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-///
-///
-declare type Context = WechatMiniprogram.Page.TrivialInstance | WechatMiniprogram.Component.TrivialInstance;
-export declare const debounce: (func: any, wait?: number) => (...rest: any[]) => void;
-export declare const throttle: (func: any, wait?: number, options?: any) => (...args: any[]) => void;
-export declare const classNames: (...args: any[]) => string;
-export declare const styles: (styleObj: any) => string;
-export declare const getAnimationFrame: (cb: Function) => WechatMiniprogram.NodesRef;
-export declare const getRect: (context: any, selector: string, needAll?: boolean) => Promise;
-export declare const isNumber: (value: any) => boolean;
-export declare const addUnit: (value?: string | number) => string | undefined;
-export declare const getCharacterLength: (type: string, str: string, max?: number) => {
- length: number;
- characters: string;
-};
-export declare const chunk: (arr: any[], size: number) => any[][];
-export declare const getInstance: (context?: Context, selector?: string) => WechatMiniprogram.Component.TrivialInstance;
-export declare const unitConvert: (value: number | string) => number;
-export declare const setIcon: (iconName: any, icon: any, defaultIcon: any) => {
- [x: string]: any;
-};
-export declare const isBool: (val: any) => boolean;
-export declare const isObject: (val: any) => boolean;
-export declare const isString: (val: any) => boolean;
-export declare const toCamel: (str: any) => any;
-export declare const getCurrentPage: () => T & WechatMiniprogram.OptionalInterface & WechatMiniprogram.Page.InstanceProperties & WechatMiniprogram.Page.InstanceMethods & WechatMiniprogram.Page.Data & WechatMiniprogram.IAnyObject;
-export declare const uniqueFactory: (compName: any) => () => string;
-export declare const calcIcon: (icon: string | Record, defaultIcon?: string) => string | Record;
-export {};
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/utils.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/utils.js
deleted file mode 100644
index 9ddac91..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/utils.js
+++ /dev/null
@@ -1,218 +0,0 @@
-import { prefix } from './config';
-const systemInfo = wx.getSystemInfoSync();
-export const debounce = function (func, wait = 500) {
- let timerId;
- return function (...rest) {
- if (timerId) {
- clearTimeout(timerId);
- }
- timerId = setTimeout(() => {
- func.apply(this, rest);
- }, wait);
- };
-};
-export const throttle = (func, wait = 100, options = null) => {
- let previous = 0;
- let timerid = null;
- if (!options) {
- options = {
- leading: true,
- };
- }
- return function (...args) {
- const now = Date.now();
- if (!previous && !options.leading)
- previous = now;
- const remaining = wait - (now - previous);
- const context = this;
- if (remaining <= 0) {
- if (timerid) {
- clearTimeout(timerid);
- timerid = null;
- }
- previous = now;
- func.apply(context, args);
- }
- };
-};
-export const classNames = function (...args) {
- const hasOwn = {}.hasOwnProperty;
- const classes = [];
- args.forEach((arg) => {
- if (!arg)
- return;
- const argType = typeof arg;
- if (argType === 'string' || argType === 'number') {
- classes.push(arg);
- }
- else if (Array.isArray(arg) && arg.length) {
- const inner = classNames(...arg);
- if (inner) {
- classes.push(inner);
- }
- }
- else if (argType === 'object') {
- for (const key in arg) {
- if (hasOwn.call(arg, key) && arg[key]) {
- classes.push(key);
- }
- }
- }
- });
- return classes.join(' ');
-};
-export const styles = function (styleObj) {
- return Object.keys(styleObj)
- .map((styleKey) => `${styleKey}: ${styleObj[styleKey]}`)
- .join('; ');
-};
-export const getAnimationFrame = function (cb) {
- return wx
- .createSelectorQuery()
- .selectViewport()
- .boundingClientRect()
- .exec(() => {
- cb();
- });
-};
-export const getRect = function (context, selector, needAll = false) {
- return new Promise((resolve, reject) => {
- wx.createSelectorQuery()
- .in(context)[needAll ? 'selectAll' : 'select'](selector)
- .boundingClientRect((rect) => {
- if (rect) {
- resolve(rect);
- }
- else {
- reject(rect);
- }
- })
- .exec();
- });
-};
-const isDef = function (value) {
- return value !== undefined && value !== null;
-};
-export const isNumber = function (value) {
- return /^\d+(\.\d+)?$/.test(value);
-};
-export const addUnit = function (value) {
- if (!isDef(value)) {
- return undefined;
- }
- value = String(value);
- return isNumber(value) ? `${value}px` : value;
-};
-export const getCharacterLength = (type, str, max) => {
- if (!str || str.length === 0) {
- return {
- length: 0,
- characters: '',
- };
- }
- if (type === 'maxcharacter') {
- let len = 0;
- for (let i = 0; i < str.length; i += 1) {
- let currentStringLength = 0;
- if (str.charCodeAt(i) > 127 || str.charCodeAt(i) === 94) {
- currentStringLength = 2;
- }
- else {
- currentStringLength = 1;
- }
- if (len + currentStringLength > max) {
- return {
- length: len,
- characters: str.slice(0, i),
- };
- }
- len += currentStringLength;
- }
- return {
- length: len,
- characters: str,
- };
- }
- else if (type === 'maxlength') {
- const length = str.length > max ? max : str.length;
- return {
- length,
- characters: str.slice(0, length),
- };
- }
- return {
- length: str.length,
- characters: str,
- };
-};
-export const chunk = (arr, size) => Array.from({ length: Math.ceil(arr.length / size) }, (v, i) => arr.slice(i * size, i * size + size));
-export const getInstance = function (context, selector) {
- if (!context) {
- const pages = getCurrentPages();
- const page = pages[pages.length - 1];
- context = page.$$basePage || page;
- }
- const instance = context ? context.selectComponent(selector) : null;
- if (!instance) {
- console.warn('未找到组件,请检查selector是否正确');
- return null;
- }
- return instance;
-};
-export const unitConvert = (value) => {
- var _a;
- if (typeof value === 'string') {
- if (value.includes('rpx')) {
- return (parseInt(value, 10) * ((_a = systemInfo === null || systemInfo === void 0 ? void 0 : systemInfo.screenWidth) !== null && _a !== void 0 ? _a : 750)) / 750;
- }
- return parseInt(value, 10);
- }
- return value;
-};
-export const setIcon = (iconName, icon, defaultIcon) => {
- if (icon) {
- if (typeof icon === 'string') {
- return {
- [`${iconName}Name`]: icon,
- [`${iconName}Data`]: {},
- };
- }
- else if (typeof icon === 'object') {
- return {
- [`${iconName}Name`]: '',
- [`${iconName}Data`]: icon,
- };
- }
- else {
- return {
- [`${iconName}Name`]: defaultIcon,
- [`${iconName}Data`]: {},
- };
- }
- }
- return {
- [`${iconName}Name`]: '',
- [`${iconName}Data`]: {},
- };
-};
-export const isBool = (val) => typeof val === 'boolean';
-export const isObject = (val) => typeof val === 'object' && val != null;
-export const isString = (val) => typeof val === 'string';
-export const toCamel = (str) => str.replace(/-(\w)/g, (match, m1) => m1.toUpperCase());
-export const getCurrentPage = function () {
- const pages = getCurrentPages();
- return pages[pages.length - 1];
-};
-export const uniqueFactory = (compName) => {
- let number = 0;
- return () => `${prefix}_${compName}_${number++}`;
-};
-export const calcIcon = (icon, defaultIcon) => {
- if ((isBool(icon) && icon && defaultIcon) || isString(icon)) {
- return { name: isBool(icon) ? defaultIcon : icon };
- }
- if (isObject(icon)) {
- return icon;
- }
- return null;
-};
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/utils.wxs b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/utils.wxs
deleted file mode 100644
index c0fea73..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/utils.wxs
+++ /dev/null
@@ -1,93 +0,0 @@
-/* utils */
-
-/**
- * addUnit */
-// 为 css 添加单位
-function addUnit(value) {
- var REGEXP = getRegExp('^\d+(.\d+)?$');
- if (value == null) {
- return undefined;
- }
- return REGEXP.test('' + value) ? value + 'px' : value;
-}
-
-function isString(string) {
- return string && string.constructor === 'String';
-}
-
-function isArray(array) {
- return array && array.constructor === 'Array';
-}
-
-function isObject(obj) {
- return obj && obj.constructor === 'Object';
-}
-
-var isNoEmptyObj = function (obj) {
- return isObject(obj) && JSON.stringify(obj) !== '{}';
-};
-
-function includes(arr, value) {
- if (!arr || !isArray(arr)) return false;
-
- var i = 0;
- var len = arr.length;
-
- for (; i < len; i++) {
- if (arr[i] === value) return true;
- }
- return false;
-}
-
-function cls(base, arr) {
- var res = [base];
- var i = 0;
- for (size = arr.length; i < size; i++) {
- var item = arr[i];
-
- if (item && item.constructor === 'Array') {
- var key = arr[i][0];
- var value = arr[i][1];
-
- if (value) {
- res.push(base + '--' + key);
- }
- } else if (typeof item === 'string') {
- if (item) {
- res.push(base + '--' + item);
- }
- }
- }
- return res.join(' ');
-}
-
-function endsWith(str, endStr) {
- return str.slice(-endStr.length) === endStr ? true : false;
-}
-
-function _style(arr) {
- var res = [];
- var r = arr.filter(function (s) {
- return s && s.trim();
- });
-
- for (i = 0; i < r.length; i++) {
- if (endsWith(r[i], ';')) {
- res.push(r[i]);
- } else {
- res.push(r[i] + ';');
- }
- }
- return res.join(' ');
-}
-
-module.exports = {
- addUnit: addUnit,
- isString: isString,
- isArray: isArray,
- isObject: isObject,
- isNoEmptyObj: isNoEmptyObj,
- includes: includes,
- cls: cls,
- _style: _style,
-};
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/version.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/version.d.ts
deleted file mode 100644
index a492558..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/version.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export declare function canIUseFormFieldButton(): boolean;
-export declare function canUseVirtualHost(): boolean;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/version.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/version.js
deleted file mode 100644
index a4e7619..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/common/version.js
+++ /dev/null
@@ -1,40 +0,0 @@
-let systemInfo;
-function getSystemInfo() {
- if (systemInfo == null) {
- systemInfo = wx.getSystemInfoSync();
- }
- return systemInfo;
-}
-function compareVersion(v1, v2) {
- v1 = v1.split('.');
- v2 = v2.split('.');
- const len = Math.max(v1.length, v2.length);
- while (v1.length < len) {
- v1.push('0');
- }
- while (v2.length < len) {
- v2.push('0');
- }
- for (let i = 0; i < len; i++) {
- const num1 = parseInt(v1[i]);
- const num2 = parseInt(v2[i]);
- if (num1 > num2) {
- return 1;
- }
- else if (num1 < num2) {
- return -1;
- }
- }
- return 0;
-}
-function judgeByVersion(version) {
- const currentSDKVersion = getSystemInfo().SDKVersion;
- return compareVersion(currentSDKVersion, version) >= 0;
-}
-export function canIUseFormFieldButton() {
- const version = '2.10.3';
- return judgeByVersion(version);
-}
-export function canUseVirtualHost() {
- return judgeByVersion('2.19.2');
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/README.en-US.md b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/README.en-US.md
deleted file mode 100644
index 2e48c16..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/README.en-US.md
+++ /dev/null
@@ -1,30 +0,0 @@
-:: BASE_DOC ::
-
-## API
-### DateTimePicker Props
-
-name | type | default | description | required
--- | -- | -- | -- | --
-cancel-btn | String | 取消 | \- | N
-confirm-btn | String | - | \- | N
-end | String / Number | - | \- | N
-external-classes | Array | - | `['t-class', 't-class-confirm', 't-class-cancel', 't-class-title']` | N
-footer | Slot | true | \- | N
-format | String | 'YYYY-MM-DD HH:mm:ss' | \- | N
-header | Boolean / Slot | true | \- | N
-mode | String / Array | 'date' | Typescript:`DateTimePickerMode` `type DateTimePickerMode = TimeModeValues \| Array ` `type TimeModeValues = 'year' \| 'month' \| 'date' \| 'hour' \| 'minute' \| 'second'`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/date-time-picker/type.ts) | N
-show-week | Boolean | false | \- | N
-start | String / Number | - | \- | N
-title | String | - | title of picker | N
-value | String / Number | - | Typescript:`DateValue` `type DateValue = string \| number`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/date-time-picker/type.ts) | N
-default-value | String / Number | undefined | uncontrolled property。Typescript:`DateValue` `type DateValue = string \| number`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/date-time-picker/type.ts) | N
-visible | Boolean | false | \- | N
-
-### DateTimePicker Events
-
-name | params | description
--- | -- | --
-cancel | \- | \-
-change | `(value: DateValue)` | \-
-confirm | `(value: DateValue)` | \-
-pick | `(value: DateValue)` | \-
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/README.md b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/README.md
deleted file mode 100644
index 95681f6..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/README.md
+++ /dev/null
@@ -1,68 +0,0 @@
----
-title: DateTimePicker 时间选择器
-description: 用于选择一个时间点或者一个时间段。
-spline: form
-isComponent: true
----
-
-


-## 引入
-
-全局引入,在 miniprogram 根目录下的`app.json`中配置,局部引入,在需要引入的页面或组件的`index.json`中配置。
-
-```json
-"usingComponents": {
- "t-date-time-picker": "tdesign-miniprogram/date-time-picker/date-time-picker"
-}
-```
-
-## 代码演示
-
-### 日期选择器
-
-#### 年月日选择器
-
-{{ year-month-date }}
-
-#### 年月选择器
-
-{{ year-month }}
-
-### 时间选择器器
-
-包括:`时分秒`、`时分`两个示例
-
-{{ time }}
-
-#### 年月日时分秒选择器
-
-{{ date-all }}
-
-## API
-### DateTimePicker Props
-
-名称 | 类型 | 默认值 | 说明 | 必传
--- | -- | -- | -- | --
-cancel-btn | String | 取消 | 取消按钮文字 | N
-confirm-btn | String | - | 确定按钮文字 | N
-end | String / Number | - | 选择器的最大可选时间,默认为当前时间+10年 | N
-external-classes | Array | - | 组件类名,分别用于设置组件外层元素、确认按钮、取消按钮、标题等元素类名。`['t-class', 't-class-confirm', 't-class-cancel', 't-class-title']` | N
-footer | Slot | true | 底部内容 | N
-format | String | 'YYYY-MM-DD HH:mm:ss' | 用于pick、change、confirm事件参数格式化[详细文档](https://day.js.org/docs/en/display/format) | N
-header | Boolean / Slot | true | 头部内容。值为 true 显示空白头部,值为 false 不显示任何内容,值类型为 TNode 表示自定义头部内容 | N
-mode | String / Array | 'date' | year = 年;month = 年月;date = 年月日;hour = 年月日时; minute = 年月日时分;当类型为数组时,第一个值控制年月日,第二个值控制时分秒。TS 类型:`DateTimePickerMode` `type DateTimePickerMode = TimeModeValues \| Array ` `type TimeModeValues = 'year' \| 'month' \| 'date' \| 'hour' \| 'minute' \| 'second'`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/date-time-picker/type.ts) | N
-show-week | Boolean | false | 【开发中】是否在日期旁边显示周几(如周一,周二,周日等) | N
-start | String / Number | - | 选择器的最小可选时间,默认为当前时间-10年 | N
-title | String | - | 标题 | N
-value | String / Number | - | 选中值。TS 类型:`DateValue` `type DateValue = string \| number`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/date-time-picker/type.ts) | N
-default-value | String / Number | undefined | 选中值。非受控属性。TS 类型:`DateValue` `type DateValue = string \| number`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/date-time-picker/type.ts) | N
-visible | Boolean | false | 是否显示 | N
-
-### DateTimePicker Events
-
-名称 | 参数 | 描述
--- | -- | --
-cancel | \- | 取消按钮点击时触发
-change | `(value: DateValue)` | 确认按钮点击时触发
-confirm | `(value: DateValue)` | 【开发中】确认按钮点击时触发
-pick | `(value: DateValue)` | 选中值发生变化时触发
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker.d.ts
deleted file mode 100644
index 809c0b6..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker.d.ts
+++ /dev/null
@@ -1,83 +0,0 @@
-import type { Dayjs } from 'dayjs';
-import { SuperComponent } from '../common/src/index';
-declare enum ModeItem {
- YEAR = "year",
- MONTH = "month",
- DATE = "date",
- HOUR = "hour",
- MINUTE = "minute",
- SECOND = "second"
-}
-interface ColumnItemValue {
- value: string | number;
- label: string | number;
-}
-export default class DateTimePicker extends SuperComponent {
- properties: import("./type").TdDateTimePickerProps;
- externalClasses: string[];
- options: {
- multipleSlots: boolean;
- };
- observers: {
- 'start, end, value': () => void;
- mode(m: any): void;
- };
- date: any;
- data: {
- prefix: string;
- classPrefix: string;
- columns: any[];
- columnsValue: any[];
- fullModes: any[];
- locale: {
- year: string;
- month: string;
- date: string;
- hour: string;
- minute: string;
- second: string;
- am: string;
- pm: string;
- confirm: string;
- cancel: string;
- };
- };
- controlledProps: {
- key: string;
- event: string;
- }[];
- methods: {
- updateColumns(): void;
- getParseDate(): Dayjs;
- getMinDate(): Dayjs;
- getMaxDate(): Dayjs;
- getDateRect(type?: string): any[];
- getDate(): Dayjs;
- clipDate(date: Dayjs): Dayjs;
- setYear(date: Dayjs, year: number): Dayjs;
- setMonth(date: Dayjs, month: number): Dayjs;
- getColumnOptions(): any[];
- getOptionByType(type: any): ColumnItemValue[];
- getYearOptions(dateParams: any): ColumnItemValue[];
- getOptionEdge(minOrMax: 'min' | 'max', type: any): any;
- getMonthOptions(): ColumnItemValue[];
- getDayOptions(): ColumnItemValue[];
- getHourOptions(): ColumnItemValue[];
- getMinuteOptions(): ColumnItemValue[];
- getValueCols(this: DateTimePicker): {
- columns: any;
- columnsValue: any;
- };
- getColumnsValue(): string[];
- getNewDate(value: number, type: ModeItem): Dayjs;
- onColumnChange(e: WechatMiniprogram.CustomEvent): void;
- onConfirm(): void;
- onCancel(): void;
- onVisibleChange(e: any): void;
- resetColumns(): void;
- };
- getFullModeArray(mode: any): any;
- getFullModeByModeString(modeString: any, matchModes: any): any;
- isTimeMode(): boolean;
-}
-export {};
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker.js
deleted file mode 100644
index 088a743..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker.js
+++ /dev/null
@@ -1,352 +0,0 @@
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
-import dayjs from 'dayjs';
-import config from '../common/config';
-import { SuperComponent, wxComponent } from '../common/src/index';
-import defaultLocale from './locale/zh';
-import props from './props';
-const { prefix } = config;
-const name = `${prefix}-date-time-picker`;
-var ModeItem;
-(function (ModeItem) {
- ModeItem["YEAR"] = "year";
- ModeItem["MONTH"] = "month";
- ModeItem["DATE"] = "date";
- ModeItem["HOUR"] = "hour";
- ModeItem["MINUTE"] = "minute";
- ModeItem["SECOND"] = "second";
-})(ModeItem || (ModeItem = {}));
-const DATE_MODES = ['year', 'month', 'date'];
-const TIME_MODES = ['hour', 'minute', 'second'];
-const FULL_MODES = [...DATE_MODES, ...TIME_MODES];
-const DEFAULT_MIN_DATE = dayjs('2000-01-01 00:00:00');
-const DEFAULT_MAX_DATE = dayjs('2030-12-31 23:59:59');
-let DateTimePicker = class DateTimePicker extends SuperComponent {
- constructor() {
- super(...arguments);
- this.properties = props;
- this.externalClasses = [`${prefix}-class`, `${prefix}-class-confirm`, `${prefix}-class-cancel`, `${prefix}-class-title`];
- this.options = {
- multipleSlots: true,
- };
- this.observers = {
- 'start, end, value': function () {
- this.updateColumns();
- },
- mode(m) {
- const fullModes = this.getFullModeArray(m);
- this.setData({
- fullModes,
- });
- this.updateColumns();
- },
- };
- this.date = null;
- this.data = {
- prefix,
- classPrefix: name,
- columns: [],
- columnsValue: [],
- fullModes: [],
- locale: defaultLocale,
- };
- this.controlledProps = [
- {
- key: 'value',
- event: 'change',
- },
- ];
- this.methods = {
- updateColumns() {
- this.date = this.getParseDate();
- const { columns, columnsValue } = this.getValueCols();
- this.setData({
- columns,
- columnsValue,
- });
- },
- getParseDate() {
- const { value, defaultValue } = this.properties;
- const minDate = this.getMinDate();
- const isTimeMode = this.isTimeMode();
- let currentValue = value || defaultValue;
- if (isTimeMode) {
- const dateStr = dayjs(minDate).format('YYYY-MM-DD');
- currentValue = dayjs(`${dateStr} ${currentValue}`);
- }
- const parseDate = dayjs(currentValue || minDate);
- const isDateValid = parseDate.isValid();
- return isDateValid ? parseDate : minDate;
- },
- getMinDate() {
- const { start } = this.properties;
- return start ? dayjs(start) : DEFAULT_MIN_DATE;
- },
- getMaxDate() {
- const { end } = this.properties;
- return end ? dayjs(end) : DEFAULT_MAX_DATE;
- },
- getDateRect(type = 'default') {
- const map = {
- min: 'getMinDate',
- max: 'getMaxDate',
- default: 'getDate',
- };
- const date = this[map[type]]();
- const keys = ['year', 'month', 'date', 'hour', 'minute', 'second'];
- return keys.map((k) => { var _a; return (_a = date[k]) === null || _a === void 0 ? void 0 : _a.call(date); });
- },
- getDate() {
- return this.clipDate((this === null || this === void 0 ? void 0 : this.date) || DEFAULT_MIN_DATE);
- },
- clipDate(date) {
- const minDate = this.getMinDate();
- const maxDate = this.getMaxDate();
- return dayjs(Math.min(Math.max(minDate.valueOf(), date.valueOf()), maxDate.valueOf()));
- },
- setYear(date, year) {
- const beforeMonthDays = date.date();
- const afterMonthDays = date.year(year).daysInMonth();
- const tempDate = date.date(Math.min(beforeMonthDays.valueOf(), afterMonthDays.valueOf()));
- return tempDate.year(year);
- },
- setMonth(date, month) {
- const beforeMonthDays = date.date();
- const afterMonthDays = date.month(month).daysInMonth();
- const tempDate = date.date(Math.min(beforeMonthDays.valueOf(), afterMonthDays.valueOf()));
- return tempDate.month(month);
- },
- getColumnOptions() {
- const { fullModes } = this.data;
- const columnOptions = [];
- fullModes === null || fullModes === void 0 ? void 0 : fullModes.forEach((mode) => {
- const columnOption = this.getOptionByType(mode);
- columnOptions.push(columnOption);
- });
- return columnOptions;
- },
- getOptionByType(type) {
- const { locale } = this.data;
- const options = [];
- const minEdge = this.getOptionEdge('min', type);
- const maxEdge = this.getOptionEdge('max', type);
- for (let i = minEdge; i <= maxEdge; i += 1) {
- const label = type === 'month' ? i + 1 : i;
- if (type === 'minute') {
- if (i % 15 === 0) {
- options.push({
- value: `${i}`,
- label: `${label + locale[type]}`,
- });
- }
- } else {
- options.push({
- value: `${i}`,
- label: `${label + locale[type]}`,
- });
- }
- }
- return options;
- },
- getYearOptions(dateParams) {
- const { locale } = this.data;
- const { minDateYear, maxDateYear } = dateParams;
- const years = [];
- for (let i = minDateYear; i <= maxDateYear; i += 1) {
- years.push({
- value: `${i}`,
- label: `${i + locale.year}`,
- });
- }
- return years;
- },
- getOptionEdge(minOrMax, type) {
- const selDateArray = this.getDateRect();
- const compareArray = this.getDateRect(minOrMax);
- const edge = {
- month: [0, 11],
- date: [1, this.getDate().daysInMonth()],
- hour: [0, 23],
- minute: [0, 59],
- second: [0, 59],
- };
- const types = ['year', 'month', 'date', 'hour', 'minute', 'second'];
- for (let i = 0, size = selDateArray.length; i < size; i += 1) {
- if (types[i] === type)
- return compareArray[i];
- if (compareArray[i] !== selDateArray[i])
- return edge[type][minOrMax === 'min' ? 0 : 1];
- }
- return edge[type][minOrMax === 'min' ? 0 : 1];
- },
- getMonthOptions() {
- const { locale } = this.data;
- const months = [];
- const minMonth = this.getOptionEdge('min', 'month');
- const maxMonth = this.getOptionEdge('max', 'month');
- for (let i = minMonth; i <= maxMonth; i += 1) {
- months.push({
- value: `${i}`,
- label: `${i + 1 + locale.month}`,
- });
- }
- return months;
- },
- getDayOptions() {
- const { locale } = this.data;
- const days = [];
- const minDay = this.getOptionEdge('min', 'date');
- const maxDay = this.getOptionEdge('max', 'date');
- for (let i = minDay; i <= maxDay; i += 1) {
- days.push({
- value: `${i}`,
- label: `${i + locale.day}`,
- });
- }
- return days;
- },
- getHourOptions() {
- const { locale } = this.data;
- const hours = [];
- const minHour = this.getOptionEdge('min', 'hour');
- const maxHour = this.getOptionEdge('max', 'hour');
- for (let i = minHour; i <= maxHour; i += 1) {
- hours.push({
- value: `${i}`,
- label: `${i + locale.hour}`,
- });
- }
- return hours;
- },
- getMinuteOptions() {
- const { locale } = this.data;
- const minutes = [];
- const minMinute = this.getOptionEdge('min', 'minute');
- const maxMinute = this.getOptionEdge('max', 'minute');
- for (let i = minMinute; i <= maxMinute; i += 1) {
- minutes.push({
- value: `${i}`,
- label: `${i + locale.minute}`,
- });
- }
- return minutes;
- },
- getValueCols() {
- return {
- columns: this.getColumnOptions(),
- columnsValue: this.getColumnsValue(),
- };
- },
- getColumnsValue() {
- const { fullModes } = this.data;
- const date = this.getDate();
- const columnsValue = [];
- fullModes === null || fullModes === void 0 ? void 0 : fullModes.forEach((mode) => {
- columnsValue.push(`${date[mode]()}`);
- });
- return columnsValue;
- },
- getNewDate(value, type) {
- let newValue = this.getDate();
- switch (type) {
- case ModeItem.YEAR:
- newValue = this.setYear(newValue, value);
- break;
- case ModeItem.MONTH:
- newValue = this.setMonth(newValue, value);
- break;
- case ModeItem.DATE:
- newValue = newValue.date(value);
- break;
- case ModeItem.HOUR:
- newValue = newValue.hour(value);
- break;
- case ModeItem.MINUTE:
- newValue = newValue.minute(value);
- break;
- case ModeItem.SECOND:
- newValue = newValue.second(value);
- break;
- default:
- break;
- }
- return this.clipDate(newValue);
- },
- onColumnChange(e) {
- const { value, column } = e === null || e === void 0 ? void 0 : e.detail;
- const { fullModes, format } = this.data;
- const columnValue = value === null || value === void 0 ? void 0 : value[column];
- const columnType = fullModes === null || fullModes === void 0 ? void 0 : fullModes[column];
- const newValue = this.getNewDate(parseInt(columnValue, 10), columnType);
- this.date = newValue;
- const { columns, columnsValue } = this.getValueCols();
- this.setData({
- columns,
- columnsValue,
- });
- const date = this.getDate();
- const pickValue = format ? date.format(format) : date.valueOf();
- this.triggerEvent('pick', { value: pickValue });
- },
- onConfirm() {
- const { format } = this.properties;
- const date = this.getDate();
- const value = format ? date.format(format) : date.valueOf();
- this._trigger('change', { value });
- this.resetColumns();
- },
- onCancel() {
- this.resetColumns();
- this.triggerEvent('cancel');
- },
- onVisibleChange(e) {
- if (!e.detail.visible) {
- this.resetColumns();
- }
- },
- resetColumns() {
- const parseDate = this.getParseDate();
- this.date = parseDate;
- const { columns, columnsValue } = this.getValueCols();
- this.setData({
- columns,
- columnsValue,
- });
- },
- };
- }
- getFullModeArray(mode) {
- if (typeof mode === 'string' || mode instanceof String) {
- return this.getFullModeByModeString(mode, FULL_MODES);
- }
- if (Array.isArray(mode)) {
- if ((mode === null || mode === void 0 ? void 0 : mode.length) === 1) {
- return this.getFullModeByModeString(mode[0], FULL_MODES);
- }
- if ((mode === null || mode === void 0 ? void 0 : mode.length) === 2) {
- const dateModes = this.getFullModeByModeString(mode[0], DATE_MODES);
- const timeModes = this.getFullModeByModeString(mode[1], TIME_MODES);
- return [...dateModes, ...timeModes];
- }
- }
- }
- getFullModeByModeString(modeString, matchModes) {
- if (!modeString) {
- return [];
- }
- const endIndex = matchModes === null || matchModes === void 0 ? void 0 : matchModes.findIndex((mode) => modeString === mode);
- return matchModes === null || matchModes === void 0 ? void 0 : matchModes.slice(0, endIndex + 1);
- }
- isTimeMode() {
- const { fullModes } = this.data;
- return fullModes[0] === ModeItem.HOUR;
- }
-};
-DateTimePicker = __decorate([
- wxComponent()
-], DateTimePicker);
-export default DateTimePicker;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker.json b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker.json
deleted file mode 100644
index 460dcd6..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "t-picker": "../picker/picker",
- "t-picker-item": "../picker-item/picker-item"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker.wxml b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker.wxml
deleted file mode 100644
index 81563c6..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker.wxml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker.wxss b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker.wxss
deleted file mode 100644
index 6c89e6e..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker.wxss
+++ /dev/null
@@ -1,31 +0,0 @@
-.t-float-left {
- float: left;
-}
-.t-float-right {
- float: right;
-}
-@keyframes tdesign-fade-out {
- from {
- opacity: 1;
- }
- to {
- opacity: 0;
- }
-}
-.hotspot-expanded.relative {
- position: relative;
-}
-.hotspot-expanded::after {
- content: '';
- display: block;
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transform: scale(1.5);
-}
-.t-date-time-picker__item--roomly {
- width: var(--td-data-time-picker-year-width, 128rpx);
- flex: 0 0 var(--td-data-time-picker-year-width, 128rpx);
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/locale/en.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/locale/en.d.ts
deleted file mode 100644
index 9665c2e..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/locale/en.d.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-declare const _default: {
- year: string;
- month: string;
- date: string;
- hour: string;
- minute: string;
- second: string;
- am: string;
- pm: string;
- confirm: string;
- cancel: string;
-};
-export default _default;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/locale/en.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/locale/en.js
deleted file mode 100644
index fc53887..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/locale/en.js
+++ /dev/null
@@ -1,12 +0,0 @@
-export default {
- year: '',
- month: '',
- date: '',
- hour: '',
- minute: '',
- second: '',
- am: 'AM',
- pm: 'PM',
- confirm: 'confirm',
- cancel: 'cancel',
-};
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/locale/zh.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/locale/zh.d.ts
deleted file mode 100644
index 9665c2e..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/locale/zh.d.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-declare const _default: {
- year: string;
- month: string;
- date: string;
- hour: string;
- minute: string;
- second: string;
- am: string;
- pm: string;
- confirm: string;
- cancel: string;
-};
-export default _default;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/locale/zh.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/locale/zh.js
deleted file mode 100644
index 8c808d2..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/locale/zh.js
+++ /dev/null
@@ -1,12 +0,0 @@
-export default {
- year: '年',
- month: '月',
- date: '日',
- hour: '时',
- minute: '分',
- second: '秒',
- am: '上午',
- pm: '下午',
- confirm: '确定',
- cancel: '取消',
-};
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/props.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/props.d.ts
deleted file mode 100644
index 8837a6a..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/props.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { TdDateTimePickerProps } from './type';
-declare const props: TdDateTimePickerProps;
-export default props;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/props.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/props.js
deleted file mode 100644
index b0430fd..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/props.js
+++ /dev/null
@@ -1,55 +0,0 @@
-const props = {
- cancelBtn: {
- type: String,
- value: '',
- },
- confirmBtn: {
- type: String,
- value: '',
- },
- end: {
- type: null,
- },
- externalClasses: {
- type: Array,
- },
- footer: {
- type: Boolean,
- value: true,
- },
- format: {
- type: String,
- value: '',
- },
- header: {
- type: Boolean,
- value: true,
- },
- mode: {
- type: null,
- value: 'date',
- },
- showWeek: {
- type: Boolean,
- value: false,
- },
- start: {
- type: null,
- },
- title: {
- type: String,
- value: '',
- },
- value: {
- type: null,
- value: null,
- },
- defaultValue: {
- type: null,
- },
- visible: {
- type: Boolean,
- value: false,
- },
-};
-export default props;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/type.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/type.d.ts
deleted file mode 100644
index f9a030e..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/type.d.ts
+++ /dev/null
@@ -1,65 +0,0 @@
-export interface TdDateTimePickerProps {
- cancelBtn?: {
- type: StringConstructor;
- value?: string;
- };
- confirmBtn?: {
- type: StringConstructor;
- value?: string;
- };
- style?: {
- type: StringConstructor;
- value?: string;
- };
- end?: {
- type: StringConstructor;
- value?: string | number;
- };
- externalClasses?: {
- type: ArrayConstructor;
- value?: ['t-class', 't-class-confirm', 't-class-cancel', 't-class-title'];
- };
- footer?: {
- type: BooleanConstructor;
- value?: boolean;
- };
- format?: {
- type: StringConstructor;
- value?: string;
- };
- header?: {
- type: BooleanConstructor;
- value?: boolean;
- };
- mode?: {
- type: StringConstructor;
- value?: DateTimePickerMode;
- };
- showWeek?: {
- type: BooleanConstructor;
- value?: boolean;
- };
- start?: {
- type: StringConstructor;
- value?: string | number;
- };
- title?: {
- type: StringConstructor;
- value?: string;
- };
- value?: {
- type: StringConstructor;
- value?: DateValue;
- };
- defaultValue?: {
- type: StringConstructor;
- value?: DateValue;
- };
- visible?: {
- type: BooleanConstructor;
- value?: boolean;
- };
-}
-export declare type DateTimePickerMode = TimeModeValues | Array;
-export declare type TimeModeValues = 'year' | 'month' | 'date' | 'hour' | 'minute' | 'second';
-export declare type DateValue = string | number;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/type.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/type.js
deleted file mode 100644
index cb0ff5c..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/date-time-picker/type.js
+++ /dev/null
@@ -1 +0,0 @@
-export {};
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/README.md b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/README.md
deleted file mode 100644
index 00ea394..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/README.md
+++ /dev/null
@@ -1,101 +0,0 @@
----
-title: Icon 图标
-description: 图标。
-spline: base
-isComponent: true
----
-
-


-
-## 引入
-
-全局引入,在 miniprogram 根目录下的`app.json`中配置,局部引入,在需要引入的页面或组件的`index.json`中配置。
-
-```json
-"usingComponents": {
- "t-icon": "tdesign-miniprogram/icon/icon"
-}
-```
-
-## 常见问题
-
-
-
- 控制台告警:Faild to load font
- 👇
-
-
- 告警属于开发者工具的 bug,可以忽略,具体可以看 官网文档
-
-
-
-## 代码演示
-
-### 基础组件图标
-
-{{ base }}
-
-### 自定义组件图标
-
-{{ custom }}
-
-自定义图标用法,下面以 `iconfont` 为例
-
-#### 准备图标文件
-
-文件后缀应为`.wxss`,如下方代码块所示:
-
-```css
-@font-face {
- font-family: 'icon'; // 使用自定义的字体名称
- ···
-}
-
-.icon {
- font-family: 'icon' !important; // 字体名称
- ···
-}
-
-.icon-a-0:before { // icon 图标。注意 FontClass 前缀与 font-family 保持一致
- content: '\e64d';
-}
-```
-- 添加所需图标,下载图标。图标库一般会提供 **在线链接** 或者 **下载至本地** 等使用方式。**在线链接** 方式会指向一个 `.css` 文件,可以下载或复制其内容,将其修改成后缀名为 `.wxss` 的文件
-- 将 `.wxss` 文件中的 `FontClass/Symbol前缀` 与 `Font Family` 两项内容保持一致,如: `FontClass/Symbol` 前缀为 `icon-`,则 `Font Family` 为 `icon`。
-
-> 注:若是采用 `下载至本地` 方式,需关注 `.css` 和 `.ttf` 文件。由于微信小程序不支持处理 `ttf、woff、eot` 等文件,但支持 `base64`,所以需要将 `.ttf` 文件转换为 `base64` (可借助转换工具,如 [transfonter.org](https://transfonter.org/),会得到一个 `stylesheet.css` 文件),然后将 `.css` 文件中的 `@font-face {}` 内容替换为 `stylesheet.css` 中的 `base64` 内容,最后将 `.css` 文件修改后缀为 `.wxss`
-
-#### 引入自定义图标
-
-- 全局引入:在项目 `app.wxss`,使用 `@import` 引入上述的 `.wxss` 文件
-- 局部引入:在 `page` 对应的 `.wxss` 中,使用 `@import` 引入上述的 `.wxss` 文件
-
-#### 自定义图标的使用
-
- `` 组件中的 `prefix` 属性值与前面设置的 `Font Family` 保持一致,即 `prefix="icon"`,`name` 属性值为自定义图标名称,如图标的 `className` 为 `icon-a-1h`,则 `name="a-1h"`。
-
-### 图片链接
-
-{{ iconImage }}
-
-### 全部图标
-
-
-
-## API
-
-#### Props
-
-| 属性 | 值类型 | 默认值 | 必传 | 说明 |
-| ----------- | -------- | ---------- | ---- |----------------------------------------------------------------- |
-| name | String | - | Y | 图标名称或图片链接 |
-| size | String | - | N | 图标大小, 如 `20`, `20px`, `48rpx`, 默认单位是 `px` |
-| color | String | - | N | 图标颜色 |
-| prefix | String | - | N | 自定义图标前缀 |
-| external-classes | Array | - | 组件类名,分别用于设置 组件外层元素、图片图标、基础图标等元素类名。`['t-class']` | N
-
-#### Events
-
-| 事件 | event.detail | 说明 |
-| ---------- | ------------ | -------------- |
-| bind:click | - | 点击图标时触发 |
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/icon.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/icon.d.ts
deleted file mode 100644
index b70696a..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/icon.d.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { SuperComponent } from '../common/src/index';
-export default class Icon extends SuperComponent {
- externalClasses: string[];
- properties: import("./type").TdIconProps;
- data: {
- componentPrefix: string;
- classPrefix: string;
- isImage: boolean;
- iconStyle: any;
- };
- observers: {
- 'name, color, size, style'(): void;
- };
- methods: {
- onTap(event: any): void;
- setIconStyle(): void;
- };
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/icon.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/icon.js
deleted file mode 100644
index 4e25e09..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/icon.js
+++ /dev/null
@@ -1,51 +0,0 @@
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
-import { SuperComponent, wxComponent } from '../common/src/index';
-import config from '../common/config';
-import props from './props';
-import { styles, addUnit } from '../common/utils';
-const { prefix } = config;
-const name = `${prefix}-icon`;
-let Icon = class Icon extends SuperComponent {
- constructor() {
- super(...arguments);
- this.externalClasses = ['class', `${prefix}-class`];
- this.properties = props;
- this.data = {
- componentPrefix: prefix,
- classPrefix: name,
- isImage: false,
- iconStyle: undefined,
- };
- this.observers = {
- 'name, color, size, style'() {
- this.setIconStyle();
- },
- };
- this.methods = {
- onTap(event) {
- this.triggerEvent('click', event.detail);
- },
- setIconStyle() {
- const { name, color, size } = this.properties;
- const isImage = name.indexOf('/') !== -1;
- const sizeValue = addUnit(size);
- const sizeStyle = isImage ? { width: sizeValue, height: sizeValue } : {};
- const colorStyle = color ? { color: color } : {};
- const fontStyle = size ? { 'font-size': sizeValue } : {};
- this.setData({
- isImage,
- iconStyle: `${styles(Object.assign(Object.assign(Object.assign({}, colorStyle), fontStyle), sizeStyle))}`,
- });
- },
- };
- }
-};
-Icon = __decorate([
- wxComponent()
-], Icon);
-export default Icon;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/icon.json b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/icon.json
deleted file mode 100644
index a89ef4d..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/icon.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/icon.wxml b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/icon.wxml
deleted file mode 100644
index 9146939..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/icon.wxml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/icon.wxss b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/icon.wxss
deleted file mode 100644
index 9b6c865..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/icon.wxss
+++ /dev/null
@@ -1,770 +0,0 @@
-.t-float-left {
- float: left;
-}
-.t-float-right {
- float: right;
-}
-@keyframes tdesign-fade-out {
- from {
- opacity: 1;
- }
- to {
- opacity: 0;
- }
-}
-.hotspot-expanded.relative {
- position: relative;
-}
-.hotspot-expanded::after {
- content: '';
- display: block;
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transform: scale(1.5);
-}
-@font-face {
- font-family: t;
- src: url('https://tdesign.gtimg.com/icon/0.1.2/fonts/t.eot'), url('https://tdesign.gtimg.com/icon/0.1.2/fonts/t.eot?#iefix') format('ded-opentype'), url('https://tdesign.gtimg.com/icon/0.1.2/fonts/t.woff') format('woff'), url('https://tdesign.gtimg.com/icon/0.1.2/fonts/t.ttf') format('truetype'), url('https://tdesign.gtimg.com/icon/0.1.2/fonts/t.svg') format('svg');
- /* iOS 4.1- */
- font-weight: normal;
- font-style: normal;
-}
-.t-icon--image {
- width: 1em;
- height: 1em;
-}
-.t-icon__image {
- vertical-align: top;
- width: 100%;
- height: 100%;
-}
-.t-icon-base {
- font-style: normal;
- font-weight: normal;
- font-variant: normal;
- text-transform: none;
- line-height: 1;
- text-align: center;
- display: block;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-.t-icon {
- /* stylelint-disable-next-line declaration-no-important */
- font-family: t !important;
- /* prevent issues with browser extensions that change fonts */
-}
-.t-icon-add-circle:before {
- content: '\E001';
-}
-.t-icon-add-rectangle:before {
- content: '\E002';
-}
-.t-icon-add:before {
- content: '\E003';
-}
-.t-icon-app:before {
- content: '\E004';
-}
-.t-icon-arrow-down-rectangle:before {
- content: '\E005';
-}
-.t-icon-arrow-down:before {
- content: '\E006';
-}
-.t-icon-arrow-left:before {
- content: '\E007';
-}
-.t-icon-arrow-right:before {
- content: '\E008';
-}
-.t-icon-arrow-up:before {
- content: '\E009';
-}
-.t-icon-attach:before {
- content: '\E00A';
-}
-.t-icon-backtop-rectangle:before {
- content: '\E00B';
-}
-.t-icon-backtop:before {
- content: '\E00C';
-}
-.t-icon-backward:before {
- content: '\E00D';
-}
-.t-icon-barcode:before {
- content: '\E00E';
-}
-.t-icon-books:before {
- content: '\E00F';
-}
-.t-icon-browse-off:before {
- content: '\E010';
-}
-.t-icon-browse:before {
- content: '\E011';
-}
-.t-icon-bulletpoint:before {
- content: '\E012';
-}
-.t-icon-calendar:before {
- content: '\E013';
-}
-.t-icon-call:before {
- content: '\E014';
-}
-.t-icon-caret-down-small:before {
- content: '\E015';
-}
-.t-icon-caret-down:before {
- content: '\E016';
-}
-.t-icon-caret-left-small:before {
- content: '\E017';
-}
-.t-icon-caret-left:before {
- content: '\E018';
-}
-.t-icon-caret-right-small:before {
- content: '\E019';
-}
-.t-icon-caret-right:before {
- content: '\E01A';
-}
-.t-icon-caret-up-small:before {
- content: '\E01B';
-}
-.t-icon-caret-up:before {
- content: '\E01C';
-}
-.t-icon-cart:before {
- content: '\E01D';
-}
-.t-icon-chart-bar:before {
- content: '\E01E';
-}
-.t-icon-chart-bubble:before {
- content: '\E01F';
-}
-.t-icon-chart-pie:before {
- content: '\E020';
-}
-.t-icon-chart:before {
- content: '\E021';
-}
-.t-icon-chat:before {
- content: '\E022';
-}
-.t-icon-check-circle-filled:before {
- content: '\E023';
-}
-.t-icon-check-circle:before {
- content: '\E024';
-}
-.t-icon-check-rectangle-filled:before {
- content: '\E025';
-}
-.t-icon-check-rectangle:before {
- content: '\E026';
-}
-.t-icon-check:before {
- content: '\E027';
-}
-.t-icon-chevron-down-circle:before {
- content: '\E028';
-}
-.t-icon-chevron-down-rectangle:before {
- content: '\E029';
-}
-.t-icon-chevron-down:before {
- content: '\E02A';
-}
-.t-icon-chevron-left-circle:before {
- content: '\E02B';
-}
-.t-icon-chevron-left-double:before {
- content: '\E02C';
-}
-.t-icon-chevron-left-rectangle:before {
- content: '\E02D';
-}
-.t-icon-chevron-left:before {
- content: '\E02E';
-}
-.t-icon-chevron-right-circle:before {
- content: '\E02F';
-}
-.t-icon-chevron-right-double:before {
- content: '\E030';
-}
-.t-icon-chevron-right-rectangle:before {
- content: '\E031';
-}
-.t-icon-chevron-right:before {
- content: '\E032';
-}
-.t-icon-chevron-up-circle:before {
- content: '\E033';
-}
-.t-icon-chevron-up-rectangle:before {
- content: '\E034';
-}
-.t-icon-chevron-up:before {
- content: '\E035';
-}
-.t-icon-circle:before {
- content: '\E036';
-}
-.t-icon-clear:before {
- content: '\E037';
-}
-.t-icon-close-circle-filled:before {
- content: '\E038';
-}
-.t-icon-close-circle:before {
- content: '\E039';
-}
-.t-icon-close-rectangle:before {
- content: '\E03A';
-}
-.t-icon-close:before {
- content: '\E03B';
-}
-.t-icon-cloud-download:before {
- content: '\E03C';
-}
-.t-icon-cloud-upload:before {
- content: '\E03D';
-}
-.t-icon-cloud:before {
- content: '\E03E';
-}
-.t-icon-code:before {
- content: '\E03F';
-}
-.t-icon-control-platform:before {
- content: '\E040';
-}
-.t-icon-creditcard:before {
- content: '\E041';
-}
-.t-icon-dashboard:before {
- content: '\E042';
-}
-.t-icon-delete:before {
- content: '\E043';
-}
-.t-icon-desktop:before {
- content: '\E044';
-}
-.t-icon-discount-filled:before {
- content: '\E045';
-}
-.t-icon-discount:before {
- content: '\E046';
-}
-.t-icon-download:before {
- content: '\E047';
-}
-.t-icon-edit-1:before {
- content: '\E048';
-}
-.t-icon-edit:before {
- content: '\E049';
-}
-.t-icon-ellipsis:before {
- content: '\E04A';
-}
-.t-icon-enter:before {
- content: '\E04B';
-}
-.t-icon-error-circle-filled:before {
- content: '\E04C';
-}
-.t-icon-error-circle:before {
- content: '\E04D';
-}
-.t-icon-error:before {
- content: '\E04E';
-}
-.t-icon-file-add:before {
- content: '\E04F';
-}
-.t-icon-file-copy:before {
- content: '\E050';
-}
-.t-icon-file-excel:before {
- content: '\E051';
-}
-.t-icon-file-icon:before {
- content: '\E052';
-}
-.t-icon-file-image:before {
- content: '\E053';
-}
-.t-icon-file-paste:before {
- content: '\E054';
-}
-.t-icon-file-pdf:before {
- content: '\E055';
-}
-.t-icon-file-powerpoint:before {
- content: '\E056';
-}
-.t-icon-file-unknown:before {
- content: '\E057';
-}
-.t-icon-file-word:before {
- content: '\E058';
-}
-.t-icon-file:before {
- content: '\E059';
-}
-.t-icon-filter-clear:before {
- content: '\E05A';
-}
-.t-icon-filter:before {
- content: '\E05B';
-}
-.t-icon-flag:before {
- content: '\E05C';
-}
-.t-icon-folder-add:before {
- content: '\E05D';
-}
-.t-icon-folder-open:before {
- content: '\E05E';
-}
-.t-icon-folder:before {
- content: '\E05F';
-}
-.t-icon-fork:before {
- content: '\E060';
-}
-.t-icon-format-horizontal-align-bottom:before {
- content: '\E061';
-}
-.t-icon-format-horizontal-align-center:before {
- content: '\E062';
-}
-.t-icon-format-horizontal-align-top:before {
- content: '\E063';
-}
-.t-icon-format-vertical-align-center:before {
- content: '\E064';
-}
-.t-icon-format-vertical-align-left:before {
- content: '\E065';
-}
-.t-icon-format-vertical-align-right:before {
- content: '\E066';
-}
-.t-icon-forward:before {
- content: '\E067';
-}
-.t-icon-fullscreen-exit:before {
- content: '\E068';
-}
-.t-icon-fullscreen:before {
- content: '\E069';
-}
-.t-icon-gender-female:before {
- content: '\E06A';
-}
-.t-icon-gender-male:before {
- content: '\E06B';
-}
-.t-icon-gift:before {
- content: '\E06C';
-}
-.t-icon-heart-filled:before {
- content: '\E06D';
-}
-.t-icon-heart:before {
- content: '\E06E';
-}
-.t-icon-help-circle-filled:before {
- content: '\E06F';
-}
-.t-icon-help-circle:before {
- content: '\E070';
-}
-.t-icon-help:before {
- content: '\E071';
-}
-.t-icon-history:before {
- content: '\E072';
-}
-.t-icon-home:before {
- content: '\E073';
-}
-.t-icon-hourglass:before {
- content: '\E074';
-}
-.t-icon-image-error:before {
- content: '\E075';
-}
-.t-icon-image:before {
- content: '\E076';
-}
-.t-icon-info-circle-filled:before {
- content: '\E077';
-}
-.t-icon-info-circle:before {
- content: '\E078';
-}
-.t-icon-internet:before {
- content: '\E079';
-}
-.t-icon-jump:before {
- content: '\E07A';
-}
-.t-icon-laptop:before {
- content: '\E07B';
-}
-.t-icon-layers:before {
- content: '\E07C';
-}
-.t-icon-link-unlink:before {
- content: '\E07D';
-}
-.t-icon-link:before {
- content: '\E07E';
-}
-.t-icon-loading:before {
- content: '\E07F';
-}
-.t-icon-location:before {
- content: '\E080';
-}
-.t-icon-lock-off:before {
- content: '\E081';
-}
-.t-icon-lock-on:before {
- content: '\E082';
-}
-.t-icon-login:before {
- content: '\E083';
-}
-.t-icon-logo-android:before {
- content: '\E084';
-}
-.t-icon-logo-apple-filled:before {
- content: '\E085';
-}
-.t-icon-logo-apple:before {
- content: '\E086';
-}
-.t-icon-logo-chrome-filled:before {
- content: '\E087';
-}
-.t-icon-logo-chrome:before {
- content: '\E088';
-}
-.t-icon-logo-codepen:before {
- content: '\E089';
-}
-.t-icon-logo-github-filled:before {
- content: '\E08A';
-}
-.t-icon-logo-github:before {
- content: '\E08B';
-}
-.t-icon-logo-ie-filled:before {
- content: '\E08C';
-}
-.t-icon-logo-ie:before {
- content: '\E08D';
-}
-.t-icon-logo-qq:before {
- content: '\E08E';
-}
-.t-icon-logo-wechat:before {
- content: '\E08F';
-}
-.t-icon-logo-wecom:before {
- content: '\E090';
-}
-.t-icon-logo-windows-filled:before {
- content: '\E091';
-}
-.t-icon-logo-windows:before {
- content: '\E092';
-}
-.t-icon-logout:before {
- content: '\E093';
-}
-.t-icon-mail:before {
- content: '\E094';
-}
-.t-icon-menu-fold:before {
- content: '\E095';
-}
-.t-icon-menu-unfold:before {
- content: '\E096';
-}
-.t-icon-minus-circle-filled:before {
- content: '\E097';
-}
-.t-icon-minus-circle:before {
- content: '\E098';
-}
-.t-icon-minus-rectangle:before {
- content: '\E099';
-}
-.t-icon-mirror:before {
- content: '\E09A';
-}
-.t-icon-mobile-vibrate:before {
- content: '\E09B';
-}
-.t-icon-mobile:before {
- content: '\E09C';
-}
-.t-icon-money-circle:before {
- content: '\E09D';
-}
-.t-icon-more:before {
- content: '\E09E';
-}
-.t-icon-move:before {
- content: '\E09F';
-}
-.t-icon-next:before {
- content: '\E0A0';
-}
-.t-icon-notification-filled:before {
- content: '\E0A1';
-}
-.t-icon-notification:before {
- content: '\E0A2';
-}
-.t-icon-order-adjustment-column:before {
- content: '\E0A3';
-}
-.t-icon-order-ascending:before {
- content: '\E0A4';
-}
-.t-icon-order-descending:before {
- content: '\E0A5';
-}
-.t-icon-page-first:before {
- content: '\E0A6';
-}
-.t-icon-page-last:before {
- content: '\E0A7';
-}
-.t-icon-pause-circle-filled:before {
- content: '\E0A8';
-}
-.t-icon-photo:before {
- content: '\E0A9';
-}
-.t-icon-pin-filled:before {
- content: '\E0AA';
-}
-.t-icon-pin:before {
- content: '\E0AB';
-}
-.t-icon-play-circle-filled:before {
- content: '\E0AC';
-}
-.t-icon-play-circle-stroke:before {
- content: '\E0AD';
-}
-.t-icon-play-circle:before {
- content: '\E0AE';
-}
-.t-icon-play:before {
- content: '\E0AF';
-}
-.t-icon-poweroff:before {
- content: '\E0B0';
-}
-.t-icon-precise-monitor:before {
- content: '\E0B1';
-}
-.t-icon-previous:before {
- content: '\E0B2';
-}
-.t-icon-print:before {
- content: '\E0B3';
-}
-.t-icon-qrcode:before {
- content: '\E0B4';
-}
-.t-icon-queue:before {
- content: '\E0B5';
-}
-.t-icon-rectangle:before {
- content: '\E0B6';
-}
-.t-icon-refresh:before {
- content: '\E0B7';
-}
-.t-icon-relativity:before {
- content: '\E0B8';
-}
-.t-icon-remove:before {
- content: '\E0B9';
-}
-.t-icon-rollback:before {
- content: '\E0BA';
-}
-.t-icon-rollfront:before {
- content: '\E0BB';
-}
-.t-icon-root-list:before {
- content: '\E0BC';
-}
-.t-icon-rotation:before {
- content: '\E0BD';
-}
-.t-icon-round:before {
- content: '\E0BE';
-}
-.t-icon-save:before {
- content: '\E0BF';
-}
-.t-icon-scan:before {
- content: '\E0C0';
-}
-.t-icon-search:before {
- content: '\E0C1';
-}
-.t-icon-secured:before {
- content: '\E0C2';
-}
-.t-icon-server:before {
- content: '\E0C3';
-}
-.t-icon-service:before {
- content: '\E0C4';
-}
-.t-icon-setting:before {
- content: '\E0C5';
-}
-.t-icon-share:before {
- content: '\E0C6';
-}
-.t-icon-shop:before {
- content: '\E0C7';
-}
-.t-icon-slash:before {
- content: '\E0C8';
-}
-.t-icon-sound:before {
- content: '\E0C9';
-}
-.t-icon-star-filled:before {
- content: '\E0CA';
-}
-.t-icon-star:before {
- content: '\E0CB';
-}
-.t-icon-stop-circle-1:before {
- content: '\E0CC';
-}
-.t-icon-stop-circle-filled:before {
- content: '\E0CD';
-}
-.t-icon-stop-circle:before {
- content: '\E0CE';
-}
-.t-icon-stop:before {
- content: '\E0CF';
-}
-.t-icon-swap-left:before {
- content: '\E0D0';
-}
-.t-icon-swap-right:before {
- content: '\E0D1';
-}
-.t-icon-swap:before {
- content: '\E0D2';
-}
-.t-icon-thumb-down:before {
- content: '\E0D3';
-}
-.t-icon-thumb-up:before {
- content: '\E0D4';
-}
-.t-icon-time-filled:before {
- content: '\E0D5';
-}
-.t-icon-time:before {
- content: '\E0D6';
-}
-.t-icon-tips:before {
- content: '\E0D7';
-}
-.t-icon-tools:before {
- content: '\E0D8';
-}
-.t-icon-unfold-less:before {
- content: '\E0D9';
-}
-.t-icon-unfold-more:before {
- content: '\E0DA';
-}
-.t-icon-upload:before {
- content: '\E0DB';
-}
-.t-icon-usb:before {
- content: '\E0DC';
-}
-.t-icon-user-add:before {
- content: '\E0DD';
-}
-.t-icon-user-avatar:before {
- content: '\E0DE';
-}
-.t-icon-user-circle:before {
- content: '\E0DF';
-}
-.t-icon-user-clear:before {
- content: '\E0E0';
-}
-.t-icon-user-talk:before {
- content: '\E0E1';
-}
-.t-icon-user:before {
- content: '\E0E2';
-}
-.t-icon-usergroup-add:before {
- content: '\E0E3';
-}
-.t-icon-usergroup-clear:before {
- content: '\E0E4';
-}
-.t-icon-usergroup:before {
- content: '\E0E5';
-}
-.t-icon-video:before {
- content: '\E0E6';
-}
-.t-icon-view-column:before {
- content: '\E0E7';
-}
-.t-icon-view-list:before {
- content: '\E0E8';
-}
-.t-icon-view-module:before {
- content: '\E0E9';
-}
-.t-icon-wallet:before {
- content: '\E0EA';
-}
-.t-icon-wifi:before {
- content: '\E0EB';
-}
-.t-icon-zoom-in:before {
- content: '\E0EC';
-}
-.t-icon-zoom-out:before {
- content: '\E0ED';
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/props.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/props.d.ts
deleted file mode 100644
index a472c01..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/props.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { TdIconProps } from './type';
-declare const props: TdIconProps;
-export default props;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/props.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/props.js
deleted file mode 100644
index 51a5fd6..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/props.js
+++ /dev/null
@@ -1,20 +0,0 @@
-const props = {
- color: {
- type: String,
- value: '',
- },
- name: {
- type: String,
- value: '',
- required: true,
- },
- size: {
- type: String,
- value: '',
- },
- prefix: {
- type: String,
- value: undefined,
- },
-};
-export default props;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/type.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/type.d.ts
deleted file mode 100644
index 5b7da04..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/type.d.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-export interface TdIconProps {
- style?: {
- type: StringConstructor;
- value?: string;
- required?: boolean;
- };
- color?: {
- type: StringConstructor;
- value?: string;
- required?: boolean;
- };
- name: {
- type: StringConstructor;
- value?: string;
- required?: boolean;
- };
- size?: {
- type: StringConstructor;
- value?: string;
- required?: boolean;
- };
- prefix?: {
- type: StringConstructor;
- value?: string;
- reuqired?: boolean;
- };
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/type.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/type.js
deleted file mode 100644
index cb0ff5c..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/icon/type.js
+++ /dev/null
@@ -1 +0,0 @@
-export {};
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/miniprogram_npm/dayjs/index.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/miniprogram_npm/dayjs/index.js
deleted file mode 100644
index ba16e65..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/miniprogram_npm/dayjs/index.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t)}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return O},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)
-///
-declare type IPageScrollOption = WechatMiniprogram.Page.IPageScrollOption;
-declare type Scroller = (this: WechatMiniprogram.Component.TrivialInstance, event?: IPageScrollOption) => void;
-declare const _default: (scroller: Scroller) => string;
-export default _default;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/page-scroll.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/page-scroll.js
deleted file mode 100644
index b9f1345..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/page-scroll.js
+++ /dev/null
@@ -1,37 +0,0 @@
-import { getCurrentPage } from '../common/utils';
-const onPageScroll = function (event) {
- const page = getCurrentPage();
- if (!page)
- return;
- const { pageScroller } = page;
- pageScroller.forEach((scroller) => {
- if (typeof scroller === 'function') {
- scroller(event);
- }
- });
-};
-export default (scroller) => {
- return Behavior({
- attached() {
- const page = getCurrentPage();
- if (!page)
- return;
- const bindScroller = scroller.bind(this);
- if (Array.isArray(page.pageScroller)) {
- page.pageScroller.push(bindScroller);
- }
- else {
- page.pageScroller =
- typeof page.onPageScroll === 'function' ? [page.onPageScroll.bind(page), bindScroller] : [bindScroller];
- }
- page.onPageScroll = onPageScroll;
- },
- detached() {
- var _a;
- const page = getCurrentPage();
- if (!page)
- return;
- page.pageScroller = ((_a = page.pageScroller) === null || _a === void 0 ? void 0 : _a.filter((item) => item !== scroller)) || [];
- },
- });
-};
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/touch.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/touch.d.ts
deleted file mode 100644
index ae80eca..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/touch.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-declare const _default: string;
-export default _default;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/touch.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/touch.js
deleted file mode 100644
index cbabccc..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/touch.js
+++ /dev/null
@@ -1,35 +0,0 @@
-const MinDistance = 10;
-const getDirection = (x, y) => {
- if (x > y && x > MinDistance) {
- return 'horizontal';
- }
- if (y > x && y > MinDistance) {
- return 'vertical';
- }
- return '';
-};
-export default Behavior({
- methods: {
- resetTouchStatus() {
- this.direction = '';
- this.deltaX = 0;
- this.deltaY = 0;
- this.offsetX = 0;
- this.offsetY = 0;
- },
- touchStart(event) {
- this.resetTouchStatus();
- const [touch] = event.touches;
- this.startX = touch.clientX;
- this.startY = touch.clientY;
- },
- touchMove(event) {
- const [touch] = event.touches;
- this.deltaX = touch.clientX - this.startX;
- this.deltaY = touch.clientY - this.startY;
- this.offsetX = Math.abs(this.deltaX);
- this.offsetY = Math.abs(this.deltaY);
- this.direction = getDirection(this.offsetX, this.offsetY);
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/transition.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/transition.d.ts
deleted file mode 100644
index 8c23e35..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/transition.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export default function transition(): string;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/transition.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/transition.js
deleted file mode 100644
index ee5215a..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/mixins/transition.js
+++ /dev/null
@@ -1,123 +0,0 @@
-import config from '../common/config';
-const { prefix } = config;
-export default function transition() {
- return Behavior({
- properties: {
- visible: {
- type: Boolean,
- value: null,
- observer: 'watchVisible',
- },
- appear: Boolean,
- name: {
- type: String,
- value: 'fade',
- },
- durations: {
- type: Number,
- optionalTypes: [Array],
- },
- },
- data: {
- transitionClass: '',
- transitionDurations: 300,
- className: '',
- realVisible: false,
- },
- created() {
- this.status = '';
- this.transitionT = 0;
- },
- attached() {
- this.durations = this.getDurations();
- if (this.data.visible) {
- this.enter();
- }
- this.inited = true;
- },
- detached() {
- clearTimeout(this.transitionT);
- },
- methods: {
- watchVisible(curr, prev) {
- if (this.inited && curr !== prev) {
- curr ? this.enter() : this.leave();
- }
- },
- getDurations() {
- const { durations } = this.data;
- if (Array.isArray(durations)) {
- return durations.map((item) => Number(item));
- }
- return [Number(durations), Number(durations)];
- },
- enter() {
- const { name } = this.data;
- const [duration] = this.durations;
- this.status = 'entering';
- this.setData({
- realVisible: true,
- transitionClass: `${prefix}-${name}-enter ${prefix}-${name}-enter-active`,
- });
- setTimeout(() => {
- this.setData({
- transitionClass: `${prefix}-${name}-enter-active ${prefix}-${name}-enter-to`,
- });
- }, 30);
- if (typeof duration === 'number' && duration > 0) {
- this.transitionT = setTimeout(this.entered.bind(this), duration + 30);
- }
- },
- entered() {
- this.customDuration = false;
- clearTimeout(this.transitionT);
- this.status = 'entered';
- this.setData({
- transitionClass: '',
- });
- },
- leave() {
- const { name } = this.data;
- const [, duration] = this.durations;
- this.status = 'leaving';
- this.setData({
- transitionClass: `${prefix}-${name}-leave ${prefix}-${name}-leave-active`,
- });
- clearTimeout(this.transitionT);
- setTimeout(() => {
- this.setData({
- transitionClass: `${prefix}-${name}-leave-active ${prefix}-${name}-leave-to`,
- });
- }, 30);
- if (typeof duration === 'number' && duration > 0) {
- this.customDuration = true;
- this.transitionT = setTimeout(this.leaved.bind(this), duration + 30);
- }
- },
- leaved() {
- this.customDuration = false;
- this.triggerEvent('leaved');
- clearTimeout(this.transitionT);
- this.status = 'leaved';
- this.setData({
- transitionClass: '',
- });
- },
- onTransitionEnd() {
- if (this.customDuration) {
- return;
- }
- clearTimeout(this.transitionT);
- if (this.status === 'entering' && this.data.visible) {
- this.entered();
- }
- else if (this.status === 'leaving' && !this.data.visible) {
- this.leaved();
- this.setData({
- realVisible: false,
- });
- }
- },
- },
- });
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/README.md b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/README.md
deleted file mode 100644
index 8170e5c..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/README.md
+++ /dev/null
@@ -1,49 +0,0 @@
----
-title: Overlay 遮罩层
-description: 通过遮罩层,可以强调部分内容
-spline: message
-isComponent: true
----
-
-


-
-
-
- 该组件于 0.10.0 版本上线,请留意版本。
-
-
-## 引入
-
-全局引入,在 miniprogram 根目录下的`app.json`中配置,局部引入,在需要引入的页面或组件的`index.json`中配置。
-
-```json
-"usingComponents": {
- "t-overlay": "tdesign-miniprogram/overlay/overlay"
-}
-```
-
-## 代码演示
-
-### 基础使用
-
-{{ base }}
-
-## API
-
-### Overlay Props
-
-名称 | 类型 | 默认值 | 说明 | 必传
--- | -- | -- | -- | --
-visible | Boolean | false | 是否展示 | N
-zIndex | Number | 11000 | 遮罩层及 | N
-duration | Number | 300 | (暂不支持)背景色过渡时间,单位毫秒 | N
-backgroundColor | String | - | 遮罩层的背景色 | N
-preventScrollThrough | Boolean | true | 防止滚动穿透,即不允许点击和滚动 | N
-
-### Overlay Events
-
-名称 | 参数 | 描述
--- | -- | --
-click | `({ visible: boolean })` | 点击遮罩时触发
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/overlay.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/overlay.d.ts
deleted file mode 100644
index ea9b296..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/overlay.d.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-import { SuperComponent } from '../common/src/index';
-export default class Overlay extends SuperComponent {
- properties: {
- zIndex: {
- type: NumberConstructor;
- value: number;
- };
- duration: {
- type: NumberConstructor;
- value: number;
- };
- backgroundColor: {
- type: StringConstructor;
- value: string;
- };
- preventScrollThrough: {
- type: BooleanConstructor;
- value: boolean;
- };
- };
- behaviors: string[];
- data: {
- prefix: string;
- classPrefix: string;
- computedStyle: string;
- _zIndex: number;
- };
- observers: {
- backgroundColor(v: any): void;
- zIndex(v: any): void;
- };
- methods: {
- handleClick(): void;
- noop(): void;
- };
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/overlay.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/overlay.js
deleted file mode 100644
index 6f98fdc..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/overlay.js
+++ /dev/null
@@ -1,65 +0,0 @@
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
-import { SuperComponent, wxComponent } from '../common/src/index';
-import config from '../common/config';
-import transition from '../mixins/transition';
-const { prefix } = config;
-const name = `${prefix}-overlay`;
-let Overlay = class Overlay extends SuperComponent {
- constructor() {
- super(...arguments);
- this.properties = {
- zIndex: {
- type: Number,
- value: 11000,
- },
- duration: {
- type: Number,
- value: 300,
- },
- backgroundColor: {
- type: String,
- value: '',
- },
- preventScrollThrough: {
- type: Boolean,
- value: true,
- },
- };
- this.behaviors = [transition()];
- this.data = {
- prefix,
- classPrefix: name,
- computedStyle: '',
- _zIndex: 11000,
- };
- this.observers = {
- backgroundColor(v) {
- this.setData({
- computedStyle: `background-color: ${v};`,
- });
- },
- zIndex(v) {
- if (v !== 0) {
- this.setData({
- _zIndex: v,
- });
- }
- },
- };
- this.methods = {
- handleClick() {
- this.triggerEvent('click', { visible: !this.properties.visible });
- },
- noop() { },
- };
- }
-};
-Overlay = __decorate([
- wxComponent()
-], Overlay);
-export default Overlay;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/overlay.json b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/overlay.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/overlay.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/overlay.wxml b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/overlay.wxml
deleted file mode 100644
index a4f1b8c..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/overlay.wxml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/overlay.wxss b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/overlay.wxss
deleted file mode 100644
index c84c213..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/overlay/overlay.wxss
+++ /dev/null
@@ -1,42 +0,0 @@
-.t-float-left {
- float: left;
-}
-.t-float-right {
- float: right;
-}
-@keyframes tdesign-fade-out {
- from {
- opacity: 1;
- }
- to {
- opacity: 0;
- }
-}
-.hotspot-expanded.relative {
- position: relative;
-}
-.hotspot-expanded::after {
- content: '';
- display: block;
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transform: scale(1.5);
-}
-.t-overlay {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- bottom: 0;
- background-color: var(--td-overlay-bg-color, var(--td-font-gray-2, rgba(0, 0, 0, 0.6)));
- transition: opacity var(--td-overlay-transition-duration, 300ms) ease;
-}
-.t-fade-enter {
- opacity: 0;
-}
-.t-fade-leave-to {
- opacity: 0;
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/picker-item.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/picker-item.d.ts
deleted file mode 100644
index a1ffe82..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/picker-item.d.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-import { SuperComponent, RelationsOptions } from '../common/src/index';
-export default class PickerItem extends SuperComponent {
- relations: RelationsOptions;
- externalClasses: string[];
- properties: import("./type").TdPickerItemProps;
- observers: {
- options(this: PickerItem): void;
- };
- data: {
- prefix: string;
- classPrefix: string;
- offset: number;
- duration: number;
- value: string;
- curIndex: number;
- };
- methods: {
- onTouchStart(event: any): void;
- onTouchMove(event: any): void;
- onTouchEnd(): void;
- update(): void;
- resetOrigin(): void;
- getCount(): any;
- };
- calculateViewDeltaY(touchDeltaY: number): number;
- created(): void;
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/picker-item.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/picker-item.js
deleted file mode 100644
index 493f251..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/picker-item.js
+++ /dev/null
@@ -1,142 +0,0 @@
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length,
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
- d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- else
- for (var i = decorators.length - 1; i >= 0; i--)
- if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
-import {
- SuperComponent,
- wxComponent
-} from '../common/src/index';
-import config from '../common/config';
-import props from './props';
-const {
- prefix
-} = config;
-const name = `${prefix}-picker-item`;
-const itemHeight = 80;
-const DefaultDuration = 240;
-const {
- windowWidth
-} = wx.getSystemInfoSync();
-const rpx2px = (rpx) => Math.floor((windowWidth * rpx) / 750);
-const range = function (num, min, max) {
- return Math.min(Math.max(num, min), max);
-};
-let PickerItem = class PickerItem extends SuperComponent {
- constructor() {
- super(...arguments);
- this.relations = {
- '../picker/picker': {
- type: 'parent',
- },
- };
- this.externalClasses = ['class', `${prefix}-class`];
- this.properties = props;
- this.observers = {
- options() {
- this.update();
- },
- };
- this.data = {
- prefix,
- classPrefix: name,
- offset: 0,
- duration: 0,
- value: '',
- curIndex: 0,
- };
- this.methods = {
- onTouchStart(event) {
- this.StartY = event.touches[0].clientY;
- this.StartOffset = this.data.offset;
- this.setData({
- duration: 0
- });
- },
- onTouchMove(event) {
- const {
- StartY,
- StartOffset,
- itemHeight
- } = this;
- const touchDeltaY = event.touches[0].clientY - StartY;
- const deltaY = this.calculateViewDeltaY(touchDeltaY);
- this.setData({
- offset: range(StartOffset + deltaY, -(this.getCount() * itemHeight), 0),
- duration: DefaultDuration,
- });
- },
- onTouchEnd() {
- const {
- offset
- } = this.data;
- const {
- options
- } = this.properties;
-
- if (offset === this.StartOffset) {
- return;
- }
- const index = range(Math.round(-offset / this.itemHeight), 0, this.getCount() - 1);
- this.setData({
- curIndex: index,
- offset: -index * this.itemHeight,
- });
- if (index === this._selectedIndex) {
- return;
- }
- wx.nextTick(() => {
- var _a, _b, _c;
- this._selectedIndex = index;
- this._selectedValue = (_a = options[index]) === null || _a === void 0 ? void 0 : _a.value;
- this._selectedLabel = (_b = options[index]) === null || _b === void 0 ? void 0 : _b.label;
- (_c = this.$parent) === null || _c === void 0 ? void 0 : _c.triggerColumnChange({
- index,
- column: this.columnIndex || 0,
- });
- });
- },
- update() {
- var _a, _b;
- const {
- options,
- value
- } = this.data;
-
- const index = options.findIndex((item) => item.value === value);
- const selectedIndex = index > 0 ? index : 0;
- this.setData({
- offset: -selectedIndex * this.itemHeight,
- curIndex: selectedIndex,
- });
- this._selectedIndex = selectedIndex;
- this._selectedValue = (_a = options[selectedIndex]) === null || _a === void 0 ? void 0 : _a.value;
- this._selectedLabel = (_b = options[selectedIndex]) === null || _b === void 0 ? void 0 : _b.label;
- },
- resetOrigin() {
- this.update();
- },
- getCount() {
- var _a, _b;
- return (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.length;
- },
- };
- }
- calculateViewDeltaY(touchDeltaY) {
- return Math.abs(touchDeltaY) > itemHeight ? 1.2 * touchDeltaY : touchDeltaY;
- }
- created() {
- this.StartY = 0;
- this.StartOffset = 0;
- this.itemHeight = rpx2px(itemHeight);
- }
-};
-PickerItem = __decorate([
- wxComponent()
-], PickerItem);
-export default PickerItem;
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/picker-item.json b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/picker-item.json
deleted file mode 100644
index a89ef4d..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/picker-item.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/picker-item.wxml b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/picker-item.wxml
deleted file mode 100644
index 4c599f1..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/picker-item.wxml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
- {{option.label}}
-
-
-
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/picker-item.wxss b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/picker-item.wxss
deleted file mode 100644
index 83356e2..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/picker-item.wxss
+++ /dev/null
@@ -1,51 +0,0 @@
-.t-float-left {
- float: left;
-}
-.t-float-right {
- float: right;
-}
-@keyframes tdesign-fade-out {
- from {
- opacity: 1;
- }
- to {
- opacity: 0;
- }
-}
-.hotspot-expanded.relative {
- position: relative;
-}
-.hotspot-expanded::after {
- content: '';
- display: block;
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transform: scale(1.5);
-}
-:host {
- display: flex;
-}
-.t-picker-item__group {
- height: var(--td-picker-group-height, 400rpx);
- overflow: hidden;
- flex: 1;
- z-index: 1;
-}
-.t-picker-item__wrapper {
- padding: 144rpx 0;
-}
-.t-picker-item__item {
- text-align: center;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- height: var(--td-picker-item-height, 80rpx);
- line-height: var(--td-picker-item-height, 80rpx);
- color: var(--td-picker-item-color, var(--td-font-gray-2, rgba(0, 0, 0, 0.6)));
-}
-.t-picker-item__item--active {
- color: var(--td-picker-item-active-color, var(--td-font-gray-1, rgba(0, 0, 0, 1)));
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/props.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/props.d.ts
deleted file mode 100644
index 1140c78..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/props.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { TdPickerItemProps } from './type';
-declare const props: TdPickerItemProps;
-export default props;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/props.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/props.js
deleted file mode 100644
index a55e0af..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/props.js
+++ /dev/null
@@ -1,10 +0,0 @@
-const props = {
- format: {
- type: null,
- },
- options: {
- type: Array,
- value: [],
- },
-};
-export default props;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/type.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/type.d.ts
deleted file mode 100644
index d33515b..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/type.d.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-export interface TdPickerItemProps {
- style?: {
- type: StringConstructor;
- value?: string;
- };
- format?: {
- type: undefined;
- value?: (option: PickerItemOption) => string;
- };
- options?: {
- type: ArrayConstructor;
- value?: PickerItemOption[];
- };
-}
-export interface PickerItemOption {
- label: string;
- value: string | number;
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/type.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/type.js
deleted file mode 100644
index cb0ff5c..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker-item/type.js
+++ /dev/null
@@ -1 +0,0 @@
-export {};
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/README.en-US.md b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/README.en-US.md
deleted file mode 100644
index 3f9c558..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/README.en-US.md
+++ /dev/null
@@ -1,34 +0,0 @@
-:: BASE_DOC ::
-
-## API
-### Picker Props
-
-name | type | default | description | required
--- | -- | -- | -- | --
-auto-close | Boolean | true | \- | N
-cancel-btn | String / Boolean / Object | true | Typescript:`boolean \| string \| ButtonProps` | N
-columns | Array / Function | [] | required。Typescript:`Array \| ((item: Array) => Array)` `type PickerColumn = PickerColumnItem[]` `interface PickerColumnItem { label: string,value: string}`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker/type.ts) | Y
-confirm-btn | String / Boolean / Object | true | Typescript:`boolean \| string \| ButtonProps`,[Button API Documents](./button?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker/type.ts) | N
-footer | Slot | - | \- | N
-header | Boolean / Slot | true | \- | N
-render-label | String / Function | - | Typescript:`(item: PickerColumnItem) => string` | N
-title | String | '' | \- | N
-value | Array | - | Typescript:`Array` `type PickerValue = string \| number`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker/type.ts) | N
-default-value | Array | undefined | uncontrolled property。Typescript:`Array` `type PickerValue = string \| number`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker/type.ts) | N
-visible | Boolean | false | \- | N
-
-### Picker Events
-
-name | params | description
--- | -- | --
-cancel | - | \-
-change | `(value: Array, label: string, columns: Array<{ column: number; index: number }> )` | \-
-confirm | `(value: Array, label: string, columns: Array<{ column: number; index: number }> )` | \-
-pick | `(value: Array, label: string, column: number, index: number)` | \-
-
-### PickerItem Props
-
-name | type | default | description | required
--- | -- | -- | -- | --
-format | Function | - | Typescript:`(option: PickerItemOption) => string` | N
-options | Array | [] | Typescript:`PickerItemOption[]` `interface PickerItemOption { label: string; value: string \| number }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker-item/type.ts) | N
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/README.md b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/README.md
deleted file mode 100644
index 1ec55d6..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/README.md
+++ /dev/null
@@ -1,72 +0,0 @@
----
-title: Picker 选择器
-description: 用于一组预设数据中的选择。
-spline: form
-isComponent: true
----
-
-


-## 引入
-
-全局引入,在 miniprogram 根目录下的`app.json`中配置,局部引入,在需要引入的页面或组件的`index.json`中配置。
-
-```json
-"usingComponents": {
- "t-picker": "tdesign-miniprogram/picker/picker",
- "t-picker-item": "tdesign-miniprogram/picker-item/picker-item",
-}
-```
-
-## 代码演示
-
-### 组件类型
-#### 基础选择器
-
-单项和多选选择
-
-{{ base }}
-
-#### 地区选择器
-
-支持省市区切换,支持数据联动
-
-{{ area }}
-
-### 组件状态
-
-是否带标题
-
-{{ with-title }}
-
-## API
-### Picker Props
-
-名称 | 类型 | 默认值 | 说明 | 必传
--- | -- | -- | -- | --
-auto-close | Boolean | true | 自动关闭;在确认、取消、点击遮罩层自动关闭,不需要手动设置 visible | N
-cancel-btn | String / Boolean / Object | true | 取消按钮文字。TS 类型:`boolean \| string \| ButtonProps` | N
-columns | Array / Function | [] | 必需。配置每一列的选项。TS 类型:`Array \| ((item: Array) => Array)` `type PickerColumn = PickerColumnItem[]` `interface PickerColumnItem { label: string,value: string}`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker/type.ts) | Y
-confirm-btn | String / Boolean / Object | true | 确定按钮文字。TS 类型:`boolean \| string \| ButtonProps`,[Button API Documents](./button?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker/type.ts) | N
-footer | Slot | - | 底部内容 | N
-header | Boolean / Slot | true | 头部内容。值为 true 显示空白头部,值为 false 不显示任何内容,值类型为 TNode 表示自定义头部内容 | N
-render-label | String / Function | - | 自定义label。TS 类型:`(item: PickerColumnItem) => string` | N
-title | String | '' | 标题 | N
-value | Array | - | 选中值。TS 类型:`Array` `type PickerValue = string \| number`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker/type.ts) | N
-default-value | Array | undefined | 选中值。非受控属性。TS 类型:`Array` `type PickerValue = string \| number`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker/type.ts) | N
-visible | Boolean | false | 是否显示 | N
-
-### Picker Events
-
-名称 | 参数 | 描述
--- | -- | --
-cancel | - | 点击取消按钮时触发
-change | `(value: Array, label: string, columns: Array<{ column: number; index: number }> )` | 选中变化时候触发,即确认变化时触发
-confirm | `(value: Array, label: string, columns: Array<{ column: number; index: number }> )` | 点击确认按钮时触发
-pick | `(value: Array, label: string, column: number, index: number)` | 任何一列选中都会触发,不同的列参数不同。`column` 表示第几列变化,`index` 表示变化那一列的选中项下标
-
-### PickerItem Props
-
-名称 | 类型 | 默认值 | 说明 | 必传
--- | -- | -- | -- | --
-format | Function | - | 格式化标签。TS 类型:`(option: PickerItemOption) => string` | N
-options | Array | [] | 数据源。TS 类型:`PickerItemOption[]` `interface PickerItemOption { label: string; value: string \| number }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker-item/type.ts) | N
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/picker.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/picker.d.ts
deleted file mode 100644
index 46e9110..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/picker.d.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-import { SuperComponent, RelationsOptions } from '../common/src/index';
-export default class Picker extends SuperComponent {
- properties: import("./type").TdPickerProps;
- externalClasses: string[];
- options: {
- multipleSlots: boolean;
- };
- relations: RelationsOptions;
- observers: {
- value(): void;
- };
- data: {
- prefix: string;
- classPrefix: string;
- };
- methods: {
- updateChildren(): void;
- getSelectedValue(): any[];
- getColumnIndexes(): any;
- onConfirm(): void;
- triggerColumnChange({ column, index }: {
- column: any;
- index: any;
- }): void;
- onCancel(): void;
- onPopupChange(e: any): void;
- close(): void;
- };
- ready(): void;
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/picker.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/picker.js
deleted file mode 100644
index 2ec1a72..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/picker.js
+++ /dev/null
@@ -1,96 +0,0 @@
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
-import { SuperComponent, wxComponent } from '../common/src/index';
-import config from '../common/config';
-import props from './props';
-const { prefix } = config;
-const name = `${prefix}-picker`;
-let Picker = class Picker extends SuperComponent {
- constructor() {
- super(...arguments);
- this.properties = props;
- this.externalClasses = [`${prefix}-class`, `${prefix}-class-confirm`, `${prefix}-class-cancel`, `${prefix}-class-title`];
- this.options = {
- multipleSlots: true,
- };
- this.relations = {
- '../picker-item/picker-item': {
- type: 'child',
- linked() {
- this.updateChildren();
- },
- },
- };
- this.observers = {
- value() {
- this.updateChildren();
- },
- };
- this.data = {
- prefix,
- classPrefix: name,
- };
- this.methods = {
- updateChildren() {
- const { value } = this.properties;
- this.$children.forEach((child, index) => {
- child.setData({
- value: (value === null || value === void 0 ? void 0 : value[index]) || '',
- siblingCount: this.$children.length,
- });
- child.update();
- });
- },
- getSelectedValue() {
- const value = this.$children.map((item) => item._selectedValue);
- const label = this.$children.map((item) => item._selectedLabel);
- return [value, label];
- },
- getColumnIndexes() {
- const columns = this.$children.map((pickerColumn, columnIndex) => {
- return {
- column: columnIndex,
- index: pickerColumn._selectedIndex,
- };
- });
- return columns;
- },
- onConfirm() {
- const [value, label] = this.getSelectedValue();
- const columns = this.getColumnIndexes();
- this.close();
- this.triggerEvent('change', { value, label, columns });
- this.triggerEvent('confirm', { value, label, columns });
- },
- triggerColumnChange({ column, index }) {
- const [value, label] = this.getSelectedValue();
- this.triggerEvent('pick', { value, label, column, index });
- },
- onCancel() {
- this.close();
- this.triggerEvent('cancel');
- },
- onPopupChange(e) {
- const { visible } = e.detail;
- this.close();
- this.triggerEvent('visible-change', { visible });
- },
- close() {
- if (this.data.autoClose) {
- this.setData({ visible: false });
- }
- },
- };
- }
- ready() {
- this.$children.map((column, index) => (column.columnIndex = index));
- }
-};
-Picker = __decorate([
- wxComponent()
-], Picker);
-export default Picker;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/picker.json b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/picker.json
deleted file mode 100644
index b93d975..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/picker.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "t-popup": "../popup/popup"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/picker.wxml b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/picker.wxml
deleted file mode 100644
index d29d023..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/picker.wxml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
- {{cancelBtn}}
- {{title}}
- {{confirmBtn}}
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/picker.wxss b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/picker.wxss
deleted file mode 100644
index ee8d9b2..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/picker.wxss
+++ /dev/null
@@ -1,106 +0,0 @@
-.t-float-left {
- float: left;
-}
-.t-float-right {
- float: right;
-}
-@keyframes tdesign-fade-out {
- from {
- opacity: 1;
- }
- to {
- opacity: 0;
- }
-}
-.hotspot-expanded.relative {
- position: relative;
-}
-.hotspot-expanded::after {
- content: '';
- display: block;
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transform: scale(1.5);
-}
-.t-picker {
- position: relative;
- background-color: var(--td-picker-bg-color, var(--td-bg-color-block, #fff));
- padding-bottom: constant(safe-area-inset-bottom);
- padding-bottom: env(safe-area-inset-bottom);
- border-top-left-radius: var(--td-picker-border-radius, 24rpx);
- border-top-right-radius: var(--td-picker-border-radius, 24rpx);
- overflow: hidden;
-}
-.t-picker__toolbar {
- display: flex;
- align-items: center;
- justify-content: space-between;
- overflow: hidden;
- height: var(--td-picker-toolbar-height, 116rpx);
-}
-.t-picker__title {
- padding: 0 30rpx;
- flex: 1;
- text-align: left;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- color: var(--td-picker-title-color, var(--td-font-gray-1, rgba(0, 0, 0, 0.9)));
- line-height: var(--td-picker-title-line-height, 52rpx);
- font-size: var(--td-picker-title-font-size, 36rpx);
-}
-.t-picker__cancel,
-.t-picker__confirm {
- display: flex;
- align-items: center;
- justify-content: center;
- user-select: none;
- font-size: var(--td-picker-button-font-size, 32rpx);
- height: 100%;
- padding: 0 32rpx;
-}
-.t-picker__cancel {
- color: var(--td-picker-cancel-color, var(--td-font-gray-2, rgba(0, 0, 0, 0.6)));
-}
-.t-picker__confirm {
- color: var(--td-picker-confirm-color, var(--td-primary-color, #0052d9));
-}
-.t-picker__main {
- position: relative;
- display: flex;
- justify-content: center;
- padding-left: 64rpx;
- padding-right: 64rpx;
- font-size: 34rpx;
-}
-.t-picker__mask {
- position: absolute;
- left: 0;
- right: 0;
- z-index: 3;
- backface-visibility: hidden;
- pointer-events: none;
- height: 96rpx;
-}
-.t-picker__mask--top {
- top: 0;
- background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
-}
-.t-picker__mask--bottom {
- bottom: 0;
- background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
- transform: matrix(1, 0, 0, -1, 0, 0);
-}
-.t-picker__indicator {
- height: var(--td-picker-item-height, 80rpx);
- position: absolute;
- left: 32rpx;
- right: 32rpx;
- top: 144rpx;
- pointer-events: none;
- background-color: var(--td-picker-indicator-bg-color, var(--td-gray-color-1, #f3f3f3));
- border-radius: var(--td-picker-indicator-border-radius, 12rpx);
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/props.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/props.d.ts
deleted file mode 100644
index d673411..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/props.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { TdPickerProps } from './type';
-declare const props: TdPickerProps;
-export default props;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/props.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/props.js
deleted file mode 100644
index 322e00c..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/props.js
+++ /dev/null
@@ -1,41 +0,0 @@
-const props = {
- autoClose: {
- type: Boolean,
- value: true,
- },
- cancelBtn: {
- type: null,
- value: true,
- },
- columns: {
- type: null,
- value: [],
- },
- confirmBtn: {
- type: null,
- value: true,
- },
- header: {
- type: Boolean,
- value: true,
- },
- renderLabel: {
- type: null,
- },
- title: {
- type: String,
- value: '',
- },
- value: {
- type: Array,
- value: null,
- },
- defaultValue: {
- type: Array,
- },
- visible: {
- type: Boolean,
- value: false,
- },
-};
-export default props;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/type.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/type.d.ts
deleted file mode 100644
index 1243a7d..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/type.d.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-import { ButtonProps } from '../button/index';
-export interface TdPickerProps {
- autoClose?: {
- type: BooleanConstructor;
- value?: boolean;
- };
- cancelBtn?: {
- type: null;
- value?: boolean | string | ButtonProps;
- };
- columns: {
- type: ArrayConstructor;
- value?: Array | ((item: Array) => Array);
- };
- confirmBtn?: {
- type: null;
- value?: boolean | string | ButtonProps;
- };
- style?: {
- type: StringConstructor;
- value?: string;
- };
- header?: {
- type: BooleanConstructor;
- value?: boolean;
- };
- renderLabel?: {
- type: StringConstructor;
- value?: (item: PickerColumnItem) => string;
- };
- title?: {
- type: StringConstructor;
- value?: string;
- };
- value?: {
- type: ArrayConstructor;
- value?: Array;
- };
- defaultValue?: {
- type: ArrayConstructor;
- value?: Array;
- };
- visible?: {
- type: BooleanConstructor;
- value?: boolean;
- };
-}
-export declare type PickerColumn = PickerColumnItem[];
-export interface PickerColumnItem {
- label: string;
- value: string;
-}
-export declare type PickerValue = string | number;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/type.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/type.js
deleted file mode 100644
index cb0ff5c..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/picker/type.js
+++ /dev/null
@@ -1 +0,0 @@
-export {};
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/README.en-US.md b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/README.en-US.md
deleted file mode 100644
index 3aa395d..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/README.en-US.md
+++ /dev/null
@@ -1,25 +0,0 @@
-:: BASE_DOC ::
-
-## API
-### Popup Props
-
-name | type | default | description | required
--- | -- | -- | -- | --
-close-btn | Boolean / Slot | - | \- | N
-close-on-overlay-click | Boolean | true | \- | N
-content | String / Slot | - | \- | N
-duration | Number | 240 | \- | N
-external-classes | Array | - | `['t-class', 't-class-overlay', 't-class-content']` | N
-overlay-props | Object | {} | \- | N
-placement | String | top | options:top/left/right/bottom/center | N
-prevent-scroll-through | Boolean | true | \- | N
-show-overlay | Boolean | true | \- | N
-visible | Boolean | false | Typescript:`boolean` | N
-default-visible | Boolean | undefined | uncontrolled property。Typescript:`boolean` | N
-z-index | Number | 11500 | \- | N
-
-### Popup Events
-
-name | params | description
--- | -- | --
-visible-change | `(visible: boolean, trigger: PopupSource) ` | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/popup/type.ts)。
`type PopupSource = 'close-btn' \| 'overlay'`
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/README.md b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/README.md
deleted file mode 100644
index 620c7f7..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/README.md
+++ /dev/null
@@ -1,57 +0,0 @@
----
-title: Popup 弹出层
-description: 由其他控件触发,屏幕滑出或弹出一块自定义内容区域。
-spline: message
-isComponent: true
----
-
-


-## 引入
-
-全局引入,在 miniprogram 根目录下的`app.json`中配置,局部引入,在需要引入的页面或组件的`index.json`中配置。
-
-```json
-"usingComponents": {
- "t-popup": "tdesign-miniprogram/popup/popup"
-}
-```
-
-## 代码演示
-
-### 组件类型
-
-基础弹出层
-
-{{ base }}
-
-### 组件示例
-
-应用示例
-
-{{ with-title }}
-
-{{ custom-close }}
-
-## API
-### Popup Props
-
-名称 | 类型 | 默认值 | 说明 | 必传
--- | -- | -- | -- | --
-close-btn | Boolean / Slot | - | 关闭按钮,值类型为 Boolean 时表示是否显示关闭按钮。也可以自定义关闭按钮 | N
-close-on-overlay-click | Boolean | true | 点击遮罩层是否关闭 | N
-content | String / Slot | - | 浮层里面的内容 | N
-duration | Number | 240 | 动画过渡时间 | N
-external-classes | Array | - | 组件类名,分别用于设置 组件外层元素、遮罩层、浮层内容 等元素类名。`['t-class', 't-class-overlay', 't-class-content']` | N
-overlay-props | Object | {} | 遮罩层的属性,透传至 overlay | N
-placement | String | top | 浮层出现位置。可选项:top/left/right/bottom/center | N
-prevent-scroll-through | Boolean | true | 防止滚动穿透 | N
-show-overlay | Boolean | true | 是否显示遮罩层 | N
-visible | Boolean | false | 是否显示浮层。TS 类型:`boolean` | N
-default-visible | Boolean | undefined | 是否显示浮层。非受控属性。TS 类型:`boolean` | N
-z-index | Number | 11500 | 组件层级,Web 侧样式默认为 5500,移动端样式默认为 1500,小程序样式默认为11500 | N
-
-### Popup Events
-
-名称 | 参数 | 描述
--- | -- | --
-visible-change | `(visible: boolean, trigger: PopupSource) ` | 当浮层隐藏或显示时触发。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/popup/type.ts)。
`type PopupSource = 'close-btn' \| 'overlay'`
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.d.ts
deleted file mode 100644
index 543d354..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.d.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import { TdPopupProps } from './type';
-import { SuperComponent } from '../common/src/index';
-export declare type PopupProps = TdPopupProps;
-export default class Popup extends SuperComponent {
- externalClasses: string[];
- behaviors: string[];
- options: {
- multipleSlots: boolean;
- };
- properties: TdPopupProps;
- data: {
- prefix: string;
- classPrefix: string;
- };
- methods: {
- onStopPropagation(): void;
- handleOverlayClick(): void;
- handleClose(): void;
- };
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.js
deleted file mode 100644
index 04bb477..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.js
+++ /dev/null
@@ -1,44 +0,0 @@
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
-import { SuperComponent, wxComponent } from '../common/src/index';
-import config from '../common/config';
-import props from './props';
-import transition from '../mixins/transition';
-delete props.visible;
-const { prefix } = config;
-const name = `${prefix}-popup`;
-let Popup = class Popup extends SuperComponent {
- constructor() {
- super(...arguments);
- this.externalClasses = ['class', `${prefix}-class`, `${prefix}-class-content`];
- this.behaviors = [transition()];
- this.options = {
- multipleSlots: true,
- };
- this.properties = props;
- this.data = {
- prefix,
- classPrefix: name,
- };
- this.methods = {
- onStopPropagation() { },
- handleOverlayClick() {
- const { closeOnOverlayClick } = this.properties;
- if (closeOnOverlayClick) {
- this.triggerEvent('visible-change', { visible: false });
- }
- },
- handleClose() {
- this.triggerEvent('visible-change', { visible: false });
- },
- };
- }
-};
-Popup = __decorate([
- wxComponent()
-], Popup);
-export default Popup;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.json b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.json
deleted file mode 100644
index 870a7b6..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "t-overlay": "../overlay/overlay",
- "t-icon": "../icon/icon"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.wxml b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.wxml
deleted file mode 100644
index d58d806..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.wxml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.wxs b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.wxs
deleted file mode 100644
index a2da0d0..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.wxs
+++ /dev/null
@@ -1,8 +0,0 @@
-function getPopupStyles(zIndex) {
- var zIndexStyle = zIndex ? 'z-index:' + zIndex + ';' : '';
- return zIndexStyle;
-}
-
-module.exports = {
- getPopupStyles: getPopupStyles,
-};
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.wxss b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.wxss
deleted file mode 100644
index 237cc2b..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/popup.wxss
+++ /dev/null
@@ -1,96 +0,0 @@
-.t-float-left {
- float: left;
-}
-.t-float-right {
- float: right;
-}
-@keyframes tdesign-fade-out {
- from {
- opacity: 1;
- }
- to {
- opacity: 0;
- }
-}
-.hotspot-expanded.relative {
- position: relative;
-}
-.hotspot-expanded::after {
- content: '';
- display: block;
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transform: scale(1.5);
-}
-.t-popup {
- position: fixed;
- z-index: 11500;
- max-height: 100vh;
- transition: all 300ms ease;
-}
-.t-popup__content {
- position: relative;
- z-index: 1;
-}
-.t-popup__close {
- position: absolute;
- top: 0;
- right: 0;
- padding: 20rpx;
- line-height: 1;
-}
-.t-popup--top {
- top: 0;
- left: 0;
- width: 100%;
-}
-.t-popup--bottom {
- bottom: 0;
- left: 0;
- width: 100vw;
-}
-.t-popup--left {
- top: 0;
- left: 0;
- height: 100vh;
-}
-.t-popup--right {
- top: 0;
- right: 0;
- height: 100vh;
-}
-.t-popup--center {
- top: 50%;
- left: 50%;
- transform: scale(1) translate3d(-50%, -50%, 0);
- transform-origin: 0% 0%;
-}
-.t-popup.t-fade-enter.t-popup--top,
-.t-popup.t-fade-leave-to.t-popup--top {
- transform: translateY(-100%);
-}
-.t-popup.t-fade-enter.t-popup--bottom,
-.t-popup.t-fade-leave-to.t-popup--bottom {
- transform: translateY(100%);
-}
-.t-popup.t-fade-enter.t-popup--left,
-.t-popup.t-fade-leave-to.t-popup--left {
- transform: translateX(-100%);
-}
-.t-popup.t-fade-enter.t-popup--right,
-.t-popup.t-fade-leave-to.t-popup--right {
- transform: translateX(100%);
-}
-.t-popup.t-fade-enter.t-popup--center,
-.t-popup.t-fade-leave-to.t-popup--center {
- transform: scale(0.6) translate3d(-50%, -50%, 0);
- opacity: 0;
-}
-.t-popup.t-dialog-enter.t-popup--center,
-.t-popup.t-dialog-leave-to.t-popup--center {
- transform: scale(0.6) translate3d(-50%, -50%, 0);
- opacity: 0;
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/props.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/props.d.ts
deleted file mode 100644
index e23cd6c..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/props.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { TdPopupProps } from './type';
-declare const props: TdPopupProps;
-export default props;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/props.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/props.js
deleted file mode 100644
index dd31f2c..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/props.js
+++ /dev/null
@@ -1,51 +0,0 @@
-const props = {
- closeBtn: {
- type: Boolean,
- },
- closeOnOverlayClick: {
- type: Boolean,
- value: true,
- },
- content: {
- type: String,
- },
- duration: {
- type: Number,
- value: 240,
- },
- externalClasses: {
- type: Array,
- },
- overlayProps: {
- type: Object,
- value: {},
- },
- placement: {
- type: String,
- value: 'top',
- },
- preventScrollThrough: {
- type: Boolean,
- value: true,
- },
- showOverlay: {
- type: Boolean,
- value: true,
- },
- transitionProps: {
- type: Object,
- },
- visible: {
- type: Boolean,
- value: null,
- },
- defaultVisible: {
- type: Boolean,
- value: false,
- },
- zIndex: {
- type: Number,
- value: 11500,
- },
-};
-export default props;
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/type.d.ts b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/type.d.ts
deleted file mode 100644
index fa09661..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/type.d.ts
+++ /dev/null
@@ -1,62 +0,0 @@
-import { TdTransitionProps } from '../transition/index';
-export interface TdPopupProps {
- closeBtn?: {
- type: BooleanConstructor;
- value?: boolean;
- };
- closeOnOverlayClick?: {
- type: BooleanConstructor;
- value?: boolean;
- };
- content?: {
- type: StringConstructor;
- value?: string;
- };
- style?: {
- type: StringConstructor;
- value?: string;
- };
- duration?: {
- type: NumberConstructor;
- value?: number;
- };
- externalClasses?: {
- type: ArrayConstructor;
- value?: ['t-class', 't-class-overlay', 't-class-content'];
- };
- overlayProps?: {
- type: ObjectConstructor;
- value?: object;
- };
- placement?: {
- type: StringConstructor;
- value?: 'top' | 'left' | 'right' | 'bottom' | 'center';
- };
- preventScrollThrough?: {
- type: BooleanConstructor;
- value?: boolean;
- };
- showOverlay?: {
- type: BooleanConstructor;
- value?: boolean;
- };
- transitionProps?: {
- type: ObjectConstructor;
- value?: TdTransitionProps;
- };
- visible?: {
- type: BooleanConstructor;
- value?: boolean;
- };
- defaultVisible?: {
- type: BooleanConstructor;
- value?: boolean;
- };
- zIndex?: {
- type: NumberConstructor;
- value?: number;
- };
-}
-export interface PopupVisibleChangeContext {
- trigger: 'close-btn' | 'overlay';
-}
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/type.js b/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/type.js
deleted file mode 100644
index cb0ff5c..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/miniprogram_dist/popup/type.js
+++ /dev/null
@@ -1 +0,0 @@
-export {};
diff --git a/src/openeuler/miniprogram_npm/tdesign-miniprogram/package.json b/src/openeuler/miniprogram_npm/tdesign-miniprogram/package.json
deleted file mode 100644
index a8ed1c9..0000000
--- a/src/openeuler/miniprogram_npm/tdesign-miniprogram/package.json
+++ /dev/null
@@ -1,127 +0,0 @@
-{
- "name": "tdesign-miniprogram",
- "purename": "tdesign",
- "version": "1.0.0-rc.2",
- "description": "tdesign-miniprogram",
- "title": "tdesign-miniprogram",
- "main": "miniprogram_dist/index.js",
- "miniprogram": "miniprogram_dist",
- "keywords": [
- "tdesign",
- "miniprogram"
- ],
- "repository": {
- "type": "git",
- "url": "https://github.com/Tencent/tdesign-miniprogram"
- },
- "homepage": "https://tdesign.tencent.com/miniprogram",
- "scripts": {
- "start": "npm run dev",
- "dev": "cross-env NODE_ENV=development gulp dev --gulpfile script/gulpfile.js --cwd ./",
- "build": "cross-env NODE_ENV=production gulp build --gulpfile script/gulpfile.js --cwd ./",
- "build:dist": "gulp --gulpfile script/gulpfile.dist.js --cwd ./",
- "build:example": "gulp --gulpfile script/gulpfile.example.js --cwd ./",
- "build:assets": "cross-env NODE_ENV=production gulp assets:build --gulpfile script/gulpfile.dist.js --cwd ./",
- "update:icons": "node script/update-icons.js",
- "lintfix": "eslint '{src,example}/**/*.{js,ts}' --fix",
- "lint": "eslint '{src,example}/**/*.{js,ts}'",
- "format": "prettier {src,example,script}/**/*.{js,ts,wxss,less,wxml,html,json,md,wxs} --write",
- "site": "cd site && vite build",
- "site:dev": "cd site && vite",
- "site:intranet": "cd site && vite build --mode intranet",
- "site:prerender": "node script/prerender.mjs",
- "cover": "jest --coverage",
- "test": "jest && jest -c jest.virtualHost.config.js && jest -c jest.e2e.config.js",
- "test:virtualHost": "jest -c jest.virtualHost.config.js",
- "test:demo": "node gen-demo-test.js",
- "test:unit": "jest",
- "test:e2e": "jest -c jest.e2e.config.js",
- "badge": "node script/coverage-badge.js",
- "prepare": "husky install",
- "generate": "gulp generate --gulpfile script/gulpfile.js --cwd ./",
- "changelog": "node script/generate-changelog.js",
- "robot": "publish-cli robot-msg",
- "qrcode": "node script/qrcode/index.js"
- },
- "author": "tdesign",
- "license": "MIT",
- "devDependencies": {
- "@babel/core": "^7.12.10",
- "@babel/plugin-proposal-decorators": "^7.18.9",
- "@babel/preset-env": "^7.12.11",
- "@babel/preset-typescript": "^7.12.7",
- "@commitlint/cli": "^16.0.2",
- "@commitlint/config-conventional": "^16.0.0",
- "@rollup/plugin-node-resolve": "^13.0.5",
- "@types/jest": "^27.0.3",
- "@typescript-eslint/eslint-plugin": "^5.6.0",
- "@typescript-eslint/parser": "~5.35.0",
- "@vitejs/plugin-vue": "^2.3.3",
- "@vitejs/plugin-vue-jsx": "^1.1.7",
- "@vue/compiler-sfc": "^3.2.4",
- "axios": "^1.1.3",
- "babel-jest": "^26.6.3",
- "commitizen": "^4.2.4",
- "cross-env": "^7.0.2",
- "cz-conventional-changelog": "^3.3.0",
- "del": "^6.1.1",
- "eslint": "^7.0.0",
- "eslint-config-airbnb-base": "^14.2.1",
- "eslint-config-prettier": "^6.11.0",
- "eslint-plugin-import": "^2.24.2",
- "eslint-plugin-prettier": "^4.0.0",
- "glob": "^8.1.0",
- "gray-matter": "^4.0.3",
- "gulp": "^4.0.2",
- "gulp-changed": "^4.0.2",
- "gulp-if": "^3.0.0",
- "gulp-less": "^5.0.0",
- "gulp-mp-npm": "^1.9.7",
- "gulp-plumber": "^1.2.1",
- "gulp-rename": "^2.0.0",
- "gulp-replace": "^1.0.0",
- "gulp-replace-task": "^2.0.1",
- "gulp-sourcemaps": "^3.0.0",
- "gulp-typescript": "^6.0.0-alpha.1",
- "husky": "^7.0.4",
- "jest": "^26.6.3",
- "jest-html-reporter": "^3.3.0",
- "jsdom": "^20.0.0",
- "less": "^4.1.1",
- "lint-staged": "^10.0.0-1",
- "lodash": "^4.17.21",
- "miniprogram-api-typings": "^3.4.6",
- "miniprogram-automator": "^0.10.0",
- "miniprogram-simulate": "^1.5.7",
- "npm-run-all": "^4.1.5",
- "playwright": "^1.19.1",
- "prettier": "^2.0.5",
- "prismjs": "^1.24.1",
- "standard-changelog": "^2.0.27",
- "stylelint": "^13.13.1",
- "tdesign-icons-view": "^0.1.0",
- "tdesign-publish-cli": "^0.0.12",
- "tdesign-site-components": "^0.11.1",
- "typescript": "~4.7.2",
- "vite": "^2.7.6",
- "vite-plugin-tdoc": "^2.0.1",
- "vue": "^3.2.4",
- "vue-router": "^4.0.11"
- },
- "config": {
- "commitizen": {
- "path": "./node_modules/cz-conventional-changelog"
- }
- },
- "lint-staged": {
- "{src,example,script}/**/*.{js,ts,wxml,html,json,less}": [
- "prettier --write"
- ],
- "{src,example}/**/*.{js,ts}": [
- "eslint --fix"
- ]
- },
- "dependencies": {
- "dayjs": "^1.10.7"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/widget-ui/index.js b/src/openeuler/miniprogram_npm/widget-ui/index.js
index 307f211..0959773 100644
--- a/src/openeuler/miniprogram_npm/widget-ui/index.js
+++ b/src/openeuler/miniprogram_npm/widget-ui/index.js
@@ -1,12 +1,13 @@
-module.exports = (function() {
-var __MODS__ = {};
-var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexports: {} }; __MODS__[modId] = { status: 0, func: func, req: req, m: m }; };
-var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
-var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
-var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
-__DEFINE__(1617789047372, function(require, module, exports) {
-!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var r in o)("object"==typeof exports?exports:t)[r]=o[r]}}(this,(function(){return function(t){var e={};function o(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=t,o.c=e,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(r,i,function(e){return t[e]}.bind(null,i));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=0)}([function(t,e,o){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(o(1)),l=o(2),n=0,a=function(){function t(e){var o=this;void 0===e&&(e={}),this.parent=null,this.id=t.uuid(),this.style={},this.computedStyle={},this.lastComputedStyle={},this.children={},this.layoutBox={left:0,top:0,width:0,height:0},e=Object.assign(l.getDefaultStyle(),e),this.computedStyle=Object.assign(l.getDefaultStyle(),e),this.lastComputedStyle=Object.assign(l.getDefaultStyle(),e),Object.keys(e).forEach((function(t){Object.defineProperty(o.style,t,{configurable:!0,enumerable:!0,get:function(){return e[t]},set:function(r){r!==e[t]&&void 0!==r&&(o.lastComputedStyle=o.computedStyle[t],e[t]=r,o.computedStyle[t]=r,l.scalableStyles.includes(t)&&o.style.scale&&(o.computedStyle[t]=r*o.style.scale),"scale"===t&&l.scalableStyles.forEach((function(t){e[t]&&(o.computedStyle[t]=e[t]*r)})),"hidden"===t&&(r?l.layoutAffectedStyles.forEach((function(t){o.computedStyle[t]=0})):l.layoutAffectedStyles.forEach((function(t){o.computedStyle[t]=o.lastComputedStyle[t]}))))}})})),this.style.scale&&l.scalableStyles.forEach((function(t){if(o.style[t]){var e=o.style[t]*o.style.scale;o.computedStyle[t]=e}})),e.hidden&&l.layoutAffectedStyles.forEach((function(t){o.computedStyle[t]=0}))}return t.uuid=function(){return n++},t.prototype.getAbsolutePosition=function(t){if(!t)return this.getAbsolutePosition(this);if(!t.parent)return{left:0,top:0};var e=this.getAbsolutePosition(t.parent),o=e.left,r=e.top;return{left:o+t.layoutBox.left,top:r+t.layoutBox.top}},t.prototype.add=function(t){t.parent=this,this.children[t.id]=t},t.prototype.remove=function(t){var e=this;t?this.children[t.id]&&(t.remove(),delete this.children[t.id]):Object.keys(this.children).forEach((function(t){e.children[t].remove(),delete e.children[t]}))},t.prototype.getNodeTree=function(){var t=this;return{id:this.id,style:this.computedStyle,children:Object.keys(this.children).map((function(e){return t.children[e].getNodeTree()}))}},t.prototype.applyLayout=function(t){var e=this;["left","top","width","height"].forEach((function(o){t.layout&&"number"==typeof t.layout[o]&&(e.layoutBox[o]=t.layout[o],!e.parent||"left"!==o&&"top"!==o||(e.layoutBox[o]+=e.parent.layoutBox[o]))})),t.children.forEach((function(t){e.children[t.id].applyLayout(t)}))},t.prototype.layout=function(){var t=this.getNodeTree();i.default(t),this.applyLayout(t)},t}();e.default=a},function(t,e,o){o.r(e);var r=function(){var t,e="inherit",o="ltr",r="rtl",i="row",l="row-reverse",n="column",a="column-reverse",u="flex-start",d="center",s="flex-end",y="space-between",c="space-around",f="flex-start",h="center",p="flex-end",g="stretch",v="relative",m="absolute",b={row:"left","row-reverse":"right",column:"top","column-reverse":"bottom"},x={row:"right","row-reverse":"left",column:"bottom","column-reverse":"top"},w={row:"left","row-reverse":"right",column:"top","column-reverse":"bottom"},S={row:"width","row-reverse":"width",column:"height","column-reverse":"height"};function W(t){return void 0===t}function L(t){return t===i||t===l}function k(t,e){if(void 0!==t.style.marginStart&&L(e))return t.style.marginStart;var o=null;switch(e){case"row":o=t.style.marginLeft;break;case"row-reverse":o=t.style.marginRight;break;case"column":o=t.style.marginTop;break;case"column-reverse":o=t.style.marginBottom}return void 0!==o?o:void 0!==t.style.margin?t.style.margin:0}function j(t,e){if(void 0!==t.style.marginEnd&&L(e))return t.style.marginEnd;var o=null;switch(e){case"row":o=t.style.marginRight;break;case"row-reverse":o=t.style.marginLeft;break;case"column":o=t.style.marginBottom;break;case"column-reverse":o=t.style.marginTop}return null!=o?o:void 0!==t.style.margin?t.style.margin:0}function B(t,e){if(void 0!==t.style.borderStartWidth&&t.style.borderStartWidth>=0&&L(e))return t.style.borderStartWidth;var o=null;switch(e){case"row":o=t.style.borderLeftWidth;break;case"row-reverse":o=t.style.borderRightWidth;break;case"column":o=t.style.borderTopWidth;break;case"column-reverse":o=t.style.borderBottomWidth}return null!=o&&o>=0?o:void 0!==t.style.borderWidth&&t.style.borderWidth>=0?t.style.borderWidth:0}function E(t,e){if(void 0!==t.style.borderEndWidth&&t.style.borderEndWidth>=0&&L(e))return t.style.borderEndWidth;var o=null;switch(e){case"row":o=t.style.borderRightWidth;break;case"row-reverse":o=t.style.borderLeftWidth;break;case"column":o=t.style.borderBottomWidth;break;case"column-reverse":o=t.style.borderTopWidth}return null!=o&&o>=0?o:void 0!==t.style.borderWidth&&t.style.borderWidth>=0?t.style.borderWidth:0}function C(t,e){return function(t,e){if(void 0!==t.style.paddingStart&&t.style.paddingStart>=0&&L(e))return t.style.paddingStart;var o=null;switch(e){case"row":o=t.style.paddingLeft;break;case"row-reverse":o=t.style.paddingRight;break;case"column":o=t.style.paddingTop;break;case"column-reverse":o=t.style.paddingBottom}return null!=o&&o>=0?o:void 0!==t.style.padding&&t.style.padding>=0?t.style.padding:0}(t,e)+B(t,e)}function T(t,e){return function(t,e){if(void 0!==t.style.paddingEnd&&t.style.paddingEnd>=0&&L(e))return t.style.paddingEnd;var o=null;switch(e){case"row":o=t.style.paddingRight;break;case"row-reverse":o=t.style.paddingLeft;break;case"column":o=t.style.paddingBottom;break;case"column-reverse":o=t.style.paddingTop}return null!=o&&o>=0?o:void 0!==t.style.padding&&t.style.padding>=0?t.style.padding:0}(t,e)+E(t,e)}function O(t,e){return B(t,e)+E(t,e)}function _(t,e){return k(t,e)+j(t,e)}function R(t,e){return C(t,e)+T(t,e)}function A(t,e){return e.style.alignSelf?e.style.alignSelf:t.style.alignItems?t.style.alignItems:"stretch"}function P(t,e){if(e===r){if(t===i)return l;if(t===l)return i}return t}function D(t,e){return function(t){return t===n||t===a}(t)?P(i,e):n}function H(t){return t.style.position?t.style.position:"relative"}function M(t){return H(t)===v&&t.style.flex>0}function I(t,e){return t.layout[S[e]]+_(t,e)}function N(t,e){return void 0!==t.style[S[e]]&&t.style[S[e]]>=0}function F(t,e){return void 0!==t.style[e]}function q(t,e){return void 0!==t.style[e]?t.style[e]:0}function z(t,e,o){var r={row:t.style.minWidth,"row-reverse":t.style.minWidth,column:t.style.minHeight,"column-reverse":t.style.minHeight}[e],i={row:t.style.maxWidth,"row-reverse":t.style.maxWidth,column:t.style.maxHeight,"column-reverse":t.style.maxHeight}[e],l=o;return void 0!==i&&i>=0&&l>i&&(l=i),void 0!==r&&r>=0&&le?t:e}function G(t,e){void 0===t.layout[S[e]]&&N(t,e)&&(t.layout[S[e]]=U(z(t,e,t.style[S[e]]),R(t,e)))}function J(t,e,o){e.layout[x[o]]=t.layout[S[o]]-e.layout[S[o]]-e.layout[w[o]]}function K(t,e){return void 0!==t.style[b[e]]?q(t,b[e]):-q(t,x[e])}function Q(r,E,Q){var X=function(t,r){var i;return(i=t.style.direction?t.style.direction:e)===e&&(i=void 0===r?o:r),i}(r,Q),Y=P(function(t){return t.style.flexDirection?t.style.flexDirection:n}(r),X),Z=D(Y,X),$=P(i,X);G(r,Y),G(r,Z),r.layout.direction=X,r.layout[b[Y]]+=k(r,Y)+K(r,Y),r.layout[x[Y]]+=j(r,Y)+K(r,Y),r.layout[b[Z]]+=k(r,Z)+K(r,Z),r.layout[x[Z]]+=j(r,Z)+K(r,Z);var tt=r.children.length,et=R(r,$);if(function(t){return void 0!==t.style.measure}(r)){var ot=!W(r.layout[S[$]]),rt=t;rt=N(r,$)?r.style.width:ot?r.layout[S[$]]:E-_(r,$),rt-=et;var it=!N(r,$)&&!ot,lt=!N(r,n)&&W(r.layout[S[n]]);if(it||lt){var nt=r.style.measure(rt);it&&(r.layout.width=nt.width+et),lt&&(r.layout.height=nt.height+R(r,n))}if(0===tt)return}var at,ut,dt,st,yt=function(t){return"wrap"===t.style.flexWrap}(r),ct=function(t){return t.style.justifyContent?t.style.justifyContent:"flex-start"}(r),ft=C(r,Y),ht=C(r,Z),pt=R(r,Y),gt=R(r,Z),vt=!W(r.layout[S[Y]]),mt=!W(r.layout[S[Z]]),bt=L(Y),xt=null,wt=null,St=t;vt&&(St=r.layout[S[Y]]-pt);for(var Wt=0,Lt=0,kt=0,jt=0,Bt=0,Et=0;LtSt&&at!==Wt){Rt--,kt=1;break}At&&(H(dt)!==v||M(dt))&&(At=!1,Pt=at),Dt&&(H(dt)!==v||Xt!==g&&Xt!==f||W(dt.layout[S[Z]]))&&(Dt=!1,Ht=at),At&&(dt.layout[w[Y]]+=Nt,vt&&J(r,dt,Y),Nt+=I(dt,Y),Ft=U(Ft,z(dt,Z,I(dt,Z)))),Dt&&(dt.layout[w[Z]]+=jt+ht,mt&&J(r,dt,Z)),kt=0,Tt+=qt,Lt=at+1}var zt=0,Ut=0,Gt=0;if(Gt=vt?St-Tt:U(Tt,0)-Tt,0!==Ot){var Jt,Kt,Qt=Gt/_t;for(It=Mt;null!==It;)(Jt=Qt*It.style.flex+R(It,Y))!==(Kt=z(It,Y,Jt))&&(Gt-=Kt,_t-=It.style.flex),It=It.nextFlexChild;for((Qt=Gt/_t)<0&&(Qt=0),It=Mt;null!==It;)It.layout[S[Y]]=z(It,Y,Qt*It.style.flex+R(It,Y)),Ct=t,N(r,$)?Ct=r.layout[S[$]]-et:bt||(Ct=E-_(r,$)-et),V(It,Ct,X),dt=It,It=It.nextFlexChild,dt.nextFlexChild=null}else ct!==u&&(ct===d?zt=Gt/2:ct===s?zt=Gt:ct===y?(Gt=U(Gt,0),Ut=Ot+Rt-1!=0?Gt/(Ot+Rt-1):0):ct===c&&(zt=(Ut=Gt/(Ot+Rt))/2));for(Nt+=zt,at=Pt;at1&&mt){var $t=r.layout[S[Z]]-gt,te=$t-jt,ee=0,oe=ht,re=function(t){return t.style.alignContent?t.style.alignContent:"flex-start"}(r);re===p?oe+=te:re===h?oe+=te/2:re===g&&$t>jt&&(ee=te/Et);var ie=0;for(at=0;at=0&&L(e))return t.style.borderStartWidth;var o=null;switch(e){case"row":o=t.style.borderLeftWidth;break;case"row-reverse":o=t.style.borderRightWidth;break;case"column":o=t.style.borderTopWidth;break;case"column-reverse":o=t.style.borderBottomWidth}return null!=o&&o>=0?o:void 0!==t.style.borderWidth&&t.style.borderWidth>=0?t.style.borderWidth:0}function E(t,e){if(void 0!==t.style.borderEndWidth&&t.style.borderEndWidth>=0&&L(e))return t.style.borderEndWidth;var o=null;switch(e){case"row":o=t.style.borderRightWidth;break;case"row-reverse":o=t.style.borderLeftWidth;break;case"column":o=t.style.borderBottomWidth;break;case"column-reverse":o=t.style.borderTopWidth}return null!=o&&o>=0?o:void 0!==t.style.borderWidth&&t.style.borderWidth>=0?t.style.borderWidth:0}function C(t,e){return function(t,e){if(void 0!==t.style.paddingStart&&t.style.paddingStart>=0&&L(e))return t.style.paddingStart;var o=null;switch(e){case"row":o=t.style.paddingLeft;break;case"row-reverse":o=t.style.paddingRight;break;case"column":o=t.style.paddingTop;break;case"column-reverse":o=t.style.paddingBottom}return null!=o&&o>=0?o:void 0!==t.style.padding&&t.style.padding>=0?t.style.padding:0}(t,e)+B(t,e)}function T(t,e){return function(t,e){if(void 0!==t.style.paddingEnd&&t.style.paddingEnd>=0&&L(e))return t.style.paddingEnd;var o=null;switch(e){case"row":o=t.style.paddingRight;break;case"row-reverse":o=t.style.paddingLeft;break;case"column":o=t.style.paddingBottom;break;case"column-reverse":o=t.style.paddingTop}return null!=o&&o>=0?o:void 0!==t.style.padding&&t.style.padding>=0?t.style.padding:0}(t,e)+E(t,e)}function O(t,e){return B(t,e)+E(t,e)}function _(t,e){return k(t,e)+j(t,e)}function R(t,e){return C(t,e)+T(t,e)}function A(t,e){return e.style.alignSelf?e.style.alignSelf:t.style.alignItems?t.style.alignItems:"stretch"}function P(t,e){if(e===r){if(t===i)return l;if(t===l)return i}return t}function D(t,e){return function(t){return t===n||t===a}(t)?P(i,e):n}function H(t){return t.style.position?t.style.position:"relative"}function M(t){return H(t)===v&&t.style.flex>0}function I(t,e){return t.layout[S[e]]+_(t,e)}function N(t,e){return void 0!==t.style[S[e]]&&t.style[S[e]]>=0}function F(t,e){return void 0!==t.style[e]}function q(t,e){return void 0!==t.style[e]?t.style[e]:0}function z(t,e,o){var r={row:t.style.minWidth,"row-reverse":t.style.minWidth,column:t.style.minHeight,"column-reverse":t.style.minHeight}[e],i={row:t.style.maxWidth,"row-reverse":t.style.maxWidth,column:t.style.maxHeight,"column-reverse":t.style.maxHeight}[e],l=o;return void 0!==i&&i>=0&&l>i&&(l=i),void 0!==r&&r>=0&&le?t:e}function G(t,e){void 0===t.layout[S[e]]&&N(t,e)&&(t.layout[S[e]]=U(z(t,e,t.style[S[e]]),R(t,e)))}function J(t,e,o){e.layout[x[o]]=t.layout[S[o]]-e.layout[S[o]]-e.layout[w[o]]}function K(t,e){return void 0!==t.style[b[e]]?q(t,b[e]):-q(t,x[e])}function Q(r,E,Q){var X=function(t,r){var i;return(i=t.style.direction?t.style.direction:e)===e&&(i=void 0===r?o:r),i}(r,Q),Y=P(function(t){return t.style.flexDirection?t.style.flexDirection:n}(r),X),Z=D(Y,X),$=P(i,X);G(r,Y),G(r,Z),r.layout.direction=X,r.layout[b[Y]]+=k(r,Y)+K(r,Y),r.layout[x[Y]]+=j(r,Y)+K(r,Y),r.layout[b[Z]]+=k(r,Z)+K(r,Z),r.layout[x[Z]]+=j(r,Z)+K(r,Z);var tt=r.children.length,et=R(r,$);if(function(t){return void 0!==t.style.measure}(r)){var ot=!W(r.layout[S[$]]),rt=t;rt=N(r,$)?r.style.width:ot?r.layout[S[$]]:E-_(r,$),rt-=et;var it=!N(r,$)&&!ot,lt=!N(r,n)&&W(r.layout[S[n]]);if(it||lt){var nt=r.style.measure(rt);it&&(r.layout.width=nt.width+et),lt&&(r.layout.height=nt.height+R(r,n))}if(0===tt)return}var at,ut,dt,st,yt=function(t){return"wrap"===t.style.flexWrap}(r),ct=function(t){return t.style.justifyContent?t.style.justifyContent:"flex-start"}(r),ft=C(r,Y),ht=C(r,Z),pt=R(r,Y),gt=R(r,Z),vt=!W(r.layout[S[Y]]),mt=!W(r.layout[S[Z]]),bt=L(Y),xt=null,wt=null,St=t;vt&&(St=r.layout[S[Y]]-pt);for(var Wt=0,Lt=0,kt=0,jt=0,Bt=0,Et=0;LtSt&&at!==Wt){Rt--,kt=1;break}At&&(H(dt)!==v||M(dt))&&(At=!1,Pt=at),Dt&&(H(dt)!==v||Xt!==g&&Xt!==f||W(dt.layout[S[Z]]))&&(Dt=!1,Ht=at),At&&(dt.layout[w[Y]]+=Nt,vt&&J(r,dt,Y),Nt+=I(dt,Y),Ft=U(Ft,z(dt,Z,I(dt,Z)))),Dt&&(dt.layout[w[Z]]+=jt+ht,mt&&J(r,dt,Z)),kt=0,Tt+=qt,Lt=at+1}var zt=0,Ut=0,Gt=0;if(Gt=vt?St-Tt:U(Tt,0)-Tt,0!==Ot){var Jt,Kt,Qt=Gt/_t;for(It=Mt;null!==It;)(Jt=Qt*It.style.flex+R(It,Y))!==(Kt=z(It,Y,Jt))&&(Gt-=Kt,_t-=It.style.flex),It=It.nextFlexChild;for((Qt=Gt/_t)<0&&(Qt=0),It=Mt;null!==It;)It.layout[S[Y]]=z(It,Y,Qt*It.style.flex+R(It,Y)),Ct=t,N(r,$)?Ct=r.layout[S[$]]-et:bt||(Ct=E-_(r,$)-et),V(It,Ct,X),dt=It,It=It.nextFlexChild,dt.nextFlexChild=null}else ct!==u&&(ct===d?zt=Gt/2:ct===s?zt=Gt:ct===y?(Gt=U(Gt,0),Ut=Ot+Rt-1!=0?Gt/(Ot+Rt-1):0):ct===c&&(zt=(Ut=Gt/(Ot+Rt))/2));for(Nt+=zt,at=Pt;at1&&mt){var $t=r.layout[S[Z]]-gt,te=$t-jt,ee=0,oe=ht,re=function(t){return t.style.alignContent?t.style.alignContent:"flex-start"}(r);re===p?oe+=te:re===h?oe+=te/2:re===g&&$t>jt&&(ee=te/Et);var ie=0;for(at=0;at {
- let result = null
-
- if (/^#/.test(color) && (color.length === 7 || color.length === 9)) {
- return color
- // eslint-disable-next-line no-cond-assign
- } else if ((result = /^(rgb|rgba)\((.+)\)/.exec(color)) !== null) {
- return '#' + result[2].split(',').map((part, index) => {
- part = part.trim()
- part = index === 3 ? Math.floor(parseFloat(part) * 255) : parseInt(part, 10)
- part = part.toString(16)
- if (part.length === 1) {
- part = '0' + part
- }
- return part
- }).join('')
- } else {
- return '#00000000'
- }
-}
-
-const splitLineToCamelCase = (str) => str.split('-').map((part, index) => {
- if (index === 0) {
- return part
- }
- return part[0].toUpperCase() + part.slice(1)
-}).join('')
-
-const compareVersion = (v1, v2) => {
- v1 = v1.split('.')
- v2 = v2.split('.')
- const len = Math.max(v1.length, v2.length)
- while (v1.length < len) {
- v1.push('0')
- }
- while (v2.length < len) {
- v2.push('0')
- }
- for (let i = 0; i < len; i++) {
- const num1 = parseInt(v1[i], 10)
- const num2 = parseInt(v2[i], 10)
-
- if (num1 > num2) {
- return 1
- } else if (num1 < num2) {
- return -1
- }
- }
-
- return 0
-}
-
-module.exports = {
- hex,
- splitLineToCamelCase,
- compareVersion
-}
-
-
-/***/ }),
-/* 1 */
-/***/ (function(module, exports, __webpack_require__) {
-
-
-const xmlParse = __webpack_require__(2)
-const {Widget} = __webpack_require__(3)
-const {Draw} = __webpack_require__(5)
-const {compareVersion} = __webpack_require__(0)
-
-const canvasId = 'weui-canvas'
-
-Component({
- properties: {
- width: {
- type: Number,
- value: 400
- },
- height: {
- type: Number,
- value: 300
- }
- },
- data: {
- use2dCanvas: false, // 2.9.2 后可用canvas 2d 接口
- },
- lifetimes: {
- attached() {
- const {SDKVersion, pixelRatio: dpr} = wx.getSystemInfoSync()
- const use2dCanvas = compareVersion(SDKVersion, '2.9.2') >= 0
- this.dpr = dpr
- this.setData({use2dCanvas}, () => {
- if (use2dCanvas) {
- const query = this.createSelectorQuery()
- query.select(`#${canvasId}`)
- .fields({node: true, size: true})
- .exec(res => {
- const canvas = res[0].node
- const ctx = canvas.getContext('2d')
- canvas.width = res[0].width * dpr
- canvas.height = res[0].height * dpr
- ctx.scale(dpr, dpr)
- this.ctx = ctx
- this.canvas = canvas
- })
- } else {
- this.ctx = wx.createCanvasContext(canvasId, this)
- }
- })
- }
- },
- methods: {
- async renderToCanvas(args) {
- const {wxml, style} = args
- const ctx = this.ctx
- const canvas = this.canvas
- const use2dCanvas = this.data.use2dCanvas
-
- if (use2dCanvas && !canvas) {
- return Promise.reject(new Error('renderToCanvas: fail canvas has not been created'))
- }
-
- ctx.clearRect(0, 0, this.data.width, this.data.height)
- const {root: xom} = xmlParse(wxml)
-
- const widget = new Widget(xom, style)
- const container = widget.init()
- this.boundary = {
- top: container.layoutBox.top,
- left: container.layoutBox.left,
- width: container.computedStyle.width,
- height: container.computedStyle.height,
- }
- const draw = new Draw(ctx, canvas, use2dCanvas)
- await draw.drawNode(container)
-
- if (!use2dCanvas) {
- await this.canvasDraw(ctx)
- }
- return Promise.resolve(container)
- },
-
- canvasDraw(ctx, reserve) {
- return new Promise(resolve => {
- ctx.draw(reserve, () => {
- resolve()
- })
- })
- },
-
- canvasToTempFilePath(args = {}) {
- const use2dCanvas = this.data.use2dCanvas
-
- return new Promise((resolve, reject) => {
- const {
- top, left, width, height
- } = this.boundary
-
- const copyArgs = {
- x: left,
- y: top,
- width,
- height,
- destWidth: width * this.dpr,
- destHeight: height * this.dpr,
- canvasId,
- fileType: args.fileType || 'png',
- quality: args.quality || 1,
- success: resolve,
- fail: reject
- }
-
- if (use2dCanvas) {
- delete copyArgs.canvasId
- copyArgs.canvas = this.canvas
- }
- wx.canvasToTempFilePath(copyArgs, this)
- })
- }
- }
-})
-
-
-/***/ }),
-/* 2 */
-/***/ (function(module, exports) {
-
-
-/**
- * Module dependencies.
- */
-
-
-/**
- * Expose `parse`.
- */
-
-
-/**
- * Parse the given string of `xml`.
- *
- * @param {String} xml
- * @return {Object}
- * @api public
- */
-
-function parse(xml) {
- xml = xml.trim()
-
- // strip comments
- xml = xml.replace(//g, '')
-
- return document()
-
- /**
- * XML document.
- */
-
- function document() {
- return {
- declaration: declaration(),
- root: tag()
- }
- }
-
- /**
- * Declaration.
- */
-
- function declaration() {
- const m = match(/^<\?xml\s*/)
- if (!m) return
-
- // tag
- const node = {
- attributes: {}
- }
-
- // attributes
- while (!(eos() || is('?>'))) {
- const attr = attribute()
- if (!attr) return node
- node.attributes[attr.name] = attr.value
- }
-
- match(/\?>\s*/)
-
- return node
- }
-
- /**
- * Tag.
- */
-
- function tag() {
- const m = match(/^<([\w-:.]+)\s*/)
- if (!m) return
-
- // name
- const node = {
- name: m[1],
- attributes: {},
- children: []
- }
-
- // attributes
- while (!(eos() || is('>') || is('?>') || is('/>'))) {
- const attr = attribute()
- if (!attr) return node
- node.attributes[attr.name] = attr.value
- }
-
- // self closing tag
- if (match(/^\s*\/>\s*/)) {
- return node
- }
-
- match(/\??>\s*/)
-
- // content
- node.content = content()
-
- // children
- let child
- while (child = tag()) {
- node.children.push(child)
- }
-
- // closing
- match(/^<\/[\w-:.]+>\s*/)
-
- return node
- }
-
- /**
- * Text content.
- */
-
- function content() {
- const m = match(/^([^<]*)/)
- if (m) return m[1]
- return ''
- }
-
- /**
- * Attribute.
- */
-
- function attribute() {
- const m = match(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/)
- if (!m) return
- return {name: m[1], value: strip(m[2])}
- }
-
- /**
- * Strip quotes from `val`.
- */
-
- function strip(val) {
- return val.replace(/^['"]|['"]$/g, '')
- }
-
- /**
- * Match `re` and advance the string.
- */
-
- function match(re) {
- const m = xml.match(re)
- if (!m) return
- xml = xml.slice(m[0].length)
- return m
- }
-
- /**
- * End-of-source.
- */
-
- function eos() {
- return xml.length == 0
- }
-
- /**
- * Check for `prefix`.
- */
-
- function is(prefix) {
- return xml.indexOf(prefix) == 0
- }
-}
-
-module.exports = parse
-
-
-/***/ }),
-/* 3 */
-/***/ (function(module, exports, __webpack_require__) {
-
-const Block = __webpack_require__(4)
-const {splitLineToCamelCase} = __webpack_require__(0)
-
-class Element extends Block {
- constructor(prop) {
- super(prop.style)
- this.name = prop.name
- this.attributes = prop.attributes
- }
-}
-
-
-class Widget {
- constructor(xom, style) {
- this.xom = xom
- this.style = style
-
- this.inheritProps = ['fontSize', 'lineHeight', 'textAlign', 'verticalAlign', 'color']
- }
-
- init() {
- this.container = this.create(this.xom)
- this.container.layout()
-
- this.inheritStyle(this.container)
- return this.container
- }
-
- // 继承父节点的样式
- inheritStyle(node) {
- const parent = node.parent || null
- const children = node.children || {}
- const computedStyle = node.computedStyle
-
- if (parent) {
- this.inheritProps.forEach(prop => {
- computedStyle[prop] = computedStyle[prop] || parent.computedStyle[prop]
- })
- }
-
- Object.values(children).forEach(child => {
- this.inheritStyle(child)
- })
- }
-
- create(node) {
- let classNames = (node.attributes.class || '').split(' ')
- classNames = classNames.map(item => splitLineToCamelCase(item.trim()))
- const style = {}
- classNames.forEach(item => {
- Object.assign(style, this.style[item] || {})
- })
-
- const args = {name: node.name, style}
-
- const attrs = Object.keys(node.attributes)
- const attributes = {}
- for (const attr of attrs) {
- const value = node.attributes[attr]
- const CamelAttr = splitLineToCamelCase(attr)
-
- if (value === '' || value === 'true') {
- attributes[CamelAttr] = true
- } else if (value === 'false') {
- attributes[CamelAttr] = false
- } else {
- attributes[CamelAttr] = value
- }
- }
- attributes.text = node.content
- args.attributes = attributes
- const element = new Element(args)
- node.children.forEach(childNode => {
- const childElement = this.create(childNode)
- element.add(childElement)
- })
- return element
- }
-}
-
-module.exports = {Widget}
-
-
-/***/ }),
-/* 4 */
-/***/ (function(module, exports) {
-
-module.exports = require("widget-ui");
-
-/***/ }),
-/* 5 */
-/***/ (function(module, exports) {
-
-class Draw {
- constructor(context, canvas, use2dCanvas = false) {
- this.ctx = context
- this.canvas = canvas || null
- this.use2dCanvas = use2dCanvas
- }
-
- roundRect(x, y, w, h, r, fill = true, stroke = false) {
- if (r < 0) return
- const ctx = this.ctx
-
- ctx.beginPath()
- ctx.arc(x + r, y + r, r, Math.PI, Math.PI * 3 / 2)
- ctx.arc(x + w - r, y + r, r, Math.PI * 3 / 2, 0)
- ctx.arc(x + w - r, y + h - r, r, 0, Math.PI / 2)
- ctx.arc(x + r, y + h - r, r, Math.PI / 2, Math.PI)
- ctx.lineTo(x, y + r)
- if (stroke) ctx.stroke()
- if (fill) ctx.fill()
- }
-
- drawView(box, style) {
- const ctx = this.ctx
- const {
- left: x, top: y, width: w, height: h
- } = box
- const {
- borderRadius = 0,
- borderWidth = 0,
- borderColor,
- color = '#000',
- backgroundColor = 'transparent',
- } = style
- ctx.save()
- // 外环
- if (borderWidth > 0) {
- ctx.fillStyle = borderColor || color
- this.roundRect(x, y, w, h, borderRadius)
- }
-
- // 内环
- ctx.fillStyle = backgroundColor
- const innerWidth = w - 2 * borderWidth
- const innerHeight = h - 2 * borderWidth
- const innerRadius = borderRadius - borderWidth >= 0 ? borderRadius - borderWidth : 0
- this.roundRect(x + borderWidth, y + borderWidth, innerWidth, innerHeight, innerRadius)
- ctx.restore()
- }
-
- async drawImage(img, box, style) {
- await new Promise((resolve, reject) => {
- const ctx = this.ctx
- const canvas = this.canvas
-
- const {
- borderRadius = 0
- } = style
- const {
- left: x, top: y, width: w, height: h
- } = box
- ctx.save()
- this.roundRect(x, y, w, h, borderRadius, false, false)
- ctx.clip()
-
- const _drawImage = (img) => {
- if (this.use2dCanvas) {
- const Image = canvas.createImage()
- Image.onload = () => {
- ctx.drawImage(Image, x, y, w, h)
- ctx.restore()
- resolve()
- }
- Image.onerror = () => { reject(new Error(`createImage fail: ${img}`)) }
- Image.src = img
- } else {
- ctx.drawImage(img, x, y, w, h)
- ctx.restore()
- resolve()
- }
- }
-
- const isTempFile = /^wxfile:\/\//.test(img)
- const isNetworkFile = /^https?:\/\//.test(img)
-
- if (isTempFile) {
- _drawImage(img)
- } else if (isNetworkFile) {
- wx.downloadFile({
- url: img,
- success(res) {
- if (res.statusCode === 200) {
- _drawImage(res.tempFilePath)
- } else {
- reject(new Error(`downloadFile:fail ${img}`))
- }
- },
- fail() {
- reject(new Error(`downloadFile:fail ${img}`))
- }
- })
- } else {
- reject(new Error(`image format error: ${img}`))
- }
- })
- }
-
- // eslint-disable-next-line complexity
- drawText(text, box, style) {
- const ctx = this.ctx
- let {
- left: x, top: y, width: w, height: h
- } = box
- let {
- color = '#000',
- lineHeight = '1.4em',
- fontSize = 14,
- textAlign = 'left',
- verticalAlign = 'top',
- backgroundColor = 'transparent'
- } = style
-
- if (typeof lineHeight === 'string') { // 2em
- lineHeight = Math.ceil(parseFloat(lineHeight.replace('em')) * fontSize)
- }
- if (!text || (lineHeight > h)) return
-
- ctx.save()
- ctx.textBaseline = 'top'
- ctx.font = `${fontSize}px sans-serif`
- ctx.textAlign = textAlign
-
- // 背景色
- ctx.fillStyle = backgroundColor
- this.roundRect(x, y, w, h, 0)
-
- // 文字颜色
- ctx.fillStyle = color
-
- // 水平布局
- switch (textAlign) {
- case 'left':
- break
- case 'center':
- x += 0.5 * w
- break
- case 'right':
- x += w
- break
- default: break
- }
-
- const textWidth = ctx.measureText(text).width
- const actualHeight = Math.ceil(textWidth / w) * lineHeight
- let paddingTop = Math.ceil((h - actualHeight) / 2)
- if (paddingTop < 0) paddingTop = 0
-
- // 垂直布局
- switch (verticalAlign) {
- case 'top':
- break
- case 'middle':
- y += paddingTop
- break
- case 'bottom':
- y += 2 * paddingTop
- break
- default: break
- }
-
- const inlinePaddingTop = Math.ceil((lineHeight - fontSize) / 2)
-
- // 不超过一行
- if (textWidth <= w) {
- ctx.fillText(text, x, y + inlinePaddingTop)
- return
- }
-
- // 多行文本
- const chars = text.split('')
- const _y = y
-
- // 逐行绘制
- let line = ''
- for (const ch of chars) {
- const testLine = line + ch
- const testWidth = ctx.measureText(testLine).width
-
- if (testWidth > w) {
- ctx.fillText(line, x, y + inlinePaddingTop)
- y += lineHeight
- line = ch
- if ((y + lineHeight) > (_y + h)) break
- } else {
- line = testLine
- }
- }
-
- // 避免溢出
- if ((y + lineHeight) <= (_y + h)) {
- ctx.fillText(line, x, y + inlinePaddingTop)
- }
- ctx.restore()
- }
-
- async drawNode(element) {
- const {layoutBox, computedStyle, name} = element
- const {src, text} = element.attributes
- if (name === 'view') {
- this.drawView(layoutBox, computedStyle)
- } else if (name === 'image') {
- await this.drawImage(src, layoutBox, computedStyle)
- } else if (name === 'text') {
- this.drawText(text, layoutBox, computedStyle)
- }
- const childs = Object.values(element.children)
- for (const child of childs) {
- await this.drawNode(child)
- }
- }
-}
-
-
-module.exports = {
- Draw
-}
-
-
-/***/ })
-/******/ ]);
+(function webpackUniversalModuleDefinition(root, factory) {
+ if(typeof exports === 'object' && typeof module === 'object')
+ module.exports = factory();
+ else if(typeof define === 'function' && define.amd)
+ define([], factory);
+ else {
+ var a = factory();
+ for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
+ }
+})(window, function() {
+return /******/ (function(modules) { // webpackBootstrap
+/******/ // The module cache
+/******/ var installedModules = {};
+/******/
+/******/ // The require function
+/******/ function __webpack_require__(moduleId) {
+/******/
+/******/ // Check if module is in cache
+/******/ if(installedModules[moduleId]) {
+/******/ return installedModules[moduleId].exports;
+/******/ }
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ i: moduleId,
+/******/ l: false,
+/******/ exports: {}
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
+/******/
+/******/ // Flag the module as loaded
+/******/ module.l = true;
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/******/
+/******/ // expose the modules object (__webpack_modules__)
+/******/ __webpack_require__.m = modules;
+/******/
+/******/ // expose the module cache
+/******/ __webpack_require__.c = installedModules;
+/******/
+/******/ // define getter function for harmony exports
+/******/ __webpack_require__.d = function(exports, name, getter) {
+/******/ if(!__webpack_require__.o(exports, name)) {
+/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
+/******/ }
+/******/ };
+/******/
+/******/ // define __esModule on exports
+/******/ __webpack_require__.r = function(exports) {
+/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
+/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
+/******/ }
+/******/ Object.defineProperty(exports, '__esModule', { value: true });
+/******/ };
+/******/
+/******/ // create a fake namespace object
+/******/ // mode & 1: value is a module id, require it
+/******/ // mode & 2: merge all properties of value into the ns
+/******/ // mode & 4: return value when already ns object
+/******/ // mode & 8|1: behave like require
+/******/ __webpack_require__.t = function(value, mode) {
+/******/ if(mode & 1) value = __webpack_require__(value);
+/******/ if(mode & 8) return value;
+/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
+/******/ var ns = Object.create(null);
+/******/ __webpack_require__.r(ns);
+/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
+/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
+/******/ return ns;
+/******/ };
+/******/
+/******/ // getDefaultExport function for compatibility with non-harmony modules
+/******/ __webpack_require__.n = function(module) {
+/******/ var getter = module && module.__esModule ?
+/******/ function getDefault() { return module['default']; } :
+/******/ function getModuleExports() { return module; };
+/******/ __webpack_require__.d(getter, 'a', getter);
+/******/ return getter;
+/******/ };
+/******/
+/******/ // Object.prototype.hasOwnProperty.call
+/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
+/******/
+/******/ // __webpack_public_path__
+/******/ __webpack_require__.p = "";
+/******/
+/******/
+/******/ // Load entry module and return exports
+/******/ return __webpack_require__(__webpack_require__.s = 1);
+/******/ })
+/************************************************************************/
+/******/ ([
+/* 0 */
+/***/ (function(module, exports) {
+
+const hex = (color) => {
+ let result = null
+
+ if (/^#/.test(color) && (color.length === 7 || color.length === 9)) {
+ return color
+ // eslint-disable-next-line no-cond-assign
+ } else if ((result = /^(rgb|rgba)\((.+)\)/.exec(color)) !== null) {
+ return '#' + result[2].split(',').map((part, index) => {
+ part = part.trim()
+ part = index === 3 ? Math.floor(parseFloat(part) * 255) : parseInt(part, 10)
+ part = part.toString(16)
+ if (part.length === 1) {
+ part = '0' + part
+ }
+ return part
+ }).join('')
+ } else {
+ return '#00000000'
+ }
+}
+
+const splitLineToCamelCase = (str) => str.split('-').map((part, index) => {
+ if (index === 0) {
+ return part
+ }
+ return part[0].toUpperCase() + part.slice(1)
+}).join('')
+
+const compareVersion = (v1, v2) => {
+ v1 = v1.split('.')
+ v2 = v2.split('.')
+ const len = Math.max(v1.length, v2.length)
+ while (v1.length < len) {
+ v1.push('0')
+ }
+ while (v2.length < len) {
+ v2.push('0')
+ }
+ for (let i = 0; i < len; i++) {
+ const num1 = parseInt(v1[i], 10)
+ const num2 = parseInt(v2[i], 10)
+
+ if (num1 > num2) {
+ return 1
+ } else if (num1 < num2) {
+ return -1
+ }
+ }
+
+ return 0
+}
+
+module.exports = {
+ hex,
+ splitLineToCamelCase,
+ compareVersion
+}
+
+
+/***/ }),
+/* 1 */
+/***/ (function(module, exports, __webpack_require__) {
+
+
+const xmlParse = __webpack_require__(2)
+const {Widget} = __webpack_require__(3)
+const {Draw} = __webpack_require__(5)
+const {compareVersion} = __webpack_require__(0)
+
+const canvasId = 'weui-canvas'
+
+Component({
+ properties: {
+ width: {
+ type: Number,
+ value: 400
+ },
+ height: {
+ type: Number,
+ value: 300
+ }
+ },
+ data: {
+ use2dCanvas: false, // 2.9.2 后可用canvas 2d 接口
+ },
+ lifetimes: {
+ attached() {
+ const {SDKVersion, pixelRatio: dpr} = wx.getSystemInfoSync()
+ const use2dCanvas = compareVersion(SDKVersion, '2.9.2') >= 0
+ this.dpr = dpr
+ this.setData({use2dCanvas}, () => {
+ if (use2dCanvas) {
+ const query = this.createSelectorQuery()
+ query.select(`#${canvasId}`)
+ .fields({node: true, size: true})
+ .exec(res => {
+ const canvas = res[0].node
+ const ctx = canvas.getContext('2d')
+ canvas.width = res[0].width * dpr
+ canvas.height = res[0].height * dpr
+ ctx.scale(dpr, dpr)
+ this.ctx = ctx
+ this.canvas = canvas
+ })
+ } else {
+ this.ctx = wx.createCanvasContext(canvasId, this)
+ }
+ })
+ }
+ },
+ methods: {
+ async renderToCanvas(args) {
+ const {wxml, style} = args
+ const ctx = this.ctx
+ const canvas = this.canvas
+ const use2dCanvas = this.data.use2dCanvas
+
+ if (use2dCanvas && !canvas) {
+ return Promise.reject(new Error('renderToCanvas: fail canvas has not been created'))
+ }
+
+ ctx.clearRect(0, 0, this.data.width, this.data.height)
+ const {root: xom} = xmlParse(wxml)
+
+ const widget = new Widget(xom, style)
+ const container = widget.init()
+ this.boundary = {
+ top: container.layoutBox.top,
+ left: container.layoutBox.left,
+ width: container.computedStyle.width,
+ height: container.computedStyle.height,
+ }
+ const draw = new Draw(ctx, canvas, use2dCanvas)
+ await draw.drawNode(container)
+
+ if (!use2dCanvas) {
+ await this.canvasDraw(ctx)
+ }
+ return Promise.resolve(container)
+ },
+
+ canvasDraw(ctx, reserve) {
+ return new Promise(resolve => {
+ ctx.draw(reserve, () => {
+ resolve()
+ })
+ })
+ },
+
+ canvasToTempFilePath(args = {}) {
+ const use2dCanvas = this.data.use2dCanvas
+
+ return new Promise((resolve, reject) => {
+ const {
+ top, left, width, height
+ } = this.boundary
+
+ const copyArgs = {
+ x: left,
+ y: top,
+ width,
+ height,
+ destWidth: width * this.dpr,
+ destHeight: height * this.dpr,
+ canvasId,
+ fileType: args.fileType || 'png',
+ quality: args.quality || 1,
+ success: resolve,
+ fail: reject
+ }
+
+ if (use2dCanvas) {
+ delete copyArgs.canvasId
+ copyArgs.canvas = this.canvas
+ }
+ wx.canvasToTempFilePath(copyArgs, this)
+ })
+ }
+ }
+})
+
+
+/***/ }),
+/* 2 */
+/***/ (function(module, exports) {
+
+
+/**
+ * Module dependencies.
+ */
+
+
+/**
+ * Expose `parse`.
+ */
+
+
+/**
+ * Parse the given string of `xml`.
+ *
+ * @param {String} xml
+ * @return {Object}
+ * @api public
+ */
+
+function parse(xml) {
+ xml = xml.trim()
+
+ // strip comments
+ xml = xml.replace(//g, '')
+
+ return document()
+
+ /**
+ * XML document.
+ */
+
+ function document() {
+ return {
+ declaration: declaration(),
+ root: tag()
+ }
+ }
+
+ /**
+ * Declaration.
+ */
+
+ function declaration() {
+ const m = match(/^<\?xml\s*/)
+ if (!m) return
+
+ // tag
+ const node = {
+ attributes: {}
+ }
+
+ // attributes
+ while (!(eos() || is('?>'))) {
+ const attr = attribute()
+ if (!attr) return node
+ node.attributes[attr.name] = attr.value
+ }
+
+ match(/\?>\s*/)
+
+ return node
+ }
+
+ /**
+ * Tag.
+ */
+
+ function tag() {
+ const m = match(/^<([\w-:.]+)\s*/)
+ if (!m) return
+
+ // name
+ const node = {
+ name: m[1],
+ attributes: {},
+ children: []
+ }
+
+ // attributes
+ while (!(eos() || is('>') || is('?>') || is('/>'))) {
+ const attr = attribute()
+ if (!attr) return node
+ node.attributes[attr.name] = attr.value
+ }
+
+ // self closing tag
+ if (match(/^\s*\/>\s*/)) {
+ return node
+ }
+
+ match(/\??>\s*/)
+
+ // content
+ node.content = content()
+
+ // children
+ let child
+ while (child = tag()) {
+ node.children.push(child)
+ }
+
+ // closing
+ match(/^<\/[\w-:.]+>\s*/)
+
+ return node
+ }
+
+ /**
+ * Text content.
+ */
+
+ function content() {
+ const m = match(/^([^<]*)/)
+ if (m) return m[1]
+ return ''
+ }
+
+ /**
+ * Attribute.
+ */
+
+ function attribute() {
+ const m = match(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/)
+ if (!m) return
+ return {name: m[1], value: strip(m[2])}
+ }
+
+ /**
+ * Strip quotes from `val`.
+ */
+
+ function strip(val) {
+ return val.replace(/^['"]|['"]$/g, '')
+ }
+
+ /**
+ * Match `re` and advance the string.
+ */
+
+ function match(re) {
+ const m = xml.match(re)
+ if (!m) return
+ xml = xml.slice(m[0].length)
+ return m
+ }
+
+ /**
+ * End-of-source.
+ */
+
+ function eos() {
+ return xml.length == 0
+ }
+
+ /**
+ * Check for `prefix`.
+ */
+
+ function is(prefix) {
+ return xml.indexOf(prefix) == 0
+ }
+}
+
+module.exports = parse
+
+
+/***/ }),
+/* 3 */
+/***/ (function(module, exports, __webpack_require__) {
+
+const Block = __webpack_require__(4)
+const {splitLineToCamelCase} = __webpack_require__(0)
+
+class Element extends Block {
+ constructor(prop) {
+ super(prop.style)
+ this.name = prop.name
+ this.attributes = prop.attributes
+ }
+}
+
+
+class Widget {
+ constructor(xom, style) {
+ this.xom = xom
+ this.style = style
+
+ this.inheritProps = ['fontSize', 'lineHeight', 'textAlign', 'verticalAlign', 'color']
+ }
+
+ init() {
+ this.container = this.create(this.xom)
+ this.container.layout()
+
+ this.inheritStyle(this.container)
+ return this.container
+ }
+
+ // 继承父节点的样式
+ inheritStyle(node) {
+ const parent = node.parent || null
+ const children = node.children || {}
+ const computedStyle = node.computedStyle
+
+ if (parent) {
+ this.inheritProps.forEach(prop => {
+ computedStyle[prop] = computedStyle[prop] || parent.computedStyle[prop]
+ })
+ }
+
+ Object.values(children).forEach(child => {
+ this.inheritStyle(child)
+ })
+ }
+
+ create(node) {
+ let classNames = (node.attributes.class || '').split(' ')
+ classNames = classNames.map(item => splitLineToCamelCase(item.trim()))
+ const style = {}
+ classNames.forEach(item => {
+ Object.assign(style, this.style[item] || {})
+ })
+
+ const args = {name: node.name, style}
+
+ const attrs = Object.keys(node.attributes)
+ const attributes = {}
+ for (const attr of attrs) {
+ const value = node.attributes[attr]
+ const CamelAttr = splitLineToCamelCase(attr)
+
+ if (value === '' || value === 'true') {
+ attributes[CamelAttr] = true
+ } else if (value === 'false') {
+ attributes[CamelAttr] = false
+ } else {
+ attributes[CamelAttr] = value
+ }
+ }
+ attributes.text = node.content
+ args.attributes = attributes
+ const element = new Element(args)
+ node.children.forEach(childNode => {
+ const childElement = this.create(childNode)
+ element.add(childElement)
+ })
+ return element
+ }
+}
+
+module.exports = {Widget}
+
+
+/***/ }),
+/* 4 */
+/***/ (function(module, exports) {
+
+module.exports = require("widget-ui");
+
+/***/ }),
+/* 5 */
+/***/ (function(module, exports) {
+
+class Draw {
+ constructor(context, canvas, use2dCanvas = false) {
+ this.ctx = context
+ this.canvas = canvas || null
+ this.use2dCanvas = use2dCanvas
+ }
+
+ roundRect(x, y, w, h, r, fill = true, stroke = false) {
+ if (r < 0) return
+ const ctx = this.ctx
+
+ ctx.beginPath()
+ ctx.arc(x + r, y + r, r, Math.PI, Math.PI * 3 / 2)
+ ctx.arc(x + w - r, y + r, r, Math.PI * 3 / 2, 0)
+ ctx.arc(x + w - r, y + h - r, r, 0, Math.PI / 2)
+ ctx.arc(x + r, y + h - r, r, Math.PI / 2, Math.PI)
+ ctx.lineTo(x, y + r)
+ if (stroke) ctx.stroke()
+ if (fill) ctx.fill()
+ }
+
+ drawView(box, style) {
+ const ctx = this.ctx
+ const {
+ left: x, top: y, width: w, height: h
+ } = box
+ const {
+ borderRadius = 0,
+ borderWidth = 0,
+ borderColor,
+ color = '#000',
+ backgroundColor = 'transparent',
+ } = style
+ ctx.save()
+ // 外环
+ if (borderWidth > 0) {
+ ctx.fillStyle = borderColor || color
+ this.roundRect(x, y, w, h, borderRadius)
+ }
+
+ // 内环
+ ctx.fillStyle = backgroundColor
+ const innerWidth = w - 2 * borderWidth
+ const innerHeight = h - 2 * borderWidth
+ const innerRadius = borderRadius - borderWidth >= 0 ? borderRadius - borderWidth : 0
+ this.roundRect(x + borderWidth, y + borderWidth, innerWidth, innerHeight, innerRadius)
+ ctx.restore()
+ }
+
+ async drawImage(img, box, style) {
+ await new Promise((resolve, reject) => {
+ const ctx = this.ctx
+ const canvas = this.canvas
+
+ const {
+ borderRadius = 0
+ } = style
+ const {
+ left: x, top: y, width: w, height: h
+ } = box
+ ctx.save()
+ this.roundRect(x, y, w, h, borderRadius, false, false)
+ ctx.clip()
+
+ const _drawImage = (img) => {
+ if (this.use2dCanvas) {
+ const Image = canvas.createImage()
+ Image.onload = () => {
+ ctx.drawImage(Image, x, y, w, h)
+ ctx.restore()
+ resolve()
+ }
+ Image.onerror = () => { reject(new Error(`createImage fail: ${img}`)) }
+ Image.src = img
+ } else {
+ ctx.drawImage(img, x, y, w, h)
+ ctx.restore()
+ resolve()
+ }
+ }
+
+ const isTempFile = /^wxfile:\/\//.test(img)
+ const isNetworkFile = /^https?:\/\//.test(img)
+
+ if (isTempFile) {
+ _drawImage(img)
+ } else if (isNetworkFile) {
+ wx.downloadFile({
+ url: img,
+ success(res) {
+ if (res.statusCode === 200) {
+ _drawImage(res.tempFilePath)
+ } else {
+ reject(new Error(`downloadFile:fail ${img}`))
+ }
+ },
+ fail() {
+ reject(new Error(`downloadFile:fail ${img}`))
+ }
+ })
+ } else {
+ reject(new Error(`image format error: ${img}`))
+ }
+ })
+ }
+
+ // eslint-disable-next-line complexity
+ drawText(text, box, style) {
+ const ctx = this.ctx
+ let {
+ left: x, top: y, width: w, height: h
+ } = box
+ let {
+ color = '#000',
+ lineHeight = '1.4em',
+ fontSize = 14,
+ textAlign = 'left',
+ verticalAlign = 'top',
+ backgroundColor = 'transparent'
+ } = style
+
+ if (typeof lineHeight === 'string') { // 2em
+ lineHeight = Math.ceil(parseFloat(lineHeight.replace('em')) * fontSize)
+ }
+ if (!text || (lineHeight > h)) return
+
+ ctx.save()
+ ctx.textBaseline = 'top'
+ ctx.font = `${fontSize}px sans-serif`
+ ctx.textAlign = textAlign
+
+ // 背景色
+ ctx.fillStyle = backgroundColor
+ this.roundRect(x, y, w, h, 0)
+
+ // 文字颜色
+ ctx.fillStyle = color
+
+ // 水平布局
+ switch (textAlign) {
+ case 'left':
+ break
+ case 'center':
+ x += 0.5 * w
+ break
+ case 'right':
+ x += w
+ break
+ default: break
+ }
+
+ const textWidth = ctx.measureText(text).width
+ const actualHeight = Math.ceil(textWidth / w) * lineHeight
+ let paddingTop = Math.ceil((h - actualHeight) / 2)
+ if (paddingTop < 0) paddingTop = 0
+
+ // 垂直布局
+ switch (verticalAlign) {
+ case 'top':
+ break
+ case 'middle':
+ y += paddingTop
+ break
+ case 'bottom':
+ y += 2 * paddingTop
+ break
+ default: break
+ }
+
+ const inlinePaddingTop = Math.ceil((lineHeight - fontSize) / 2)
+
+ // 不超过一行
+ if (textWidth <= w) {
+ ctx.fillText(text, x, y + inlinePaddingTop)
+ return
+ }
+
+ // 多行文本
+ const chars = text.split('')
+ const _y = y
+
+ // 逐行绘制
+ let line = ''
+ for (const ch of chars) {
+ const testLine = line + ch
+ const testWidth = ctx.measureText(testLine).width
+
+ if (testWidth > w) {
+ ctx.fillText(line, x, y + inlinePaddingTop)
+ y += lineHeight
+ line = ch
+ if ((y + lineHeight) > (_y + h)) break
+ } else {
+ line = testLine
+ }
+ }
+
+ // 避免溢出
+ if ((y + lineHeight) <= (_y + h)) {
+ ctx.fillText(line, x, y + inlinePaddingTop)
+ }
+ ctx.restore()
+ }
+
+ async drawNode(element) {
+ const {layoutBox, computedStyle, name} = element
+ const {src, text} = element.attributes
+ if (name === 'view') {
+ this.drawView(layoutBox, computedStyle)
+ } else if (name === 'image') {
+ await this.drawImage(src, layoutBox, computedStyle)
+ } else if (name === 'text') {
+ this.drawText(text, layoutBox, computedStyle)
+ }
+ const childs = Object.values(element.children)
+ for (const child of childs) {
+ await this.drawNode(child)
+ }
+ }
+}
+
+
+module.exports = {
+ Draw
+}
+
+
+/***/ })
+/******/ ]);
});
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/wxml-to-canvas/index.json b/src/openeuler/miniprogram_npm/wxml-to-canvas/index.json
index 011372e..e8cfaaf 100644
--- a/src/openeuler/miniprogram_npm/wxml-to-canvas/index.json
+++ b/src/openeuler/miniprogram_npm/wxml-to-canvas/index.json
@@ -1,4 +1,4 @@
-{
- "component": true,
- "usingComponents": {}
+{
+ "component": true,
+ "usingComponents": {}
}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/wxml-to-canvas/index.wxml b/src/openeuler/miniprogram_npm/wxml-to-canvas/index.wxml
index 3571704..a0010ad 100644
--- a/src/openeuler/miniprogram_npm/wxml-to-canvas/index.wxml
+++ b/src/openeuler/miniprogram_npm/wxml-to-canvas/index.wxml
@@ -1,2 +1,2 @@
-
+
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/wxml-to-canvas/utils.js b/src/openeuler/miniprogram_npm/wxml-to-canvas/utils.js
index 5668ed2..c3cf7d7 100644
--- a/src/openeuler/miniprogram_npm/wxml-to-canvas/utils.js
+++ b/src/openeuler/miniprogram_npm/wxml-to-canvas/utils.js
@@ -1,57 +1,57 @@
-const hex = (color) => {
- let result = null
-
- if (/^#/.test(color) && (color.length === 7 || color.length === 9)) {
- return color
- // eslint-disable-next-line no-cond-assign
- } else if ((result = /^(rgb|rgba)\((.+)\)/.exec(color)) !== null) {
- return '#' + result[2].split(',').map((part, index) => {
- part = part.trim()
- part = index === 3 ? Math.floor(parseFloat(part) * 255) : parseInt(part, 10)
- part = part.toString(16)
- if (part.length === 1) {
- part = '0' + part
- }
- return part
- }).join('')
- } else {
- return '#00000000'
- }
-}
-
-const splitLineToCamelCase = (str) => str.split('-').map((part, index) => {
- if (index === 0) {
- return part
- }
- return part[0].toUpperCase() + part.slice(1)
-}).join('')
-
-const compareVersion = (v1, v2) => {
- v1 = v1.split('.')
- v2 = v2.split('.')
- const len = Math.max(v1.length, v2.length)
- while (v1.length < len) {
- v1.push('0')
- }
- while (v2.length < len) {
- v2.push('0')
- }
- for (let i = 0; i < len; i++) {
- const num1 = parseInt(v1[i], 10)
- const num2 = parseInt(v2[i], 10)
-
- if (num1 > num2) {
- return 1
- } else if (num1 < num2) {
- return -1
- }
- }
-
- return 0
-}
-
-module.exports = {
- hex,
- splitLineToCamelCase,
- compareVersion
-}
+const hex = (color) => {
+ let result = null
+
+ if (/^#/.test(color) && (color.length === 7 || color.length === 9)) {
+ return color
+ // eslint-disable-next-line no-cond-assign
+ } else if ((result = /^(rgb|rgba)\((.+)\)/.exec(color)) !== null) {
+ return '#' + result[2].split(',').map((part, index) => {
+ part = part.trim()
+ part = index === 3 ? Math.floor(parseFloat(part) * 255) : parseInt(part, 10)
+ part = part.toString(16)
+ if (part.length === 1) {
+ part = '0' + part
+ }
+ return part
+ }).join('')
+ } else {
+ return '#00000000'
+ }
+}
+
+const splitLineToCamelCase = (str) => str.split('-').map((part, index) => {
+ if (index === 0) {
+ return part
+ }
+ return part[0].toUpperCase() + part.slice(1)
+}).join('')
+
+const compareVersion = (v1, v2) => {
+ v1 = v1.split('.')
+ v2 = v2.split('.')
+ const len = Math.max(v1.length, v2.length)
+ while (v1.length < len) {
+ v1.push('0')
+ }
+ while (v2.length < len) {
+ v2.push('0')
+ }
+ for (let i = 0; i < len; i++) {
+ const num1 = parseInt(v1[i], 10)
+ const num2 = parseInt(v2[i], 10)
+
+ if (num1 > num2) {
+ return 1
+ } else if (num1 < num2) {
+ return -1
+ }
+ }
+
+ return 0
+}
+
+module.exports = {
+ hex,
+ splitLineToCamelCase,
+ compareVersion
+}
diff --git a/src/openeuler/package-events/events/poster.js b/src/openeuler/package-events/events/poster.js
index a8ee6a2..0ea153e 100644
--- a/src/openeuler/package-events/events/poster.js
+++ b/src/openeuler/package-events/events/poster.js
@@ -110,22 +110,4 @@ Page({
});
});
},
- setAndGetSysImage(data) {
- const fsm = wx.getFileSystemManager();
- const fileName = Date.now() + '.png';
- return new Promise((req, rej) => {
- const filePath = wx.env.USER_DATA_PATH + '/' + fileName;
- fsm.writeFile({
- filePath,
- data,
- encoding: 'base64',
- success: () => {
- req(filePath);
- },
- fail: (err) => {
- rej(err);
- },
- });
- });
- },
});
diff --git a/src/openeuler/package-events/events/wxml-to-canvas.js b/src/openeuler/package-events/events/wxml-to-canvas.js
index 8e3d451..7e83504 100644
--- a/src/openeuler/package-events/events/wxml-to-canvas.js
+++ b/src/openeuler/package-events/events/wxml-to-canvas.js
@@ -1,12 +1,12 @@
+const { OBS_URL } = require('./../../utils/url-config');
+
const wxml = (data) => {
return `
-
+
${data.title}
-
+
时间:${data.date}
${data.address ? '地点:' + data.address : '直播地址:' + data.liveAddress}
diff --git a/src/openeuler/package-events/publish/publish.js b/src/openeuler/package-events/publish/publish.js
index eb3c9b4..4c955bc 100644
--- a/src/openeuler/package-events/publish/publish.js
+++ b/src/openeuler/package-events/publish/publish.js
@@ -1,6 +1,7 @@
// package-events/publish/publish.js
const appAjax = require('./../../utils/app-ajax');
const utils = require('./../../utils/utils.js');
+const { BILIBILI_URL } = require('./../../utils/url-config.js');
utils.formateDate();
let that = null;
let remoteMethods = {
@@ -73,7 +74,17 @@ let remoteMethods = {
});
},
};
+
let localMethods = {
+ timeValid: function (startTime, endTime) {
+ function timeToMinutes(time) {
+ const parts = time.split(':');
+ return parseInt(parts[0], 10) * 60 + parseInt(parts[1], 10);
+ }
+ console.log(timeToMinutes(endTime));
+ console.log(timeToMinutes(startTime));
+ return timeToMinutes(endTime) > timeToMinutes(startTime);
+ },
validation: function (data) {
if (data.activity_type === 1) {
if (!data.title) {
@@ -88,6 +99,11 @@ let localMethods = {
this.toast('请输入报名链接');
return;
}
+ const urlRegex = /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/i;
+ if (!urlRegex.test(data.register_url)) {
+ this.toast('报名链接格式错误');
+ return;
+ }
if (!data.address) {
this.toast('请输入活动城市');
return;
@@ -96,23 +112,55 @@ let localMethods = {
this.toast('请输入具体地址');
return;
}
+ const regexHttp = /(http:\/\/|https:\/\/|www.)/;
+ if (regexHttp.test(that.title) || regexHttp.test(that.schedule) || regexHttp.test(that.desc)) {
+ this.toast('输入内容中禁止包含链接');
+ return;
+ }
let flag = true;
- data.schedules.forEach((item) => {
- if (!item.start) {
+ for (let i = 0; i < data.schedules.length; i++) {
+ if (!data.schedules[i].start) {
flag = false;
}
- if (!item.end) {
+ if (!data.schedules[i].end) {
flag = false;
}
- if (!item.topic) {
+ if (!localMethods.validation(data.schedules[i].start, data.schedules[i].end)) {
+ this.toast('议题开始时间必须小于结束时间');
flag = false;
+ return;
}
- item.speakerList.forEach((item) => {
+ if (!data.schedules[i].topic) {
+ flag = false;
+ }
+ data.schedules[i].speakerList.forEach((item) => {
if (!item.name) {
flag = false;
}
});
- });
+ }
+ // data.schedules.forEach((item) => {
+ // if (!item.start) {
+ // flag = false;
+ // }
+ // if (!item.end) {
+ // flag = false;
+ // }
+ // if (!localMethods.validation(item.start, item.end)) {
+ // console.log(555);
+ // this.toast('开始时间必须小于结束时间');
+ // flag = false;
+ // return;
+ // }
+ // if (!item.topic) {
+ // flag = false;
+ // }
+ // item.speakerList.forEach((item) => {
+ // if (!item.name) {
+ // flag = false;
+ // }
+ // });
+ // });
if (!flag) {
this.toast('请补充日程必填信息');
return;
@@ -134,23 +182,32 @@ let localMethods = {
this.toast('请选择活动时间');
return;
}
+ if (!localMethods.timeValid(data.start, data.end)) {
+ this.toast('活动开始时间必须小于结束时间');
+ return;
+ }
let flag = true;
- data.schedules.forEach((item) => {
- if (!item.start) {
+ for (let i = 0; i < data.schedules.length; i++) {
+ if (!data.schedules[i].start) {
+ flag = false;
+ }
+ if (!data.schedules[i].end) {
flag = false;
}
- if (!item.end) {
+ if (!localMethods.timeValid(data.schedules[i].start, data.schedules[i].end)) {
+ this.toast('议题开始时间必须小于结束时间');
flag = false;
+ return;
}
- if (!item.topic) {
+ if (!data.schedules[i].topic) {
flag = false;
}
- item.speakerList.forEach((item) => {
+ data.schedules[i].speakerList.forEach((item) => {
if (!item.name) {
flag = false;
}
});
- });
+ }
if (!flag) {
this.toast('请补充填写日程必填信息');
return;
@@ -196,9 +253,9 @@ Page({
],
datePopShow: false,
timePopShow: false,
- curDate: new Date().getTime(),
- currentDate: new Date().getTime(),
- minDate: new Date().getTime(),
+ curDate: new Date().getTime() + 24 * 60 * 60 * 1000,
+ currentDate: new Date().getTime() + 24 * 60 * 60 * 1000,
+ minDate: new Date().getTime() + 24 * 60 * 60 * 1000,
startTimeIndex: 0,
endTimeIndex: 0,
start: '',
@@ -287,7 +344,7 @@ Page({
radioOnChange(e) {
let url;
if (e.detail === 2) {
- url = 'https://space.bilibili.com/527064077';
+ url = BILIBILI_URL;
} else {
url = '';
}
@@ -312,7 +369,11 @@ Page({
});
},
fail: function (res) {
- console.error(res);
+ wx.showToast({
+ title: res,
+ icon: 'none',
+ duration: 2000,
+ });
},
});
} else if (res.cancel) {
@@ -356,6 +417,14 @@ Page({
},
addSchedule() {
let arrTemp = this.data.schedule;
+ if (arrTemp.length >= 30) {
+ wx.showToast({
+ title: '议题最多不超过30个',
+ icon: 'none',
+ duration: 2000,
+ });
+ return;
+ }
arrTemp.push({
start: '',
end: '',
@@ -403,18 +472,12 @@ Page({
isOnline: 1,
});
},
- timeCancel: function () {
- this.setData({
- timePopShow: false,
- isOnline: 0,
- });
- },
timeOnInput: function (e) {
this.setData({
currentTime: e.detail,
});
},
- timeConfirm: function (e) {
+ timeConfirm: function () {
if (this.data.isOnline) {
this.setData({
onlineStartTime: this.data.currentTime,
@@ -435,11 +498,6 @@ Page({
timePopShow: false,
});
},
- endTimeCancel: function () {
- this.setData({
- endTimePopShow: false,
- });
- },
selEndTime: function (e) {
this.setData({
endTimePopShow: true,
diff --git a/src/openeuler/package-events/publish/publish.wxml b/src/openeuler/package-events/publish/publish.wxml
index 7692733..0bf4248 100644
--- a/src/openeuler/package-events/publish/publish.wxml
+++ b/src/openeuler/package-events/publish/publish.wxml
@@ -127,11 +127,11 @@
Name
*
-
+
Title
-
+
diff --git a/src/openeuler/package-meeting/meeting/meeting-list.js b/src/openeuler/package-meeting/meeting/meeting-list.js
index 51e1bed..3176495 100644
--- a/src/openeuler/package-meeting/meeting/meeting-list.js
+++ b/src/openeuler/package-meeting/meeting/meeting-list.js
@@ -21,7 +21,7 @@ Page({
*/
onPullDownRefresh: function () {
wx.stopPullDownRefresh();
- this.data.meetingConponent.initData();
+ this.data.meetingConponent?.initData();
},
/**
diff --git a/src/openeuler/package-meeting/reserve/reserve.js b/src/openeuler/package-meeting/reserve/reserve.js
index 0998cde..a4d4093 100644
--- a/src/openeuler/package-meeting/reserve/reserve.js
+++ b/src/openeuler/package-meeting/reserve/reserve.js
@@ -51,7 +51,7 @@ let localMethods = {
this.toast('请选择开始时间');
return;
}
- if (new Date() > new Date(`${that.data.date} ${that.data.start}`)) {
+ if (new Date() > new Date(`${that.data.date} ${that.data.start}`.replace(/-/g, '/'))) {
this.toast('会议时间已过,请正确选择');
return;
}
@@ -67,10 +67,37 @@ let localMethods = {
this.toast('开始时间必须小于结束时间');
return;
}
+ if (!that.data.etherpad) {
+ this.toast('etherpad地址不能为空');
+ return;
+ }
+ const regex = /^https:\/\/etherpad/;
+ if (!regex.test(that.data.etherpad)) {
+ this.toast('请正确填写etherpad');
+ return;
+ }
+ if (that.data.emaillist?.includes(';')) {
+ this.toast('多个邮箱请使用英文分号分割');
+ return;
+ }
+ const mailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
+ const emailArray = that.data.emaillist.split(';');
+ for (let i = 0; i < emailArray.length; i++) {
+ let email = emailArray[i].trim(); // 去除空格
+ if (email && !mailRegex.test(email)) {
+ this.toast(`${email}不是一个有效的邮箱地址`);
+ return;
+ }
+ }
if (!that.data.privacyState) {
this.toast('请先阅读并同意隐私声明');
return;
}
+ const regexHttp = /(http:\/\/|https:\/\/|www.)/;
+ if (regexHttp.test(that.data.topic) || regexHttp.test(that.data.agenda)) {
+ this.toast('输入内容中禁止包含链接');
+ return;
+ }
return true;
},
toast: function (msg) {
@@ -81,6 +108,7 @@ let localMethods = {
});
},
};
+
Page({
/**
* 页面的初始数据
@@ -163,6 +191,7 @@ Page({
etherpad: '',
agenda: '',
emaillist: '',
+ privacyState: false,
});
},
meeting: function () {
@@ -172,18 +201,13 @@ Page({
let that = this;
wx.requestSubscribeMessage({
tmplIds: ['2xSske0tAcOVKNG9EpBjlb1I-cjPWSZrpwPDTgqAmWI'],
- success(res) {
+ success() {
+ console.log(that.data.emaillist);
+ that.data.emaillist.replace(/;/g, ';');
let email = null;
if (that.data.sendDev) {
- if (
- that.data.emaillist.at(-1) == ';' ||
- that.data.emaillist.at(-1) == ';' ||
- that.data.emaillist.at(-1) == ''
- ) {
- email = `${that.data.emaillist}dev@openeuler.org;`;
- } else {
- email = `${that.data.emaillist};dev@openeuler.org;`;
- }
+ email = that.data.emaillist ? `${that.data.emaillist};dev@openeuler.org;` : 'dev@openeuler.org;';
+ email.replace(';;', ';');
} else {
email = that.data.emaillist;
}
@@ -213,7 +237,7 @@ Page({
{
title: data.message,
icon: 'none',
- duration: 4000,
+ duration: 2000,
},
100
);
@@ -255,7 +279,7 @@ Page({
groupName: sigObj.group_name || '',
groupId: sigObj.group || '',
etherpad: sigObj.etherpad || '',
- emaillist: `${sigObj.maillist}` || '',
+ emaillist: sigObj.maillist || '',
sigPopShow: false,
});
},
@@ -378,17 +402,17 @@ Page({
},
dateOnInput: function (e) {
this.setData({
- currentDate: e.detail.value,
+ currentDate: e.detail,
});
},
timeOnInput: function (e) {
this.setData({
- currentTime: e.detail.value,
+ currentTime: e.detail,
});
},
endTimeOnInput: function (e) {
this.setData({
- currentEndTime: e.detail.value,
+ currentEndTime: e.detail,
});
},
});
diff --git a/src/openeuler/package-meeting/reserve/reserve.json b/src/openeuler/package-meeting/reserve/reserve.json
index 4b580ed..0f717c8 100644
--- a/src/openeuler/package-meeting/reserve/reserve.json
+++ b/src/openeuler/package-meeting/reserve/reserve.json
@@ -1,8 +1,5 @@
{
"navigationBarTitleText": "预定会议",
"navigationBarBackgroundColor": "#002fa7",
- "navigationBarTextStyle": "white",
- "usingComponents": {
- "t-date-time-picker": "tdesign-miniprogram/miniprogram_dist/date-time-picker/date-time-picker"
- }
+ "navigationBarTextStyle": "white"
}
\ No newline at end of file
diff --git a/src/openeuler/package-meeting/reserve/reserve.wxml b/src/openeuler/package-meeting/reserve/reserve.wxml
index a00e274..e7c5b7a 100644
--- a/src/openeuler/package-meeting/reserve/reserve.wxml
+++ b/src/openeuler/package-meeting/reserve/reserve.wxml
@@ -7,7 +7,8 @@
会议名称
*
-
+
@@ -28,7 +29,8 @@
发起人
-
+
@@ -62,13 +64,18 @@
- Etherpad链接
-
+
+ Etherpad链接
+ *
+
+
自动录制会议
-
+
@@ -80,19 +87,22 @@
会议内容
-
邮件地址
-
+
发送给dev@openeuler.org
-
+
@@ -100,7 +110,7 @@
- 多个邮箱地址用分号;隔开
+ 多个邮箱地址用分号;隔开。长度最长为1000,每个邮箱长度最长为50,限制20个邮箱
@@ -111,7 +121,8 @@
-
+
已阅读并同意隐私声明
@@ -137,38 +148,41 @@
-
-
-
-
-
-
-
+
+
+ 选择预定会议日期
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ 选择会议开始时间
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+ 选择会议结束时间
+
+
+
+
-
-
-
+
+
+
当前您不属于任何SIG组,请先在SIG管理中关联SIG组
@@ -183,7 +197,8 @@
-
+
{{item}}
diff --git a/src/openeuler/package-meeting/sig/sig-list.json b/src/openeuler/package-meeting/sig/sig-list.json
index f8acfea..64e2a52 100644
--- a/src/openeuler/package-meeting/sig/sig-list.json
+++ b/src/openeuler/package-meeting/sig/sig-list.json
@@ -1,7 +1,4 @@
{
- "usingComponents": {
- "van-cell": "@vant/weapp/cell/index",
- "van-cell-group": "@vant/weapp/cell-group/index"
- },
+ "usingComponents": {},
"navigationBarTitleText": "SIG组管理"
}
\ No newline at end of file
diff --git a/src/openeuler/package-my/my/help.js b/src/openeuler/package-my/my/help.js
index 526e427..c373aa8 100644
--- a/src/openeuler/package-my/my/help.js
+++ b/src/openeuler/package-my/my/help.js
@@ -1,5 +1,6 @@
// pages/my/help.js
-const resourceUrl = 'https://openeuler-website.obs.ap-southeast-1.myhuaweicloud.com/help';
+const { OBS_URL } = require('./../../utils/url-config');
+const resourceUrl = `${OBS_URL}/help`;
Page({
/**
diff --git a/src/openeuler/package-my/my/privecy-seting.js b/src/openeuler/package-my/my/privecy-seting.js
index 2a8e5e5..8233959 100644
--- a/src/openeuler/package-my/my/privecy-seting.js
+++ b/src/openeuler/package-my/my/privecy-seting.js
@@ -41,11 +41,13 @@ Page({
isLogoffDiaShown: false,
content: '',
deleteText: '',
+ gitee: ''
},
onLoad: function () {
this.setData({
avatarUrl: sessionUtil.getUserInfoByKey('avatarUrl'),
nickName: sessionUtil.getUserInfoByKey('nickName'),
+ gitee: sessionUtil.getUserInfoByKey('gitee'),
});
},
shownDialog: function (e) {
@@ -94,4 +96,4 @@ Page({
isPrivecyDiaShown: false,
});
},
-});
+});
\ No newline at end of file
diff --git a/src/openeuler/package-my/my/privecy-seting.less b/src/openeuler/package-my/my/privecy-seting.less
index 13fd111..8685c45 100644
--- a/src/openeuler/package-my/my/privecy-seting.less
+++ b/src/openeuler/package-my/my/privecy-seting.less
@@ -16,12 +16,13 @@
display: flex;
align-items: center;
image {
- margin-right: 8rpx;
+ margin-right: 8rpx;
}
}
image {
width: 34rpx;
height: 34rpx;
+ border-radius: 50%;
}
}
@@ -30,6 +31,20 @@
display: flex;
align-items: center;
}
+ .name-box {
+ display: flex;
+ align-items: flex-start;
+ flex-direction: column;
+ font-size: 26rpx;
+ .gitee {
+ font-size: 36rpx;
+ }
+ .nickname {
+ margin-top: 20rpx;
+ font-size: 26rpx;
+ color: #6d7278;
+ }
+ }
image {
margin-right: 40rpx;
width: 135rpx;
diff --git a/src/openeuler/package-my/my/privecy-seting.wxml b/src/openeuler/package-my/my/privecy-seting.wxml
index eba0154..4a71b0d 100644
--- a/src/openeuler/package-my/my/privecy-seting.wxml
+++ b/src/openeuler/package-my/my/privecy-seting.wxml
@@ -1,50 +1,51 @@
-
-
-
- {{nickName}}
-
+
+
+
+
+ {{gitee || '未输入ID'}}
+ {{nickName}}
+
-
- 取消同意隐私声明
-
-
-
-
+
+
+ 取消同意隐私声明
+
+
+
-
-
-
-
- 账号注销
-
-
-
-
-
+
+
+
+
+
+ 账号注销
-
-
-
- 请确认是否撤销同意隐私声明
-
-
-
-
-
-
-
-
- 注销账号后,此账号所有数据都将被删除且不可逆,请谨慎操作!
- 请输入“delete”进行验证:
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ 请确认是否撤销同意隐私声明
+
+
+
+
+
+
+
+
+ 注销账号后,此账号所有数据都将被删除且不可逆,请谨慎操作!
+ 请输入“delete”进行验证:
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/openeuler/package-my/my/privecy-seting.wxss b/src/openeuler/package-my/my/privecy-seting.wxss
index 035967a..3fe4ee0 100644
--- a/src/openeuler/package-my/my/privecy-seting.wxss
+++ b/src/openeuler/package-my/my/privecy-seting.wxss
@@ -28,6 +28,20 @@
display: flex;
align-items: center;
}
+.my-user-info .name-box {
+ display: flex;
+ align-items: flex-start;
+ flex-direction: column;
+ font-size: 26rpx;
+}
+.my-user-info .name-box .gitee {
+ font-size: 36rpx;
+}
+.my-user-info .name-box .nickname {
+ margin-top: 20rpx;
+ font-size: 26rpx;
+ color: #6d7278;
+}
.my-user-info image {
margin-right: 40rpx;
width: 135rpx;
diff --git a/src/openeuler/package-my/my/qrcode.js b/src/openeuler/package-my/my/qrcode.js
index dc14e14..dcda18e 100644
--- a/src/openeuler/package-my/my/qrcode.js
+++ b/src/openeuler/package-my/my/qrcode.js
@@ -1,5 +1,5 @@
-// package-my/my/qrcode.js
-const resourceUrl = 'https://openeuler-website.obs.ap-southeast-1.myhuaweicloud.com/qrcode/';
+const { OBS_URL } = require('./../../utils/url-config');
+const resourceUrl = `${OBS_URL}/qrcode/`;
Page({
/**
* 页面的初始数据
diff --git a/src/openeuler/package.json b/src/openeuler/package.json
index 3e1f666..425bc0a 100644
--- a/src/openeuler/package.json
+++ b/src/openeuler/package.json
@@ -1,7 +1,13 @@
-{
- "dependencies": {
- "@vant/weapp": "^1.6.8",
- "tdesign-miniprogram": "^1.0.0-rc.2",
- "wxml-to-canvas": "^1.1.1"
- }
-}
+{
+ "dependencies": {
+ "@vant/weapp": "^1.11.1"
+ },
+ "name": "openeuler",
+ "main": "app.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "author": "",
+ "license": "ISC",
+ "description": ""
+}
diff --git a/src/openeuler/pages/auth/auth.js b/src/openeuler/pages/auth/auth.js
index d993917..659199a 100644
--- a/src/openeuler/pages/auth/auth.js
+++ b/src/openeuler/pages/auth/auth.js
@@ -6,143 +6,144 @@ const sessionUtil = require('../../utils/app-session.js');
let that = null;
Page(
- mixin({
- /**
- * 页面的初始数据
- */
- data: {
- url: '',
- id: '',
- record: false,
- canIUseGetUserProfile: false,
- isPrivecyShown: false,
- },
- onLoad(options) {
- that = this;
- if (options.id) {
- this.setData({
- id: options.id,
- });
- }
+ mixin({
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ url: '',
+ id: '',
+ record: false,
+ canIUseGetUserProfile: false,
+ isPrivecyShown: false,
+ },
+ onLoad(options) {
+ that = this;
+ if (options.id) {
+ this.setData({
+ id: options.id,
+ });
+ }
- if (wx.getUserProfile) {
+ if (wx.getUserProfile) {
+ this.setData({
+ canIUseGetUserProfile: true,
+ });
+ }
+ },
+ /**
+ * 绑定获取用户信息
+ */
+ bindGetUserInfo: function () {
+ wx.getSetting({
+ success: function (res) {
+ if (res.authSetting['scope.userInfo']) {
+ appUser.wxLogin(function () {
+ const pages = getCurrentPages(); // 当前页面
+ const beforePage =
+ pages[pages.length - 2].route === 'pages/auth/auth' ? pages[pages.length - 3] : pages[pages.length - 2]; // 前一个页面
+ const id = beforePage?.options.id || that.data.id;
+ const url = id ? '/' + beforePage?.route + '?id=' + id : '/' + beforePage?.route;
+ if (!sessionUtil.getUserInfoByKey('agreePrivacy')) {
this.setData({
- canIUseGetUserProfile: true,
+ isPrivecyShown: true,
+ url,
});
- }
- },
- /**
- * 绑定获取用户信息
- */
- bindGetUserInfo: function () {
- wx.getSetting({
- success: function (res) {
- if (res.authSetting['scope.userInfo']) {
- appUser.wxLogin(function () {
- const pages = getCurrentPages(); // 当前页面
- const beforePage =
- pages[pages.length - 2].route === 'pages/auth/auth' ? pages[pages.length - 3] : pages[pages.length - 2]; // 前一个页面
- const id = beforePage?.options.id || that.data.id;
- const url = id ? '/' + beforePage?.route + '?id=' + id : '/' + beforePage?.route;
- if (!sessionUtil.getUserInfoByKey('agreePrivacy')) {
- this.setData({
- isPrivecyShown: true,
- url
- });
- }
- wx.reLaunch({
- url: url,
- });
- });
- }
- },
+ }
+ wx.reLaunch({
+ url: url,
+ });
});
+ }
},
- bindGetUserProfile() {
- if (!this.data.record) {
- wx.showToast({
- title: '请先阅读并同意隐私声明',
- icon: 'none',
- duration: 2000,
- },
- 100
- );
- return false;
+ });
+ },
+ bindGetUserProfile() {
+ if (!this.data.record) {
+ wx.showToast(
+ {
+ title: '请先阅读并同意隐私声明',
+ icon: 'none',
+ duration: 2000,
+ },
+ 100
+ );
+ return false;
+ }
+ wx.getUserProfile({
+ desc: '用于会议和活动所需信息',
+ success: (res) => {
+ appUser.wxGetUserProfileLogin(function () {
+ const pages = getCurrentPages(); // 当前页面
+ const beforePage =
+ pages[pages.length - 2]?.route === 'pages/auth/auth' ? pages[pages.length - 3] : pages[pages.length - 2]; // 前一个页面
+ const id = beforePage?.options.id || that.data.id;
+ const url = id ? '/' + beforePage?.route + '?id=' + id : '/' + beforePage?.route;
+ if (!sessionUtil.getUserInfoByKey('agreePrivacy')) {
+ that.setData({
+ isPrivecyShown: true,
+ url: url,
+ });
+ } else {
+ wx.reLaunch({
+ url: url,
+ });
}
- wx.getUserProfile({
- desc: '用于会议和活动所需信息',
- success: (res) => {
- appUser.wxGetUserProfileLogin(function () {
- const pages = getCurrentPages(); // 当前页面
- const beforePage =
- pages[pages.length - 2]?.route === 'pages/auth/auth' ? pages[pages.length - 3] : pages[pages.length - 2]; // 前一个页面
- const id = beforePage?.options.id || that.data.id;
- const url = id ? '/' + beforePage?.route + '?id=' + id : '/' + beforePage?.route;
- if (!sessionUtil.getUserInfoByKey('agreePrivacy')) {
- that.setData({
- isPrivecyShown: true,
- url: url
- });
- } else {
- wx.reLaunch({
- url: url,
- });
- }
- }, res.userInfo);
- },
- fail:(err) => {
- console.log(err);
- }
- });
- },
- recordoOnChange: function (event) {
- this.setData({
- record: event.detail,
- });
+ }, res.userInfo);
},
- toPrivacy() {
- wx.navigateTo({
- url: '/package-my/my/privecy',
- });
- },
- handleDotAgree: function () {
- sessionUtil.clearUserInfo();
- this.setData({
- isPrivecyShown: false,
- });
- wx.switchTab({
- url: '/pages/index/index',
- });
- },
- setAgreeState: function (_callback) {
- appAjax.postJson({
- type: 'PUT',
- service: 'AGREE',
- success: function (ret) {
- _callback && _callback(ret);
- },
- fail: function () {
- this.setData({
- isPrivecyShown: false,
- });
- }
- });
+ fail: (err) => {
+ console.log(err);
},
- setStorage: function () {
- let data = wx.getStorageSync("_app_userinfo_session");
- data.agreePrivacy = true;
- wx.setStorageSync("_app_userinfo_session", data);
+ });
+ },
+ recordoOnChange: function (event) {
+ this.setData({
+ record: event.detail,
+ });
+ },
+ toPrivacy() {
+ wx.navigateTo({
+ url: '/package-my/my/privecy',
+ });
+ },
+ handleDotAgree: function () {
+ sessionUtil.clearUserInfo();
+ this.setData({
+ isPrivecyShown: false,
+ });
+ wx.switchTab({
+ url: '/pages/index/index',
+ });
+ },
+ setAgreeState: function (_callback) {
+ appAjax.postJson({
+ type: 'PUT',
+ service: 'AGREE',
+ success: function (ret) {
+ _callback && _callback(ret);
},
- handleClick: function () {
- this.setAgreeState(() => {
- this.setStorage();
- this.setData({
- isPrivecyShown: false,
- });
- wx.reLaunch({
- url: this.data.url || '/pages/index/index',
- });
- })
+ fail: function () {
+ this.setData({
+ isPrivecyShown: false,
+ });
},
- })
-);
\ No newline at end of file
+ });
+ },
+ setStorage: function () {
+ let data = wx.getStorageSync('_app_userinfo_session');
+ data.agreePrivacy = true;
+ wx.setStorageSync('_app_userinfo_session', data);
+ },
+ handleClick: function () {
+ this.setAgreeState(() => {
+ this.setStorage();
+ this.setData({
+ isPrivecyShown: false,
+ });
+ wx.reLaunch({
+ url: this.data.url || '/pages/index/index',
+ });
+ });
+ },
+ })
+);
diff --git a/src/openeuler/pages/index/index.js b/src/openeuler/pages/index/index.js
index 62da5f3..9e14320 100644
--- a/src/openeuler/pages/index/index.js
+++ b/src/openeuler/pages/index/index.js
@@ -60,7 +60,7 @@ Page(
onPullDownRefresh: function () {
wx.stopPullDownRefresh();
appUser.updateUserInfo(function () {
- that.data.meetingConponent.initData();
+ that.data.meetingConponent?.initData();
});
},
actionStatus(e) {
diff --git a/src/openeuler/pages/meeting/meeting.js b/src/openeuler/pages/meeting/meeting.js
index 87f41bd..c892e68 100644
--- a/src/openeuler/pages/meeting/meeting.js
+++ b/src/openeuler/pages/meeting/meeting.js
@@ -45,9 +45,9 @@ Page(
wx.stopPullDownRefresh();
appUser.updateUserInfo(function () {
that.setData({
- level: sessionUtil.getUserInfoByKey('level'),
+ level: sessionUtil.getUserInfoByKey('level') || 1,
});
- that.data.meetingConponent.initData();
+ that.data.meetingConponent?.initData();
});
},
actionStatus(e) {
diff --git a/src/openeuler/pages/meeting/meeting.wxml b/src/openeuler/pages/meeting/meeting.wxml
index 148965a..1cd3007 100644
--- a/src/openeuler/pages/meeting/meeting.wxml
+++ b/src/openeuler/pages/meeting/meeting.wxml
@@ -2,7 +2,8 @@
-
+
SIG组管理
@@ -18,7 +19,8 @@
-
+
您暂时没有预定会议的权限,请联系小助手 (微信号openeuler123) 提交预定会议权限申请
diff --git a/src/openeuler/project.private.config.json b/src/openeuler/project.private.config.json
index 5a6eccc..156487a 100644
--- a/src/openeuler/project.private.config.json
+++ b/src/openeuler/project.private.config.json
@@ -5,6 +5,20 @@
"condition": {
"miniprogram": {
"list": [
+ {
+ "name": "",
+ "pathName": "package-events/publish/publish",
+ "query": "",
+ "launchMode": "default",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "package-meeting/reserve/reserve",
+ "query": "",
+ "launchMode": "default",
+ "scene": null
+ },
{
"name": "",
"pathName": "package-my/my/privecy-seting",
diff --git a/src/openeuler/typings/wx.d.ts b/src/openeuler/typings/wx.d.ts
new file mode 100644
index 0000000..a2ffc2b
--- /dev/null
+++ b/src/openeuler/typings/wx.d.ts
@@ -0,0 +1,2705 @@
+// generate time:2017-08-23 21:12:06
+// Type definitions for wx app
+// Definitions by: hellopao
+
+/************************************************
+* *
+* 微信小程序 API *
+* *
+************************************************/
+
+interface IAnimation {
+ /**
+ * 透明度,参数范围 0~1
+ */
+ opacity(value: number): IAnimation;
+ /**
+ * 颜色值
+ */
+ backgroundColor(color: string): IAnimation;
+ /**
+ * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
+ */
+ width(length: number): IAnimation;
+ /**
+ * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
+ */
+ height(length: number): IAnimation;
+ /**
+ * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
+ */
+ top(length: number): IAnimation;
+ /**
+ * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
+ */
+ left(length: number): IAnimation;
+ /**
+ * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
+ */
+ bottom(length: number): IAnimation;
+ /**
+ * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
+ */
+ right(length: number): IAnimation;
+ /**
+ * deg的范围-180~180,从原点顺时针旋转一个deg角度
+ */
+ rotate(deg: number): IAnimation;
+ /**
+ * deg的范围-180~180,在X轴旋转一个deg角度
+ */
+ rotateX(deg: number): IAnimation;
+ /**
+ * deg的范围-180~180,在Y轴旋转一个deg角度
+ */
+ rotateY(deg: number): IAnimation;
+ /**
+ * deg的范围-180~180,在Z轴旋转一个deg角度
+ */
+ rotateZ(deg: number): IAnimation;
+ /**
+ * 同transform-function rotate3d
+ */
+ rotate3d(x: number, y: number, z: number, deg: number): IAnimation;
+ /**
+ * 一个参数时,表示在X轴、Y轴同时缩放sx倍数;两个参数时表示在X轴缩放sx倍数,在Y轴缩放sy倍数
+ */
+ scale(sx: number, sy?: number): IAnimation;
+ /**
+ * 在X轴缩放sx倍数
+ */
+ scaleX(sx: number): IAnimation;
+ /**
+ * 在Y轴缩放sy倍数
+ */
+ scaleY(sy: number): IAnimation;
+ /**
+ * 在Z轴缩放sy倍数
+ */
+ scaleZ(sz: number): IAnimation;
+ /**
+ * 在X轴缩放sx倍数,在Y轴缩放sy倍数,在Z轴缩放sz倍数
+ */
+ scale3d(sx: number, sy: number, sz: number): IAnimation;
+ /**
+ * 一个参数时,表示在X轴偏移tx,单位px;两个参数时,表示在X轴偏移tx,在Y轴偏移ty,单位px。
+ */
+ translate(tx: number, ty?: number): IAnimation;
+ /**
+ * 在X轴偏移tx,单位px
+ */
+ translateX(tx: number): IAnimation;
+ /**
+ * 在Y轴偏移tx,单位px
+ */
+ translateY(tx: number): IAnimation;
+ /**
+ * 在Z轴偏移tx,单位px
+ */
+ translateZ(tx: number): IAnimation;
+ /**
+ * 在X轴偏移tx,在Y轴偏移ty,在Z轴偏移tz,单位px
+ */
+ translate3d(tx: number, ty: number, tz: number): IAnimation;
+ /**
+ * 参数范围-180~180;一个参数时,Y轴坐标不变,X轴坐标延顺时针倾斜ax度;两个参数时,分别在X轴倾斜ax度,在Y轴倾斜ay度
+ */
+ skew(ax: number, ay?: number): IAnimation;
+ /**
+ * 参数范围-180~180;Y轴坐标不变,X轴坐标延顺时针倾斜ax度
+ */
+ skewX(ax: number): IAnimation;
+ /**
+ * 参数范围-180~180;X轴坐标不变,Y轴坐标延顺时针倾斜ay度
+ */
+ skewY(ay: number): IAnimation;
+ /**
+ * 同transform-function matrix
+ */
+ matrix(a, b, c, d, tx, ty): IAnimation;
+ /**
+ * 同transform-function matrix3d
+ */
+ matrix3d(): IAnimation;
+}
+
+interface ICanvasContext {
+ /**
+ * 设置填充色, 如果没有设置 fillStyle,默认颜色为 black。
+ */
+ setFillStyle(color: string): void;
+ /**
+ * 设置边框颜色, 如果没有设置 fillStyle,默认颜色为 black。
+ */
+ setStrokeStyle(color: string): void;
+ /**
+ * 设置阴影
+ */
+ setShadow(offsetX: number, offsetY: number, blur: number, color: string): void;
+ /**
+ * 创建一个线性的渐变颜色。需要使用 addColorStop() 来指定渐变点,至少要两个。
+ */
+ createLinearGradient(x0: number, y0: number, x1: number, y1: number): void;
+ /**
+ * 创建一个圆形的渐变颜色。 起点在圆心,终点在圆环。 需要使用 addColorStop() 来指定渐变点,至少要两个。
+ */
+ createCircularGradient(x: number, y: number, r: number): void;
+ /**
+ * 创建一个颜色的渐变点。小于最小 stop 的部分会按最小 stop 的 color 来渲染,大于最大 stop 的部分会按最大 stop 的 color 来渲染。需要使用 addColorStop() 来指定渐变点,至少要两个。
+ */
+ addColorStop(stop: number, color: string): void;
+ /**
+ * 设置线条端点的样式
+ */
+ setLineCap(lineCap: 'butt' | 'round' | 'square'): void;
+ /**
+ * 设置两线相交处的样式
+ */
+ setLineJoin(lineJoin: 'bevel' | 'round' | 'miter'): void;
+ /**
+ * 设置线条宽度
+ */
+ setLineWidth(lineWidth: number): void;
+ /**
+ * 设置最大倾斜
+ */
+ setMiterLimit(miterLimit: number): void;
+ /**
+ * 添加一个矩形路径到当前路径。
+ */
+ rect(x: number, y: number, width: number, height: number): void;
+ /**
+ * 填充一个矩形。用 setFillStyle() 设置矩形的填充色,如果没设置默认是黑色。
+ */
+ fillRect(x: number, y: number, width: number, height: number): void;
+ /**
+ * 一个矩形(非填充)。用 setFillStroke() 设置矩形线条的颜色,如果没设置默认是黑色。
+ */
+ strokeRect(x: number, y: number, width: number, height: number): void;
+ /**
+ * 在给定的矩形区域内,清除画布上的像素
+ */
+ clearRect(x: number, y: number, width: number, height: number): void;
+ /**
+ * 对当前路径进行填充
+ */
+ fill(): void;
+ /**
+ * 对当前路径进行描边
+ */
+ stroke(): void;
+ /**
+ * 开始一个路径
+ */
+ beginPath(): void;
+ /**
+ * 关闭一个路径
+ */
+ closePath(): void;
+ /**
+ * 把路径移动到画布中的指定点,但不创建线条。
+ */
+ moveTo(x: number, y: number): void;
+ /**
+ * 添加一个新点,然后在画布中创建从该点到最后指定点的线条。
+ */
+ lineTo(x: number, y: number): void;
+ /**
+ * 添加一个弧形路径到当前路径,顺时针绘制。
+ */
+ arc(x: number, y: number, radius: number, startAngle: number, sweepAngle: number): void;
+ /**
+ * 创建二次方贝塞尔曲线
+ */
+ quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
+ /**
+ * 创建三次方贝塞尔曲线
+ */
+ bezierCurveTo(cpx1: number, cpy1: number, cpx2: number, cpy2: number, x: number, y: number): void;
+ /**
+ * 对横纵坐标进行缩放
+ */
+ scale(scaleWidth: number/**横坐标缩放的倍数1 = 100%,0.5 = 50%,2 = 200%,依次类 */, scaleHeight: number/** 纵坐标轴缩放的倍数1 = 100%,0.5 = 50%,2 = 200%,依次类 */): void;
+ /**
+ * 对坐标轴进行顺时针旋转
+ */
+ rotate(deg: number/**degrees * Math.PI/180;degrees范围为0~360;旋转角度,以弧度计 */): void;
+ /**
+ * 对坐标原点进行缩放
+ */
+ translate(x: number/**水平坐标平移量 */, y: number/**竖直坐标平移量 */): void;
+ /**
+ * 在画布上绘制被填充的文本
+ */
+ fillText(text: string, x: number, y: number): void;
+ /**
+ * 设置字体大小
+ */
+ setFontSize(fontSize: number): void;
+ /**
+ * 在画布上绘制图像
+ */
+ drawImage(imageResource: string, x: number, y: number, width: number, height: number): void;
+ /**
+ * 设置全局画笔透明度。
+ */
+ setGlobalAlpha(alpha: number): void;
+ /**
+ * 保存当前坐标轴的缩放、旋转、平移信息
+ */
+ save(): void;
+ /**
+ * 恢复之前保存过的坐标轴的缩放、旋转、平移信息
+ */
+ restore(): void;
+ /**
+ * 进行绘图
+ */
+ draw(): void;
+}
+
+interface IAudioContext {
+ /**
+ * 播放
+ */
+ play: () => void;
+ /**
+ * 暂停
+ */
+ pause: () => void;
+ /**
+ * 跳转到指定位置,单位 s
+ */
+ seek: (position: number) => void;
+}
+
+interface IVideoContext {
+ /**
+ * 播放
+ */
+ play: () => void;
+ /**
+ * 暂停
+ */
+ pause: () => void;
+ /**
+ * 跳转到指定位置,单位 s
+ */
+ seek: (position: number) => void;
+ /**
+ * 发送弹幕,danmu 包含两个属性 text, color。
+ */
+ sendDanmu: (danmu: {text: string; color: string;}) => void;
+}
+
+interface IMapContext {
+ /**
+ * 获取当前地图中心的经纬度,返回的是 gcj02 坐标系,可以用于 wx.openLocation
+ */
+ getCenterLocation: (obj: {
+ /**
+ * 接口调用成功的回调函数 ,res = { longitude: "经度", latitude: "纬度"}
+ */
+ success?: (res: {longitude: string; latitude: string}) => void;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: () => void;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: () => void;
+ }) => void;
+ /**
+ * 将地图中心移动到当前定位点,需要配合map组件的show-location使用
+ */
+ moveToLocation: () => void;
+}
+
+interface Application {
+ setData: (obj: any) => void;
+}
+
+interface AppConstructor {
+ new (): Application;
+ (opts: {
+ /**
+ * 生命周期函数--监听小程序初始化
+ */
+ onLaunch?: () => void;
+ /**
+ * 生命周期函数--监听小程序显示
+ */
+ onShow?: () => void;
+ /**
+ * 生命周期函数--监听小程序隐藏
+ */
+ onHide?: () => void;
+
+ [key: string]: any;
+ }): Application;
+}
+
+declare var App: AppConstructor;
+declare function getApp(): Application;
+
+declare function getCurrentPages(): Page[];
+
+interface Page {
+ setData: (obj: any) => void;
+}
+
+interface PageConstructor {
+ new (): Page;
+ (opts: {
+ /**
+ * 页面的初始数据
+ */
+ data?: any;
+ /**
+ * 页面的初始数据
+ */
+ onLoad?: () => void;
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady?: () => void;
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow?: () => void;
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide?: () => void;
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload?: () => void;
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefreash?: () => void;
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom?: () => void;
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage?: () => {
+ /**
+ * 分享标题, 默认值当前小程序名称
+ */
+ title: string;
+ /**
+ * 分享描述, 默认值当前小程序名称
+ */
+ desc: string;
+ /**
+ * 分享路径 默认值当前页面 path ,必须是以 / 开头的完整路径
+ */
+ path: string;
+ };
+
+ [key: string]: any;
+ }): Page;
+}
+
+declare var Page: PageConstructor;
+
+declare var wx: {
+ // # 网络 #
+
+ request(obj: {
+ /**
+ * 开发者服务器接口地址
+ */
+ url: string;
+ /**
+ * 请求的参数
+ */
+ data?: any | string;
+ /**
+ * 设置请求的 header , header 中不能设置 Referer
+ */
+ header?: any;
+ /**
+ * 默认为 GET,有效值:OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
+ */
+ method?: string;
+ /**
+ * 默认为 json。如果设置了 dataType 为 json,则会尝试对响应的数据做一次 JSON.parse
+ */
+ dataType?: string;
+ /**
+ * 收到开发者服务成功返回的回调函数,res = {data: '开发者服务器返回的内容'}
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 将本地资源上传到开发者服务器。如页面通过 wx.chooseImage 等接口获取到一个本地资源的临时文件路径后,可通过此接口将本地资源上传到指定服务器。客户端发起一个 HTTPS POST 请求,其中 content-type 为 multipart/form-data 。
+ */
+ uploadFile(obj: {
+ /**
+ * 开发者服务器 url
+ */
+ url: string;
+ /**
+ * 要上传文件资源的路径
+ */
+ filePath: string;
+ /**
+ * 文件对应的 key , 开发者在服务器端通过这个 key 可以获取到文件二进制内容
+ */
+ name: string;
+ /**
+ * HTTP 请求 Header , header 中不能设置 Referer
+ */
+ header?: any;
+ /**
+ * HTTP 请求中其他额外的 form data
+ */
+ formData?: any;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 下载文件资源到本地。客户端直接发起一个 HTTP GET 请求,返回文件的本地临时路径。
+ */
+ downloadFile(obj: {
+ /**
+ * 下载资源的 url
+ */
+ url: string;
+ /**
+ * HTTP 请求 Header
+ */
+ header?: any;
+ /**
+ * 下载成功后以 tempFilePath 的形式传给页面,res = {tempFilePath: '文件的临时路径'}
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 创建一个 WebSocket 连接;一个微信小程序同时只能有一个 WebSocket 连接,如果当前已存在一个 WebSocket 连接,会自动关闭该连接,并重新创建一个 WebSocket 连接。
+ */
+ connectSocket(obj: {
+ /**
+ * 开发者服务器接口地址,必须是 wss 协议,且域名必须是后台配置的合法域名
+ */
+ url: string;
+ /**
+ * 请求的数据
+ */
+ data?: any;
+ /**
+ * HTTP Header , header 中不能设置 Referer
+ */
+ header?: any;
+ /**
+ * 默认是GET,有效值: OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
+ */
+ method?: string;
+ /**
+ * 子协议数组
+ */
+ protocols?: string[];
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 监听WebSocket连接打开事件。
+ */
+ onSocketOpen(callback: Function): void;
+
+ /**
+ * 监听WebSocket错误。
+ */
+ onSocketError(callback: Function): void;
+
+ /**
+ * 通过 WebSocket 连接发送数据,需要先 wx.connectSocket,并在 wx.onSocketOpen 回调之后才能发送。
+ */
+ sendSocketMessage(obj: {
+ /**
+ * 需要发送的内容
+ */
+ data: undefined;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 监听WebSocket接受到服务器的消息事件。
+ */
+ onSocketMessage(callback: Function): void;
+
+ /**
+ * 关闭WebSocket连接。
+ */
+ closeSocket(obj: {
+ /**
+ * 一个数字值表示关闭连接的状态号,表示连接被关闭的原因。如果这个参数没有被指定,默认的取值是1000 (表示正常连接关闭)
+ */
+ code?: number;
+ /**
+ * 一个可读的字符串,表示连接被关闭的原因。这个字符串必须是不长于123字节的UTF-8 文本(不是字符)
+ */
+ reason?: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 监听WebSocket关闭。
+ */
+ onSocketClose(callback: Function): void;
+
+ // # 媒体 #
+
+ /**
+ * 从本地相册选择图片或使用相机拍照。
+ */
+ chooseImage(obj: {
+ /**
+ * 最多可以选择的图片张数,默认9
+ */
+ count?: number;
+ /**
+ * original 原图,compressed 压缩图,默认二者都有
+ */
+ sizeType?: string[];
+ /**
+ * album 从相册选图,camera 使用相机,默认二者都有
+ */
+ sourceType?: string[];
+ /**
+ * 成功则返回图片的本地文件路径列表 tempFilePaths
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 预览图片。
+ */
+ previewImage(obj: {
+ /**
+ * 当前显示图片的链接,不填则默认为 urls 的第一张
+ */
+ current?: string;
+ /**
+ * 需要预览的图片链接列表
+ */
+ urls: string[];
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 获取图片信息
+ */
+ getImageInfo(obj: {
+ /**
+ * 图片的路径,可以是相对路径,临时文件路径,存储文件路径,网络图片路径
+ */
+ src: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ saveImageToPhotosAlbum(obj: {
+ /**
+ * 图片文件路径,可以是临时文件路径也可以是永久文件路径,不支持网络图片路径
+ */
+ filePath: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 开始录音。当主动调用wx.stopRecord,或者录音超过1分钟时自动结束录音,返回录音文件的临时文件路径。当用户离开小程序时,此接口无法调用。
+ */
+ startRecord(obj: {
+ /**
+ * 录音成功后调用,返回录音文件的临时文件路径,res = {tempFilePath: '录音文件的临时路径'}
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 主动调用停止录音。
+ */
+ stopRecord(): void;
+
+ /**
+ * 开始播放语音,同时只允许一个语音文件正在播放,如果前一个语音文件还没播放完,将中断前一个语音播放。
+ */
+ playVoice(obj: {
+ /**
+ * 需要播放的语音文件的文件路径
+ */
+ filePath: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 暂停正在播放的语音。再次调用wx.playVoice播放同一个文件时,会从暂停处开始播放。如果想从头开始播放,需要先调用 wx.stopVoice。
+ */
+ pauseVoice(): void;
+
+ /**
+ * 结束播放语音。
+ */
+ stopVoice(): void;
+
+ /**
+ * 获取后台音乐播放状态。
+ */
+ getBackgroundAudioPlayerState(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 使用后台播放器播放音乐,对于微信客户端来说,只能同时有一个后台音乐在播放。当用户离开小程序后,音乐将暂停播放;当用户点击“显示在聊天顶部”时,音乐不会暂停播放;当用户在其他小程序占用了音乐播放器,原有小程序内的音乐将停止播放。
+ */
+ playBackgroundAudio(obj: {
+ /**
+ * 音乐链接,目前支持的格式有 m4a, aac, mp3, wav
+ */
+ dataUrl: string;
+ /**
+ * 音乐标题
+ */
+ title?: string;
+ /**
+ * 封面URL
+ */
+ coverImgUrl?: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 暂停播放音乐。
+ */
+ pauseBackgroundAudio(): void;
+
+ /**
+ * 控制音乐播放进度。
+ */
+ seekBackgroundAudio(obj: {
+ /**
+ * 音乐位置,单位:秒
+ */
+ position: number;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 停止播放音乐。
+ */
+ stopBackgroundAudio(): void;
+
+ /**
+ * 监听音乐播放。
+ */
+ onBackgroundAudioPlay(callback: Function): void;
+
+ /**
+ * 监听音乐暂停。
+ */
+ onBackgroundAudioPause(callback: Function): void;
+
+ /**
+ * 监听音乐停止。
+ */
+ onBackgroundAudioStop(callback: Function): void;
+
+ getBackgroundAudioManager(): void;
+
+ /**
+ * 创建并返回 audio 上下文 audioContext 对象
+ */
+ createAudioContext(audioId: string): IAudioContext;
+
+ /**
+ * 拍摄视频或从手机相册中选视频,返回视频的临时文件路径。
+ */
+ chooseVideo(obj: {
+ /**
+ * album 从相册选视频,camera 使用相机拍摄,默认为:['album', 'camera']
+ */
+ sourceType?: string[];
+ /**
+ * 拍摄视频最长拍摄时间,单位秒。最长支持 60 秒
+ */
+ maxDuration?: number;
+ /**
+ * 默认调起的为前置还是后置摄像头。front: 前置,back: 后置,默认 back
+ */
+ camera?: string;
+ /**
+ * 接口调用成功,返回视频文件的临时文件路径,详见返回参数说明
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ saveVideoToPhotosAlbum(obj: {
+ /**
+ * 视频文件路径,可以是临时文件路径也可以是永久文件路径
+ */
+ filePath: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 创建并返回 video 上下文 videoContext 对象
+ */
+ createVideoContext(videoId: string): IVideoContext;
+
+ // # 文件 #
+
+ /**
+ * 保存文件到本地。
+ */
+ saveFile(obj: {
+ /**
+ * 需要保存的文件的临时路径
+ */
+ tempFilePath: string;
+ /**
+ * 返回文件的保存路径,res = {savedFilePath: '文件的保存路径'}
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 获取本地已保存的文件列表
+ */
+ getSavedFileList(obj: {
+ /**
+ * 接口调用成功的回调函数,返回结果见success返回参数说明
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 获取本地文件的文件信息。此接口只能用于获取已保存到本地的文件,若需要获取临时文件信息,请使用 wx.getFileInfo 接口。
+ */
+ getSavedFileInfo(obj: {
+ /**
+ * 文件路径
+ */
+ filePath: string;
+ /**
+ * 接口调用成功的回调函数,返回结果见success返回参数说明
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 删除本地存储的文件
+ */
+ removeSavedFile(obj: {
+ /**
+ * 需要删除的文件路径
+ */
+ filePath: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 新开页面打开文档,支持格式:doc, xls, ppt, pdf, docx, xlsx, pptx
+ */
+ openDocument(obj: {
+ /**
+ * 文件路径,可通过 downFile 获得
+ */
+ filePath: string;
+ /**
+ * 文件类型,指定文件类型打开文件,有效值 doc, xls, ppt, pdf, docx, xlsx, pptx
+ */
+ fileType?: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getFileInfo(obj: {
+ /**
+ * 本地文件路径
+ */
+ filePath: string;
+ /**
+ * 计算文件摘要的算法,默认值 md5,有效值:md5,sha1
+ */
+ digestAlgorithm?: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ // # 数据缓存 #
+
+ /**
+ * 将数据存储在本地缓存中指定的 key 中,会覆盖掉原来该 key 对应的内容,这是一个异步接口。
+ */
+ setStorage(obj: {
+ /**
+ * 本地缓存中的指定的 key
+ */
+ key: string;
+ /**
+ * 需要存储的内容
+ */
+ data: any;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 将 data 存储在本地缓存中指定的 key 中,会覆盖掉原来该 key 对应的内容,这是一个同步接口。
+ */
+ setStorageSync(key: string, data: any, ): void;
+
+ /**
+ * 从本地缓存中异步获取指定 key 对应的内容。
+ */
+ getStorage(obj: {
+ /**
+ * 本地缓存中的指定的 key
+ */
+ key: string;
+ /**
+ * 接口调用的回调函数,res = {data: key对应的内容}
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 从本地缓存中同步获取指定 key 对应的内容。
+ */
+ getStorageSync(key: string): void;
+
+ /**
+ * 异步获取当前storage的相关信息
+ */
+ getStorageInfo(obj: {
+ /**
+ * 接口调用的回调函数,详见返回参数说明
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 同步获取当前storage的相关信息
+ */
+ getStorageInfoSync(): void;
+
+ /**
+ * 从本地缓存中异步移除指定 key 。
+ */
+ removeStorage(obj: {
+ /**
+ * 本地缓存中的指定的 key
+ */
+ key: string;
+ /**
+ * 接口调用的回调函数
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 从本地缓存中同步移除指定 key 。
+ */
+ removeStorageSync(key: string): void;
+
+ /**
+ * 清理本地数据缓存。
+ */
+ clearStorage(): void;
+
+ /**
+ * 同步清理本地数据缓存
+ */
+ clearStorageSync(): void;
+
+ // # 位置 #
+
+ /**
+ * 获取当前的地理位置、速度。当用户离开小程序后,此接口无法调用;当用户点击“显示在聊天顶部”时,此接口可继续调用。
+ */
+ getLocation(obj: {
+ /**
+ * 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于wx.openLocation的坐标
+ */
+ type?: string;
+ /**
+ * 接口调用成功的回调函数,返回内容详见返回参数说明。
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 打开地图选择位置
+ */
+ chooseLocation(obj: {
+ /**
+ * 接口调用成功的回调函数,返回内容详见返回参数说明。
+ */
+ success: Function;
+ /**
+ * 用户取消时调用
+ */
+ cancel?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 使用微信内置地图查看位置
+ */
+ openLocation(obj: {
+ /**
+ * 纬度,范围为-90~90,负数表示南纬
+ */
+ latitude: number;
+ /**
+ * 经度,范围为-180~180,负数表示西经
+ */
+ longitude: number;
+ /**
+ * 缩放比例,范围5~18,默认为18
+ */
+ scale?: number;
+ /**
+ * 位置名
+ */
+ name?: string;
+ /**
+ * 地址的详细说明
+ */
+ address?: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 创建并返回 map 上下文 mapContext 对象
+ */
+ createMapContext(mapId: string): IMapContext;
+
+ // # 设备 #
+
+ /**
+ * 获取系统信息。
+ */
+ getSystemInfo(obj: {
+ /**
+ * 接口调用成功的回调
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 获取系统信息同步接口
+ */
+ getSystemInfoSync(): void;
+
+ /**
+ * 获取网络类型。
+ */
+ getNetworkType(obj: {
+ /**
+ * 接口调用成功,返回网络类型 networkType
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ onNetworkStatusChange(callback: Function): void;
+
+ setScreenBrightness(obj: {
+ /**
+ * 屏幕亮度值,范围 0~1,0 最暗,1 最亮
+ */
+ value: number;
+ /**
+ * 接口调用成功
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getScreenBrightness(obj: {
+ /**
+ * 接口调用成功
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ vibrateLong(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ vibrateShort(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 监听加速度数据,频率:5次/秒,接口调用后会自动开始监听,可使用 wx.stopAccelerometer 停止监听。
+ */
+ onAccelerometerChange(callback: Function): void;
+
+ startAccelerometer(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ stopAccelerometer(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 监听罗盘数据,频率:5次/秒,接口调用后会自动开始监听,可使用wx.stopCompass停止监听。
+ */
+ onCompassChange(callback: Function): void;
+
+ startCompass(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ stopCompass(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ makePhoneCall(obj: {
+ /**
+ * 需要拨打的电话号码
+ */
+ phoneNumber: string;
+ /**
+ * 接口调用成功的回调
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 调起客户端扫码界面,扫码成功后返回对应的结果
+ */
+ scanCode(obj: {
+ /**
+ * 是否只能从相机扫码,不允许从相册选择图片
+ */
+ onlyFromCamera?: boolean;
+ /**
+ * 接口调用成功的回调函数,返回内容详见返回参数说明。
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ setClipboardData(obj: {
+ /**
+ * 需要设置的内容
+ */
+ data: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getClipboardData(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ openBluetoothAdapter(obj: {
+ /**
+ * 成功则返回成功初始化信息
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ closeBluetoothAdapter(obj: {
+ /**
+ * 成功则返回成功关闭模块信息
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getBluetoothAdapterState(obj: {
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ onBluetoothAdapterStateChange(callback: Function): void;
+
+ startBluetoothDevicesDiscovery(obj: {
+ /**
+ * 蓝牙设备主 service 的 uuid 列表
+ */
+ services?: Array;
+ /**
+ * 是否允许重复上报同一设备, 如果允许重复上报,则onDeviceFound 方法会多次上报同一设备,但是 RSSI 值会有不同
+ */
+ allowDuplicatesKey?: boolean;
+ /**
+ * 上报设备的间隔,默认为0,意思是找到新设备立即上报,否则根据传入的间隔上报
+ */
+ interval?: number;
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ stopBluetoothDevicesDiscovery(obj: {
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getBluetoothDevices(obj: {
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ onBluetoothDeviceFound(callback: Function): void;
+
+ getConnectedBluetoothDevices(obj: {
+ /**
+ * 蓝牙设备主 service 的 uuid 列表
+ */
+ services: Array;
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ createBLEConnection(obj: {
+ /**
+ * 蓝牙设备 id,参考 getDevices 接口
+ */
+ deviceId: string;
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ closeBLEConnection(obj: {
+ /**
+ * 蓝牙设备 id,参考 getDevices 接口
+ */
+ deviceId: string;
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getBLEDeviceServices(obj: {
+ /**
+ * 蓝牙设备 id,参考 getDevices 接口
+ */
+ deviceId: string;
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getBLEDeviceCharacteristics(obj: {
+ /**
+ * 蓝牙设备 id,参考 device 对象
+ */
+ deviceId: string;
+ /**
+ * 蓝牙服务 uuid
+ */
+ serviceId: string;
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ readBLECharacteristicValue(obj: {
+ /**
+ * 蓝牙设备 id,参考 device 对象
+ */
+ deviceId: string;
+ /**
+ * 蓝牙特征值对应服务的 uuid
+ */
+ serviceId: string;
+ /**
+ * 蓝牙特征值的 uuid
+ */
+ characteristicId: string;
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ writeBLECharacteristicValue(obj: {
+ /**
+ * 蓝牙设备 id,参考 device 对象
+ */
+ deviceId: string;
+ /**
+ * 蓝牙特征值对应服务的 uuid
+ */
+ serviceId: string;
+ /**
+ * 蓝牙特征值的 uuid
+ */
+ characteristicId: string;
+ /**
+ * 蓝牙设备特征值对应的二进制值(注意:vConsole 无法打印出 ArrayBuffer 类型数据)
+ */
+ value: undefined;
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ notifyBLECharacteristicValueChange(obj: {
+ /**
+ * 蓝牙设备 id,参考 device 对象
+ */
+ deviceId: string;
+ /**
+ * 蓝牙特征值对应服务的 uuid
+ */
+ serviceId: string;
+ /**
+ * 蓝牙特征值的 uuid
+ */
+ characteristicId: string;
+ /**
+ * true: 启用 notify; false: 停用 notify
+ */
+ state: boolean;
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ onBLEConnectionStateChange(callback: Function): void;
+
+ onBLECharacteristicValueChange(callback: Function): void;
+
+ startBeaconDiscovery(obj: {
+ /**
+ * iBeacon设备广播的 uuids
+ */
+ uuids: string[];
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ stopBeaconDiscovery(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getBeacons(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ onBeaconUpdate(callback: Function): void;
+
+ onBeaconServiceChange(callback: Function): void;
+
+ onUserCaptureScreen(callback: Function): void;
+
+ addPhoneContact(obj: {
+ /**
+ * 头像本地文件路径
+ */
+ photoFilePath?: string;
+ /**
+ * 昵称
+ */
+ nickName?: string;
+ /**
+ * 姓氏
+ */
+ lastName?: string;
+ /**
+ * 中间名
+ */
+ middleName?: string;
+ /**
+ * 名字
+ */
+ firstName: string;
+ /**
+ * 备注
+ */
+ remark?: string;
+ /**
+ * 手机号
+ */
+ mobilePhoneNumber?: string;
+ /**
+ * 微信号
+ */
+ weChatNumber?: string;
+ /**
+ * 联系地址国家
+ */
+ addressCountry?: string;
+ /**
+ * 联系地址省份
+ */
+ addressState?: string;
+ /**
+ * 联系地址城市
+ */
+ addressCity?: string;
+ /**
+ * 联系地址街道
+ */
+ addressStreet?: string;
+ /**
+ * 联系地址邮政编码
+ */
+ addressPostalCode?: string;
+ /**
+ * 公司
+ */
+ organization?: string;
+ /**
+ * 职位
+ */
+ title?: string;
+ /**
+ * 工作传真
+ */
+ workFaxNumber?: string;
+ /**
+ * 工作电话
+ */
+ workPhoneNumber?: string;
+ /**
+ * 公司电话
+ */
+ hostNumber?: string;
+ /**
+ * 电子邮件
+ */
+ email?: string;
+ /**
+ * 网站
+ */
+ url?: string;
+ /**
+ * 工作地址国家
+ */
+ workAddressCountry?: string;
+ /**
+ * 工作地址省份
+ */
+ workAddressState?: string;
+ /**
+ * 工作地址城市
+ */
+ workAddressCity?: string;
+ /**
+ * 工作地址街道
+ */
+ workAddressStreet?: string;
+ /**
+ * 工作地址邮政编码
+ */
+ workAddressPostalCode?: string;
+ /**
+ * 住宅传真
+ */
+ homeFaxNumber?: string;
+ /**
+ * 住宅电话
+ */
+ homePhoneNumber?: string;
+ /**
+ * 住宅地址国家
+ */
+ homeAddressCountry?: string;
+ /**
+ * 住宅地址省份
+ */
+ homeAddressState?: string;
+ /**
+ * 住宅地址城市
+ */
+ homeAddressCity?: string;
+ /**
+ * 住宅地址街道
+ */
+ homeAddressStreet?: string;
+ /**
+ * 住宅地址邮政编码
+ */
+ homeAddressPostalCode?: string;
+ /**
+ * 接口调用成功
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ // # 界面 #
+
+ /**
+ * 显示消息提示框
+ */
+ showToast(obj: {
+ /**
+ * 提示的内容
+ */
+ title: string;
+ /**
+ * 图标,有效值 "success", "loading"
+ */
+ icon?: string;
+ /**
+ * 自定义图标的本地路径,image 的优先级高于 icon
+ */
+ image?: string;
+ /**
+ * 提示的延迟时间,单位毫秒,默认:1500
+ */
+ duration?: number;
+ /**
+ * 是否显示透明蒙层,防止触摸穿透,默认:false
+ */
+ mask?: boolean;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ showLoading(obj: {
+ /**
+ * 提示的内容
+ */
+ title: string;
+ /**
+ * 是否显示透明蒙层,防止触摸穿透,默认:false
+ */
+ mask?: boolean;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 隐藏消息提示框
+ */
+ hideToast(): void;
+
+ hideLoading(): void;
+
+ /**
+ * 显示模态弹窗
+ */
+ showModal(obj: {
+ /**
+ * 提示的标题
+ */
+ title: string;
+ /**
+ * 提示的内容
+ */
+ content: string;
+ /**
+ * 是否显示取消按钮,默认为 true
+ */
+ showCancel?: boolean;
+ /**
+ * 取消按钮的文字,默认为"取消",最多 4 个字符
+ */
+ cancelText?: string;
+ /**
+ * 取消按钮的文字颜色,默认为"#000000"
+ */
+ cancelColor?: undefined;
+ /**
+ * 确定按钮的文字,默认为"确定",最多 4 个字符
+ */
+ confirmText?: string;
+ /**
+ * 确定按钮的文字颜色,默认为"#3CC51F"
+ */
+ confirmColor?: undefined;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 显示操作菜单
+ */
+ showActionSheet(obj: {
+ /**
+ * 按钮的文字数组,数组长度最大为6个
+ */
+ itemList: undefined;
+ /**
+ * 按钮的文字颜色,默认为"#000000"
+ */
+ itemColor?: undefined;
+ /**
+ * 接口调用成功的回调函数,详见返回参数说明
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ setTopBarText(obj: {
+ /**
+ * 置顶栏文字内容
+ */
+ text: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 动态设置当前页面的标题。
+ */
+ setNavigationBarTitle(obj: {
+ /**
+ * 页面标题
+ */
+ title: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 在当前页面显示导航条加载动画。
+ */
+ showNavigationBarLoading(): void;
+
+ /**
+ * 隐藏导航条加载动画。
+ */
+ hideNavigationBarLoading(): void;
+
+ /**
+ * 保留当前页面,跳转到应用内的某个页面,使用wx.navigateBack可以返回到原页面。
+ */
+ navigateTo(obj: {
+ /**
+ * 需要跳转的应用内非 tabBar 的页面的路径 , 路径后可以带参数。参数与路径之间使用?分隔,参数键与参数值用=相连,不同参数用&分隔;如 'path?key=value&key2=value2'
+ */
+ url: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 关闭当前页面,跳转到应用内的某个页面。
+ */
+ redirectTo(obj: {
+ /**
+ * 需要跳转的应用内非 tabBar 的页面的路径,路径后可以带参数。参数与路径之间使用?分隔,参数键与参数值用=相连,不同参数用&分隔;如 'path?key=value&key2=value2'
+ */
+ url: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ reLaunch(obj: {
+ /**
+ * 需要跳转的应用内页面路径 , 路径后可以带参数。参数与路径之间使用?分隔,参数键与参数值用=相连,不同参数用&分隔;如 'path?key=value&key2=value2',如果跳转的页面路径是 tabBar 页面则不能带参数
+ */
+ url: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面
+ */
+ switchTab(obj: {
+ /**
+ * 需要跳转的 tabBar 页面的路径(需在 app.json 的 tabBar 字段定义的页面),路径后不能带参数
+ */
+ url: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 关闭当前页面,返回上一页面或多级页面。可通过 getCurrentPages()) 获取当前的页面栈,决定需要返回几层。
+ */
+ navigateBack(obj: {
+ /**
+ * 返回的页面数,如果 delta 大于现有页面数,则返回到首页。
+ */
+ delta?: number;
+ }): void;
+
+ /**
+ * 创建一个动画实例animation。调用实例的方法来描述动画。最后通过动画实例的export方法导出动画数据传递给组件的animation属性。
+ */
+ createAnimation(obj: {
+ /**
+ * 400
+ */
+ duration?: number;
+ /**
+ * "linear"
+ */
+ timingFunction?: string;
+ /**
+ * 0
+ */
+ delay?: number;
+ /**
+ * "50% 50% 0"
+ */
+ transformOrigin?: string;
+ }): IAnimation;
+
+ pageScrollTo(obj: {
+ /**
+ * 滚动到页面的目标位置(单位px)
+ */
+ scrollTop: number;
+ }): void;
+
+ /**
+ * 创建 canvas 绘图上下文(指定 canvasId).Tip: 需要指定 canvasId,该绘图上下文只作用于对应的
+ */
+ createCanvasContext(canvasId: string): ICanvasContext;
+
+ /**
+ * 把当前画布的内容导出生成图片,并返回文件路径
+ */
+ canvasToTempFilePath(canvasId: string): void;
+
+ startPullDownRefresh(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 停止当前页面下拉刷新。
+ */
+ stopPullDownRefresh(): void;
+
+ // # WXML节点信息 #
+
+ // # 第三方平台 #
+
+ getExtConfig(obj: {
+ /**
+ * 返回第三方平台自定义的数据
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getExtConfigSync(): void;
+
+ // # 开放接口 #
+
+ /**
+ * 调用接口获取登录凭证(code)进而换取用户登录态信息,包括用户的唯一标识(openid) 及本次登录的 会话密钥(session_key)。用户数据的加解密通讯需要依赖会话密钥完成。
+ */
+ login(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 通过上述接口获得的用户登录态拥有一定的时效性。用户越久未使用小程序,用户登录态越有可能失效。反之如果用户一直在使用小程序,则用户登录态一直保持有效。具体时效逻辑由微信维护,对开发者透明。开发者只需要调用wx.checkSession接口检测当前用户登录态是否有效。登录态过期后开发者可以再调用wx.login获取新的用户登录态。
+ */
+ checkSession(obj: {
+ /**
+ * 接口调用成功的回调函数,登录态未过期
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数,登录态已过期
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ authorize(obj: {
+ /**
+ * 需要获取权限的scope,详见 scope 列表
+ */
+ scope: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 获取用户信息,withCredentials 为 true 时需要先调用 wx.login 接口。
+ */
+ getUserInfo(obj: {
+ /**
+ * 是否带上登录态信息
+ */
+ withCredentials?: boolean;
+ /**
+ * 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文
+ */
+ lang?: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 发起微信支付。
+ */
+ requestPayment(obj: {
+ /**
+ * 时间戳从1970年1月1日00:00:00至今的秒数,即当前的时间
+ */
+ timeStamp: string;
+ /**
+ * 随机字符串,长度为32个字符以下。
+ */
+ nonceStr: string;
+ /**
+ * 统一下单接口返回的 prepay_id 参数值,提交格式如:prepay_id=*
+ */
+ package: string;
+ /**
+ * 签名算法,暂支持 MD5
+ */
+ signType: string;
+ /**
+ * 签名,具体签名方案参见小程序支付接口文档;
+ */
+ paySign: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ chooseAddress(obj: {
+ /**
+ * 返回用户选择的收货地址信息
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ addCard(obj: {
+ /**
+ * 需要添加的卡券列表,列表内对象说明请参见请求对象说明
+ */
+ cardList: undefined;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ openCard(obj: {
+ /**
+ * 需要打开的卡券列表,列表内参数详见openCard 请求对象说明
+ */
+ cardList: undefined;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ openSetting(obj: {
+ /**
+ * 接口调用成功的回调函数,返回内容详见返回参数说明。
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getSetting(obj: {
+ /**
+ * 接口调用成功的回调函数,返回内容详见返回参数说明。
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getWeRunData(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ navigateToMiniProgram(obj: {
+ /**
+ * 要打开的小程序 appId
+ */
+ appId: string;
+ /**
+ * 打开的页面路径,如果为空则打开首页
+ */
+ path?: string;
+ /**
+ * 需要传递给目标小程序的数据,目标小程序可在 App.onLaunch(),App.onShow() 中获取到这份数据。详情
+ */
+ extraData?: any;
+ /**
+ * 要打开的小程序版本,有效值 develop(开发版),trial(体验版),release(正式版) ,仅在当前小程序为开发版或体验版时此参数有效;如果当前小程序是体验版或正式版,则打开的小程序必定是正式版。默认值 release
+ */
+ envVersion?: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ chooseInvoiceTitle(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ checkIsSupportSoterAuthentication(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ // # 数据 #
+
+ /**
+ * 自定义分析数据上报接口。使用前,需要在小程序管理后台自定义分析中新建事件,配置好事件名与字段。
+ */
+ reportAnalytics(eventName: string, data: string, ): void;
+
+ // # 拓展接口 #
+
+ arrayBufferToBase64(arrayBuffer: string): void;
+
+ base64ToArrayBuffer(base64: string): void;
+
+ // # 调试接口 #
+
+ setEnableDebug(obj: {
+ /**
+ * 是否打开调试
+ */
+ enableDebug: boolean;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+}
\ No newline at end of file
diff --git a/src/openeuler/utils/app-ajax.js b/src/openeuler/utils/app-ajax.js
index 5166852..43a2bb1 100644
--- a/src/openeuler/utils/app-ajax.js
+++ b/src/openeuler/utils/app-ajax.js
@@ -65,6 +65,7 @@ const appAjax = {
},
isAsync: true,
};
+ let isShowToast = false;
let ajaxParams = underscore.deepExtend(true, defaultParams, params);
// rest请求路径
ajaxParams['url'] = CONSTANTS['SERVICE_URL'] + _getInterfaceUrl(ajaxParams);
@@ -89,6 +90,10 @@ const appAjax = {
method: ajaxParams['type'] || 'POST',
data: ajaxParams.data,
success: function (res) {
+ // if (!timer && wx.getStorageSync(CONSTANTS.APP_USERINFO_SESSION)) {
+ // timer = setInterval(() => {
+ // }, 1000 * 6 * 10);
+ // }
if (res?.data?.access && wx.getStorageSync(CONSTANTS.APP_USERINFO_SESSION)) {
let data = wx.getStorageSync(CONSTANTS.APP_USERINFO_SESSION);
data.access = res.data.access;
@@ -106,10 +111,18 @@ const appAjax = {
return;
}
if (res.statusCode.toString()[0] != 2) {
- let message = (res?.data?.detail && res.statusCode.toString() === 400) || '有点忙开个小差,稍后再试~';
+ let message = '';
+ if (res?.data?.detail && res.statusCode === 400) {
+ message = res.data.detail;
+ } else if (res.statusCode === 418) {
+ message = '您的请求疑似攻击行为!';
+ } else {
+ message = '有点忙开个小差,稍后再试~';
+ }
if (ajaxParams.error) {
ajaxParams.error(message, res);
} else {
+ isShowToast = true;
wx.showToast({
title: message,
icon: 'none',
@@ -128,7 +141,7 @@ const appAjax = {
wx.setStorageSync(CONSTANTS.APP_USERINFO_SESSION, data);
}
}
- let message = (res?.data?.detail && res.statusCode.toString() === 400) || '有点忙开个小差,稍后再试~';
+ let message = res?.data?.detail && res.statusCode === 400 ? res.data.detail : '有点忙开个小差,稍后再试~';
ajaxParams.error && ajaxParams.error(message, res);
},
complete: function (res) {
@@ -140,8 +153,15 @@ const appAjax = {
});
}
// 关闭loading
- if (ajaxParams.autoShowWait && wx.hideLoading) {
- wx.hideLoading();
+ if (ajaxParams.autoShowWait) {
+ if (isShowToast) {
+ setTimeout(() => {
+ wx.hideLoading();
+ isShowToast = false;
+ }, 2000);
+ } else {
+ wx.hideLoading();
+ }
}
},
});
diff --git a/src/openeuler/utils/app-session.js b/src/openeuler/utils/app-session.js
index 89ac469..aa2d05a 100644
--- a/src/openeuler/utils/app-session.js
+++ b/src/openeuler/utils/app-session.js
@@ -48,7 +48,7 @@ module.exports = {
},
/**
- * 清楚用户信息
+ * 清除用户信息
*/
clearUserInfo: function () {
wx.removeStorageSync(constants.APP_USERINFO_SESSION);
diff --git a/src/openeuler/utils/app-user.js b/src/openeuler/utils/app-user.js
index be5d080..da8bdc8 100644
--- a/src/openeuler/utils/app-user.js
+++ b/src/openeuler/utils/app-user.js
@@ -37,10 +37,9 @@ const privateMethods = {
res.userInfo.eventLevel = result.activity_level;
res.userInfo.gitee = result.gitee_name;
res.userInfo.userId = result.user_id;
- // // 缓存用户信息
+ // 缓存用户信息
appUser.saveLoginInfo(res.userInfo || {});
-
- // // 回调
+ // 回调
callback && callback(res.userInfo || {});
},
});
diff --git a/src/openeuler/utils/page-mixin.js b/src/openeuler/utils/page-mixin.js
index 6c3c5bf..ebbd6df 100644
--- a/src/openeuler/utils/page-mixin.js
+++ b/src/openeuler/utils/page-mixin.js
@@ -1,6 +1,5 @@
/**
* 页面通用方法
- * since 2020-8-20
*/
const _ = require('./underscore-extend');
@@ -63,24 +62,7 @@ const lifeCycle = {
onLoad: {
before() {
this.$setWatcher(this.data, this.watch); // 设置监听器
-
- let pages = getCurrentPages(); //获取加载的页面
- let currentPage = pages[pages.length - 1]; //获取当前页面的对象
- let url = currentPage.route; //当前页面url
-
- // 判断是否登录
- let userInfo = wx.getStorageSync(constants.APP_USERINFO_SESSION);
-
- if (url != 'pages/auth/auth') {
- // wx.navigateTo({
- // url: `/package-events/events/sign-success?id=46`
- // })
- if (!userInfo && !userInfo.access) {
- // app.globalData.tourist = true;
- }
- }
},
- after() {},
},
onShow: {
diff --git a/src/openeuler/utils/url-config.js b/src/openeuler/utils/url-config.js
new file mode 100644
index 0000000..2903257
--- /dev/null
+++ b/src/openeuler/utils/url-config.js
@@ -0,0 +1,6 @@
+const BILIBILI_URL = 'https://space.bilibili.com/527064077';
+const OBS_URL = 'https://openeuler-website.obs.ap-southeast-1.myhuaweicloud.com';
+module.exports = {
+ OBS_URL,
+ BILIBILI_URL,
+};
diff --git a/src/openeuler/utils/utils.js b/src/openeuler/utils/utils.js
index 0ed2cb7..3e98206 100644
--- a/src/openeuler/utils/utils.js
+++ b/src/openeuler/utils/utils.js
@@ -2,46 +2,7 @@
* 工具类
*/
-let _ = require('./underscore-extend');
-
let utils = {
- /**
- * underscore工具库
- */
- _: _,
-
- /**
- * 深拷贝工具
- */
- deepExtend: _.deepExtend,
-
- /**
- * 添加URL的参数
- * @param name 名称
- * @param value 值
- * @param url 链接地址
- */
- addUrlParam: function (name, value, url) {
- if (!value) {
- return url;
- }
-
- if (url.indexOf(name + '=') > -1) {
- return url;
- }
- let tmpUrl = url;
-
- // 判断是否已经有其他参数
- if (tmpUrl.indexOf('?') >= 0) {
- tmpUrl += '&';
- } else {
- tmpUrl += '?';
- }
- tmpUrl += name + '=' + value;
-
- return tmpUrl;
- },
-
/**
* 日期格式化
*/
@@ -69,37 +30,6 @@ let utils = {
return fmt;
};
},
-
- /**
- * 版本比较
- * param {string} v1 > v2 ? 1 : -1 ; 相等返回0
- */
- compareVersion: function (v1, v2) {
- v1 = v1.split('.');
- v2 = v2.split('.');
- let len = Math.max(v1.length, v2.length);
-
- while (v1.length < len) {
- v1.push('0');
- }
-
- while (v2.length < len) {
- v2.push('0');
- }
-
- for (let i = 0; i < len; i++) {
- let num1 = parseInt(v1[i]);
- let num2 = parseInt(v2[i]);
-
- if (num1 > num2) {
- return 1;
- } else if (num1 < num2) {
- return -1;
- }
- }
-
- return 0;
- },
};
module.exports = utils;
--
Gitee
From 989c3fac365923ae7b60c058600e8a805b4a1ec5 Mon Sep 17 00:00:00 2001
From: haml-707 <845831435@qq.com>
Date: Mon, 6 Nov 2023 10:09:22 +0800
Subject: [PATCH 02/10] =?UTF-8?q?fix:=E4=BB=A3=E7=A0=81=E6=95=B4=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/openeuler/config/constants.js | 2 +-
src/openeuler/pages/index/index.js | 4 +-
src/openeuler/typings/wx.d.ts | 2705 ----------------------------
src/openeuler/utils/app-user.js | 1 -
src/openeuler/utils/url-config.js | 2 +
5 files changed, 6 insertions(+), 2708 deletions(-)
delete mode 100644 src/openeuler/typings/wx.d.ts
diff --git a/src/openeuler/config/constants.js b/src/openeuler/config/constants.js
index bc969b1..9968916 100644
--- a/src/openeuler/config/constants.js
+++ b/src/openeuler/config/constants.js
@@ -5,7 +5,7 @@ let _ = require('../utils/underscore-extend.js');
// 服务连接配置
let serviceConfig = {
- // SERVICE_URL: 'https://api.openeuler.org/meetings', // 正式环境
+ // SERVICE_URL: 'https://api.openeuler.org/meetings', // 正式环境
SERVICE_URL: 'https://meetingserver-openeuler.test.osinfra.cn', // 测试环境
// SERVICE_URL: 'https://meetings-beta.openeuler.org', // 测试环境
};
diff --git a/src/openeuler/pages/index/index.js b/src/openeuler/pages/index/index.js
index 9e14320..1d30195 100644
--- a/src/openeuler/pages/index/index.js
+++ b/src/openeuler/pages/index/index.js
@@ -2,6 +2,8 @@
const mixin = require('../../utils/page-mixin.js').$pageMixin;
const sessionUtil = require('../../utils/app-session.js');
const appUser = require('../../utils/app-user.js');
+const { OBS_BJ_URL } = require('./../../utils/url-config');
+
let that = null;
Page(
mixin({
@@ -9,7 +11,7 @@ Page(
imgUrls: [
{
type: 2,
- url: 'https://openeuler-website-beijing.obs.cn-north-4.myhuaweicloud.com/detail-banner/mooc-banner.png',
+ url: `${OBS_BJ_URL}/detail-banner/mooc-banner.png`,
},
],
iphoneX: false,
diff --git a/src/openeuler/typings/wx.d.ts b/src/openeuler/typings/wx.d.ts
deleted file mode 100644
index a2ffc2b..0000000
--- a/src/openeuler/typings/wx.d.ts
+++ /dev/null
@@ -1,2705 +0,0 @@
-// generate time:2017-08-23 21:12:06
-// Type definitions for wx app
-// Definitions by: hellopao
-
-/************************************************
-* *
-* 微信小程序 API *
-* *
-************************************************/
-
-interface IAnimation {
- /**
- * 透明度,参数范围 0~1
- */
- opacity(value: number): IAnimation;
- /**
- * 颜色值
- */
- backgroundColor(color: string): IAnimation;
- /**
- * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
- */
- width(length: number): IAnimation;
- /**
- * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
- */
- height(length: number): IAnimation;
- /**
- * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
- */
- top(length: number): IAnimation;
- /**
- * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
- */
- left(length: number): IAnimation;
- /**
- * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
- */
- bottom(length: number): IAnimation;
- /**
- * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
- */
- right(length: number): IAnimation;
- /**
- * deg的范围-180~180,从原点顺时针旋转一个deg角度
- */
- rotate(deg: number): IAnimation;
- /**
- * deg的范围-180~180,在X轴旋转一个deg角度
- */
- rotateX(deg: number): IAnimation;
- /**
- * deg的范围-180~180,在Y轴旋转一个deg角度
- */
- rotateY(deg: number): IAnimation;
- /**
- * deg的范围-180~180,在Z轴旋转一个deg角度
- */
- rotateZ(deg: number): IAnimation;
- /**
- * 同transform-function rotate3d
- */
- rotate3d(x: number, y: number, z: number, deg: number): IAnimation;
- /**
- * 一个参数时,表示在X轴、Y轴同时缩放sx倍数;两个参数时表示在X轴缩放sx倍数,在Y轴缩放sy倍数
- */
- scale(sx: number, sy?: number): IAnimation;
- /**
- * 在X轴缩放sx倍数
- */
- scaleX(sx: number): IAnimation;
- /**
- * 在Y轴缩放sy倍数
- */
- scaleY(sy: number): IAnimation;
- /**
- * 在Z轴缩放sy倍数
- */
- scaleZ(sz: number): IAnimation;
- /**
- * 在X轴缩放sx倍数,在Y轴缩放sy倍数,在Z轴缩放sz倍数
- */
- scale3d(sx: number, sy: number, sz: number): IAnimation;
- /**
- * 一个参数时,表示在X轴偏移tx,单位px;两个参数时,表示在X轴偏移tx,在Y轴偏移ty,单位px。
- */
- translate(tx: number, ty?: number): IAnimation;
- /**
- * 在X轴偏移tx,单位px
- */
- translateX(tx: number): IAnimation;
- /**
- * 在Y轴偏移tx,单位px
- */
- translateY(tx: number): IAnimation;
- /**
- * 在Z轴偏移tx,单位px
- */
- translateZ(tx: number): IAnimation;
- /**
- * 在X轴偏移tx,在Y轴偏移ty,在Z轴偏移tz,单位px
- */
- translate3d(tx: number, ty: number, tz: number): IAnimation;
- /**
- * 参数范围-180~180;一个参数时,Y轴坐标不变,X轴坐标延顺时针倾斜ax度;两个参数时,分别在X轴倾斜ax度,在Y轴倾斜ay度
- */
- skew(ax: number, ay?: number): IAnimation;
- /**
- * 参数范围-180~180;Y轴坐标不变,X轴坐标延顺时针倾斜ax度
- */
- skewX(ax: number): IAnimation;
- /**
- * 参数范围-180~180;X轴坐标不变,Y轴坐标延顺时针倾斜ay度
- */
- skewY(ay: number): IAnimation;
- /**
- * 同transform-function matrix
- */
- matrix(a, b, c, d, tx, ty): IAnimation;
- /**
- * 同transform-function matrix3d
- */
- matrix3d(): IAnimation;
-}
-
-interface ICanvasContext {
- /**
- * 设置填充色, 如果没有设置 fillStyle,默认颜色为 black。
- */
- setFillStyle(color: string): void;
- /**
- * 设置边框颜色, 如果没有设置 fillStyle,默认颜色为 black。
- */
- setStrokeStyle(color: string): void;
- /**
- * 设置阴影
- */
- setShadow(offsetX: number, offsetY: number, blur: number, color: string): void;
- /**
- * 创建一个线性的渐变颜色。需要使用 addColorStop() 来指定渐变点,至少要两个。
- */
- createLinearGradient(x0: number, y0: number, x1: number, y1: number): void;
- /**
- * 创建一个圆形的渐变颜色。 起点在圆心,终点在圆环。 需要使用 addColorStop() 来指定渐变点,至少要两个。
- */
- createCircularGradient(x: number, y: number, r: number): void;
- /**
- * 创建一个颜色的渐变点。小于最小 stop 的部分会按最小 stop 的 color 来渲染,大于最大 stop 的部分会按最大 stop 的 color 来渲染。需要使用 addColorStop() 来指定渐变点,至少要两个。
- */
- addColorStop(stop: number, color: string): void;
- /**
- * 设置线条端点的样式
- */
- setLineCap(lineCap: 'butt' | 'round' | 'square'): void;
- /**
- * 设置两线相交处的样式
- */
- setLineJoin(lineJoin: 'bevel' | 'round' | 'miter'): void;
- /**
- * 设置线条宽度
- */
- setLineWidth(lineWidth: number): void;
- /**
- * 设置最大倾斜
- */
- setMiterLimit(miterLimit: number): void;
- /**
- * 添加一个矩形路径到当前路径。
- */
- rect(x: number, y: number, width: number, height: number): void;
- /**
- * 填充一个矩形。用 setFillStyle() 设置矩形的填充色,如果没设置默认是黑色。
- */
- fillRect(x: number, y: number, width: number, height: number): void;
- /**
- * 一个矩形(非填充)。用 setFillStroke() 设置矩形线条的颜色,如果没设置默认是黑色。
- */
- strokeRect(x: number, y: number, width: number, height: number): void;
- /**
- * 在给定的矩形区域内,清除画布上的像素
- */
- clearRect(x: number, y: number, width: number, height: number): void;
- /**
- * 对当前路径进行填充
- */
- fill(): void;
- /**
- * 对当前路径进行描边
- */
- stroke(): void;
- /**
- * 开始一个路径
- */
- beginPath(): void;
- /**
- * 关闭一个路径
- */
- closePath(): void;
- /**
- * 把路径移动到画布中的指定点,但不创建线条。
- */
- moveTo(x: number, y: number): void;
- /**
- * 添加一个新点,然后在画布中创建从该点到最后指定点的线条。
- */
- lineTo(x: number, y: number): void;
- /**
- * 添加一个弧形路径到当前路径,顺时针绘制。
- */
- arc(x: number, y: number, radius: number, startAngle: number, sweepAngle: number): void;
- /**
- * 创建二次方贝塞尔曲线
- */
- quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
- /**
- * 创建三次方贝塞尔曲线
- */
- bezierCurveTo(cpx1: number, cpy1: number, cpx2: number, cpy2: number, x: number, y: number): void;
- /**
- * 对横纵坐标进行缩放
- */
- scale(scaleWidth: number/**横坐标缩放的倍数1 = 100%,0.5 = 50%,2 = 200%,依次类 */, scaleHeight: number/** 纵坐标轴缩放的倍数1 = 100%,0.5 = 50%,2 = 200%,依次类 */): void;
- /**
- * 对坐标轴进行顺时针旋转
- */
- rotate(deg: number/**degrees * Math.PI/180;degrees范围为0~360;旋转角度,以弧度计 */): void;
- /**
- * 对坐标原点进行缩放
- */
- translate(x: number/**水平坐标平移量 */, y: number/**竖直坐标平移量 */): void;
- /**
- * 在画布上绘制被填充的文本
- */
- fillText(text: string, x: number, y: number): void;
- /**
- * 设置字体大小
- */
- setFontSize(fontSize: number): void;
- /**
- * 在画布上绘制图像
- */
- drawImage(imageResource: string, x: number, y: number, width: number, height: number): void;
- /**
- * 设置全局画笔透明度。
- */
- setGlobalAlpha(alpha: number): void;
- /**
- * 保存当前坐标轴的缩放、旋转、平移信息
- */
- save(): void;
- /**
- * 恢复之前保存过的坐标轴的缩放、旋转、平移信息
- */
- restore(): void;
- /**
- * 进行绘图
- */
- draw(): void;
-}
-
-interface IAudioContext {
- /**
- * 播放
- */
- play: () => void;
- /**
- * 暂停
- */
- pause: () => void;
- /**
- * 跳转到指定位置,单位 s
- */
- seek: (position: number) => void;
-}
-
-interface IVideoContext {
- /**
- * 播放
- */
- play: () => void;
- /**
- * 暂停
- */
- pause: () => void;
- /**
- * 跳转到指定位置,单位 s
- */
- seek: (position: number) => void;
- /**
- * 发送弹幕,danmu 包含两个属性 text, color。
- */
- sendDanmu: (danmu: {text: string; color: string;}) => void;
-}
-
-interface IMapContext {
- /**
- * 获取当前地图中心的经纬度,返回的是 gcj02 坐标系,可以用于 wx.openLocation
- */
- getCenterLocation: (obj: {
- /**
- * 接口调用成功的回调函数 ,res = { longitude: "经度", latitude: "纬度"}
- */
- success?: (res: {longitude: string; latitude: string}) => void;
- /**
- * 接口调用失败的回调函数
- */
- fail?: () => void;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: () => void;
- }) => void;
- /**
- * 将地图中心移动到当前定位点,需要配合map组件的show-location使用
- */
- moveToLocation: () => void;
-}
-
-interface Application {
- setData: (obj: any) => void;
-}
-
-interface AppConstructor {
- new (): Application;
- (opts: {
- /**
- * 生命周期函数--监听小程序初始化
- */
- onLaunch?: () => void;
- /**
- * 生命周期函数--监听小程序显示
- */
- onShow?: () => void;
- /**
- * 生命周期函数--监听小程序隐藏
- */
- onHide?: () => void;
-
- [key: string]: any;
- }): Application;
-}
-
-declare var App: AppConstructor;
-declare function getApp(): Application;
-
-declare function getCurrentPages(): Page[];
-
-interface Page {
- setData: (obj: any) => void;
-}
-
-interface PageConstructor {
- new (): Page;
- (opts: {
- /**
- * 页面的初始数据
- */
- data?: any;
- /**
- * 页面的初始数据
- */
- onLoad?: () => void;
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady?: () => void;
- /**
- * 生命周期函数--监听页面显示
- */
- onShow?: () => void;
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide?: () => void;
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload?: () => void;
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefreash?: () => void;
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom?: () => void;
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage?: () => {
- /**
- * 分享标题, 默认值当前小程序名称
- */
- title: string;
- /**
- * 分享描述, 默认值当前小程序名称
- */
- desc: string;
- /**
- * 分享路径 默认值当前页面 path ,必须是以 / 开头的完整路径
- */
- path: string;
- };
-
- [key: string]: any;
- }): Page;
-}
-
-declare var Page: PageConstructor;
-
-declare var wx: {
- // # 网络 #
-
- request(obj: {
- /**
- * 开发者服务器接口地址
- */
- url: string;
- /**
- * 请求的参数
- */
- data?: any | string;
- /**
- * 设置请求的 header , header 中不能设置 Referer
- */
- header?: any;
- /**
- * 默认为 GET,有效值:OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
- */
- method?: string;
- /**
- * 默认为 json。如果设置了 dataType 为 json,则会尝试对响应的数据做一次 JSON.parse
- */
- dataType?: string;
- /**
- * 收到开发者服务成功返回的回调函数,res = {data: '开发者服务器返回的内容'}
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 将本地资源上传到开发者服务器。如页面通过 wx.chooseImage 等接口获取到一个本地资源的临时文件路径后,可通过此接口将本地资源上传到指定服务器。客户端发起一个 HTTPS POST 请求,其中 content-type 为 multipart/form-data 。
- */
- uploadFile(obj: {
- /**
- * 开发者服务器 url
- */
- url: string;
- /**
- * 要上传文件资源的路径
- */
- filePath: string;
- /**
- * 文件对应的 key , 开发者在服务器端通过这个 key 可以获取到文件二进制内容
- */
- name: string;
- /**
- * HTTP 请求 Header , header 中不能设置 Referer
- */
- header?: any;
- /**
- * HTTP 请求中其他额外的 form data
- */
- formData?: any;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 下载文件资源到本地。客户端直接发起一个 HTTP GET 请求,返回文件的本地临时路径。
- */
- downloadFile(obj: {
- /**
- * 下载资源的 url
- */
- url: string;
- /**
- * HTTP 请求 Header
- */
- header?: any;
- /**
- * 下载成功后以 tempFilePath 的形式传给页面,res = {tempFilePath: '文件的临时路径'}
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 创建一个 WebSocket 连接;一个微信小程序同时只能有一个 WebSocket 连接,如果当前已存在一个 WebSocket 连接,会自动关闭该连接,并重新创建一个 WebSocket 连接。
- */
- connectSocket(obj: {
- /**
- * 开发者服务器接口地址,必须是 wss 协议,且域名必须是后台配置的合法域名
- */
- url: string;
- /**
- * 请求的数据
- */
- data?: any;
- /**
- * HTTP Header , header 中不能设置 Referer
- */
- header?: any;
- /**
- * 默认是GET,有效值: OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
- */
- method?: string;
- /**
- * 子协议数组
- */
- protocols?: string[];
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 监听WebSocket连接打开事件。
- */
- onSocketOpen(callback: Function): void;
-
- /**
- * 监听WebSocket错误。
- */
- onSocketError(callback: Function): void;
-
- /**
- * 通过 WebSocket 连接发送数据,需要先 wx.connectSocket,并在 wx.onSocketOpen 回调之后才能发送。
- */
- sendSocketMessage(obj: {
- /**
- * 需要发送的内容
- */
- data: undefined;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 监听WebSocket接受到服务器的消息事件。
- */
- onSocketMessage(callback: Function): void;
-
- /**
- * 关闭WebSocket连接。
- */
- closeSocket(obj: {
- /**
- * 一个数字值表示关闭连接的状态号,表示连接被关闭的原因。如果这个参数没有被指定,默认的取值是1000 (表示正常连接关闭)
- */
- code?: number;
- /**
- * 一个可读的字符串,表示连接被关闭的原因。这个字符串必须是不长于123字节的UTF-8 文本(不是字符)
- */
- reason?: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 监听WebSocket关闭。
- */
- onSocketClose(callback: Function): void;
-
- // # 媒体 #
-
- /**
- * 从本地相册选择图片或使用相机拍照。
- */
- chooseImage(obj: {
- /**
- * 最多可以选择的图片张数,默认9
- */
- count?: number;
- /**
- * original 原图,compressed 压缩图,默认二者都有
- */
- sizeType?: string[];
- /**
- * album 从相册选图,camera 使用相机,默认二者都有
- */
- sourceType?: string[];
- /**
- * 成功则返回图片的本地文件路径列表 tempFilePaths
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 预览图片。
- */
- previewImage(obj: {
- /**
- * 当前显示图片的链接,不填则默认为 urls 的第一张
- */
- current?: string;
- /**
- * 需要预览的图片链接列表
- */
- urls: string[];
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 获取图片信息
- */
- getImageInfo(obj: {
- /**
- * 图片的路径,可以是相对路径,临时文件路径,存储文件路径,网络图片路径
- */
- src: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- saveImageToPhotosAlbum(obj: {
- /**
- * 图片文件路径,可以是临时文件路径也可以是永久文件路径,不支持网络图片路径
- */
- filePath: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 开始录音。当主动调用wx.stopRecord,或者录音超过1分钟时自动结束录音,返回录音文件的临时文件路径。当用户离开小程序时,此接口无法调用。
- */
- startRecord(obj: {
- /**
- * 录音成功后调用,返回录音文件的临时文件路径,res = {tempFilePath: '录音文件的临时路径'}
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 主动调用停止录音。
- */
- stopRecord(): void;
-
- /**
- * 开始播放语音,同时只允许一个语音文件正在播放,如果前一个语音文件还没播放完,将中断前一个语音播放。
- */
- playVoice(obj: {
- /**
- * 需要播放的语音文件的文件路径
- */
- filePath: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 暂停正在播放的语音。再次调用wx.playVoice播放同一个文件时,会从暂停处开始播放。如果想从头开始播放,需要先调用 wx.stopVoice。
- */
- pauseVoice(): void;
-
- /**
- * 结束播放语音。
- */
- stopVoice(): void;
-
- /**
- * 获取后台音乐播放状态。
- */
- getBackgroundAudioPlayerState(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 使用后台播放器播放音乐,对于微信客户端来说,只能同时有一个后台音乐在播放。当用户离开小程序后,音乐将暂停播放;当用户点击“显示在聊天顶部”时,音乐不会暂停播放;当用户在其他小程序占用了音乐播放器,原有小程序内的音乐将停止播放。
- */
- playBackgroundAudio(obj: {
- /**
- * 音乐链接,目前支持的格式有 m4a, aac, mp3, wav
- */
- dataUrl: string;
- /**
- * 音乐标题
- */
- title?: string;
- /**
- * 封面URL
- */
- coverImgUrl?: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 暂停播放音乐。
- */
- pauseBackgroundAudio(): void;
-
- /**
- * 控制音乐播放进度。
- */
- seekBackgroundAudio(obj: {
- /**
- * 音乐位置,单位:秒
- */
- position: number;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 停止播放音乐。
- */
- stopBackgroundAudio(): void;
-
- /**
- * 监听音乐播放。
- */
- onBackgroundAudioPlay(callback: Function): void;
-
- /**
- * 监听音乐暂停。
- */
- onBackgroundAudioPause(callback: Function): void;
-
- /**
- * 监听音乐停止。
- */
- onBackgroundAudioStop(callback: Function): void;
-
- getBackgroundAudioManager(): void;
-
- /**
- * 创建并返回 audio 上下文 audioContext 对象
- */
- createAudioContext(audioId: string): IAudioContext;
-
- /**
- * 拍摄视频或从手机相册中选视频,返回视频的临时文件路径。
- */
- chooseVideo(obj: {
- /**
- * album 从相册选视频,camera 使用相机拍摄,默认为:['album', 'camera']
- */
- sourceType?: string[];
- /**
- * 拍摄视频最长拍摄时间,单位秒。最长支持 60 秒
- */
- maxDuration?: number;
- /**
- * 默认调起的为前置还是后置摄像头。front: 前置,back: 后置,默认 back
- */
- camera?: string;
- /**
- * 接口调用成功,返回视频文件的临时文件路径,详见返回参数说明
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- saveVideoToPhotosAlbum(obj: {
- /**
- * 视频文件路径,可以是临时文件路径也可以是永久文件路径
- */
- filePath: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 创建并返回 video 上下文 videoContext 对象
- */
- createVideoContext(videoId: string): IVideoContext;
-
- // # 文件 #
-
- /**
- * 保存文件到本地。
- */
- saveFile(obj: {
- /**
- * 需要保存的文件的临时路径
- */
- tempFilePath: string;
- /**
- * 返回文件的保存路径,res = {savedFilePath: '文件的保存路径'}
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 获取本地已保存的文件列表
- */
- getSavedFileList(obj: {
- /**
- * 接口调用成功的回调函数,返回结果见success返回参数说明
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 获取本地文件的文件信息。此接口只能用于获取已保存到本地的文件,若需要获取临时文件信息,请使用 wx.getFileInfo 接口。
- */
- getSavedFileInfo(obj: {
- /**
- * 文件路径
- */
- filePath: string;
- /**
- * 接口调用成功的回调函数,返回结果见success返回参数说明
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 删除本地存储的文件
- */
- removeSavedFile(obj: {
- /**
- * 需要删除的文件路径
- */
- filePath: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 新开页面打开文档,支持格式:doc, xls, ppt, pdf, docx, xlsx, pptx
- */
- openDocument(obj: {
- /**
- * 文件路径,可通过 downFile 获得
- */
- filePath: string;
- /**
- * 文件类型,指定文件类型打开文件,有效值 doc, xls, ppt, pdf, docx, xlsx, pptx
- */
- fileType?: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getFileInfo(obj: {
- /**
- * 本地文件路径
- */
- filePath: string;
- /**
- * 计算文件摘要的算法,默认值 md5,有效值:md5,sha1
- */
- digestAlgorithm?: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- // # 数据缓存 #
-
- /**
- * 将数据存储在本地缓存中指定的 key 中,会覆盖掉原来该 key 对应的内容,这是一个异步接口。
- */
- setStorage(obj: {
- /**
- * 本地缓存中的指定的 key
- */
- key: string;
- /**
- * 需要存储的内容
- */
- data: any;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 将 data 存储在本地缓存中指定的 key 中,会覆盖掉原来该 key 对应的内容,这是一个同步接口。
- */
- setStorageSync(key: string, data: any, ): void;
-
- /**
- * 从本地缓存中异步获取指定 key 对应的内容。
- */
- getStorage(obj: {
- /**
- * 本地缓存中的指定的 key
- */
- key: string;
- /**
- * 接口调用的回调函数,res = {data: key对应的内容}
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 从本地缓存中同步获取指定 key 对应的内容。
- */
- getStorageSync(key: string): void;
-
- /**
- * 异步获取当前storage的相关信息
- */
- getStorageInfo(obj: {
- /**
- * 接口调用的回调函数,详见返回参数说明
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 同步获取当前storage的相关信息
- */
- getStorageInfoSync(): void;
-
- /**
- * 从本地缓存中异步移除指定 key 。
- */
- removeStorage(obj: {
- /**
- * 本地缓存中的指定的 key
- */
- key: string;
- /**
- * 接口调用的回调函数
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 从本地缓存中同步移除指定 key 。
- */
- removeStorageSync(key: string): void;
-
- /**
- * 清理本地数据缓存。
- */
- clearStorage(): void;
-
- /**
- * 同步清理本地数据缓存
- */
- clearStorageSync(): void;
-
- // # 位置 #
-
- /**
- * 获取当前的地理位置、速度。当用户离开小程序后,此接口无法调用;当用户点击“显示在聊天顶部”时,此接口可继续调用。
- */
- getLocation(obj: {
- /**
- * 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于wx.openLocation的坐标
- */
- type?: string;
- /**
- * 接口调用成功的回调函数,返回内容详见返回参数说明。
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 打开地图选择位置
- */
- chooseLocation(obj: {
- /**
- * 接口调用成功的回调函数,返回内容详见返回参数说明。
- */
- success: Function;
- /**
- * 用户取消时调用
- */
- cancel?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 使用微信内置地图查看位置
- */
- openLocation(obj: {
- /**
- * 纬度,范围为-90~90,负数表示南纬
- */
- latitude: number;
- /**
- * 经度,范围为-180~180,负数表示西经
- */
- longitude: number;
- /**
- * 缩放比例,范围5~18,默认为18
- */
- scale?: number;
- /**
- * 位置名
- */
- name?: string;
- /**
- * 地址的详细说明
- */
- address?: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 创建并返回 map 上下文 mapContext 对象
- */
- createMapContext(mapId: string): IMapContext;
-
- // # 设备 #
-
- /**
- * 获取系统信息。
- */
- getSystemInfo(obj: {
- /**
- * 接口调用成功的回调
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 获取系统信息同步接口
- */
- getSystemInfoSync(): void;
-
- /**
- * 获取网络类型。
- */
- getNetworkType(obj: {
- /**
- * 接口调用成功,返回网络类型 networkType
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- onNetworkStatusChange(callback: Function): void;
-
- setScreenBrightness(obj: {
- /**
- * 屏幕亮度值,范围 0~1,0 最暗,1 最亮
- */
- value: number;
- /**
- * 接口调用成功
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getScreenBrightness(obj: {
- /**
- * 接口调用成功
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- vibrateLong(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- vibrateShort(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 监听加速度数据,频率:5次/秒,接口调用后会自动开始监听,可使用 wx.stopAccelerometer 停止监听。
- */
- onAccelerometerChange(callback: Function): void;
-
- startAccelerometer(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- stopAccelerometer(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 监听罗盘数据,频率:5次/秒,接口调用后会自动开始监听,可使用wx.stopCompass停止监听。
- */
- onCompassChange(callback: Function): void;
-
- startCompass(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- stopCompass(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- makePhoneCall(obj: {
- /**
- * 需要拨打的电话号码
- */
- phoneNumber: string;
- /**
- * 接口调用成功的回调
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 调起客户端扫码界面,扫码成功后返回对应的结果
- */
- scanCode(obj: {
- /**
- * 是否只能从相机扫码,不允许从相册选择图片
- */
- onlyFromCamera?: boolean;
- /**
- * 接口调用成功的回调函数,返回内容详见返回参数说明。
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- setClipboardData(obj: {
- /**
- * 需要设置的内容
- */
- data: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getClipboardData(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- openBluetoothAdapter(obj: {
- /**
- * 成功则返回成功初始化信息
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- closeBluetoothAdapter(obj: {
- /**
- * 成功则返回成功关闭模块信息
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getBluetoothAdapterState(obj: {
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- onBluetoothAdapterStateChange(callback: Function): void;
-
- startBluetoothDevicesDiscovery(obj: {
- /**
- * 蓝牙设备主 service 的 uuid 列表
- */
- services?: Array;
- /**
- * 是否允许重复上报同一设备, 如果允许重复上报,则onDeviceFound 方法会多次上报同一设备,但是 RSSI 值会有不同
- */
- allowDuplicatesKey?: boolean;
- /**
- * 上报设备的间隔,默认为0,意思是找到新设备立即上报,否则根据传入的间隔上报
- */
- interval?: number;
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- stopBluetoothDevicesDiscovery(obj: {
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getBluetoothDevices(obj: {
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- onBluetoothDeviceFound(callback: Function): void;
-
- getConnectedBluetoothDevices(obj: {
- /**
- * 蓝牙设备主 service 的 uuid 列表
- */
- services: Array;
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- createBLEConnection(obj: {
- /**
- * 蓝牙设备 id,参考 getDevices 接口
- */
- deviceId: string;
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- closeBLEConnection(obj: {
- /**
- * 蓝牙设备 id,参考 getDevices 接口
- */
- deviceId: string;
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getBLEDeviceServices(obj: {
- /**
- * 蓝牙设备 id,参考 getDevices 接口
- */
- deviceId: string;
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getBLEDeviceCharacteristics(obj: {
- /**
- * 蓝牙设备 id,参考 device 对象
- */
- deviceId: string;
- /**
- * 蓝牙服务 uuid
- */
- serviceId: string;
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- readBLECharacteristicValue(obj: {
- /**
- * 蓝牙设备 id,参考 device 对象
- */
- deviceId: string;
- /**
- * 蓝牙特征值对应服务的 uuid
- */
- serviceId: string;
- /**
- * 蓝牙特征值的 uuid
- */
- characteristicId: string;
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- writeBLECharacteristicValue(obj: {
- /**
- * 蓝牙设备 id,参考 device 对象
- */
- deviceId: string;
- /**
- * 蓝牙特征值对应服务的 uuid
- */
- serviceId: string;
- /**
- * 蓝牙特征值的 uuid
- */
- characteristicId: string;
- /**
- * 蓝牙设备特征值对应的二进制值(注意:vConsole 无法打印出 ArrayBuffer 类型数据)
- */
- value: undefined;
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- notifyBLECharacteristicValueChange(obj: {
- /**
- * 蓝牙设备 id,参考 device 对象
- */
- deviceId: string;
- /**
- * 蓝牙特征值对应服务的 uuid
- */
- serviceId: string;
- /**
- * 蓝牙特征值的 uuid
- */
- characteristicId: string;
- /**
- * true: 启用 notify; false: 停用 notify
- */
- state: boolean;
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- onBLEConnectionStateChange(callback: Function): void;
-
- onBLECharacteristicValueChange(callback: Function): void;
-
- startBeaconDiscovery(obj: {
- /**
- * iBeacon设备广播的 uuids
- */
- uuids: string[];
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- stopBeaconDiscovery(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getBeacons(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- onBeaconUpdate(callback: Function): void;
-
- onBeaconServiceChange(callback: Function): void;
-
- onUserCaptureScreen(callback: Function): void;
-
- addPhoneContact(obj: {
- /**
- * 头像本地文件路径
- */
- photoFilePath?: string;
- /**
- * 昵称
- */
- nickName?: string;
- /**
- * 姓氏
- */
- lastName?: string;
- /**
- * 中间名
- */
- middleName?: string;
- /**
- * 名字
- */
- firstName: string;
- /**
- * 备注
- */
- remark?: string;
- /**
- * 手机号
- */
- mobilePhoneNumber?: string;
- /**
- * 微信号
- */
- weChatNumber?: string;
- /**
- * 联系地址国家
- */
- addressCountry?: string;
- /**
- * 联系地址省份
- */
- addressState?: string;
- /**
- * 联系地址城市
- */
- addressCity?: string;
- /**
- * 联系地址街道
- */
- addressStreet?: string;
- /**
- * 联系地址邮政编码
- */
- addressPostalCode?: string;
- /**
- * 公司
- */
- organization?: string;
- /**
- * 职位
- */
- title?: string;
- /**
- * 工作传真
- */
- workFaxNumber?: string;
- /**
- * 工作电话
- */
- workPhoneNumber?: string;
- /**
- * 公司电话
- */
- hostNumber?: string;
- /**
- * 电子邮件
- */
- email?: string;
- /**
- * 网站
- */
- url?: string;
- /**
- * 工作地址国家
- */
- workAddressCountry?: string;
- /**
- * 工作地址省份
- */
- workAddressState?: string;
- /**
- * 工作地址城市
- */
- workAddressCity?: string;
- /**
- * 工作地址街道
- */
- workAddressStreet?: string;
- /**
- * 工作地址邮政编码
- */
- workAddressPostalCode?: string;
- /**
- * 住宅传真
- */
- homeFaxNumber?: string;
- /**
- * 住宅电话
- */
- homePhoneNumber?: string;
- /**
- * 住宅地址国家
- */
- homeAddressCountry?: string;
- /**
- * 住宅地址省份
- */
- homeAddressState?: string;
- /**
- * 住宅地址城市
- */
- homeAddressCity?: string;
- /**
- * 住宅地址街道
- */
- homeAddressStreet?: string;
- /**
- * 住宅地址邮政编码
- */
- homeAddressPostalCode?: string;
- /**
- * 接口调用成功
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- // # 界面 #
-
- /**
- * 显示消息提示框
- */
- showToast(obj: {
- /**
- * 提示的内容
- */
- title: string;
- /**
- * 图标,有效值 "success", "loading"
- */
- icon?: string;
- /**
- * 自定义图标的本地路径,image 的优先级高于 icon
- */
- image?: string;
- /**
- * 提示的延迟时间,单位毫秒,默认:1500
- */
- duration?: number;
- /**
- * 是否显示透明蒙层,防止触摸穿透,默认:false
- */
- mask?: boolean;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- showLoading(obj: {
- /**
- * 提示的内容
- */
- title: string;
- /**
- * 是否显示透明蒙层,防止触摸穿透,默认:false
- */
- mask?: boolean;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 隐藏消息提示框
- */
- hideToast(): void;
-
- hideLoading(): void;
-
- /**
- * 显示模态弹窗
- */
- showModal(obj: {
- /**
- * 提示的标题
- */
- title: string;
- /**
- * 提示的内容
- */
- content: string;
- /**
- * 是否显示取消按钮,默认为 true
- */
- showCancel?: boolean;
- /**
- * 取消按钮的文字,默认为"取消",最多 4 个字符
- */
- cancelText?: string;
- /**
- * 取消按钮的文字颜色,默认为"#000000"
- */
- cancelColor?: undefined;
- /**
- * 确定按钮的文字,默认为"确定",最多 4 个字符
- */
- confirmText?: string;
- /**
- * 确定按钮的文字颜色,默认为"#3CC51F"
- */
- confirmColor?: undefined;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 显示操作菜单
- */
- showActionSheet(obj: {
- /**
- * 按钮的文字数组,数组长度最大为6个
- */
- itemList: undefined;
- /**
- * 按钮的文字颜色,默认为"#000000"
- */
- itemColor?: undefined;
- /**
- * 接口调用成功的回调函数,详见返回参数说明
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- setTopBarText(obj: {
- /**
- * 置顶栏文字内容
- */
- text: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 动态设置当前页面的标题。
- */
- setNavigationBarTitle(obj: {
- /**
- * 页面标题
- */
- title: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 在当前页面显示导航条加载动画。
- */
- showNavigationBarLoading(): void;
-
- /**
- * 隐藏导航条加载动画。
- */
- hideNavigationBarLoading(): void;
-
- /**
- * 保留当前页面,跳转到应用内的某个页面,使用wx.navigateBack可以返回到原页面。
- */
- navigateTo(obj: {
- /**
- * 需要跳转的应用内非 tabBar 的页面的路径 , 路径后可以带参数。参数与路径之间使用?分隔,参数键与参数值用=相连,不同参数用&分隔;如 'path?key=value&key2=value2'
- */
- url: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 关闭当前页面,跳转到应用内的某个页面。
- */
- redirectTo(obj: {
- /**
- * 需要跳转的应用内非 tabBar 的页面的路径,路径后可以带参数。参数与路径之间使用?分隔,参数键与参数值用=相连,不同参数用&分隔;如 'path?key=value&key2=value2'
- */
- url: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- reLaunch(obj: {
- /**
- * 需要跳转的应用内页面路径 , 路径后可以带参数。参数与路径之间使用?分隔,参数键与参数值用=相连,不同参数用&分隔;如 'path?key=value&key2=value2',如果跳转的页面路径是 tabBar 页面则不能带参数
- */
- url: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面
- */
- switchTab(obj: {
- /**
- * 需要跳转的 tabBar 页面的路径(需在 app.json 的 tabBar 字段定义的页面),路径后不能带参数
- */
- url: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 关闭当前页面,返回上一页面或多级页面。可通过 getCurrentPages()) 获取当前的页面栈,决定需要返回几层。
- */
- navigateBack(obj: {
- /**
- * 返回的页面数,如果 delta 大于现有页面数,则返回到首页。
- */
- delta?: number;
- }): void;
-
- /**
- * 创建一个动画实例animation。调用实例的方法来描述动画。最后通过动画实例的export方法导出动画数据传递给组件的animation属性。
- */
- createAnimation(obj: {
- /**
- * 400
- */
- duration?: number;
- /**
- * "linear"
- */
- timingFunction?: string;
- /**
- * 0
- */
- delay?: number;
- /**
- * "50% 50% 0"
- */
- transformOrigin?: string;
- }): IAnimation;
-
- pageScrollTo(obj: {
- /**
- * 滚动到页面的目标位置(单位px)
- */
- scrollTop: number;
- }): void;
-
- /**
- * 创建 canvas 绘图上下文(指定 canvasId).Tip: 需要指定 canvasId,该绘图上下文只作用于对应的
- */
- createCanvasContext(canvasId: string): ICanvasContext;
-
- /**
- * 把当前画布的内容导出生成图片,并返回文件路径
- */
- canvasToTempFilePath(canvasId: string): void;
-
- startPullDownRefresh(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 停止当前页面下拉刷新。
- */
- stopPullDownRefresh(): void;
-
- // # WXML节点信息 #
-
- // # 第三方平台 #
-
- getExtConfig(obj: {
- /**
- * 返回第三方平台自定义的数据
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getExtConfigSync(): void;
-
- // # 开放接口 #
-
- /**
- * 调用接口获取登录凭证(code)进而换取用户登录态信息,包括用户的唯一标识(openid) 及本次登录的 会话密钥(session_key)。用户数据的加解密通讯需要依赖会话密钥完成。
- */
- login(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 通过上述接口获得的用户登录态拥有一定的时效性。用户越久未使用小程序,用户登录态越有可能失效。反之如果用户一直在使用小程序,则用户登录态一直保持有效。具体时效逻辑由微信维护,对开发者透明。开发者只需要调用wx.checkSession接口检测当前用户登录态是否有效。登录态过期后开发者可以再调用wx.login获取新的用户登录态。
- */
- checkSession(obj: {
- /**
- * 接口调用成功的回调函数,登录态未过期
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数,登录态已过期
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- authorize(obj: {
- /**
- * 需要获取权限的scope,详见 scope 列表
- */
- scope: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 获取用户信息,withCredentials 为 true 时需要先调用 wx.login 接口。
- */
- getUserInfo(obj: {
- /**
- * 是否带上登录态信息
- */
- withCredentials?: boolean;
- /**
- * 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文
- */
- lang?: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 发起微信支付。
- */
- requestPayment(obj: {
- /**
- * 时间戳从1970年1月1日00:00:00至今的秒数,即当前的时间
- */
- timeStamp: string;
- /**
- * 随机字符串,长度为32个字符以下。
- */
- nonceStr: string;
- /**
- * 统一下单接口返回的 prepay_id 参数值,提交格式如:prepay_id=*
- */
- package: string;
- /**
- * 签名算法,暂支持 MD5
- */
- signType: string;
- /**
- * 签名,具体签名方案参见小程序支付接口文档;
- */
- paySign: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- chooseAddress(obj: {
- /**
- * 返回用户选择的收货地址信息
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- addCard(obj: {
- /**
- * 需要添加的卡券列表,列表内对象说明请参见请求对象说明
- */
- cardList: undefined;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- openCard(obj: {
- /**
- * 需要打开的卡券列表,列表内参数详见openCard 请求对象说明
- */
- cardList: undefined;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- openSetting(obj: {
- /**
- * 接口调用成功的回调函数,返回内容详见返回参数说明。
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getSetting(obj: {
- /**
- * 接口调用成功的回调函数,返回内容详见返回参数说明。
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getWeRunData(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- navigateToMiniProgram(obj: {
- /**
- * 要打开的小程序 appId
- */
- appId: string;
- /**
- * 打开的页面路径,如果为空则打开首页
- */
- path?: string;
- /**
- * 需要传递给目标小程序的数据,目标小程序可在 App.onLaunch(),App.onShow() 中获取到这份数据。详情
- */
- extraData?: any;
- /**
- * 要打开的小程序版本,有效值 develop(开发版),trial(体验版),release(正式版) ,仅在当前小程序为开发版或体验版时此参数有效;如果当前小程序是体验版或正式版,则打开的小程序必定是正式版。默认值 release
- */
- envVersion?: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- chooseInvoiceTitle(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- checkIsSupportSoterAuthentication(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- // # 数据 #
-
- /**
- * 自定义分析数据上报接口。使用前,需要在小程序管理后台自定义分析中新建事件,配置好事件名与字段。
- */
- reportAnalytics(eventName: string, data: string, ): void;
-
- // # 拓展接口 #
-
- arrayBufferToBase64(arrayBuffer: string): void;
-
- base64ToArrayBuffer(base64: string): void;
-
- // # 调试接口 #
-
- setEnableDebug(obj: {
- /**
- * 是否打开调试
- */
- enableDebug: boolean;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
-}
\ No newline at end of file
diff --git a/src/openeuler/utils/app-user.js b/src/openeuler/utils/app-user.js
index da8bdc8..823211d 100644
--- a/src/openeuler/utils/app-user.js
+++ b/src/openeuler/utils/app-user.js
@@ -191,7 +191,6 @@ const appUser = {
},
service: 'LOGIN',
data: {
- userInfo: userInfo,
code: data.code,
},
success: function (result) {
diff --git a/src/openeuler/utils/url-config.js b/src/openeuler/utils/url-config.js
index 2903257..0f630e4 100644
--- a/src/openeuler/utils/url-config.js
+++ b/src/openeuler/utils/url-config.js
@@ -1,6 +1,8 @@
const BILIBILI_URL = 'https://space.bilibili.com/527064077';
const OBS_URL = 'https://openeuler-website.obs.ap-southeast-1.myhuaweicloud.com';
+const OBS_BJ_URL = 'https://openeuler-website-beijing.obs.cn-north-4.myhuaweicloud.com';
module.exports = {
OBS_URL,
BILIBILI_URL,
+ OBS_BJ_URL,
};
--
Gitee
From dfd6ea7785a60c2b7c64676546aeff9d610b1e3d Mon Sep 17 00:00:00 2001
From: haml-707 <845831435@qq.com>
Date: Fri, 10 Nov 2023 18:08:07 +0800
Subject: [PATCH 03/10] =?UTF-8?q?feat:=20=E6=95=B0=E6=8D=AE=E5=88=86?=
=?UTF-8?q?=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/openeuler/app.json | 3 +-
.../components/meeting-list/meeting-list.js | 809 +++--
.../components/meeting-list/meeting-list.wxml | 14 +-
src/openeuler/config/services-config.js | 8 +-
.../miniprogram_npm/eventemitter3/index.js | 349 ---
.../eventemitter3/index.js.map | 1 -
.../miniprogram_npm/widget-ui/index.js | 13 -
.../miniprogram_npm/widget-ui/index.js.map | 1 -
.../miniprogram_npm/wxml-to-canvas/index.js | 779 -----
.../miniprogram_npm/wxml-to-canvas/index.json | 4 -
.../miniprogram_npm/wxml-to-canvas/index.wxml | 2 -
.../miniprogram_npm/wxml-to-canvas/index.wxss | 0
.../miniprogram_npm/wxml-to-canvas/utils.js | 57 -
.../package-events/events/event-list.js | 43 +-
.../package-events/events/event-list.wxml | 32 +-
src/openeuler/package-events/events/poster.js | 55 +-
.../package-events/events/poster.wxml | 7 -
.../package-events/events/poster.wxss | 4 +-
src/openeuler/package-events/events/sign.js | 45 -
src/openeuler/package-events/events/sign.json | 3 -
src/openeuler/package-events/events/sign.wxml | 9 -
src/openeuler/package-events/events/sign.wxss | 64 -
.../package-events/events/wxml-to-canvas.js | 91 -
.../package-events/manage/add-member.js | 54 +-
.../package-events/manage/add-member.wxss | 1 -
.../package-events/manage/del-member.js | 38 +-
.../package-events/manage/del-member.wxss | 2 +-
.../package-events/manage/enterprise-list.js | 40 +-
.../manage/enterprise-list.wxml | 6 +-
.../manage/enterprise-list.wxss | 2 +-
.../package-events/publish/publish.js | 26 +-
.../package-meeting/meeting/meeting-list.js | 15 +-
.../package-meeting/sig/add-member.js | 50 +-
.../package-meeting/sig/add-member.wxss | 2 +-
.../package-meeting/sig/add-sig-member.js | 42 +-
.../package-meeting/sig/add-sig-member.wxml | 4 +-
.../package-meeting/sig/add-sig-member.wxss | 2 +-
.../package-meeting/sig/del-member.js | 37 +-
.../package-meeting/sig/del-member.wxss | 2 +-
src/openeuler/package-my/events/my-list.js | 55 +-
src/openeuler/package-my/events/my-list.wxml | 39 +-
src/openeuler/package-my/my/my-collection.js | 4 +
.../package-my/my/my-collection.wxml | 2 +-
src/openeuler/package-my/my/my-meetings.js | 4 +
src/openeuler/package-my/my/my-meetings.wxml | 2 +-
.../package-my/my/privecy-historical.js | 40 -
.../package-my/my/privecy-historical.wxml | 2 +-
src/openeuler/pages/events/events.js | 32 +-
src/openeuler/pages/events/events.wxml | 41 +-
src/openeuler/pages/index/index.js | 4 +
src/openeuler/pages/meeting/meeting.js | 4 +
src/openeuler/pages/meeting/meeting.wxml | 12 +-
src/openeuler/pages/my/my.wxml | 6 +-
src/openeuler/project.private.config.json | 7 +
src/openeuler/typings/wx.d.ts | 2705 +++++++++++++++++
src/openeuler/utils/app-ajax.js | 81 +-
src/openeuler/utils/app-user.js | 1 +
src/openeuler/utils/page-mixin.js | 2 +-
src/openeuler/utils/retry-ajax.js | 67 +
59 files changed, 3702 insertions(+), 2124 deletions(-)
delete mode 100644 src/openeuler/miniprogram_npm/eventemitter3/index.js
delete mode 100644 src/openeuler/miniprogram_npm/eventemitter3/index.js.map
delete mode 100644 src/openeuler/miniprogram_npm/widget-ui/index.js
delete mode 100644 src/openeuler/miniprogram_npm/widget-ui/index.js.map
delete mode 100644 src/openeuler/miniprogram_npm/wxml-to-canvas/index.js
delete mode 100644 src/openeuler/miniprogram_npm/wxml-to-canvas/index.json
delete mode 100644 src/openeuler/miniprogram_npm/wxml-to-canvas/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/wxml-to-canvas/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/wxml-to-canvas/utils.js
delete mode 100644 src/openeuler/package-events/events/sign.js
delete mode 100644 src/openeuler/package-events/events/sign.json
delete mode 100644 src/openeuler/package-events/events/sign.wxml
delete mode 100644 src/openeuler/package-events/events/sign.wxss
delete mode 100644 src/openeuler/package-events/events/wxml-to-canvas.js
create mode 100644 src/openeuler/typings/wx.d.ts
create mode 100644 src/openeuler/utils/retry-ajax.js
diff --git a/src/openeuler/app.json b/src/openeuler/app.json
index daaea1c..a7ce0a4 100644
--- a/src/openeuler/app.json
+++ b/src/openeuler/app.json
@@ -78,8 +78,7 @@
"van-radio-group": "@vant/weapp/radio-group/index",
"van-datetime-picker": "@vant/weapp/datetime-picker/index",
"van-picker": "@vant/weapp/picker/index",
- "van-action-sheet": "@vant/weapp/action-sheet/index",
- "wxml-to-canvas": "wxml-to-canvas"
+ "van-action-sheet": "@vant/weapp/action-sheet/index"
},
"sitemapLocation": "sitemap.json",
"__usePrivacyCheck__": true,
diff --git a/src/openeuler/components/meeting-list/meeting-list.js b/src/openeuler/components/meeting-list/meeting-list.js
index d11c9cd..234c183 100644
--- a/src/openeuler/components/meeting-list/meeting-list.js
+++ b/src/openeuler/components/meeting-list/meeting-list.js
@@ -1,430 +1,425 @@
// components/meeting-list/meeting-list.js
const appAjax = require('./../../utils/app-ajax');
-const sessionUtil = require("../../utils/app-session.js");
+const sessionUtil = require('../../utils/app-session.js');
let that = null;
const remoteMethods = {
- getSigList: function (_callback) {
- appAjax.postJson({
- type: 'GET',
- service: "SIG_LIST",
- success: function (ret) {
- _callback && _callback(ret);
- }
- });
+ getSigList: function (_callback) {
+ appAjax.postJson({
+ type: 'GET',
+ service: 'MEETING_SIG_LIST',
+ success: function (ret) {
+ _callback && _callback(ret);
+ },
+ });
+ },
+ getMeettingData: function (params, _callback) {
+ if (that?.properties.pageType === 2) {
+ params = {
+ ...params,
+ topic: that.data.curKeyword,
+ search: that.data.filterSigName === '全部SIG' ? '' : that.data.filterSigName,
+ };
+ }
+ appAjax.postJson({
+ autoShowWait: true,
+ type: 'GET',
+ service: that.properties.apiUrl,
+ success: function (ret) {
+ _callback && _callback(ret);
+ },
+ data: params,
+ });
+ },
+ delMeeting: function (id, _callback) {
+ appAjax.postJson({
+ autoShowWait: true,
+ type: 'DELETE',
+ service: 'DEL_MEETING',
+ otherParams: {
+ id: id,
+ },
+ success: function (ret) {
+ _callback && _callback(ret);
+ },
+ });
+ },
+ collect: function (id, _callback) {
+ appAjax.postJson({
+ autoShowWait: true,
+ type: 'POST',
+ service: 'COLLECT',
+ data: {
+ meeting: id,
+ },
+ success: function (ret) {
+ _callback && _callback(ret);
+ },
+ });
+ },
+ uncollect: function (id, _callback) {
+ appAjax.postJson({
+ autoShowWait: true,
+ type: 'DELETE',
+ service: 'UNCOLLECT',
+ otherParams: {
+ id: id,
+ },
+ success: function (ret) {
+ _callback && _callback(ret);
+ },
+ });
+ },
+};
+const localMethod = {
+ checkLogin() {
+ if (!sessionUtil.getUserInfoByKey('access')) {
+ wx.navigateTo({
+ url: '/pages/auth/auth',
+ });
+ return;
+ }
+ return true;
+ },
+};
+Component({
+ /**
+ * 组件的属性列表
+ * apiUrl: 接口资源路径
+ * pageType: 1、首页 2、会议列表页 3、我的会议页面 4、我的收藏会议页面
+ */
+ properties: {
+ apiUrl: {
+ type: String,
+ value: 'GET_MEETING_DAILY',
},
- getMeettingData: function (_callback) {
- appAjax.postJson({
- autoShowWait: true,
- type: 'GET',
- service: that.properties.apiUrl,
- success: function (ret) {
- _callback && _callback(ret);
- if (that.properties.pageType === 2) {
- that.setData({
- filterList: ret
- })
- localMethod.filterData();
- }
- }
- });
+ pageType: {
+ type: Number,
+ value: 1,
},
- delMeeting: function (id, _callback) {
- appAjax.postJson({
- autoShowWait: true,
- type: 'DELETE',
- service: "DEL_MEETING",
- otherParams: {
- id: id
- },
- success: function (ret) {
- _callback && _callback(ret);
- }
- });
+ isHome: {
+ type: Boolean,
+ value: false,
},
- collect: function (id, _callback) {
- appAjax.postJson({
- autoShowWait: true,
- type: 'POST',
- service: "COLLECT",
- data: {
- meeting: id
- },
- success: function (ret) {
- _callback && _callback(ret);
- }
- });
+ },
+
+ /**
+ * 组件的初始数据
+ */
+ data: {
+ list: [],
+ curMid: '',
+ curJoinUrl: '',
+ collectionId: '',
+ platformList: [
+ {
+ value: 'zoom',
+ name: 'Zoom',
+ },
+ {
+ value: 'welink',
+ name: 'WeLink(蓝版)',
+ },
+ {
+ value: 'tencent',
+ name: '腾讯会议',
+ },
+ ],
+ id: '',
+ pageParams: {
+ page: 1,
+ size: 50,
},
- uncollect: function (id, _callback) {
- appAjax.postJson({
- autoShowWait: true,
- type: 'DELETE',
- service: "UNCOLLECT",
- otherParams: {
- id: id
- },
- success: function (ret) {
- _callback && _callback(ret);
- }
- });
- }
-}
-const localMethod = {
- filterData: function () {
- let listTemp = [];
- if (that.data.curFilterSigId === '' && that.data.curKeyword === '') {
- that.setData({
- list: that.data.filterList
- })
- return;
+ total: 0,
+ showDialog: false,
+ showDialogDel: false,
+ actionShow: false,
+ actions: [],
+ popShow: false,
+ filterSigId: '',
+ filterSigName: '全部SIG',
+ columns: [],
+ curKeyword: '',
+ curFilterSigId: '',
+ curFilterSigName: '全部SIG',
+ filterList: [],
+ },
+ attached() {
+ this.properties.pageType === 2 &&
+ remoteMethods.getSigList(function (data) {
+ if (data && data.length) {
+ data.unshift({
+ group_name: '全部SIG',
+ id: '',
+ });
+ that.setData({
+ columns: data,
+ });
}
- if (that.data.curFilterSigId === '') {
- that.data.filterList.forEach(function (item, index) {
- if (item.topic.toLowerCase().includes(that.data.curKeyword.toLowerCase()) || item.group_name.toLowerCase().includes(that.data.curKeyword.toLowerCase())) {
- listTemp.push(item);
- }
- })
- that.setData({
- list: listTemp
- })
- return;
- }
- if (that.data.curKeyword === '') {
- that.data.filterList.forEach(function (item, index) {
- if (item.group_name.includes(that.data.filterSigName)) {
- listTemp.push(item);
- }
- })
- that.setData({
- list: listTemp
- })
- return;
- }
- that.data.filterList.forEach(function (item, index) {
- if (item.group_name.includes(that.data.filterSigName) && item.topic.toLowerCase().includes(that.data.curKeyword.toLowerCase())) {
- listTemp.push(item);
- }
- })
- that.setData({
- list: listTemp
- })
+ });
+ },
+ pageLifetimes: {
+ // 组件所在页面的生命周期函数
+ show: function () {
+ that = this;
+ if (this.properties.pageType === 3 || this.properties.pageType === 4) {
+ this.initData();
+ }
+ },
+ },
+ /**
+ * 组件的方法列表
+ */
+ methods: {
+ getMoreData() {
+ if (this.data.total < this.data.pageParams.size * this.data.pageParams.page) {
+ return false;
+ }
+ this.setData({
+ 'pageParams.page': this.data.pageParams.page + 1,
+ });
+ this.initData();
},
- checkLogin() {
- if (!sessionUtil.getUserInfoByKey('access')) {
- wx.navigateTo({
- url: '/pages/auth/auth'
- })
- return;
+ initData: function () {
+ let renderData = [];
+ remoteMethods.getMeettingData(this.data.pageParams, (data) => {
+ if (this.data.pageParams.page === 1) {
+ renderData = data.data;
+ } else {
+ renderData = this.data.list;
+ renderData.push(...data.data);
}
- return true;
- }
-}
-Component({
- /**
- * 组件的属性列表
- * apiUrl: 接口资源路径
- * pageType: 1、首页 2、会议列表页 3、我的会议页面 4、我的收藏会议页面
- */
- properties: {
- apiUrl: {
- type: String,
- value: 'GET_MEETING_DAILY'
+ this.setData({
+ list: renderData,
+ total: data.total,
+ });
+ });
+ },
+ collect: function () {
+ if (this.data.collectionId) {
+ remoteMethods.uncollect(this.data.collectionId, () => {
+ this.setData({
+ 'pageParams.page': 1,
+ });
+ this.initData();
+ });
+ } else {
+ wx.requestSubscribeMessage({
+ // tmplIds 对应消息模板
+ tmplIds: ['2xSske0tAcOVKNG9EpBjlb1I-cjPWSZrpwPDTgqAmWI', 'UpxRbZf8Z9QiEPlZeRCgp_MKvvqHlo6tcToY8fToK50'],
+ success() {
+ remoteMethods.collect(that.data.id, (res) => {
+ if (res.code == 201) {
+ that.setData({
+ 'pageParams.page': 1,
+ });
+ that.initData();
+ }
+ });
+ },
+ });
+ }
+ },
+ getAddr: function () {
+ this.setData({
+ showDialog: true,
+ });
+ },
+ getPlatform: function (key) {
+ return this.data.platformList.find((item) => item.name === key)?.value;
+ },
+ copyLink: function () {
+ wx.setClipboardData({
+ data: this.data.curJoinUrl,
+ success: function () {
+ that.setData({
+ showDialog: false,
+ });
},
- pageType: {
- type: Number,
- value: 1
+ });
+ },
+ copyId: function () {
+ wx.setClipboardData({
+ data: this.data.curMid,
+ success: function (res) {
+ that.setData({
+ showDialog: false,
+ });
},
- isHome: {
- type: Boolean,
- value: false
- }
+ });
},
-
- /**
- * 组件的初始数据
- */
- data: {
- list: [],
- curMid: '',
- curJoinUrl: '',
- collectionId: '',
- platformList: [{
- value: 'zoom',
- name: 'Zoom'
- }, {
- value: 'welink',
- name: 'WeLink(蓝版)'
- }, {
- value: 'tencent',
- name: '腾讯会议'
- }],
- id: '',
+ closeDialog: function () {
+ this.setData({
showDialog: false,
+ });
+ },
+ delMeeting: function () {
+ this.setData({
+ showDialogDel: true,
+ });
+ },
+ del: function () {
+ console.log(this.data.curMid);
+ remoteMethods.delMeeting(this.data.curMid, (data) => {
+ if (data.code == 204) {
+ this.setData({
+ showDialogDel: false,
+ 'pageParams.page': 1,
+ });
+ this.initData();
+ }
+ });
+ },
+ delCancel: function () {
+ this.setData({
showDialogDel: false,
+ });
+ },
+ toDetail: function (e) {
+ wx.navigateTo({
+ url: '/package-meeting/meeting/detail?id=' + e.currentTarget.dataset.id,
+ });
+ },
+ getMore(e) {
+ if (!localMethod.checkLogin()) {
+ return;
+ }
+ console.log(e.currentTarget.dataset);
+ this.setData({
+ curMid: e.currentTarget.dataset.item.mid,
+ curJoinUrl: e.currentTarget.dataset.item.join_url,
+ collectionId: e.currentTarget.dataset.item.collection_id || '',
+ id: e.currentTarget.dataset.item.id,
+ });
+ const collectDesc = this.data.collectionId ? '取消收藏' : '收藏会议';
+ const userId = e.currentTarget.dataset.item.user_id;
+ if (sessionUtil.getUserInfoByKey('level') === 1) {
+ this.setData({
+ actions: [
+ {
+ name: collectDesc,
+ operaType: 1,
+ },
+ {
+ name: '获取地址',
+ operaType: 2,
+ },
+ ],
+ });
+ } else if (sessionUtil.getUserInfoByKey('level') === 2) {
+ if (sessionUtil.getUserInfoByKey('userId') === userId) {
+ this.setData({
+ actions: [
+ {
+ name: collectDesc,
+ operaType: 1,
+ },
+ {
+ name: '获取地址',
+ operaType: 2,
+ },
+ {
+ name: '删除会议',
+ operaType: 3,
+ },
+ ],
+ });
+ } else {
+ this.setData({
+ actions: [
+ {
+ name: collectDesc,
+ operaType: 1,
+ },
+ {
+ name: '获取地址',
+ operaType: 2,
+ },
+ ],
+ });
+ }
+ } else {
+ this.setData({
+ actions: [
+ {
+ name: collectDesc,
+ operaType: 1,
+ },
+ {
+ name: '获取地址',
+ operaType: 2,
+ },
+ {
+ name: '删除会议',
+ operaType: 3,
+ },
+ ],
+ });
+ }
+ this.setData({
+ actionShow: true,
+ });
+ this.triggerEvent('action-status', 1);
+ },
+ onActionClose() {
+ this.setData({
actionShow: false,
- actions: [],
+ });
+ this.triggerEvent('action-status', 0);
+ },
+ onActionSelect(e) {
+ if (e.detail.operaType === 1) {
+ this.collect();
+ } else if (e.detail.operaType === 2) {
+ this.getAddr();
+ } else {
+ this.delMeeting();
+ }
+ },
+ filterSig: function () {
+ this.setData({
+ popShow: true,
+ });
+ },
+ popCancel: function () {
+ this.setData({
popShow: false,
- filterSigId: '',
- filterSigName: '全部SIG',
- columns: [],
- curKeyword: '',
- curFilterSigId: '',
- curFilterSigName: '全部SIG',
- filterList: [],
+ });
+ this.setData({
+ filterSigId: this.data.curFilterSigId,
+ filterSigName: this.data.curFilterSigName,
+ });
},
- attached() {
- this.properties.pageType === 2 && remoteMethods.getSigList(function (data) {
- if (data && data.length) {
- data.unshift({
- group_name: '全部SIG',
- id: ''
- })
- that.setData({
- columns: data
- })
- }
- })
+ pickerChange: function (e) {
+ this.setData({
+ filterSigId: e.detail.value.id,
+ filterSigName: e.detail.value.group_name,
+ });
},
- pageLifetimes: {
- // 组件所在页面的生命周期函数
- show: function () {
- that = this;
- if ((this.properties.pageType === 3) || (this.properties.pageType === 4)) {
- this.initData();
- }
- }
+ popConfirm: function () {
+ this.setData({
+ popShow: false,
+ curFilterSigId: this.data.filterSigId,
+ curFilterSigName: this.data.filterSigName,
+ });
+ this.initData();
},
- /**
- * 组件的方法列表
- */
- methods: {
- collect: function (e) {
- if (this.data.collectionId) {
- remoteMethods.uncollect(this.data.collectionId, function (res) {
- remoteMethods.getMeettingData(function (data) {
- that.setData({
- list: data
- })
- })
- })
- } else {
- wx.requestSubscribeMessage({
- // tmplIds 对应消息模板
- tmplIds: ['2xSske0tAcOVKNG9EpBjlb1I-cjPWSZrpwPDTgqAmWI', 'UpxRbZf8Z9QiEPlZeRCgp_MKvvqHlo6tcToY8fToK50'],
- success(res) {
- remoteMethods.collect(that.data.id, function (res) {
- if (res.code == 201) {
- remoteMethods.getMeettingData(function (data) {
- that.setData({
- list: data
- })
- })
- }
- })
- }
- })
-
- }
- },
- getAddr: function (e) {
- this.setData({
- showDialog: true
- })
-
- },
- getPlatform: function (key) {
- return this.data.platformList.find(item => item.name === key)?.value
- },
- copyLink: function () {
- wx.setClipboardData({
- data: this.data.curJoinUrl,
- success: function () {
- that.setData({
- showDialog: false
- })
- }
- })
-
- },
- copyId: function () {
- wx.setClipboardData({
- data: this.data.curMid,
- success: function (res) {
- that.setData({
- showDialog: false
- })
- }
- })
- },
- closeDialog: function () {
- this.setData({
- showDialog: false
- })
- },
- delMeeting: function () {
- this.setData({
- showDialogDel: true
- })
- },
- del: function () {
- remoteMethods.delMeeting(this.data.curMid, function (data) {
- if (data.code == 204) {
- that.setData({
- showDialogDel: false
- })
- remoteMethods.getMeettingData(function (data) {
- that.setData({
- list: data
- })
- })
- }
- })
- },
- delCancel: function () {
- this.setData({
- showDialogDel: false
- })
- },
- toDetail: function (e) {
- // if(!localMethod.checkLogin()){
- // return;
- // }
- wx.navigateTo({
- url: '/package-meeting/meeting/detail?id=' + e.currentTarget.dataset.id
- })
- },
- initData() {
- remoteMethods.getMeettingData(function (data) {
- that.setData({
- list: data
- })
- })
- },
- getMore(e) {
- if (!localMethod.checkLogin()) {
- return;
- }
- this.setData({
- curMid: e.currentTarget.dataset.item.mid,
- curJoinUrl: e.currentTarget.dataset.item.join_url,
- collectionId: e.currentTarget.dataset.item.collection_id || '',
- id: e.currentTarget.dataset.item.id
- })
- const collectDesc = this.data.collectionId ? '取消收藏' : '收藏会议';
- const userId = e.currentTarget.dataset.item.user_id;
- if (sessionUtil.getUserInfoByKey('level') === 1) {
- this.setData({
- actions: [{
- name: collectDesc,
- operaType: 1
- }, {
- name: '获取地址',
- operaType: 2
- }]
- })
- } else if (sessionUtil.getUserInfoByKey('level') === 2) {
- if (sessionUtil.getUserInfoByKey('userId') === userId) {
- this.setData({
- actions: [{
- name: collectDesc,
- operaType: 1
- }, {
- name: '获取地址',
- operaType: 2
- }, {
- name: '删除会议',
- operaType: 3
- }]
- })
- } else {
- this.setData({
- actions: [{
- name: collectDesc,
- operaType: 1
- }, {
- name: '获取地址',
- operaType: 2
- }]
- })
- }
- } else {
- this.setData({
- actions: [{
- name: collectDesc,
- operaType: 1
- }, {
- name: '获取地址',
- operaType: 2
- }, {
- name: '删除会议',
- operaType: 3
- }]
- })
- }
- this.setData({
- actionShow: true
- })
- this.triggerEvent("action-status", 1);
- },
- onActionClose() {
- this.setData({
- actionShow: false
- })
- this.triggerEvent("action-status", 0);
- },
- onActionSelect(e) {
- if (e.detail.operaType === 1) {
- this.collect();
- } else if (e.detail.operaType === 2) {
- this.getAddr();
- } else {
- this.delMeeting();
- }
- },
- filterSig: function () {
- this.setData({
- popShow: true
- })
- },
- popCancel: function () {
- this.setData({
- popShow: false
- })
- this.setData({
- filterSigId: this.data.curFilterSigId,
- filterSigName: this.data.curFilterSigName
- })
- },
- pickerChange: function (e) {
- this.setData({
- filterSigId: e.detail.value.id,
- filterSigName: e.detail.value.group_name
- })
- },
- popConfirm: function () {
- this.setData({
- popShow: false,
- curFilterSigId: this.data.filterSigId,
- curFilterSigName: this.data.filterSigName
- })
- localMethod.filterData();
- },
- popCancel: function () {
- this.setData({
- popShow: false,
- filterSigId: this.data.curFilterSigId,
- filterSigName: this.data.curFilterSigName
- })
- },
- search: function (e) {
- this.setData({
- curKeyword: e.detail.value
- })
- localMethod.filterData();
- }
+ popCancel: function () {
+ this.setData({
+ popShow: false,
+ filterSigId: this.data.curFilterSigId,
+ filterSigName: this.data.curFilterSigName,
+ });
},
- ready() {
- if ((this.properties.pageType === 1) || (this.properties.pageType === 2)) {
- this.initData();
- }
+ search: function (e) {
+ this.setData({
+ curKeyword: e.detail.value,
+ });
+ this.initData();
+ },
+ },
+ ready() {
+ if (this.properties.pageType === 1 || this.properties.pageType === 2) {
+ this.initData();
}
-})
\ No newline at end of file
+ },
+});
diff --git a/src/openeuler/components/meeting-list/meeting-list.wxml b/src/openeuler/components/meeting-list/meeting-list.wxml
index 1031cff..98f6ca4 100644
--- a/src/openeuler/components/meeting-list/meeting-list.wxml
+++ b/src/openeuler/components/meeting-list/meeting-list.wxml
@@ -1,5 +1,5 @@
-{{isHome?'最近':'今天'}}的会议({{list.length}})
+{{isHome?'最近':'今天'}}的会议({{total}})
@@ -31,7 +31,8 @@
{{item.agenda||'暂无描述'}}
-
+
+
@@ -52,7 +53,8 @@
当前暂无任何会议哦
-
+
{{curMid}}
{{curJoinUrl}}
@@ -63,7 +65,8 @@
-
+
请确认删除当前会议
@@ -72,7 +75,8 @@
-
+
diff --git a/src/openeuler/config/services-config.js b/src/openeuler/config/services-config.js
index 5d75397..883b216 100644
--- a/src/openeuler/config/services-config.js
+++ b/src/openeuler/config/services-config.js
@@ -5,9 +5,15 @@ let commonServiceConfig = {
// 登录接口
LOGIN: '/login/',
- // 登录接口
+ // 刷新 token
+ REFRESH: '/refresh/',
+
+ // SIG列表接口
SIG_LIST: '/groups/',
+ // 有会议的sig列表
+ MEETING_SIG_LIST: '/meetings_group/',
+
// 获取sig组已添加成员列表
SIG_MEMBER_LIST: '/users_include/{id}/',
diff --git a/src/openeuler/miniprogram_npm/eventemitter3/index.js b/src/openeuler/miniprogram_npm/eventemitter3/index.js
deleted file mode 100644
index 5f4e7a9..0000000
--- a/src/openeuler/miniprogram_npm/eventemitter3/index.js
+++ /dev/null
@@ -1,349 +0,0 @@
-module.exports = (function() {
-var __MODS__ = {};
-var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexports: {} }; __MODS__[modId] = { status: 0, func: func, req: req, m: m }; };
-var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
-var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
-var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
-__DEFINE__(1698905245833, function(require, module, exports) {
-
-
-var has = Object.prototype.hasOwnProperty
- , prefix = '~';
-
-/**
- * Constructor to create a storage for our `EE` objects.
- * An `Events` instance is a plain object whose properties are event names.
- *
- * @constructor
- * @private
- */
-function Events() {}
-
-//
-// We try to not inherit from `Object.prototype`. In some engines creating an
-// instance in this way is faster than calling `Object.create(null)` directly.
-// If `Object.create(null)` is not supported we prefix the event names with a
-// character to make sure that the built-in object properties are not
-// overridden or used as an attack vector.
-//
-if (Object.create) {
- Events.prototype = Object.create(null);
-
- //
- // This hack is needed because the `__proto__` property is still inherited in
- // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.
- //
- if (!new Events().__proto__) prefix = false;
-}
-
-/**
- * Representation of a single event listener.
- *
- * @param {Function} fn The listener function.
- * @param {*} context The context to invoke the listener with.
- * @param {Boolean} [once=false] Specify if the listener is a one-time listener.
- * @constructor
- * @private
- */
-function EE(fn, context, once) {
- this.fn = fn;
- this.context = context;
- this.once = once || false;
-}
-
-/**
- * Add a listener for a given event.
- *
- * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.
- * @param {(String|Symbol)} event The event name.
- * @param {Function} fn The listener function.
- * @param {*} context The context to invoke the listener with.
- * @param {Boolean} once Specify if the listener is a one-time listener.
- * @returns {EventEmitter}
- * @private
- */
-function addListener(emitter, event, fn, context, once) {
- if (typeof fn !== 'function') {
- throw new TypeError('The listener must be a function');
- }
-
- var listener = new EE(fn, context || emitter, once)
- , evt = prefix ? prefix + event : event;
-
- if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;
- else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);
- else emitter._events[evt] = [emitter._events[evt], listener];
-
- return emitter;
-}
-
-/**
- * Clear event by name.
- *
- * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.
- * @param {(String|Symbol)} evt The Event name.
- * @private
- */
-function clearEvent(emitter, evt) {
- if (--emitter._eventsCount === 0) emitter._events = new Events();
- else delete emitter._events[evt];
-}
-
-/**
- * Minimal `EventEmitter` interface that is molded against the Node.js
- * `EventEmitter` interface.
- *
- * @constructor
- * @public
- */
-function EventEmitter() {
- this._events = new Events();
- this._eventsCount = 0;
-}
-
-/**
- * Return an array listing the events for which the emitter has registered
- * listeners.
- *
- * @returns {Array}
- * @public
- */
-EventEmitter.prototype.eventNames = function eventNames() {
- var names = []
- , events
- , name;
-
- if (this._eventsCount === 0) return names;
-
- for (name in (events = this._events)) {
- if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);
- }
-
- if (Object.getOwnPropertySymbols) {
- return names.concat(Object.getOwnPropertySymbols(events));
- }
-
- return names;
-};
-
-/**
- * Return the listeners registered for a given event.
- *
- * @param {(String|Symbol)} event The event name.
- * @returns {Array} The registered listeners.
- * @public
- */
-EventEmitter.prototype.listeners = function listeners(event) {
- var evt = prefix ? prefix + event : event
- , handlers = this._events[evt];
-
- if (!handlers) return [];
- if (handlers.fn) return [handlers.fn];
-
- for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) {
- ee[i] = handlers[i].fn;
- }
-
- return ee;
-};
-
-/**
- * Return the number of listeners listening to a given event.
- *
- * @param {(String|Symbol)} event The event name.
- * @returns {Number} The number of listeners.
- * @public
- */
-EventEmitter.prototype.listenerCount = function listenerCount(event) {
- var evt = prefix ? prefix + event : event
- , listeners = this._events[evt];
-
- if (!listeners) return 0;
- if (listeners.fn) return 1;
- return listeners.length;
-};
-
-/**
- * Calls each of the listeners registered for a given event.
- *
- * @param {(String|Symbol)} event The event name.
- * @returns {Boolean} `true` if the event had listeners, else `false`.
- * @public
- */
-EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
- var evt = prefix ? prefix + event : event;
-
- if (!this._events[evt]) return false;
-
- var listeners = this._events[evt]
- , len = arguments.length
- , args
- , i;
-
- if (listeners.fn) {
- if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);
-
- switch (len) {
- case 1: return listeners.fn.call(listeners.context), true;
- case 2: return listeners.fn.call(listeners.context, a1), true;
- case 3: return listeners.fn.call(listeners.context, a1, a2), true;
- case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;
- case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
- case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
- }
-
- for (i = 1, args = new Array(len -1); i < len; i++) {
- args[i - 1] = arguments[i];
- }
-
- listeners.fn.apply(listeners.context, args);
- } else {
- var length = listeners.length
- , j;
-
- for (i = 0; i < length; i++) {
- if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);
-
- switch (len) {
- case 1: listeners[i].fn.call(listeners[i].context); break;
- case 2: listeners[i].fn.call(listeners[i].context, a1); break;
- case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break;
- case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break;
- default:
- if (!args) for (j = 1, args = new Array(len -1); j < len; j++) {
- args[j - 1] = arguments[j];
- }
-
- listeners[i].fn.apply(listeners[i].context, args);
- }
- }
- }
-
- return true;
-};
-
-/**
- * Add a listener for a given event.
- *
- * @param {(String|Symbol)} event The event name.
- * @param {Function} fn The listener function.
- * @param {*} [context=this] The context to invoke the listener with.
- * @returns {EventEmitter} `this`.
- * @public
- */
-EventEmitter.prototype.on = function on(event, fn, context) {
- return addListener(this, event, fn, context, false);
-};
-
-/**
- * Add a one-time listener for a given event.
- *
- * @param {(String|Symbol)} event The event name.
- * @param {Function} fn The listener function.
- * @param {*} [context=this] The context to invoke the listener with.
- * @returns {EventEmitter} `this`.
- * @public
- */
-EventEmitter.prototype.once = function once(event, fn, context) {
- return addListener(this, event, fn, context, true);
-};
-
-/**
- * Remove the listeners of a given event.
- *
- * @param {(String|Symbol)} event The event name.
- * @param {Function} fn Only remove the listeners that match this function.
- * @param {*} context Only remove the listeners that have this context.
- * @param {Boolean} once Only remove one-time listeners.
- * @returns {EventEmitter} `this`.
- * @public
- */
-EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {
- var evt = prefix ? prefix + event : event;
-
- if (!this._events[evt]) return this;
- if (!fn) {
- clearEvent(this, evt);
- return this;
- }
-
- var listeners = this._events[evt];
-
- if (listeners.fn) {
- if (
- listeners.fn === fn &&
- (!once || listeners.once) &&
- (!context || listeners.context === context)
- ) {
- clearEvent(this, evt);
- }
- } else {
- for (var i = 0, events = [], length = listeners.length; i < length; i++) {
- if (
- listeners[i].fn !== fn ||
- (once && !listeners[i].once) ||
- (context && listeners[i].context !== context)
- ) {
- events.push(listeners[i]);
- }
- }
-
- //
- // Reset the array, or remove it completely if we have no more listeners.
- //
- if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;
- else clearEvent(this, evt);
- }
-
- return this;
-};
-
-/**
- * Remove all listeners, or those of the specified event.
- *
- * @param {(String|Symbol)} [event] The event name.
- * @returns {EventEmitter} `this`.
- * @public
- */
-EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {
- var evt;
-
- if (event) {
- evt = prefix ? prefix + event : event;
- if (this._events[evt]) clearEvent(this, evt);
- } else {
- this._events = new Events();
- this._eventsCount = 0;
- }
-
- return this;
-};
-
-//
-// Alias methods names because people roll like that.
-//
-EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
-EventEmitter.prototype.addListener = EventEmitter.prototype.on;
-
-//
-// Expose the prefix.
-//
-EventEmitter.prefixed = prefix;
-
-//
-// Allow `EventEmitter` to be imported as module namespace.
-//
-EventEmitter.EventEmitter = EventEmitter;
-
-//
-// Expose the module.
-//
-if ('undefined' !== typeof module) {
- module.exports = EventEmitter;
-}
-
-}, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
-return __REQUIRE__(1698905245833);
-})()
-//miniprogram-npm-outsideDeps=[]
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/eventemitter3/index.js.map b/src/openeuler/miniprogram_npm/eventemitter3/index.js.map
deleted file mode 100644
index 4f2cb7b..0000000
--- a/src/openeuler/miniprogram_npm/eventemitter3/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sources":["index.js"],"names":[],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"index.js","sourcesContent":["\n\nvar has = Object.prototype.hasOwnProperty\n , prefix = '~';\n\n/**\n * Constructor to create a storage for our `EE` objects.\n * An `Events` instance is a plain object whose properties are event names.\n *\n * @constructor\n * @private\n */\nfunction Events() {}\n\n//\n// We try to not inherit from `Object.prototype`. In some engines creating an\n// instance in this way is faster than calling `Object.create(null)` directly.\n// If `Object.create(null)` is not supported we prefix the event names with a\n// character to make sure that the built-in object properties are not\n// overridden or used as an attack vector.\n//\nif (Object.create) {\n Events.prototype = Object.create(null);\n\n //\n // This hack is needed because the `__proto__` property is still inherited in\n // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.\n //\n if (!new Events().__proto__) prefix = false;\n}\n\n/**\n * Representation of a single event listener.\n *\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} [once=false] Specify if the listener is a one-time listener.\n * @constructor\n * @private\n */\nfunction EE(fn, context, once) {\n this.fn = fn;\n this.context = context;\n this.once = once || false;\n}\n\n/**\n * Add a listener for a given event.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} once Specify if the listener is a one-time listener.\n * @returns {EventEmitter}\n * @private\n */\nfunction addListener(emitter, event, fn, context, once) {\n if (typeof fn !== 'function') {\n throw new TypeError('The listener must be a function');\n }\n\n var listener = new EE(fn, context || emitter, once)\n , evt = prefix ? prefix + event : event;\n\n if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;\n else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);\n else emitter._events[evt] = [emitter._events[evt], listener];\n\n return emitter;\n}\n\n/**\n * Clear event by name.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} evt The Event name.\n * @private\n */\nfunction clearEvent(emitter, evt) {\n if (--emitter._eventsCount === 0) emitter._events = new Events();\n else delete emitter._events[evt];\n}\n\n/**\n * Minimal `EventEmitter` interface that is molded against the Node.js\n * `EventEmitter` interface.\n *\n * @constructor\n * @public\n */\nfunction EventEmitter() {\n this._events = new Events();\n this._eventsCount = 0;\n}\n\n/**\n * Return an array listing the events for which the emitter has registered\n * listeners.\n *\n * @returns {Array}\n * @public\n */\nEventEmitter.prototype.eventNames = function eventNames() {\n var names = []\n , events\n , name;\n\n if (this._eventsCount === 0) return names;\n\n for (name in (events = this._events)) {\n if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);\n }\n\n if (Object.getOwnPropertySymbols) {\n return names.concat(Object.getOwnPropertySymbols(events));\n }\n\n return names;\n};\n\n/**\n * Return the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Array} The registered listeners.\n * @public\n */\nEventEmitter.prototype.listeners = function listeners(event) {\n var evt = prefix ? prefix + event : event\n , handlers = this._events[evt];\n\n if (!handlers) return [];\n if (handlers.fn) return [handlers.fn];\n\n for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) {\n ee[i] = handlers[i].fn;\n }\n\n return ee;\n};\n\n/**\n * Return the number of listeners listening to a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Number} The number of listeners.\n * @public\n */\nEventEmitter.prototype.listenerCount = function listenerCount(event) {\n var evt = prefix ? prefix + event : event\n , listeners = this._events[evt];\n\n if (!listeners) return 0;\n if (listeners.fn) return 1;\n return listeners.length;\n};\n\n/**\n * Calls each of the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Boolean} `true` if the event had listeners, else `false`.\n * @public\n */\nEventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {\n var evt = prefix ? prefix + event : event;\n\n if (!this._events[evt]) return false;\n\n var listeners = this._events[evt]\n , len = arguments.length\n , args\n , i;\n\n if (listeners.fn) {\n if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);\n\n switch (len) {\n case 1: return listeners.fn.call(listeners.context), true;\n case 2: return listeners.fn.call(listeners.context, a1), true;\n case 3: return listeners.fn.call(listeners.context, a1, a2), true;\n case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;\n case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;\n case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;\n }\n\n for (i = 1, args = new Array(len -1); i < len; i++) {\n args[i - 1] = arguments[i];\n }\n\n listeners.fn.apply(listeners.context, args);\n } else {\n var length = listeners.length\n , j;\n\n for (i = 0; i < length; i++) {\n if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);\n\n switch (len) {\n case 1: listeners[i].fn.call(listeners[i].context); break;\n case 2: listeners[i].fn.call(listeners[i].context, a1); break;\n case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break;\n case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break;\n default:\n if (!args) for (j = 1, args = new Array(len -1); j < len; j++) {\n args[j - 1] = arguments[j];\n }\n\n listeners[i].fn.apply(listeners[i].context, args);\n }\n }\n }\n\n return true;\n};\n\n/**\n * Add a listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.on = function on(event, fn, context) {\n return addListener(this, event, fn, context, false);\n};\n\n/**\n * Add a one-time listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.once = function once(event, fn, context) {\n return addListener(this, event, fn, context, true);\n};\n\n/**\n * Remove the listeners of a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn Only remove the listeners that match this function.\n * @param {*} context Only remove the listeners that have this context.\n * @param {Boolean} once Only remove one-time listeners.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {\n var evt = prefix ? prefix + event : event;\n\n if (!this._events[evt]) return this;\n if (!fn) {\n clearEvent(this, evt);\n return this;\n }\n\n var listeners = this._events[evt];\n\n if (listeners.fn) {\n if (\n listeners.fn === fn &&\n (!once || listeners.once) &&\n (!context || listeners.context === context)\n ) {\n clearEvent(this, evt);\n }\n } else {\n for (var i = 0, events = [], length = listeners.length; i < length; i++) {\n if (\n listeners[i].fn !== fn ||\n (once && !listeners[i].once) ||\n (context && listeners[i].context !== context)\n ) {\n events.push(listeners[i]);\n }\n }\n\n //\n // Reset the array, or remove it completely if we have no more listeners.\n //\n if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;\n else clearEvent(this, evt);\n }\n\n return this;\n};\n\n/**\n * Remove all listeners, or those of the specified event.\n *\n * @param {(String|Symbol)} [event] The event name.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {\n var evt;\n\n if (event) {\n evt = prefix ? prefix + event : event;\n if (this._events[evt]) clearEvent(this, evt);\n } else {\n this._events = new Events();\n this._eventsCount = 0;\n }\n\n return this;\n};\n\n//\n// Alias methods names because people roll like that.\n//\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\nEventEmitter.prototype.addListener = EventEmitter.prototype.on;\n\n//\n// Expose the prefix.\n//\nEventEmitter.prefixed = prefix;\n\n//\n// Allow `EventEmitter` to be imported as module namespace.\n//\nEventEmitter.EventEmitter = EventEmitter;\n\n//\n// Expose the module.\n//\nif ('undefined' !== typeof module) {\n module.exports = EventEmitter;\n}\n"]}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/widget-ui/index.js b/src/openeuler/miniprogram_npm/widget-ui/index.js
deleted file mode 100644
index 0959773..0000000
--- a/src/openeuler/miniprogram_npm/widget-ui/index.js
+++ /dev/null
@@ -1,13 +0,0 @@
-module.exports = (function() {
-var __MODS__ = {};
-var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexports: {} }; __MODS__[modId] = { status: 0, func: func, req: req, m: m }; };
-var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
-var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
-var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
-__DEFINE__(1698905245834, function(require, module, exports) {
-!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var r in o)("object"==typeof exports?exports:t)[r]=o[r]}}(this,(function(){return function(t){var e={};function o(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=t,o.c=e,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(r,i,function(e){return t[e]}.bind(null,i));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=0)}([function(t,e,o){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(o(1)),l=o(2),n=0,a=function(){function t(e){var o=this;void 0===e&&(e={}),this.parent=null,this.id=t.uuid(),this.style={},this.computedStyle={},this.lastComputedStyle={},this.children={},this.layoutBox={left:0,top:0,width:0,height:0},e=Object.assign(l.getDefaultStyle(),e),this.computedStyle=Object.assign(l.getDefaultStyle(),e),this.lastComputedStyle=Object.assign(l.getDefaultStyle(),e),Object.keys(e).forEach((function(t){Object.defineProperty(o.style,t,{configurable:!0,enumerable:!0,get:function(){return e[t]},set:function(r){r!==e[t]&&void 0!==r&&(o.lastComputedStyle=o.computedStyle[t],e[t]=r,o.computedStyle[t]=r,l.scalableStyles.includes(t)&&o.style.scale&&(o.computedStyle[t]=r*o.style.scale),"scale"===t&&l.scalableStyles.forEach((function(t){e[t]&&(o.computedStyle[t]=e[t]*r)})),"hidden"===t&&(r?l.layoutAffectedStyles.forEach((function(t){o.computedStyle[t]=0})):l.layoutAffectedStyles.forEach((function(t){o.computedStyle[t]=o.lastComputedStyle[t]}))))}})})),this.style.scale&&l.scalableStyles.forEach((function(t){if(o.style[t]){var e=o.style[t]*o.style.scale;o.computedStyle[t]=e}})),e.hidden&&l.layoutAffectedStyles.forEach((function(t){o.computedStyle[t]=0}))}return t.uuid=function(){return n++},t.prototype.getAbsolutePosition=function(t){if(!t)return this.getAbsolutePosition(this);if(!t.parent)return{left:0,top:0};var e=this.getAbsolutePosition(t.parent),o=e.left,r=e.top;return{left:o+t.layoutBox.left,top:r+t.layoutBox.top}},t.prototype.add=function(t){t.parent=this,this.children[t.id]=t},t.prototype.remove=function(t){var e=this;t?this.children[t.id]&&(t.remove(),delete this.children[t.id]):Object.keys(this.children).forEach((function(t){e.children[t].remove(),delete e.children[t]}))},t.prototype.getNodeTree=function(){var t=this;return{id:this.id,style:this.computedStyle,children:Object.keys(this.children).map((function(e){return t.children[e].getNodeTree()}))}},t.prototype.applyLayout=function(t){var e=this;["left","top","width","height"].forEach((function(o){t.layout&&"number"==typeof t.layout[o]&&(e.layoutBox[o]=t.layout[o],!e.parent||"left"!==o&&"top"!==o||(e.layoutBox[o]+=e.parent.layoutBox[o]))})),t.children.forEach((function(t){e.children[t.id].applyLayout(t)}))},t.prototype.layout=function(){var t=this.getNodeTree();i.default(t),this.applyLayout(t)},t}();e.default=a},function(t,e,o){o.r(e);var r=function(){var t,e="inherit",o="ltr",r="rtl",i="row",l="row-reverse",n="column",a="column-reverse",u="flex-start",d="center",s="flex-end",y="space-between",c="space-around",f="flex-start",h="center",p="flex-end",g="stretch",v="relative",m="absolute",b={row:"left","row-reverse":"right",column:"top","column-reverse":"bottom"},x={row:"right","row-reverse":"left",column:"bottom","column-reverse":"top"},w={row:"left","row-reverse":"right",column:"top","column-reverse":"bottom"},S={row:"width","row-reverse":"width",column:"height","column-reverse":"height"};function W(t){return void 0===t}function L(t){return t===i||t===l}function k(t,e){if(void 0!==t.style.marginStart&&L(e))return t.style.marginStart;var o=null;switch(e){case"row":o=t.style.marginLeft;break;case"row-reverse":o=t.style.marginRight;break;case"column":o=t.style.marginTop;break;case"column-reverse":o=t.style.marginBottom}return void 0!==o?o:void 0!==t.style.margin?t.style.margin:0}function j(t,e){if(void 0!==t.style.marginEnd&&L(e))return t.style.marginEnd;var o=null;switch(e){case"row":o=t.style.marginRight;break;case"row-reverse":o=t.style.marginLeft;break;case"column":o=t.style.marginBottom;break;case"column-reverse":o=t.style.marginTop}return null!=o?o:void 0!==t.style.margin?t.style.margin:0}function B(t,e){if(void 0!==t.style.borderStartWidth&&t.style.borderStartWidth>=0&&L(e))return t.style.borderStartWidth;var o=null;switch(e){case"row":o=t.style.borderLeftWidth;break;case"row-reverse":o=t.style.borderRightWidth;break;case"column":o=t.style.borderTopWidth;break;case"column-reverse":o=t.style.borderBottomWidth}return null!=o&&o>=0?o:void 0!==t.style.borderWidth&&t.style.borderWidth>=0?t.style.borderWidth:0}function E(t,e){if(void 0!==t.style.borderEndWidth&&t.style.borderEndWidth>=0&&L(e))return t.style.borderEndWidth;var o=null;switch(e){case"row":o=t.style.borderRightWidth;break;case"row-reverse":o=t.style.borderLeftWidth;break;case"column":o=t.style.borderBottomWidth;break;case"column-reverse":o=t.style.borderTopWidth}return null!=o&&o>=0?o:void 0!==t.style.borderWidth&&t.style.borderWidth>=0?t.style.borderWidth:0}function C(t,e){return function(t,e){if(void 0!==t.style.paddingStart&&t.style.paddingStart>=0&&L(e))return t.style.paddingStart;var o=null;switch(e){case"row":o=t.style.paddingLeft;break;case"row-reverse":o=t.style.paddingRight;break;case"column":o=t.style.paddingTop;break;case"column-reverse":o=t.style.paddingBottom}return null!=o&&o>=0?o:void 0!==t.style.padding&&t.style.padding>=0?t.style.padding:0}(t,e)+B(t,e)}function T(t,e){return function(t,e){if(void 0!==t.style.paddingEnd&&t.style.paddingEnd>=0&&L(e))return t.style.paddingEnd;var o=null;switch(e){case"row":o=t.style.paddingRight;break;case"row-reverse":o=t.style.paddingLeft;break;case"column":o=t.style.paddingBottom;break;case"column-reverse":o=t.style.paddingTop}return null!=o&&o>=0?o:void 0!==t.style.padding&&t.style.padding>=0?t.style.padding:0}(t,e)+E(t,e)}function O(t,e){return B(t,e)+E(t,e)}function _(t,e){return k(t,e)+j(t,e)}function R(t,e){return C(t,e)+T(t,e)}function A(t,e){return e.style.alignSelf?e.style.alignSelf:t.style.alignItems?t.style.alignItems:"stretch"}function P(t,e){if(e===r){if(t===i)return l;if(t===l)return i}return t}function D(t,e){return function(t){return t===n||t===a}(t)?P(i,e):n}function H(t){return t.style.position?t.style.position:"relative"}function M(t){return H(t)===v&&t.style.flex>0}function I(t,e){return t.layout[S[e]]+_(t,e)}function N(t,e){return void 0!==t.style[S[e]]&&t.style[S[e]]>=0}function F(t,e){return void 0!==t.style[e]}function q(t,e){return void 0!==t.style[e]?t.style[e]:0}function z(t,e,o){var r={row:t.style.minWidth,"row-reverse":t.style.minWidth,column:t.style.minHeight,"column-reverse":t.style.minHeight}[e],i={row:t.style.maxWidth,"row-reverse":t.style.maxWidth,column:t.style.maxHeight,"column-reverse":t.style.maxHeight}[e],l=o;return void 0!==i&&i>=0&&l>i&&(l=i),void 0!==r&&r>=0&&le?t:e}function G(t,e){void 0===t.layout[S[e]]&&N(t,e)&&(t.layout[S[e]]=U(z(t,e,t.style[S[e]]),R(t,e)))}function J(t,e,o){e.layout[x[o]]=t.layout[S[o]]-e.layout[S[o]]-e.layout[w[o]]}function K(t,e){return void 0!==t.style[b[e]]?q(t,b[e]):-q(t,x[e])}function Q(r,E,Q){var X=function(t,r){var i;return(i=t.style.direction?t.style.direction:e)===e&&(i=void 0===r?o:r),i}(r,Q),Y=P(function(t){return t.style.flexDirection?t.style.flexDirection:n}(r),X),Z=D(Y,X),$=P(i,X);G(r,Y),G(r,Z),r.layout.direction=X,r.layout[b[Y]]+=k(r,Y)+K(r,Y),r.layout[x[Y]]+=j(r,Y)+K(r,Y),r.layout[b[Z]]+=k(r,Z)+K(r,Z),r.layout[x[Z]]+=j(r,Z)+K(r,Z);var tt=r.children.length,et=R(r,$);if(function(t){return void 0!==t.style.measure}(r)){var ot=!W(r.layout[S[$]]),rt=t;rt=N(r,$)?r.style.width:ot?r.layout[S[$]]:E-_(r,$),rt-=et;var it=!N(r,$)&&!ot,lt=!N(r,n)&&W(r.layout[S[n]]);if(it||lt){var nt=r.style.measure(rt);it&&(r.layout.width=nt.width+et),lt&&(r.layout.height=nt.height+R(r,n))}if(0===tt)return}var at,ut,dt,st,yt=function(t){return"wrap"===t.style.flexWrap}(r),ct=function(t){return t.style.justifyContent?t.style.justifyContent:"flex-start"}(r),ft=C(r,Y),ht=C(r,Z),pt=R(r,Y),gt=R(r,Z),vt=!W(r.layout[S[Y]]),mt=!W(r.layout[S[Z]]),bt=L(Y),xt=null,wt=null,St=t;vt&&(St=r.layout[S[Y]]-pt);for(var Wt=0,Lt=0,kt=0,jt=0,Bt=0,Et=0;LtSt&&at!==Wt){Rt--,kt=1;break}At&&(H(dt)!==v||M(dt))&&(At=!1,Pt=at),Dt&&(H(dt)!==v||Xt!==g&&Xt!==f||W(dt.layout[S[Z]]))&&(Dt=!1,Ht=at),At&&(dt.layout[w[Y]]+=Nt,vt&&J(r,dt,Y),Nt+=I(dt,Y),Ft=U(Ft,z(dt,Z,I(dt,Z)))),Dt&&(dt.layout[w[Z]]+=jt+ht,mt&&J(r,dt,Z)),kt=0,Tt+=qt,Lt=at+1}var zt=0,Ut=0,Gt=0;if(Gt=vt?St-Tt:U(Tt,0)-Tt,0!==Ot){var Jt,Kt,Qt=Gt/_t;for(It=Mt;null!==It;)(Jt=Qt*It.style.flex+R(It,Y))!==(Kt=z(It,Y,Jt))&&(Gt-=Kt,_t-=It.style.flex),It=It.nextFlexChild;for((Qt=Gt/_t)<0&&(Qt=0),It=Mt;null!==It;)It.layout[S[Y]]=z(It,Y,Qt*It.style.flex+R(It,Y)),Ct=t,N(r,$)?Ct=r.layout[S[$]]-et:bt||(Ct=E-_(r,$)-et),V(It,Ct,X),dt=It,It=It.nextFlexChild,dt.nextFlexChild=null}else ct!==u&&(ct===d?zt=Gt/2:ct===s?zt=Gt:ct===y?(Gt=U(Gt,0),Ut=Ot+Rt-1!=0?Gt/(Ot+Rt-1):0):ct===c&&(zt=(Ut=Gt/(Ot+Rt))/2));for(Nt+=zt,at=Pt;at1&&mt){var $t=r.layout[S[Z]]-gt,te=$t-jt,ee=0,oe=ht,re=function(t){return t.style.alignContent?t.style.alignContent:"flex-start"}(r);re===p?oe+=te:re===h?oe+=te/2:re===g&&$t>jt&&(ee=te/Et);var ie=0;for(at=0;at=0&&L(e))return t.style.borderStartWidth;var o=null;switch(e){case\"row\":o=t.style.borderLeftWidth;break;case\"row-reverse\":o=t.style.borderRightWidth;break;case\"column\":o=t.style.borderTopWidth;break;case\"column-reverse\":o=t.style.borderBottomWidth}return null!=o&&o>=0?o:void 0!==t.style.borderWidth&&t.style.borderWidth>=0?t.style.borderWidth:0}function E(t,e){if(void 0!==t.style.borderEndWidth&&t.style.borderEndWidth>=0&&L(e))return t.style.borderEndWidth;var o=null;switch(e){case\"row\":o=t.style.borderRightWidth;break;case\"row-reverse\":o=t.style.borderLeftWidth;break;case\"column\":o=t.style.borderBottomWidth;break;case\"column-reverse\":o=t.style.borderTopWidth}return null!=o&&o>=0?o:void 0!==t.style.borderWidth&&t.style.borderWidth>=0?t.style.borderWidth:0}function C(t,e){return function(t,e){if(void 0!==t.style.paddingStart&&t.style.paddingStart>=0&&L(e))return t.style.paddingStart;var o=null;switch(e){case\"row\":o=t.style.paddingLeft;break;case\"row-reverse\":o=t.style.paddingRight;break;case\"column\":o=t.style.paddingTop;break;case\"column-reverse\":o=t.style.paddingBottom}return null!=o&&o>=0?o:void 0!==t.style.padding&&t.style.padding>=0?t.style.padding:0}(t,e)+B(t,e)}function T(t,e){return function(t,e){if(void 0!==t.style.paddingEnd&&t.style.paddingEnd>=0&&L(e))return t.style.paddingEnd;var o=null;switch(e){case\"row\":o=t.style.paddingRight;break;case\"row-reverse\":o=t.style.paddingLeft;break;case\"column\":o=t.style.paddingBottom;break;case\"column-reverse\":o=t.style.paddingTop}return null!=o&&o>=0?o:void 0!==t.style.padding&&t.style.padding>=0?t.style.padding:0}(t,e)+E(t,e)}function O(t,e){return B(t,e)+E(t,e)}function _(t,e){return k(t,e)+j(t,e)}function R(t,e){return C(t,e)+T(t,e)}function A(t,e){return e.style.alignSelf?e.style.alignSelf:t.style.alignItems?t.style.alignItems:\"stretch\"}function P(t,e){if(e===r){if(t===i)return l;if(t===l)return i}return t}function D(t,e){return function(t){return t===n||t===a}(t)?P(i,e):n}function H(t){return t.style.position?t.style.position:\"relative\"}function M(t){return H(t)===v&&t.style.flex>0}function I(t,e){return t.layout[S[e]]+_(t,e)}function N(t,e){return void 0!==t.style[S[e]]&&t.style[S[e]]>=0}function F(t,e){return void 0!==t.style[e]}function q(t,e){return void 0!==t.style[e]?t.style[e]:0}function z(t,e,o){var r={row:t.style.minWidth,\"row-reverse\":t.style.minWidth,column:t.style.minHeight,\"column-reverse\":t.style.minHeight}[e],i={row:t.style.maxWidth,\"row-reverse\":t.style.maxWidth,column:t.style.maxHeight,\"column-reverse\":t.style.maxHeight}[e],l=o;return void 0!==i&&i>=0&&l>i&&(l=i),void 0!==r&&r>=0&&le?t:e}function G(t,e){void 0===t.layout[S[e]]&&N(t,e)&&(t.layout[S[e]]=U(z(t,e,t.style[S[e]]),R(t,e)))}function J(t,e,o){e.layout[x[o]]=t.layout[S[o]]-e.layout[S[o]]-e.layout[w[o]]}function K(t,e){return void 0!==t.style[b[e]]?q(t,b[e]):-q(t,x[e])}function Q(r,E,Q){var X=function(t,r){var i;return(i=t.style.direction?t.style.direction:e)===e&&(i=void 0===r?o:r),i}(r,Q),Y=P(function(t){return t.style.flexDirection?t.style.flexDirection:n}(r),X),Z=D(Y,X),$=P(i,X);G(r,Y),G(r,Z),r.layout.direction=X,r.layout[b[Y]]+=k(r,Y)+K(r,Y),r.layout[x[Y]]+=j(r,Y)+K(r,Y),r.layout[b[Z]]+=k(r,Z)+K(r,Z),r.layout[x[Z]]+=j(r,Z)+K(r,Z);var tt=r.children.length,et=R(r,$);if(function(t){return void 0!==t.style.measure}(r)){var ot=!W(r.layout[S[$]]),rt=t;rt=N(r,$)?r.style.width:ot?r.layout[S[$]]:E-_(r,$),rt-=et;var it=!N(r,$)&&!ot,lt=!N(r,n)&&W(r.layout[S[n]]);if(it||lt){var nt=r.style.measure(rt);it&&(r.layout.width=nt.width+et),lt&&(r.layout.height=nt.height+R(r,n))}if(0===tt)return}var at,ut,dt,st,yt=function(t){return\"wrap\"===t.style.flexWrap}(r),ct=function(t){return t.style.justifyContent?t.style.justifyContent:\"flex-start\"}(r),ft=C(r,Y),ht=C(r,Z),pt=R(r,Y),gt=R(r,Z),vt=!W(r.layout[S[Y]]),mt=!W(r.layout[S[Z]]),bt=L(Y),xt=null,wt=null,St=t;vt&&(St=r.layout[S[Y]]-pt);for(var Wt=0,Lt=0,kt=0,jt=0,Bt=0,Et=0;LtSt&&at!==Wt){Rt--,kt=1;break}At&&(H(dt)!==v||M(dt))&&(At=!1,Pt=at),Dt&&(H(dt)!==v||Xt!==g&&Xt!==f||W(dt.layout[S[Z]]))&&(Dt=!1,Ht=at),At&&(dt.layout[w[Y]]+=Nt,vt&&J(r,dt,Y),Nt+=I(dt,Y),Ft=U(Ft,z(dt,Z,I(dt,Z)))),Dt&&(dt.layout[w[Z]]+=jt+ht,mt&&J(r,dt,Z)),kt=0,Tt+=qt,Lt=at+1}var zt=0,Ut=0,Gt=0;if(Gt=vt?St-Tt:U(Tt,0)-Tt,0!==Ot){var Jt,Kt,Qt=Gt/_t;for(It=Mt;null!==It;)(Jt=Qt*It.style.flex+R(It,Y))!==(Kt=z(It,Y,Jt))&&(Gt-=Kt,_t-=It.style.flex),It=It.nextFlexChild;for((Qt=Gt/_t)<0&&(Qt=0),It=Mt;null!==It;)It.layout[S[Y]]=z(It,Y,Qt*It.style.flex+R(It,Y)),Ct=t,N(r,$)?Ct=r.layout[S[$]]-et:bt||(Ct=E-_(r,$)-et),V(It,Ct,X),dt=It,It=It.nextFlexChild,dt.nextFlexChild=null}else ct!==u&&(ct===d?zt=Gt/2:ct===s?zt=Gt:ct===y?(Gt=U(Gt,0),Ut=Ot+Rt-1!=0?Gt/(Ot+Rt-1):0):ct===c&&(zt=(Ut=Gt/(Ot+Rt))/2));for(Nt+=zt,at=Pt;at1&&mt){var $t=r.layout[S[Z]]-gt,te=$t-jt,ee=0,oe=ht,re=function(t){return t.style.alignContent?t.style.alignContent:\"flex-start\"}(r);re===p?oe+=te:re===h?oe+=te/2:re===g&&$t>jt&&(ee=te/Et);var ie=0;for(at=0;at {
- let result = null
-
- if (/^#/.test(color) && (color.length === 7 || color.length === 9)) {
- return color
- // eslint-disable-next-line no-cond-assign
- } else if ((result = /^(rgb|rgba)\((.+)\)/.exec(color)) !== null) {
- return '#' + result[2].split(',').map((part, index) => {
- part = part.trim()
- part = index === 3 ? Math.floor(parseFloat(part) * 255) : parseInt(part, 10)
- part = part.toString(16)
- if (part.length === 1) {
- part = '0' + part
- }
- return part
- }).join('')
- } else {
- return '#00000000'
- }
-}
-
-const splitLineToCamelCase = (str) => str.split('-').map((part, index) => {
- if (index === 0) {
- return part
- }
- return part[0].toUpperCase() + part.slice(1)
-}).join('')
-
-const compareVersion = (v1, v2) => {
- v1 = v1.split('.')
- v2 = v2.split('.')
- const len = Math.max(v1.length, v2.length)
- while (v1.length < len) {
- v1.push('0')
- }
- while (v2.length < len) {
- v2.push('0')
- }
- for (let i = 0; i < len; i++) {
- const num1 = parseInt(v1[i], 10)
- const num2 = parseInt(v2[i], 10)
-
- if (num1 > num2) {
- return 1
- } else if (num1 < num2) {
- return -1
- }
- }
-
- return 0
-}
-
-module.exports = {
- hex,
- splitLineToCamelCase,
- compareVersion
-}
-
-
-/***/ }),
-/* 1 */
-/***/ (function(module, exports, __webpack_require__) {
-
-
-const xmlParse = __webpack_require__(2)
-const {Widget} = __webpack_require__(3)
-const {Draw} = __webpack_require__(5)
-const {compareVersion} = __webpack_require__(0)
-
-const canvasId = 'weui-canvas'
-
-Component({
- properties: {
- width: {
- type: Number,
- value: 400
- },
- height: {
- type: Number,
- value: 300
- }
- },
- data: {
- use2dCanvas: false, // 2.9.2 后可用canvas 2d 接口
- },
- lifetimes: {
- attached() {
- const {SDKVersion, pixelRatio: dpr} = wx.getSystemInfoSync()
- const use2dCanvas = compareVersion(SDKVersion, '2.9.2') >= 0
- this.dpr = dpr
- this.setData({use2dCanvas}, () => {
- if (use2dCanvas) {
- const query = this.createSelectorQuery()
- query.select(`#${canvasId}`)
- .fields({node: true, size: true})
- .exec(res => {
- const canvas = res[0].node
- const ctx = canvas.getContext('2d')
- canvas.width = res[0].width * dpr
- canvas.height = res[0].height * dpr
- ctx.scale(dpr, dpr)
- this.ctx = ctx
- this.canvas = canvas
- })
- } else {
- this.ctx = wx.createCanvasContext(canvasId, this)
- }
- })
- }
- },
- methods: {
- async renderToCanvas(args) {
- const {wxml, style} = args
- const ctx = this.ctx
- const canvas = this.canvas
- const use2dCanvas = this.data.use2dCanvas
-
- if (use2dCanvas && !canvas) {
- return Promise.reject(new Error('renderToCanvas: fail canvas has not been created'))
- }
-
- ctx.clearRect(0, 0, this.data.width, this.data.height)
- const {root: xom} = xmlParse(wxml)
-
- const widget = new Widget(xom, style)
- const container = widget.init()
- this.boundary = {
- top: container.layoutBox.top,
- left: container.layoutBox.left,
- width: container.computedStyle.width,
- height: container.computedStyle.height,
- }
- const draw = new Draw(ctx, canvas, use2dCanvas)
- await draw.drawNode(container)
-
- if (!use2dCanvas) {
- await this.canvasDraw(ctx)
- }
- return Promise.resolve(container)
- },
-
- canvasDraw(ctx, reserve) {
- return new Promise(resolve => {
- ctx.draw(reserve, () => {
- resolve()
- })
- })
- },
-
- canvasToTempFilePath(args = {}) {
- const use2dCanvas = this.data.use2dCanvas
-
- return new Promise((resolve, reject) => {
- const {
- top, left, width, height
- } = this.boundary
-
- const copyArgs = {
- x: left,
- y: top,
- width,
- height,
- destWidth: width * this.dpr,
- destHeight: height * this.dpr,
- canvasId,
- fileType: args.fileType || 'png',
- quality: args.quality || 1,
- success: resolve,
- fail: reject
- }
-
- if (use2dCanvas) {
- delete copyArgs.canvasId
- copyArgs.canvas = this.canvas
- }
- wx.canvasToTempFilePath(copyArgs, this)
- })
- }
- }
-})
-
-
-/***/ }),
-/* 2 */
-/***/ (function(module, exports) {
-
-
-/**
- * Module dependencies.
- */
-
-
-/**
- * Expose `parse`.
- */
-
-
-/**
- * Parse the given string of `xml`.
- *
- * @param {String} xml
- * @return {Object}
- * @api public
- */
-
-function parse(xml) {
- xml = xml.trim()
-
- // strip comments
- xml = xml.replace(//g, '')
-
- return document()
-
- /**
- * XML document.
- */
-
- function document() {
- return {
- declaration: declaration(),
- root: tag()
- }
- }
-
- /**
- * Declaration.
- */
-
- function declaration() {
- const m = match(/^<\?xml\s*/)
- if (!m) return
-
- // tag
- const node = {
- attributes: {}
- }
-
- // attributes
- while (!(eos() || is('?>'))) {
- const attr = attribute()
- if (!attr) return node
- node.attributes[attr.name] = attr.value
- }
-
- match(/\?>\s*/)
-
- return node
- }
-
- /**
- * Tag.
- */
-
- function tag() {
- const m = match(/^<([\w-:.]+)\s*/)
- if (!m) return
-
- // name
- const node = {
- name: m[1],
- attributes: {},
- children: []
- }
-
- // attributes
- while (!(eos() || is('>') || is('?>') || is('/>'))) {
- const attr = attribute()
- if (!attr) return node
- node.attributes[attr.name] = attr.value
- }
-
- // self closing tag
- if (match(/^\s*\/>\s*/)) {
- return node
- }
-
- match(/\??>\s*/)
-
- // content
- node.content = content()
-
- // children
- let child
- while (child = tag()) {
- node.children.push(child)
- }
-
- // closing
- match(/^<\/[\w-:.]+>\s*/)
-
- return node
- }
-
- /**
- * Text content.
- */
-
- function content() {
- const m = match(/^([^<]*)/)
- if (m) return m[1]
- return ''
- }
-
- /**
- * Attribute.
- */
-
- function attribute() {
- const m = match(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/)
- if (!m) return
- return {name: m[1], value: strip(m[2])}
- }
-
- /**
- * Strip quotes from `val`.
- */
-
- function strip(val) {
- return val.replace(/^['"]|['"]$/g, '')
- }
-
- /**
- * Match `re` and advance the string.
- */
-
- function match(re) {
- const m = xml.match(re)
- if (!m) return
- xml = xml.slice(m[0].length)
- return m
- }
-
- /**
- * End-of-source.
- */
-
- function eos() {
- return xml.length == 0
- }
-
- /**
- * Check for `prefix`.
- */
-
- function is(prefix) {
- return xml.indexOf(prefix) == 0
- }
-}
-
-module.exports = parse
-
-
-/***/ }),
-/* 3 */
-/***/ (function(module, exports, __webpack_require__) {
-
-const Block = __webpack_require__(4)
-const {splitLineToCamelCase} = __webpack_require__(0)
-
-class Element extends Block {
- constructor(prop) {
- super(prop.style)
- this.name = prop.name
- this.attributes = prop.attributes
- }
-}
-
-
-class Widget {
- constructor(xom, style) {
- this.xom = xom
- this.style = style
-
- this.inheritProps = ['fontSize', 'lineHeight', 'textAlign', 'verticalAlign', 'color']
- }
-
- init() {
- this.container = this.create(this.xom)
- this.container.layout()
-
- this.inheritStyle(this.container)
- return this.container
- }
-
- // 继承父节点的样式
- inheritStyle(node) {
- const parent = node.parent || null
- const children = node.children || {}
- const computedStyle = node.computedStyle
-
- if (parent) {
- this.inheritProps.forEach(prop => {
- computedStyle[prop] = computedStyle[prop] || parent.computedStyle[prop]
- })
- }
-
- Object.values(children).forEach(child => {
- this.inheritStyle(child)
- })
- }
-
- create(node) {
- let classNames = (node.attributes.class || '').split(' ')
- classNames = classNames.map(item => splitLineToCamelCase(item.trim()))
- const style = {}
- classNames.forEach(item => {
- Object.assign(style, this.style[item] || {})
- })
-
- const args = {name: node.name, style}
-
- const attrs = Object.keys(node.attributes)
- const attributes = {}
- for (const attr of attrs) {
- const value = node.attributes[attr]
- const CamelAttr = splitLineToCamelCase(attr)
-
- if (value === '' || value === 'true') {
- attributes[CamelAttr] = true
- } else if (value === 'false') {
- attributes[CamelAttr] = false
- } else {
- attributes[CamelAttr] = value
- }
- }
- attributes.text = node.content
- args.attributes = attributes
- const element = new Element(args)
- node.children.forEach(childNode => {
- const childElement = this.create(childNode)
- element.add(childElement)
- })
- return element
- }
-}
-
-module.exports = {Widget}
-
-
-/***/ }),
-/* 4 */
-/***/ (function(module, exports) {
-
-module.exports = require("widget-ui");
-
-/***/ }),
-/* 5 */
-/***/ (function(module, exports) {
-
-class Draw {
- constructor(context, canvas, use2dCanvas = false) {
- this.ctx = context
- this.canvas = canvas || null
- this.use2dCanvas = use2dCanvas
- }
-
- roundRect(x, y, w, h, r, fill = true, stroke = false) {
- if (r < 0) return
- const ctx = this.ctx
-
- ctx.beginPath()
- ctx.arc(x + r, y + r, r, Math.PI, Math.PI * 3 / 2)
- ctx.arc(x + w - r, y + r, r, Math.PI * 3 / 2, 0)
- ctx.arc(x + w - r, y + h - r, r, 0, Math.PI / 2)
- ctx.arc(x + r, y + h - r, r, Math.PI / 2, Math.PI)
- ctx.lineTo(x, y + r)
- if (stroke) ctx.stroke()
- if (fill) ctx.fill()
- }
-
- drawView(box, style) {
- const ctx = this.ctx
- const {
- left: x, top: y, width: w, height: h
- } = box
- const {
- borderRadius = 0,
- borderWidth = 0,
- borderColor,
- color = '#000',
- backgroundColor = 'transparent',
- } = style
- ctx.save()
- // 外环
- if (borderWidth > 0) {
- ctx.fillStyle = borderColor || color
- this.roundRect(x, y, w, h, borderRadius)
- }
-
- // 内环
- ctx.fillStyle = backgroundColor
- const innerWidth = w - 2 * borderWidth
- const innerHeight = h - 2 * borderWidth
- const innerRadius = borderRadius - borderWidth >= 0 ? borderRadius - borderWidth : 0
- this.roundRect(x + borderWidth, y + borderWidth, innerWidth, innerHeight, innerRadius)
- ctx.restore()
- }
-
- async drawImage(img, box, style) {
- await new Promise((resolve, reject) => {
- const ctx = this.ctx
- const canvas = this.canvas
-
- const {
- borderRadius = 0
- } = style
- const {
- left: x, top: y, width: w, height: h
- } = box
- ctx.save()
- this.roundRect(x, y, w, h, borderRadius, false, false)
- ctx.clip()
-
- const _drawImage = (img) => {
- if (this.use2dCanvas) {
- const Image = canvas.createImage()
- Image.onload = () => {
- ctx.drawImage(Image, x, y, w, h)
- ctx.restore()
- resolve()
- }
- Image.onerror = () => { reject(new Error(`createImage fail: ${img}`)) }
- Image.src = img
- } else {
- ctx.drawImage(img, x, y, w, h)
- ctx.restore()
- resolve()
- }
- }
-
- const isTempFile = /^wxfile:\/\//.test(img)
- const isNetworkFile = /^https?:\/\//.test(img)
-
- if (isTempFile) {
- _drawImage(img)
- } else if (isNetworkFile) {
- wx.downloadFile({
- url: img,
- success(res) {
- if (res.statusCode === 200) {
- _drawImage(res.tempFilePath)
- } else {
- reject(new Error(`downloadFile:fail ${img}`))
- }
- },
- fail() {
- reject(new Error(`downloadFile:fail ${img}`))
- }
- })
- } else {
- reject(new Error(`image format error: ${img}`))
- }
- })
- }
-
- // eslint-disable-next-line complexity
- drawText(text, box, style) {
- const ctx = this.ctx
- let {
- left: x, top: y, width: w, height: h
- } = box
- let {
- color = '#000',
- lineHeight = '1.4em',
- fontSize = 14,
- textAlign = 'left',
- verticalAlign = 'top',
- backgroundColor = 'transparent'
- } = style
-
- if (typeof lineHeight === 'string') { // 2em
- lineHeight = Math.ceil(parseFloat(lineHeight.replace('em')) * fontSize)
- }
- if (!text || (lineHeight > h)) return
-
- ctx.save()
- ctx.textBaseline = 'top'
- ctx.font = `${fontSize}px sans-serif`
- ctx.textAlign = textAlign
-
- // 背景色
- ctx.fillStyle = backgroundColor
- this.roundRect(x, y, w, h, 0)
-
- // 文字颜色
- ctx.fillStyle = color
-
- // 水平布局
- switch (textAlign) {
- case 'left':
- break
- case 'center':
- x += 0.5 * w
- break
- case 'right':
- x += w
- break
- default: break
- }
-
- const textWidth = ctx.measureText(text).width
- const actualHeight = Math.ceil(textWidth / w) * lineHeight
- let paddingTop = Math.ceil((h - actualHeight) / 2)
- if (paddingTop < 0) paddingTop = 0
-
- // 垂直布局
- switch (verticalAlign) {
- case 'top':
- break
- case 'middle':
- y += paddingTop
- break
- case 'bottom':
- y += 2 * paddingTop
- break
- default: break
- }
-
- const inlinePaddingTop = Math.ceil((lineHeight - fontSize) / 2)
-
- // 不超过一行
- if (textWidth <= w) {
- ctx.fillText(text, x, y + inlinePaddingTop)
- return
- }
-
- // 多行文本
- const chars = text.split('')
- const _y = y
-
- // 逐行绘制
- let line = ''
- for (const ch of chars) {
- const testLine = line + ch
- const testWidth = ctx.measureText(testLine).width
-
- if (testWidth > w) {
- ctx.fillText(line, x, y + inlinePaddingTop)
- y += lineHeight
- line = ch
- if ((y + lineHeight) > (_y + h)) break
- } else {
- line = testLine
- }
- }
-
- // 避免溢出
- if ((y + lineHeight) <= (_y + h)) {
- ctx.fillText(line, x, y + inlinePaddingTop)
- }
- ctx.restore()
- }
-
- async drawNode(element) {
- const {layoutBox, computedStyle, name} = element
- const {src, text} = element.attributes
- if (name === 'view') {
- this.drawView(layoutBox, computedStyle)
- } else if (name === 'image') {
- await this.drawImage(src, layoutBox, computedStyle)
- } else if (name === 'text') {
- this.drawText(text, layoutBox, computedStyle)
- }
- const childs = Object.values(element.children)
- for (const child of childs) {
- await this.drawNode(child)
- }
- }
-}
-
-
-module.exports = {
- Draw
-}
-
-
-/***/ })
-/******/ ]);
-});
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/wxml-to-canvas/index.json b/src/openeuler/miniprogram_npm/wxml-to-canvas/index.json
deleted file mode 100644
index e8cfaaf..0000000
--- a/src/openeuler/miniprogram_npm/wxml-to-canvas/index.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/wxml-to-canvas/index.wxml b/src/openeuler/miniprogram_npm/wxml-to-canvas/index.wxml
deleted file mode 100644
index a0010ad..0000000
--- a/src/openeuler/miniprogram_npm/wxml-to-canvas/index.wxml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/wxml-to-canvas/index.wxss b/src/openeuler/miniprogram_npm/wxml-to-canvas/index.wxss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/openeuler/miniprogram_npm/wxml-to-canvas/utils.js b/src/openeuler/miniprogram_npm/wxml-to-canvas/utils.js
deleted file mode 100644
index c3cf7d7..0000000
--- a/src/openeuler/miniprogram_npm/wxml-to-canvas/utils.js
+++ /dev/null
@@ -1,57 +0,0 @@
-const hex = (color) => {
- let result = null
-
- if (/^#/.test(color) && (color.length === 7 || color.length === 9)) {
- return color
- // eslint-disable-next-line no-cond-assign
- } else if ((result = /^(rgb|rgba)\((.+)\)/.exec(color)) !== null) {
- return '#' + result[2].split(',').map((part, index) => {
- part = part.trim()
- part = index === 3 ? Math.floor(parseFloat(part) * 255) : parseInt(part, 10)
- part = part.toString(16)
- if (part.length === 1) {
- part = '0' + part
- }
- return part
- }).join('')
- } else {
- return '#00000000'
- }
-}
-
-const splitLineToCamelCase = (str) => str.split('-').map((part, index) => {
- if (index === 0) {
- return part
- }
- return part[0].toUpperCase() + part.slice(1)
-}).join('')
-
-const compareVersion = (v1, v2) => {
- v1 = v1.split('.')
- v2 = v2.split('.')
- const len = Math.max(v1.length, v2.length)
- while (v1.length < len) {
- v1.push('0')
- }
- while (v2.length < len) {
- v2.push('0')
- }
- for (let i = 0; i < len; i++) {
- const num1 = parseInt(v1[i], 10)
- const num2 = parseInt(v2[i], 10)
-
- if (num1 > num2) {
- return 1
- } else if (num1 < num2) {
- return -1
- }
- }
-
- return 0
-}
-
-module.exports = {
- hex,
- splitLineToCamelCase,
- compareVersion
-}
diff --git a/src/openeuler/package-events/events/event-list.js b/src/openeuler/package-events/events/event-list.js
index 27f5738..4b7d280 100644
--- a/src/openeuler/package-events/events/event-list.js
+++ b/src/openeuler/package-events/events/event-list.js
@@ -4,12 +4,13 @@ const sessionUtil = require('../../utils/app-session.js');
let that = null;
let remoteMethods = {
- getList: function (_callback) {
+ getList: function (params, _callback) {
appAjax.postJson({
autoShowWait: true,
type: 'GET',
service: 'ALL_EVENTS_LIST',
data: {
+ ...params,
activity: that.data.activity,
activity_type: that.data.curFilterType,
search: that.data.curKeyword,
@@ -112,6 +113,11 @@ Page({
name: '线上',
},
],
+ pageParams: {
+ page: 1,
+ size: 50,
+ },
+ total: 0,
list: [],
actionShow: false,
actions: [],
@@ -132,15 +138,12 @@ Page({
*/
onLoad: function () {
that = this;
- remoteMethods.getList((res) => {
+ this.initData();
+ remoteMethods.getCount((res) => {
that.setData({
- list: res,
+ 'pageParams.page': 1,
level: sessionUtil.getUserInfoByKey('eventLevel') || 1,
user: sessionUtil.getUserInfoByKey('userId'),
- });
- });
- remoteMethods.getCount((res) => {
- that.setData({
allNum: res.all_activities_count,
signUpNum: res.registering_activities_count,
goingNum: res.going_activities_count,
@@ -148,11 +151,33 @@ Page({
});
});
},
-
+ initData() {
+ let renderData = [];
+ remoteMethods.getList(this.data.pageParams, (data) => {
+ if (this.data.pageParams.page === 1) {
+ renderData = data.data;
+ } else {
+ renderData = this.data.list;
+ renderData.push(...data.data);
+ }
+ this.setData({
+ list: renderData,
+ total: data.total,
+ });
+ });
+ },
+ onReachBottom() {
+ if (this.data.total < this.data.pageParams.size * this.data.pageParams.page) {
+ return false;
+ }
+ this.setData({
+ 'pageParams.page': this.data.pageParams.page + 1,
+ });
+ this.initData();
+ },
/**
* 生命周期函数--监听页面显示
*/
- onShow: function () {},
search: function (e) {
this.setData({
curKeyword: e.detail.value,
diff --git a/src/openeuler/package-events/events/event-list.wxml b/src/openeuler/package-events/events/event-list.wxml
index ebdcba4..95ddd9b 100644
--- a/src/openeuler/package-events/events/event-list.wxml
+++ b/src/openeuler/package-events/events/event-list.wxml
@@ -2,7 +2,7 @@
-
+
{{curfilterTypeName}}
@@ -46,7 +46,7 @@
- {{item.address||item.join_url}}
+ {{item.address||item.join_url || ''}}
@@ -56,7 +56,8 @@
-
-
+
修改日程
-
+
已报名
@@ -75,7 +78,8 @@
-
+
修改日程
@@ -83,18 +87,22 @@
-
+
-
+
暂无活动!
-
+
请确认下架当前活动
@@ -103,7 +111,8 @@
-
+
活动一经发布,暂不支持自行下架删除。如有需要,请联系
@@ -115,7 +124,8 @@
-
+
您暂时没有预定会议的权限,请联系
diff --git a/src/openeuler/package-events/events/poster.js b/src/openeuler/package-events/events/poster.js
index 0ea153e..3dfd2d3 100644
--- a/src/openeuler/package-events/events/poster.js
+++ b/src/openeuler/package-events/events/poster.js
@@ -1,6 +1,4 @@
-// package-events/events/poster.js
const appAjax = require('./../../utils/app-ajax');
-const { wxml, style } = require('./wxml-to-canvas.js');
let that = null;
let remoteMethods = {
@@ -37,7 +35,6 @@ Page({
*/
onLoad: function (options) {
that = this;
- this.widget = this.selectComponent('.widget');
this.setData({
id: options.id || '',
isDraft: options.isDraft,
@@ -62,52 +59,14 @@ Page({
});
}
},
+ onShow() {
+ wx.showToast({
+ title: '如有需要请截图保存海报~',
+ icon: 'none',
+ duration: 4000,
+ });
+ },
back() {
wx.navigateBack();
},
- saveToAlbum() {
- wx.showLoading({
- title: '保存中',
- mask: true,
- });
- const p1 = this.widget.renderToCanvas({
- wxml: wxml({
- title: that.data.info.title,
- date: that.data.info.date,
- address: that.data.info.detail_address,
- poster: that.data.info.poster,
- qrcode: that.data.info.wx_code,
- liveAddress: that.data.info.join_url,
- }),
- style: style(),
- });
- p1.then(() => {
- const p2 = this.widget.canvasToTempFilePath();
- p2.then((res) => {
- wx.getSetting({
- success() {
- wx.saveImageToPhotosAlbum({
- filePath: res.tempFilePath,
- success: function () {
- wx.showToast({
- title: '保存成功',
- icon: 'success',
- duration: 2000,
- });
- },
- fail: function () {
- wx.showModal({
- title: '保存失败~',
- content: '请尝试点击右上角 “...” => “设置” 同意添加到相册后再保存~',
- });
- },
- complete() {
- wx.hideLoading();
- },
- });
- },
- });
- });
- });
- },
});
diff --git a/src/openeuler/package-events/events/poster.wxml b/src/openeuler/package-events/events/poster.wxml
index 3926b9b..66c8330 100644
--- a/src/openeuler/package-events/events/poster.wxml
+++ b/src/openeuler/package-events/events/poster.wxml
@@ -11,11 +11,4 @@
长按识别二维码,进入活动!
-
- 取消
- 保存到相册
-
-
-
-
\ No newline at end of file
diff --git a/src/openeuler/package-events/events/poster.wxss b/src/openeuler/package-events/events/poster.wxss
index 8cf9f7b..a1971ec 100644
--- a/src/openeuler/package-events/events/poster.wxss
+++ b/src/openeuler/package-events/events/poster.wxss
@@ -4,7 +4,7 @@ page {
}
.container {
- padding: 30rpx 50rpx 129rpx 50rpx !important;
+ padding: 30rpx 50rpx 0 50rpx !important;
}
.container .post-wrapper {
@@ -100,7 +100,7 @@ page {
}
.container .btn-wrapper button {
- width: 330rpx;
+ width: 100%;
height: 90rpx;
text-align: center;
line-height: 90rpx;
diff --git a/src/openeuler/package-events/events/sign.js b/src/openeuler/package-events/events/sign.js
deleted file mode 100644
index 85ac7bb..0000000
--- a/src/openeuler/package-events/events/sign.js
+++ /dev/null
@@ -1,45 +0,0 @@
-// package-events/events/sign.js
-const appAjax = require('./../../utils/app-ajax');
-
-let that = null;
-let remoteMethods = {
- getDraftDetail: function (_callback) {
- let service = 'EVENT_DETAIL';
- appAjax.postJson({
- autoShowWait: true,
- type: 'GET',
- service,
- otherParams: {
- id: that.data.id,
- },
- success: function (ret) {
- _callback && _callback(ret);
- },
- });
- },
-};
-
-Page({
- /**
- * 页面的初始数据
- */
- data: {
- id: '',
- info: {},
- },
-
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function (options) {
- that = this;
- this.setData({
- id: options.id || '',
- });
- remoteMethods.getDraftDetail((res) => {
- this.setData({
- info: res,
- });
- });
- },
-});
diff --git a/src/openeuler/package-events/events/sign.json b/src/openeuler/package-events/events/sign.json
deleted file mode 100644
index 2449904..0000000
--- a/src/openeuler/package-events/events/sign.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "navigationBarTitleText": "活动签到"
-}
\ No newline at end of file
diff --git a/src/openeuler/package-events/events/sign.wxml b/src/openeuler/package-events/events/sign.wxml
deleted file mode 100644
index 1e13bed..0000000
--- a/src/openeuler/package-events/events/sign.wxml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
- {{info.title}}
-
- 扫一扫二维码签到吧!
-
-
-
diff --git a/src/openeuler/package-events/events/sign.wxss b/src/openeuler/package-events/events/sign.wxss
deleted file mode 100644
index 93df72a..0000000
--- a/src/openeuler/package-events/events/sign.wxss
+++ /dev/null
@@ -1,64 +0,0 @@
-/* package-events/events/sign.wxss */
-page {
- background-color: #f5f7fa !important;
-}
-
-.container {
- padding: 0 !important;
-}
-
-.container .post-wrapper {
- width: 750rpx;
- height: 1312rpx;
- background-size: 100% 100% !important;
- display: flex;
- flex-direction: column;
- align-items: center;
- overflow: hidden;
-}
-
-.bg1 {
- background: url(https://openeuler-website.obs.ap-southeast-1.myhuaweicloud.com/poster/bg1.png) no-repeat;
-}
-
-.bg2 {
- background: url(https://openeuler-website.obs.ap-southeast-1.myhuaweicloud.com/poster/bg2.png) no-repeat;
-}
-
-.bg3 {
- background: url(https://openeuler-website.obs.ap-southeast-1.myhuaweicloud.com/poster/bg3.png) no-repeat;
-}
-
-.bg4 {
- background: url(https://openeuler-website.obs.ap-southeast-1.myhuaweicloud.com/poster/bg4.png) no-repeat;
-}
-
-.container .post-wrapper .title {
- color: #fff;
- font-size: 40rpx;
- line-height: 48rpx;
- margin-top: 173rpx;
- text-align: center;
-}
-
-.container .post-wrapper .qrcode {
- width: 519rpx;
- height: 519rpx;
- margin-top: 139rpx;
- border-radius: 50%;
- background-color: #fff;
-}
-
-.container .post-wrapper .qrcode-text {
- font-size: 28rpx;
- line-height: 40rpx;
- color: #333;
- text-align: center;
- margin-top: 22rpx;
-}
-
-.container .post-wrapper .logo {
- margin-top: 158rpx;
- width: 171rpx;
- height: 148rpx;
-}
\ No newline at end of file
diff --git a/src/openeuler/package-events/events/wxml-to-canvas.js b/src/openeuler/package-events/events/wxml-to-canvas.js
deleted file mode 100644
index 7e83504..0000000
--- a/src/openeuler/package-events/events/wxml-to-canvas.js
+++ /dev/null
@@ -1,91 +0,0 @@
-const { OBS_URL } = require('./../../utils/url-config');
-
-const wxml = (data) => {
- return `
-
-
-
- ${data.title}
-
- 时间:${data.date}
- ${data.address ? '地点:' + data.address : '直播地址:' + data.liveAddress}
-
- 长按识别二维码,进入活动!
-
-
- `;
-};
-
-const style = () => {
- return {
- container: {
- width: 325,
- height: 656,
- flexDirection: 'column',
- alignItems: 'center',
- },
- absolute: {
- width: 325,
- height: 656,
- flexDirection: 'column',
- alignItems: 'center',
- },
- title: {
- marginTop: 88,
- color: '#fff',
- width: 325,
- height: 41,
- fontSize: 17,
- textAlign: 'center',
- },
- logo: {
- marginTop: 71,
- width: 85,
- height: 70,
- marginBottom: 15,
- },
- date: {
- marginTop: 15,
- color: '#002fa7',
- width: 325,
- fontSize: 12,
- height: 19,
- textAlign: 'center',
- },
- address: {
- marginTop: 10,
- color: '#002fa7',
- width: 325,
- fontSize: 12,
- height: 19,
- textAlign: 'center',
- },
- qrcode: {
- backgroundColor: '#ffffff',
- marginTop: 40,
- height: 185,
- width: 185,
- borderRadius: 100,
- },
- qrcodeText: {
- color: '#ffffff',
- fontSize: 12,
- marginTop: 15,
- height: 17,
- width: 325,
- textAlign: 'center',
- },
- bgImg: {
- position: 'absolute',
- width: 325,
- height: 656,
- top: 0,
- left: 0,
- },
- };
-};
-
-module.exports = {
- wxml,
- style,
-};
diff --git a/src/openeuler/package-events/manage/add-member.js b/src/openeuler/package-events/manage/add-member.js
index 3ef8920..fb54727 100644
--- a/src/openeuler/package-events/manage/add-member.js
+++ b/src/openeuler/package-events/manage/add-member.js
@@ -8,6 +8,8 @@ let remoteMethods = {
service: 'ENTERPRISE_EXCLUDE_MEMBER_LIST',
data: {
search: postData.nickname || '',
+ page: postData.page,
+ size: postData.size,
},
success: function (ret) {
_callback && _callback(ret);
@@ -34,18 +36,48 @@ Page({
list: [],
result: [],
keyword: '',
+ pageParams: {
+ page: 1,
+ size: 50,
+ },
+ total: 0,
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
- let that = this;
- remoteMethods.getExcludeMemberList({}, function (data) {
- that.setData({
- list: data,
- });
+ this.initData();
+ },
+ initData: function () {
+ let renderData = [];
+ remoteMethods.getExcludeMemberList(
+ {
+ ...this.data.pageParams,
+ nickname: this.data.keyword,
+ },
+ (data) => {
+ if (this.data.pageParams.page === 1) {
+ renderData = data.data;
+ } else {
+ renderData = this.data.list;
+ renderData.push(...data.data);
+ }
+ this.setData({
+ list: renderData,
+ total: data.total,
+ });
+ }
+ );
+ },
+ onReachBottom() {
+ if (this.data.total < this.data.pageParams.size * this.data.pageParams.page) {
+ return false;
+ }
+ this.setData({
+ 'pageParams.page': this.data.pageParams.page + 1,
});
+ this.initData();
},
onChange: function (e) {
this.setData({
@@ -82,19 +114,9 @@ Page({
});
},
searchInput: function (e) {
- let that = this;
this.setData({
keyword: e.detail.value,
});
- remoteMethods.getExcludeMemberList(
- {
- nickname: this.data.keyword,
- },
- function (data) {
- that.setData({
- list: data,
- });
- }
- );
+ this.initData();
},
});
diff --git a/src/openeuler/package-events/manage/add-member.wxss b/src/openeuler/package-events/manage/add-member.wxss
index e5635ea..0432baf 100644
--- a/src/openeuler/package-events/manage/add-member.wxss
+++ b/src/openeuler/package-events/manage/add-member.wxss
@@ -57,7 +57,6 @@
height: 72rpx;
border-radius: 8rpx;
display: inline-block;
- border: 1px solid #979797;
margin: 0 20rpx 0 10rpx;
}
diff --git a/src/openeuler/package-events/manage/del-member.js b/src/openeuler/package-events/manage/del-member.js
index fcd2161..1556400 100644
--- a/src/openeuler/package-events/manage/del-member.js
+++ b/src/openeuler/package-events/manage/del-member.js
@@ -1,11 +1,15 @@
// pages/sig/del-member.js
const appAjax = require('./../../utils/app-ajax');
let remoteMethods = {
- getCludeMemberList: function (_callback) {
+ getCludeMemberList: function (postData, _callback) {
appAjax.postJson({
autoShowWait: true,
type: 'GET',
service: 'ENTERPRISE_MEMBER_LIST',
+ data: {
+ page: postData.page,
+ size: postData.size,
+ },
success: function (ret) {
_callback && _callback(ret);
},
@@ -30,19 +34,43 @@ Page({
data: {
list: [],
result: [],
+ pageParams: {
+ page: 1,
+ size: 50,
+ },
+ total: 0,
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
- let that = this;
- remoteMethods.getCludeMemberList(function (data) {
- that.setData({
- list: data,
+ this.initData();
+ },
+ initData: function () {
+ let renderData = [];
+ remoteMethods.getCludeMemberList(this.data.pageParams, (data) => {
+ if (this.data.pageParams.page === 1) {
+ renderData = data.data;
+ } else {
+ renderData = this.data.list;
+ renderData.push(...data.data);
+ }
+ this.setData({
+ list: renderData,
+ total: data.total,
});
});
},
+ onReachBottom() {
+ if (this.data.total < this.data.pageParams.size * this.data.pageParams.page) {
+ return false;
+ }
+ this.setData({
+ 'pageParams.page': this.data.pageParams.page + 1,
+ });
+ this.initData();
+ },
onChange: function (e) {
this.setData({
result: e.detail,
diff --git a/src/openeuler/package-events/manage/del-member.wxss b/src/openeuler/package-events/manage/del-member.wxss
index ea73f42..b31edc3 100644
--- a/src/openeuler/package-events/manage/del-member.wxss
+++ b/src/openeuler/package-events/manage/del-member.wxss
@@ -20,7 +20,7 @@
height: 72rpx;
border-radius: 8rpx;
display: inline-block;
- border: 1px solid #979797;
+
margin: 0 20rpx 0 10rpx;
}
diff --git a/src/openeuler/package-events/manage/enterprise-list.js b/src/openeuler/package-events/manage/enterprise-list.js
index de7baec..67b8abc 100644
--- a/src/openeuler/package-events/manage/enterprise-list.js
+++ b/src/openeuler/package-events/manage/enterprise-list.js
@@ -1,11 +1,15 @@
// package-events/manage/enterprise-list.js
const appAjax = require('./../../utils/app-ajax');
let remoteMethods = {
- getMemberList: function (_callback) {
+ getMemberList: function (params, _callback) {
appAjax.postJson({
autoShowWait: true,
type: 'GET',
service: 'ENTERPRISE_MEMBER_LIST',
+ data: {
+ page: params.page,
+ size: params.size,
+ },
success: function (ret) {
_callback && _callback(ret);
},
@@ -17,20 +21,44 @@ Page({
* 页面的初始数据
*/
data: {
- memberList: [],
+ list: [],
+ pageParams: {
+ page: 1,
+ size: 50,
+ },
+ total: 0,
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
- let that = this;
- remoteMethods.getMemberList(function (list) {
- that.setData({
- memberList: list,
+ this.initData();
+ },
+ initData: function () {
+ let renderData = [];
+ remoteMethods.getMemberList({ ...this.data.pageParams, id: this.data.id }, (data) => {
+ if (this.data.pageParams.page === 1) {
+ renderData = data.data;
+ } else {
+ renderData = this.data.list;
+ renderData.push(...data.data);
+ }
+ this.setData({
+ list: renderData,
+ total: data.total,
});
});
},
+ onReachBottom() {
+ if (this.data.total < this.data.pageParams.size * this.data.pageParams.page) {
+ return false;
+ }
+ this.setData({
+ 'pageParams.page': this.data.pageParams.page + 1,
+ });
+ this.initData();
+ },
toDetail: function (e) {
wx.navigateTo({
url:
diff --git a/src/openeuler/package-events/manage/enterprise-list.wxml b/src/openeuler/package-events/manage/enterprise-list.wxml
index 50dc1d2..698a780 100644
--- a/src/openeuler/package-events/manage/enterprise-list.wxml
+++ b/src/openeuler/package-events/manage/enterprise-list.wxml
@@ -1,6 +1,6 @@
-
-
+
+
@@ -13,7 +13,7 @@
-
+
diff --git a/src/openeuler/package-events/manage/enterprise-list.wxss b/src/openeuler/package-events/manage/enterprise-list.wxss
index c20be43..780ac3e 100644
--- a/src/openeuler/package-events/manage/enterprise-list.wxss
+++ b/src/openeuler/package-events/manage/enterprise-list.wxss
@@ -25,7 +25,7 @@ page {
height: 90rpx;
box-shadow: 0px 5px 15px 0px rgba(0, 47, 167, 0.1);
border-radius: 8px;
- border: 1px solid #979797;
+
display: flex;
justify-content: center;
align-items: center;
diff --git a/src/openeuler/package-events/publish/publish.js b/src/openeuler/package-events/publish/publish.js
index 4c955bc..cf9b1e6 100644
--- a/src/openeuler/package-events/publish/publish.js
+++ b/src/openeuler/package-events/publish/publish.js
@@ -81,8 +81,6 @@ let localMethods = {
const parts = time.split(':');
return parseInt(parts[0], 10) * 60 + parseInt(parts[1], 10);
}
- console.log(timeToMinutes(endTime));
- console.log(timeToMinutes(startTime));
return timeToMinutes(endTime) > timeToMinutes(startTime);
},
validation: function (data) {
@@ -125,7 +123,7 @@ let localMethods = {
if (!data.schedules[i].end) {
flag = false;
}
- if (!localMethods.validation(data.schedules[i].start, data.schedules[i].end)) {
+ if (!localMethods.timeValid(data.schedules[i].start, data.schedules[i].end)) {
this.toast('议题开始时间必须小于结束时间');
flag = false;
return;
@@ -139,28 +137,6 @@ let localMethods = {
}
});
}
- // data.schedules.forEach((item) => {
- // if (!item.start) {
- // flag = false;
- // }
- // if (!item.end) {
- // flag = false;
- // }
- // if (!localMethods.validation(item.start, item.end)) {
- // console.log(555);
- // this.toast('开始时间必须小于结束时间');
- // flag = false;
- // return;
- // }
- // if (!item.topic) {
- // flag = false;
- // }
- // item.speakerList.forEach((item) => {
- // if (!item.name) {
- // flag = false;
- // }
- // });
- // });
if (!flag) {
this.toast('请补充日程必填信息');
return;
diff --git a/src/openeuler/package-meeting/meeting/meeting-list.js b/src/openeuler/package-meeting/meeting/meeting-list.js
index 3176495..cdfd247 100644
--- a/src/openeuler/package-meeting/meeting/meeting-list.js
+++ b/src/openeuler/package-meeting/meeting/meeting-list.js
@@ -15,7 +15,10 @@ Page({
meetingConponent: this.selectComponent('#meeting'),
});
},
-
+ onReachBottom() {
+ const customComponent = this.selectComponent('#meeting');
+ customComponent.getMoreData();
+ },
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
@@ -23,14 +26,4 @@ Page({
wx.stopPullDownRefresh();
this.data.meetingConponent?.initData();
},
-
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom: function () {},
-
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage: function () {},
});
diff --git a/src/openeuler/package-meeting/sig/add-member.js b/src/openeuler/package-meeting/sig/add-member.js
index ad3bd81..271b3ce 100644
--- a/src/openeuler/package-meeting/sig/add-member.js
+++ b/src/openeuler/package-meeting/sig/add-member.js
@@ -11,6 +11,8 @@ let remoteMethods = {
},
data: {
search: postData.nickname || '',
+ page: postData.page,
+ size: postData.size,
},
success: function (ret) {
_callback && _callback(ret);
@@ -37,6 +39,11 @@ Page({
list: [],
result: [],
sigId: '',
+ pageParams: {
+ page: 1,
+ size: 50,
+ },
+ total: 0,
keyword: '',
},
@@ -53,14 +60,35 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
- let that = this;
+ this.initData();
+ },
+ onReachBottom() {
+ if (this.data.total < this.data.pageParams.size * this.data.pageParams.page) {
+ return false;
+ }
+ this.setData({
+ 'pageParams.page': this.data.pageParams.page + 1,
+ });
+ this.initData();
+ },
+ initData: function () {
+ let renderData = [];
remoteMethods.getExcludeMemberList(
{
+ ...this.data.pageParams,
id: this.data.sigId,
+ nickname: this.data.keyword,
},
- function (data) {
- that.setData({
- list: data,
+ (data) => {
+ if (this.data.pageParams.page === 1) {
+ renderData = data.data;
+ } else {
+ renderData = this.data.list;
+ renderData.push(...data.data);
+ }
+ this.setData({
+ list: renderData,
+ total: data.total,
});
}
);
@@ -71,7 +99,6 @@ Page({
});
},
comfirm: function () {
- let that = this;
if (!this.data.result.length) {
wx.showToast({
title: '请选择人员',
@@ -102,20 +129,9 @@ Page({
});
},
searchInput: function (e) {
- let that = this;
this.setData({
keyword: e.detail.value,
});
- remoteMethods.getExcludeMemberList(
- {
- id: this.data.sigId,
- nickname: this.data.keyword,
- },
- function (data) {
- that.setData({
- list: data,
- });
- }
- );
+ this.initData();
},
});
diff --git a/src/openeuler/package-meeting/sig/add-member.wxss b/src/openeuler/package-meeting/sig/add-member.wxss
index e5635ea..80eb0c6 100644
--- a/src/openeuler/package-meeting/sig/add-member.wxss
+++ b/src/openeuler/package-meeting/sig/add-member.wxss
@@ -57,7 +57,7 @@
height: 72rpx;
border-radius: 8rpx;
display: inline-block;
- border: 1px solid #979797;
+
margin: 0 20rpx 0 10rpx;
}
diff --git a/src/openeuler/package-meeting/sig/add-sig-member.js b/src/openeuler/package-meeting/sig/add-sig-member.js
index 1764eff..52718dc 100644
--- a/src/openeuler/package-meeting/sig/add-sig-member.js
+++ b/src/openeuler/package-meeting/sig/add-sig-member.js
@@ -1,13 +1,17 @@
// pages/sig/add-sig-member.js
const appAjax = require('./../../utils/app-ajax');
let remoteMethods = {
- getSigMemberList: function (id, _callback) {
+ getSigMemberList: function (params, _callback) {
appAjax.postJson({
autoShowWait: true,
type: 'GET',
service: 'SIG_MEMBER_LIST',
otherParams: {
- id: id,
+ id: params.id,
+ },
+ data: {
+ page: params.page,
+ size: params.size,
},
success: function (ret) {
_callback && _callback(ret);
@@ -20,8 +24,13 @@ Page({
* 页面的初始数据
*/
data: {
- memberList: [],
+ list: [],
id: '',
+ pageParams: {
+ page: 1,
+ size: 50,
+ },
+ total: 0,
},
/**
@@ -40,13 +49,32 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
- let that = this;
- remoteMethods.getSigMemberList(this.data.id, function (list) {
- that.setData({
- memberList: list,
+ this.initData();
+ },
+ initData: function () {
+ let renderData = [];
+ remoteMethods.getSigMemberList({ ...this.data.pageParams, id: this.data.id }, (data) => {
+ if (this.data.pageParams.page === 1) {
+ renderData = data.data;
+ } else {
+ renderData = this.data.list;
+ renderData.push(...data.data);
+ }
+ this.setData({
+ list: renderData,
+ total: data.total,
});
});
},
+ onReachBottom() {
+ if (this.data.total < this.data.pageParams.size * this.data.pageParams.page) {
+ return false;
+ }
+ this.setData({
+ 'pageParams.page': this.data.pageParams.page + 1,
+ });
+ this.initData();
+ },
toDetail: function (e) {
wx.navigateTo({
url:
diff --git a/src/openeuler/package-meeting/sig/add-sig-member.wxml b/src/openeuler/package-meeting/sig/add-sig-member.wxml
index 0b1ebe6..5b9dc06 100644
--- a/src/openeuler/package-meeting/sig/add-sig-member.wxml
+++ b/src/openeuler/package-meeting/sig/add-sig-member.wxml
@@ -1,6 +1,6 @@
-
+
@@ -13,7 +13,7 @@
-
+
diff --git a/src/openeuler/package-meeting/sig/add-sig-member.wxss b/src/openeuler/package-meeting/sig/add-sig-member.wxss
index 220e2e8..a0de89e 100644
--- a/src/openeuler/package-meeting/sig/add-sig-member.wxss
+++ b/src/openeuler/package-meeting/sig/add-sig-member.wxss
@@ -25,7 +25,7 @@ page {
height: 90rpx;
box-shadow: 0px 5px 15px 0px rgba(0, 47, 167, 0.1);
border-radius: 8px;
- border: 1px solid #979797;
+
display: flex;
justify-content: center;
align-items: center;
diff --git a/src/openeuler/package-meeting/sig/del-member.js b/src/openeuler/package-meeting/sig/del-member.js
index 37f92e0..ffc970a 100644
--- a/src/openeuler/package-meeting/sig/del-member.js
+++ b/src/openeuler/package-meeting/sig/del-member.js
@@ -9,6 +9,10 @@ let remoteMethods = {
otherParams: {
id: postData.id,
},
+ data: {
+ page: postData.page,
+ size: postData.size,
+ },
success: function (ret) {
_callback && _callback(ret);
},
@@ -34,6 +38,11 @@ Page({
list: [],
result: [],
sigId: '',
+ pageParams: {
+ page: 1,
+ size: 50,
+ },
+ total: 0,
},
/**
@@ -49,14 +58,34 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
- let that = this;
+ this.initData();
+ },
+ onReachBottom() {
+ if (this.data.total < this.data.pageParams.size * this.data.pageParams.page) {
+ return false;
+ }
+ this.setData({
+ 'pageParams.page': this.data.pageParams.page + 1,
+ });
+ this.initData();
+ },
+ initData: function () {
+ let renderData = [];
remoteMethods.getCludeMemberList(
{
+ ...this.data.pageParams,
id: this.data.sigId,
},
- function (data) {
- that.setData({
- list: data,
+ (data) => {
+ if (this.data.pageParams.page === 1) {
+ renderData = data.data;
+ } else {
+ renderData = this.data.list;
+ renderData.push(...data.data);
+ }
+ this.setData({
+ list: renderData,
+ total: data.total,
});
}
);
diff --git a/src/openeuler/package-meeting/sig/del-member.wxss b/src/openeuler/package-meeting/sig/del-member.wxss
index ea73f42..b31edc3 100644
--- a/src/openeuler/package-meeting/sig/del-member.wxss
+++ b/src/openeuler/package-meeting/sig/del-member.wxss
@@ -20,7 +20,7 @@
height: 72rpx;
border-radius: 8rpx;
display: inline-block;
- border: 1px solid #979797;
+
margin: 0 20rpx 0 10rpx;
}
diff --git a/src/openeuler/package-my/events/my-list.js b/src/openeuler/package-my/events/my-list.js
index 298e0ff..17d84ea 100644
--- a/src/openeuler/package-my/events/my-list.js
+++ b/src/openeuler/package-my/events/my-list.js
@@ -4,7 +4,7 @@ const sessionUtil = require('../../utils/app-session.js');
let that = null;
let remoteMethods = {
- getList: function (_callback) {
+ getList: function (params, _callback) {
let service = '';
if (that.data.type == 4) {
service = 'GET_DRAFT_LIST';
@@ -36,6 +36,7 @@ let remoteMethods = {
success: function (ret) {
_callback && _callback(ret);
},
+ data: params,
});
},
delDraft: function (_callback) {
@@ -98,6 +99,11 @@ Page({
data: {
type: 1,
list: [],
+ pageParams: {
+ page: 1,
+ size: 50,
+ },
+ total: 0,
level: 1,
actionShow: false,
actions: [],
@@ -145,16 +151,31 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
- remoteMethods.getList((res) => {
+ this.initData();
+ },
+ initData() {
+ let renderData = [];
+ remoteMethods.getList(this.data.pageParams, (data) => {
+ if (this.data.pageParams.page === 1) {
+ renderData = data.data;
+ } else {
+ renderData = this.data.list;
+ renderData.push(...data.data);
+ }
this.setData({
- list: res,
+ list: renderData,
+ total: data.total,
});
});
},
- toSign(e) {
- wx.navigateTo({
- url: `/package-events/events/sign?id=${e.currentTarget.dataset.id}`,
+ onReachBottom() {
+ if (this.data.total < this.data.pageParams.size * this.data.pageParams.page) {
+ return false;
+ }
+ this.setData({
+ 'pageParams.page': this.data.pageParams.page + 1,
});
+ this.initData();
},
editDraft(e) {
wx.navigateTo({
@@ -166,21 +187,27 @@ Page({
actionShow: false,
});
},
+ initialization() {
+ this.setData({
+ 'pageParams.page': 1,
+ });
+ this.initData();
+ },
onActionSelect(e) {
if (this.data.type == 4) {
remoteMethods.delDraft(() => {
- this.onShow();
+ this.initialization();
});
} else if (this.data.type == 2 || this.data.type == 6 || this.data.type == 7) {
if (this.data.level == 3) {
if (e.detail.operaType == 1) {
if (this.data.collectionId) {
remoteMethods.unCollect(() => {
- this.onShow();
+ this.initialization();
});
} else {
remoteMethods.collect(() => {
- this.onShow();
+ this.initialization();
});
}
} else {
@@ -192,11 +219,11 @@ Page({
if (e.detail.operaType == 1) {
if (this.data.collectionId) {
remoteMethods.unCollect(() => {
- this.onShow();
+ this.initialization();
});
} else {
remoteMethods.collect(() => {
- this.onShow();
+ this.initialization();
});
}
} else if (e.detail.operaType == 3) {
@@ -289,11 +316,7 @@ Page({
showDialogDel: false,
});
remoteMethods.delEvent(() => {
- remoteMethods.getList((res) => {
- this.setData({
- list: res,
- });
- });
+ this.initialization();
});
},
delCancel() {
diff --git a/src/openeuler/package-my/events/my-list.wxml b/src/openeuler/package-my/events/my-list.wxml
index 2f0449e..9b5b95e 100644
--- a/src/openeuler/package-my/events/my-list.wxml
+++ b/src/openeuler/package-my/events/my-list.wxml
@@ -3,7 +3,8 @@
-
- {{item.address||item.join_url}}
+ {{item.address||item.join_url || ''}}
编辑活动
@@ -28,13 +29,12 @@
立即报名
-
- 签到码
-
-
+
修改日程
- 精彩回顾
+ 精彩回顾
@@ -42,18 +42,22 @@
- 已报名
+ 已报名
立即报名
-
+
修改日程
- 已报名
+ 已报名
立即报名
-
+
修改日程
@@ -64,7 +68,8 @@
已报名 {{item.register_count}}人
-
+
@@ -74,14 +79,17 @@
-
+
暂无活动!
-
+
请确认下架当前活动
@@ -90,7 +98,8 @@
-
+
活动一经发布,暂不支持自行下架删除。如有需要,请联系
diff --git a/src/openeuler/package-my/my/my-collection.js b/src/openeuler/package-my/my/my-collection.js
index 7277efc..2b0eaf5 100644
--- a/src/openeuler/package-my/my/my-collection.js
+++ b/src/openeuler/package-my/my/my-collection.js
@@ -5,4 +5,8 @@ Page({
* 页面的初始数据
*/
data: {},
+ onReachBottom() {
+ const customComponent = this.selectComponent('#meeting');
+ customComponent.getMoreData();
+ },
});
diff --git a/src/openeuler/package-my/my/my-collection.wxml b/src/openeuler/package-my/my/my-collection.wxml
index c7b754a..695d42e 100644
--- a/src/openeuler/package-my/my/my-collection.wxml
+++ b/src/openeuler/package-my/my/my-collection.wxml
@@ -1,4 +1,4 @@
-
+
\ No newline at end of file
diff --git a/src/openeuler/package-my/my/my-meetings.js b/src/openeuler/package-my/my/my-meetings.js
index acc355e..a65975c 100644
--- a/src/openeuler/package-my/my/my-meetings.js
+++ b/src/openeuler/package-my/my/my-meetings.js
@@ -5,4 +5,8 @@ Page({
* 页面的初始数据
*/
data: {},
+ onReachBottom() {
+ const customComponent = this.selectComponent('#meeting');
+ customComponent.getMoreData();
+ },
});
diff --git a/src/openeuler/package-my/my/my-meetings.wxml b/src/openeuler/package-my/my/my-meetings.wxml
index 94b3f51..9704dda 100644
--- a/src/openeuler/package-my/my/my-meetings.wxml
+++ b/src/openeuler/package-my/my/my-meetings.wxml
@@ -1,4 +1,4 @@
-
+
\ No newline at end of file
diff --git a/src/openeuler/package-my/my/privecy-historical.js b/src/openeuler/package-my/my/privecy-historical.js
index 59441a0..d5c5f85 100644
--- a/src/openeuler/package-my/my/privecy-historical.js
+++ b/src/openeuler/package-my/my/privecy-historical.js
@@ -4,44 +4,4 @@ Page({
* 页面的初始数据
*/
data: {},
-
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function () {},
-
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady: function () {},
-
- /**
- * 生命周期函数--监听页面显示
- */
- onShow: function () {},
-
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide: function () {},
-
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload: function () {},
-
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh: function () {},
-
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom: function () {},
-
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage: function () {},
});
diff --git a/src/openeuler/package-my/my/privecy-historical.wxml b/src/openeuler/package-my/my/privecy-historical.wxml
index 67746fc..85aedcd 100644
--- a/src/openeuler/package-my/my/privecy-historical.wxml
+++ b/src/openeuler/package-my/my/privecy-historical.wxml
@@ -9,7 +9,7 @@
c) 当您创建会议后,我们会将您的Gitee ID及会议相关信息同步至本服务页面,以便对您的会议感兴趣的个人或组织及时获取相关信息。
d) 当您创建活动之前,我们会收集您的Gitee ID、所属企业名称、电话、邮箱,用于配置活动发布权限,Gitee ID和您的所属企业名称会作为活动的发布者信息呈现在活动详情页,电话、邮箱便于我们与您取得联系。
e) 当您为您创建的活动添加议题时,我们会收集您所填写议题的嘉宾名称、职位、邮箱,用于在活动议题的内容中展示。
- f) 当您在下载活动海报时,我们会申请您的相册保存权限,保存小程序生成的活动海报。
+ f) 当您在保存图片时,我们会申请您的相册保存权限,保存图片到您的相册。
g) 当您在活动详情页面点击地址时,我们在获取您的同意后会关联启动腾讯地图。
2. 我们在何种情况披露或共享您的个人信息
共享是指我们向第三方披露您的个人信息。我们仅会出于合法、正当、必要、特定、明确的目的共享您的个人信息,我们共享这些信息的目的仅限于本声明披露或在您允许的范围内进行。
diff --git a/src/openeuler/pages/events/events.js b/src/openeuler/pages/events/events.js
index cb30fe7..a246278 100644
--- a/src/openeuler/pages/events/events.js
+++ b/src/openeuler/pages/events/events.js
@@ -78,6 +78,11 @@ Page({
noAuthDialogShow: false,
user: '',
list: [],
+ pageParams: {
+ page: 1,
+ size: 50,
+ },
+ total: 0,
actionShow: false,
actions: [],
underDialogShow: false,
@@ -102,7 +107,8 @@ Page({
});
remoteMethods.getList((res) => {
that.setData({
- list: res,
+ list: res.data,
+ total: res.total,
});
});
});
@@ -144,6 +150,30 @@ Page({
},
});
},
+ onReachBottom() {
+ if (this.data.total < this.data.pageParams.size * this.data.pageParams.page) {
+ return false;
+ }
+ this.setData({
+ 'pageParams.page': this.data.pageParams.page + 1,
+ });
+ this.initData();
+ },
+ initData: function () {
+ let renderData = [];
+ remoteMethods.getList(this.data.pageParams, (data) => {
+ if (this.data.pageParams.page === 1) {
+ renderData = data.data;
+ } else {
+ renderData = this.data.list;
+ renderData.push(...data.data);
+ }
+ this.setData({
+ list: renderData,
+ total: data.total,
+ });
+ });
+ },
onActionClose() {
this.setData({
actionShow: false,
diff --git a/src/openeuler/pages/events/events.wxml b/src/openeuler/pages/events/events.wxml
index bfa0b29..1002429 100644
--- a/src/openeuler/pages/events/events.wxml
+++ b/src/openeuler/pages/events/events.wxml
@@ -2,16 +2,17 @@
-
-
- 发起人管理
-
查看活动
-
+
+
+ 发起人管理
+
+
发布活动
@@ -37,7 +38,7 @@
- {{item.address||item.join_url}}
+ {{item.address||item.join_url || ''}}
@@ -47,20 +48,24 @@
-
+
已报名
立即报名
-
+
修改日程
- 已报名
+ 已报名
立即报名
-
+
修改日程
@@ -68,18 +73,22 @@
-
+
-
+
暂无活动!
-
+
请确认下架当前活动
@@ -88,7 +97,8 @@
-
+
活动一经发布,暂不支持自行下架删除。如有需要,请联系
@@ -100,7 +110,8 @@
-
+
您暂时没有发布活动的权限,请联系
diff --git a/src/openeuler/pages/index/index.js b/src/openeuler/pages/index/index.js
index 1d30195..7694e3d 100644
--- a/src/openeuler/pages/index/index.js
+++ b/src/openeuler/pages/index/index.js
@@ -65,6 +65,10 @@ Page(
that.data.meetingConponent?.initData();
});
},
+ onReachBottom() {
+ const customComponent = this.selectComponent('#meeting');
+ customComponent.getMoreData();
+ },
actionStatus(e) {
if (e.detail === 1) {
this.getTabBar().setData({
diff --git a/src/openeuler/pages/meeting/meeting.js b/src/openeuler/pages/meeting/meeting.js
index c892e68..9764040 100644
--- a/src/openeuler/pages/meeting/meeting.js
+++ b/src/openeuler/pages/meeting/meeting.js
@@ -50,6 +50,10 @@ Page(
that.data.meetingConponent?.initData();
});
},
+ onReachBottom() {
+ const customComponent = this.selectComponent('#meeting');
+ customComponent.getMoreData()
+ },
actionStatus(e) {
if (e.detail === 1) {
this.getTabBar().setData({
diff --git a/src/openeuler/pages/meeting/meeting.wxml b/src/openeuler/pages/meeting/meeting.wxml
index 1cd3007..1edee7d 100644
--- a/src/openeuler/pages/meeting/meeting.wxml
+++ b/src/openeuler/pages/meeting/meeting.wxml
@@ -2,17 +2,17 @@
-
-
- SIG组管理
-
查看会议
-
+
+
+ SIG组管理
+
+
预定会议
diff --git a/src/openeuler/pages/my/my.wxml b/src/openeuler/pages/my/my.wxml
index 358de68..f274a40 100644
--- a/src/openeuler/pages/my/my.wxml
+++ b/src/openeuler/pages/my/my.wxml
@@ -34,11 +34,13 @@
{{myCount.published_activities_count||0}}
已发布
-
+
{{myCount.drafts_count||0}}
草稿箱
-
+
{{myCount.publishing_activities_count||0}}
{{avtivityLevel===3?'待发布':'发布中'}}
diff --git a/src/openeuler/project.private.config.json b/src/openeuler/project.private.config.json
index 156487a..efcd36c 100644
--- a/src/openeuler/project.private.config.json
+++ b/src/openeuler/project.private.config.json
@@ -5,6 +5,13 @@
"condition": {
"miniprogram": {
"list": [
+ {
+ "name": "",
+ "pathName": "pages/index/index",
+ "query": "",
+ "launchMode": "default",
+ "scene": null
+ },
{
"name": "",
"pathName": "package-events/publish/publish",
diff --git a/src/openeuler/typings/wx.d.ts b/src/openeuler/typings/wx.d.ts
new file mode 100644
index 0000000..a2ffc2b
--- /dev/null
+++ b/src/openeuler/typings/wx.d.ts
@@ -0,0 +1,2705 @@
+// generate time:2017-08-23 21:12:06
+// Type definitions for wx app
+// Definitions by: hellopao
+
+/************************************************
+* *
+* 微信小程序 API *
+* *
+************************************************/
+
+interface IAnimation {
+ /**
+ * 透明度,参数范围 0~1
+ */
+ opacity(value: number): IAnimation;
+ /**
+ * 颜色值
+ */
+ backgroundColor(color: string): IAnimation;
+ /**
+ * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
+ */
+ width(length: number): IAnimation;
+ /**
+ * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
+ */
+ height(length: number): IAnimation;
+ /**
+ * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
+ */
+ top(length: number): IAnimation;
+ /**
+ * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
+ */
+ left(length: number): IAnimation;
+ /**
+ * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
+ */
+ bottom(length: number): IAnimation;
+ /**
+ * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
+ */
+ right(length: number): IAnimation;
+ /**
+ * deg的范围-180~180,从原点顺时针旋转一个deg角度
+ */
+ rotate(deg: number): IAnimation;
+ /**
+ * deg的范围-180~180,在X轴旋转一个deg角度
+ */
+ rotateX(deg: number): IAnimation;
+ /**
+ * deg的范围-180~180,在Y轴旋转一个deg角度
+ */
+ rotateY(deg: number): IAnimation;
+ /**
+ * deg的范围-180~180,在Z轴旋转一个deg角度
+ */
+ rotateZ(deg: number): IAnimation;
+ /**
+ * 同transform-function rotate3d
+ */
+ rotate3d(x: number, y: number, z: number, deg: number): IAnimation;
+ /**
+ * 一个参数时,表示在X轴、Y轴同时缩放sx倍数;两个参数时表示在X轴缩放sx倍数,在Y轴缩放sy倍数
+ */
+ scale(sx: number, sy?: number): IAnimation;
+ /**
+ * 在X轴缩放sx倍数
+ */
+ scaleX(sx: number): IAnimation;
+ /**
+ * 在Y轴缩放sy倍数
+ */
+ scaleY(sy: number): IAnimation;
+ /**
+ * 在Z轴缩放sy倍数
+ */
+ scaleZ(sz: number): IAnimation;
+ /**
+ * 在X轴缩放sx倍数,在Y轴缩放sy倍数,在Z轴缩放sz倍数
+ */
+ scale3d(sx: number, sy: number, sz: number): IAnimation;
+ /**
+ * 一个参数时,表示在X轴偏移tx,单位px;两个参数时,表示在X轴偏移tx,在Y轴偏移ty,单位px。
+ */
+ translate(tx: number, ty?: number): IAnimation;
+ /**
+ * 在X轴偏移tx,单位px
+ */
+ translateX(tx: number): IAnimation;
+ /**
+ * 在Y轴偏移tx,单位px
+ */
+ translateY(tx: number): IAnimation;
+ /**
+ * 在Z轴偏移tx,单位px
+ */
+ translateZ(tx: number): IAnimation;
+ /**
+ * 在X轴偏移tx,在Y轴偏移ty,在Z轴偏移tz,单位px
+ */
+ translate3d(tx: number, ty: number, tz: number): IAnimation;
+ /**
+ * 参数范围-180~180;一个参数时,Y轴坐标不变,X轴坐标延顺时针倾斜ax度;两个参数时,分别在X轴倾斜ax度,在Y轴倾斜ay度
+ */
+ skew(ax: number, ay?: number): IAnimation;
+ /**
+ * 参数范围-180~180;Y轴坐标不变,X轴坐标延顺时针倾斜ax度
+ */
+ skewX(ax: number): IAnimation;
+ /**
+ * 参数范围-180~180;X轴坐标不变,Y轴坐标延顺时针倾斜ay度
+ */
+ skewY(ay: number): IAnimation;
+ /**
+ * 同transform-function matrix
+ */
+ matrix(a, b, c, d, tx, ty): IAnimation;
+ /**
+ * 同transform-function matrix3d
+ */
+ matrix3d(): IAnimation;
+}
+
+interface ICanvasContext {
+ /**
+ * 设置填充色, 如果没有设置 fillStyle,默认颜色为 black。
+ */
+ setFillStyle(color: string): void;
+ /**
+ * 设置边框颜色, 如果没有设置 fillStyle,默认颜色为 black。
+ */
+ setStrokeStyle(color: string): void;
+ /**
+ * 设置阴影
+ */
+ setShadow(offsetX: number, offsetY: number, blur: number, color: string): void;
+ /**
+ * 创建一个线性的渐变颜色。需要使用 addColorStop() 来指定渐变点,至少要两个。
+ */
+ createLinearGradient(x0: number, y0: number, x1: number, y1: number): void;
+ /**
+ * 创建一个圆形的渐变颜色。 起点在圆心,终点在圆环。 需要使用 addColorStop() 来指定渐变点,至少要两个。
+ */
+ createCircularGradient(x: number, y: number, r: number): void;
+ /**
+ * 创建一个颜色的渐变点。小于最小 stop 的部分会按最小 stop 的 color 来渲染,大于最大 stop 的部分会按最大 stop 的 color 来渲染。需要使用 addColorStop() 来指定渐变点,至少要两个。
+ */
+ addColorStop(stop: number, color: string): void;
+ /**
+ * 设置线条端点的样式
+ */
+ setLineCap(lineCap: 'butt' | 'round' | 'square'): void;
+ /**
+ * 设置两线相交处的样式
+ */
+ setLineJoin(lineJoin: 'bevel' | 'round' | 'miter'): void;
+ /**
+ * 设置线条宽度
+ */
+ setLineWidth(lineWidth: number): void;
+ /**
+ * 设置最大倾斜
+ */
+ setMiterLimit(miterLimit: number): void;
+ /**
+ * 添加一个矩形路径到当前路径。
+ */
+ rect(x: number, y: number, width: number, height: number): void;
+ /**
+ * 填充一个矩形。用 setFillStyle() 设置矩形的填充色,如果没设置默认是黑色。
+ */
+ fillRect(x: number, y: number, width: number, height: number): void;
+ /**
+ * 一个矩形(非填充)。用 setFillStroke() 设置矩形线条的颜色,如果没设置默认是黑色。
+ */
+ strokeRect(x: number, y: number, width: number, height: number): void;
+ /**
+ * 在给定的矩形区域内,清除画布上的像素
+ */
+ clearRect(x: number, y: number, width: number, height: number): void;
+ /**
+ * 对当前路径进行填充
+ */
+ fill(): void;
+ /**
+ * 对当前路径进行描边
+ */
+ stroke(): void;
+ /**
+ * 开始一个路径
+ */
+ beginPath(): void;
+ /**
+ * 关闭一个路径
+ */
+ closePath(): void;
+ /**
+ * 把路径移动到画布中的指定点,但不创建线条。
+ */
+ moveTo(x: number, y: number): void;
+ /**
+ * 添加一个新点,然后在画布中创建从该点到最后指定点的线条。
+ */
+ lineTo(x: number, y: number): void;
+ /**
+ * 添加一个弧形路径到当前路径,顺时针绘制。
+ */
+ arc(x: number, y: number, radius: number, startAngle: number, sweepAngle: number): void;
+ /**
+ * 创建二次方贝塞尔曲线
+ */
+ quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
+ /**
+ * 创建三次方贝塞尔曲线
+ */
+ bezierCurveTo(cpx1: number, cpy1: number, cpx2: number, cpy2: number, x: number, y: number): void;
+ /**
+ * 对横纵坐标进行缩放
+ */
+ scale(scaleWidth: number/**横坐标缩放的倍数1 = 100%,0.5 = 50%,2 = 200%,依次类 */, scaleHeight: number/** 纵坐标轴缩放的倍数1 = 100%,0.5 = 50%,2 = 200%,依次类 */): void;
+ /**
+ * 对坐标轴进行顺时针旋转
+ */
+ rotate(deg: number/**degrees * Math.PI/180;degrees范围为0~360;旋转角度,以弧度计 */): void;
+ /**
+ * 对坐标原点进行缩放
+ */
+ translate(x: number/**水平坐标平移量 */, y: number/**竖直坐标平移量 */): void;
+ /**
+ * 在画布上绘制被填充的文本
+ */
+ fillText(text: string, x: number, y: number): void;
+ /**
+ * 设置字体大小
+ */
+ setFontSize(fontSize: number): void;
+ /**
+ * 在画布上绘制图像
+ */
+ drawImage(imageResource: string, x: number, y: number, width: number, height: number): void;
+ /**
+ * 设置全局画笔透明度。
+ */
+ setGlobalAlpha(alpha: number): void;
+ /**
+ * 保存当前坐标轴的缩放、旋转、平移信息
+ */
+ save(): void;
+ /**
+ * 恢复之前保存过的坐标轴的缩放、旋转、平移信息
+ */
+ restore(): void;
+ /**
+ * 进行绘图
+ */
+ draw(): void;
+}
+
+interface IAudioContext {
+ /**
+ * 播放
+ */
+ play: () => void;
+ /**
+ * 暂停
+ */
+ pause: () => void;
+ /**
+ * 跳转到指定位置,单位 s
+ */
+ seek: (position: number) => void;
+}
+
+interface IVideoContext {
+ /**
+ * 播放
+ */
+ play: () => void;
+ /**
+ * 暂停
+ */
+ pause: () => void;
+ /**
+ * 跳转到指定位置,单位 s
+ */
+ seek: (position: number) => void;
+ /**
+ * 发送弹幕,danmu 包含两个属性 text, color。
+ */
+ sendDanmu: (danmu: {text: string; color: string;}) => void;
+}
+
+interface IMapContext {
+ /**
+ * 获取当前地图中心的经纬度,返回的是 gcj02 坐标系,可以用于 wx.openLocation
+ */
+ getCenterLocation: (obj: {
+ /**
+ * 接口调用成功的回调函数 ,res = { longitude: "经度", latitude: "纬度"}
+ */
+ success?: (res: {longitude: string; latitude: string}) => void;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: () => void;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: () => void;
+ }) => void;
+ /**
+ * 将地图中心移动到当前定位点,需要配合map组件的show-location使用
+ */
+ moveToLocation: () => void;
+}
+
+interface Application {
+ setData: (obj: any) => void;
+}
+
+interface AppConstructor {
+ new (): Application;
+ (opts: {
+ /**
+ * 生命周期函数--监听小程序初始化
+ */
+ onLaunch?: () => void;
+ /**
+ * 生命周期函数--监听小程序显示
+ */
+ onShow?: () => void;
+ /**
+ * 生命周期函数--监听小程序隐藏
+ */
+ onHide?: () => void;
+
+ [key: string]: any;
+ }): Application;
+}
+
+declare var App: AppConstructor;
+declare function getApp(): Application;
+
+declare function getCurrentPages(): Page[];
+
+interface Page {
+ setData: (obj: any) => void;
+}
+
+interface PageConstructor {
+ new (): Page;
+ (opts: {
+ /**
+ * 页面的初始数据
+ */
+ data?: any;
+ /**
+ * 页面的初始数据
+ */
+ onLoad?: () => void;
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady?: () => void;
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow?: () => void;
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide?: () => void;
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload?: () => void;
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefreash?: () => void;
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom?: () => void;
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage?: () => {
+ /**
+ * 分享标题, 默认值当前小程序名称
+ */
+ title: string;
+ /**
+ * 分享描述, 默认值当前小程序名称
+ */
+ desc: string;
+ /**
+ * 分享路径 默认值当前页面 path ,必须是以 / 开头的完整路径
+ */
+ path: string;
+ };
+
+ [key: string]: any;
+ }): Page;
+}
+
+declare var Page: PageConstructor;
+
+declare var wx: {
+ // # 网络 #
+
+ request(obj: {
+ /**
+ * 开发者服务器接口地址
+ */
+ url: string;
+ /**
+ * 请求的参数
+ */
+ data?: any | string;
+ /**
+ * 设置请求的 header , header 中不能设置 Referer
+ */
+ header?: any;
+ /**
+ * 默认为 GET,有效值:OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
+ */
+ method?: string;
+ /**
+ * 默认为 json。如果设置了 dataType 为 json,则会尝试对响应的数据做一次 JSON.parse
+ */
+ dataType?: string;
+ /**
+ * 收到开发者服务成功返回的回调函数,res = {data: '开发者服务器返回的内容'}
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 将本地资源上传到开发者服务器。如页面通过 wx.chooseImage 等接口获取到一个本地资源的临时文件路径后,可通过此接口将本地资源上传到指定服务器。客户端发起一个 HTTPS POST 请求,其中 content-type 为 multipart/form-data 。
+ */
+ uploadFile(obj: {
+ /**
+ * 开发者服务器 url
+ */
+ url: string;
+ /**
+ * 要上传文件资源的路径
+ */
+ filePath: string;
+ /**
+ * 文件对应的 key , 开发者在服务器端通过这个 key 可以获取到文件二进制内容
+ */
+ name: string;
+ /**
+ * HTTP 请求 Header , header 中不能设置 Referer
+ */
+ header?: any;
+ /**
+ * HTTP 请求中其他额外的 form data
+ */
+ formData?: any;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 下载文件资源到本地。客户端直接发起一个 HTTP GET 请求,返回文件的本地临时路径。
+ */
+ downloadFile(obj: {
+ /**
+ * 下载资源的 url
+ */
+ url: string;
+ /**
+ * HTTP 请求 Header
+ */
+ header?: any;
+ /**
+ * 下载成功后以 tempFilePath 的形式传给页面,res = {tempFilePath: '文件的临时路径'}
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 创建一个 WebSocket 连接;一个微信小程序同时只能有一个 WebSocket 连接,如果当前已存在一个 WebSocket 连接,会自动关闭该连接,并重新创建一个 WebSocket 连接。
+ */
+ connectSocket(obj: {
+ /**
+ * 开发者服务器接口地址,必须是 wss 协议,且域名必须是后台配置的合法域名
+ */
+ url: string;
+ /**
+ * 请求的数据
+ */
+ data?: any;
+ /**
+ * HTTP Header , header 中不能设置 Referer
+ */
+ header?: any;
+ /**
+ * 默认是GET,有效值: OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
+ */
+ method?: string;
+ /**
+ * 子协议数组
+ */
+ protocols?: string[];
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 监听WebSocket连接打开事件。
+ */
+ onSocketOpen(callback: Function): void;
+
+ /**
+ * 监听WebSocket错误。
+ */
+ onSocketError(callback: Function): void;
+
+ /**
+ * 通过 WebSocket 连接发送数据,需要先 wx.connectSocket,并在 wx.onSocketOpen 回调之后才能发送。
+ */
+ sendSocketMessage(obj: {
+ /**
+ * 需要发送的内容
+ */
+ data: undefined;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 监听WebSocket接受到服务器的消息事件。
+ */
+ onSocketMessage(callback: Function): void;
+
+ /**
+ * 关闭WebSocket连接。
+ */
+ closeSocket(obj: {
+ /**
+ * 一个数字值表示关闭连接的状态号,表示连接被关闭的原因。如果这个参数没有被指定,默认的取值是1000 (表示正常连接关闭)
+ */
+ code?: number;
+ /**
+ * 一个可读的字符串,表示连接被关闭的原因。这个字符串必须是不长于123字节的UTF-8 文本(不是字符)
+ */
+ reason?: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 监听WebSocket关闭。
+ */
+ onSocketClose(callback: Function): void;
+
+ // # 媒体 #
+
+ /**
+ * 从本地相册选择图片或使用相机拍照。
+ */
+ chooseImage(obj: {
+ /**
+ * 最多可以选择的图片张数,默认9
+ */
+ count?: number;
+ /**
+ * original 原图,compressed 压缩图,默认二者都有
+ */
+ sizeType?: string[];
+ /**
+ * album 从相册选图,camera 使用相机,默认二者都有
+ */
+ sourceType?: string[];
+ /**
+ * 成功则返回图片的本地文件路径列表 tempFilePaths
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 预览图片。
+ */
+ previewImage(obj: {
+ /**
+ * 当前显示图片的链接,不填则默认为 urls 的第一张
+ */
+ current?: string;
+ /**
+ * 需要预览的图片链接列表
+ */
+ urls: string[];
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 获取图片信息
+ */
+ getImageInfo(obj: {
+ /**
+ * 图片的路径,可以是相对路径,临时文件路径,存储文件路径,网络图片路径
+ */
+ src: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ saveImageToPhotosAlbum(obj: {
+ /**
+ * 图片文件路径,可以是临时文件路径也可以是永久文件路径,不支持网络图片路径
+ */
+ filePath: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 开始录音。当主动调用wx.stopRecord,或者录音超过1分钟时自动结束录音,返回录音文件的临时文件路径。当用户离开小程序时,此接口无法调用。
+ */
+ startRecord(obj: {
+ /**
+ * 录音成功后调用,返回录音文件的临时文件路径,res = {tempFilePath: '录音文件的临时路径'}
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 主动调用停止录音。
+ */
+ stopRecord(): void;
+
+ /**
+ * 开始播放语音,同时只允许一个语音文件正在播放,如果前一个语音文件还没播放完,将中断前一个语音播放。
+ */
+ playVoice(obj: {
+ /**
+ * 需要播放的语音文件的文件路径
+ */
+ filePath: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 暂停正在播放的语音。再次调用wx.playVoice播放同一个文件时,会从暂停处开始播放。如果想从头开始播放,需要先调用 wx.stopVoice。
+ */
+ pauseVoice(): void;
+
+ /**
+ * 结束播放语音。
+ */
+ stopVoice(): void;
+
+ /**
+ * 获取后台音乐播放状态。
+ */
+ getBackgroundAudioPlayerState(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 使用后台播放器播放音乐,对于微信客户端来说,只能同时有一个后台音乐在播放。当用户离开小程序后,音乐将暂停播放;当用户点击“显示在聊天顶部”时,音乐不会暂停播放;当用户在其他小程序占用了音乐播放器,原有小程序内的音乐将停止播放。
+ */
+ playBackgroundAudio(obj: {
+ /**
+ * 音乐链接,目前支持的格式有 m4a, aac, mp3, wav
+ */
+ dataUrl: string;
+ /**
+ * 音乐标题
+ */
+ title?: string;
+ /**
+ * 封面URL
+ */
+ coverImgUrl?: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 暂停播放音乐。
+ */
+ pauseBackgroundAudio(): void;
+
+ /**
+ * 控制音乐播放进度。
+ */
+ seekBackgroundAudio(obj: {
+ /**
+ * 音乐位置,单位:秒
+ */
+ position: number;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 停止播放音乐。
+ */
+ stopBackgroundAudio(): void;
+
+ /**
+ * 监听音乐播放。
+ */
+ onBackgroundAudioPlay(callback: Function): void;
+
+ /**
+ * 监听音乐暂停。
+ */
+ onBackgroundAudioPause(callback: Function): void;
+
+ /**
+ * 监听音乐停止。
+ */
+ onBackgroundAudioStop(callback: Function): void;
+
+ getBackgroundAudioManager(): void;
+
+ /**
+ * 创建并返回 audio 上下文 audioContext 对象
+ */
+ createAudioContext(audioId: string): IAudioContext;
+
+ /**
+ * 拍摄视频或从手机相册中选视频,返回视频的临时文件路径。
+ */
+ chooseVideo(obj: {
+ /**
+ * album 从相册选视频,camera 使用相机拍摄,默认为:['album', 'camera']
+ */
+ sourceType?: string[];
+ /**
+ * 拍摄视频最长拍摄时间,单位秒。最长支持 60 秒
+ */
+ maxDuration?: number;
+ /**
+ * 默认调起的为前置还是后置摄像头。front: 前置,back: 后置,默认 back
+ */
+ camera?: string;
+ /**
+ * 接口调用成功,返回视频文件的临时文件路径,详见返回参数说明
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ saveVideoToPhotosAlbum(obj: {
+ /**
+ * 视频文件路径,可以是临时文件路径也可以是永久文件路径
+ */
+ filePath: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 创建并返回 video 上下文 videoContext 对象
+ */
+ createVideoContext(videoId: string): IVideoContext;
+
+ // # 文件 #
+
+ /**
+ * 保存文件到本地。
+ */
+ saveFile(obj: {
+ /**
+ * 需要保存的文件的临时路径
+ */
+ tempFilePath: string;
+ /**
+ * 返回文件的保存路径,res = {savedFilePath: '文件的保存路径'}
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 获取本地已保存的文件列表
+ */
+ getSavedFileList(obj: {
+ /**
+ * 接口调用成功的回调函数,返回结果见success返回参数说明
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 获取本地文件的文件信息。此接口只能用于获取已保存到本地的文件,若需要获取临时文件信息,请使用 wx.getFileInfo 接口。
+ */
+ getSavedFileInfo(obj: {
+ /**
+ * 文件路径
+ */
+ filePath: string;
+ /**
+ * 接口调用成功的回调函数,返回结果见success返回参数说明
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 删除本地存储的文件
+ */
+ removeSavedFile(obj: {
+ /**
+ * 需要删除的文件路径
+ */
+ filePath: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 新开页面打开文档,支持格式:doc, xls, ppt, pdf, docx, xlsx, pptx
+ */
+ openDocument(obj: {
+ /**
+ * 文件路径,可通过 downFile 获得
+ */
+ filePath: string;
+ /**
+ * 文件类型,指定文件类型打开文件,有效值 doc, xls, ppt, pdf, docx, xlsx, pptx
+ */
+ fileType?: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getFileInfo(obj: {
+ /**
+ * 本地文件路径
+ */
+ filePath: string;
+ /**
+ * 计算文件摘要的算法,默认值 md5,有效值:md5,sha1
+ */
+ digestAlgorithm?: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ // # 数据缓存 #
+
+ /**
+ * 将数据存储在本地缓存中指定的 key 中,会覆盖掉原来该 key 对应的内容,这是一个异步接口。
+ */
+ setStorage(obj: {
+ /**
+ * 本地缓存中的指定的 key
+ */
+ key: string;
+ /**
+ * 需要存储的内容
+ */
+ data: any;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 将 data 存储在本地缓存中指定的 key 中,会覆盖掉原来该 key 对应的内容,这是一个同步接口。
+ */
+ setStorageSync(key: string, data: any, ): void;
+
+ /**
+ * 从本地缓存中异步获取指定 key 对应的内容。
+ */
+ getStorage(obj: {
+ /**
+ * 本地缓存中的指定的 key
+ */
+ key: string;
+ /**
+ * 接口调用的回调函数,res = {data: key对应的内容}
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 从本地缓存中同步获取指定 key 对应的内容。
+ */
+ getStorageSync(key: string): void;
+
+ /**
+ * 异步获取当前storage的相关信息
+ */
+ getStorageInfo(obj: {
+ /**
+ * 接口调用的回调函数,详见返回参数说明
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 同步获取当前storage的相关信息
+ */
+ getStorageInfoSync(): void;
+
+ /**
+ * 从本地缓存中异步移除指定 key 。
+ */
+ removeStorage(obj: {
+ /**
+ * 本地缓存中的指定的 key
+ */
+ key: string;
+ /**
+ * 接口调用的回调函数
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 从本地缓存中同步移除指定 key 。
+ */
+ removeStorageSync(key: string): void;
+
+ /**
+ * 清理本地数据缓存。
+ */
+ clearStorage(): void;
+
+ /**
+ * 同步清理本地数据缓存
+ */
+ clearStorageSync(): void;
+
+ // # 位置 #
+
+ /**
+ * 获取当前的地理位置、速度。当用户离开小程序后,此接口无法调用;当用户点击“显示在聊天顶部”时,此接口可继续调用。
+ */
+ getLocation(obj: {
+ /**
+ * 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于wx.openLocation的坐标
+ */
+ type?: string;
+ /**
+ * 接口调用成功的回调函数,返回内容详见返回参数说明。
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 打开地图选择位置
+ */
+ chooseLocation(obj: {
+ /**
+ * 接口调用成功的回调函数,返回内容详见返回参数说明。
+ */
+ success: Function;
+ /**
+ * 用户取消时调用
+ */
+ cancel?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 使用微信内置地图查看位置
+ */
+ openLocation(obj: {
+ /**
+ * 纬度,范围为-90~90,负数表示南纬
+ */
+ latitude: number;
+ /**
+ * 经度,范围为-180~180,负数表示西经
+ */
+ longitude: number;
+ /**
+ * 缩放比例,范围5~18,默认为18
+ */
+ scale?: number;
+ /**
+ * 位置名
+ */
+ name?: string;
+ /**
+ * 地址的详细说明
+ */
+ address?: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 创建并返回 map 上下文 mapContext 对象
+ */
+ createMapContext(mapId: string): IMapContext;
+
+ // # 设备 #
+
+ /**
+ * 获取系统信息。
+ */
+ getSystemInfo(obj: {
+ /**
+ * 接口调用成功的回调
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 获取系统信息同步接口
+ */
+ getSystemInfoSync(): void;
+
+ /**
+ * 获取网络类型。
+ */
+ getNetworkType(obj: {
+ /**
+ * 接口调用成功,返回网络类型 networkType
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ onNetworkStatusChange(callback: Function): void;
+
+ setScreenBrightness(obj: {
+ /**
+ * 屏幕亮度值,范围 0~1,0 最暗,1 最亮
+ */
+ value: number;
+ /**
+ * 接口调用成功
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getScreenBrightness(obj: {
+ /**
+ * 接口调用成功
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ vibrateLong(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ vibrateShort(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 监听加速度数据,频率:5次/秒,接口调用后会自动开始监听,可使用 wx.stopAccelerometer 停止监听。
+ */
+ onAccelerometerChange(callback: Function): void;
+
+ startAccelerometer(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ stopAccelerometer(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 监听罗盘数据,频率:5次/秒,接口调用后会自动开始监听,可使用wx.stopCompass停止监听。
+ */
+ onCompassChange(callback: Function): void;
+
+ startCompass(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ stopCompass(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ makePhoneCall(obj: {
+ /**
+ * 需要拨打的电话号码
+ */
+ phoneNumber: string;
+ /**
+ * 接口调用成功的回调
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 调起客户端扫码界面,扫码成功后返回对应的结果
+ */
+ scanCode(obj: {
+ /**
+ * 是否只能从相机扫码,不允许从相册选择图片
+ */
+ onlyFromCamera?: boolean;
+ /**
+ * 接口调用成功的回调函数,返回内容详见返回参数说明。
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ setClipboardData(obj: {
+ /**
+ * 需要设置的内容
+ */
+ data: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getClipboardData(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ openBluetoothAdapter(obj: {
+ /**
+ * 成功则返回成功初始化信息
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ closeBluetoothAdapter(obj: {
+ /**
+ * 成功则返回成功关闭模块信息
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getBluetoothAdapterState(obj: {
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ onBluetoothAdapterStateChange(callback: Function): void;
+
+ startBluetoothDevicesDiscovery(obj: {
+ /**
+ * 蓝牙设备主 service 的 uuid 列表
+ */
+ services?: Array;
+ /**
+ * 是否允许重复上报同一设备, 如果允许重复上报,则onDeviceFound 方法会多次上报同一设备,但是 RSSI 值会有不同
+ */
+ allowDuplicatesKey?: boolean;
+ /**
+ * 上报设备的间隔,默认为0,意思是找到新设备立即上报,否则根据传入的间隔上报
+ */
+ interval?: number;
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ stopBluetoothDevicesDiscovery(obj: {
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getBluetoothDevices(obj: {
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ onBluetoothDeviceFound(callback: Function): void;
+
+ getConnectedBluetoothDevices(obj: {
+ /**
+ * 蓝牙设备主 service 的 uuid 列表
+ */
+ services: Array;
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ createBLEConnection(obj: {
+ /**
+ * 蓝牙设备 id,参考 getDevices 接口
+ */
+ deviceId: string;
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ closeBLEConnection(obj: {
+ /**
+ * 蓝牙设备 id,参考 getDevices 接口
+ */
+ deviceId: string;
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getBLEDeviceServices(obj: {
+ /**
+ * 蓝牙设备 id,参考 getDevices 接口
+ */
+ deviceId: string;
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getBLEDeviceCharacteristics(obj: {
+ /**
+ * 蓝牙设备 id,参考 device 对象
+ */
+ deviceId: string;
+ /**
+ * 蓝牙服务 uuid
+ */
+ serviceId: string;
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ readBLECharacteristicValue(obj: {
+ /**
+ * 蓝牙设备 id,参考 device 对象
+ */
+ deviceId: string;
+ /**
+ * 蓝牙特征值对应服务的 uuid
+ */
+ serviceId: string;
+ /**
+ * 蓝牙特征值的 uuid
+ */
+ characteristicId: string;
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ writeBLECharacteristicValue(obj: {
+ /**
+ * 蓝牙设备 id,参考 device 对象
+ */
+ deviceId: string;
+ /**
+ * 蓝牙特征值对应服务的 uuid
+ */
+ serviceId: string;
+ /**
+ * 蓝牙特征值的 uuid
+ */
+ characteristicId: string;
+ /**
+ * 蓝牙设备特征值对应的二进制值(注意:vConsole 无法打印出 ArrayBuffer 类型数据)
+ */
+ value: undefined;
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ notifyBLECharacteristicValueChange(obj: {
+ /**
+ * 蓝牙设备 id,参考 device 对象
+ */
+ deviceId: string;
+ /**
+ * 蓝牙特征值对应服务的 uuid
+ */
+ serviceId: string;
+ /**
+ * 蓝牙特征值的 uuid
+ */
+ characteristicId: string;
+ /**
+ * true: 启用 notify; false: 停用 notify
+ */
+ state: boolean;
+ /**
+ * 成功则返回本机蓝牙适配器状态
+ */
+ success: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ onBLEConnectionStateChange(callback: Function): void;
+
+ onBLECharacteristicValueChange(callback: Function): void;
+
+ startBeaconDiscovery(obj: {
+ /**
+ * iBeacon设备广播的 uuids
+ */
+ uuids: string[];
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ stopBeaconDiscovery(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getBeacons(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ onBeaconUpdate(callback: Function): void;
+
+ onBeaconServiceChange(callback: Function): void;
+
+ onUserCaptureScreen(callback: Function): void;
+
+ addPhoneContact(obj: {
+ /**
+ * 头像本地文件路径
+ */
+ photoFilePath?: string;
+ /**
+ * 昵称
+ */
+ nickName?: string;
+ /**
+ * 姓氏
+ */
+ lastName?: string;
+ /**
+ * 中间名
+ */
+ middleName?: string;
+ /**
+ * 名字
+ */
+ firstName: string;
+ /**
+ * 备注
+ */
+ remark?: string;
+ /**
+ * 手机号
+ */
+ mobilePhoneNumber?: string;
+ /**
+ * 微信号
+ */
+ weChatNumber?: string;
+ /**
+ * 联系地址国家
+ */
+ addressCountry?: string;
+ /**
+ * 联系地址省份
+ */
+ addressState?: string;
+ /**
+ * 联系地址城市
+ */
+ addressCity?: string;
+ /**
+ * 联系地址街道
+ */
+ addressStreet?: string;
+ /**
+ * 联系地址邮政编码
+ */
+ addressPostalCode?: string;
+ /**
+ * 公司
+ */
+ organization?: string;
+ /**
+ * 职位
+ */
+ title?: string;
+ /**
+ * 工作传真
+ */
+ workFaxNumber?: string;
+ /**
+ * 工作电话
+ */
+ workPhoneNumber?: string;
+ /**
+ * 公司电话
+ */
+ hostNumber?: string;
+ /**
+ * 电子邮件
+ */
+ email?: string;
+ /**
+ * 网站
+ */
+ url?: string;
+ /**
+ * 工作地址国家
+ */
+ workAddressCountry?: string;
+ /**
+ * 工作地址省份
+ */
+ workAddressState?: string;
+ /**
+ * 工作地址城市
+ */
+ workAddressCity?: string;
+ /**
+ * 工作地址街道
+ */
+ workAddressStreet?: string;
+ /**
+ * 工作地址邮政编码
+ */
+ workAddressPostalCode?: string;
+ /**
+ * 住宅传真
+ */
+ homeFaxNumber?: string;
+ /**
+ * 住宅电话
+ */
+ homePhoneNumber?: string;
+ /**
+ * 住宅地址国家
+ */
+ homeAddressCountry?: string;
+ /**
+ * 住宅地址省份
+ */
+ homeAddressState?: string;
+ /**
+ * 住宅地址城市
+ */
+ homeAddressCity?: string;
+ /**
+ * 住宅地址街道
+ */
+ homeAddressStreet?: string;
+ /**
+ * 住宅地址邮政编码
+ */
+ homeAddressPostalCode?: string;
+ /**
+ * 接口调用成功
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ // # 界面 #
+
+ /**
+ * 显示消息提示框
+ */
+ showToast(obj: {
+ /**
+ * 提示的内容
+ */
+ title: string;
+ /**
+ * 图标,有效值 "success", "loading"
+ */
+ icon?: string;
+ /**
+ * 自定义图标的本地路径,image 的优先级高于 icon
+ */
+ image?: string;
+ /**
+ * 提示的延迟时间,单位毫秒,默认:1500
+ */
+ duration?: number;
+ /**
+ * 是否显示透明蒙层,防止触摸穿透,默认:false
+ */
+ mask?: boolean;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ showLoading(obj: {
+ /**
+ * 提示的内容
+ */
+ title: string;
+ /**
+ * 是否显示透明蒙层,防止触摸穿透,默认:false
+ */
+ mask?: boolean;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 隐藏消息提示框
+ */
+ hideToast(): void;
+
+ hideLoading(): void;
+
+ /**
+ * 显示模态弹窗
+ */
+ showModal(obj: {
+ /**
+ * 提示的标题
+ */
+ title: string;
+ /**
+ * 提示的内容
+ */
+ content: string;
+ /**
+ * 是否显示取消按钮,默认为 true
+ */
+ showCancel?: boolean;
+ /**
+ * 取消按钮的文字,默认为"取消",最多 4 个字符
+ */
+ cancelText?: string;
+ /**
+ * 取消按钮的文字颜色,默认为"#000000"
+ */
+ cancelColor?: undefined;
+ /**
+ * 确定按钮的文字,默认为"确定",最多 4 个字符
+ */
+ confirmText?: string;
+ /**
+ * 确定按钮的文字颜色,默认为"#3CC51F"
+ */
+ confirmColor?: undefined;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 显示操作菜单
+ */
+ showActionSheet(obj: {
+ /**
+ * 按钮的文字数组,数组长度最大为6个
+ */
+ itemList: undefined;
+ /**
+ * 按钮的文字颜色,默认为"#000000"
+ */
+ itemColor?: undefined;
+ /**
+ * 接口调用成功的回调函数,详见返回参数说明
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ setTopBarText(obj: {
+ /**
+ * 置顶栏文字内容
+ */
+ text: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 动态设置当前页面的标题。
+ */
+ setNavigationBarTitle(obj: {
+ /**
+ * 页面标题
+ */
+ title: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 在当前页面显示导航条加载动画。
+ */
+ showNavigationBarLoading(): void;
+
+ /**
+ * 隐藏导航条加载动画。
+ */
+ hideNavigationBarLoading(): void;
+
+ /**
+ * 保留当前页面,跳转到应用内的某个页面,使用wx.navigateBack可以返回到原页面。
+ */
+ navigateTo(obj: {
+ /**
+ * 需要跳转的应用内非 tabBar 的页面的路径 , 路径后可以带参数。参数与路径之间使用?分隔,参数键与参数值用=相连,不同参数用&分隔;如 'path?key=value&key2=value2'
+ */
+ url: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 关闭当前页面,跳转到应用内的某个页面。
+ */
+ redirectTo(obj: {
+ /**
+ * 需要跳转的应用内非 tabBar 的页面的路径,路径后可以带参数。参数与路径之间使用?分隔,参数键与参数值用=相连,不同参数用&分隔;如 'path?key=value&key2=value2'
+ */
+ url: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ reLaunch(obj: {
+ /**
+ * 需要跳转的应用内页面路径 , 路径后可以带参数。参数与路径之间使用?分隔,参数键与参数值用=相连,不同参数用&分隔;如 'path?key=value&key2=value2',如果跳转的页面路径是 tabBar 页面则不能带参数
+ */
+ url: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面
+ */
+ switchTab(obj: {
+ /**
+ * 需要跳转的 tabBar 页面的路径(需在 app.json 的 tabBar 字段定义的页面),路径后不能带参数
+ */
+ url: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 关闭当前页面,返回上一页面或多级页面。可通过 getCurrentPages()) 获取当前的页面栈,决定需要返回几层。
+ */
+ navigateBack(obj: {
+ /**
+ * 返回的页面数,如果 delta 大于现有页面数,则返回到首页。
+ */
+ delta?: number;
+ }): void;
+
+ /**
+ * 创建一个动画实例animation。调用实例的方法来描述动画。最后通过动画实例的export方法导出动画数据传递给组件的animation属性。
+ */
+ createAnimation(obj: {
+ /**
+ * 400
+ */
+ duration?: number;
+ /**
+ * "linear"
+ */
+ timingFunction?: string;
+ /**
+ * 0
+ */
+ delay?: number;
+ /**
+ * "50% 50% 0"
+ */
+ transformOrigin?: string;
+ }): IAnimation;
+
+ pageScrollTo(obj: {
+ /**
+ * 滚动到页面的目标位置(单位px)
+ */
+ scrollTop: number;
+ }): void;
+
+ /**
+ * 创建 canvas 绘图上下文(指定 canvasId).Tip: 需要指定 canvasId,该绘图上下文只作用于对应的
+ */
+ createCanvasContext(canvasId: string): ICanvasContext;
+
+ /**
+ * 把当前画布的内容导出生成图片,并返回文件路径
+ */
+ canvasToTempFilePath(canvasId: string): void;
+
+ startPullDownRefresh(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 停止当前页面下拉刷新。
+ */
+ stopPullDownRefresh(): void;
+
+ // # WXML节点信息 #
+
+ // # 第三方平台 #
+
+ getExtConfig(obj: {
+ /**
+ * 返回第三方平台自定义的数据
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getExtConfigSync(): void;
+
+ // # 开放接口 #
+
+ /**
+ * 调用接口获取登录凭证(code)进而换取用户登录态信息,包括用户的唯一标识(openid) 及本次登录的 会话密钥(session_key)。用户数据的加解密通讯需要依赖会话密钥完成。
+ */
+ login(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 通过上述接口获得的用户登录态拥有一定的时效性。用户越久未使用小程序,用户登录态越有可能失效。反之如果用户一直在使用小程序,则用户登录态一直保持有效。具体时效逻辑由微信维护,对开发者透明。开发者只需要调用wx.checkSession接口检测当前用户登录态是否有效。登录态过期后开发者可以再调用wx.login获取新的用户登录态。
+ */
+ checkSession(obj: {
+ /**
+ * 接口调用成功的回调函数,登录态未过期
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数,登录态已过期
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ authorize(obj: {
+ /**
+ * 需要获取权限的scope,详见 scope 列表
+ */
+ scope: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 获取用户信息,withCredentials 为 true 时需要先调用 wx.login 接口。
+ */
+ getUserInfo(obj: {
+ /**
+ * 是否带上登录态信息
+ */
+ withCredentials?: boolean;
+ /**
+ * 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文
+ */
+ lang?: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ /**
+ * 发起微信支付。
+ */
+ requestPayment(obj: {
+ /**
+ * 时间戳从1970年1月1日00:00:00至今的秒数,即当前的时间
+ */
+ timeStamp: string;
+ /**
+ * 随机字符串,长度为32个字符以下。
+ */
+ nonceStr: string;
+ /**
+ * 统一下单接口返回的 prepay_id 参数值,提交格式如:prepay_id=*
+ */
+ package: string;
+ /**
+ * 签名算法,暂支持 MD5
+ */
+ signType: string;
+ /**
+ * 签名,具体签名方案参见小程序支付接口文档;
+ */
+ paySign: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ chooseAddress(obj: {
+ /**
+ * 返回用户选择的收货地址信息
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ addCard(obj: {
+ /**
+ * 需要添加的卡券列表,列表内对象说明请参见请求对象说明
+ */
+ cardList: undefined;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ openCard(obj: {
+ /**
+ * 需要打开的卡券列表,列表内参数详见openCard 请求对象说明
+ */
+ cardList: undefined;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ openSetting(obj: {
+ /**
+ * 接口调用成功的回调函数,返回内容详见返回参数说明。
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getSetting(obj: {
+ /**
+ * 接口调用成功的回调函数,返回内容详见返回参数说明。
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ getWeRunData(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ navigateToMiniProgram(obj: {
+ /**
+ * 要打开的小程序 appId
+ */
+ appId: string;
+ /**
+ * 打开的页面路径,如果为空则打开首页
+ */
+ path?: string;
+ /**
+ * 需要传递给目标小程序的数据,目标小程序可在 App.onLaunch(),App.onShow() 中获取到这份数据。详情
+ */
+ extraData?: any;
+ /**
+ * 要打开的小程序版本,有效值 develop(开发版),trial(体验版),release(正式版) ,仅在当前小程序为开发版或体验版时此参数有效;如果当前小程序是体验版或正式版,则打开的小程序必定是正式版。默认值 release
+ */
+ envVersion?: string;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ chooseInvoiceTitle(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ checkIsSupportSoterAuthentication(obj: {
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+ // # 数据 #
+
+ /**
+ * 自定义分析数据上报接口。使用前,需要在小程序管理后台自定义分析中新建事件,配置好事件名与字段。
+ */
+ reportAnalytics(eventName: string, data: string, ): void;
+
+ // # 拓展接口 #
+
+ arrayBufferToBase64(arrayBuffer: string): void;
+
+ base64ToArrayBuffer(base64: string): void;
+
+ // # 调试接口 #
+
+ setEnableDebug(obj: {
+ /**
+ * 是否打开调试
+ */
+ enableDebug: boolean;
+ /**
+ * 接口调用成功的回调函数
+ */
+ success?: Function;
+ /**
+ * 接口调用失败的回调函数
+ */
+ fail?: Function;
+ /**
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
+ */
+ complete?: Function;
+ }): void;
+
+}
\ No newline at end of file
diff --git a/src/openeuler/utils/app-ajax.js b/src/openeuler/utils/app-ajax.js
index 43a2bb1..25b11cd 100644
--- a/src/openeuler/utils/app-ajax.js
+++ b/src/openeuler/utils/app-ajax.js
@@ -6,6 +6,33 @@ const appSession = require('./app-session.js');
const underscore = require('./underscore-extend.js');
const servicesConfig = require('../config/services-config.js');
const CONSTANTS = require('../config/constants.js');
+const RETRY = require('./retry-ajax.js');
+
+const aa = new RETRY({
+ url: 'REFRESH',
+ unauthorizedCode: 401,
+ getRefreshToken: () => '555',
+ onSuccess: (res) => {
+ const accessToken = JSON.parse(res.data).accessToken;
+ localStorage.setItem(LOCAL_ACCESS_KEY, accessToken);
+ },
+ onError: () => {
+ console.log('refreshToken 过期了,乖乖去登录页');
+ },
+});
+console.log(aa);
+
+let remoteMethods = {
+ refreshToken: function (_callback) {
+ appAjax.postJson({
+ type: 'POST',
+ service: 'REFRESH',
+ success: function (ret) {
+ _callback && _callback(ret);
+ },
+ });
+ },
+};
/**
* 获取service
@@ -22,7 +49,6 @@ const _getInterfaceUrl = function (params) {
params.otherParams[key]
);
}
-
return interfaceUrl;
};
@@ -38,6 +64,42 @@ const _addUrlParam = function (data) {
return postData;
};
+const loginQueue = [];
+let isLoginning = false;
+
+/**
+ * 获取sessionId
+ * 参数:undefined
+ * 返回值:[promise]sessionId
+ */
+function getSessionId() {
+ return new Promise((res, rej) => {
+ // 本地sessionId缺失,重新登录
+ if (!sessionId) {
+ loginQueue.push({ res, rej });
+
+ if (!isLoginning) {
+ isLoginning = true;
+
+ login()
+ .then((r1) => {
+ isLoginning = false;
+ while (loginQueue.length) {
+ loginQueue.shift().res(r1);
+ }
+ })
+ .catch((err) => {
+ isLoginning = false;
+ while (loginQueue.length) {
+ loginQueue.shift().rej(err);
+ }
+ });
+ }
+ } else {
+ res(sessionId);
+ }
+ });
+}
const appAjax = {
/**
@@ -70,9 +132,9 @@ const appAjax = {
// rest请求路径
ajaxParams['url'] = CONSTANTS['SERVICE_URL'] + _getInterfaceUrl(ajaxParams);
if (
- (ajaxParams.type == 'GET' || ajaxParams.type == 'DELETE') &&
+ (ajaxParams.type === 'GET' || ajaxParams.type === 'DELETE') &&
ajaxParams.data &&
- typeof ajaxParams.data == 'object'
+ typeof ajaxParams.data === 'object'
) {
ajaxParams['url'] = ajaxParams['url'] + _addUrlParam(ajaxParams.data);
}
@@ -90,10 +152,6 @@ const appAjax = {
method: ajaxParams['type'] || 'POST',
data: ajaxParams.data,
success: function (res) {
- // if (!timer && wx.getStorageSync(CONSTANTS.APP_USERINFO_SESSION)) {
- // timer = setInterval(() => {
- // }, 1000 * 6 * 10);
- // }
if (res?.data?.access && wx.getStorageSync(CONSTANTS.APP_USERINFO_SESSION)) {
let data = wx.getStorageSync(CONSTANTS.APP_USERINFO_SESSION);
data.access = res.data.access;
@@ -102,12 +160,9 @@ const appAjax = {
if (res.statusCode === 401) {
wx.removeStorageSync('_app_userinfo_session');
ajaxParams.success(0, res);
- const pages = getCurrentPages(); // 当前页面
- if (pages[0].route !== '/pages/auth/auth') {
- wx.navigateTo({
- url: '/pages/auth/auth',
- });
- }
+ wx.navigateTo({
+ url: '/pages/auth/auth',
+ });
return;
}
if (res.statusCode.toString()[0] != 2) {
diff --git a/src/openeuler/utils/app-user.js b/src/openeuler/utils/app-user.js
index 823211d..5dbfdbc 100644
--- a/src/openeuler/utils/app-user.js
+++ b/src/openeuler/utils/app-user.js
@@ -161,6 +161,7 @@ const appUser = {
userInfo.gitee = ret.gitee_name;
userInfo.level = ret.level;
userInfo.nickName = ret.nickname;
+ userInfo.avatarUrl = ret.avatar;
userInfo.eventLevel = ret.activity_level;
wx.setStorageSync(constants.APP_USERINFO_SESSION, userInfo);
}
diff --git a/src/openeuler/utils/page-mixin.js b/src/openeuler/utils/page-mixin.js
index ebbd6df..b88deb8 100644
--- a/src/openeuler/utils/page-mixin.js
+++ b/src/openeuler/utils/page-mixin.js
@@ -94,7 +94,7 @@ let $pageMixin = function (pageConfig) {
let rewriteList = [
'onLoad', // 生命周期函数--监听页面加载
// 'onReady', // 生命周期函数--监听页面初次渲染完成
- // 'onShow', // 生命周期函数--监听页面显示
+ // 'onShow', // 生命周期函数--监听页面显示
// 'onHide', // 生命周期函数--监听页面隐藏
// 'onUnload', // 生命周期函数--监听页面卸载
// 'onPullDownRefresh', // 页面相关事件处理函数--监听用户下拉动作
diff --git a/src/openeuler/utils/retry-ajax.js b/src/openeuler/utils/retry-ajax.js
new file mode 100644
index 0000000..e0c1b9b
--- /dev/null
+++ b/src/openeuler/utils/retry-ajax.js
@@ -0,0 +1,67 @@
+const appAjax = require('./app-ajax');
+
+class ajaxRetry {
+ constructor({ url, getRefreshToken, unauthorizedCode = 401, onSuccess, onError }) {
+ this.url = url;
+ this.getRefreshToken = getRefreshToken;
+ this.unauthorizedCode = unauthorizedCode;
+ this.onSuccess = onSuccess;
+ this.onError = onError;
+ }
+
+ requestWrapper(request) {
+ return new Promise((resolve, reject) => {
+ // 先把请求函数保存下来
+ const requestFn = request;
+ return request()
+ .then(resolve)
+ .catch((err) => {
+ console.log(err);
+ if (err?.status === this.unauthorizedCode && !(err?.config?.url === this.url)) {
+ if (!this.fetchNewTokenPromise) {
+ this.fetchNewTokenPromise = this.fetchNewToken();
+ }
+ this.fetchNewTokenPromise
+ .then(() => {
+ // 获取token成功后,重新执行请求
+ requestFn().then(resolve).catch(reject);
+ })
+ .finally(() => {
+ // 置空
+ this.fetchNewTokenPromise = null;
+ });
+ } else {
+ reject(err);
+ }
+ });
+ });
+ }
+ // 获取token的函数
+ refreshToken() {
+ appAjax.postJson({
+ type: 'POST',
+ service: this.url,
+ success: function () {
+ this.onSuccess;
+ },
+ fail: function () {
+ this.onError();
+ return Promise.reject();
+ },
+ });
+ }
+ // fetchNewToken() {
+ // return new Axios()
+ // .get(this.url, {
+ // headers: {
+ // Authorization: this.getRefreshToken(),
+ // },
+ // })
+ // .then(this.onSuccess)
+ // .catch(() => {
+ // this.onError();
+ // return Promise.reject();
+ // });
+ // }
+}
+module.exports = ajaxRetry;
--
Gitee
From 2d0473cec17c18d6901cc3d6753e28abfebe2a5a Mon Sep 17 00:00:00 2001
From: haml-707 <845831435@qq.com>
Date: Tue, 14 Nov 2023 20:51:07 +0800
Subject: [PATCH 04/10] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9Etoken=20?=
=?UTF-8?q?=E5=88=B7=E6=96=B0=E6=9C=BA=E5=88=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/meeting-list/meeting-list.js | 6 +-
.../package-events/events/event-detail.js | 2 +-
.../package-events/manage/add-member.js | 2 +-
.../package-events/manage/del-member.js | 2 +-
.../package-events/publish/publish.js | 2 +-
.../package-meeting/meeting/detail.js | 4 +-
.../package-meeting/reserve/reserve.js | 1 -
.../package-meeting/sig/add-member.js | 2 +-
.../package-meeting/sig/del-member.js | 2 +-
src/openeuler/package-my/my/qrcode.js | 3 -
src/openeuler/utils/app-ajax.js | 119 ++++++++----------
src/openeuler/utils/app-user.js | 3 +
src/openeuler/utils/retry-ajax.js | 67 ----------
13 files changed, 62 insertions(+), 153 deletions(-)
delete mode 100644 src/openeuler/utils/retry-ajax.js
diff --git a/src/openeuler/components/meeting-list/meeting-list.js b/src/openeuler/components/meeting-list/meeting-list.js
index 234c183..d92002e 100644
--- a/src/openeuler/components/meeting-list/meeting-list.js
+++ b/src/openeuler/components/meeting-list/meeting-list.js
@@ -208,7 +208,7 @@ Component({
tmplIds: ['2xSske0tAcOVKNG9EpBjlb1I-cjPWSZrpwPDTgqAmWI', 'UpxRbZf8Z9QiEPlZeRCgp_MKvvqHlo6tcToY8fToK50'],
success() {
remoteMethods.collect(that.data.id, (res) => {
- if (res.code == 201) {
+ if (res.code == 200) {
that.setData({
'pageParams.page': 1,
});
@@ -258,9 +258,8 @@ Component({
});
},
del: function () {
- console.log(this.data.curMid);
remoteMethods.delMeeting(this.data.curMid, (data) => {
- if (data.code == 204) {
+ if (data.code == 200) {
this.setData({
showDialogDel: false,
'pageParams.page': 1,
@@ -283,7 +282,6 @@ Component({
if (!localMethod.checkLogin()) {
return;
}
- console.log(e.currentTarget.dataset);
this.setData({
curMid: e.currentTarget.dataset.item.mid,
curJoinUrl: e.currentTarget.dataset.item.join_url,
diff --git a/src/openeuler/package-events/events/event-detail.js b/src/openeuler/package-events/events/event-detail.js
index d090d97..bac1e2a 100644
--- a/src/openeuler/package-events/events/event-detail.js
+++ b/src/openeuler/package-events/events/event-detail.js
@@ -207,7 +207,7 @@ Page({
let postData = this.data.info;
postData.schedules = JSON.parse(postData.schedules);
remoteMethods.draftPublish(postData, (res) => {
- if (res.code === 201) {
+ if (res.code === 200) {
wx.redirectTo({
url: '/package-events/publish/success?type=2',
});
diff --git a/src/openeuler/package-events/manage/add-member.js b/src/openeuler/package-events/manage/add-member.js
index fb54727..9ad45b3 100644
--- a/src/openeuler/package-events/manage/add-member.js
+++ b/src/openeuler/package-events/manage/add-member.js
@@ -97,7 +97,7 @@ Page({
ids: this.data.result.join('-'),
};
remoteMethods.addMemberList(postData, function (data) {
- if (data.code === 201) {
+ if (data.code === 200) {
wx.showToast({
title: '操作成功',
icon: 'success',
diff --git a/src/openeuler/package-events/manage/del-member.js b/src/openeuler/package-events/manage/del-member.js
index 1556400..9a92520 100644
--- a/src/openeuler/package-events/manage/del-member.js
+++ b/src/openeuler/package-events/manage/del-member.js
@@ -89,7 +89,7 @@ Page({
ids: this.data.result.join('-'),
};
remoteMethods.delMemberList(postData, function (data) {
- if (data.code === 204) {
+ if (data.code === 200) {
wx.showToast({
title: '操作成功',
icon: 'success',
diff --git a/src/openeuler/package-events/publish/publish.js b/src/openeuler/package-events/publish/publish.js
index cf9b1e6..cc12ada 100644
--- a/src/openeuler/package-events/publish/publish.js
+++ b/src/openeuler/package-events/publish/publish.js
@@ -553,7 +553,7 @@ Page({
return;
}
remoteMethods.addEvents(postData, (res) => {
- if (res.code === 201) {
+ if (res.code === 200) {
wx.redirectTo({
url: '/package-events/publish/success?type=2',
});
diff --git a/src/openeuler/package-meeting/meeting/detail.js b/src/openeuler/package-meeting/meeting/detail.js
index 285a8bd..34cdf52 100644
--- a/src/openeuler/package-meeting/meeting/detail.js
+++ b/src/openeuler/package-meeting/meeting/detail.js
@@ -109,9 +109,9 @@ Page({
} else {
wx.requestSubscribeMessage({
tmplIds: ['2xSske0tAcOVKNG9EpBjlb1I-cjPWSZrpwPDTgqAmWI', 'UpxRbZf8Z9QiEPlZeRCgp_MKvvqHlo6tcToY8fToK50'],
- success(res) {
+ success() {
remoteMethods.collect(that.data.id, function (res) {
- if (res.code == 201) {
+ if (res.code == 200) {
that.setData({
collection_id: res.collection_id || '',
});
diff --git a/src/openeuler/package-meeting/reserve/reserve.js b/src/openeuler/package-meeting/reserve/reserve.js
index a4d4093..ad40269 100644
--- a/src/openeuler/package-meeting/reserve/reserve.js
+++ b/src/openeuler/package-meeting/reserve/reserve.js
@@ -202,7 +202,6 @@ Page({
wx.requestSubscribeMessage({
tmplIds: ['2xSske0tAcOVKNG9EpBjlb1I-cjPWSZrpwPDTgqAmWI'],
success() {
- console.log(that.data.emaillist);
that.data.emaillist.replace(/;/g, ';');
let email = null;
if (that.data.sendDev) {
diff --git a/src/openeuler/package-meeting/sig/add-member.js b/src/openeuler/package-meeting/sig/add-member.js
index 271b3ce..02039f4 100644
--- a/src/openeuler/package-meeting/sig/add-member.js
+++ b/src/openeuler/package-meeting/sig/add-member.js
@@ -112,7 +112,7 @@ Page({
group_id: this.data.sigId,
};
remoteMethods.addMemberList(postData, function (data) {
- if (data.code === 201) {
+ if (data.code === 200) {
wx.showToast({
title: '操作成功',
icon: 'success',
diff --git a/src/openeuler/package-meeting/sig/del-member.js b/src/openeuler/package-meeting/sig/del-member.js
index ffc970a..375273a 100644
--- a/src/openeuler/package-meeting/sig/del-member.js
+++ b/src/openeuler/package-meeting/sig/del-member.js
@@ -109,7 +109,7 @@ Page({
group_id: this.data.sigId,
};
remoteMethods.delMemberList(postData, function (data) {
- if (data.code === 204) {
+ if (data.code === 200) {
wx.showToast({
title: '操作成功',
icon: 'success',
diff --git a/src/openeuler/package-my/my/qrcode.js b/src/openeuler/package-my/my/qrcode.js
index dcda18e..a1dd63c 100644
--- a/src/openeuler/package-my/my/qrcode.js
+++ b/src/openeuler/package-my/my/qrcode.js
@@ -55,9 +55,6 @@ Page({
content: '请尝试点击右上角 “...” => “设置” 同意添加到相册后再保存~',
});
},
- complete(res) {
- console.log(res);
- },
});
},
});
diff --git a/src/openeuler/utils/app-ajax.js b/src/openeuler/utils/app-ajax.js
index 25b11cd..218b2ce 100644
--- a/src/openeuler/utils/app-ajax.js
+++ b/src/openeuler/utils/app-ajax.js
@@ -2,31 +2,18 @@
* 请求方法
*/
-const appSession = require('./app-session.js');
const underscore = require('./underscore-extend.js');
const servicesConfig = require('../config/services-config.js');
const CONSTANTS = require('../config/constants.js');
-const RETRY = require('./retry-ajax.js');
-
-const aa = new RETRY({
- url: 'REFRESH',
- unauthorizedCode: 401,
- getRefreshToken: () => '555',
- onSuccess: (res) => {
- const accessToken = JSON.parse(res.data).accessToken;
- localStorage.setItem(LOCAL_ACCESS_KEY, accessToken);
- },
- onError: () => {
- console.log('refreshToken 过期了,乖乖去登录页');
- },
-});
-console.log(aa);
let remoteMethods = {
- refreshToken: function (_callback) {
+ refreshToken: function (refresh, _callback) {
appAjax.postJson({
type: 'POST',
service: 'REFRESH',
+ data: {
+ refresh,
+ },
success: function (ret) {
_callback && _callback(ret);
},
@@ -61,46 +48,32 @@ const _addUrlParam = function (data) {
postData += '&' + key + '=' + data[key];
}
}
-
return postData;
};
-const loginQueue = [];
-let isLoginning = false;
-/**
- * 获取sessionId
- * 参数:undefined
- * 返回值:[promise]sessionId
- */
-function getSessionId() {
- return new Promise((res, rej) => {
- // 本地sessionId缺失,重新登录
- if (!sessionId) {
- loginQueue.push({ res, rej });
+let messageQueue = [];
+let isRefreshing = false;
- if (!isLoginning) {
- isLoginning = true;
+const handleSuccessfulRefresh = function (newTokens, userData) {
+ userData.access = newTokens.access;
+ userData.refresh = newTokens.refresh;
+ wx.setStorageSync(CONSTANTS.APP_USERINFO_SESSION, userData);
+ processMessageQueue();
+ isRefreshing = false;
+};
- login()
- .then((r1) => {
- isLoginning = false;
- while (loginQueue.length) {
- loginQueue.shift().res(r1);
- }
- })
- .catch((err) => {
- isLoginning = false;
- while (loginQueue.length) {
- loginQueue.shift().rej(err);
- }
- });
- }
- } else {
- res(sessionId);
- }
- });
-}
+const clearUserDataAndNavigate = function () {
+ messageQueue = [];
+ wx.removeStorageSync('_app_userinfo_session');
+ isRefreshing = false;
+ wx.navigateTo({ url: '/pages/auth/auth' });
+};
+const processMessageQueue = function () {
+ while (messageQueue.length) {
+ appAjax.postJson(messageQueue.shift());
+ }
+};
const appAjax = {
/**
* 提交请求
@@ -123,7 +96,9 @@ const appAjax = {
loadingText: '加载中...', // 加载的提示语
autoCloseWait: true, // 自动关闭菊花
headers: {
- Authorization: appSession.getToken() ? 'Bearer ' + appSession.getToken() : '',
+ Authorization: wx.getStorageSync(CONSTANTS.APP_USERINFO_SESSION).access
+ ? 'Bearer ' + wx.getStorageSync(CONSTANTS.APP_USERINFO_SESSION).access
+ : '',
},
isAsync: true,
};
@@ -152,28 +127,40 @@ const appAjax = {
method: ajaxParams['type'] || 'POST',
data: ajaxParams.data,
success: function (res) {
- if (res?.data?.access && wx.getStorageSync(CONSTANTS.APP_USERINFO_SESSION)) {
- let data = wx.getStorageSync(CONSTANTS.APP_USERINFO_SESSION);
+ const data = wx.getStorageSync(CONSTANTS.APP_USERINFO_SESSION);
+ if (res?.data?.access && data) {
data.access = res.data.access;
wx.setStorageSync(CONSTANTS.APP_USERINFO_SESSION, data);
}
- if (res.statusCode === 401) {
- wx.removeStorageSync('_app_userinfo_session');
- ajaxParams.success(0, res);
- wx.navigateTo({
- url: '/pages/auth/auth',
- });
- return;
- }
+ ajaxParams.success(res.data, res);
+
if (res.statusCode.toString()[0] != 2) {
let message = '';
if (res?.data?.detail && res.statusCode === 400) {
message = res.data.detail;
+ } else if (res.statusCode === 401) {
+ message = '请登陆!';
} else if (res.statusCode === 418) {
message = '您的请求疑似攻击行为!';
} else {
message = '有点忙开个小差,稍后再试~';
}
+ // 刷新token
+ if (res.statusCode === 401 && data && params.service !== 'REFRESH') {
+ messageQueue.push(params);
+ if (!isRefreshing) {
+ isRefreshing = true;
+ remoteMethods.refreshToken(data?.refresh, (res) => {
+ if (!res.refresh) {
+ clearUserDataAndNavigate();
+ } else {
+ handleSuccessfulRefresh(res, data);
+ }
+ isRefreshing = false;
+ });
+ }
+ return;
+ }
if (ajaxParams.error) {
ajaxParams.error(message, res);
} else {
@@ -186,16 +173,8 @@ const appAjax = {
}
return;
}
- ajaxParams.success(res.data, res);
},
fail: function (res) {
- if (res?.data?.access) {
- if (res.data.access && wx.getStorageSync(CONSTANTS.APP_USERINFO_SESSION)) {
- let data = wx.getStorageSync(CONSTANTS.APP_USERINFO_SESSION);
- data.access = res.data.access;
- wx.setStorageSync(CONSTANTS.APP_USERINFO_SESSION, data);
- }
- }
let message = res?.data?.detail && res.statusCode === 400 ? res.data.detail : '有点忙开个小差,稍后再试~';
ajaxParams.error && ajaxParams.error(message, res);
},
diff --git a/src/openeuler/utils/app-user.js b/src/openeuler/utils/app-user.js
index 5dbfdbc..7637f00 100644
--- a/src/openeuler/utils/app-user.js
+++ b/src/openeuler/utils/app-user.js
@@ -158,6 +158,8 @@ const appUser = {
},
success: function (ret) {
if (ret) {
+ // 更新userInfo数据
+ userInfo = wx.getStorageSync(constants.APP_USERINFO_SESSION);
userInfo.gitee = ret.gitee_name;
userInfo.level = ret.level;
userInfo.nickName = ret.nickname;
@@ -202,6 +204,7 @@ const appUser = {
userInfo.gitee = result.gitee_name;
userInfo.userId = result.user_id;
userInfo.nickName = result.nickname;
+ userInfo.refresh = result.refresh;
// // 缓存用户信息
appUser.saveLoginInfo(userInfo || {});
// 回调
diff --git a/src/openeuler/utils/retry-ajax.js b/src/openeuler/utils/retry-ajax.js
deleted file mode 100644
index e0c1b9b..0000000
--- a/src/openeuler/utils/retry-ajax.js
+++ /dev/null
@@ -1,67 +0,0 @@
-const appAjax = require('./app-ajax');
-
-class ajaxRetry {
- constructor({ url, getRefreshToken, unauthorizedCode = 401, onSuccess, onError }) {
- this.url = url;
- this.getRefreshToken = getRefreshToken;
- this.unauthorizedCode = unauthorizedCode;
- this.onSuccess = onSuccess;
- this.onError = onError;
- }
-
- requestWrapper(request) {
- return new Promise((resolve, reject) => {
- // 先把请求函数保存下来
- const requestFn = request;
- return request()
- .then(resolve)
- .catch((err) => {
- console.log(err);
- if (err?.status === this.unauthorizedCode && !(err?.config?.url === this.url)) {
- if (!this.fetchNewTokenPromise) {
- this.fetchNewTokenPromise = this.fetchNewToken();
- }
- this.fetchNewTokenPromise
- .then(() => {
- // 获取token成功后,重新执行请求
- requestFn().then(resolve).catch(reject);
- })
- .finally(() => {
- // 置空
- this.fetchNewTokenPromise = null;
- });
- } else {
- reject(err);
- }
- });
- });
- }
- // 获取token的函数
- refreshToken() {
- appAjax.postJson({
- type: 'POST',
- service: this.url,
- success: function () {
- this.onSuccess;
- },
- fail: function () {
- this.onError();
- return Promise.reject();
- },
- });
- }
- // fetchNewToken() {
- // return new Axios()
- // .get(this.url, {
- // headers: {
- // Authorization: this.getRefreshToken(),
- // },
- // })
- // .then(this.onSuccess)
- // .catch(() => {
- // this.onError();
- // return Promise.reject();
- // });
- // }
-}
-module.exports = ajaxRetry;
--
Gitee
From d65f6f6198238640aba6f27c6e6ac8593873bc1f Mon Sep 17 00:00:00 2001
From: haml-707 <845831435@qq.com>
Date: Sat, 18 Nov 2023 09:28:52 +0800
Subject: [PATCH 05/10] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4wx.getUserProfil?=
=?UTF-8?q?e=20=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/meeting-list/meeting-list.js | 4 +-
.../components/privacy-text/privacy-text.wxml | 22 +-
.../package-events/events/event-detail.js | 54 +-
.../package-events/events/event-list.js | 2 +-
.../package-events/manage/member-detail.js | 17 +-
.../package-events/publish/publish.js | 4 +-
.../package-meeting/sig/member-detail.js | 14 +-
src/openeuler/package-my/events/my-list.js | 3 +
src/openeuler/pages/auth/auth.js | 95 +-
src/openeuler/pages/auth/auth.wxml | 15 +-
src/openeuler/pages/events/events.js | 37 +-
src/openeuler/pages/index/index.js | 21 +-
src/openeuler/pages/meeting/meeting.js | 8 +-
src/openeuler/pages/my/my.js | 4 -
src/openeuler/typings/wx.d.ts | 2705 -----------------
src/openeuler/utils/app-ajax.js | 12 +-
src/openeuler/utils/app-user.js | 55 +-
src/openeuler/utils/page-mixin.js | 9 -
18 files changed, 165 insertions(+), 2916 deletions(-)
delete mode 100644 src/openeuler/typings/wx.d.ts
diff --git a/src/openeuler/components/meeting-list/meeting-list.js b/src/openeuler/components/meeting-list/meeting-list.js
index d92002e..c3da1bb 100644
--- a/src/openeuler/components/meeting-list/meeting-list.js
+++ b/src/openeuler/components/meeting-list/meeting-list.js
@@ -16,8 +16,8 @@ const remoteMethods = {
if (that?.properties.pageType === 2) {
params = {
...params,
- topic: that.data.curKeyword,
- search: that.data.filterSigName === '全部SIG' ? '' : that.data.filterSigName,
+ search: that.data.curKeyword,
+ group_name: that.data.filterSigName === '全部SIG' ? '' : that.data.filterSigName,
};
}
appAjax.postJson({
diff --git a/src/openeuler/components/privacy-text/privacy-text.wxml b/src/openeuler/components/privacy-text/privacy-text.wxml
index d31e74c..02824ba 100644
--- a/src/openeuler/components/privacy-text/privacy-text.wxml
+++ b/src/openeuler/components/privacy-text/privacy-text.wxml
@@ -8,17 +8,29 @@
1. “我们如何收集和处理您的个人信息” 章节中,根据个人信息处理的合法基础进行了刷新。
2. “如何访问或控制您的个人信息” 章节中,该等权利刷新为上述权利。
1.我们如何收集和处理您的个人信息
- a) 当您登录时,我们会收集您的微信昵称、头像和性别,用于确认您是否具有创建会议的权限,向您发送会议通知及向第三方告知会议的组织人(maintainer)等。无论您是否拥有相关权限,您均可以收藏、订阅会议信息。
- b) 当您预定会议之前,我们会收集您的Gitee ID和所属SIG组别名称,用于配置预定会议权限,并作为会议信息的部分展示在小程序。
- c ) 当您预定会议时,如您填写邮箱地址我们会收集填写邮箱并向其发送会议通知。
+ a ) 当您登录时,我们会收集您的OpenID用于确认您的身份。
+ b ) 当您预定会议之前,我们会收集您的Gitee ID和所属SIG组名称,用于配置预定会议权限,并作为会议信息的部分展示在小程序。
+ c ) 当您预定会议时,如您填写邮箱地址我们会收集填您填写的邮箱并向其发送会议通知。
d ) 当您创建会议后,我们会将您的Gitee ID及会议相关信息同步至本服务页面及openEuler社区网站(https://www.openeuler.org)以便对您的会议感兴趣的个人或组织及时获取相关信息。
e ) 当您创建活动之前,我们会收集您的Gitee ID用于配置活动发布权限。
f ) 当您为您创建的活动添加议题时,我们会收集您所填写议题的嘉宾名称、职位用于在活动议题的内容中展示。
- g ) 当您在下载活动海报时,我们会申请您的相册保存权限,保存小程序生成的活动海报。
- h ) 当您在活动详情页面点击地址时,我们在获取您的同意后会关联启动腾讯地图。
+ g ) 当您在发布活动时,为方便您快速填写活动地址,我们在获取您的明示同意后会关联启动腾讯地图。如您同意启动我们会获取你选择的活动地址信息。
+ h ) 当您在保存二维码时,我们会申请您的相册保存权限,保存二维码。
+ i ) 当您点击“复制”按钮及复制图标时,我们会使用你的剪切板,用于快速复制信息。
2. 我们在何种情况披露或共享您的个人信息
共享是指我们向第三方披露您的个人信息。我们仅会出于合法、正当、必要、特定、明确的目的共享您的个人信息,我们共享这些信息的目的仅限于本声明披露或在您允许的范围内进行。
a) 为了保护国家安全、公共安全以及您和其他个人的重大合法权益而需要共享您的个人信息。
+
+
+ 第三方名称
+
+
+ 处理目的和方式
+
+
+ 第三方名称
+
+
3. 我们将保留多久您的个人信息
我们将会在达成本声明所述目的所需的期限内保留您的个人信息,除非按照法律要求或您的要求需要延长保留期。
一般而言,我们会自您使用本服务时获取您的个人信息之日起,根据可适用法律的要求或服务协议的约定,在留存期限内存储或保留您的个人信息。在您的个人信息超出保留期限后,且没有法律要求我们继续处理您的特定个人信息的情况下,我们将会根据可适用法律的要求删除您的个人信息,或进行匿名化处理。
diff --git a/src/openeuler/package-events/events/event-detail.js b/src/openeuler/package-events/events/event-detail.js
index bac1e2a..651b291 100644
--- a/src/openeuler/package-events/events/event-detail.js
+++ b/src/openeuler/package-events/events/event-detail.js
@@ -147,26 +147,34 @@ Page({
info: res,
});
let arr = [];
- JSON.parse(res.schedules).forEach((item) => {
- if (item.speakerList) {
- arr.push({
- duration: item.start + '-' + item.end,
- title: item.topic,
- speakerList: item.speakerList,
- });
- } else {
- arr.push({
- duration: item.start + '-' + item.end,
- title: item.topic,
- speakerList: [
- {
- name: item.speaker || '',
- title: item.desc || '',
- },
- ],
- });
- }
- });
+ try {
+ JSON.parse(res.schedules).forEach((item) => {
+ if (item.speakerList) {
+ arr.push({
+ duration: item.start + '-' + item.end,
+ title: item.topic,
+ speakerList: item.speakerList,
+ });
+ } else {
+ arr.push({
+ duration: item.start + '-' + item.end,
+ title: item.topic,
+ speakerList: [
+ {
+ name: item.speaker || '',
+ title: item.desc || '',
+ },
+ ],
+ });
+ }
+ });
+ } catch (error) {
+ wx.showToast({
+ title: error,
+ icon: 'none',
+ duration: 2000,
+ });
+ }
this.setData({
steps: arr,
});
@@ -205,7 +213,11 @@ Page({
},
draftPublish() {
let postData = this.data.info;
- postData.schedules = JSON.parse(postData.schedules);
+ try {
+ postData.schedules = JSON.parse(postData.schedules);
+ } catch (error) {
+ return;
+ }
remoteMethods.draftPublish(postData, (res) => {
if (res.code === 200) {
wx.redirectTo({
diff --git a/src/openeuler/package-events/events/event-list.js b/src/openeuler/package-events/events/event-list.js
index 4b7d280..56f8f8d 100644
--- a/src/openeuler/package-events/events/event-list.js
+++ b/src/openeuler/package-events/events/event-list.js
@@ -140,7 +140,7 @@ Page({
that = this;
this.initData();
remoteMethods.getCount((res) => {
- that.setData({
+ this.setData({
'pageParams.page': 1,
level: sessionUtil.getUserInfoByKey('eventLevel') || 1,
user: sessionUtil.getUserInfoByKey('userId'),
diff --git a/src/openeuler/package-events/manage/member-detail.js b/src/openeuler/package-events/manage/member-detail.js
index 0b5edcb..f32ea67 100644
--- a/src/openeuler/package-events/manage/member-detail.js
+++ b/src/openeuler/package-events/manage/member-detail.js
@@ -11,9 +11,6 @@ let remoteMethods = {
},
data: {
gitee_name: postData.name,
- enterprise: postData.enterprise,
- telephone: postData.telephone,
- email: postData.email,
},
success: function (ret) {
_callback && _callback(ret);
@@ -66,21 +63,15 @@ Page({
name: that.data.name,
},
function (data) {
- if (data.code == 400) {
- wx.showToast({
- title: data.msg,
- icon: 'none',
- duration: 2000,
- });
- return;
- }
- if (data.gitee_name) {
+ if (data.code === 200) {
wx.showToast({
title: '操作成功',
icon: 'success',
duration: 2000,
});
- wx.navigateBack();
+ that.setData({
+ rawName: that.data.name,
+ });
}
}
);
diff --git a/src/openeuler/package-events/publish/publish.js b/src/openeuler/package-events/publish/publish.js
index cc12ada..2483b06 100644
--- a/src/openeuler/package-events/publish/publish.js
+++ b/src/openeuler/package-events/publish/publish.js
@@ -340,8 +340,8 @@ Page({
that.setData({
address: res.address,
addressName: res.name,
- longitude: res.longitude,
- latitude: res.latitude,
+ longitude: res.longitude.toFixed(5),
+ latitude: res.latitude.toFixed(5),
});
},
fail: function (res) {
diff --git a/src/openeuler/package-meeting/sig/member-detail.js b/src/openeuler/package-meeting/sig/member-detail.js
index e85ad23..f8ce471 100644
--- a/src/openeuler/package-meeting/sig/member-detail.js
+++ b/src/openeuler/package-meeting/sig/member-detail.js
@@ -63,21 +63,15 @@ Page({
name: that.data.name,
},
function (data) {
- if (data.code == 400) {
- wx.showToast({
- title: data.msg,
- icon: 'none',
- duration: 2000,
- });
- return;
- }
- if (data.gitee_name) {
+ if (data.code === 200) {
wx.showToast({
title: '操作成功',
icon: 'success',
duration: 2000,
});
- wx.navigateBack();
+ that.setData({
+ rawName: that.data.name,
+ });
}
}
);
diff --git a/src/openeuler/package-my/events/my-list.js b/src/openeuler/package-my/events/my-list.js
index 17d84ea..c9904f2 100644
--- a/src/openeuler/package-my/events/my-list.js
+++ b/src/openeuler/package-my/events/my-list.js
@@ -316,6 +316,9 @@ Page({
showDialogDel: false,
});
remoteMethods.delEvent(() => {
+ this.setData({
+ 'pageParams.page': 1,
+ });
this.initialization();
});
},
diff --git a/src/openeuler/pages/auth/auth.js b/src/openeuler/pages/auth/auth.js
index 659199a..46b8b4c 100644
--- a/src/openeuler/pages/auth/auth.js
+++ b/src/openeuler/pages/auth/auth.js
@@ -14,7 +14,6 @@ Page(
url: '',
id: '',
record: false,
- canIUseGetUserProfile: false,
isPrivecyShown: false,
},
onLoad(options) {
@@ -24,41 +23,9 @@ Page(
id: options.id,
});
}
-
- if (wx.getUserProfile) {
- this.setData({
- canIUseGetUserProfile: true,
- });
- }
- },
- /**
- * 绑定获取用户信息
- */
- bindGetUserInfo: function () {
- wx.getSetting({
- success: function (res) {
- if (res.authSetting['scope.userInfo']) {
- appUser.wxLogin(function () {
- const pages = getCurrentPages(); // 当前页面
- const beforePage =
- pages[pages.length - 2].route === 'pages/auth/auth' ? pages[pages.length - 3] : pages[pages.length - 2]; // 前一个页面
- const id = beforePage?.options.id || that.data.id;
- const url = id ? '/' + beforePage?.route + '?id=' + id : '/' + beforePage?.route;
- if (!sessionUtil.getUserInfoByKey('agreePrivacy')) {
- this.setData({
- isPrivecyShown: true,
- url,
- });
- }
- wx.reLaunch({
- url: url,
- });
- });
- }
- },
- });
},
bindGetUserProfile() {
+ console.log(555);
if (!this.data.record) {
wx.showToast(
{
@@ -70,31 +37,23 @@ Page(
);
return false;
}
- wx.getUserProfile({
- desc: '用于会议和活动所需信息',
- success: (res) => {
- appUser.wxGetUserProfileLogin(function () {
- const pages = getCurrentPages(); // 当前页面
- const beforePage =
- pages[pages.length - 2]?.route === 'pages/auth/auth' ? pages[pages.length - 3] : pages[pages.length - 2]; // 前一个页面
- const id = beforePage?.options.id || that.data.id;
- const url = id ? '/' + beforePage?.route + '?id=' + id : '/' + beforePage?.route;
- if (!sessionUtil.getUserInfoByKey('agreePrivacy')) {
- that.setData({
- isPrivecyShown: true,
- url: url,
- });
- } else {
- wx.reLaunch({
- url: url,
- });
- }
- }, res.userInfo);
- },
- fail: (err) => {
- console.log(err);
- },
- });
+ appUser.wxGetUserProfileLogin(function () {
+ const pages = getCurrentPages(); // 当前页面
+ const beforePage =
+ pages[pages.length - 2]?.route === 'pages/auth/auth' ? pages[pages.length - 3] : pages[pages.length - 2]; // 前一个页面
+ const id = beforePage?.options.id || that.data.id;
+ const url = id ? '/' + beforePage?.route + '?id=' + id : '/' + beforePage?.route;
+ if (!sessionUtil.getUserInfoByKey('agreePrivacy')) {
+ that.setData({
+ isPrivecyShown: true,
+ url: url,
+ });
+ } else {
+ wx.reLaunch({
+ url: url,
+ });
+ }
+ }, {});
},
recordoOnChange: function (event) {
this.setData({
@@ -130,9 +89,21 @@ Page(
});
},
setStorage: function () {
- let data = wx.getStorageSync('_app_userinfo_session');
- data.agreePrivacy = true;
- wx.setStorageSync('_app_userinfo_session', data);
+ // let data = wx.getStorageSync('_app_userinfo_session');
+ // data.agreePrivacy = true;
+ // wx.setStorageSync('_app_userinfo_session', data);
+ wx.getStorage({
+ key: '_app_userinfo_session',
+ encrypt: true,
+ success(data) {
+ data.agreePrivacy = true;
+ wx.setStorage({
+ key: '_app_userinfo_session',
+ encrypt: true,
+ data: data,
+ });
+ },
+ });
},
handleClick: function () {
this.setAgreeState(() => {
diff --git a/src/openeuler/pages/auth/auth.wxml b/src/openeuler/pages/auth/auth.wxml
index 575353a..6ac7a31 100644
--- a/src/openeuler/pages/auth/auth.wxml
+++ b/src/openeuler/pages/auth/auth.wxml
@@ -3,14 +3,7 @@
为便于您在使用 openEuler 会议预定小程序的过程中能够获得所有操作权限, 需要您允许授权使用微信用户信息。
-
-
-
- 微信授权登录
-
-
-
-
+
微信授权登录
@@ -18,11 +11,13 @@
-
+
已阅读并同意隐私声明
-
+
隐私声明更新通知
diff --git a/src/openeuler/pages/events/events.js b/src/openeuler/pages/events/events.js
index a246278..0cbf301 100644
--- a/src/openeuler/pages/events/events.js
+++ b/src/openeuler/pages/events/events.js
@@ -5,7 +5,7 @@ const appUser = require('../../utils/app-user.js');
let that = null;
let remoteMethods = {
- getList: function (_callback) {
+ getList: function (params, _callback) {
appAjax.postJson({
autoShowWait: true,
type: 'GET',
@@ -13,6 +13,7 @@ let remoteMethods = {
success: function (ret) {
_callback && _callback(ret);
},
+ data: params,
});
},
delDraft: function (_callback) {
@@ -105,13 +106,8 @@ Page({
level: sessionUtil.getUserInfoByKey('eventLevel') || 1,
user: sessionUtil.getUserInfoByKey('userId'),
});
- remoteMethods.getList((res) => {
- that.setData({
- list: res.data,
- total: res.total,
- });
- });
});
+ this.initData();
},
/**
* 生命周期函数--监听页面显示
@@ -187,11 +183,17 @@ Page({
if (e.detail.operaType == 1) {
if (this.data.collectionId) {
remoteMethods.unCollect(() => {
- this.onLoad();
+ this.setData({
+ 'pageParams.page': 1,
+ });
+ this.initData();
});
} else {
remoteMethods.collect(() => {
- this.onLoad();
+ this.setData({
+ 'pageParams.page': 1,
+ });
+ this.initData();
});
}
} else {
@@ -203,11 +205,17 @@ Page({
if (e.detail.operaType == 1) {
if (this.data.collectionId) {
remoteMethods.unCollect(() => {
- this.onLoad();
+ this.setData({
+ 'pageParams.page': 1,
+ });
+ this.initData();
});
} else {
remoteMethods.collect(() => {
- this.onLoad();
+ this.setData({
+ 'pageParams.page': 1,
+ });
+ this.initData();
});
}
} else if (e.detail.operaType == 3) {
@@ -224,11 +232,10 @@ Page({
showDialogDel: false,
});
remoteMethods.delEvent(() => {
- remoteMethods.getList((res) => {
- this.setData({
- list: res,
- });
+ this.setData({
+ 'pageParams.page': 1,
});
+ this.initData();
});
},
delCancel() {
diff --git a/src/openeuler/pages/index/index.js b/src/openeuler/pages/index/index.js
index 7694e3d..2d3f186 100644
--- a/src/openeuler/pages/index/index.js
+++ b/src/openeuler/pages/index/index.js
@@ -34,24 +34,16 @@ Page(
url: e.currentTarget.dataset.url,
});
},
- previewImage(e) {
- const current = e.target.dataset.src; //获取当前点击的 图片 url
- wx.previewImage({
- current,
- urls: [current],
- });
- },
onLoad: function () {
wx.showShareMenu({
withShareTicket: true,
menus: ['shareAppMessage', 'shareTimeline'],
});
that = this;
- appUser.updateUserInfo(function () {
- that.setData({
- meetingConponent: that.selectComponent('#meeting'),
- iphoneX: that.getTabBar().data.iPhoneX,
- });
+ appUser.updateUserInfo();
+ this.setData({
+ meetingConponent: that.selectComponent('#meeting'),
+ iphoneX: that.getTabBar().data.iPhoneX,
});
},
onShow: function () {
@@ -61,9 +53,8 @@ Page(
},
onPullDownRefresh: function () {
wx.stopPullDownRefresh();
- appUser.updateUserInfo(function () {
- that.data.meetingConponent?.initData();
- });
+ appUser.updateUserInfo();
+ this.data.meetingConponent?.initData();
},
onReachBottom() {
const customComponent = this.selectComponent('#meeting');
diff --git a/src/openeuler/pages/meeting/meeting.js b/src/openeuler/pages/meeting/meeting.js
index 9764040..d0e3e11 100644
--- a/src/openeuler/pages/meeting/meeting.js
+++ b/src/openeuler/pages/meeting/meeting.js
@@ -43,16 +43,16 @@ Page(
},
onPullDownRefresh: function () {
wx.stopPullDownRefresh();
- appUser.updateUserInfo(function () {
- that.setData({
+ appUser.updateUserInfo(() => {
+ this.setData({
level: sessionUtil.getUserInfoByKey('level') || 1,
});
- that.data.meetingConponent?.initData();
});
+ this.data.meetingConponent?.initData();
},
onReachBottom() {
const customComponent = this.selectComponent('#meeting');
- customComponent.getMoreData()
+ customComponent.getMoreData();
},
actionStatus(e) {
if (e.detail === 1) {
diff --git a/src/openeuler/pages/my/my.js b/src/openeuler/pages/my/my.js
index 99e31e7..8fbb3ca 100644
--- a/src/openeuler/pages/my/my.js
+++ b/src/openeuler/pages/my/my.js
@@ -61,10 +61,6 @@ Page({
copy: function (e) {
wx.setClipboardData({
data: `${e.currentTarget.dataset.copy}`,
- success: function () {},
- fail: function (err) {
- console.log(err);
- },
});
},
onPullDownRefresh() {
diff --git a/src/openeuler/typings/wx.d.ts b/src/openeuler/typings/wx.d.ts
deleted file mode 100644
index a2ffc2b..0000000
--- a/src/openeuler/typings/wx.d.ts
+++ /dev/null
@@ -1,2705 +0,0 @@
-// generate time:2017-08-23 21:12:06
-// Type definitions for wx app
-// Definitions by: hellopao
-
-/************************************************
-* *
-* 微信小程序 API *
-* *
-************************************************/
-
-interface IAnimation {
- /**
- * 透明度,参数范围 0~1
- */
- opacity(value: number): IAnimation;
- /**
- * 颜色值
- */
- backgroundColor(color: string): IAnimation;
- /**
- * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
- */
- width(length: number): IAnimation;
- /**
- * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
- */
- height(length: number): IAnimation;
- /**
- * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
- */
- top(length: number): IAnimation;
- /**
- * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
- */
- left(length: number): IAnimation;
- /**
- * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
- */
- bottom(length: number): IAnimation;
- /**
- * 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
- */
- right(length: number): IAnimation;
- /**
- * deg的范围-180~180,从原点顺时针旋转一个deg角度
- */
- rotate(deg: number): IAnimation;
- /**
- * deg的范围-180~180,在X轴旋转一个deg角度
- */
- rotateX(deg: number): IAnimation;
- /**
- * deg的范围-180~180,在Y轴旋转一个deg角度
- */
- rotateY(deg: number): IAnimation;
- /**
- * deg的范围-180~180,在Z轴旋转一个deg角度
- */
- rotateZ(deg: number): IAnimation;
- /**
- * 同transform-function rotate3d
- */
- rotate3d(x: number, y: number, z: number, deg: number): IAnimation;
- /**
- * 一个参数时,表示在X轴、Y轴同时缩放sx倍数;两个参数时表示在X轴缩放sx倍数,在Y轴缩放sy倍数
- */
- scale(sx: number, sy?: number): IAnimation;
- /**
- * 在X轴缩放sx倍数
- */
- scaleX(sx: number): IAnimation;
- /**
- * 在Y轴缩放sy倍数
- */
- scaleY(sy: number): IAnimation;
- /**
- * 在Z轴缩放sy倍数
- */
- scaleZ(sz: number): IAnimation;
- /**
- * 在X轴缩放sx倍数,在Y轴缩放sy倍数,在Z轴缩放sz倍数
- */
- scale3d(sx: number, sy: number, sz: number): IAnimation;
- /**
- * 一个参数时,表示在X轴偏移tx,单位px;两个参数时,表示在X轴偏移tx,在Y轴偏移ty,单位px。
- */
- translate(tx: number, ty?: number): IAnimation;
- /**
- * 在X轴偏移tx,单位px
- */
- translateX(tx: number): IAnimation;
- /**
- * 在Y轴偏移tx,单位px
- */
- translateY(tx: number): IAnimation;
- /**
- * 在Z轴偏移tx,单位px
- */
- translateZ(tx: number): IAnimation;
- /**
- * 在X轴偏移tx,在Y轴偏移ty,在Z轴偏移tz,单位px
- */
- translate3d(tx: number, ty: number, tz: number): IAnimation;
- /**
- * 参数范围-180~180;一个参数时,Y轴坐标不变,X轴坐标延顺时针倾斜ax度;两个参数时,分别在X轴倾斜ax度,在Y轴倾斜ay度
- */
- skew(ax: number, ay?: number): IAnimation;
- /**
- * 参数范围-180~180;Y轴坐标不变,X轴坐标延顺时针倾斜ax度
- */
- skewX(ax: number): IAnimation;
- /**
- * 参数范围-180~180;X轴坐标不变,Y轴坐标延顺时针倾斜ay度
- */
- skewY(ay: number): IAnimation;
- /**
- * 同transform-function matrix
- */
- matrix(a, b, c, d, tx, ty): IAnimation;
- /**
- * 同transform-function matrix3d
- */
- matrix3d(): IAnimation;
-}
-
-interface ICanvasContext {
- /**
- * 设置填充色, 如果没有设置 fillStyle,默认颜色为 black。
- */
- setFillStyle(color: string): void;
- /**
- * 设置边框颜色, 如果没有设置 fillStyle,默认颜色为 black。
- */
- setStrokeStyle(color: string): void;
- /**
- * 设置阴影
- */
- setShadow(offsetX: number, offsetY: number, blur: number, color: string): void;
- /**
- * 创建一个线性的渐变颜色。需要使用 addColorStop() 来指定渐变点,至少要两个。
- */
- createLinearGradient(x0: number, y0: number, x1: number, y1: number): void;
- /**
- * 创建一个圆形的渐变颜色。 起点在圆心,终点在圆环。 需要使用 addColorStop() 来指定渐变点,至少要两个。
- */
- createCircularGradient(x: number, y: number, r: number): void;
- /**
- * 创建一个颜色的渐变点。小于最小 stop 的部分会按最小 stop 的 color 来渲染,大于最大 stop 的部分会按最大 stop 的 color 来渲染。需要使用 addColorStop() 来指定渐变点,至少要两个。
- */
- addColorStop(stop: number, color: string): void;
- /**
- * 设置线条端点的样式
- */
- setLineCap(lineCap: 'butt' | 'round' | 'square'): void;
- /**
- * 设置两线相交处的样式
- */
- setLineJoin(lineJoin: 'bevel' | 'round' | 'miter'): void;
- /**
- * 设置线条宽度
- */
- setLineWidth(lineWidth: number): void;
- /**
- * 设置最大倾斜
- */
- setMiterLimit(miterLimit: number): void;
- /**
- * 添加一个矩形路径到当前路径。
- */
- rect(x: number, y: number, width: number, height: number): void;
- /**
- * 填充一个矩形。用 setFillStyle() 设置矩形的填充色,如果没设置默认是黑色。
- */
- fillRect(x: number, y: number, width: number, height: number): void;
- /**
- * 一个矩形(非填充)。用 setFillStroke() 设置矩形线条的颜色,如果没设置默认是黑色。
- */
- strokeRect(x: number, y: number, width: number, height: number): void;
- /**
- * 在给定的矩形区域内,清除画布上的像素
- */
- clearRect(x: number, y: number, width: number, height: number): void;
- /**
- * 对当前路径进行填充
- */
- fill(): void;
- /**
- * 对当前路径进行描边
- */
- stroke(): void;
- /**
- * 开始一个路径
- */
- beginPath(): void;
- /**
- * 关闭一个路径
- */
- closePath(): void;
- /**
- * 把路径移动到画布中的指定点,但不创建线条。
- */
- moveTo(x: number, y: number): void;
- /**
- * 添加一个新点,然后在画布中创建从该点到最后指定点的线条。
- */
- lineTo(x: number, y: number): void;
- /**
- * 添加一个弧形路径到当前路径,顺时针绘制。
- */
- arc(x: number, y: number, radius: number, startAngle: number, sweepAngle: number): void;
- /**
- * 创建二次方贝塞尔曲线
- */
- quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
- /**
- * 创建三次方贝塞尔曲线
- */
- bezierCurveTo(cpx1: number, cpy1: number, cpx2: number, cpy2: number, x: number, y: number): void;
- /**
- * 对横纵坐标进行缩放
- */
- scale(scaleWidth: number/**横坐标缩放的倍数1 = 100%,0.5 = 50%,2 = 200%,依次类 */, scaleHeight: number/** 纵坐标轴缩放的倍数1 = 100%,0.5 = 50%,2 = 200%,依次类 */): void;
- /**
- * 对坐标轴进行顺时针旋转
- */
- rotate(deg: number/**degrees * Math.PI/180;degrees范围为0~360;旋转角度,以弧度计 */): void;
- /**
- * 对坐标原点进行缩放
- */
- translate(x: number/**水平坐标平移量 */, y: number/**竖直坐标平移量 */): void;
- /**
- * 在画布上绘制被填充的文本
- */
- fillText(text: string, x: number, y: number): void;
- /**
- * 设置字体大小
- */
- setFontSize(fontSize: number): void;
- /**
- * 在画布上绘制图像
- */
- drawImage(imageResource: string, x: number, y: number, width: number, height: number): void;
- /**
- * 设置全局画笔透明度。
- */
- setGlobalAlpha(alpha: number): void;
- /**
- * 保存当前坐标轴的缩放、旋转、平移信息
- */
- save(): void;
- /**
- * 恢复之前保存过的坐标轴的缩放、旋转、平移信息
- */
- restore(): void;
- /**
- * 进行绘图
- */
- draw(): void;
-}
-
-interface IAudioContext {
- /**
- * 播放
- */
- play: () => void;
- /**
- * 暂停
- */
- pause: () => void;
- /**
- * 跳转到指定位置,单位 s
- */
- seek: (position: number) => void;
-}
-
-interface IVideoContext {
- /**
- * 播放
- */
- play: () => void;
- /**
- * 暂停
- */
- pause: () => void;
- /**
- * 跳转到指定位置,单位 s
- */
- seek: (position: number) => void;
- /**
- * 发送弹幕,danmu 包含两个属性 text, color。
- */
- sendDanmu: (danmu: {text: string; color: string;}) => void;
-}
-
-interface IMapContext {
- /**
- * 获取当前地图中心的经纬度,返回的是 gcj02 坐标系,可以用于 wx.openLocation
- */
- getCenterLocation: (obj: {
- /**
- * 接口调用成功的回调函数 ,res = { longitude: "经度", latitude: "纬度"}
- */
- success?: (res: {longitude: string; latitude: string}) => void;
- /**
- * 接口调用失败的回调函数
- */
- fail?: () => void;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: () => void;
- }) => void;
- /**
- * 将地图中心移动到当前定位点,需要配合map组件的show-location使用
- */
- moveToLocation: () => void;
-}
-
-interface Application {
- setData: (obj: any) => void;
-}
-
-interface AppConstructor {
- new (): Application;
- (opts: {
- /**
- * 生命周期函数--监听小程序初始化
- */
- onLaunch?: () => void;
- /**
- * 生命周期函数--监听小程序显示
- */
- onShow?: () => void;
- /**
- * 生命周期函数--监听小程序隐藏
- */
- onHide?: () => void;
-
- [key: string]: any;
- }): Application;
-}
-
-declare var App: AppConstructor;
-declare function getApp(): Application;
-
-declare function getCurrentPages(): Page[];
-
-interface Page {
- setData: (obj: any) => void;
-}
-
-interface PageConstructor {
- new (): Page;
- (opts: {
- /**
- * 页面的初始数据
- */
- data?: any;
- /**
- * 页面的初始数据
- */
- onLoad?: () => void;
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady?: () => void;
- /**
- * 生命周期函数--监听页面显示
- */
- onShow?: () => void;
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide?: () => void;
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload?: () => void;
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefreash?: () => void;
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom?: () => void;
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage?: () => {
- /**
- * 分享标题, 默认值当前小程序名称
- */
- title: string;
- /**
- * 分享描述, 默认值当前小程序名称
- */
- desc: string;
- /**
- * 分享路径 默认值当前页面 path ,必须是以 / 开头的完整路径
- */
- path: string;
- };
-
- [key: string]: any;
- }): Page;
-}
-
-declare var Page: PageConstructor;
-
-declare var wx: {
- // # 网络 #
-
- request(obj: {
- /**
- * 开发者服务器接口地址
- */
- url: string;
- /**
- * 请求的参数
- */
- data?: any | string;
- /**
- * 设置请求的 header , header 中不能设置 Referer
- */
- header?: any;
- /**
- * 默认为 GET,有效值:OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
- */
- method?: string;
- /**
- * 默认为 json。如果设置了 dataType 为 json,则会尝试对响应的数据做一次 JSON.parse
- */
- dataType?: string;
- /**
- * 收到开发者服务成功返回的回调函数,res = {data: '开发者服务器返回的内容'}
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 将本地资源上传到开发者服务器。如页面通过 wx.chooseImage 等接口获取到一个本地资源的临时文件路径后,可通过此接口将本地资源上传到指定服务器。客户端发起一个 HTTPS POST 请求,其中 content-type 为 multipart/form-data 。
- */
- uploadFile(obj: {
- /**
- * 开发者服务器 url
- */
- url: string;
- /**
- * 要上传文件资源的路径
- */
- filePath: string;
- /**
- * 文件对应的 key , 开发者在服务器端通过这个 key 可以获取到文件二进制内容
- */
- name: string;
- /**
- * HTTP 请求 Header , header 中不能设置 Referer
- */
- header?: any;
- /**
- * HTTP 请求中其他额外的 form data
- */
- formData?: any;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 下载文件资源到本地。客户端直接发起一个 HTTP GET 请求,返回文件的本地临时路径。
- */
- downloadFile(obj: {
- /**
- * 下载资源的 url
- */
- url: string;
- /**
- * HTTP 请求 Header
- */
- header?: any;
- /**
- * 下载成功后以 tempFilePath 的形式传给页面,res = {tempFilePath: '文件的临时路径'}
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 创建一个 WebSocket 连接;一个微信小程序同时只能有一个 WebSocket 连接,如果当前已存在一个 WebSocket 连接,会自动关闭该连接,并重新创建一个 WebSocket 连接。
- */
- connectSocket(obj: {
- /**
- * 开发者服务器接口地址,必须是 wss 协议,且域名必须是后台配置的合法域名
- */
- url: string;
- /**
- * 请求的数据
- */
- data?: any;
- /**
- * HTTP Header , header 中不能设置 Referer
- */
- header?: any;
- /**
- * 默认是GET,有效值: OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
- */
- method?: string;
- /**
- * 子协议数组
- */
- protocols?: string[];
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 监听WebSocket连接打开事件。
- */
- onSocketOpen(callback: Function): void;
-
- /**
- * 监听WebSocket错误。
- */
- onSocketError(callback: Function): void;
-
- /**
- * 通过 WebSocket 连接发送数据,需要先 wx.connectSocket,并在 wx.onSocketOpen 回调之后才能发送。
- */
- sendSocketMessage(obj: {
- /**
- * 需要发送的内容
- */
- data: undefined;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 监听WebSocket接受到服务器的消息事件。
- */
- onSocketMessage(callback: Function): void;
-
- /**
- * 关闭WebSocket连接。
- */
- closeSocket(obj: {
- /**
- * 一个数字值表示关闭连接的状态号,表示连接被关闭的原因。如果这个参数没有被指定,默认的取值是1000 (表示正常连接关闭)
- */
- code?: number;
- /**
- * 一个可读的字符串,表示连接被关闭的原因。这个字符串必须是不长于123字节的UTF-8 文本(不是字符)
- */
- reason?: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 监听WebSocket关闭。
- */
- onSocketClose(callback: Function): void;
-
- // # 媒体 #
-
- /**
- * 从本地相册选择图片或使用相机拍照。
- */
- chooseImage(obj: {
- /**
- * 最多可以选择的图片张数,默认9
- */
- count?: number;
- /**
- * original 原图,compressed 压缩图,默认二者都有
- */
- sizeType?: string[];
- /**
- * album 从相册选图,camera 使用相机,默认二者都有
- */
- sourceType?: string[];
- /**
- * 成功则返回图片的本地文件路径列表 tempFilePaths
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 预览图片。
- */
- previewImage(obj: {
- /**
- * 当前显示图片的链接,不填则默认为 urls 的第一张
- */
- current?: string;
- /**
- * 需要预览的图片链接列表
- */
- urls: string[];
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 获取图片信息
- */
- getImageInfo(obj: {
- /**
- * 图片的路径,可以是相对路径,临时文件路径,存储文件路径,网络图片路径
- */
- src: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- saveImageToPhotosAlbum(obj: {
- /**
- * 图片文件路径,可以是临时文件路径也可以是永久文件路径,不支持网络图片路径
- */
- filePath: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 开始录音。当主动调用wx.stopRecord,或者录音超过1分钟时自动结束录音,返回录音文件的临时文件路径。当用户离开小程序时,此接口无法调用。
- */
- startRecord(obj: {
- /**
- * 录音成功后调用,返回录音文件的临时文件路径,res = {tempFilePath: '录音文件的临时路径'}
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 主动调用停止录音。
- */
- stopRecord(): void;
-
- /**
- * 开始播放语音,同时只允许一个语音文件正在播放,如果前一个语音文件还没播放完,将中断前一个语音播放。
- */
- playVoice(obj: {
- /**
- * 需要播放的语音文件的文件路径
- */
- filePath: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 暂停正在播放的语音。再次调用wx.playVoice播放同一个文件时,会从暂停处开始播放。如果想从头开始播放,需要先调用 wx.stopVoice。
- */
- pauseVoice(): void;
-
- /**
- * 结束播放语音。
- */
- stopVoice(): void;
-
- /**
- * 获取后台音乐播放状态。
- */
- getBackgroundAudioPlayerState(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 使用后台播放器播放音乐,对于微信客户端来说,只能同时有一个后台音乐在播放。当用户离开小程序后,音乐将暂停播放;当用户点击“显示在聊天顶部”时,音乐不会暂停播放;当用户在其他小程序占用了音乐播放器,原有小程序内的音乐将停止播放。
- */
- playBackgroundAudio(obj: {
- /**
- * 音乐链接,目前支持的格式有 m4a, aac, mp3, wav
- */
- dataUrl: string;
- /**
- * 音乐标题
- */
- title?: string;
- /**
- * 封面URL
- */
- coverImgUrl?: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 暂停播放音乐。
- */
- pauseBackgroundAudio(): void;
-
- /**
- * 控制音乐播放进度。
- */
- seekBackgroundAudio(obj: {
- /**
- * 音乐位置,单位:秒
- */
- position: number;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 停止播放音乐。
- */
- stopBackgroundAudio(): void;
-
- /**
- * 监听音乐播放。
- */
- onBackgroundAudioPlay(callback: Function): void;
-
- /**
- * 监听音乐暂停。
- */
- onBackgroundAudioPause(callback: Function): void;
-
- /**
- * 监听音乐停止。
- */
- onBackgroundAudioStop(callback: Function): void;
-
- getBackgroundAudioManager(): void;
-
- /**
- * 创建并返回 audio 上下文 audioContext 对象
- */
- createAudioContext(audioId: string): IAudioContext;
-
- /**
- * 拍摄视频或从手机相册中选视频,返回视频的临时文件路径。
- */
- chooseVideo(obj: {
- /**
- * album 从相册选视频,camera 使用相机拍摄,默认为:['album', 'camera']
- */
- sourceType?: string[];
- /**
- * 拍摄视频最长拍摄时间,单位秒。最长支持 60 秒
- */
- maxDuration?: number;
- /**
- * 默认调起的为前置还是后置摄像头。front: 前置,back: 后置,默认 back
- */
- camera?: string;
- /**
- * 接口调用成功,返回视频文件的临时文件路径,详见返回参数说明
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- saveVideoToPhotosAlbum(obj: {
- /**
- * 视频文件路径,可以是临时文件路径也可以是永久文件路径
- */
- filePath: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 创建并返回 video 上下文 videoContext 对象
- */
- createVideoContext(videoId: string): IVideoContext;
-
- // # 文件 #
-
- /**
- * 保存文件到本地。
- */
- saveFile(obj: {
- /**
- * 需要保存的文件的临时路径
- */
- tempFilePath: string;
- /**
- * 返回文件的保存路径,res = {savedFilePath: '文件的保存路径'}
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 获取本地已保存的文件列表
- */
- getSavedFileList(obj: {
- /**
- * 接口调用成功的回调函数,返回结果见success返回参数说明
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 获取本地文件的文件信息。此接口只能用于获取已保存到本地的文件,若需要获取临时文件信息,请使用 wx.getFileInfo 接口。
- */
- getSavedFileInfo(obj: {
- /**
- * 文件路径
- */
- filePath: string;
- /**
- * 接口调用成功的回调函数,返回结果见success返回参数说明
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 删除本地存储的文件
- */
- removeSavedFile(obj: {
- /**
- * 需要删除的文件路径
- */
- filePath: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 新开页面打开文档,支持格式:doc, xls, ppt, pdf, docx, xlsx, pptx
- */
- openDocument(obj: {
- /**
- * 文件路径,可通过 downFile 获得
- */
- filePath: string;
- /**
- * 文件类型,指定文件类型打开文件,有效值 doc, xls, ppt, pdf, docx, xlsx, pptx
- */
- fileType?: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getFileInfo(obj: {
- /**
- * 本地文件路径
- */
- filePath: string;
- /**
- * 计算文件摘要的算法,默认值 md5,有效值:md5,sha1
- */
- digestAlgorithm?: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- // # 数据缓存 #
-
- /**
- * 将数据存储在本地缓存中指定的 key 中,会覆盖掉原来该 key 对应的内容,这是一个异步接口。
- */
- setStorage(obj: {
- /**
- * 本地缓存中的指定的 key
- */
- key: string;
- /**
- * 需要存储的内容
- */
- data: any;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 将 data 存储在本地缓存中指定的 key 中,会覆盖掉原来该 key 对应的内容,这是一个同步接口。
- */
- setStorageSync(key: string, data: any, ): void;
-
- /**
- * 从本地缓存中异步获取指定 key 对应的内容。
- */
- getStorage(obj: {
- /**
- * 本地缓存中的指定的 key
- */
- key: string;
- /**
- * 接口调用的回调函数,res = {data: key对应的内容}
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 从本地缓存中同步获取指定 key 对应的内容。
- */
- getStorageSync(key: string): void;
-
- /**
- * 异步获取当前storage的相关信息
- */
- getStorageInfo(obj: {
- /**
- * 接口调用的回调函数,详见返回参数说明
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 同步获取当前storage的相关信息
- */
- getStorageInfoSync(): void;
-
- /**
- * 从本地缓存中异步移除指定 key 。
- */
- removeStorage(obj: {
- /**
- * 本地缓存中的指定的 key
- */
- key: string;
- /**
- * 接口调用的回调函数
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 从本地缓存中同步移除指定 key 。
- */
- removeStorageSync(key: string): void;
-
- /**
- * 清理本地数据缓存。
- */
- clearStorage(): void;
-
- /**
- * 同步清理本地数据缓存
- */
- clearStorageSync(): void;
-
- // # 位置 #
-
- /**
- * 获取当前的地理位置、速度。当用户离开小程序后,此接口无法调用;当用户点击“显示在聊天顶部”时,此接口可继续调用。
- */
- getLocation(obj: {
- /**
- * 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于wx.openLocation的坐标
- */
- type?: string;
- /**
- * 接口调用成功的回调函数,返回内容详见返回参数说明。
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 打开地图选择位置
- */
- chooseLocation(obj: {
- /**
- * 接口调用成功的回调函数,返回内容详见返回参数说明。
- */
- success: Function;
- /**
- * 用户取消时调用
- */
- cancel?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 使用微信内置地图查看位置
- */
- openLocation(obj: {
- /**
- * 纬度,范围为-90~90,负数表示南纬
- */
- latitude: number;
- /**
- * 经度,范围为-180~180,负数表示西经
- */
- longitude: number;
- /**
- * 缩放比例,范围5~18,默认为18
- */
- scale?: number;
- /**
- * 位置名
- */
- name?: string;
- /**
- * 地址的详细说明
- */
- address?: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 创建并返回 map 上下文 mapContext 对象
- */
- createMapContext(mapId: string): IMapContext;
-
- // # 设备 #
-
- /**
- * 获取系统信息。
- */
- getSystemInfo(obj: {
- /**
- * 接口调用成功的回调
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 获取系统信息同步接口
- */
- getSystemInfoSync(): void;
-
- /**
- * 获取网络类型。
- */
- getNetworkType(obj: {
- /**
- * 接口调用成功,返回网络类型 networkType
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- onNetworkStatusChange(callback: Function): void;
-
- setScreenBrightness(obj: {
- /**
- * 屏幕亮度值,范围 0~1,0 最暗,1 最亮
- */
- value: number;
- /**
- * 接口调用成功
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getScreenBrightness(obj: {
- /**
- * 接口调用成功
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- vibrateLong(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- vibrateShort(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 监听加速度数据,频率:5次/秒,接口调用后会自动开始监听,可使用 wx.stopAccelerometer 停止监听。
- */
- onAccelerometerChange(callback: Function): void;
-
- startAccelerometer(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- stopAccelerometer(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 监听罗盘数据,频率:5次/秒,接口调用后会自动开始监听,可使用wx.stopCompass停止监听。
- */
- onCompassChange(callback: Function): void;
-
- startCompass(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- stopCompass(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- makePhoneCall(obj: {
- /**
- * 需要拨打的电话号码
- */
- phoneNumber: string;
- /**
- * 接口调用成功的回调
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 调起客户端扫码界面,扫码成功后返回对应的结果
- */
- scanCode(obj: {
- /**
- * 是否只能从相机扫码,不允许从相册选择图片
- */
- onlyFromCamera?: boolean;
- /**
- * 接口调用成功的回调函数,返回内容详见返回参数说明。
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- setClipboardData(obj: {
- /**
- * 需要设置的内容
- */
- data: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getClipboardData(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- openBluetoothAdapter(obj: {
- /**
- * 成功则返回成功初始化信息
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- closeBluetoothAdapter(obj: {
- /**
- * 成功则返回成功关闭模块信息
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getBluetoothAdapterState(obj: {
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- onBluetoothAdapterStateChange(callback: Function): void;
-
- startBluetoothDevicesDiscovery(obj: {
- /**
- * 蓝牙设备主 service 的 uuid 列表
- */
- services?: Array;
- /**
- * 是否允许重复上报同一设备, 如果允许重复上报,则onDeviceFound 方法会多次上报同一设备,但是 RSSI 值会有不同
- */
- allowDuplicatesKey?: boolean;
- /**
- * 上报设备的间隔,默认为0,意思是找到新设备立即上报,否则根据传入的间隔上报
- */
- interval?: number;
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- stopBluetoothDevicesDiscovery(obj: {
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getBluetoothDevices(obj: {
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- onBluetoothDeviceFound(callback: Function): void;
-
- getConnectedBluetoothDevices(obj: {
- /**
- * 蓝牙设备主 service 的 uuid 列表
- */
- services: Array;
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- createBLEConnection(obj: {
- /**
- * 蓝牙设备 id,参考 getDevices 接口
- */
- deviceId: string;
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- closeBLEConnection(obj: {
- /**
- * 蓝牙设备 id,参考 getDevices 接口
- */
- deviceId: string;
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getBLEDeviceServices(obj: {
- /**
- * 蓝牙设备 id,参考 getDevices 接口
- */
- deviceId: string;
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getBLEDeviceCharacteristics(obj: {
- /**
- * 蓝牙设备 id,参考 device 对象
- */
- deviceId: string;
- /**
- * 蓝牙服务 uuid
- */
- serviceId: string;
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- readBLECharacteristicValue(obj: {
- /**
- * 蓝牙设备 id,参考 device 对象
- */
- deviceId: string;
- /**
- * 蓝牙特征值对应服务的 uuid
- */
- serviceId: string;
- /**
- * 蓝牙特征值的 uuid
- */
- characteristicId: string;
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- writeBLECharacteristicValue(obj: {
- /**
- * 蓝牙设备 id,参考 device 对象
- */
- deviceId: string;
- /**
- * 蓝牙特征值对应服务的 uuid
- */
- serviceId: string;
- /**
- * 蓝牙特征值的 uuid
- */
- characteristicId: string;
- /**
- * 蓝牙设备特征值对应的二进制值(注意:vConsole 无法打印出 ArrayBuffer 类型数据)
- */
- value: undefined;
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- notifyBLECharacteristicValueChange(obj: {
- /**
- * 蓝牙设备 id,参考 device 对象
- */
- deviceId: string;
- /**
- * 蓝牙特征值对应服务的 uuid
- */
- serviceId: string;
- /**
- * 蓝牙特征值的 uuid
- */
- characteristicId: string;
- /**
- * true: 启用 notify; false: 停用 notify
- */
- state: boolean;
- /**
- * 成功则返回本机蓝牙适配器状态
- */
- success: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- onBLEConnectionStateChange(callback: Function): void;
-
- onBLECharacteristicValueChange(callback: Function): void;
-
- startBeaconDiscovery(obj: {
- /**
- * iBeacon设备广播的 uuids
- */
- uuids: string[];
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- stopBeaconDiscovery(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getBeacons(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- onBeaconUpdate(callback: Function): void;
-
- onBeaconServiceChange(callback: Function): void;
-
- onUserCaptureScreen(callback: Function): void;
-
- addPhoneContact(obj: {
- /**
- * 头像本地文件路径
- */
- photoFilePath?: string;
- /**
- * 昵称
- */
- nickName?: string;
- /**
- * 姓氏
- */
- lastName?: string;
- /**
- * 中间名
- */
- middleName?: string;
- /**
- * 名字
- */
- firstName: string;
- /**
- * 备注
- */
- remark?: string;
- /**
- * 手机号
- */
- mobilePhoneNumber?: string;
- /**
- * 微信号
- */
- weChatNumber?: string;
- /**
- * 联系地址国家
- */
- addressCountry?: string;
- /**
- * 联系地址省份
- */
- addressState?: string;
- /**
- * 联系地址城市
- */
- addressCity?: string;
- /**
- * 联系地址街道
- */
- addressStreet?: string;
- /**
- * 联系地址邮政编码
- */
- addressPostalCode?: string;
- /**
- * 公司
- */
- organization?: string;
- /**
- * 职位
- */
- title?: string;
- /**
- * 工作传真
- */
- workFaxNumber?: string;
- /**
- * 工作电话
- */
- workPhoneNumber?: string;
- /**
- * 公司电话
- */
- hostNumber?: string;
- /**
- * 电子邮件
- */
- email?: string;
- /**
- * 网站
- */
- url?: string;
- /**
- * 工作地址国家
- */
- workAddressCountry?: string;
- /**
- * 工作地址省份
- */
- workAddressState?: string;
- /**
- * 工作地址城市
- */
- workAddressCity?: string;
- /**
- * 工作地址街道
- */
- workAddressStreet?: string;
- /**
- * 工作地址邮政编码
- */
- workAddressPostalCode?: string;
- /**
- * 住宅传真
- */
- homeFaxNumber?: string;
- /**
- * 住宅电话
- */
- homePhoneNumber?: string;
- /**
- * 住宅地址国家
- */
- homeAddressCountry?: string;
- /**
- * 住宅地址省份
- */
- homeAddressState?: string;
- /**
- * 住宅地址城市
- */
- homeAddressCity?: string;
- /**
- * 住宅地址街道
- */
- homeAddressStreet?: string;
- /**
- * 住宅地址邮政编码
- */
- homeAddressPostalCode?: string;
- /**
- * 接口调用成功
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- // # 界面 #
-
- /**
- * 显示消息提示框
- */
- showToast(obj: {
- /**
- * 提示的内容
- */
- title: string;
- /**
- * 图标,有效值 "success", "loading"
- */
- icon?: string;
- /**
- * 自定义图标的本地路径,image 的优先级高于 icon
- */
- image?: string;
- /**
- * 提示的延迟时间,单位毫秒,默认:1500
- */
- duration?: number;
- /**
- * 是否显示透明蒙层,防止触摸穿透,默认:false
- */
- mask?: boolean;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- showLoading(obj: {
- /**
- * 提示的内容
- */
- title: string;
- /**
- * 是否显示透明蒙层,防止触摸穿透,默认:false
- */
- mask?: boolean;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 隐藏消息提示框
- */
- hideToast(): void;
-
- hideLoading(): void;
-
- /**
- * 显示模态弹窗
- */
- showModal(obj: {
- /**
- * 提示的标题
- */
- title: string;
- /**
- * 提示的内容
- */
- content: string;
- /**
- * 是否显示取消按钮,默认为 true
- */
- showCancel?: boolean;
- /**
- * 取消按钮的文字,默认为"取消",最多 4 个字符
- */
- cancelText?: string;
- /**
- * 取消按钮的文字颜色,默认为"#000000"
- */
- cancelColor?: undefined;
- /**
- * 确定按钮的文字,默认为"确定",最多 4 个字符
- */
- confirmText?: string;
- /**
- * 确定按钮的文字颜色,默认为"#3CC51F"
- */
- confirmColor?: undefined;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 显示操作菜单
- */
- showActionSheet(obj: {
- /**
- * 按钮的文字数组,数组长度最大为6个
- */
- itemList: undefined;
- /**
- * 按钮的文字颜色,默认为"#000000"
- */
- itemColor?: undefined;
- /**
- * 接口调用成功的回调函数,详见返回参数说明
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- setTopBarText(obj: {
- /**
- * 置顶栏文字内容
- */
- text: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 动态设置当前页面的标题。
- */
- setNavigationBarTitle(obj: {
- /**
- * 页面标题
- */
- title: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 在当前页面显示导航条加载动画。
- */
- showNavigationBarLoading(): void;
-
- /**
- * 隐藏导航条加载动画。
- */
- hideNavigationBarLoading(): void;
-
- /**
- * 保留当前页面,跳转到应用内的某个页面,使用wx.navigateBack可以返回到原页面。
- */
- navigateTo(obj: {
- /**
- * 需要跳转的应用内非 tabBar 的页面的路径 , 路径后可以带参数。参数与路径之间使用?分隔,参数键与参数值用=相连,不同参数用&分隔;如 'path?key=value&key2=value2'
- */
- url: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 关闭当前页面,跳转到应用内的某个页面。
- */
- redirectTo(obj: {
- /**
- * 需要跳转的应用内非 tabBar 的页面的路径,路径后可以带参数。参数与路径之间使用?分隔,参数键与参数值用=相连,不同参数用&分隔;如 'path?key=value&key2=value2'
- */
- url: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- reLaunch(obj: {
- /**
- * 需要跳转的应用内页面路径 , 路径后可以带参数。参数与路径之间使用?分隔,参数键与参数值用=相连,不同参数用&分隔;如 'path?key=value&key2=value2',如果跳转的页面路径是 tabBar 页面则不能带参数
- */
- url: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面
- */
- switchTab(obj: {
- /**
- * 需要跳转的 tabBar 页面的路径(需在 app.json 的 tabBar 字段定义的页面),路径后不能带参数
- */
- url: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 关闭当前页面,返回上一页面或多级页面。可通过 getCurrentPages()) 获取当前的页面栈,决定需要返回几层。
- */
- navigateBack(obj: {
- /**
- * 返回的页面数,如果 delta 大于现有页面数,则返回到首页。
- */
- delta?: number;
- }): void;
-
- /**
- * 创建一个动画实例animation。调用实例的方法来描述动画。最后通过动画实例的export方法导出动画数据传递给组件的animation属性。
- */
- createAnimation(obj: {
- /**
- * 400
- */
- duration?: number;
- /**
- * "linear"
- */
- timingFunction?: string;
- /**
- * 0
- */
- delay?: number;
- /**
- * "50% 50% 0"
- */
- transformOrigin?: string;
- }): IAnimation;
-
- pageScrollTo(obj: {
- /**
- * 滚动到页面的目标位置(单位px)
- */
- scrollTop: number;
- }): void;
-
- /**
- * 创建 canvas 绘图上下文(指定 canvasId).Tip: 需要指定 canvasId,该绘图上下文只作用于对应的
- */
- createCanvasContext(canvasId: string): ICanvasContext;
-
- /**
- * 把当前画布的内容导出生成图片,并返回文件路径
- */
- canvasToTempFilePath(canvasId: string): void;
-
- startPullDownRefresh(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 停止当前页面下拉刷新。
- */
- stopPullDownRefresh(): void;
-
- // # WXML节点信息 #
-
- // # 第三方平台 #
-
- getExtConfig(obj: {
- /**
- * 返回第三方平台自定义的数据
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getExtConfigSync(): void;
-
- // # 开放接口 #
-
- /**
- * 调用接口获取登录凭证(code)进而换取用户登录态信息,包括用户的唯一标识(openid) 及本次登录的 会话密钥(session_key)。用户数据的加解密通讯需要依赖会话密钥完成。
- */
- login(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 通过上述接口获得的用户登录态拥有一定的时效性。用户越久未使用小程序,用户登录态越有可能失效。反之如果用户一直在使用小程序,则用户登录态一直保持有效。具体时效逻辑由微信维护,对开发者透明。开发者只需要调用wx.checkSession接口检测当前用户登录态是否有效。登录态过期后开发者可以再调用wx.login获取新的用户登录态。
- */
- checkSession(obj: {
- /**
- * 接口调用成功的回调函数,登录态未过期
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数,登录态已过期
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- authorize(obj: {
- /**
- * 需要获取权限的scope,详见 scope 列表
- */
- scope: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 获取用户信息,withCredentials 为 true 时需要先调用 wx.login 接口。
- */
- getUserInfo(obj: {
- /**
- * 是否带上登录态信息
- */
- withCredentials?: boolean;
- /**
- * 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文
- */
- lang?: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- /**
- * 发起微信支付。
- */
- requestPayment(obj: {
- /**
- * 时间戳从1970年1月1日00:00:00至今的秒数,即当前的时间
- */
- timeStamp: string;
- /**
- * 随机字符串,长度为32个字符以下。
- */
- nonceStr: string;
- /**
- * 统一下单接口返回的 prepay_id 参数值,提交格式如:prepay_id=*
- */
- package: string;
- /**
- * 签名算法,暂支持 MD5
- */
- signType: string;
- /**
- * 签名,具体签名方案参见小程序支付接口文档;
- */
- paySign: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- chooseAddress(obj: {
- /**
- * 返回用户选择的收货地址信息
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- addCard(obj: {
- /**
- * 需要添加的卡券列表,列表内对象说明请参见请求对象说明
- */
- cardList: undefined;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- openCard(obj: {
- /**
- * 需要打开的卡券列表,列表内参数详见openCard 请求对象说明
- */
- cardList: undefined;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- openSetting(obj: {
- /**
- * 接口调用成功的回调函数,返回内容详见返回参数说明。
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getSetting(obj: {
- /**
- * 接口调用成功的回调函数,返回内容详见返回参数说明。
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- getWeRunData(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- navigateToMiniProgram(obj: {
- /**
- * 要打开的小程序 appId
- */
- appId: string;
- /**
- * 打开的页面路径,如果为空则打开首页
- */
- path?: string;
- /**
- * 需要传递给目标小程序的数据,目标小程序可在 App.onLaunch(),App.onShow() 中获取到这份数据。详情
- */
- extraData?: any;
- /**
- * 要打开的小程序版本,有效值 develop(开发版),trial(体验版),release(正式版) ,仅在当前小程序为开发版或体验版时此参数有效;如果当前小程序是体验版或正式版,则打开的小程序必定是正式版。默认值 release
- */
- envVersion?: string;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- chooseInvoiceTitle(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- checkIsSupportSoterAuthentication(obj: {
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
- // # 数据 #
-
- /**
- * 自定义分析数据上报接口。使用前,需要在小程序管理后台自定义分析中新建事件,配置好事件名与字段。
- */
- reportAnalytics(eventName: string, data: string, ): void;
-
- // # 拓展接口 #
-
- arrayBufferToBase64(arrayBuffer: string): void;
-
- base64ToArrayBuffer(base64: string): void;
-
- // # 调试接口 #
-
- setEnableDebug(obj: {
- /**
- * 是否打开调试
- */
- enableDebug: boolean;
- /**
- * 接口调用成功的回调函数
- */
- success?: Function;
- /**
- * 接口调用失败的回调函数
- */
- fail?: Function;
- /**
- * 接口调用结束的回调函数(调用成功、失败都会执行)
- */
- complete?: Function;
- }): void;
-
-}
\ No newline at end of file
diff --git a/src/openeuler/utils/app-ajax.js b/src/openeuler/utils/app-ajax.js
index 218b2ce..eaf4c6a 100644
--- a/src/openeuler/utils/app-ajax.js
+++ b/src/openeuler/utils/app-ajax.js
@@ -1,10 +1,7 @@
-/**
- * 请求方法
- */
-
const underscore = require('./underscore-extend.js');
const servicesConfig = require('../config/services-config.js');
const CONSTANTS = require('../config/constants.js');
+const sessionUtil = require('./app-session.js');
let remoteMethods = {
refreshToken: function (refresh, _callback) {
@@ -64,7 +61,7 @@ const handleSuccessfulRefresh = function (newTokens, userData) {
const clearUserDataAndNavigate = function () {
messageQueue = [];
- wx.removeStorageSync('_app_userinfo_session');
+ sessionUtil.clearUserInfo();
isRefreshing = false;
wx.navigateTo({ url: '/pages/auth/auth' });
};
@@ -90,7 +87,7 @@ const appAjax = {
// 默认参数
let defaultParams = {
service: '', // 服务的配置名称
- success: function (d) {}, // 成功后回调
+ success: function () {}, // 成功后回调
error: null, // 失败后回调
autoShowWait: false, // 自动显示菊花
loadingText: '加载中...', // 加载的提示语
@@ -100,7 +97,6 @@ const appAjax = {
? 'Bearer ' + wx.getStorageSync(CONSTANTS.APP_USERINFO_SESSION).access
: '',
},
- isAsync: true,
};
let isShowToast = false;
let ajaxParams = underscore.deepExtend(true, defaultParams, params);
@@ -139,7 +135,7 @@ const appAjax = {
if (res?.data?.detail && res.statusCode === 400) {
message = res.data.detail;
} else if (res.statusCode === 401) {
- message = '请登陆!';
+ message = '请重新登陆~';
} else if (res.statusCode === 418) {
message = '您的请求疑似攻击行为!';
} else {
diff --git a/src/openeuler/utils/app-user.js b/src/openeuler/utils/app-user.js
index 7637f00..2f969c2 100644
--- a/src/openeuler/utils/app-user.js
+++ b/src/openeuler/utils/app-user.js
@@ -14,37 +14,33 @@ const privateMethods = {
icon: 'loading',
mask: true,
});
-
wx.login({
success: function (data) {
- wx.getUserInfo({
- success: function (res) {
- // 登录
- appAjax.postJson({
- headers: {
- Authorization: '',
- },
- service: 'LOGIN',
- data: {
- userInfo: res.userInfo,
- code: data.code,
- },
- success: function (result) {
- res.userInfo.agreePrivacy = result.agree_privacy_policy;
- res.userInfo.access = result.access;
- res.userInfo.level = result.level;
- res.userInfo.nickName = result.nickname;
- res.userInfo.eventLevel = result.activity_level;
- res.userInfo.gitee = result.gitee_name;
- res.userInfo.userId = result.user_id;
- // 缓存用户信息
- appUser.saveLoginInfo(res.userInfo || {});
- // 回调
- callback && callback(res.userInfo || {});
- },
- });
+ appAjax.postJson({
+ headers: {
+ Authorization: '',
+ },
+ service: 'LOGIN',
+ data: {
+ code: data.code,
+ },
+ success: function (result) {
+ let userInfo = {};
+ userInfo.agreePrivacy = result.agree_privacy_policy;
+ userInfo.access = result.access;
+ userInfo.level = result.level;
+ userInfo.nickName = result.nickname;
+ userInfo.avatarUrl = result.avatar;
+ userInfo.eventLevel = result.activity_level;
+ userInfo.gitee = result.gitee_name;
+ userInfo.userId = result.user_id;
+ userInfo.refresh = result.refresh;
+ // 缓存用户信息
+ appUser.saveLoginInfo(userInfo || {});
+ // 回调
+ callback && callback(userInfo || {});
},
- fail: function () {
+ complete() {
wx.hideToast();
},
});
@@ -114,7 +110,6 @@ const appUser = {
wx.getSetting({
success: function (res) {
if (res.authSetting['scope.userInfo']) {
- // 已经授权,可以直接调用 getUserInfo 获取头像昵称
privateMethods._login(callback);
} else {
app.loginCallback = function () {
@@ -185,7 +180,6 @@ const appUser = {
icon: 'loading',
mask: true,
});
-
wx.login({
success: function (data) {
appAjax.postJson({
@@ -204,6 +198,7 @@ const appUser = {
userInfo.gitee = result.gitee_name;
userInfo.userId = result.user_id;
userInfo.nickName = result.nickname;
+ userInfo.avatarUrl = result.avatar;
userInfo.refresh = result.refresh;
// // 缓存用户信息
appUser.saveLoginInfo(userInfo || {});
diff --git a/src/openeuler/utils/page-mixin.js b/src/openeuler/utils/page-mixin.js
index b88deb8..b3a0d2e 100644
--- a/src/openeuler/utils/page-mixin.js
+++ b/src/openeuler/utils/page-mixin.js
@@ -3,7 +3,6 @@
*/
const _ = require('./underscore-extend');
-const constants = require('../config/constants');
const { deepExtend: $extend } = _;
const app = getApp();
@@ -75,7 +74,6 @@ const lifeCycle = {
let local = {
getLifeCycle(rewriteList, lifeCycle, pageConfig) {
let config = {};
-
rewriteList.forEach((i) => {
if (i in pageConfig) {
config[i] = function () {
@@ -93,13 +91,6 @@ let local = {
let $pageMixin = function (pageConfig) {
let rewriteList = [
'onLoad', // 生命周期函数--监听页面加载
- // 'onReady', // 生命周期函数--监听页面初次渲染完成
- // 'onShow', // 生命周期函数--监听页面显示
- // 'onHide', // 生命周期函数--监听页面隐藏
- // 'onUnload', // 生命周期函数--监听页面卸载
- // 'onPullDownRefresh', // 页面相关事件处理函数--监听用户下拉动作
- // 'onReachBottom', // 页面上拉触底事件的处理函数
- // 'onShareAppMessage' // 用户点击右上角分享
];
let lifeConfig = local.getLifeCycle(rewriteList, lifeCycle, pageConfig);
--
Gitee
From c4636fed5ed9dfc0c1cb00335be29227862159d8 Mon Sep 17 00:00:00 2001
From: haml-707 <845831435@qq.com>
Date: Sat, 18 Nov 2023 20:56:58 +0800
Subject: [PATCH 06/10] =?UTF-8?q?feat:=20=E7=BC=93=E5=AD=98=E5=8A=A0?=
=?UTF-8?q?=E5=AF=86=E5=AD=98=E5=82=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/meeting-list/meeting-list.js | 16 ++++----
.../components/privacy-text/privacy-text.wxml | 11 ------
.../components/user-info/user-info.js | 8 ++--
src/openeuler/config/constants.js | 4 +-
src/openeuler/custom-tab-bar/index.js | 4 +-
.../package-events/events/event-detail.js | 35 ++++-------------
.../package-events/events/event-detail.wxml | 14 ++++---
.../package-events/events/event-detail.wxss | 6 ++-
.../package-events/events/event-list.js | 6 +--
.../package-events/manage/add-member.js | 1 +
.../package-meeting/meeting/detail.js | 15 +++++--
.../package-meeting/reserve/reserve.js | 8 ++--
src/openeuler/package-my/events/my-list.js | 39 +++++++++----------
src/openeuler/package-my/my/privecy-seting.js | 24 ++++++++----
src/openeuler/pages/auth/auth.js | 39 +++++++++----------
src/openeuler/pages/events/events.js | 16 +++-----
src/openeuler/pages/index/index.js | 8 ++--
src/openeuler/pages/meeting/meeting.js | 12 +++---
src/openeuler/pages/my/my.js | 22 +++++++----
src/openeuler/utils/app-ajax.js | 35 ++++++++++-------
src/openeuler/utils/app-session.js | 16 +++++---
src/openeuler/utils/app-user.js | 24 +++++++-----
src/openeuler/utils/utils.js | 23 +++++++++++
23 files changed, 207 insertions(+), 179 deletions(-)
diff --git a/src/openeuler/components/meeting-list/meeting-list.js b/src/openeuler/components/meeting-list/meeting-list.js
index c3da1bb..014831c 100644
--- a/src/openeuler/components/meeting-list/meeting-list.js
+++ b/src/openeuler/components/meeting-list/meeting-list.js
@@ -13,7 +13,7 @@ const remoteMethods = {
});
},
getMeettingData: function (params, _callback) {
- if (that?.properties.pageType === 2) {
+ if (that.properties.pageType === 2) {
params = {
...params,
search: that.data.curKeyword,
@@ -71,8 +71,8 @@ const remoteMethods = {
},
};
const localMethod = {
- checkLogin() {
- if (!sessionUtil.getUserInfoByKey('access')) {
+ async checkLogin() {
+ if (!(await sessionUtil.getUserInfoByKey('access'))) {
wx.navigateTo({
url: '/pages/auth/auth',
});
@@ -278,8 +278,8 @@ Component({
url: '/package-meeting/meeting/detail?id=' + e.currentTarget.dataset.id,
});
},
- getMore(e) {
- if (!localMethod.checkLogin()) {
+ async getMore(e) {
+ if (!(await localMethod.checkLogin())) {
return;
}
this.setData({
@@ -290,7 +290,7 @@ Component({
});
const collectDesc = this.data.collectionId ? '取消收藏' : '收藏会议';
const userId = e.currentTarget.dataset.item.user_id;
- if (sessionUtil.getUserInfoByKey('level') === 1) {
+ if ((await sessionUtil.getUserInfoByKey('level')) === 1) {
this.setData({
actions: [
{
@@ -303,8 +303,8 @@ Component({
},
],
});
- } else if (sessionUtil.getUserInfoByKey('level') === 2) {
- if (sessionUtil.getUserInfoByKey('userId') === userId) {
+ } else if ((await sessionUtil.getUserInfoByKey('level')) === 2) {
+ if ((await sessionUtil.getUserInfoByKey('userId')) === userId) {
this.setData({
actions: [
{
diff --git a/src/openeuler/components/privacy-text/privacy-text.wxml b/src/openeuler/components/privacy-text/privacy-text.wxml
index 02824ba..6dae1d3 100644
--- a/src/openeuler/components/privacy-text/privacy-text.wxml
+++ b/src/openeuler/components/privacy-text/privacy-text.wxml
@@ -20,17 +20,6 @@
2. 我们在何种情况披露或共享您的个人信息
共享是指我们向第三方披露您的个人信息。我们仅会出于合法、正当、必要、特定、明确的目的共享您的个人信息,我们共享这些信息的目的仅限于本声明披露或在您允许的范围内进行。
a) 为了保护国家安全、公共安全以及您和其他个人的重大合法权益而需要共享您的个人信息。
-
-
- 第三方名称
-
-
- 处理目的和方式
-
-
- 第三方名称
-
-
3. 我们将保留多久您的个人信息
我们将会在达成本声明所述目的所需的期限内保留您的个人信息,除非按照法律要求或您的要求需要延长保留期。
一般而言,我们会自您使用本服务时获取您的个人信息之日起,根据可适用法律的要求或服务协议的约定,在留存期限内存储或保留您的个人信息。在您的个人信息超出保留期限后,且没有法律要求我们继续处理您的特定个人信息的情况下,我们将会根据可适用法律的要求删除您的个人信息,或进行匿名化处理。
diff --git a/src/openeuler/components/user-info/user-info.js b/src/openeuler/components/user-info/user-info.js
index 5d432b4..e3ee522 100644
--- a/src/openeuler/components/user-info/user-info.js
+++ b/src/openeuler/components/user-info/user-info.js
@@ -44,15 +44,15 @@ Component({
pageLifetimes: {
// 组件所在页面的生命周期函数
- show: function () {
+ show: async function () {
this.setData({
- isLogin: sessionUtil.getUserInfoByKey('access') || false,
+ isLogin: (await sessionUtil.getUserInfoByKey('access')) || false,
});
if (this.data.isLogin) {
this.setData({
- avatarUrl: sessionUtil.getUserInfoByKey('avatarUrl'),
+ avatarUrl: await sessionUtil.getUserInfoByKey('avatarUrl'),
text: localMethods.getCurText(),
- nickName: sessionUtil.getUserInfoByKey('nickName'),
+ nickName: await sessionUtil.getUserInfoByKey('nickName'),
});
}
},
diff --git a/src/openeuler/config/constants.js b/src/openeuler/config/constants.js
index 9968916..0151ce9 100644
--- a/src/openeuler/config/constants.js
+++ b/src/openeuler/config/constants.js
@@ -5,8 +5,8 @@ let _ = require('../utils/underscore-extend.js');
// 服务连接配置
let serviceConfig = {
- // SERVICE_URL: 'https://api.openeuler.org/meetings', // 正式环境
- SERVICE_URL: 'https://meetingserver-openeuler.test.osinfra.cn', // 测试环境
+ SERVICE_URL: 'https://api.openeuler.org/meetings', // 正式环境
+ // SERVICE_URL: 'https://meetingserver-openeuler.test.osinfra.cn', // 测试环境
// SERVICE_URL: 'https://meetings-beta.openeuler.org', // 测试环境
};
diff --git a/src/openeuler/custom-tab-bar/index.js b/src/openeuler/custom-tab-bar/index.js
index 026a360..e03df36 100644
--- a/src/openeuler/custom-tab-bar/index.js
+++ b/src/openeuler/custom-tab-bar/index.js
@@ -31,8 +31,8 @@ Component({
* 组件的方法列表
*/
methods: {
- switchTap: function (e) {
- if (!sessionUtil.getUserInfoByKey('access') && Number(e.currentTarget.dataset.index) === 3) {
+ switchTap: async function (e) {
+ if (!(await sessionUtil.getUserInfoByKey('access')) && Number(e.currentTarget.dataset.index) === 3) {
wx.navigateTo({
url: '/pages/auth/auth',
});
diff --git a/src/openeuler/package-events/events/event-detail.js b/src/openeuler/package-events/events/event-detail.js
index 651b291..306de58 100644
--- a/src/openeuler/package-events/events/event-detail.js
+++ b/src/openeuler/package-events/events/event-detail.js
@@ -113,13 +113,13 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
- onLoad: function (options) {
+ onLoad: async function (options) {
that = this;
this.setData({
id: options.id || decodeURIComponent(options.scene),
scene: decodeURIComponent(options.scene) || '',
type: options.type,
- level: sessionUtil.getUserInfoByKey('eventLevel') || 1,
+ level: (await sessionUtil.getUserInfoByKey('eventLevel')) || 1,
});
wx.getSystemInfo({
success(res) {
@@ -138,9 +138,9 @@ Page({
/**
* 生命周期函数--监听页面显示
*/
- onShow: function () {
+ onShow: async function () {
this.setData({
- user: sessionUtil.getUserInfoByKey('userId'),
+ user: await sessionUtil.getUserInfoByKey('userId'),
});
remoteMethods.getDraftDetail((res) => {
this.setData({
@@ -185,27 +185,6 @@ Page({
tabIndex: e.currentTarget.dataset.index,
});
},
- openLocation(e) {
- if (e.currentTarget.dataset.item.activity_type == 2) {
- return;
- }
- wx.showModal({
- title: '提示',
- content: '即将唤起腾讯地图,是否同意?',
- success(res) {
- if (res.confirm) {
- wx.openLocation({
- latitude: Number(e.currentTarget.dataset.item.latitude),
- longitude: Number(e.currentTarget.dataset.item.longitude),
- name: e.currentTarget.dataset.item.detail_address, // 名称
- address: e.currentTarget.dataset.item.address, // 地址
- });
- } else if (res.cancel) {
- return false;
- }
- },
- });
- },
toEditDraft() {
wx.redirectTo({
url: `/package-events/publish/publish?id=${this.data.id}&type=${this.data.type}`,
@@ -270,10 +249,10 @@ Page({
},
copyLink: function () {
wx.setClipboardData({
- data: this.data.info.join_url,
- success: function () {
+ data: this.data.info.register_url,
+ success: () => {
that.setData({
- showDialog: false,
+ showRegister: false,
});
},
});
diff --git a/src/openeuler/package-events/events/event-detail.wxml b/src/openeuler/package-events/events/event-detail.wxml
index b8aa7e8..0244216 100644
--- a/src/openeuler/package-events/events/event-detail.wxml
+++ b/src/openeuler/package-events/events/event-detail.wxml
@@ -1,7 +1,8 @@
-
+
{{info.title}}
@@ -20,16 +21,15 @@
{{info.date}}
-
+
{{info.address}}
- {{info.join_url}}
+ {{info.register_url}}
-
@@ -112,7 +112,8 @@
立即报名
- 修改日程
+ 修改日程
@@ -133,7 +134,8 @@
立即报名
-
+
{{info.register_url}}
diff --git a/src/openeuler/package-events/events/event-detail.wxss b/src/openeuler/package-events/events/event-detail.wxss
index 413f2db..1463b09 100644
--- a/src/openeuler/package-events/events/event-detail.wxss
+++ b/src/openeuler/package-events/events/event-detail.wxss
@@ -121,6 +121,11 @@ page {
align-items: center;
}
+.container .detail-wrapper .address .left {
+ display: flex;
+ align-items: center;
+}
+
.container .detail-wrapper .address .left image {
width: 28rpx;
height: 28rpx;
@@ -134,7 +139,6 @@ page {
color: #6d7278;
overflow: hidden;
text-overflow: ellipsis;
- white-space: nowrap;
display: inline-block;
}
diff --git a/src/openeuler/package-events/events/event-list.js b/src/openeuler/package-events/events/event-list.js
index 56f8f8d..0e03cbf 100644
--- a/src/openeuler/package-events/events/event-list.js
+++ b/src/openeuler/package-events/events/event-list.js
@@ -139,11 +139,11 @@ Page({
onLoad: function () {
that = this;
this.initData();
- remoteMethods.getCount((res) => {
+ remoteMethods.getCount(async (res) => {
this.setData({
'pageParams.page': 1,
- level: sessionUtil.getUserInfoByKey('eventLevel') || 1,
- user: sessionUtil.getUserInfoByKey('userId'),
+ level: (await sessionUtil.getUserInfoByKey('eventLevel')) || 1,
+ user: await sessionUtil.getUserInfoByKey('userId'),
allNum: res.all_activities_count,
signUpNum: res.registering_activities_count,
goingNum: res.going_activities_count,
diff --git a/src/openeuler/package-events/manage/add-member.js b/src/openeuler/package-events/manage/add-member.js
index 9ad45b3..dcf5cd7 100644
--- a/src/openeuler/package-events/manage/add-member.js
+++ b/src/openeuler/package-events/manage/add-member.js
@@ -115,6 +115,7 @@ Page({
},
searchInput: function (e) {
this.setData({
+ 'pageParams.page': 1,
keyword: e.detail.value,
});
this.initData();
diff --git a/src/openeuler/package-meeting/meeting/detail.js b/src/openeuler/package-meeting/meeting/detail.js
index 34cdf52..884bf80 100644
--- a/src/openeuler/package-meeting/meeting/detail.js
+++ b/src/openeuler/package-meeting/meeting/detail.js
@@ -50,6 +50,7 @@ Page({
id: '',
info: {},
collection_id: null,
+ isLogin: false,
},
/**
@@ -74,8 +75,11 @@ Page({
/**
* 生命周期函数--监听页面显示
*/
- onShow: function () {
+ onShow: async function () {
let that = this;
+ this.setData({
+ isLogin: (await sessionUtil.getUserInfoByKey('access')) ? true : false,
+ });
remoteMethods.getMeetingDetail(this.data.id, function (data) {
if (data) {
that.setData({
@@ -92,16 +96,16 @@ Page({
path: `/package-meeting/meeting/detail?id=${this.data.id}`,
};
},
- collect: function () {
+ collect: async function () {
let that = this;
- if (!sessionUtil.getUserInfoByKey('access')) {
+ if (!this.data.isLogin) {
wx.navigateTo({
url: '/pages/auth/auth',
});
return;
}
if (this.data.collection_id != null) {
- remoteMethods.uncollect(this.data.collection_id, function (res) {
+ remoteMethods.uncollect(this.data.collection_id, function () {
that.setData({
collection_id: null,
});
@@ -118,6 +122,9 @@ Page({
}
});
},
+ fail(err) {
+ console.log(err);
+ },
});
}
},
diff --git a/src/openeuler/package-meeting/reserve/reserve.js b/src/openeuler/package-meeting/reserve/reserve.js
index ad40269..8958488 100644
--- a/src/openeuler/package-meeting/reserve/reserve.js
+++ b/src/openeuler/package-meeting/reserve/reserve.js
@@ -192,6 +192,7 @@ Page({
agenda: '',
emaillist: '',
privacyState: false,
+ sendDev: false,
});
},
meeting: function () {
@@ -328,13 +329,12 @@ Page({
/**
* 生命周期函数--监听页面显示
*/
- onShow: function () {
- that = this;
+ onShow: async function () {
this.setData({
- sponsor: appSession.getUserInfoByKey('gitee') || '',
+ sponsor: (await appSession.getUserInfoByKey('gitee')) || '',
});
let that = this;
- remoteMethods.getUserGroup(appSession.getUserInfoByKey('userId'), function (data) {
+ remoteMethods.getUserGroup(await appSession.getUserInfoByKey('userId'), function (data) {
if (data && data.length) {
that.setData({
sigList: data,
diff --git a/src/openeuler/package-my/events/my-list.js b/src/openeuler/package-my/events/my-list.js
index c9904f2..f537475 100644
--- a/src/openeuler/package-my/events/my-list.js
+++ b/src/openeuler/package-my/events/my-list.js
@@ -5,6 +5,7 @@ const sessionUtil = require('../../utils/app-session.js');
let that = null;
let remoteMethods = {
getList: function (params, _callback) {
+ console.log(that.data.type);
let service = '';
if (that.data.type == 4) {
service = 'GET_DRAFT_LIST';
@@ -119,40 +120,36 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
- onLoad: function (options) {
+ onLoad: async function (options) {
+ let type = Number(options.type);
this.setData({
- type: options.type,
- level: sessionUtil.getUserInfoByKey('eventLevel'),
- user: sessionUtil.getUserInfoByKey('userId'),
+ type: type,
+ level: await sessionUtil.getUserInfoByKey('eventLevel'),
+ user: await sessionUtil.getUserInfoByKey('userId'),
});
that = this;
let title = '';
- if (options.type == 1) {
+ if (type === 1) {
title = '待发布';
- } else if (options.type == 2) {
+ } else if (type === 2) {
title = '已发布';
- } else if (options.type == 3) {
+ } else if (type === 3) {
title = '报名表单';
- } else if (options.type == 4) {
+ } else if (type === 4) {
title = '草稿箱';
- } else if (options.type == 5) {
+ } else if (type === 5) {
title = '发布中';
- } else if (options.type == 6) {
+ } else if (type === 6) {
title = '我收藏的活动';
- } else if (options.type == 7) {
+ } else if (type === 7) {
title = '我报名的活动';
}
wx.setNavigationBarTitle({
title,
});
- },
-
- /**
- * 生命周期函数--监听页面显示
- */
- onShow: function () {
this.initData();
},
+
initData() {
let renderData = [];
remoteMethods.getList(this.data.pageParams, (data) => {
@@ -198,8 +195,8 @@ Page({
remoteMethods.delDraft(() => {
this.initialization();
});
- } else if (this.data.type == 2 || this.data.type == 6 || this.data.type == 7) {
- if (this.data.level == 3) {
+ } else if (this.data.type === 2 || this.data.type === 6 || this.data.type === 7) {
+ if (this.data.level === 3) {
if (e.detail.operaType == 1) {
if (this.data.collectionId) {
remoteMethods.unCollect(() => {
@@ -216,7 +213,7 @@ Page({
});
}
} else {
- if (e.detail.operaType == 1) {
+ if (e.detail.operaType === 1) {
if (this.data.collectionId) {
remoteMethods.unCollect(() => {
this.initialization();
@@ -226,7 +223,7 @@ Page({
this.initialization();
});
}
- } else if (e.detail.operaType == 3) {
+ } else if (e.detail.operaType === 3) {
return;
} else {
this.setData({
diff --git a/src/openeuler/package-my/my/privecy-seting.js b/src/openeuler/package-my/my/privecy-seting.js
index 8233959..9075762 100644
--- a/src/openeuler/package-my/my/privecy-seting.js
+++ b/src/openeuler/package-my/my/privecy-seting.js
@@ -41,13 +41,13 @@ Page({
isLogoffDiaShown: false,
content: '',
deleteText: '',
- gitee: ''
+ gitee: '',
},
- onLoad: function () {
+ onLoad: async function () {
this.setData({
- avatarUrl: sessionUtil.getUserInfoByKey('avatarUrl'),
- nickName: sessionUtil.getUserInfoByKey('nickName'),
- gitee: sessionUtil.getUserInfoByKey('gitee'),
+ avatarUrl: await sessionUtil.getUserInfoByKey('avatarUrl'),
+ nickName: await sessionUtil.getUserInfoByKey('nickName'),
+ gitee: await sessionUtil.getUserInfoByKey('gitee'),
});
},
shownDialog: function (e) {
@@ -70,8 +70,16 @@ Page({
});
return false;
}
- remoteMethods.handleLogoff(() => {
- this.handleLogout();
+ remoteMethods.handleLogoff((res) => {
+ if (res.code === 200) {
+ this.handleLogout();
+ } else {
+ wx.showToast({
+ title: res.msg,
+ icon: 'none',
+ duration: 2000,
+ });
+ }
});
},
confirmLogout: function () {
@@ -96,4 +104,4 @@ Page({
isPrivecyDiaShown: false,
});
},
-});
\ No newline at end of file
+});
diff --git a/src/openeuler/pages/auth/auth.js b/src/openeuler/pages/auth/auth.js
index 46b8b4c..0528ce5 100644
--- a/src/openeuler/pages/auth/auth.js
+++ b/src/openeuler/pages/auth/auth.js
@@ -3,6 +3,7 @@ const mixin = require('../../utils/page-mixin.js').$pageMixin;
const appUser = require('../../utils/app-user.js');
const appAjax = require('./../../utils/app-ajax');
const sessionUtil = require('../../utils/app-session.js');
+const { getStorageSync, setStorageSync } = require('../../utils/utils');
let that = null;
Page(
@@ -25,7 +26,6 @@ Page(
}
},
bindGetUserProfile() {
- console.log(555);
if (!this.data.record) {
wx.showToast(
{
@@ -37,13 +37,14 @@ Page(
);
return false;
}
- appUser.wxGetUserProfileLogin(function () {
+ appUser.wxGetUserProfileLogin(async function () {
const pages = getCurrentPages(); // 当前页面
const beforePage =
pages[pages.length - 2]?.route === 'pages/auth/auth' ? pages[pages.length - 3] : pages[pages.length - 2]; // 前一个页面
const id = beforePage?.options.id || that.data.id;
const url = id ? '/' + beforePage?.route + '?id=' + id : '/' + beforePage?.route;
- if (!sessionUtil.getUserInfoByKey('agreePrivacy')) {
+ console.log(await sessionUtil.getUserInfoByKey('agreePrivacy'));
+ if (!(await sessionUtil.getUserInfoByKey('agreePrivacy'))) {
that.setData({
isPrivecyShown: true,
url: url,
@@ -88,26 +89,22 @@ Page(
},
});
},
- setStorage: function () {
- // let data = wx.getStorageSync('_app_userinfo_session');
- // data.agreePrivacy = true;
- // wx.setStorageSync('_app_userinfo_session', data);
- wx.getStorage({
- key: '_app_userinfo_session',
- encrypt: true,
- success(data) {
- data.agreePrivacy = true;
- wx.setStorage({
- key: '_app_userinfo_session',
- encrypt: true,
- data: data,
- });
- },
- });
+ setStorage: async function () {
+ try {
+ let data = await getStorageSync('_app_userinfo_session');
+ data.agreePrivacy = true;
+ await setStorageSync('_app_userinfo_session', data);
+ } catch (error) {
+ wx.removeStorageSync('_app_userinfo_session');
+ }
},
handleClick: function () {
- this.setAgreeState(() => {
- this.setStorage();
+ this.setAgreeState((res) => {
+ if (res.code === 200) {
+ this.setStorage();
+ } else {
+ wx.removeStorageSync('_app_userinfo_session');
+ }
this.setData({
isPrivecyShown: false,
});
diff --git a/src/openeuler/pages/events/events.js b/src/openeuler/pages/events/events.js
index 0cbf301..0a7220b 100644
--- a/src/openeuler/pages/events/events.js
+++ b/src/openeuler/pages/events/events.js
@@ -101,10 +101,10 @@ Page({
this.setData({
iphoneX: this.getTabBar().data.iPhoneX,
});
- appUser.updateUserInfo(function () {
+ appUser.updateUserInfo(async function () {
that.setData({
- level: sessionUtil.getUserInfoByKey('eventLevel') || 1,
- user: sessionUtil.getUserInfoByKey('userId'),
+ level: (await sessionUtil.getUserInfoByKey('eventLevel')) || 1,
+ user: await sessionUtil.getUserInfoByKey('userId'),
});
});
this.initData();
@@ -117,9 +117,9 @@ Page({
_tabbat: 2,
});
},
- navigateTo(e) {
+ async navigateTo(e) {
const url = e.currentTarget.dataset.url;
- if (url.includes('publish') && !sessionUtil.getUserInfoByKey('access')) {
+ if (url.includes('publish') && !(await sessionUtil.getUserInfoByKey('access'))) {
wx.navigateTo({
url: '/pages/auth/auth',
});
@@ -306,12 +306,6 @@ Page({
}
},
toUpdateSchedule(e) {
- if (!sessionUtil.getUserInfoByKey('access')) {
- wx.navigateTo({
- url: '/pages/auth/auth',
- });
- return;
- }
wx.navigateTo({
url: `/package-events/events/event-detail?id=${e.currentTarget.dataset.id}&type=5`,
});
diff --git a/src/openeuler/pages/index/index.js b/src/openeuler/pages/index/index.js
index 2d3f186..e193d1a 100644
--- a/src/openeuler/pages/index/index.js
+++ b/src/openeuler/pages/index/index.js
@@ -18,8 +18,8 @@ Page(
meetingConponent: null,
autoplay: false,
},
- handleContact(e) {
- if (!sessionUtil.getUserInfoByKey('access')) {
+ async handleContact(e) {
+ if (!(await sessionUtil.getUserInfoByKey('access'))) {
wx.navigateTo({
url: '/pages/auth/auth',
});
@@ -71,8 +71,8 @@ Page(
});
}
},
- checkLogin() {
- if (!sessionUtil.getUserInfoByKey('access')) {
+ async checkLogin() {
+ if (!(await sessionUtil.getUserInfoByKey('access'))) {
wx.navigateTo({
url: '/pages/auth/auth',
});
diff --git a/src/openeuler/pages/meeting/meeting.js b/src/openeuler/pages/meeting/meeting.js
index d0e3e11..3b9aa64 100644
--- a/src/openeuler/pages/meeting/meeting.js
+++ b/src/openeuler/pages/meeting/meeting.js
@@ -25,9 +25,9 @@ Page(
});
let that = this;
- appUser.updateUserInfo(function () {
+ appUser.updateUserInfo(async function () {
that.setData({
- level: sessionUtil.getUserInfoByKey('level'),
+ level: await sessionUtil.getUserInfoByKey('level'),
});
});
},
@@ -43,9 +43,9 @@ Page(
},
onPullDownRefresh: function () {
wx.stopPullDownRefresh();
- appUser.updateUserInfo(() => {
+ appUser.updateUserInfo(async () => {
this.setData({
- level: sessionUtil.getUserInfoByKey('level') || 1,
+ level: (await sessionUtil.getUserInfoByKey('level')) || 1,
});
});
this.data.meetingConponent?.initData();
@@ -65,9 +65,9 @@ Page(
});
}
},
- navigateTo(e) {
+ async navigateTo(e) {
const url = e.currentTarget.dataset.url;
- if (url.includes('reserve') && !sessionUtil.getUserInfoByKey('access')) {
+ if (url.includes('reserve') && !(await sessionUtil.getUserInfoByKey('access'))) {
wx.navigateTo({
url: '/pages/auth/auth',
});
diff --git a/src/openeuler/pages/my/my.js b/src/openeuler/pages/my/my.js
index 8fbb3ca..23a5184 100644
--- a/src/openeuler/pages/my/my.js
+++ b/src/openeuler/pages/my/my.js
@@ -31,14 +31,22 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function () {
- this.setData({
- iphoneX: this.getTabBar().data.iPhoneX,
- avatarUrl: sessionUtil.getUserInfoByKey('avatarUrl'),
- nickName: sessionUtil.getUserInfoByKey('nickName'),
- level: sessionUtil.getUserInfoByKey('level'),
- userId: sessionUtil.getUserInfoByKey('userId'),
- avtivityLevel: sessionUtil.getUserInfoByKey('eventLevel'),
+ let that = this;
+ wx.getStorage({
+ key: '_app_userinfo_session',
+ encrypt: true,
+ success(res) {
+ that.setData({
+ iphoneX: that.getTabBar().data.iPhoneX,
+ avatarUrl: res.data?.avatarUrl,
+ nickName: res.data?.nickName,
+ level: res.data?.level,
+ userId: res.data?.userId,
+ avtivityLevel: res.data?.eventLevel,
+ });
+ },
});
+
remoteMethods.getMyCount((res) => {
this.setData({
myCount: res,
diff --git a/src/openeuler/utils/app-ajax.js b/src/openeuler/utils/app-ajax.js
index eaf4c6a..beadb5c 100644
--- a/src/openeuler/utils/app-ajax.js
+++ b/src/openeuler/utils/app-ajax.js
@@ -2,6 +2,7 @@ const underscore = require('./underscore-extend.js');
const servicesConfig = require('../config/services-config.js');
const CONSTANTS = require('../config/constants.js');
const sessionUtil = require('./app-session.js');
+const { getStorageSync, setStorageSync } = require('./utils');
let remoteMethods = {
refreshToken: function (refresh, _callback) {
@@ -51,10 +52,10 @@ const _addUrlParam = function (data) {
let messageQueue = [];
let isRefreshing = false;
-const handleSuccessfulRefresh = function (newTokens, userData) {
+const handleSuccessfulRefresh = async function (newTokens, userData) {
userData.access = newTokens.access;
userData.refresh = newTokens.refresh;
- wx.setStorageSync(CONSTANTS.APP_USERINFO_SESSION, userData);
+ await setStorageSync(CONSTANTS.APP_USERINFO_SESSION, userData);
processMessageQueue();
isRefreshing = false;
};
@@ -83,8 +84,14 @@ const appAjax = {
* error: "", // 失败回调
* complete: "" // 完成回调
*/
- postJson: function (params) {
+ postJson: async function (params) {
// 默认参数
+ let storage;
+ try {
+ storage = await getStorageSync(CONSTANTS.APP_USERINFO_SESSION);
+ } catch (error) {
+ storage = null;
+ }
let defaultParams = {
service: '', // 服务的配置名称
success: function () {}, // 成功后回调
@@ -93,9 +100,7 @@ const appAjax = {
loadingText: '加载中...', // 加载的提示语
autoCloseWait: true, // 自动关闭菊花
headers: {
- Authorization: wx.getStorageSync(CONSTANTS.APP_USERINFO_SESSION).access
- ? 'Bearer ' + wx.getStorageSync(CONSTANTS.APP_USERINFO_SESSION).access
- : '',
+ Authorization: storage ? 'Bearer ' + storage.access : '',
},
};
let isShowToast = false;
@@ -122,11 +127,10 @@ const appAjax = {
header: ajaxParams.headers,
method: ajaxParams['type'] || 'POST',
data: ajaxParams.data,
- success: function (res) {
- const data = wx.getStorageSync(CONSTANTS.APP_USERINFO_SESSION);
- if (res?.data?.access && data) {
- data.access = res.data.access;
- wx.setStorageSync(CONSTANTS.APP_USERINFO_SESSION, data);
+ success: async function (res) {
+ if (res?.data?.access && storage) {
+ storage.access = res.data.access;
+ await setStorageSync(CONSTANTS.APP_USERINFO_SESSION, storage);
}
ajaxParams.success(res.data, res);
@@ -142,21 +146,24 @@ const appAjax = {
message = '有点忙开个小差,稍后再试~';
}
// 刷新token
- if (res.statusCode === 401 && data && params.service !== 'REFRESH') {
+ if (res.statusCode === 401 && storage && params.service !== 'REFRESH') {
messageQueue.push(params);
if (!isRefreshing) {
isRefreshing = true;
- remoteMethods.refreshToken(data?.refresh, (res) => {
+ remoteMethods.refreshToken(storage?.refresh, (res) => {
if (!res.refresh) {
clearUserDataAndNavigate();
} else {
- handleSuccessfulRefresh(res, data);
+ handleSuccessfulRefresh(res, storage);
}
isRefreshing = false;
});
}
return;
}
+ if (res.statusCode === 401 && !storage) {
+ clearUserDataAndNavigate();
+ }
if (ajaxParams.error) {
ajaxParams.error(message, res);
} else {
diff --git a/src/openeuler/utils/app-session.js b/src/openeuler/utils/app-session.js
index aa2d05a..8daed39 100644
--- a/src/openeuler/utils/app-session.js
+++ b/src/openeuler/utils/app-session.js
@@ -1,10 +1,16 @@
const constants = require('../config/constants.js');
+const { getStorageSync } = require('./utils');
+
/**
* 获取用户信息
*/
-const _getUserinfo = function () {
- const userInfo = wx.getStorageSync(constants.APP_USERINFO_SESSION);
-
+const _getUserinfo = async function () {
+ let userInfo;
+ try {
+ userInfo = await getStorageSync(constants.APP_USERINFO_SESSION);
+ } catch (error) {
+ userInfo = null;
+ }
return userInfo;
};
@@ -12,12 +18,12 @@ const _getUserinfo = function () {
* 通过key获取值
* @params key
*/
-const _getValueByKey = function (key) {
+const _getValueByKey = async function (key) {
if (!key) {
return;
}
- const userinfo = _getUserinfo();
+ const userinfo = await _getUserinfo();
if (!userinfo) {
return;
diff --git a/src/openeuler/utils/app-user.js b/src/openeuler/utils/app-user.js
index 2f969c2..22a7032 100644
--- a/src/openeuler/utils/app-user.js
+++ b/src/openeuler/utils/app-user.js
@@ -1,6 +1,7 @@
const appAjax = require('./app-ajax.js');
const appSession = require('./app-session.js');
const constants = require('../config/constants');
+const { getStorageSync, setStorageSync } = require('./utils');
const app = getApp();
const privateMethods = {
@@ -138,12 +139,17 @@ const appUser = {
* 保存用户信息
* @param {Object} result
*/
- saveLoginInfo: function (result) {
- wx.setStorageSync(constants.APP_USERINFO_SESSION, result);
+ saveLoginInfo: async function (result) {
+ await setStorageSync(constants.APP_USERINFO_SESSION, result);
},
- updateUserInfo: function (callback) {
- let userInfo = wx.getStorageSync(constants.APP_USERINFO_SESSION);
+ updateUserInfo: async function (callback) {
+ let userInfo;
+ try {
+ userInfo = await getStorageSync(constants.APP_USERINFO_SESSION);
+ } catch (error) {
+ userInfo = null;
+ }
if (userInfo && userInfo.userId) {
appAjax.postJson({
type: 'GET',
@@ -151,16 +157,16 @@ const appUser = {
otherParams: {
id: userInfo.userId,
},
- success: function (ret) {
+ success: async function (ret) {
if (ret) {
// 更新userInfo数据
- userInfo = wx.getStorageSync(constants.APP_USERINFO_SESSION);
+ userInfo = await getStorageSync(constants.APP_USERINFO_SESSION);
userInfo.gitee = ret.gitee_name;
userInfo.level = ret.level;
userInfo.nickName = ret.nickname;
userInfo.avatarUrl = ret.avatar;
userInfo.eventLevel = ret.activity_level;
- wx.setStorageSync(constants.APP_USERINFO_SESSION, userInfo);
+ await setStorageSync(constants.APP_USERINFO_SESSION, userInfo);
}
callback && callback();
},
@@ -190,7 +196,7 @@ const appUser = {
data: {
code: data.code,
},
- success: function (result) {
+ success: async function (result) {
userInfo.agreePrivacy = result.agree_privacy_policy;
userInfo.access = result.access;
userInfo.level = result.level;
@@ -201,7 +207,7 @@ const appUser = {
userInfo.avatarUrl = result.avatar;
userInfo.refresh = result.refresh;
// // 缓存用户信息
- appUser.saveLoginInfo(userInfo || {});
+ await appUser.saveLoginInfo(userInfo || {});
// 回调
callback && callback(userInfo || {});
},
diff --git a/src/openeuler/utils/utils.js b/src/openeuler/utils/utils.js
index 3e98206..a9e2622 100644
--- a/src/openeuler/utils/utils.js
+++ b/src/openeuler/utils/utils.js
@@ -30,6 +30,29 @@ let utils = {
return fmt;
};
},
+ setStorageSync(key, data) {
+ return new Promise((resolve, reject) => {
+ wx.setStorage({
+ key: key,
+ data: data,
+ encrypt: true,
+ success: resolve,
+ fail: reject,
+ });
+ });
+ },
+ getStorageSync(key) {
+ return new Promise((resolve, reject) => {
+ wx.getStorage({
+ key: key,
+ encrypt: true,
+ success: (res) => {
+ resolve(res.data);
+ },
+ fail: reject,
+ });
+ });
+ },
};
module.exports = utils;
--
Gitee
From aeb675fe6d723c65724f0a19d32849e8ea1e5e50 Mon Sep 17 00:00:00 2001
From: haml-707 <845831435@qq.com>
Date: Sat, 18 Nov 2023 21:18:17 +0800
Subject: [PATCH 07/10] =?UTF-8?q?docs:=20=E9=9A=90=E7=A7=81=E5=A3=B0?=
=?UTF-8?q?=E6=98=8E=E5=88=B7=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/privacy-text/privacy-text.wxml | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/openeuler/components/privacy-text/privacy-text.wxml b/src/openeuler/components/privacy-text/privacy-text.wxml
index 6dae1d3..525070e 100644
--- a/src/openeuler/components/privacy-text/privacy-text.wxml
+++ b/src/openeuler/components/privacy-text/privacy-text.wxml
@@ -6,23 +6,23 @@
版本更新说明
请您仔细阅读此次隐私声明的更新内容:
1. “我们如何收集和处理您的个人信息” 章节中,根据个人信息处理的合法基础进行了刷新。
- 2. “如何访问或控制您的个人信息” 章节中,该等权利刷新为上述权利。
+ 2. “我们将保留多久您的个人信息” 章节中,对时间进行了更新。
+ 3. “如何访问或控制您的个人信息” 章节中,该等权利刷新为上述权利。
1.我们如何收集和处理您的个人信息
- a ) 当您登录时,我们会收集您的OpenID用于确认您的身份。
+ a ) 当您登录时,我们会收集您的OpenID用于,用于记录您微信与本服务的绑定关系,以确保您账号的唯一性。当您收藏会议并同意接收微信通知的消息推送,在会议即将开始前,我们会使用您的微信OpenID通过微信通知为您发送会议开始提醒。
b ) 当您预定会议之前,我们会收集您的Gitee ID和所属SIG组名称,用于配置预定会议权限,并作为会议信息的部分展示在小程序。
c ) 当您预定会议时,如您填写邮箱地址我们会收集填您填写的邮箱并向其发送会议通知。
d ) 当您创建会议后,我们会将您的Gitee ID及会议相关信息同步至本服务页面及openEuler社区网站(https://www.openeuler.org)以便对您的会议感兴趣的个人或组织及时获取相关信息。
e ) 当您创建活动之前,我们会收集您的Gitee ID用于配置活动发布权限。
- f ) 当您为您创建的活动添加议题时,我们会收集您所填写议题的嘉宾名称、职位用于在活动议题的内容中展示。
- g ) 当您在发布活动时,为方便您快速填写活动地址,我们在获取您的明示同意后会关联启动腾讯地图。如您同意启动我们会获取你选择的活动地址信息。
- h ) 当您在保存二维码时,我们会申请您的相册保存权限,保存二维码。
- i ) 当您点击“复制”按钮及复制图标时,我们会使用你的剪切板,用于快速复制信息。
+ f ) 当您创建的活动编辑活动地图时,为方便您快速填写活动地址,我们在获取您的明示同意后会关联启动腾讯地图。如您同意启动我们会获取你选择的活动地址。当您为您创建的活动添加议题时,我们会收集您所填写议题的嘉宾名称、职位、议题内容用于在活动议题的内容中及openEuler社区网站(https://www.openeuler.org)展示。
+ g ) 当您在保存二维码时,我们会申请您的相册保存权限,保存二维码。
+ h ) 当您点击“复制”按钮及复制图标时,我们会使用你的剪切板,用于快速复制信息。
2. 我们在何种情况披露或共享您的个人信息
共享是指我们向第三方披露您的个人信息。我们仅会出于合法、正当、必要、特定、明确的目的共享您的个人信息,我们共享这些信息的目的仅限于本声明披露或在您允许的范围内进行。
a) 为了保护国家安全、公共安全以及您和其他个人的重大合法权益而需要共享您的个人信息。
3. 我们将保留多久您的个人信息
我们将会在达成本声明所述目的所需的期限内保留您的个人信息,除非按照法律要求或您的要求需要延长保留期。
- 一般而言,我们会自您使用本服务时获取您的个人信息之日起,根据可适用法律的要求或服务协议的约定,在留存期限内存储或保留您的个人信息。在您的个人信息超出保留期限后,且没有法律要求我们继续处理您的特定个人信息的情况下,我们将会根据可适用法律的要求删除您的个人信息,或进行匿名化处理。
+ 一般而言,我们会自您使用本服务时获取您的个人信息之日起,根据可适用法律的要求或服务协议的约定,在36个月留存期限内存储或保留您的个人信息。在您的个人信息超出保留期限后,且没有法律要求我们继续处理您的特定个人信息的情况下,我们将会根据可适用法律的要求删除您的个人信息,或进行匿名化处理。
4. 我们将如何保护您的个人信息
我们重视您的个人信息安全。我们采用适当的物理、管理和技术保障措施来保护您的个人信息。例如,我们会使用加密技术确保信息的机密性;我们会使用保护机制防止信息遭到恶意攻击;我们会部署访问控制机制,确保只有授权人员才可访问个人信息;以及我们会举办安全和隐私保护培训等。总之,我们会尽力保护您的个人信息。尽管如此,任何措施都无法做到无懈可击,也没有任何产品与服务、网站、信息传输、计算机系统、网络连接是绝对安全的。
5. 如何访问或控制您的个人信息
@@ -45,7 +45,7 @@
如果您对本协议有任何疑问或主张任何与个人信息有关的权利,您可以通过以下方式与我们联系
联系邮箱:contact@openeuler.io
联系热线:+86 18683791700
- 最近更新时间:2023年10月28日
- 隐私声明版本:v2023102801
+ 最近更新时间:2023年11月18日
+ 隐私声明版本:v202311月18日
\ No newline at end of file
--
Gitee
From d71b7b44a9fa7e0ca2b6cdb20ecabb858bc83fe8 Mon Sep 17 00:00:00 2001
From: haml-707 <845831435@qq.com>
Date: Sat, 18 Nov 2023 21:25:14 +0800
Subject: [PATCH 08/10] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=20console?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/openeuler/package-meeting/meeting/detail.js | 3 ---
src/openeuler/package-my/events/my-list.js | 1 -
src/openeuler/pages/auth/auth.js | 1 -
3 files changed, 5 deletions(-)
diff --git a/src/openeuler/package-meeting/meeting/detail.js b/src/openeuler/package-meeting/meeting/detail.js
index 884bf80..b169f79 100644
--- a/src/openeuler/package-meeting/meeting/detail.js
+++ b/src/openeuler/package-meeting/meeting/detail.js
@@ -122,9 +122,6 @@ Page({
}
});
},
- fail(err) {
- console.log(err);
- },
});
}
},
diff --git a/src/openeuler/package-my/events/my-list.js b/src/openeuler/package-my/events/my-list.js
index f537475..d1c320b 100644
--- a/src/openeuler/package-my/events/my-list.js
+++ b/src/openeuler/package-my/events/my-list.js
@@ -5,7 +5,6 @@ const sessionUtil = require('../../utils/app-session.js');
let that = null;
let remoteMethods = {
getList: function (params, _callback) {
- console.log(that.data.type);
let service = '';
if (that.data.type == 4) {
service = 'GET_DRAFT_LIST';
diff --git a/src/openeuler/pages/auth/auth.js b/src/openeuler/pages/auth/auth.js
index 0528ce5..bba834f 100644
--- a/src/openeuler/pages/auth/auth.js
+++ b/src/openeuler/pages/auth/auth.js
@@ -43,7 +43,6 @@ Page(
pages[pages.length - 2]?.route === 'pages/auth/auth' ? pages[pages.length - 3] : pages[pages.length - 2]; // 前一个页面
const id = beforePage?.options.id || that.data.id;
const url = id ? '/' + beforePage?.route + '?id=' + id : '/' + beforePage?.route;
- console.log(await sessionUtil.getUserInfoByKey('agreePrivacy'));
if (!(await sessionUtil.getUserInfoByKey('agreePrivacy'))) {
that.setData({
isPrivecyShown: true,
--
Gitee
From df57df2ffb5679cfbdb77e9a83e28172e15c169b Mon Sep 17 00:00:00 2001
From: haml-707 <845831435@qq.com>
Date: Tue, 21 Nov 2023 10:37:58 +0800
Subject: [PATCH 09/10] =?UTF-8?q?feat:=20=E5=88=A0=E9=99=A4=E6=9C=AA?=
=?UTF-8?q?=E4=BD=BF=E7=94=A8=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/openeuler/config/constants.js | 4 +-
.../@vant/weapp/action-sheet/index.js | 74 ----
.../@vant/weapp/action-sheet/index.json | 8 -
.../@vant/weapp/action-sheet/index.wxml | 69 ----
.../@vant/weapp/action-sheet/index.wxss | 1 -
.../miniprogram_npm/@vant/weapp/area/index.js | 235 -----------
.../@vant/weapp/area/index.json | 6 -
.../@vant/weapp/area/index.wxml | 20 -
.../@vant/weapp/area/index.wxs | 8 -
.../@vant/weapp/area/index.wxss | 1 -
.../@vant/weapp/button/index.js | 67 ----
.../@vant/weapp/button/index.json | 7 -
.../@vant/weapp/button/index.wxml | 56 ---
.../@vant/weapp/button/index.wxs | 39 --
.../@vant/weapp/button/index.wxss | 1 -
.../@vant/weapp/calendar/calendar.wxml | 68 ----
.../weapp/calendar/components/header/index.js | 45 ---
.../calendar/components/header/index.json | 3 -
.../calendar/components/header/index.wxml | 16 -
.../calendar/components/header/index.wxss | 1 -
.../weapp/calendar/components/month/index.js | 158 --------
.../calendar/components/month/index.json | 3 -
.../calendar/components/month/index.wxml | 39 --
.../weapp/calendar/components/month/index.wxs | 71 ----
.../calendar/components/month/index.wxss | 1 -
.../@vant/weapp/calendar/index.js | 379 ------------------
.../@vant/weapp/calendar/index.json | 10 -
.../@vant/weapp/calendar/index.wxml | 26 --
.../@vant/weapp/calendar/index.wxs | 37 --
.../@vant/weapp/calendar/index.wxss | 1 -
.../@vant/weapp/calendar/utils.js | 97 -----
.../@vant/weapp/calendar/utils.wxs | 25 --
.../miniprogram_npm/@vant/weapp/card/index.js | 51 ---
.../@vant/weapp/card/index.json | 6 -
.../@vant/weapp/card/index.wxml | 56 ---
.../@vant/weapp/card/index.wxss | 1 -
.../@vant/weapp/cell-group/index.js | 13 -
.../@vant/weapp/cell-group/index.json | 3 -
.../@vant/weapp/cell-group/index.wxml | 11 -
.../@vant/weapp/cell-group/index.wxss | 1 -
.../miniprogram_npm/@vant/weapp/cell/index.js | 40 --
.../@vant/weapp/cell/index.json | 6 -
.../@vant/weapp/cell/index.wxml | 47 ---
.../@vant/weapp/cell/index.wxs | 17 -
.../@vant/weapp/cell/index.wxss | 1 -
.../@vant/weapp/checkbox-group/index.js | 39 --
.../@vant/weapp/checkbox-group/index.json | 3 -
.../@vant/weapp/checkbox-group/index.wxml | 5 -
.../@vant/weapp/checkbox-group/index.wxss | 1 -
.../@vant/weapp/checkbox/index.js | 79 ----
.../@vant/weapp/checkbox/index.json | 6 -
.../@vant/weapp/checkbox/index.wxml | 31 --
.../@vant/weapp/checkbox/index.wxs | 20 -
.../@vant/weapp/checkbox/index.wxss | 1 -
.../@vant/weapp/circle/canvas.js | 47 ---
.../@vant/weapp/circle/index.js | 207 ----------
.../@vant/weapp/circle/index.json | 3 -
.../@vant/weapp/circle/index.wxml | 9 -
.../@vant/weapp/circle/index.wxss | 1 -
.../miniprogram_npm/@vant/weapp/col/index.js | 11 -
.../@vant/weapp/col/index.json | 3 -
.../@vant/weapp/col/index.wxml | 9 -
.../miniprogram_npm/@vant/weapp/col/index.wxs | 18 -
.../@vant/weapp/col/index.wxss | 1 -
.../@vant/weapp/collapse-item/animate.js | 43 --
.../@vant/weapp/collapse-item/index.js | 62 ---
.../@vant/weapp/collapse-item/index.json | 6 -
.../@vant/weapp/collapse-item/index.wxml | 45 ---
.../@vant/weapp/collapse-item/index.wxss | 1 -
.../@vant/weapp/collapse/index.js | 48 ---
.../@vant/weapp/collapse/index.json | 3 -
.../@vant/weapp/collapse/index.wxml | 3 -
.../@vant/weapp/collapse/index.wxss | 1 -
.../@vant/weapp/common/color.js | 10 -
.../@vant/weapp/common/component.js | 49 ---
.../@vant/weapp/common/index.wxss | 1 -
.../@vant/weapp/common/relation.js | 65 ---
.../@vant/weapp/common/style/clearfix.wxss | 1 -
.../@vant/weapp/common/style/ellipsis.wxss | 1 -
.../@vant/weapp/common/style/hairline.wxss | 1 -
.../weapp/common/style/mixins/clearfix.wxss | 0
.../weapp/common/style/mixins/ellipsis.wxss | 0
.../weapp/common/style/mixins/hairline.wxss | 0
.../@vant/weapp/common/style/var.wxss | 0
.../@vant/weapp/common/utils.js | 107 -----
.../@vant/weapp/common/validator.js | 43 --
.../@vant/weapp/common/version.js | 70 ----
.../@vant/weapp/count-down/index.js | 104 -----
.../@vant/weapp/count-down/index.json | 3 -
.../@vant/weapp/count-down/index.wxml | 4 -
.../@vant/weapp/count-down/index.wxss | 1 -
.../@vant/weapp/count-down/utils.js | 64 ---
.../@vant/weapp/datetime-picker/index.js | 329 ---------------
.../@vant/weapp/datetime-picker/index.json | 6 -
.../@vant/weapp/datetime-picker/index.wxml | 16 -
.../@vant/weapp/datetime-picker/index.wxss | 1 -
.../@vant/weapp/definitions/index.js | 2 -
.../@vant/weapp/dialog/dialog.js | 92 -----
.../@vant/weapp/dialog/index.js | 131 ------
.../@vant/weapp/dialog/index.json | 9 -
.../@vant/weapp/dialog/index.wxml | 122 ------
.../@vant/weapp/dialog/index.wxss | 1 -
.../@vant/weapp/divider/index.js | 14 -
.../@vant/weapp/divider/index.json | 4 -
.../@vant/weapp/divider/index.wxml | 9 -
.../@vant/weapp/divider/index.wxs | 18 -
.../@vant/weapp/divider/index.wxss | 1 -
.../@vant/weapp/dropdown-item/index.js | 136 -------
.../@vant/weapp/dropdown-item/index.json | 8 -
.../@vant/weapp/dropdown-item/index.wxml | 50 ---
.../@vant/weapp/dropdown-item/index.wxss | 1 -
.../@vant/weapp/dropdown-item/shared.js | 2 -
.../@vant/weapp/dropdown-menu/index.js | 122 ------
.../@vant/weapp/dropdown-menu/index.json | 3 -
.../@vant/weapp/dropdown-menu/index.wxml | 23 --
.../@vant/weapp/dropdown-menu/index.wxs | 16 -
.../@vant/weapp/dropdown-menu/index.wxss | 1 -
.../@vant/weapp/empty/index.js | 12 -
.../@vant/weapp/empty/index.json | 4 -
.../@vant/weapp/empty/index.wxml | 22 -
.../@vant/weapp/empty/index.wxs | 15 -
.../@vant/weapp/empty/index.wxss | 1 -
.../@vant/weapp/field/index.js | 137 -------
.../@vant/weapp/field/index.json | 7 -
.../@vant/weapp/field/index.wxml | 56 ---
.../@vant/weapp/field/index.wxs | 18 -
.../@vant/weapp/field/index.wxss | 1 -
.../@vant/weapp/field/input.wxml | 29 --
.../@vant/weapp/field/props.js | 67 ----
.../@vant/weapp/field/textarea.wxml | 30 --
.../@vant/weapp/goods-action-button/index.js | 42 --
.../weapp/goods-action-button/index.json | 6 -
.../weapp/goods-action-button/index.wxml | 33 --
.../weapp/goods-action-button/index.wxss | 1 -
.../@vant/weapp/goods-action-icon/index.js | 29 --
.../@vant/weapp/goods-action-icon/index.json | 7 -
.../@vant/weapp/goods-action-icon/index.wxml | 41 --
.../@vant/weapp/goods-action-icon/index.wxss | 1 -
.../@vant/weapp/goods-action/index.js | 17 -
.../@vant/weapp/goods-action/index.json | 3 -
.../@vant/weapp/goods-action/index.wxml | 5 -
.../@vant/weapp/goods-action/index.wxss | 1 -
.../@vant/weapp/grid-item/index.js | 54 ---
.../@vant/weapp/grid-item/index.json | 6 -
.../@vant/weapp/grid-item/index.wxml | 27 --
.../@vant/weapp/grid-item/index.wxs | 32 --
.../@vant/weapp/grid-item/index.wxss | 1 -
.../miniprogram_npm/@vant/weapp/grid/index.js | 57 ---
.../@vant/weapp/grid/index.json | 3 -
.../@vant/weapp/grid/index.wxml | 8 -
.../@vant/weapp/grid/index.wxs | 13 -
.../@vant/weapp/grid/index.wxss | 1 -
.../miniprogram_npm/@vant/weapp/icon/index.js | 23 --
.../@vant/weapp/icon/index.json | 6 -
.../@vant/weapp/icon/index.wxml | 20 -
.../@vant/weapp/icon/index.wxs | 43 --
.../@vant/weapp/icon/index.wxss | 1 -
.../@vant/weapp/image/index.js | 66 ---
.../@vant/weapp/image/index.json | 7 -
.../@vant/weapp/image/index.wxml | 35 --
.../@vant/weapp/image/index.wxs | 32 --
.../@vant/weapp/image/index.wxss | 1 -
.../@vant/weapp/index-anchor/index.js | 28 --
.../@vant/weapp/index-anchor/index.json | 3 -
.../@vant/weapp/index-anchor/index.wxml | 14 -
.../@vant/weapp/index-anchor/index.wxss | 1 -
.../@vant/weapp/index-bar/index.js | 243 -----------
.../@vant/weapp/index-bar/index.json | 3 -
.../@vant/weapp/index-bar/index.wxml | 22 -
.../@vant/weapp/index-bar/index.wxss | 1 -
.../miniprogram_npm/@vant/weapp/info/index.js | 10 -
.../@vant/weapp/info/index.json | 3 -
.../@vant/weapp/info/index.wxml | 7 -
.../@vant/weapp/info/index.wxss | 1 -
.../@vant/weapp/loading/index.js | 18 -
.../@vant/weapp/loading/index.json | 3 -
.../@vant/weapp/loading/index.wxml | 19 -
.../@vant/weapp/loading/index.wxs | 22 -
.../@vant/weapp/loading/index.wxss | 1 -
.../@vant/weapp/mixins/basic.js | 14 -
.../@vant/weapp/mixins/button.js | 54 ---
.../@vant/weapp/mixins/link.js | 27 --
.../@vant/weapp/mixins/page-scroll.js | 47 ---
.../@vant/weapp/mixins/touch.js | 40 --
.../@vant/weapp/mixins/transition.js | 124 ------
.../@vant/weapp/nav-bar/index.js | 68 ----
.../@vant/weapp/nav-bar/index.json | 6 -
.../@vant/weapp/nav-bar/index.wxml | 42 --
.../@vant/weapp/nav-bar/index.wxs | 13 -
.../@vant/weapp/nav-bar/index.wxss | 1 -
.../@vant/weapp/notice-bar/index.js | 125 ------
.../@vant/weapp/notice-bar/index.json | 6 -
.../@vant/weapp/notice-bar/index.wxml | 38 --
.../@vant/weapp/notice-bar/index.wxs | 15 -
.../@vant/weapp/notice-bar/index.wxss | 1 -
.../@vant/weapp/notify/index.js | 68 ----
.../@vant/weapp/notify/index.json | 6 -
.../@vant/weapp/notify/index.wxml | 21 -
.../@vant/weapp/notify/index.wxs | 22 -
.../@vant/weapp/notify/index.wxss | 1 -
.../@vant/weapp/notify/notify.js | 67 ----
.../@vant/weapp/overlay/index.js | 32 --
.../@vant/weapp/overlay/index.json | 6 -
.../@vant/weapp/overlay/index.wxml | 7 -
.../@vant/weapp/overlay/index.wxss | 1 -
.../@vant/weapp/panel/index.js | 11 -
.../@vant/weapp/panel/index.json | 6 -
.../@vant/weapp/panel/index.wxml | 19 -
.../@vant/weapp/panel/index.wxss | 1 -
.../@vant/weapp/picker-column/index.js | 122 ------
.../@vant/weapp/picker-column/index.json | 3 -
.../@vant/weapp/picker-column/index.wxml | 23 --
.../@vant/weapp/picker-column/index.wxs | 36 --
.../@vant/weapp/picker-column/index.wxss | 1 -
.../@vant/weapp/picker/index.js | 161 --------
.../@vant/weapp/picker/index.json | 7 -
.../@vant/weapp/picker/index.wxml | 37 --
.../@vant/weapp/picker/index.wxs | 42 --
.../@vant/weapp/picker/index.wxss | 1 -
.../@vant/weapp/picker/shared.js | 24 --
.../@vant/weapp/picker/toolbar.wxml | 23 --
.../@vant/weapp/popup/index.js | 99 -----
.../@vant/weapp/popup/index.json | 7 -
.../@vant/weapp/popup/index.wxml | 21 -
.../@vant/weapp/popup/index.wxs | 18 -
.../@vant/weapp/popup/index.wxss | 1 -
.../@vant/weapp/progress/index.js | 55 ---
.../@vant/weapp/progress/index.json | 3 -
.../@vant/weapp/progress/index.wxml | 20 -
.../@vant/weapp/progress/index.wxs | 36 --
.../@vant/weapp/progress/index.wxss | 1 -
.../@vant/weapp/radio-group/index.js | 24 --
.../@vant/weapp/radio-group/index.json | 3 -
.../@vant/weapp/radio-group/index.wxml | 5 -
.../@vant/weapp/radio-group/index.wxss | 1 -
.../@vant/weapp/radio/index.js | 68 ----
.../@vant/weapp/radio/index.json | 6 -
.../@vant/weapp/radio/index.wxml | 30 --
.../@vant/weapp/radio/index.wxss | 1 -
.../miniprogram_npm/@vant/weapp/rate/index.js | 93 -----
.../@vant/weapp/rate/index.json | 6 -
.../@vant/weapp/rate/index.wxml | 35 --
.../@vant/weapp/rate/index.wxss | 1 -
.../miniprogram_npm/@vant/weapp/row/index.js | 26 --
.../@vant/weapp/row/index.json | 3 -
.../@vant/weapp/row/index.wxml | 5 -
.../miniprogram_npm/@vant/weapp/row/index.wxs | 18 -
.../@vant/weapp/row/index.wxss | 1 -
.../@vant/weapp/search/index.js | 100 -----
.../@vant/weapp/search/index.json | 6 -
.../@vant/weapp/search/index.wxml | 54 ---
.../@vant/weapp/search/index.wxss | 1 -
.../@vant/weapp/share-sheet/index.js | 57 ---
.../@vant/weapp/share-sheet/index.json | 7 -
.../@vant/weapp/share-sheet/index.wxml | 46 ---
.../@vant/weapp/share-sheet/index.wxs | 12 -
.../@vant/weapp/share-sheet/index.wxss | 1 -
.../@vant/weapp/share-sheet/options.js | 27 --
.../@vant/weapp/share-sheet/options.json | 3 -
.../@vant/weapp/share-sheet/options.wxml | 20 -
.../@vant/weapp/share-sheet/options.wxs | 14 -
.../@vant/weapp/share-sheet/options.wxss | 1 -
.../@vant/weapp/sidebar-item/index.js | 32 --
.../@vant/weapp/sidebar-item/index.json | 6 -
.../@vant/weapp/sidebar-item/index.wxml | 18 -
.../@vant/weapp/sidebar-item/index.wxss | 1 -
.../@vant/weapp/sidebar/index.js | 36 --
.../@vant/weapp/sidebar/index.json | 3 -
.../@vant/weapp/sidebar/index.wxml | 3 -
.../@vant/weapp/sidebar/index.wxss | 1 -
.../@vant/weapp/skeleton/index.js | 48 ---
.../@vant/weapp/skeleton/index.json | 4 -
.../@vant/weapp/skeleton/index.wxml | 29 --
.../@vant/weapp/skeleton/index.wxss | 1 -
.../@vant/weapp/slider/index.js | 206 ----------
.../@vant/weapp/slider/index.json | 3 -
.../@vant/weapp/slider/index.wxml | 68 ----
.../@vant/weapp/slider/index.wxs | 14 -
.../@vant/weapp/slider/index.wxss | 1 -
.../@vant/weapp/stepper/index.js | 203 ----------
.../@vant/weapp/stepper/index.json | 3 -
.../@vant/weapp/stepper/index.wxml | 43 --
.../@vant/weapp/stepper/index.wxs | 22 -
.../@vant/weapp/stepper/index.wxss | 1 -
.../@vant/weapp/steps/index.js | 35 --
.../@vant/weapp/steps/index.json | 6 -
.../@vant/weapp/steps/index.wxml | 54 ---
.../@vant/weapp/steps/index.wxss | 1 -
.../@vant/weapp/sticky/index.js | 126 ------
.../@vant/weapp/sticky/index.json | 3 -
.../@vant/weapp/sticky/index.wxml | 8 -
.../@vant/weapp/sticky/index.wxs | 25 --
.../@vant/weapp/sticky/index.wxss | 1 -
.../@vant/weapp/submit-bar/index.js | 58 ---
.../@vant/weapp/submit-bar/index.json | 7 -
.../@vant/weapp/submit-bar/index.wxml | 44 --
.../@vant/weapp/submit-bar/index.wxss | 1 -
.../@vant/weapp/swipe-cell/index.js | 135 -------
.../@vant/weapp/swipe-cell/index.json | 3 -
.../@vant/weapp/swipe-cell/index.wxml | 20 -
.../@vant/weapp/swipe-cell/index.wxss | 1 -
.../@vant/weapp/switch/index.js | 38 --
.../@vant/weapp/switch/index.json | 6 -
.../@vant/weapp/switch/index.wxml | 16 -
.../@vant/weapp/switch/index.wxs | 26 --
.../@vant/weapp/switch/index.wxss | 1 -
.../miniprogram_npm/@vant/weapp/tab/index.js | 58 ---
.../@vant/weapp/tab/index.json | 3 -
.../@vant/weapp/tab/index.wxml | 8 -
.../@vant/weapp/tab/index.wxss | 1 -
.../@vant/weapp/tabbar-item/index.js | 70 ----
.../@vant/weapp/tabbar-item/index.json | 7 -
.../@vant/weapp/tabbar-item/index.wxml | 28 --
.../@vant/weapp/tabbar-item/index.wxss | 1 -
.../@vant/weapp/tabbar/index.js | 68 ----
.../@vant/weapp/tabbar/index.json | 3 -
.../@vant/weapp/tabbar/index.wxml | 10 -
.../@vant/weapp/tabbar/index.wxss | 1 -
.../miniprogram_npm/@vant/weapp/tabs/index.js | 327 ---------------
.../@vant/weapp/tabs/index.json | 7 -
.../@vant/weapp/tabs/index.wxml | 63 ---
.../@vant/weapp/tabs/index.wxs | 83 ----
.../@vant/weapp/tabs/index.wxss | 1 -
.../miniprogram_npm/@vant/weapp/tag/index.js | 23 --
.../@vant/weapp/tag/index.json | 6 -
.../@vant/weapp/tag/index.wxml | 15 -
.../miniprogram_npm/@vant/weapp/tag/index.wxs | 13 -
.../@vant/weapp/tag/index.wxss | 1 -
.../@vant/weapp/toast/index.js | 31 --
.../@vant/weapp/toast/index.json | 9 -
.../@vant/weapp/toast/index.wxml | 36 --
.../@vant/weapp/toast/index.wxss | 1 -
.../@vant/weapp/toast/toast.js | 83 ----
.../@vant/weapp/transition/index.js | 15 -
.../@vant/weapp/transition/index.json | 3 -
.../@vant/weapp/transition/index.wxml | 10 -
.../@vant/weapp/transition/index.wxs | 17 -
.../@vant/weapp/transition/index.wxss | 1 -
.../@vant/weapp/tree-select/index.js | 70 ----
.../@vant/weapp/tree-select/index.json | 8 -
.../@vant/weapp/tree-select/index.wxml | 41 --
.../@vant/weapp/tree-select/index.wxs | 12 -
.../@vant/weapp/tree-select/index.wxss | 1 -
.../@vant/weapp/uploader/index.js | 183 ---------
.../@vant/weapp/uploader/index.json | 7 -
.../@vant/weapp/uploader/index.wxml | 84 ----
.../@vant/weapp/uploader/index.wxs | 17 -
.../@vant/weapp/uploader/index.wxss | 1 -
.../@vant/weapp/uploader/shared.js | 60 ---
.../@vant/weapp/uploader/utils.js | 112 ------
.../@vant/weapp/wxs/add-unit.wxs | 12 -
.../miniprogram_npm/@vant/weapp/wxs/array.wxs | 5 -
.../miniprogram_npm/@vant/weapp/wxs/bem.wxs | 39 --
.../@vant/weapp/wxs/memoize.wxs | 55 ---
.../@vant/weapp/wxs/object.wxs | 13 -
.../miniprogram_npm/@vant/weapp/wxs/style.wxs | 42 --
.../miniprogram_npm/@vant/weapp/wxs/utils.wxs | 10 -
.../package-events/events/event-detail.wxml | 24 +-
.../package-events/events/event-list.js | 13 -
.../package-events/events/event-list.wxml | 18 +-
.../package-events/publish/success.js | 6 -
.../package-meeting/reserve/reserve.js | 1 +
src/openeuler/package-my/events/my-list.js | 35 +-
src/openeuler/package-my/events/my-list.wxml | 20 +-
src/openeuler/package-my/my/privecy-seting.js | 12 +-
.../package-my/my/privecy-seting.wxml | 2 +-
src/openeuler/pages/events/events.js | 23 +-
src/openeuler/pages/events/events.wxml | 16 +-
src/openeuler/pages/my/my.js | 1 -
src/openeuler/project.private.config.json | 3 +-
370 files changed, 47 insertions(+), 11164 deletions(-)
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/area/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/area/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/area/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/area/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/area/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/button/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/button/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/calendar/calendar.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/calendar/utils.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/calendar/utils.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/card/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/card/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/card/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/card/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/cell/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/cell/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/circle/canvas.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/circle/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/circle/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/circle/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/circle/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/col/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/col/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/animate.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/common/color.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/common/component.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/common/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/common/relation.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/common/style/clearfix.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/common/style/ellipsis.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/common/style/hairline.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/common/style/mixins/clearfix.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/common/style/mixins/ellipsis.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/common/style/mixins/hairline.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/common/style/var.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/common/utils.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/common/validator.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/common/version.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/count-down/utils.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/definitions/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/dialog/dialog.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/divider/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/divider/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/shared.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/empty/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/empty/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/field/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/field/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/field/input.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/field/props.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/field/textarea.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/grid/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/grid/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/icon/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/icon/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/image/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/image/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/info/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/info/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/info/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/info/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/loading/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/loading/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/mixins/basic.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/mixins/button.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/mixins/link.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/mixins/page-scroll.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/mixins/touch.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/mixins/transition.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/notify/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/notify/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/notify/notify.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/panel/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/panel/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/panel/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/panel/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/picker/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/picker/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/picker/shared.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/picker/toolbar.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/popup/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/popup/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/progress/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/progress/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/radio/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/radio/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/radio/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/radio/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/rate/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/rate/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/rate/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/rate/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/row/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/row/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/search/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/search/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/search/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/search/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/slider/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/slider/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/steps/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/steps/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/steps/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/steps/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/switch/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/switch/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tab/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tab/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tab/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tab/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tag/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tag/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/toast/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/toast/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/toast/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/toast/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/toast/toast.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/transition/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/transition/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.json
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxml
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxss
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/uploader/shared.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/uploader/utils.js
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/wxs/add-unit.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/wxs/array.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/wxs/bem.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/wxs/memoize.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/wxs/object.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/wxs/style.wxs
delete mode 100644 src/openeuler/miniprogram_npm/@vant/weapp/wxs/utils.wxs
diff --git a/src/openeuler/config/constants.js b/src/openeuler/config/constants.js
index 0151ce9..1a303d5 100644
--- a/src/openeuler/config/constants.js
+++ b/src/openeuler/config/constants.js
@@ -5,9 +5,9 @@ let _ = require('../utils/underscore-extend.js');
// 服务连接配置
let serviceConfig = {
- SERVICE_URL: 'https://api.openeuler.org/meetings', // 正式环境
+ // SERVICE_URL: 'https://api.openeuler.org/meetings', // 正式环境
// SERVICE_URL: 'https://meetingserver-openeuler.test.osinfra.cn', // 测试环境
- // SERVICE_URL: 'https://meetings-beta.openeuler.org', // 测试环境
+ SERVICE_URL: 'https://meetings-beta.openeuler.org', // 测试环境
};
// 存储配置
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.js
deleted file mode 100644
index a39818a..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.js
+++ /dev/null
@@ -1,74 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var button_1 = require("../mixins/button");
-(0, component_1.VantComponent)({
- classes: ['list-class'],
- mixins: [button_1.button],
- props: {
- show: Boolean,
- title: String,
- cancelText: String,
- description: String,
- round: {
- type: Boolean,
- value: true,
- },
- zIndex: {
- type: Number,
- value: 100,
- },
- actions: {
- type: Array,
- value: [],
- },
- overlay: {
- type: Boolean,
- value: true,
- },
- closeOnClickOverlay: {
- type: Boolean,
- value: true,
- },
- closeOnClickAction: {
- type: Boolean,
- value: true,
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- },
- methods: {
- onSelect: function (event) {
- var _this = this;
- var index = event.currentTarget.dataset.index;
- var _a = this.data, actions = _a.actions, closeOnClickAction = _a.closeOnClickAction, canIUseGetUserProfile = _a.canIUseGetUserProfile;
- var item = actions[index];
- if (item) {
- this.$emit('select', item);
- if (closeOnClickAction) {
- this.onClose();
- }
- if (item.openType === 'getUserInfo' && canIUseGetUserProfile) {
- wx.getUserProfile({
- desc: item.getUserProfileDesc || ' ',
- complete: function (userProfile) {
- _this.$emit('getuserinfo', userProfile);
- },
- });
- }
- }
- },
- onCancel: function () {
- this.$emit('cancel');
- },
- onClose: function () {
- this.$emit('close');
- },
- onClickOverlay: function () {
- this.$emit('click-overlay');
- this.onClose();
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.json
deleted file mode 100644
index 19bf989..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index",
- "van-popup": "../popup/index",
- "van-loading": "../loading/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.wxml
deleted file mode 100644
index d59a45d..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.wxml
+++ /dev/null
@@ -1,69 +0,0 @@
-
-
-
-
-
- {{ description }}
-
-
-
-
-
- {{ item.name }}
- {{ item.subname }}
-
-
-
-
-
-
-
-
- {{ cancelText }}
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.wxss
deleted file mode 100644
index eedd361..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/action-sheet/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-action-sheet{color:var(--action-sheet-item-text-color,#323233);max-height:var(--action-sheet-max-height,90%)!important}.van-action-sheet__cancel,.van-action-sheet__item{background-color:var(--action-sheet-item-background,#fff);font-size:var(--action-sheet-item-font-size,16px);line-height:var(--action-sheet-item-line-height,22px);padding:14px 16px;text-align:center}.van-action-sheet__cancel--hover,.van-action-sheet__item--hover{background-color:#f2f3f5}.van-action-sheet__cancel:after,.van-action-sheet__item:after{border-width:0}.van-action-sheet__cancel{color:var(--action-sheet-cancel-text-color,#646566)}.van-action-sheet__gap{background-color:var(--action-sheet-cancel-padding-color,#f7f8fa);display:block;height:var(--action-sheet-cancel-padding-top,8px)}.van-action-sheet__item--disabled{color:var(--action-sheet-item-disabled-text-color,#c8c9cc)}.van-action-sheet__item--disabled.van-action-sheet__item--hover{background-color:var(--action-sheet-item-background,#fff)}.van-action-sheet__subname{color:var(--action-sheet-subname-color,#969799);font-size:var(--action-sheet-subname-font-size,12px);line-height:var(--action-sheet-subname-line-height,20px);margin-top:var(--padding-xs,8px)}.van-action-sheet__header{font-size:var(--action-sheet-header-font-size,16px);font-weight:var(--font-weight-bold,500);line-height:var(--action-sheet-header-height,48px);text-align:center}.van-action-sheet__description{color:var(--action-sheet-description-color,#969799);font-size:var(--action-sheet-description-font-size,14px);line-height:var(--action-sheet-description-line-height,20px);padding:20px var(--padding-md,16px);text-align:center}.van-action-sheet__close{color:var(--action-sheet-close-icon-color,#c8c9cc);font-size:var(--action-sheet-close-icon-size,22px)!important;line-height:inherit!important;padding:var(--action-sheet-close-icon-padding,0 16px);position:absolute!important;right:0;top:0}.van-action-sheet__loading{display:flex!important}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/area/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/area/index.js
deleted file mode 100644
index 73de66d..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/area/index.js
+++ /dev/null
@@ -1,235 +0,0 @@
-"use strict";
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var shared_1 = require("../picker/shared");
-var utils_1 = require("../common/utils");
-var EMPTY_CODE = '000000';
-(0, component_1.VantComponent)({
- classes: ['active-class', 'toolbar-class', 'column-class'],
- props: __assign(__assign({}, shared_1.pickerProps), { showToolbar: {
- type: Boolean,
- value: true,
- }, value: {
- type: String,
- observer: function (value) {
- this.code = value;
- this.setValues();
- },
- }, areaList: {
- type: Object,
- value: {},
- observer: 'setValues',
- }, columnsNum: {
- type: null,
- value: 3,
- }, columnsPlaceholder: {
- type: Array,
- observer: function (val) {
- this.setData({
- typeToColumnsPlaceholder: {
- province: val[0] || '',
- city: val[1] || '',
- county: val[2] || '',
- },
- });
- },
- } }),
- data: {
- columns: [{ values: [] }, { values: [] }, { values: [] }],
- typeToColumnsPlaceholder: {},
- },
- mounted: function () {
- var _this = this;
- (0, utils_1.requestAnimationFrame)(function () {
- _this.setValues();
- });
- },
- methods: {
- getPicker: function () {
- if (this.picker == null) {
- this.picker = this.selectComponent('.van-area__picker');
- }
- return this.picker;
- },
- onCancel: function (event) {
- this.emit('cancel', event.detail);
- },
- onConfirm: function (event) {
- var index = event.detail.index;
- var value = event.detail.value;
- value = this.parseValues(value);
- this.emit('confirm', { value: value, index: index });
- },
- emit: function (type, detail) {
- detail.values = detail.value;
- delete detail.value;
- this.$emit(type, detail);
- },
- parseValues: function (values) {
- var columnsPlaceholder = this.data.columnsPlaceholder;
- return values.map(function (value, index) {
- if (value &&
- (!value.code || value.name === columnsPlaceholder[index])) {
- return __assign(__assign({}, value), { code: '', name: '' });
- }
- return value;
- });
- },
- onChange: function (event) {
- var _this = this;
- var _a;
- var _b = event.detail, index = _b.index, picker = _b.picker, value = _b.value;
- this.code = value[index].code;
- (_a = this.setValues()) === null || _a === void 0 ? void 0 : _a.then(function () {
- _this.$emit('change', {
- picker: picker,
- values: _this.parseValues(picker.getValues()),
- index: index,
- });
- });
- },
- getConfig: function (type) {
- var areaList = this.data.areaList;
- return (areaList && areaList["".concat(type, "_list")]) || {};
- },
- getList: function (type, code) {
- if (type !== 'province' && !code) {
- return [];
- }
- var typeToColumnsPlaceholder = this.data.typeToColumnsPlaceholder;
- var list = this.getConfig(type);
- var result = Object.keys(list).map(function (code) { return ({
- code: code,
- name: list[code],
- }); });
- if (code != null) {
- // oversea code
- if (code[0] === '9' && type === 'city') {
- code = '9';
- }
- result = result.filter(function (item) { return item.code.indexOf(code) === 0; });
- }
- if (typeToColumnsPlaceholder[type] && result.length) {
- // set columns placeholder
- var codeFill = type === 'province'
- ? ''
- : type === 'city'
- ? EMPTY_CODE.slice(2, 4)
- : EMPTY_CODE.slice(4, 6);
- result.unshift({
- code: "".concat(code).concat(codeFill),
- name: typeToColumnsPlaceholder[type],
- });
- }
- return result;
- },
- getIndex: function (type, code) {
- var compareNum = type === 'province' ? 2 : type === 'city' ? 4 : 6;
- var list = this.getList(type, code.slice(0, compareNum - 2));
- // oversea code
- if (code[0] === '9' && type === 'province') {
- compareNum = 1;
- }
- code = code.slice(0, compareNum);
- for (var i = 0; i < list.length; i++) {
- if (list[i].code.slice(0, compareNum) === code) {
- return i;
- }
- }
- return 0;
- },
- setValues: function () {
- var picker = this.getPicker();
- if (!picker) {
- return;
- }
- var code = this.code || this.getDefaultCode();
- var provinceList = this.getList('province');
- var cityList = this.getList('city', code.slice(0, 2));
- var stack = [];
- var indexes = [];
- var columnsNum = this.data.columnsNum;
- if (columnsNum >= 1) {
- stack.push(picker.setColumnValues(0, provinceList, false));
- indexes.push(this.getIndex('province', code));
- }
- if (columnsNum >= 2) {
- stack.push(picker.setColumnValues(1, cityList, false));
- indexes.push(this.getIndex('city', code));
- if (cityList.length && code.slice(2, 4) === '00') {
- code = cityList[0].code;
- }
- }
- if (columnsNum === 3) {
- stack.push(picker.setColumnValues(2, this.getList('county', code.slice(0, 4)), false));
- indexes.push(this.getIndex('county', code));
- }
- return Promise.all(stack)
- .catch(function () { })
- .then(function () { return picker.setIndexes(indexes); })
- .catch(function () { });
- },
- getDefaultCode: function () {
- var columnsPlaceholder = this.data.columnsPlaceholder;
- if (columnsPlaceholder.length) {
- return EMPTY_CODE;
- }
- var countyCodes = Object.keys(this.getConfig('county'));
- if (countyCodes[0]) {
- return countyCodes[0];
- }
- var cityCodes = Object.keys(this.getConfig('city'));
- if (cityCodes[0]) {
- return cityCodes[0];
- }
- return '';
- },
- getValues: function () {
- var picker = this.getPicker();
- if (!picker) {
- return [];
- }
- return this.parseValues(picker.getValues().filter(function (value) { return !!value; }));
- },
- getDetail: function () {
- var values = this.getValues();
- var area = {
- code: '',
- country: '',
- province: '',
- city: '',
- county: '',
- };
- if (!values.length) {
- return area;
- }
- var names = values.map(function (item) { return item.name; });
- area.code = values[values.length - 1].code;
- if (area.code[0] === '9') {
- area.country = names[1] || '';
- area.province = names[2] || '';
- }
- else {
- area.province = names[0] || '';
- area.city = names[1] || '';
- area.county = names[2] || '';
- }
- return area;
- },
- reset: function (code) {
- this.code = code || '';
- return this.setValues();
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/area/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/area/index.json
deleted file mode 100644
index a778e91..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/area/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-picker": "../picker/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/area/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/area/index.wxml
deleted file mode 100644
index 3a437b7..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/area/index.wxml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/area/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/area/index.wxs
deleted file mode 100644
index 07723c1..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/area/index.wxs
+++ /dev/null
@@ -1,8 +0,0 @@
-/* eslint-disable */
-function displayColumns(columns, columnsNum) {
- return columns.slice(0, +columnsNum);
-}
-
-module.exports = {
- displayColumns: displayColumns,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/area/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/area/index.wxss
deleted file mode 100644
index 99694d6..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/area/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/button/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/button/index.js
deleted file mode 100644
index 984135c..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/button/index.js
+++ /dev/null
@@ -1,67 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var button_1 = require("../mixins/button");
-var version_1 = require("../common/version");
-var mixins = [button_1.button];
-if ((0, version_1.canIUseFormFieldButton)()) {
- mixins.push('wx://form-field-button');
-}
-(0, component_1.VantComponent)({
- mixins: mixins,
- classes: ['hover-class', 'loading-class'],
- data: {
- baseStyle: '',
- },
- props: {
- formType: String,
- icon: String,
- classPrefix: {
- type: String,
- value: 'van-icon',
- },
- plain: Boolean,
- block: Boolean,
- round: Boolean,
- square: Boolean,
- loading: Boolean,
- hairline: Boolean,
- disabled: Boolean,
- loadingText: String,
- customStyle: String,
- loadingType: {
- type: String,
- value: 'circular',
- },
- type: {
- type: String,
- value: 'default',
- },
- dataset: null,
- size: {
- type: String,
- value: 'normal',
- },
- loadingSize: {
- type: String,
- value: '20px',
- },
- color: String,
- },
- methods: {
- onClick: function (event) {
- var _this = this;
- this.$emit('click', event);
- var _a = this.data, canIUseGetUserProfile = _a.canIUseGetUserProfile, openType = _a.openType, getUserProfileDesc = _a.getUserProfileDesc, lang = _a.lang;
- if (openType === 'getUserInfo' && canIUseGetUserProfile) {
- wx.getUserProfile({
- desc: getUserProfileDesc || ' ',
- lang: lang || 'en',
- complete: function (userProfile) {
- _this.$emit('getuserinfo', userProfile);
- },
- });
- }
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/button/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/button/index.json
deleted file mode 100644
index e00a588..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/button/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index",
- "van-loading": "../loading/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxml
deleted file mode 100644
index e7f60f1..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxml
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
-
-
-
-
- {{ loadingText }}
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxs
deleted file mode 100644
index 8b649fe..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxs
+++ /dev/null
@@ -1,39 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-
-function rootStyle(data) {
- if (!data.color) {
- return data.customStyle;
- }
-
- var properties = {
- color: data.plain ? data.color : '#fff',
- background: data.plain ? null : data.color,
- };
-
- // hide border when color is linear-gradient
- if (data.color.indexOf('gradient') !== -1) {
- properties.border = 0;
- } else {
- properties['border-color'] = data.color;
- }
-
- return style([properties, data.customStyle]);
-}
-
-function loadingColor(data) {
- if (data.plain) {
- return data.color ? data.color : '#c9c9c9';
- }
-
- if (data.type === 'default') {
- return '#c9c9c9';
- }
-
- return '#fff';
-}
-
-module.exports = {
- rootStyle: rootStyle,
- loadingColor: loadingColor,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxss
deleted file mode 100644
index bd8bb5a..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/button/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-button{-webkit-text-size-adjust:100%;align-items:center;-webkit-appearance:none;border-radius:var(--button-border-radius,2px);box-sizing:border-box;display:inline-flex;font-size:var(--button-default-font-size,16px);height:var(--button-default-height,44px);justify-content:center;line-height:var(--button-line-height,20px);padding:0;position:relative;text-align:center;transition:opacity .2s;vertical-align:middle}.van-button:before{background-color:#000;border:inherit;border-color:#000;border-radius:inherit;content:" ";height:100%;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%}.van-button:after{border-width:0}.van-button--active:before{opacity:.15}.van-button--unclickable:after{display:none}.van-button--default{background:var(--button-default-background-color,#fff);border:var(--button-border-width,1px) solid var(--button-default-border-color,#ebedf0);color:var(--button-default-color,#323233)}.van-button--primary{background:var(--button-primary-background-color,#07c160);border:var(--button-border-width,1px) solid var(--button-primary-border-color,#07c160);color:var(--button-primary-color,#fff)}.van-button--info{background:var(--button-info-background-color,#1989fa);border:var(--button-border-width,1px) solid var(--button-info-border-color,#1989fa);color:var(--button-info-color,#fff)}.van-button--danger{background:var(--button-danger-background-color,#ee0a24);border:var(--button-border-width,1px) solid var(--button-danger-border-color,#ee0a24);color:var(--button-danger-color,#fff)}.van-button--warning{background:var(--button-warning-background-color,#ff976a);border:var(--button-border-width,1px) solid var(--button-warning-border-color,#ff976a);color:var(--button-warning-color,#fff)}.van-button--plain{background:var(--button-plain-background-color,#fff)}.van-button--plain.van-button--primary{color:var(--button-primary-background-color,#07c160)}.van-button--plain.van-button--info{color:var(--button-info-background-color,#1989fa)}.van-button--plain.van-button--danger{color:var(--button-danger-background-color,#ee0a24)}.van-button--plain.van-button--warning{color:var(--button-warning-background-color,#ff976a)}.van-button--large{height:var(--button-large-height,50px);width:100%}.van-button--normal{font-size:var(--button-normal-font-size,14px);padding:0 15px}.van-button--small{font-size:var(--button-small-font-size,12px);height:var(--button-small-height,30px);min-width:var(--button-small-min-width,60px);padding:0 var(--padding-xs,8px)}.van-button--mini{display:inline-block;font-size:var(--button-mini-font-size,10px);height:var(--button-mini-height,22px);min-width:var(--button-mini-min-width,50px)}.van-button--mini+.van-button--mini{margin-left:5px}.van-button--block{display:flex;width:100%}.van-button--round{border-radius:var(--button-round-border-radius,999px)}.van-button--square{border-radius:0}.van-button--disabled{opacity:var(--button-disabled-opacity,.5)}.van-button__text{display:inline}.van-button__icon+.van-button__text:not(:empty),.van-button__loading-text{margin-left:4px}.van-button__icon{line-height:inherit!important;min-width:1em;vertical-align:top}.van-button--hairline{border-width:0;padding-top:1px}.van-button--hairline:after{border-color:inherit;border-radius:calc(var(--button-border-radius, 2px)*2);border-width:1px}.van-button--hairline.van-button--round:after{border-radius:var(--button-round-border-radius,999px)}.van-button--hairline.van-button--square:after{border-radius:0}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/calendar.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/calendar.wxml
deleted file mode 100644
index 2ba6f30..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/calendar.wxml
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.js
deleted file mode 100644
index 544b3a4..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.js
+++ /dev/null
@@ -1,45 +0,0 @@
-"use strict";
-var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
- if (ar || !(i in from)) {
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
- ar[i] = from[i];
- }
- }
- return to.concat(ar || Array.prototype.slice.call(from));
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../../../common/component");
-(0, component_1.VantComponent)({
- props: {
- title: {
- type: String,
- value: '日期选择',
- },
- subtitle: String,
- showTitle: Boolean,
- showSubtitle: Boolean,
- firstDayOfWeek: {
- type: Number,
- observer: 'initWeekDay',
- },
- },
- data: {
- weekdays: [],
- },
- created: function () {
- this.initWeekDay();
- },
- methods: {
- initWeekDay: function () {
- var defaultWeeks = ['日', '一', '二', '三', '四', '五', '六'];
- var firstDayOfWeek = this.data.firstDayOfWeek || 0;
- this.setData({
- weekdays: __spreadArray(__spreadArray([], defaultWeeks.slice(firstDayOfWeek, 7), true), defaultWeeks.slice(0, firstDayOfWeek), true),
- });
- },
- onClickSubtitle: function (event) {
- this.$emit('click-subtitle', event);
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxml
deleted file mode 100644
index 7e56c83..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxml
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxss
deleted file mode 100644
index 272537e..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../../../common/index.wxss';.van-calendar__header{box-shadow:var(--calendar-header-box-shadow,0 2px 10px hsla(220,1%,50%,.16));flex-shrink:0}.van-calendar__header-subtitle,.van-calendar__header-title{font-weight:var(--font-weight-bold,500);height:var(--calendar-header-title-height,44px);line-height:var(--calendar-header-title-height,44px);text-align:center}.van-calendar__header-title+.van-calendar__header-title,.van-calendar__header-title:empty{display:none}.van-calendar__header-title:empty+.van-calendar__header-title{display:block!important}.van-calendar__weekdays{display:flex}.van-calendar__weekday{flex:1;font-size:var(--calendar-weekdays-font-size,12px);line-height:var(--calendar-weekdays-height,30px);text-align:center}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.js
deleted file mode 100644
index 4d137f5..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.js
+++ /dev/null
@@ -1,158 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../../../common/component");
-var utils_1 = require("../../utils");
-(0, component_1.VantComponent)({
- props: {
- date: {
- type: null,
- observer: 'setDays',
- },
- type: {
- type: String,
- observer: 'setDays',
- },
- color: String,
- minDate: {
- type: null,
- observer: 'setDays',
- },
- maxDate: {
- type: null,
- observer: 'setDays',
- },
- showMark: Boolean,
- rowHeight: null,
- formatter: {
- type: null,
- observer: 'setDays',
- },
- currentDate: {
- type: null,
- observer: 'setDays',
- },
- firstDayOfWeek: {
- type: Number,
- observer: 'setDays',
- },
- allowSameDay: Boolean,
- showSubtitle: Boolean,
- showMonthTitle: Boolean,
- },
- data: {
- visible: true,
- days: [],
- },
- methods: {
- onClick: function (event) {
- var index = event.currentTarget.dataset.index;
- var item = this.data.days[index];
- if (item.type !== 'disabled') {
- this.$emit('click', item);
- }
- },
- setDays: function () {
- var days = [];
- var startDate = new Date(this.data.date);
- var year = startDate.getFullYear();
- var month = startDate.getMonth();
- var totalDay = (0, utils_1.getMonthEndDay)(startDate.getFullYear(), startDate.getMonth() + 1);
- for (var day = 1; day <= totalDay; day++) {
- var date = new Date(year, month, day);
- var type = this.getDayType(date);
- var config = {
- date: date,
- type: type,
- text: day,
- bottomInfo: this.getBottomInfo(type),
- };
- if (this.data.formatter) {
- config = this.data.formatter(config);
- }
- days.push(config);
- }
- this.setData({ days: days });
- },
- getMultipleDayType: function (day) {
- var currentDate = this.data.currentDate;
- if (!Array.isArray(currentDate)) {
- return '';
- }
- var isSelected = function (date) {
- return currentDate.some(function (item) { return (0, utils_1.compareDay)(item, date) === 0; });
- };
- if (isSelected(day)) {
- var prevDay = (0, utils_1.getPrevDay)(day);
- var nextDay = (0, utils_1.getNextDay)(day);
- var prevSelected = isSelected(prevDay);
- var nextSelected = isSelected(nextDay);
- if (prevSelected && nextSelected) {
- return 'multiple-middle';
- }
- if (prevSelected) {
- return 'end';
- }
- return nextSelected ? 'start' : 'multiple-selected';
- }
- return '';
- },
- getRangeDayType: function (day) {
- var _a = this.data, currentDate = _a.currentDate, allowSameDay = _a.allowSameDay;
- if (!Array.isArray(currentDate)) {
- return '';
- }
- var startDay = currentDate[0], endDay = currentDate[1];
- if (!startDay) {
- return '';
- }
- var compareToStart = (0, utils_1.compareDay)(day, startDay);
- if (!endDay) {
- return compareToStart === 0 ? 'start' : '';
- }
- var compareToEnd = (0, utils_1.compareDay)(day, endDay);
- if (compareToStart === 0 && compareToEnd === 0 && allowSameDay) {
- return 'start-end';
- }
- if (compareToStart === 0) {
- return 'start';
- }
- if (compareToEnd === 0) {
- return 'end';
- }
- if (compareToStart > 0 && compareToEnd < 0) {
- return 'middle';
- }
- return '';
- },
- getDayType: function (day) {
- var _a = this.data, type = _a.type, minDate = _a.minDate, maxDate = _a.maxDate, currentDate = _a.currentDate;
- if ((0, utils_1.compareDay)(day, minDate) < 0 || (0, utils_1.compareDay)(day, maxDate) > 0) {
- return 'disabled';
- }
- if (type === 'single') {
- return (0, utils_1.compareDay)(day, currentDate) === 0 ? 'selected' : '';
- }
- if (type === 'multiple') {
- return this.getMultipleDayType(day);
- }
- /* istanbul ignore else */
- if (type === 'range') {
- return this.getRangeDayType(day);
- }
- return '';
- },
- getBottomInfo: function (type) {
- if (this.data.type === 'range') {
- if (type === 'start') {
- return '开始';
- }
- if (type === 'end') {
- return '结束';
- }
- if (type === 'start-end') {
- return '开始/结束';
- }
- }
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxml
deleted file mode 100644
index 0c73b2f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxml
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
- {{ computed.formatMonthTitle(date) }}
-
-
-
-
- {{ computed.getMark(date) }}
-
-
-
-
- {{ item.topInfo }}
- {{ item.text }}
-
- {{ item.bottomInfo }}
-
-
-
-
- {{ item.topInfo }}
- {{ item.text }}
-
- {{ item.bottomInfo }}
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxs
deleted file mode 100644
index 55e45a5..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxs
+++ /dev/null
@@ -1,71 +0,0 @@
-/* eslint-disable */
-var utils = require('../../utils.wxs');
-
-function getMark(date) {
- return getDate(date).getMonth() + 1;
-}
-
-var ROW_HEIGHT = 64;
-
-function getDayStyle(type, index, date, rowHeight, color, firstDayOfWeek) {
- var style = [];
- var current = getDate(date).getDay() || 7;
- var offset = current < firstDayOfWeek ? (7 - firstDayOfWeek + current) :
- current === 7 && firstDayOfWeek === 0 ? 0 :
- (current - firstDayOfWeek);
-
- if (index === 0) {
- style.push(['margin-left', (100 * offset) / 7 + '%']);
- }
-
- if (rowHeight !== ROW_HEIGHT) {
- style.push(['height', rowHeight + 'px']);
- }
-
- if (color) {
- if (
- type === 'start' ||
- type === 'end' ||
- type === 'start-end' ||
- type === 'multiple-selected' ||
- type === 'multiple-middle'
- ) {
- style.push(['background', color]);
- } else if (type === 'middle') {
- style.push(['color', color]);
- }
- }
-
- return style
- .map(function(item) {
- return item.join(':');
- })
- .join(';');
-}
-
-function formatMonthTitle(date) {
- date = getDate(date);
- return date.getFullYear() + '年' + (date.getMonth() + 1) + '月';
-}
-
-function getMonthStyle(visible, date, rowHeight) {
- if (!visible) {
- date = getDate(date);
-
- var totalDay = utils.getMonthEndDay(
- date.getFullYear(),
- date.getMonth() + 1
- );
- var offset = getDate(date).getDay();
- var padding = Math.ceil((totalDay + offset) / 7) * rowHeight;
-
- return 'padding-bottom:' + padding + 'px';
- }
-}
-
-module.exports = {
- getMark: getMark,
- getDayStyle: getDayStyle,
- formatMonthTitle: formatMonthTitle,
- getMonthStyle: getMonthStyle
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxss
deleted file mode 100644
index 9aee73d..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../../../common/index.wxss';.van-calendar{background-color:var(--calendar-background-color,#fff);display:flex;flex-direction:column;height:100%}.van-calendar__month-title{font-size:var(--calendar-month-title-font-size,14px);font-weight:var(--font-weight-bold,500);height:var(--calendar-header-title-height,44px);line-height:var(--calendar-header-title-height,44px);text-align:center}.van-calendar__days{display:flex;flex-wrap:wrap;position:relative;-webkit-user-select:none;user-select:none}.van-calendar__month-mark{color:var(--calendar-month-mark-color,rgba(242,243,245,.8));font-size:var(--calendar-month-mark-font-size,160px);left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:0}.van-calendar__day,.van-calendar__selected-day{align-items:center;display:flex;justify-content:center;text-align:center}.van-calendar__day{font-size:var(--calendar-day-font-size,16px);height:var(--calendar-day-height,64px);position:relative;width:14.285%}.van-calendar__day--end,.van-calendar__day--multiple-middle,.van-calendar__day--multiple-selected,.van-calendar__day--start,.van-calendar__day--start-end{background-color:var(--calendar-range-edge-background-color,#ee0a24);color:var(--calendar-range-edge-color,#fff)}.van-calendar__day--start{border-radius:4px 0 0 4px}.van-calendar__day--end{border-radius:0 4px 4px 0}.van-calendar__day--multiple-selected,.van-calendar__day--start-end{border-radius:4px}.van-calendar__day--middle{color:var(--calendar-range-middle-color,#ee0a24)}.van-calendar__day--middle:after{background-color:currentColor;bottom:0;content:"";left:0;opacity:var(--calendar-range-middle-background-opacity,.1);position:absolute;right:0;top:0}.van-calendar__day--disabled{color:var(--calendar-day-disabled-color,#c8c9cc);cursor:default}.van-calendar__bottom-info,.van-calendar__top-info{font-size:var(--calendar-info-font-size,10px);left:0;line-height:var(--calendar-info-line-height,14px);position:absolute;right:0}@media (max-width:350px){.van-calendar__bottom-info,.van-calendar__top-info{font-size:9px}}.van-calendar__top-info{top:6px}.van-calendar__bottom-info{bottom:6px}.van-calendar__selected-day{background-color:var(--calendar-selected-day-background-color,#ee0a24);border-radius:4px;color:var(--calendar-selected-day-color,#fff);height:var(--calendar-selected-day-size,54px);width:var(--calendar-selected-day-size,54px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.js
deleted file mode 100644
index eea8751..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.js
+++ /dev/null
@@ -1,379 +0,0 @@
-"use strict";
-var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
- if (ar || !(i in from)) {
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
- ar[i] = from[i];
- }
- }
- return to.concat(ar || Array.prototype.slice.call(from));
-};
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var utils_1 = require("./utils");
-var toast_1 = __importDefault(require("../toast/toast"));
-var utils_2 = require("../common/utils");
-var initialMinDate = (0, utils_1.getToday)().getTime();
-var initialMaxDate = (function () {
- var now = (0, utils_1.getToday)();
- return new Date(now.getFullYear(), now.getMonth() + 6, now.getDate()).getTime();
-})();
-var getTime = function (date) {
- return date instanceof Date ? date.getTime() : date;
-};
-(0, component_1.VantComponent)({
- props: {
- title: {
- type: String,
- value: '日期选择',
- },
- color: String,
- show: {
- type: Boolean,
- observer: function (val) {
- if (val) {
- this.initRect();
- this.scrollIntoView();
- }
- },
- },
- formatter: null,
- confirmText: {
- type: String,
- value: '确定',
- },
- confirmDisabledText: {
- type: String,
- value: '确定',
- },
- rangePrompt: String,
- showRangePrompt: {
- type: Boolean,
- value: true,
- },
- defaultDate: {
- type: null,
- value: (0, utils_1.getToday)().getTime(),
- observer: function (val) {
- this.setData({ currentDate: val });
- this.scrollIntoView();
- },
- },
- allowSameDay: Boolean,
- type: {
- type: String,
- value: 'single',
- observer: 'reset',
- },
- minDate: {
- type: Number,
- value: initialMinDate,
- },
- maxDate: {
- type: Number,
- value: initialMaxDate,
- },
- position: {
- type: String,
- value: 'bottom',
- },
- rowHeight: {
- type: null,
- value: utils_1.ROW_HEIGHT,
- },
- round: {
- type: Boolean,
- value: true,
- },
- poppable: {
- type: Boolean,
- value: true,
- },
- showMark: {
- type: Boolean,
- value: true,
- },
- showTitle: {
- type: Boolean,
- value: true,
- },
- showConfirm: {
- type: Boolean,
- value: true,
- },
- showSubtitle: {
- type: Boolean,
- value: true,
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- closeOnClickOverlay: {
- type: Boolean,
- value: true,
- },
- maxRange: {
- type: null,
- value: null,
- },
- minRange: {
- type: Number,
- value: 1,
- },
- firstDayOfWeek: {
- type: Number,
- value: 0,
- },
- readonly: Boolean,
- },
- data: {
- subtitle: '',
- currentDate: null,
- scrollIntoView: '',
- },
- watch: {
- minDate: function () {
- this.initRect();
- },
- maxDate: function () {
- this.initRect();
- },
- },
- created: function () {
- this.setData({
- currentDate: this.getInitialDate(this.data.defaultDate),
- });
- },
- mounted: function () {
- if (this.data.show || !this.data.poppable) {
- this.initRect();
- this.scrollIntoView();
- }
- },
- methods: {
- reset: function () {
- this.setData({ currentDate: this.getInitialDate(this.data.defaultDate) });
- this.scrollIntoView();
- },
- initRect: function () {
- var _this = this;
- if (this.contentObserver != null) {
- this.contentObserver.disconnect();
- }
- var contentObserver = this.createIntersectionObserver({
- thresholds: [0, 0.1, 0.9, 1],
- observeAll: true,
- });
- this.contentObserver = contentObserver;
- contentObserver.relativeTo('.van-calendar__body');
- contentObserver.observe('.month', function (res) {
- if (res.boundingClientRect.top <= res.relativeRect.top) {
- // @ts-ignore
- _this.setData({ subtitle: (0, utils_1.formatMonthTitle)(res.dataset.date) });
- }
- });
- },
- limitDateRange: function (date, minDate, maxDate) {
- if (minDate === void 0) { minDate = null; }
- if (maxDate === void 0) { maxDate = null; }
- minDate = minDate || this.data.minDate;
- maxDate = maxDate || this.data.maxDate;
- if ((0, utils_1.compareDay)(date, minDate) === -1) {
- return minDate;
- }
- if ((0, utils_1.compareDay)(date, maxDate) === 1) {
- return maxDate;
- }
- return date;
- },
- getInitialDate: function (defaultDate) {
- var _this = this;
- if (defaultDate === void 0) { defaultDate = null; }
- var _a = this.data, type = _a.type, minDate = _a.minDate, maxDate = _a.maxDate, allowSameDay = _a.allowSameDay;
- if (!defaultDate)
- return [];
- var now = (0, utils_1.getToday)().getTime();
- if (type === 'range') {
- if (!Array.isArray(defaultDate)) {
- defaultDate = [];
- }
- var _b = defaultDate || [], startDay = _b[0], endDay = _b[1];
- var startDate = getTime(startDay || now);
- var start = this.limitDateRange(startDate, minDate, allowSameDay ? startDate : (0, utils_1.getPrevDay)(new Date(maxDate)).getTime());
- var date = getTime(endDay || now);
- var end = this.limitDateRange(date, allowSameDay ? date : (0, utils_1.getNextDay)(new Date(minDate)).getTime());
- return [start, end];
- }
- if (type === 'multiple') {
- if (Array.isArray(defaultDate)) {
- return defaultDate.map(function (date) { return _this.limitDateRange(date); });
- }
- return [this.limitDateRange(now)];
- }
- if (!defaultDate || Array.isArray(defaultDate)) {
- defaultDate = now;
- }
- return this.limitDateRange(defaultDate);
- },
- scrollIntoView: function () {
- var _this = this;
- (0, utils_2.requestAnimationFrame)(function () {
- var _a = _this.data, currentDate = _a.currentDate, type = _a.type, show = _a.show, poppable = _a.poppable, minDate = _a.minDate, maxDate = _a.maxDate;
- if (!currentDate)
- return;
- // @ts-ignore
- var targetDate = type === 'single' ? currentDate : currentDate[0];
- var displayed = show || !poppable;
- if (!targetDate || !displayed) {
- return;
- }
- var months = (0, utils_1.getMonths)(minDate, maxDate);
- months.some(function (month, index) {
- if ((0, utils_1.compareMonth)(month, targetDate) === 0) {
- _this.setData({ scrollIntoView: "month".concat(index) });
- return true;
- }
- return false;
- });
- });
- },
- onOpen: function () {
- this.$emit('open');
- },
- onOpened: function () {
- this.$emit('opened');
- },
- onClose: function () {
- this.$emit('close');
- },
- onClosed: function () {
- this.$emit('closed');
- },
- onClickDay: function (event) {
- if (this.data.readonly) {
- return;
- }
- var date = event.detail.date;
- var _a = this.data, type = _a.type, currentDate = _a.currentDate, allowSameDay = _a.allowSameDay;
- if (type === 'range') {
- // @ts-ignore
- var startDay_1 = currentDate[0], endDay = currentDate[1];
- if (startDay_1 && !endDay) {
- var compareToStart = (0, utils_1.compareDay)(date, startDay_1);
- if (compareToStart === 1) {
- var days_1 = this.selectComponent('.month').data.days;
- days_1.some(function (day, index) {
- var isDisabled = day.type === 'disabled' &&
- getTime(startDay_1) < getTime(day.date) &&
- getTime(day.date) < getTime(date);
- if (isDisabled) {
- (date = days_1[index - 1].date);
- }
- return isDisabled;
- });
- this.select([startDay_1, date], true);
- }
- else if (compareToStart === -1) {
- this.select([date, null]);
- }
- else if (allowSameDay) {
- this.select([date, date], true);
- }
- }
- else {
- this.select([date, null]);
- }
- }
- else if (type === 'multiple') {
- var selectedIndex_1;
- // @ts-ignore
- var selected = currentDate.some(function (dateItem, index) {
- var equal = (0, utils_1.compareDay)(dateItem, date) === 0;
- if (equal) {
- selectedIndex_1 = index;
- }
- return equal;
- });
- if (selected) {
- // @ts-ignore
- var cancelDate = currentDate.splice(selectedIndex_1, 1);
- this.setData({ currentDate: currentDate });
- this.unselect(cancelDate);
- }
- else {
- // @ts-ignore
- this.select(__spreadArray(__spreadArray([], currentDate, true), [date], false));
- }
- }
- else {
- this.select(date, true);
- }
- },
- unselect: function (dateArray) {
- var date = dateArray[0];
- if (date) {
- this.$emit('unselect', (0, utils_1.copyDates)(date));
- }
- },
- select: function (date, complete) {
- if (complete && this.data.type === 'range') {
- var valid = this.checkRange(date);
- if (!valid) {
- // auto selected to max range if showConfirm
- if (this.data.showConfirm) {
- this.emit([
- date[0],
- (0, utils_1.getDayByOffset)(date[0], this.data.maxRange - 1),
- ]);
- }
- else {
- this.emit(date);
- }
- return;
- }
- }
- this.emit(date);
- if (complete && !this.data.showConfirm) {
- this.onConfirm();
- }
- },
- emit: function (date) {
- this.setData({
- currentDate: Array.isArray(date) ? date.map(getTime) : getTime(date),
- });
- this.$emit('select', (0, utils_1.copyDates)(date));
- },
- checkRange: function (date) {
- var _a = this.data, maxRange = _a.maxRange, rangePrompt = _a.rangePrompt, showRangePrompt = _a.showRangePrompt;
- if (maxRange && (0, utils_1.calcDateNum)(date) > maxRange) {
- if (showRangePrompt) {
- (0, toast_1.default)({
- context: this,
- message: rangePrompt || "\u9009\u62E9\u5929\u6570\u4E0D\u80FD\u8D85\u8FC7 ".concat(maxRange, " \u5929"),
- });
- }
- this.$emit('over-range');
- return false;
- }
- return true;
- },
- onConfirm: function () {
- var _this = this;
- if (this.data.type === 'range' &&
- !this.checkRange(this.data.currentDate)) {
- return;
- }
- wx.nextTick(function () {
- // @ts-ignore
- _this.$emit('confirm', (0, utils_1.copyDates)(_this.data.currentDate));
- });
- },
- onClickSubtitle: function (event) {
- this.$emit('click-subtitle', event);
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.json
deleted file mode 100644
index 397d5ae..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "header": "./components/header/index",
- "month": "./components/month/index",
- "van-button": "../button/index",
- "van-popup": "../popup/index",
- "van-toast": "../toast/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxml
deleted file mode 100644
index 9667eef..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxml
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxs
deleted file mode 100644
index 0a56646..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxs
+++ /dev/null
@@ -1,37 +0,0 @@
-/* eslint-disable */
-var utils = require('./utils.wxs');
-
-function getMonths(minDate, maxDate) {
- var months = [];
- var cursor = getDate(minDate);
-
- cursor.setDate(1);
-
- do {
- months.push(cursor.getTime());
- cursor.setMonth(cursor.getMonth() + 1);
- } while (utils.compareMonth(cursor, getDate(maxDate)) !== 1);
-
- return months;
-}
-
-function getButtonDisabled(type, currentDate, minRange) {
- if (currentDate == null) {
- return true;
- }
-
- if (type === 'range') {
- return !currentDate[0] || !currentDate[1];
- }
-
- if (type === 'multiple') {
- return currentDate.length < minRange;
- }
-
- return !currentDate;
-}
-
-module.exports = {
- getMonths: getMonths,
- getButtonDisabled: getButtonDisabled
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxss
deleted file mode 100644
index a1f1cf0..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-calendar{background-color:var(--calendar-background-color,#fff);display:flex;flex-direction:column;height:var(--calendar-height,100%)}.van-calendar__close-icon{top:11px}.van-calendar__popup--bottom,.van-calendar__popup--top{height:var(--calendar-popup-height,90%)}.van-calendar__popup--left,.van-calendar__popup--right{height:100%}.van-calendar__body{-webkit-overflow-scrolling:touch;flex:1;overflow:auto}.van-calendar__footer{flex-shrink:0;padding:0 var(--padding-md,16px)}.van-calendar__footer--safe-area-inset-bottom{padding-bottom:env(safe-area-inset-bottom)}.van-calendar__footer+.van-calendar__footer,.van-calendar__footer:empty{display:none}.van-calendar__footer:empty+.van-calendar__footer{display:block!important}.van-calendar__confirm{height:var(--calendar-confirm-button-height,36px)!important;line-height:var(--calendar-confirm-button-line-height,34px)!important;margin:var(--calendar-confirm-button-margin,7px 0)!important}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/utils.js b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/utils.js
deleted file mode 100644
index c9e5df7..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/utils.js
+++ /dev/null
@@ -1,97 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.getMonths = exports.getMonthEndDay = exports.copyDates = exports.calcDateNum = exports.getToday = exports.getNextDay = exports.getPrevDay = exports.getDayByOffset = exports.compareDay = exports.compareMonth = exports.formatMonthTitle = exports.ROW_HEIGHT = void 0;
-exports.ROW_HEIGHT = 64;
-function formatMonthTitle(date) {
- if (!(date instanceof Date)) {
- date = new Date(date);
- }
- return "".concat(date.getFullYear(), "\u5E74").concat(date.getMonth() + 1, "\u6708");
-}
-exports.formatMonthTitle = formatMonthTitle;
-function compareMonth(date1, date2) {
- if (!(date1 instanceof Date)) {
- date1 = new Date(date1);
- }
- if (!(date2 instanceof Date)) {
- date2 = new Date(date2);
- }
- var year1 = date1.getFullYear();
- var year2 = date2.getFullYear();
- var month1 = date1.getMonth();
- var month2 = date2.getMonth();
- if (year1 === year2) {
- return month1 === month2 ? 0 : month1 > month2 ? 1 : -1;
- }
- return year1 > year2 ? 1 : -1;
-}
-exports.compareMonth = compareMonth;
-function compareDay(day1, day2) {
- if (!(day1 instanceof Date)) {
- day1 = new Date(day1);
- }
- if (!(day2 instanceof Date)) {
- day2 = new Date(day2);
- }
- var compareMonthResult = compareMonth(day1, day2);
- if (compareMonthResult === 0) {
- var date1 = day1.getDate();
- var date2 = day2.getDate();
- return date1 === date2 ? 0 : date1 > date2 ? 1 : -1;
- }
- return compareMonthResult;
-}
-exports.compareDay = compareDay;
-function getDayByOffset(date, offset) {
- date = new Date(date);
- date.setDate(date.getDate() + offset);
- return date;
-}
-exports.getDayByOffset = getDayByOffset;
-function getPrevDay(date) {
- return getDayByOffset(date, -1);
-}
-exports.getPrevDay = getPrevDay;
-function getNextDay(date) {
- return getDayByOffset(date, 1);
-}
-exports.getNextDay = getNextDay;
-function getToday() {
- var today = new Date();
- today.setHours(0, 0, 0, 0);
- return today;
-}
-exports.getToday = getToday;
-function calcDateNum(date) {
- var day1 = new Date(date[0]).getTime();
- var day2 = new Date(date[1]).getTime();
- return (day2 - day1) / (1000 * 60 * 60 * 24) + 1;
-}
-exports.calcDateNum = calcDateNum;
-function copyDates(dates) {
- if (Array.isArray(dates)) {
- return dates.map(function (date) {
- if (date === null) {
- return date;
- }
- return new Date(date);
- });
- }
- return new Date(dates);
-}
-exports.copyDates = copyDates;
-function getMonthEndDay(year, month) {
- return 32 - new Date(year, month - 1, 32).getDate();
-}
-exports.getMonthEndDay = getMonthEndDay;
-function getMonths(minDate, maxDate) {
- var months = [];
- var cursor = new Date(minDate);
- cursor.setDate(1);
- do {
- months.push(cursor.getTime());
- cursor.setMonth(cursor.getMonth() + 1);
- } while (compareMonth(cursor, maxDate) !== 1);
- return months;
-}
-exports.getMonths = getMonths;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/utils.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/calendar/utils.wxs
deleted file mode 100644
index e57f6b3..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/calendar/utils.wxs
+++ /dev/null
@@ -1,25 +0,0 @@
-/* eslint-disable */
-function getMonthEndDay(year, month) {
- return 32 - getDate(year, month - 1, 32).getDate();
-}
-
-function compareMonth(date1, date2) {
- date1 = getDate(date1);
- date2 = getDate(date2);
-
- var year1 = date1.getFullYear();
- var year2 = date2.getFullYear();
- var month1 = date1.getMonth();
- var month2 = date2.getMonth();
-
- if (year1 === year2) {
- return month1 === month2 ? 0 : month1 > month2 ? 1 : -1;
- }
-
- return year1 > year2 ? 1 : -1;
-}
-
-module.exports = {
- getMonthEndDay: getMonthEndDay,
- compareMonth: compareMonth
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/card/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/card/index.js
deleted file mode 100644
index 2815655..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/card/index.js
+++ /dev/null
@@ -1,51 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var link_1 = require("../mixins/link");
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- classes: [
- 'num-class',
- 'desc-class',
- 'thumb-class',
- 'title-class',
- 'price-class',
- 'origin-price-class',
- ],
- mixins: [link_1.link],
- props: {
- tag: String,
- num: String,
- desc: String,
- thumb: String,
- title: String,
- price: {
- type: String,
- observer: 'updatePrice',
- },
- centered: Boolean,
- lazyLoad: Boolean,
- thumbLink: String,
- originPrice: String,
- thumbMode: {
- type: String,
- value: 'aspectFit',
- },
- currency: {
- type: String,
- value: '¥',
- },
- },
- methods: {
- updatePrice: function () {
- var price = this.data.price;
- var priceArr = price.toString().split('.');
- this.setData({
- integerStr: priceArr[0],
- decimalStr: priceArr[1] ? ".".concat(priceArr[1]) : '',
- });
- },
- onClickThumb: function () {
- this.jumpLink('thumbLink');
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/card/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/card/index.json
deleted file mode 100644
index e917407..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/card/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-tag": "../tag/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/card/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/card/index.wxml
deleted file mode 100644
index 62173e4..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/card/index.wxml
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/card/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/card/index.wxss
deleted file mode 100644
index 0f4d7c5..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/card/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-card{background-color:var(--card-background-color,#fafafa);box-sizing:border-box;color:var(--card-text-color,#323233);font-size:var(--card-font-size,12px);padding:var(--card-padding,8px 16px);position:relative}.van-card__header{display:flex}.van-card__header--center{align-items:center;justify-content:center}.van-card__thumb{flex:none;height:var(--card-thumb-size,88px);margin-right:var(--padding-xs,8px);position:relative;width:var(--card-thumb-size,88px)}.van-card__thumb:empty{display:none}.van-card__img{border-radius:8px;height:100%;width:100%}.van-card__content{display:flex;flex:1;flex-direction:column;justify-content:space-between;min-height:var(--card-thumb-size,88px);min-width:0;position:relative}.van-card__content--center{justify-content:center}.van-card__desc,.van-card__title{word-wrap:break-word}.van-card__title{font-weight:700;line-height:var(--card-title-line-height,16px)}.van-card__desc{color:var(--card-desc-color,#646566);line-height:var(--card-desc-line-height,20px)}.van-card__bottom{line-height:20px}.van-card__price{color:var(--card-price-color,#ee0a24);display:inline-block;font-size:var(--card-price-font-size,12px);font-weight:700}.van-card__price-integer{font-size:var(--card-price-integer-font-size,16px)}.van-card__price-decimal,.van-card__price-integer{font-family:var(--card-price-font-family,Avenir-Heavy,PingFang SC,Helvetica Neue,Arial,sans-serif)}.van-card__origin-price{color:var(--card-origin-price-color,#646566);display:inline-block;font-size:var(--card-origin-price-font-size,10px);margin-left:5px;text-decoration:line-through}.van-card__num{float:right}.van-card__tag{left:0;position:absolute!important;top:2px}.van-card__footer{flex:none;text-align:right;width:100%}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.js
deleted file mode 100644
index 34a93a6..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.js
+++ /dev/null
@@ -1,13 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- props: {
- title: String,
- border: {
- type: Boolean,
- value: true,
- },
- inset: Boolean,
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.wxml
deleted file mode 100644
index 311e064..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.wxml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
- {{ title }}
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.wxss
deleted file mode 100644
index 08b252f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/cell-group/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-cell-group--inset{border-radius:var(--cell-group-inset-border-radius,8px);margin:var(--cell-group-inset-padding,0 16px);overflow:hidden}.van-cell-group__title{color:var(--cell-group-title-color,#969799);font-size:var(--cell-group-title-font-size,14px);line-height:var(--cell-group-title-line-height,16px);padding:var(--cell-group-title-padding,16px 16px 8px)}.van-cell-group__title--inset{padding:var(--cell-group-inset-title-padding,16px 16px 8px 32px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.js
deleted file mode 100644
index 80f3039..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.js
+++ /dev/null
@@ -1,40 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var link_1 = require("../mixins/link");
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- classes: [
- 'title-class',
- 'label-class',
- 'value-class',
- 'right-icon-class',
- 'hover-class',
- ],
- mixins: [link_1.link],
- props: {
- title: null,
- value: null,
- icon: String,
- size: String,
- label: String,
- center: Boolean,
- isLink: Boolean,
- required: Boolean,
- clickable: Boolean,
- titleWidth: String,
- customStyle: String,
- arrowDirection: String,
- useLabelSlot: Boolean,
- border: {
- type: Boolean,
- value: true,
- },
- titleStyle: String,
- },
- methods: {
- onClick: function (event) {
- this.$emit('click', event.detail);
- this.jumpLink();
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.json
deleted file mode 100644
index 0a336c0..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxml
deleted file mode 100644
index 8387c3c..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxml
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-
-
-
- {{ title }}
-
-
-
-
- {{ label }}
-
-
-
-
- {{ value }}
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxs
deleted file mode 100644
index e3500c4..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxs
+++ /dev/null
@@ -1,17 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function titleStyle(data) {
- return style([
- {
- 'max-width': addUnit(data.titleWidth),
- 'min-width': addUnit(data.titleWidth),
- },
- data.titleStyle,
- ]);
-}
-
-module.exports = {
- titleStyle: titleStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxss
deleted file mode 100644
index 1802f8e..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/cell/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-cell{background-color:var(--cell-background-color,#fff);box-sizing:border-box;color:var(--cell-text-color,#323233);display:flex;font-size:var(--cell-font-size,14px);line-height:var(--cell-line-height,24px);padding:var(--cell-vertical-padding,10px) var(--cell-horizontal-padding,16px);position:relative;width:100%}.van-cell:after{border-bottom:1px solid #ebedf0;bottom:0;box-sizing:border-box;content:" ";left:16px;pointer-events:none;position:absolute;right:16px;transform:scaleY(.5);transform-origin:center}.van-cell--borderless:after{display:none}.van-cell-group{background-color:var(--cell-background-color,#fff)}.van-cell__label{color:var(--cell-label-color,#969799);font-size:var(--cell-label-font-size,12px);line-height:var(--cell-label-line-height,18px);margin-top:var(--cell-label-margin-top,3px)}.van-cell__value{color:var(--cell-value-color,#969799);overflow:hidden;text-align:right;vertical-align:middle}.van-cell__title,.van-cell__value{flex:1}.van-cell__title:empty,.van-cell__value:empty{display:none}.van-cell__left-icon-wrap,.van-cell__right-icon-wrap{align-items:center;display:flex;font-size:var(--cell-icon-size,16px);height:var(--cell-line-height,24px)}.van-cell__left-icon-wrap{margin-right:var(--padding-base,4px)}.van-cell__right-icon-wrap{color:var(--cell-right-icon-color,#969799);margin-left:var(--padding-base,4px)}.van-cell__left-icon{vertical-align:middle}.van-cell__left-icon,.van-cell__right-icon{line-height:var(--cell-line-height,24px)}.van-cell--clickable.van-cell--hover{background-color:var(--cell-active-color,#f2f3f5)}.van-cell--required{overflow:visible}.van-cell--required:before{color:var(--cell-required-color,#ee0a24);content:"*";font-size:var(--cell-font-size,14px);left:var(--padding-xs,8px);position:absolute}.van-cell--center{align-items:center}.van-cell--large{padding-bottom:var(--cell-large-vertical-padding,12px);padding-top:var(--cell-large-vertical-padding,12px)}.van-cell--large .van-cell__title{font-size:var(--cell-large-title-font-size,16px)}.van-cell--large .van-cell__value{font-size:var(--cell-large-value-font-size,16px)}.van-cell--large .van-cell__label{font-size:var(--cell-large-label-font-size,14px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.js
deleted file mode 100644
index 80c93a1..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.js
+++ /dev/null
@@ -1,39 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var relation_1 = require("../common/relation");
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- field: true,
- relation: (0, relation_1.useChildren)('checkbox', function (target) {
- this.updateChild(target);
- }),
- props: {
- max: Number,
- value: {
- type: Array,
- observer: 'updateChildren',
- },
- disabled: {
- type: Boolean,
- observer: 'updateChildren',
- },
- direction: {
- type: String,
- value: 'vertical',
- },
- },
- methods: {
- updateChildren: function () {
- var _this = this;
- this.children.forEach(function (child) { return _this.updateChild(child); });
- },
- updateChild: function (child) {
- var _a = this.data, value = _a.value, disabled = _a.disabled, direction = _a.direction;
- child.setData({
- value: value.indexOf(child.data.name) !== -1,
- parentDisabled: disabled,
- direction: direction,
- });
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.wxml
deleted file mode 100644
index 638bf9d..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.wxml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.wxss
deleted file mode 100644
index c5666d7..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox-group/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-checkbox-group--horizontal{display:flex;flex-wrap:wrap}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.js
deleted file mode 100644
index 6247365..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.js
+++ /dev/null
@@ -1,79 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var relation_1 = require("../common/relation");
-var component_1 = require("../common/component");
-function emit(target, value) {
- target.$emit('input', value);
- target.$emit('change', value);
-}
-(0, component_1.VantComponent)({
- field: true,
- relation: (0, relation_1.useParent)('checkbox-group'),
- classes: ['icon-class', 'label-class'],
- props: {
- value: Boolean,
- disabled: Boolean,
- useIconSlot: Boolean,
- checkedColor: String,
- labelPosition: {
- type: String,
- value: 'right',
- },
- labelDisabled: Boolean,
- shape: {
- type: String,
- value: 'round',
- },
- iconSize: {
- type: null,
- value: 20,
- },
- },
- data: {
- parentDisabled: false,
- direction: 'vertical',
- },
- methods: {
- emitChange: function (value) {
- if (this.parent) {
- this.setParentValue(this.parent, value);
- }
- else {
- emit(this, value);
- }
- },
- toggle: function () {
- var _a = this.data, parentDisabled = _a.parentDisabled, disabled = _a.disabled, value = _a.value;
- if (!disabled && !parentDisabled) {
- this.emitChange(!value);
- }
- },
- onClickLabel: function () {
- var _a = this.data, labelDisabled = _a.labelDisabled, parentDisabled = _a.parentDisabled, disabled = _a.disabled, value = _a.value;
- if (!disabled && !labelDisabled && !parentDisabled) {
- this.emitChange(!value);
- }
- },
- setParentValue: function (parent, value) {
- var parentValue = parent.data.value.slice();
- var name = this.data.name;
- var max = parent.data.max;
- if (value) {
- if (max && parentValue.length >= max) {
- return;
- }
- if (parentValue.indexOf(name) === -1) {
- parentValue.push(name);
- emit(parent, parentValue);
- }
- }
- else {
- var index = parentValue.indexOf(name);
- if (index !== -1) {
- parentValue.splice(index, 1);
- emit(parent, parentValue);
- }
- }
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.json
deleted file mode 100644
index 0a336c0..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxml
deleted file mode 100644
index 39a7bb0..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxs
deleted file mode 100644
index eb9c772..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxs
+++ /dev/null
@@ -1,20 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function iconStyle(checkedColor, value, disabled, parentDisabled, iconSize) {
- var styles = {
- 'font-size': addUnit(iconSize),
- };
-
- if (checkedColor && value && !disabled && !parentDisabled) {
- styles['border-color'] = checkedColor;
- styles['background-color'] = checkedColor;
- }
-
- return style(styles);
-}
-
-module.exports = {
- iconStyle: iconStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxss
deleted file mode 100644
index da2272a..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/checkbox/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-checkbox{align-items:center;display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-checkbox--horizontal{margin-right:12px}.van-checkbox__icon-wrap,.van-checkbox__label{line-height:var(--checkbox-size,20px)}.van-checkbox__icon-wrap{flex:none}.van-checkbox__icon{align-items:center;border:1px solid var(--checkbox-border-color,#c8c9cc);box-sizing:border-box;color:transparent;display:flex;font-size:var(--checkbox-size,20px);height:1em;justify-content:center;text-align:center;transition-duration:var(--checkbox-transition-duration,.2s);transition-property:color,border-color,background-color;width:1em}.van-checkbox__icon--round{border-radius:100%}.van-checkbox__icon--checked{background-color:var(--checkbox-checked-icon-color,#1989fa);border-color:var(--checkbox-checked-icon-color,#1989fa);color:#fff}.van-checkbox__icon--disabled{background-color:var(--checkbox-disabled-background-color,#ebedf0);border-color:var(--checkbox-disabled-icon-color,#c8c9cc)}.van-checkbox__icon--disabled.van-checkbox__icon--checked{color:var(--checkbox-disabled-icon-color,#c8c9cc)}.van-checkbox__label{word-wrap:break-word;color:var(--checkbox-label-color,#323233);padding-left:var(--checkbox-label-margin,10px)}.van-checkbox__label--left{float:left;margin:0 var(--checkbox-label-margin,10px) 0 0}.van-checkbox__label--disabled{color:var(--checkbox-disabled-label-color,#c8c9cc)}.van-checkbox__label:empty{margin:0}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/circle/canvas.js b/src/openeuler/miniprogram_npm/@vant/weapp/circle/canvas.js
deleted file mode 100644
index d81df74..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/circle/canvas.js
+++ /dev/null
@@ -1,47 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.adaptor = void 0;
-function adaptor(ctx) {
- // @ts-ignore
- return Object.assign(ctx, {
- setStrokeStyle: function (val) {
- ctx.strokeStyle = val;
- },
- setLineWidth: function (val) {
- ctx.lineWidth = val;
- },
- setLineCap: function (val) {
- ctx.lineCap = val;
- },
- setFillStyle: function (val) {
- ctx.fillStyle = val;
- },
- setFontSize: function (val) {
- ctx.font = String(val);
- },
- setGlobalAlpha: function (val) {
- ctx.globalAlpha = val;
- },
- setLineJoin: function (val) {
- ctx.lineJoin = val;
- },
- setTextAlign: function (val) {
- ctx.textAlign = val;
- },
- setMiterLimit: function (val) {
- ctx.miterLimit = val;
- },
- setShadow: function (offsetX, offsetY, blur, color) {
- ctx.shadowOffsetX = offsetX;
- ctx.shadowOffsetY = offsetY;
- ctx.shadowBlur = blur;
- ctx.shadowColor = color;
- },
- setTextBaseline: function (val) {
- ctx.textBaseline = val;
- },
- createCircularGradient: function () { },
- draw: function () { },
- });
-}
-exports.adaptor = adaptor;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.js
deleted file mode 100644
index e131e4b..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.js
+++ /dev/null
@@ -1,207 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var color_1 = require("../common/color");
-var component_1 = require("../common/component");
-var utils_1 = require("../common/utils");
-var validator_1 = require("../common/validator");
-var version_1 = require("../common/version");
-var canvas_1 = require("./canvas");
-function format(rate) {
- return Math.min(Math.max(rate, 0), 100);
-}
-var PERIMETER = 2 * Math.PI;
-var BEGIN_ANGLE = -Math.PI / 2;
-var STEP = 1;
-(0, component_1.VantComponent)({
- props: {
- text: String,
- lineCap: {
- type: String,
- value: 'round',
- },
- value: {
- type: Number,
- value: 0,
- observer: 'reRender',
- },
- speed: {
- type: Number,
- value: 50,
- },
- size: {
- type: Number,
- value: 100,
- observer: function () {
- this.drawCircle(this.currentValue);
- },
- },
- fill: String,
- layerColor: {
- type: String,
- value: color_1.WHITE,
- },
- color: {
- type: null,
- value: color_1.BLUE,
- observer: function () {
- var _this = this;
- this.setHoverColor().then(function () {
- _this.drawCircle(_this.currentValue);
- });
- },
- },
- type: {
- type: String,
- value: '',
- },
- strokeWidth: {
- type: Number,
- value: 4,
- },
- clockwise: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- hoverColor: color_1.BLUE,
- },
- methods: {
- getContext: function () {
- var _this = this;
- var _a = this.data, type = _a.type, size = _a.size;
- if (type === '' || !(0, version_1.canIUseCanvas2d)()) {
- var ctx = wx.createCanvasContext('van-circle', this);
- return Promise.resolve(ctx);
- }
- var dpr = (0, utils_1.getSystemInfoSync)().pixelRatio;
- return new Promise(function (resolve) {
- wx.createSelectorQuery()
- .in(_this)
- .select('#van-circle')
- .node()
- .exec(function (res) {
- var canvas = res[0].node;
- var ctx = canvas.getContext(type);
- if (!_this.inited) {
- _this.inited = true;
- canvas.width = size * dpr;
- canvas.height = size * dpr;
- ctx.scale(dpr, dpr);
- }
- resolve((0, canvas_1.adaptor)(ctx));
- });
- });
- },
- setHoverColor: function () {
- var _this = this;
- var _a = this.data, color = _a.color, size = _a.size;
- if ((0, validator_1.isObj)(color)) {
- return this.getContext().then(function (context) {
- if (!context)
- return;
- var LinearColor = context.createLinearGradient(size, 0, 0, 0);
- Object.keys(color)
- .sort(function (a, b) { return parseFloat(a) - parseFloat(b); })
- .map(function (key) {
- return LinearColor.addColorStop(parseFloat(key) / 100, color[key]);
- });
- _this.hoverColor = LinearColor;
- });
- }
- this.hoverColor = color;
- return Promise.resolve();
- },
- presetCanvas: function (context, strokeStyle, beginAngle, endAngle, fill) {
- var _a = this.data, strokeWidth = _a.strokeWidth, lineCap = _a.lineCap, clockwise = _a.clockwise, size = _a.size;
- var position = size / 2;
- var radius = position - strokeWidth / 2;
- context.setStrokeStyle(strokeStyle);
- context.setLineWidth(strokeWidth);
- context.setLineCap(lineCap);
- context.beginPath();
- context.arc(position, position, radius, beginAngle, endAngle, !clockwise);
- context.stroke();
- if (fill) {
- context.setFillStyle(fill);
- context.fill();
- }
- },
- renderLayerCircle: function (context) {
- var _a = this.data, layerColor = _a.layerColor, fill = _a.fill;
- this.presetCanvas(context, layerColor, 0, PERIMETER, fill);
- },
- renderHoverCircle: function (context, formatValue) {
- var clockwise = this.data.clockwise;
- // 结束角度
- var progress = PERIMETER * (formatValue / 100);
- var endAngle = clockwise
- ? BEGIN_ANGLE + progress
- : 3 * Math.PI - (BEGIN_ANGLE + progress);
- this.presetCanvas(context, this.hoverColor, BEGIN_ANGLE, endAngle);
- },
- drawCircle: function (currentValue) {
- var _this = this;
- var size = this.data.size;
- this.getContext().then(function (context) {
- if (!context)
- return;
- context.clearRect(0, 0, size, size);
- _this.renderLayerCircle(context);
- var formatValue = format(currentValue);
- if (formatValue !== 0) {
- _this.renderHoverCircle(context, formatValue);
- }
- context.draw();
- });
- },
- reRender: function () {
- var _this = this;
- // tofector 动画暂时没有想到好的解决方案
- var _a = this.data, value = _a.value, speed = _a.speed;
- if (speed <= 0 || speed > 1000) {
- this.drawCircle(value);
- return;
- }
- this.clearMockInterval();
- this.currentValue = this.currentValue || 0;
- var run = function () {
- _this.interval = setTimeout(function () {
- if (_this.currentValue !== value) {
- if (Math.abs(_this.currentValue - value) < STEP) {
- _this.currentValue = value;
- }
- else if (_this.currentValue < value) {
- _this.currentValue += STEP;
- }
- else {
- _this.currentValue -= STEP;
- }
- _this.drawCircle(_this.currentValue);
- run();
- }
- else {
- _this.clearMockInterval();
- }
- }, 1000 / speed);
- };
- run();
- },
- clearMockInterval: function () {
- if (this.interval) {
- clearTimeout(this.interval);
- this.interval = null;
- }
- },
- },
- mounted: function () {
- var _this = this;
- this.currentValue = this.data.value;
- this.setHoverColor().then(function () {
- _this.drawCircle(_this.currentValue);
- });
- },
- destroyed: function () {
- this.clearMockInterval();
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.wxml
deleted file mode 100644
index 52bc59f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.wxml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
- {{ text }}
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.wxss
deleted file mode 100644
index 2200751..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/circle/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-circle{display:inline-block;position:relative;text-align:center}.van-circle__text{color:var(--circle-text-color,#323233);left:0;position:absolute;top:50%;transform:translateY(-50%);width:100%}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/col/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/col/index.js
deleted file mode 100644
index 63c56eb..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/col/index.js
+++ /dev/null
@@ -1,11 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var relation_1 = require("../common/relation");
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- relation: (0, relation_1.useParent)('row'),
- props: {
- span: Number,
- offset: Number,
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/col/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/col/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/col/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxml
deleted file mode 100644
index 975348b..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxs
deleted file mode 100644
index 507c1cb..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxs
+++ /dev/null
@@ -1,18 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
- if (!data.gutter) {
- return '';
- }
-
- return style({
- 'padding-right': addUnit(data.gutter / 2),
- 'padding-left': addUnit(data.gutter / 2),
- });
-}
-
-module.exports = {
- rootStyle: rootStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxss
deleted file mode 100644
index 2fa265e..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/col/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-col{box-sizing:border-box;float:left}.van-col--1{width:4.16666667%}.van-col--offset-1{margin-left:4.16666667%}.van-col--2{width:8.33333333%}.van-col--offset-2{margin-left:8.33333333%}.van-col--3{width:12.5%}.van-col--offset-3{margin-left:12.5%}.van-col--4{width:16.66666667%}.van-col--offset-4{margin-left:16.66666667%}.van-col--5{width:20.83333333%}.van-col--offset-5{margin-left:20.83333333%}.van-col--6{width:25%}.van-col--offset-6{margin-left:25%}.van-col--7{width:29.16666667%}.van-col--offset-7{margin-left:29.16666667%}.van-col--8{width:33.33333333%}.van-col--offset-8{margin-left:33.33333333%}.van-col--9{width:37.5%}.van-col--offset-9{margin-left:37.5%}.van-col--10{width:41.66666667%}.van-col--offset-10{margin-left:41.66666667%}.van-col--11{width:45.83333333%}.van-col--offset-11{margin-left:45.83333333%}.van-col--12{width:50%}.van-col--offset-12{margin-left:50%}.van-col--13{width:54.16666667%}.van-col--offset-13{margin-left:54.16666667%}.van-col--14{width:58.33333333%}.van-col--offset-14{margin-left:58.33333333%}.van-col--15{width:62.5%}.van-col--offset-15{margin-left:62.5%}.van-col--16{width:66.66666667%}.van-col--offset-16{margin-left:66.66666667%}.van-col--17{width:70.83333333%}.van-col--offset-17{margin-left:70.83333333%}.van-col--18{width:75%}.van-col--offset-18{margin-left:75%}.van-col--19{width:79.16666667%}.van-col--offset-19{margin-left:79.16666667%}.van-col--20{width:83.33333333%}.van-col--offset-20{margin-left:83.33333333%}.van-col--21{width:87.5%}.van-col--offset-21{margin-left:87.5%}.van-col--22{width:91.66666667%}.van-col--offset-22{margin-left:91.66666667%}.van-col--23{width:95.83333333%}.van-col--offset-23{margin-left:95.83333333%}.van-col--24{width:100%}.van-col--offset-24{margin-left:100%}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/animate.js b/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/animate.js
deleted file mode 100644
index 5734087..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/animate.js
+++ /dev/null
@@ -1,43 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.setContentAnimate = void 0;
-var utils_1 = require("../common/utils");
-function useAnimation(context, expanded, mounted, height) {
- var animation = wx.createAnimation({
- duration: 0,
- timingFunction: 'ease-in-out',
- });
- if (expanded) {
- if (height === 0) {
- animation.height('auto').top(1).step();
- }
- else {
- animation
- .height(height)
- .top(1)
- .step({
- duration: mounted ? 300 : 1,
- })
- .height('auto')
- .step();
- }
- context.setData({
- animation: animation.export(),
- });
- return;
- }
- animation.height(height).top(0).step({ duration: 1 }).height(0).step({
- duration: 300,
- });
- context.setData({
- animation: animation.export(),
- });
-}
-function setContentAnimate(context, expanded, mounted) {
- (0, utils_1.getRect)(context, '.van-collapse-item__content')
- .then(function (rect) { return rect.height; })
- .then(function (height) {
- useAnimation(context, expanded, mounted, height);
- });
-}
-exports.setContentAnimate = setContentAnimate;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.js
deleted file mode 100644
index 982490e..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.js
+++ /dev/null
@@ -1,62 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var relation_1 = require("../common/relation");
-var animate_1 = require("./animate");
-(0, component_1.VantComponent)({
- classes: ['title-class', 'content-class'],
- relation: (0, relation_1.useParent)('collapse'),
- props: {
- size: String,
- name: null,
- title: null,
- value: null,
- icon: String,
- label: String,
- disabled: Boolean,
- clickable: Boolean,
- border: {
- type: Boolean,
- value: true,
- },
- isLink: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- expanded: false,
- },
- mounted: function () {
- this.updateExpanded();
- this.mounted = true;
- },
- methods: {
- updateExpanded: function () {
- if (!this.parent) {
- return;
- }
- var _a = this.parent.data, value = _a.value, accordion = _a.accordion;
- var _b = this.parent.children, children = _b === void 0 ? [] : _b;
- var name = this.data.name;
- var index = children.indexOf(this);
- var currentName = name == null ? index : name;
- var expanded = accordion
- ? value === currentName
- : (value || []).some(function (name) { return name === currentName; });
- if (expanded !== this.data.expanded) {
- (0, animate_1.setContentAnimate)(this, expanded, this.mounted);
- }
- this.setData({ index: index, expanded: expanded });
- },
- onClick: function () {
- if (this.data.disabled) {
- return;
- }
- var _a = this.data, name = _a.name, expanded = _a.expanded;
- var index = this.parent.children.indexOf(this);
- var currentName = name == null ? index : name;
- this.parent.switch(currentName, !expanded);
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.json
deleted file mode 100644
index 0e5425c..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-cell": "../cell/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.wxml
deleted file mode 100644
index f11d0d4..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.wxml
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.wxss
deleted file mode 100644
index 4a65b5a..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/collapse-item/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-collapse-item__title .van-cell__right-icon{transform:rotate(90deg);transition:transform var(--collapse-item-transition-duration,.3s)}.van-collapse-item__title--expanded .van-cell__right-icon{transform:rotate(-90deg)}.van-collapse-item__title--disabled .van-cell,.van-collapse-item__title--disabled .van-cell__right-icon{color:var(--collapse-item-title-disabled-color,#c8c9cc)!important}.van-collapse-item__title--disabled .van-cell--hover{background-color:#fff!important}.van-collapse-item__wrapper{overflow:hidden}.van-collapse-item__content{background-color:var(--collapse-item-content-background-color,#fff);color:var(--collapse-item-content-text-color,#969799);font-size:var(--collapse-item-content-font-size,13px);line-height:var(--collapse-item-content-line-height,1.5);padding:var(--collapse-item-content-padding,15px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.js
deleted file mode 100644
index 943d542..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.js
+++ /dev/null
@@ -1,48 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var relation_1 = require("../common/relation");
-(0, component_1.VantComponent)({
- relation: (0, relation_1.useChildren)('collapse-item'),
- props: {
- value: {
- type: null,
- observer: 'updateExpanded',
- },
- accordion: {
- type: Boolean,
- observer: 'updateExpanded',
- },
- border: {
- type: Boolean,
- value: true,
- },
- },
- methods: {
- updateExpanded: function () {
- this.children.forEach(function (child) {
- child.updateExpanded();
- });
- },
- switch: function (name, expanded) {
- var _a = this.data, accordion = _a.accordion, value = _a.value;
- var changeItem = name;
- if (!accordion) {
- name = expanded
- ? (value || []).concat(name)
- : (value || []).filter(function (activeName) { return activeName !== name; });
- }
- else {
- name = expanded ? name : '';
- }
- if (expanded) {
- this.$emit('open', changeItem);
- }
- else {
- this.$emit('close', changeItem);
- }
- this.$emit('change', name);
- this.$emit('input', name);
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.wxml
deleted file mode 100644
index fd4e171..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.wxml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.wxss
deleted file mode 100644
index 99694d6..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/collapse/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/color.js b/src/openeuler/miniprogram_npm/@vant/weapp/common/color.js
deleted file mode 100644
index 008a45a..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/common/color.js
+++ /dev/null
@@ -1,10 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.GRAY_DARK = exports.GRAY = exports.ORANGE = exports.GREEN = exports.WHITE = exports.BLUE = exports.RED = void 0;
-exports.RED = '#ee0a24';
-exports.BLUE = '#1989fa';
-exports.WHITE = '#fff';
-exports.GREEN = '#07c160';
-exports.ORANGE = '#ff976a';
-exports.GRAY = '#323233';
-exports.GRAY_DARK = '#969799';
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/component.js b/src/openeuler/miniprogram_npm/@vant/weapp/common/component.js
deleted file mode 100644
index 66da00e..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/common/component.js
+++ /dev/null
@@ -1,49 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.VantComponent = void 0;
-var basic_1 = require("../mixins/basic");
-function mapKeys(source, target, map) {
- Object.keys(map).forEach(function (key) {
- if (source[key]) {
- target[map[key]] = source[key];
- }
- });
-}
-function VantComponent(vantOptions) {
- var options = {};
- mapKeys(vantOptions, options, {
- data: 'data',
- props: 'properties',
- watch: 'observers',
- mixins: 'behaviors',
- methods: 'methods',
- beforeCreate: 'created',
- created: 'attached',
- mounted: 'ready',
- destroyed: 'detached',
- classes: 'externalClasses',
- });
- // add default externalClasses
- options.externalClasses = options.externalClasses || [];
- options.externalClasses.push('custom-class');
- // add default behaviors
- options.behaviors = options.behaviors || [];
- options.behaviors.push(basic_1.basic);
- // add relations
- var relation = vantOptions.relation;
- if (relation) {
- options.relations = relation.relations;
- options.behaviors.push(relation.mixin);
- }
- // map field to form-field behavior
- if (vantOptions.field) {
- options.behaviors.push('wx://form-field');
- }
- // add default options
- options.options = {
- multipleSlots: true,
- addGlobalClass: true,
- };
- Component(options);
-}
-exports.VantComponent = VantComponent;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/common/index.wxss
deleted file mode 100644
index a73bb7a..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/common/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-multi-ellipsis--l2{-webkit-line-clamp:2}.van-multi-ellipsis--l2,.van-multi-ellipsis--l3{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.van-multi-ellipsis--l3{-webkit-line-clamp:3}.van-clearfix:after{clear:both;content:"";display:table}.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after{border:0 solid #ebedf0;bottom:-50%;box-sizing:border-box;content:" ";left:-50%;pointer-events:none;position:absolute;right:-50%;top:-50%;transform:scale(.5);transform-origin:center}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/relation.js b/src/openeuler/miniprogram_npm/@vant/weapp/common/relation.js
deleted file mode 100644
index 008256c..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/common/relation.js
+++ /dev/null
@@ -1,65 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.useChildren = exports.useParent = void 0;
-function useParent(name, onEffect) {
- var _a;
- var path = "../".concat(name, "/index");
- return {
- relations: (_a = {},
- _a[path] = {
- type: 'ancestor',
- linked: function () {
- onEffect && onEffect.call(this);
- },
- linkChanged: function () {
- onEffect && onEffect.call(this);
- },
- unlinked: function () {
- onEffect && onEffect.call(this);
- },
- },
- _a),
- mixin: Behavior({
- created: function () {
- var _this = this;
- Object.defineProperty(this, 'parent', {
- get: function () { return _this.getRelationNodes(path)[0]; },
- });
- Object.defineProperty(this, 'index', {
- // @ts-ignore
- get: function () { var _a, _b; return (_b = (_a = _this.parent) === null || _a === void 0 ? void 0 : _a.children) === null || _b === void 0 ? void 0 : _b.indexOf(_this); },
- });
- },
- }),
- };
-}
-exports.useParent = useParent;
-function useChildren(name, onEffect) {
- var _a;
- var path = "../".concat(name, "/index");
- return {
- relations: (_a = {},
- _a[path] = {
- type: 'descendant',
- linked: function (target) {
- onEffect && onEffect.call(this, target);
- },
- linkChanged: function (target) {
- onEffect && onEffect.call(this, target);
- },
- unlinked: function (target) {
- onEffect && onEffect.call(this, target);
- },
- },
- _a),
- mixin: Behavior({
- created: function () {
- var _this = this;
- Object.defineProperty(this, 'children', {
- get: function () { return _this.getRelationNodes(path) || []; },
- });
- },
- }),
- };
-}
-exports.useChildren = useChildren;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/style/clearfix.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/common/style/clearfix.wxss
deleted file mode 100644
index 442246f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/common/style/clearfix.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-clearfix:after{clear:both;content:"";display:table}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/style/ellipsis.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/common/style/ellipsis.wxss
deleted file mode 100644
index ee701df..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/common/style/ellipsis.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-multi-ellipsis--l2{-webkit-line-clamp:2}.van-multi-ellipsis--l2,.van-multi-ellipsis--l3{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.van-multi-ellipsis--l3{-webkit-line-clamp:3}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/style/hairline.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/common/style/hairline.wxss
deleted file mode 100644
index f7c6260..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/common/style/hairline.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after{border:0 solid #ebedf0;bottom:-50%;box-sizing:border-box;content:" ";left:-50%;pointer-events:none;position:absolute;right:-50%;top:-50%;transform:scale(.5);transform-origin:center}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/style/mixins/clearfix.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/common/style/mixins/clearfix.wxss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/style/mixins/ellipsis.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/common/style/mixins/ellipsis.wxss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/style/mixins/hairline.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/common/style/mixins/hairline.wxss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/style/var.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/common/style/var.wxss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/utils.js b/src/openeuler/miniprogram_npm/@vant/weapp/common/utils.js
deleted file mode 100644
index 80fb803..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/common/utils.js
+++ /dev/null
@@ -1,107 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.isPC = exports.getCurrentPage = exports.clamp = exports.addNumber = exports.toPromise = exports.groupSetData = exports.getAllRect = exports.getRect = exports.pickExclude = exports.requestAnimationFrame = exports.addUnit = exports.nextTick = exports.range = exports.getSystemInfoSync = exports.isDef = void 0;
-var validator_1 = require("./validator");
-var version_1 = require("./version");
-var validator_2 = require("./validator");
-Object.defineProperty(exports, "isDef", { enumerable: true, get: function () { return validator_2.isDef; } });
-var version_2 = require("./version");
-Object.defineProperty(exports, "getSystemInfoSync", { enumerable: true, get: function () { return version_2.getSystemInfoSync; } });
-function range(num, min, max) {
- return Math.min(Math.max(num, min), max);
-}
-exports.range = range;
-function nextTick(cb) {
- if ((0, version_1.canIUseNextTick)()) {
- wx.nextTick(cb);
- }
- else {
- setTimeout(function () {
- cb();
- }, 1000 / 30);
- }
-}
-exports.nextTick = nextTick;
-function addUnit(value) {
- if (!(0, validator_1.isDef)(value)) {
- return undefined;
- }
- value = String(value);
- return (0, validator_1.isNumber)(value) ? "".concat(value, "px") : value;
-}
-exports.addUnit = addUnit;
-function requestAnimationFrame(cb) {
- return setTimeout(function () {
- cb();
- }, 1000 / 30);
-}
-exports.requestAnimationFrame = requestAnimationFrame;
-function pickExclude(obj, keys) {
- if (!(0, validator_1.isPlainObject)(obj)) {
- return {};
- }
- return Object.keys(obj).reduce(function (prev, key) {
- if (!keys.includes(key)) {
- prev[key] = obj[key];
- }
- return prev;
- }, {});
-}
-exports.pickExclude = pickExclude;
-function getRect(context, selector) {
- return new Promise(function (resolve) {
- wx.createSelectorQuery()
- .in(context)
- .select(selector)
- .boundingClientRect()
- .exec(function (rect) {
- if (rect === void 0) { rect = []; }
- return resolve(rect[0]);
- });
- });
-}
-exports.getRect = getRect;
-function getAllRect(context, selector) {
- return new Promise(function (resolve) {
- wx.createSelectorQuery()
- .in(context)
- .selectAll(selector)
- .boundingClientRect()
- .exec(function (rect) {
- if (rect === void 0) { rect = []; }
- return resolve(rect[0]);
- });
- });
-}
-exports.getAllRect = getAllRect;
-function groupSetData(context, cb) {
- if ((0, version_1.canIUseGroupSetData)()) {
- context.groupSetData(cb);
- }
- else {
- cb();
- }
-}
-exports.groupSetData = groupSetData;
-function toPromise(promiseLike) {
- if ((0, validator_1.isPromise)(promiseLike)) {
- return promiseLike;
- }
- return Promise.resolve(promiseLike);
-}
-exports.toPromise = toPromise;
-// 浮点数精度处理
-function addNumber(num1, num2) {
- var cardinal = Math.pow(10, 10);
- return Math.round((num1 + num2) * cardinal) / cardinal;
-}
-exports.addNumber = addNumber;
-// 限制value在[min, max]之间
-var clamp = function (num, min, max) { return Math.min(Math.max(num, min), max); };
-exports.clamp = clamp;
-function getCurrentPage() {
- var pages = getCurrentPages();
- return pages[pages.length - 1];
-}
-exports.getCurrentPage = getCurrentPage;
-exports.isPC = ['mac', 'windows'].includes((0, version_1.getSystemInfoSync)().platform);
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/validator.js b/src/openeuler/miniprogram_npm/@vant/weapp/common/validator.js
deleted file mode 100644
index 169e796..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/common/validator.js
+++ /dev/null
@@ -1,43 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.isVideoUrl = exports.isImageUrl = exports.isBoolean = exports.isNumber = exports.isObj = exports.isDef = exports.isPromise = exports.isPlainObject = exports.isFunction = void 0;
-// eslint-disable-next-line @typescript-eslint/ban-types
-function isFunction(val) {
- return typeof val === 'function';
-}
-exports.isFunction = isFunction;
-function isPlainObject(val) {
- return val !== null && typeof val === 'object' && !Array.isArray(val);
-}
-exports.isPlainObject = isPlainObject;
-function isPromise(val) {
- return isPlainObject(val) && isFunction(val.then) && isFunction(val.catch);
-}
-exports.isPromise = isPromise;
-function isDef(value) {
- return value !== undefined && value !== null;
-}
-exports.isDef = isDef;
-function isObj(x) {
- var type = typeof x;
- return x !== null && (type === 'object' || type === 'function');
-}
-exports.isObj = isObj;
-function isNumber(value) {
- return /^\d+(\.\d+)?$/.test(value);
-}
-exports.isNumber = isNumber;
-function isBoolean(value) {
- return typeof value === 'boolean';
-}
-exports.isBoolean = isBoolean;
-var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
-var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i;
-function isImageUrl(url) {
- return IMAGE_REGEXP.test(url);
-}
-exports.isImageUrl = isImageUrl;
-function isVideoUrl(url) {
- return VIDEO_REGEXP.test(url);
-}
-exports.isVideoUrl = isVideoUrl;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/common/version.js b/src/openeuler/miniprogram_npm/@vant/weapp/common/version.js
deleted file mode 100644
index 5937008..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/common/version.js
+++ /dev/null
@@ -1,70 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.canIUseGetUserProfile = exports.canIUseCanvas2d = exports.canIUseNextTick = exports.canIUseGroupSetData = exports.canIUseAnimate = exports.canIUseFormFieldButton = exports.canIUseModel = exports.getSystemInfoSync = void 0;
-var systemInfo;
-function getSystemInfoSync() {
- if (systemInfo == null) {
- systemInfo = wx.getSystemInfoSync();
- }
- return systemInfo;
-}
-exports.getSystemInfoSync = getSystemInfoSync;
-function compareVersion(v1, v2) {
- v1 = v1.split('.');
- v2 = v2.split('.');
- var len = Math.max(v1.length, v2.length);
- while (v1.length < len) {
- v1.push('0');
- }
- while (v2.length < len) {
- v2.push('0');
- }
- for (var i = 0; i < len; i++) {
- var num1 = parseInt(v1[i], 10);
- var num2 = parseInt(v2[i], 10);
- if (num1 > num2) {
- return 1;
- }
- if (num1 < num2) {
- return -1;
- }
- }
- return 0;
-}
-function gte(version) {
- var system = getSystemInfoSync();
- return compareVersion(system.SDKVersion, version) >= 0;
-}
-function canIUseModel() {
- return gte('2.9.3');
-}
-exports.canIUseModel = canIUseModel;
-function canIUseFormFieldButton() {
- return gte('2.10.3');
-}
-exports.canIUseFormFieldButton = canIUseFormFieldButton;
-function canIUseAnimate() {
- return gte('2.9.0');
-}
-exports.canIUseAnimate = canIUseAnimate;
-function canIUseGroupSetData() {
- return gte('2.4.0');
-}
-exports.canIUseGroupSetData = canIUseGroupSetData;
-function canIUseNextTick() {
- try {
- return wx.canIUse('nextTick');
- }
- catch (e) {
- return gte('2.7.1');
- }
-}
-exports.canIUseNextTick = canIUseNextTick;
-function canIUseCanvas2d() {
- return gte('2.9.0');
-}
-exports.canIUseCanvas2d = canIUseCanvas2d;
-function canIUseGetUserProfile() {
- return !!wx.getUserProfile;
-}
-exports.canIUseGetUserProfile = canIUseGetUserProfile;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.js
deleted file mode 100644
index afc780b..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.js
+++ /dev/null
@@ -1,104 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var utils_1 = require("./utils");
-function simpleTick(fn) {
- return setTimeout(fn, 30);
-}
-(0, component_1.VantComponent)({
- props: {
- useSlot: Boolean,
- millisecond: Boolean,
- time: {
- type: Number,
- observer: 'reset',
- },
- format: {
- type: String,
- value: 'HH:mm:ss',
- },
- autoStart: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- timeData: (0, utils_1.parseTimeData)(0),
- formattedTime: '0',
- },
- destroyed: function () {
- clearTimeout(this.tid);
- this.tid = null;
- },
- methods: {
- // 开始
- start: function () {
- if (this.counting) {
- return;
- }
- this.counting = true;
- this.endTime = Date.now() + this.remain;
- this.tick();
- },
- // 暂停
- pause: function () {
- this.counting = false;
- clearTimeout(this.tid);
- },
- // 重置
- reset: function () {
- this.pause();
- this.remain = this.data.time;
- this.setRemain(this.remain);
- if (this.data.autoStart) {
- this.start();
- }
- },
- tick: function () {
- if (this.data.millisecond) {
- this.microTick();
- }
- else {
- this.macroTick();
- }
- },
- microTick: function () {
- var _this = this;
- this.tid = simpleTick(function () {
- _this.setRemain(_this.getRemain());
- if (_this.remain !== 0) {
- _this.microTick();
- }
- });
- },
- macroTick: function () {
- var _this = this;
- this.tid = simpleTick(function () {
- var remain = _this.getRemain();
- if (!(0, utils_1.isSameSecond)(remain, _this.remain) || remain === 0) {
- _this.setRemain(remain);
- }
- if (_this.remain !== 0) {
- _this.macroTick();
- }
- });
- },
- getRemain: function () {
- return Math.max(this.endTime - Date.now(), 0);
- },
- setRemain: function (remain) {
- this.remain = remain;
- var timeData = (0, utils_1.parseTimeData)(remain);
- if (this.data.useSlot) {
- this.$emit('change', timeData);
- }
- this.setData({
- formattedTime: (0, utils_1.parseFormat)(this.data.format, timeData),
- });
- if (remain === 0) {
- this.pause();
- this.$emit('finish');
- }
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.wxml
deleted file mode 100644
index e206e16..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.wxml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
- {{ formattedTime }}
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.wxss
deleted file mode 100644
index 8b957f7..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/count-down/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-count-down{color:var(--count-down-text-color,#323233);font-size:var(--count-down-font-size,14px);line-height:var(--count-down-line-height,20px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/count-down/utils.js b/src/openeuler/miniprogram_npm/@vant/weapp/count-down/utils.js
deleted file mode 100644
index a7cfa5f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/count-down/utils.js
+++ /dev/null
@@ -1,64 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.isSameSecond = exports.parseFormat = exports.parseTimeData = void 0;
-function padZero(num, targetLength) {
- if (targetLength === void 0) { targetLength = 2; }
- var str = num + '';
- while (str.length < targetLength) {
- str = '0' + str;
- }
- return str;
-}
-var SECOND = 1000;
-var MINUTE = 60 * SECOND;
-var HOUR = 60 * MINUTE;
-var DAY = 24 * HOUR;
-function parseTimeData(time) {
- var days = Math.floor(time / DAY);
- var hours = Math.floor((time % DAY) / HOUR);
- var minutes = Math.floor((time % HOUR) / MINUTE);
- var seconds = Math.floor((time % MINUTE) / SECOND);
- var milliseconds = Math.floor(time % SECOND);
- return {
- days: days,
- hours: hours,
- minutes: minutes,
- seconds: seconds,
- milliseconds: milliseconds,
- };
-}
-exports.parseTimeData = parseTimeData;
-function parseFormat(format, timeData) {
- var days = timeData.days;
- var hours = timeData.hours, minutes = timeData.minutes, seconds = timeData.seconds, milliseconds = timeData.milliseconds;
- if (format.indexOf('DD') === -1) {
- hours += days * 24;
- }
- else {
- format = format.replace('DD', padZero(days));
- }
- if (format.indexOf('HH') === -1) {
- minutes += hours * 60;
- }
- else {
- format = format.replace('HH', padZero(hours));
- }
- if (format.indexOf('mm') === -1) {
- seconds += minutes * 60;
- }
- else {
- format = format.replace('mm', padZero(minutes));
- }
- if (format.indexOf('ss') === -1) {
- milliseconds += seconds * 1000;
- }
- else {
- format = format.replace('ss', padZero(seconds));
- }
- return format.replace('SSS', padZero(milliseconds, 3));
-}
-exports.parseFormat = parseFormat;
-function isSameSecond(time1, time2) {
- return Math.floor(time1 / 1000) === Math.floor(time2 / 1000);
-}
-exports.isSameSecond = isSameSecond;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.js
deleted file mode 100644
index e30afef..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.js
+++ /dev/null
@@ -1,329 +0,0 @@
-"use strict";
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
- if (ar || !(i in from)) {
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
- ar[i] = from[i];
- }
- }
- return to.concat(ar || Array.prototype.slice.call(from));
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var validator_1 = require("../common/validator");
-var shared_1 = require("../picker/shared");
-var currentYear = new Date().getFullYear();
-function isValidDate(date) {
- return (0, validator_1.isDef)(date) && !isNaN(new Date(date).getTime());
-}
-function range(num, min, max) {
- return Math.min(Math.max(num, min), max);
-}
-function padZero(val) {
- return "00".concat(val).slice(-2);
-}
-function times(n, iteratee) {
- var index = -1;
- var result = Array(n < 0 ? 0 : n);
- while (++index < n) {
- result[index] = iteratee(index);
- }
- return result;
-}
-function getTrueValue(formattedValue) {
- if (formattedValue === undefined) {
- formattedValue = '1';
- }
- while (isNaN(parseInt(formattedValue, 10))) {
- formattedValue = formattedValue.slice(1);
- }
- return parseInt(formattedValue, 10);
-}
-function getMonthEndDay(year, month) {
- return 32 - new Date(year, month - 1, 32).getDate();
-}
-var defaultFormatter = function (type, value) { return value; };
-(0, component_1.VantComponent)({
- classes: ['active-class', 'toolbar-class', 'column-class'],
- props: __assign(__assign({}, shared_1.pickerProps), { value: {
- type: null,
- observer: 'updateValue',
- }, filter: null, type: {
- type: String,
- value: 'datetime',
- observer: 'updateValue',
- }, showToolbar: {
- type: Boolean,
- value: true,
- }, formatter: {
- type: null,
- value: defaultFormatter,
- }, minDate: {
- type: Number,
- value: new Date(currentYear - 10, 0, 1).getTime(),
- observer: 'updateValue',
- }, maxDate: {
- type: Number,
- value: new Date(currentYear + 10, 11, 31).getTime(),
- observer: 'updateValue',
- }, minHour: {
- type: Number,
- value: 0,
- observer: 'updateValue',
- }, maxHour: {
- type: Number,
- value: 23,
- observer: 'updateValue',
- }, minMinute: {
- type: Number,
- value: 0,
- observer: 'updateValue',
- }, maxMinute: {
- type: Number,
- value: 59,
- observer: 'updateValue',
- } }),
- data: {
- innerValue: Date.now(),
- columns: [],
- },
- methods: {
- updateValue: function () {
- var _this = this;
- var data = this.data;
- var val = this.correctValue(data.value);
- var isEqual = val === data.innerValue;
- this.updateColumnValue(val).then(function () {
- if (!isEqual) {
- _this.$emit('input', val);
- }
- });
- },
- getPicker: function () {
- if (this.picker == null) {
- this.picker = this.selectComponent('.van-datetime-picker');
- var picker_1 = this.picker;
- var setColumnValues_1 = picker_1.setColumnValues;
- picker_1.setColumnValues = function () {
- var args = [];
- for (var _i = 0; _i < arguments.length; _i++) {
- args[_i] = arguments[_i];
- }
- return setColumnValues_1.apply(picker_1, __spreadArray(__spreadArray([], args, true), [false], false));
- };
- }
- return this.picker;
- },
- updateColumns: function () {
- var _a = this.data.formatter, formatter = _a === void 0 ? defaultFormatter : _a;
- var results = this.getOriginColumns().map(function (column) { return ({
- values: column.values.map(function (value) { return formatter(column.type, value); }),
- }); });
- return this.set({ columns: results });
- },
- getOriginColumns: function () {
- var filter = this.data.filter;
- var results = this.getRanges().map(function (_a) {
- var type = _a.type, range = _a.range;
- var values = times(range[1] - range[0] + 1, function (index) {
- var value = range[0] + index;
- return type === 'year' ? "".concat(value) : padZero(value);
- });
- if (filter) {
- values = filter(type, values);
- }
- return { type: type, values: values };
- });
- return results;
- },
- getRanges: function () {
- var data = this.data;
- if (data.type === 'time') {
- return [
- {
- type: 'hour',
- range: [data.minHour, data.maxHour],
- },
- {
- type: 'minute',
- range: [data.minMinute, data.maxMinute],
- },
- ];
- }
- var _a = this.getBoundary('max', data.innerValue), maxYear = _a.maxYear, maxDate = _a.maxDate, maxMonth = _a.maxMonth, maxHour = _a.maxHour, maxMinute = _a.maxMinute;
- var _b = this.getBoundary('min', data.innerValue), minYear = _b.minYear, minDate = _b.minDate, minMonth = _b.minMonth, minHour = _b.minHour, minMinute = _b.minMinute;
- var result = [
- {
- type: 'year',
- range: [minYear, maxYear],
- },
- {
- type: 'month',
- range: [minMonth, maxMonth],
- },
- {
- type: 'day',
- range: [minDate, maxDate],
- },
- {
- type: 'hour',
- range: [minHour, maxHour],
- },
- {
- type: 'minute',
- range: [minMinute, maxMinute],
- },
- ];
- if (data.type === 'date')
- result.splice(3, 2);
- if (data.type === 'year-month')
- result.splice(2, 3);
- return result;
- },
- correctValue: function (value) {
- var data = this.data;
- // validate value
- var isDateType = data.type !== 'time';
- if (isDateType && !isValidDate(value)) {
- value = data.minDate;
- }
- else if (!isDateType && !value) {
- var minHour = data.minHour;
- value = "".concat(padZero(minHour), ":00");
- }
- // time type
- if (!isDateType) {
- var _a = value.split(':'), hour = _a[0], minute = _a[1];
- hour = padZero(range(hour, data.minHour, data.maxHour));
- minute = padZero(range(minute, data.minMinute, data.maxMinute));
- return "".concat(hour, ":").concat(minute);
- }
- // date type
- value = Math.max(value, data.minDate);
- value = Math.min(value, data.maxDate);
- return value;
- },
- getBoundary: function (type, innerValue) {
- var _a;
- var value = new Date(innerValue);
- var boundary = new Date(this.data["".concat(type, "Date")]);
- var year = boundary.getFullYear();
- var month = 1;
- var date = 1;
- var hour = 0;
- var minute = 0;
- if (type === 'max') {
- month = 12;
- date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
- hour = 23;
- minute = 59;
- }
- if (value.getFullYear() === year) {
- month = boundary.getMonth() + 1;
- if (value.getMonth() + 1 === month) {
- date = boundary.getDate();
- if (value.getDate() === date) {
- hour = boundary.getHours();
- if (value.getHours() === hour) {
- minute = boundary.getMinutes();
- }
- }
- }
- }
- return _a = {},
- _a["".concat(type, "Year")] = year,
- _a["".concat(type, "Month")] = month,
- _a["".concat(type, "Date")] = date,
- _a["".concat(type, "Hour")] = hour,
- _a["".concat(type, "Minute")] = minute,
- _a;
- },
- onCancel: function () {
- this.$emit('cancel');
- },
- onConfirm: function () {
- this.$emit('confirm', this.data.innerValue);
- },
- onChange: function () {
- var _this = this;
- var data = this.data;
- var value;
- var picker = this.getPicker();
- var originColumns = this.getOriginColumns();
- if (data.type === 'time') {
- var indexes = picker.getIndexes();
- value = "".concat(+originColumns[0].values[indexes[0]], ":").concat(+originColumns[1]
- .values[indexes[1]]);
- }
- else {
- var indexes = picker.getIndexes();
- var values = indexes.map(function (value, index) { return originColumns[index].values[value]; });
- var year = getTrueValue(values[0]);
- var month = getTrueValue(values[1]);
- var maxDate = getMonthEndDay(year, month);
- var date = getTrueValue(values[2]);
- if (data.type === 'year-month') {
- date = 1;
- }
- date = date > maxDate ? maxDate : date;
- var hour = 0;
- var minute = 0;
- if (data.type === 'datetime') {
- hour = getTrueValue(values[3]);
- minute = getTrueValue(values[4]);
- }
- value = new Date(year, month - 1, date, hour, minute);
- }
- value = this.correctValue(value);
- this.updateColumnValue(value).then(function () {
- _this.$emit('input', value);
- _this.$emit('change', picker);
- });
- },
- updateColumnValue: function (value) {
- var _this = this;
- var values = [];
- var type = this.data.type;
- var formatter = this.data.formatter || defaultFormatter;
- var picker = this.getPicker();
- if (type === 'time') {
- var pair = value.split(':');
- values = [formatter('hour', pair[0]), formatter('minute', pair[1])];
- }
- else {
- var date = new Date(value);
- values = [
- formatter('year', "".concat(date.getFullYear())),
- formatter('month', padZero(date.getMonth() + 1)),
- ];
- if (type === 'date') {
- values.push(formatter('day', padZero(date.getDate())));
- }
- if (type === 'datetime') {
- values.push(formatter('day', padZero(date.getDate())), formatter('hour', padZero(date.getHours())), formatter('minute', padZero(date.getMinutes())));
- }
- }
- return this.set({ innerValue: value })
- .then(function () { return _this.updateColumns(); })
- .then(function () { return picker.setValues(values); });
- },
- },
- created: function () {
- var _this = this;
- var innerValue = this.correctValue(this.data.value);
- this.updateColumnValue(innerValue).then(function () {
- _this.$emit('input', innerValue);
- });
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.json
deleted file mode 100644
index a778e91..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-picker": "../picker/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.wxml
deleted file mode 100644
index ade2202..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.wxml
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.wxss
deleted file mode 100644
index 99694d6..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/datetime-picker/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/definitions/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/definitions/index.js
deleted file mode 100644
index c8ad2e5..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/definitions/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dialog/dialog.js b/src/openeuler/miniprogram_npm/@vant/weapp/dialog/dialog.js
deleted file mode 100644
index 400f4f1..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dialog/dialog.js
+++ /dev/null
@@ -1,92 +0,0 @@
-"use strict";
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var queue = [];
-var defaultOptions = {
- show: false,
- title: '',
- width: null,
- theme: 'default',
- message: '',
- zIndex: 100,
- overlay: true,
- selector: '#van-dialog',
- className: '',
- asyncClose: false,
- beforeClose: null,
- transition: 'scale',
- customStyle: '',
- messageAlign: '',
- overlayStyle: '',
- confirmButtonText: '确认',
- cancelButtonText: '取消',
- showConfirmButton: true,
- showCancelButton: false,
- closeOnClickOverlay: false,
- confirmButtonOpenType: '',
-};
-var currentOptions = __assign({}, defaultOptions);
-function getContext() {
- var pages = getCurrentPages();
- return pages[pages.length - 1];
-}
-var Dialog = function (options) {
- options = __assign(__assign({}, currentOptions), options);
- return new Promise(function (resolve, reject) {
- var context = (typeof options.context === 'function'
- ? options.context()
- : options.context) || getContext();
- var dialog = context.selectComponent(options.selector);
- delete options.context;
- delete options.selector;
- if (dialog) {
- dialog.setData(__assign({ callback: function (action, instance) {
- action === 'confirm' ? resolve(instance) : reject(instance);
- } }, options));
- wx.nextTick(function () {
- dialog.setData({ show: true });
- });
- queue.push(dialog);
- }
- else {
- console.warn('未找到 van-dialog 节点,请确认 selector 及 context 是否正确');
- }
- });
-};
-Dialog.alert = function (options) { return Dialog(options); };
-Dialog.confirm = function (options) {
- return Dialog(__assign({ showCancelButton: true }, options));
-};
-Dialog.close = function () {
- queue.forEach(function (dialog) {
- dialog.close();
- });
- queue = [];
-};
-Dialog.stopLoading = function () {
- queue.forEach(function (dialog) {
- dialog.stopLoading();
- });
-};
-Dialog.currentOptions = currentOptions;
-Dialog.defaultOptions = defaultOptions;
-Dialog.setDefaultOptions = function (options) {
- currentOptions = __assign(__assign({}, currentOptions), options);
- Dialog.currentOptions = currentOptions;
-};
-Dialog.resetDefaultOptions = function () {
- currentOptions = __assign({}, defaultOptions);
- Dialog.currentOptions = currentOptions;
-};
-Dialog.resetDefaultOptions();
-exports.default = Dialog;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.js
deleted file mode 100644
index f10f50f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.js
+++ /dev/null
@@ -1,131 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var button_1 = require("../mixins/button");
-var color_1 = require("../common/color");
-var utils_1 = require("../common/utils");
-(0, component_1.VantComponent)({
- mixins: [button_1.button],
- classes: ['cancle-button-class', 'confirm-button-class'],
- props: {
- show: {
- type: Boolean,
- observer: function (show) {
- !show && this.stopLoading();
- },
- },
- title: String,
- message: String,
- theme: {
- type: String,
- value: 'default',
- },
- confirmButtonId: String,
- className: String,
- customStyle: String,
- asyncClose: Boolean,
- messageAlign: String,
- beforeClose: null,
- overlayStyle: String,
- useSlot: Boolean,
- useTitleSlot: Boolean,
- useConfirmButtonSlot: Boolean,
- useCancelButtonSlot: Boolean,
- showCancelButton: Boolean,
- closeOnClickOverlay: Boolean,
- confirmButtonOpenType: String,
- width: null,
- zIndex: {
- type: Number,
- value: 2000,
- },
- confirmButtonText: {
- type: String,
- value: '确认',
- },
- cancelButtonText: {
- type: String,
- value: '取消',
- },
- confirmButtonColor: {
- type: String,
- value: color_1.RED,
- },
- cancelButtonColor: {
- type: String,
- value: color_1.GRAY,
- },
- showConfirmButton: {
- type: Boolean,
- value: true,
- },
- overlay: {
- type: Boolean,
- value: true,
- },
- transition: {
- type: String,
- value: 'scale',
- },
- },
- data: {
- loading: {
- confirm: false,
- cancel: false,
- },
- callback: (function () { }),
- },
- methods: {
- onConfirm: function () {
- this.handleAction('confirm');
- },
- onCancel: function () {
- this.handleAction('cancel');
- },
- onClickOverlay: function () {
- this.close('overlay');
- },
- close: function (action) {
- var _this = this;
- this.setData({ show: false });
- wx.nextTick(function () {
- _this.$emit('close', action);
- var callback = _this.data.callback;
- if (callback) {
- callback(action, _this);
- }
- });
- },
- stopLoading: function () {
- this.setData({
- loading: {
- confirm: false,
- cancel: false,
- },
- });
- },
- handleAction: function (action) {
- var _a;
- var _this = this;
- this.$emit(action, { dialog: this });
- var _b = this.data, asyncClose = _b.asyncClose, beforeClose = _b.beforeClose;
- if (!asyncClose && !beforeClose) {
- this.close(action);
- return;
- }
- this.setData((_a = {},
- _a["loading.".concat(action)] = true,
- _a));
- if (beforeClose) {
- (0, utils_1.toPromise)(beforeClose(action)).then(function (value) {
- if (value) {
- _this.close(action);
- }
- else {
- _this.stopLoading();
- }
- });
- }
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.json
deleted file mode 100644
index 43417fc..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-popup": "../popup/index",
- "van-button": "../button/index",
- "van-goods-action": "../goods-action/index",
- "van-goods-action-button": "../goods-action-button/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.wxml
deleted file mode 100644
index 8e0bb22..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.wxml
+++ /dev/null
@@ -1,122 +0,0 @@
-
-
-
-
-
-
-
- {{ message }}
-
-
-
-
- {{ cancelButtonText }}
-
-
- {{ confirmButtonText }}
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.wxss
deleted file mode 100644
index 507a789..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dialog/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-dialog{background-color:var(--dialog-background-color,#fff);border-radius:var(--dialog-border-radius,16px);font-size:var(--dialog-font-size,16px);overflow:hidden;top:45%!important;width:var(--dialog-width,320px)}@media (max-width:321px){.van-dialog{width:var(--dialog-small-screen-width,90%)}}.van-dialog__header{font-weight:var(--dialog-header-font-weight,500);line-height:var(--dialog-header-line-height,24px);padding-top:var(--dialog-header-padding-top,24px);text-align:center}.van-dialog__header--isolated{padding:var(--dialog-header-isolated-padding,24px 0)}.van-dialog__message{-webkit-overflow-scrolling:touch;font-size:var(--dialog-message-font-size,14px);line-height:var(--dialog-message-line-height,20px);max-height:var(--dialog-message-max-height,60vh);overflow-y:auto;padding:var(--dialog-message-padding,24px);text-align:center}.van-dialog__message-text{word-wrap:break-word}.van-dialog__message--hasTitle{color:var(--dialog-has-title-message-text-color,#646566);padding-top:var(--dialog-has-title-message-padding-top,8px)}.van-dialog__message--round-button{color:#323233;padding-bottom:16px}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex}.van-dialog__footer--round-button{padding:8px 24px 16px!important;position:relative!important}.van-dialog__button{flex:1}.van-dialog__cancel,.van-dialog__confirm{border:0!important}.van-dialog-bounce-enter{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.van-dialog-bounce-leave-active{opacity:0;transform:translate3d(-50%,-50%,0) scale(.9)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.js
deleted file mode 100644
index 5c63844..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- props: {
- dashed: Boolean,
- hairline: Boolean,
- contentPosition: String,
- fontSize: String,
- borderColor: String,
- textColor: String,
- customStyle: String,
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.json
deleted file mode 100644
index a89ef4d..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxml
deleted file mode 100644
index f6a5a45..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxs
deleted file mode 100644
index 215b14f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxs
+++ /dev/null
@@ -1,18 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
- return style([
- {
- 'border-color': data.borderColor,
- color: data.textColor,
- 'font-size': addUnit(data.fontSize),
- },
- data.customStyle,
- ]);
-}
-
-module.exports = {
- rootStyle: rootStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxss
deleted file mode 100644
index e91dc44..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/divider/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-divider{align-items:center;border:0 solid var(--divider-border-color,#ebedf0);color:var(--divider-text-color,#969799);display:flex;font-size:var(--divider-font-size,14px);line-height:var(--divider-line-height,24px);margin:var(--divider-margin,16px 0)}.van-divider:after,.van-divider:before{border-color:inherit;border-style:inherit;border-width:1px 0 0;box-sizing:border-box;display:block;flex:1;height:1px}.van-divider:before{content:""}.van-divider--hairline:after,.van-divider--hairline:before{transform:scaleY(.5)}.van-divider--dashed{border-style:dashed}.van-divider--center:before,.van-divider--left:before,.van-divider--right:before{margin-right:var(--divider-content-padding,16px)}.van-divider--center:after,.van-divider--left:after,.van-divider--right:after{content:"";margin-left:var(--divider-content-padding,16px)}.van-divider--left:before{max-width:var(--divider-content-left-width,10%)}.van-divider--right:after{max-width:var(--divider-content-right-width,10%)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.js
deleted file mode 100644
index 826c26a..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.js
+++ /dev/null
@@ -1,136 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var relation_1 = require("../common/relation");
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- classes: ['item-title-class'],
- field: true,
- relation: (0, relation_1.useParent)('dropdown-menu', function () {
- this.updateDataFromParent();
- }),
- props: {
- value: {
- type: null,
- observer: 'rerender',
- },
- title: {
- type: String,
- observer: 'rerender',
- },
- disabled: Boolean,
- titleClass: {
- type: String,
- observer: 'rerender',
- },
- options: {
- type: Array,
- value: [],
- observer: 'rerender',
- },
- popupStyle: String,
- useBeforeToggle: {
- type: Boolean,
- value: false,
- },
- rootPortal: {
- type: Boolean,
- value: false,
- },
- },
- data: {
- transition: true,
- showPopup: false,
- showWrapper: false,
- displayTitle: '',
- safeAreaTabBar: false,
- },
- methods: {
- rerender: function () {
- var _this = this;
- wx.nextTick(function () {
- var _a;
- (_a = _this.parent) === null || _a === void 0 ? void 0 : _a.updateItemListData();
- });
- },
- updateDataFromParent: function () {
- if (this.parent) {
- var _a = this.parent.data, overlay = _a.overlay, duration = _a.duration, activeColor = _a.activeColor, closeOnClickOverlay = _a.closeOnClickOverlay, direction = _a.direction, safeAreaTabBar = _a.safeAreaTabBar;
- this.setData({
- overlay: overlay,
- duration: duration,
- activeColor: activeColor,
- closeOnClickOverlay: closeOnClickOverlay,
- direction: direction,
- safeAreaTabBar: safeAreaTabBar,
- });
- }
- },
- onOpen: function () {
- this.$emit('open');
- },
- onOpened: function () {
- this.$emit('opened');
- },
- onClose: function () {
- this.$emit('close');
- },
- onClosed: function () {
- this.$emit('closed');
- this.setData({ showWrapper: false });
- },
- onOptionTap: function (event) {
- var option = event.currentTarget.dataset.option;
- var value = option.value;
- var shouldEmitChange = this.data.value !== value;
- this.setData({ showPopup: false, value: value });
- this.$emit('close');
- this.rerender();
- if (shouldEmitChange) {
- this.$emit('change', value);
- }
- },
- toggle: function (show, options) {
- var _this = this;
- if (options === void 0) { options = {}; }
- var showPopup = this.data.showPopup;
- if (typeof show !== 'boolean') {
- show = !showPopup;
- }
- if (show === showPopup) {
- return;
- }
- this.onBeforeToggle(show).then(function (status) {
- var _a;
- if (!status) {
- return;
- }
- _this.setData({
- transition: !options.immediate,
- showPopup: show,
- });
- if (show) {
- (_a = _this.parent) === null || _a === void 0 ? void 0 : _a.getChildWrapperStyle().then(function (wrapperStyle) {
- _this.setData({ wrapperStyle: wrapperStyle, showWrapper: true });
- _this.rerender();
- });
- }
- else {
- _this.rerender();
- }
- });
- },
- onBeforeToggle: function (status) {
- var _this = this;
- var useBeforeToggle = this.data.useBeforeToggle;
- if (!useBeforeToggle) {
- return Promise.resolve(true);
- }
- return new Promise(function (resolve) {
- _this.$emit('before-toggle', {
- status: status,
- callback: function (value) { return resolve(value); },
- });
- });
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.json
deleted file mode 100644
index 88d5409..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-popup": "../popup/index",
- "van-cell": "../cell/index",
- "van-icon": "../icon/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.wxml
deleted file mode 100644
index 63904f4..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.wxml
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
-
-
-
- {{ item.text }}
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.wxss
deleted file mode 100644
index 80505e9..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-dropdown-item{left:0;overflow:hidden;position:fixed;right:0}.van-dropdown-item__option{text-align:left}.van-dropdown-item__option--active .van-dropdown-item__icon,.van-dropdown-item__option--active .van-dropdown-item__title{color:var(--dropdown-menu-option-active-color,#ee0a24)}.van-dropdown-item--up{top:0}.van-dropdown-item--down{bottom:0}.van-dropdown-item__icon{display:block;line-height:inherit}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/shared.js b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/shared.js
deleted file mode 100644
index c8ad2e5..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-item/shared.js
+++ /dev/null
@@ -1,2 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.js
deleted file mode 100644
index aed2921..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.js
+++ /dev/null
@@ -1,122 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var relation_1 = require("../common/relation");
-var utils_1 = require("../common/utils");
-var ARRAY = [];
-(0, component_1.VantComponent)({
- field: true,
- classes: ['title-class'],
- relation: (0, relation_1.useChildren)('dropdown-item', function () {
- this.updateItemListData();
- }),
- props: {
- activeColor: {
- type: String,
- observer: 'updateChildrenData',
- },
- overlay: {
- type: Boolean,
- value: true,
- observer: 'updateChildrenData',
- },
- zIndex: {
- type: Number,
- value: 10,
- },
- duration: {
- type: Number,
- value: 200,
- observer: 'updateChildrenData',
- },
- direction: {
- type: String,
- value: 'down',
- observer: 'updateChildrenData',
- },
- safeAreaTabBar: {
- type: Boolean,
- value: false,
- },
- closeOnClickOverlay: {
- type: Boolean,
- value: true,
- observer: 'updateChildrenData',
- },
- closeOnClickOutside: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- itemListData: [],
- },
- beforeCreate: function () {
- var windowHeight = (0, utils_1.getSystemInfoSync)().windowHeight;
- this.windowHeight = windowHeight;
- ARRAY.push(this);
- },
- destroyed: function () {
- var _this = this;
- ARRAY = ARRAY.filter(function (item) { return item !== _this; });
- },
- methods: {
- updateItemListData: function () {
- this.setData({
- itemListData: this.children.map(function (child) { return child.data; }),
- });
- },
- updateChildrenData: function () {
- this.children.forEach(function (child) {
- child.updateDataFromParent();
- });
- },
- toggleItem: function (active) {
- this.children.forEach(function (item, index) {
- var showPopup = item.data.showPopup;
- if (index === active) {
- item.toggle();
- }
- else if (showPopup) {
- item.toggle(false, { immediate: true });
- }
- });
- },
- close: function () {
- this.children.forEach(function (child) {
- child.toggle(false, { immediate: true });
- });
- },
- getChildWrapperStyle: function () {
- var _this = this;
- var _a = this.data, zIndex = _a.zIndex, direction = _a.direction;
- return (0, utils_1.getRect)(this, '.van-dropdown-menu').then(function (rect) {
- var _a = rect.top, top = _a === void 0 ? 0 : _a, _b = rect.bottom, bottom = _b === void 0 ? 0 : _b;
- var offset = direction === 'down' ? bottom : _this.windowHeight - top;
- var wrapperStyle = "z-index: ".concat(zIndex, ";");
- if (direction === 'down') {
- wrapperStyle += "top: ".concat((0, utils_1.addUnit)(offset), ";");
- }
- else {
- wrapperStyle += "bottom: ".concat((0, utils_1.addUnit)(offset), ";");
- }
- return wrapperStyle;
- });
- },
- onTitleTap: function (event) {
- var _this = this;
- var index = event.currentTarget.dataset.index;
- var child = this.children[index];
- if (!child.data.disabled) {
- ARRAY.forEach(function (menuItem) {
- if (menuItem &&
- menuItem.data.closeOnClickOutside &&
- menuItem !== _this) {
- menuItem.close();
- }
- });
- this.toggleItem(index);
- }
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxml
deleted file mode 100644
index ec165a9..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxs
deleted file mode 100644
index 6538854..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxs
+++ /dev/null
@@ -1,16 +0,0 @@
-/* eslint-disable */
-function displayTitle(item) {
- if (item.title) {
- return item.title;
- }
-
- var match = item.options.filter(function(option) {
- return option.value === item.value;
- });
- var displayTitle = match.length ? match[0].text : '';
- return displayTitle;
-}
-
-module.exports = {
- displayTitle: displayTitle
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxss
deleted file mode 100644
index dba000e..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-dropdown-menu{background-color:var(--dropdown-menu-background-color,#fff);box-shadow:var(--dropdown-menu-box-shadow,0 2px 12px hsla(210,1%,40%,.12));display:flex;height:var(--dropdown-menu-height,50px);-webkit-user-select:none;user-select:none}.van-dropdown-menu__item{align-items:center;display:flex;flex:1;justify-content:center;min-width:0}.van-dropdown-menu__item:active{opacity:.7}.van-dropdown-menu__item--disabled:active{opacity:1}.van-dropdown-menu__item--disabled .van-dropdown-menu__title{color:var(--dropdown-menu-title-disabled-text-color,#969799)}.van-dropdown-menu__title{box-sizing:border-box;color:var(--dropdown-menu-title-text-color,#323233);font-size:var(--dropdown-menu-title-font-size,15px);line-height:var(--dropdown-menu-title-line-height,18px);max-width:100%;padding:var(--dropdown-menu-title-padding,0 24px 0 8px);position:relative}.van-dropdown-menu__title:after{border-color:transparent transparent currentcolor currentcolor;border-style:solid;border-width:3px;content:"";margin-top:-5px;opacity:.8;position:absolute;right:11px;top:50%;transform:rotate(-45deg)}.van-dropdown-menu__title--active{color:var(--dropdown-menu-title-active-text-color,#ee0a24)}.van-dropdown-menu__title--down:after{margin-top:-1px;transform:rotate(135deg)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.js
deleted file mode 100644
index 755e638..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.js
+++ /dev/null
@@ -1,12 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- props: {
- description: String,
- image: {
- type: String,
- value: 'default',
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.json
deleted file mode 100644
index a89ef4d..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxml
deleted file mode 100644
index 9c7b719..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ description }}
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxs
deleted file mode 100644
index cf92ece..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxs
+++ /dev/null
@@ -1,15 +0,0 @@
-/* eslint-disable */
-var PRESETS = ['error', 'search', 'default', 'network'];
-
-function imageUrl(image) {
- if (PRESETS.indexOf(image) !== -1) {
- return 'https://img.yzcdn.cn/vant/empty-image-' + image + '.png';
- }
-
- return image;
-}
-
-module.exports = {
- imageUrl: imageUrl,
-};
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxss
deleted file mode 100644
index 0fb74fe..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/empty/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-empty{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:32px 0}.van-empty__image{height:160px;width:160px}.van-empty__image:empty{display:none}.van-empty__image__img{height:100%;width:100%}.van-empty__image:not(:empty)+.van-empty__image{display:none}.van-empty__description{color:#969799;font-size:14px;line-height:20px;margin-top:16px;padding:0 60px}.van-empty__description:empty,.van-empty__description:not(:empty)+.van-empty__description{display:none}.van-empty__bottom{margin-top:24px}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/field/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/field/index.js
deleted file mode 100644
index c20d266..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/field/index.js
+++ /dev/null
@@ -1,137 +0,0 @@
-"use strict";
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var utils_1 = require("../common/utils");
-var component_1 = require("../common/component");
-var props_1 = require("./props");
-(0, component_1.VantComponent)({
- field: true,
- classes: ['input-class', 'right-icon-class', 'label-class'],
- props: __assign(__assign(__assign(__assign({}, props_1.commonProps), props_1.inputProps), props_1.textareaProps), { size: String, icon: String, label: String, error: Boolean, center: Boolean, isLink: Boolean, leftIcon: String, rightIcon: String, autosize: null, required: Boolean, iconClass: String, clickable: Boolean, inputAlign: String, customStyle: String, errorMessage: String, arrowDirection: String, showWordLimit: Boolean, errorMessageAlign: String, readonly: {
- type: Boolean,
- observer: 'setShowClear',
- }, clearable: {
- type: Boolean,
- observer: 'setShowClear',
- }, clearTrigger: {
- type: String,
- value: 'focus',
- }, border: {
- type: Boolean,
- value: true,
- }, titleWidth: {
- type: String,
- value: '6.2em',
- }, clearIcon: {
- type: String,
- value: 'clear',
- }, extraEventParams: {
- type: Boolean,
- value: false,
- } }),
- data: {
- focused: false,
- innerValue: '',
- showClear: false,
- },
- created: function () {
- this.value = this.data.value;
- this.setData({ innerValue: this.value });
- },
- methods: {
- formatValue: function (value) {
- var maxlength = this.data.maxlength;
- if (maxlength !== -1 && value.length > maxlength) {
- return value.slice(0, maxlength);
- }
- return value;
- },
- onInput: function (event) {
- var _a = (event.detail || {}).value, value = _a === void 0 ? '' : _a;
- var formatValue = this.formatValue(value);
- this.value = formatValue;
- this.setShowClear();
- return this.emitChange(__assign(__assign({}, event.detail), { value: formatValue }));
- },
- onFocus: function (event) {
- this.focused = true;
- this.setShowClear();
- this.$emit('focus', event.detail);
- },
- onBlur: function (event) {
- this.focused = false;
- this.setShowClear();
- this.$emit('blur', event.detail);
- },
- onClickIcon: function () {
- this.$emit('click-icon');
- },
- onClickInput: function (event) {
- this.$emit('click-input', event.detail);
- },
- onClear: function () {
- var _this = this;
- this.setData({ innerValue: '' });
- this.value = '';
- this.setShowClear();
- (0, utils_1.nextTick)(function () {
- _this.emitChange({ value: '' });
- _this.$emit('clear', '');
- });
- },
- onConfirm: function (event) {
- var _a = (event.detail || {}).value, value = _a === void 0 ? '' : _a;
- this.value = value;
- this.setShowClear();
- this.$emit('confirm', value);
- },
- setValue: function (value) {
- this.value = value;
- this.setShowClear();
- if (value === '') {
- this.setData({ innerValue: '' });
- }
- this.emitChange({ value: value });
- },
- onLineChange: function (event) {
- this.$emit('linechange', event.detail);
- },
- onKeyboardHeightChange: function (event) {
- this.$emit('keyboardheightchange', event.detail);
- },
- emitChange: function (detail) {
- var extraEventParams = this.data.extraEventParams;
- this.setData({ value: detail.value });
- var result;
- var data = extraEventParams
- ? __assign(__assign({}, detail), { callback: function (data) {
- result = data;
- } }) : detail.value;
- this.$emit('input', data);
- this.$emit('change', data);
- return result;
- },
- setShowClear: function () {
- var _a = this.data, clearable = _a.clearable, readonly = _a.readonly, clearTrigger = _a.clearTrigger;
- var _b = this, focused = _b.focused, value = _b.value;
- var showClear = false;
- if (clearable && !readonly) {
- var hasValue = !!value;
- var trigger = clearTrigger === 'always' || (clearTrigger === 'focus' && focused);
- showClear = hasValue && trigger;
- }
- this.setData({ showClear: showClear });
- },
- noop: function () { },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/field/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/field/index.json
deleted file mode 100644
index 5906c50..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/field/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-cell": "../cell/index",
- "van-icon": "../icon/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxml
deleted file mode 100644
index 6018993..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxml
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxs
deleted file mode 100644
index 78575b9..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxs
+++ /dev/null
@@ -1,18 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function inputStyle(autosize) {
- if (autosize && autosize.constructor === 'Object') {
- return style({
- 'min-height': addUnit(autosize.minHeight),
- 'max-height': addUnit(autosize.maxHeight),
- });
- }
-
- return '';
-}
-
-module.exports = {
- inputStyle: inputStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxss
deleted file mode 100644
index 5f7d306..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/field/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-field{--cell-icon-size:var(--field-icon-size,16px)}.van-field__label{color:var(--field-label-color,#646566)}.van-field__label--disabled{color:var(--field-disabled-text-color,#c8c9cc)}.van-field__body{align-items:center;display:flex}.van-field__body--textarea{box-sizing:border-box;line-height:1.2em;min-height:var(--cell-line-height,24px);padding:3.6px 0}.van-field__control:empty+.van-field__control{display:block}.van-field__control{background-color:initial;border:0;box-sizing:border-box;color:var(--field-input-text-color,#323233);display:none;height:var(--cell-line-height,24px);line-height:inherit;margin:0;min-height:var(--cell-line-height,24px);padding:0;position:relative;resize:none;text-align:left;width:100%}.van-field__control:empty{display:none}.van-field__control--textarea{height:var(--field-text-area-min-height,18px);min-height:var(--field-text-area-min-height,18px)}.van-field__control--error{color:var(--field-input-error-text-color,#ee0a24)}.van-field__control--disabled{background-color:initial;color:var(--field-input-disabled-text-color,#c8c9cc);opacity:1}.van-field__control--center{text-align:center}.van-field__control--right{text-align:right}.van-field__control--custom{align-items:center;display:flex;min-height:var(--cell-line-height,24px)}.van-field__placeholder{color:var(--field-placeholder-text-color,#c8c9cc);left:0;pointer-events:none;position:absolute;right:0;top:0}.van-field__placeholder--error{color:var(--field-error-message-color,#ee0a24)}.van-field__icon-root{align-items:center;display:flex;min-height:var(--cell-line-height,24px)}.van-field__clear-root,.van-field__icon-container{line-height:inherit;margin-right:calc(var(--padding-xs, 8px)*-1);padding:0 var(--padding-xs,8px);vertical-align:middle}.van-field__button,.van-field__clear-root,.van-field__icon-container{flex-shrink:0}.van-field__clear-root{color:var(--field-clear-icon-color,#c8c9cc);font-size:var(--field-clear-icon-size,16px)}.van-field__icon-container{color:var(--field-icon-container-color,#969799);font-size:var(--field-icon-size,16px)}.van-field__icon-container:empty{display:none}.van-field__button{padding-left:var(--padding-xs,8px)}.van-field__button:empty{display:none}.van-field__error-message{color:var(--field-error-message-color,#ee0a24);display:block;font-size:var(--field-error-message-text-font-size,12px);text-align:left}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{color:var(--field-word-limit-color,#646566);font-size:var(--field-word-limit-font-size,12px);line-height:var(--field-word-limit-line-height,16px);margin-top:var(--padding-base,4px);text-align:right}.van-field__word-num{display:inline}.van-field__word-num--full{color:var(--field-word-num-full-color,#ee0a24)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/field/input.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/field/input.wxml
deleted file mode 100644
index e39a5ee..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/field/input.wxml
+++ /dev/null
@@ -1,29 +0,0 @@
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/field/props.js b/src/openeuler/miniprogram_npm/@vant/weapp/field/props.js
deleted file mode 100644
index 3cb8dca..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/field/props.js
+++ /dev/null
@@ -1,67 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.textareaProps = exports.inputProps = exports.commonProps = void 0;
-exports.commonProps = {
- value: {
- type: String,
- observer: function (value) {
- if (value !== this.value) {
- this.setData({ innerValue: value });
- this.value = value;
- }
- },
- },
- placeholder: String,
- placeholderStyle: String,
- placeholderClass: String,
- disabled: Boolean,
- maxlength: {
- type: Number,
- value: -1,
- },
- cursorSpacing: {
- type: Number,
- value: 50,
- },
- autoFocus: Boolean,
- focus: Boolean,
- cursor: {
- type: Number,
- value: -1,
- },
- selectionStart: {
- type: Number,
- value: -1,
- },
- selectionEnd: {
- type: Number,
- value: -1,
- },
- adjustPosition: {
- type: Boolean,
- value: true,
- },
- holdKeyboard: Boolean,
-};
-exports.inputProps = {
- type: {
- type: String,
- value: 'text',
- },
- password: Boolean,
- confirmType: String,
- confirmHold: Boolean,
- alwaysEmbed: Boolean,
-};
-exports.textareaProps = {
- autoHeight: Boolean,
- fixed: Boolean,
- showConfirmBar: {
- type: Boolean,
- value: true,
- },
- disableDefaultPadding: {
- type: Boolean,
- value: true,
- },
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/field/textarea.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/field/textarea.wxml
deleted file mode 100644
index d42c184..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/field/textarea.wxml
+++ /dev/null
@@ -1,30 +0,0 @@
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.js
deleted file mode 100644
index 5cfd017..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.js
+++ /dev/null
@@ -1,42 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var relation_1 = require("../common/relation");
-var button_1 = require("../mixins/button");
-var link_1 = require("../mixins/link");
-(0, component_1.VantComponent)({
- mixins: [link_1.link, button_1.button],
- relation: (0, relation_1.useParent)('goods-action'),
- props: {
- text: String,
- color: String,
- size: {
- type: String,
- value: 'normal',
- },
- loading: Boolean,
- disabled: Boolean,
- plain: Boolean,
- type: {
- type: String,
- value: 'danger',
- },
- },
- methods: {
- onClick: function (event) {
- this.$emit('click', event.detail);
- this.jumpLink();
- },
- updateStyle: function () {
- if (this.parent == null) {
- return;
- }
- var index = this.index;
- var _a = this.parent.children, children = _a === void 0 ? [] : _a;
- this.setData({
- isFirst: index === 0,
- isLast: index === children.length - 1,
- });
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.json
deleted file mode 100644
index b567686..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-button": "../button/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.wxml
deleted file mode 100644
index fc13593..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.wxml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
- {{ text }}
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.wxss
deleted file mode 100644
index 759a1d9..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-button/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';:host{flex:1}.van-goods-action-button{--button-warning-background-color:var(--goods-action-button-warning-color,linear-gradient(to right,#ffd01e,#ff8917));--button-danger-background-color:var(--goods-action-button-danger-color,linear-gradient(to right,#ff6034,#ee0a24));--button-default-height:var(--goods-action-button-height,40px);--button-line-height:var(--goods-action-button-line-height,20px);--button-plain-background-color:var(--goods-action-button-plain-color,#fff);--button-border-width:0;display:block}.van-goods-action-button--first{--button-border-radius:999px 0 0 var(--goods-action-button-border-radius,999px);margin-left:5px}.van-goods-action-button--last{--button-border-radius:0 999px var(--goods-action-button-border-radius,999px) 0;margin-right:5px}.van-goods-action-button--first.van-goods-action-button--last{--button-border-radius:var(--goods-action-button-border-radius,999px)}.van-goods-action-button--plain{--button-border-width:1px}.van-goods-action-button__inner{font-weight:var(--font-weight-bold,500)!important;width:100%}@media (max-width:321px){.van-goods-action-button{font-size:13px}}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.js
deleted file mode 100644
index 828e1f5..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.js
+++ /dev/null
@@ -1,29 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var button_1 = require("../mixins/button");
-var link_1 = require("../mixins/link");
-(0, component_1.VantComponent)({
- classes: ['icon-class', 'text-class', 'info-class'],
- mixins: [link_1.link, button_1.button],
- props: {
- text: String,
- dot: Boolean,
- info: String,
- icon: String,
- size: String,
- color: String,
- classPrefix: {
- type: String,
- value: 'van-icon',
- },
- disabled: Boolean,
- loading: Boolean,
- },
- methods: {
- onClick: function (event) {
- this.$emit('click', event.detail);
- this.jumpLink();
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.json
deleted file mode 100644
index 93bfe8a..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index",
- "van-button": "../button/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxml
deleted file mode 100644
index 30c1a8c..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxml
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
- {{ text }}
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxss
deleted file mode 100644
index 6e4758d..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-goods-action-icon{border:none!important;color:var(--goods-action-icon-text-color,#646566)!important;display:flex!important;flex-direction:column;font-size:var(--goods-action-icon-font-size,10px)!important;height:var(--goods-action-icon-height,50px)!important;justify-content:center!important;line-height:1!important;min-width:var(--goods-action-icon-width,48px)}.van-goods-action-icon__icon{color:var(--goods-action-icon-color,#323233);display:flex;font-size:var(--goods-action-icon-size,18px);margin:0 auto 5px}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.js
deleted file mode 100644
index e49bcbc..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var relation_1 = require("../common/relation");
-(0, component_1.VantComponent)({
- relation: (0, relation_1.useChildren)('goods-action-button', function () {
- this.children.forEach(function (item) {
- item.updateStyle();
- });
- }),
- props: {
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.wxml
deleted file mode 100644
index 569450c..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.wxml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.wxss
deleted file mode 100644
index 7793e77..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/goods-action/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-goods-action{align-items:center;background-color:var(--goods-action-background-color,#fff);bottom:0;box-sizing:initial;display:flex;height:var(--goods-action-height,50px);left:0;position:fixed;right:0}.van-goods-action--safe{padding-bottom:env(safe-area-inset-bottom)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.js
deleted file mode 100644
index a7d47a2..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.js
+++ /dev/null
@@ -1,54 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var relation_1 = require("../common/relation");
-var link_1 = require("../mixins/link");
-(0, component_1.VantComponent)({
- relation: (0, relation_1.useParent)('grid'),
- classes: ['content-class', 'icon-class', 'text-class'],
- mixins: [link_1.link],
- props: {
- icon: String,
- iconColor: String,
- iconPrefix: {
- type: String,
- value: 'van-icon',
- },
- dot: Boolean,
- info: null,
- badge: null,
- text: String,
- useSlot: Boolean,
- },
- data: {
- viewStyle: '',
- },
- mounted: function () {
- this.updateStyle();
- },
- methods: {
- updateStyle: function () {
- if (!this.parent) {
- return;
- }
- var _a = this.parent, data = _a.data, children = _a.children;
- var columnNum = data.columnNum, border = data.border, square = data.square, gutter = data.gutter, clickable = data.clickable, center = data.center, direction = data.direction, reverse = data.reverse, iconSize = data.iconSize;
- this.setData({
- center: center,
- border: border,
- square: square,
- gutter: gutter,
- clickable: clickable,
- direction: direction,
- reverse: reverse,
- iconSize: iconSize,
- index: children.indexOf(this),
- columnNum: columnNum,
- });
- },
- onClick: function () {
- this.$emit('click');
- this.jumpLink();
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.json
deleted file mode 100644
index 0a336c0..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxml
deleted file mode 100644
index e95087d..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ text }}
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxs
deleted file mode 100644
index 2cfe37d..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxs
+++ /dev/null
@@ -1,32 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function wrapperStyle(data) {
- var width = 100 / data.columnNum + '%';
-
- return style({
- width: width,
- 'padding-top': data.square ? width : null,
- 'padding-right': addUnit(data.gutter),
- 'margin-top':
- data.index >= data.columnNum && !data.square
- ? addUnit(data.gutter)
- : null,
- });
-}
-
-function contentStyle(data) {
- return data.square
- ? style({
- right: addUnit(data.gutter),
- bottom: addUnit(data.gutter),
- height: 'auto',
- })
- : '';
-}
-
-module.exports = {
- wrapperStyle: wrapperStyle,
- contentStyle: contentStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxss
deleted file mode 100644
index acaea84..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/grid-item/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-grid-item{box-sizing:border-box;float:left;position:relative}.van-grid-item--square{height:0}.van-grid-item__content{background-color:var(--grid-item-content-background-color,#fff);box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:var(--grid-item-content-padding,16px 8px)}.van-grid-item__content:after{border-width:0 1px 1px 0;z-index:1}.van-grid-item__content--surround:after{border-width:1px}.van-grid-item__content--center{align-items:center;justify-content:center}.van-grid-item__content--square{left:0;position:absolute;right:0;top:0}.van-grid-item__content--horizontal{flex-direction:row}.van-grid-item__content--horizontal .van-grid-item__text{margin:0 0 0 8px}.van-grid-item__content--reverse{flex-direction:column-reverse}.van-grid-item__content--reverse .van-grid-item__text{margin:0 0 8px}.van-grid-item__content--horizontal.van-grid-item__content--reverse{flex-direction:row-reverse}.van-grid-item__content--horizontal.van-grid-item__content--reverse .van-grid-item__text{margin:0 8px 0 0}.van-grid-item__content--clickable:active{background-color:var(--grid-item-content-active-color,#f2f3f5)}.van-grid-item__icon{align-items:center;display:flex;font-size:var(--grid-item-icon-size,26px);height:var(--grid-item-icon-size,26px)}.van-grid-item__text{word-wrap:break-word;color:var(--grid-item-text-color,#646566);font-size:var(--grid-item-text-font-size,12px)}.van-grid-item__icon+.van-grid-item__text{margin-top:8px}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.js
deleted file mode 100644
index 28d14f4..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.js
+++ /dev/null
@@ -1,57 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var relation_1 = require("../common/relation");
-(0, component_1.VantComponent)({
- relation: (0, relation_1.useChildren)('grid-item'),
- props: {
- square: {
- type: Boolean,
- observer: 'updateChildren',
- },
- gutter: {
- type: null,
- value: 0,
- observer: 'updateChildren',
- },
- clickable: {
- type: Boolean,
- observer: 'updateChildren',
- },
- columnNum: {
- type: Number,
- value: 4,
- observer: 'updateChildren',
- },
- center: {
- type: Boolean,
- value: true,
- observer: 'updateChildren',
- },
- border: {
- type: Boolean,
- value: true,
- observer: 'updateChildren',
- },
- direction: {
- type: String,
- observer: 'updateChildren',
- },
- iconSize: {
- type: String,
- observer: 'updateChildren',
- },
- reverse: {
- type: Boolean,
- value: false,
- observer: 'updateChildren',
- },
- },
- methods: {
- updateChildren: function () {
- this.children.forEach(function (child) {
- child.updateStyle();
- });
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxml
deleted file mode 100644
index 2e4118f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxs
deleted file mode 100644
index cd3b1bd..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxs
+++ /dev/null
@@ -1,13 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
- return style({
- 'padding-left': addUnit(data.gutter),
- });
-}
-
-module.exports = {
- rootStyle: rootStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxss
deleted file mode 100644
index e347440..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/grid/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-grid{box-sizing:border-box;overflow:hidden;position:relative}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.js
deleted file mode 100644
index 6758092..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.js
+++ /dev/null
@@ -1,23 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- classes: ['info-class'],
- props: {
- dot: Boolean,
- info: null,
- size: null,
- color: String,
- customStyle: String,
- classPrefix: {
- type: String,
- value: 'van-icon',
- },
- name: String,
- },
- methods: {
- onClick: function () {
- this.$emit('click');
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.json
deleted file mode 100644
index bf0ebe0..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-info": "../info/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxml
deleted file mode 100644
index 91b47f9..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxs
deleted file mode 100644
index a906f76..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxs
+++ /dev/null
@@ -1,43 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function isImage(name) {
- return name.indexOf('/') !== -1;
-}
-
-function rootClass(data) {
- var classes = ['custom-class'];
-
- if (data.classPrefix !== 'van-icon') {
- classes.push('van-icon--custom')
- }
-
- if (data.classPrefix != null) {
- classes.push(data.classPrefix);
- }
-
- if (isImage(data.name)) {
- classes.push('van-icon--image');
- } else if (data.classPrefix != null) {
- classes.push(data.classPrefix + '-' + data.name);
- }
-
- return classes.join(' ');
-}
-
-function rootStyle(data) {
- return style([
- {
- color: data.color,
- 'font-size': addUnit(data.size),
- },
- data.customStyle,
- ]);
-}
-
-module.exports = {
- isImage: isImage,
- rootClass: rootClass,
- rootStyle: rootStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxss
deleted file mode 100644
index c512f30..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/icon/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-icon{text-rendering:auto;-webkit-font-smoothing:antialiased;font:normal normal normal 14px/1 var(--van-icon-font-family,"vant-icon");font-size:inherit;position:relative}.van-icon,.van-icon:before{display:inline-block}.van-icon-contact:before{content:"\e753"}.van-icon-notes:before{content:"\e63c"}.van-icon-records:before{content:"\e63d"}.van-icon-cash-back-record:before{content:"\e63e"}.van-icon-newspaper:before{content:"\e63f"}.van-icon-discount:before{content:"\e640"}.van-icon-completed:before{content:"\e641"}.van-icon-user:before{content:"\e642"}.van-icon-description:before{content:"\e643"}.van-icon-list-switch:before{content:"\e6ad"}.van-icon-list-switching:before{content:"\e65a"}.van-icon-link-o:before{content:"\e751"}.van-icon-miniprogram-o:before{content:"\e752"}.van-icon-qq:before{content:"\e74e"}.van-icon-wechat-moments:before{content:"\e74f"}.van-icon-weibo:before{content:"\e750"}.van-icon-cash-o:before{content:"\e74d"}.van-icon-guide-o:before{content:"\e74c"}.van-icon-invitation:before{content:"\e6d6"}.van-icon-shield-o:before{content:"\e74b"}.van-icon-exchange:before{content:"\e6af"}.van-icon-eye:before{content:"\e6b0"}.van-icon-enlarge:before{content:"\e6b1"}.van-icon-expand-o:before{content:"\e6b2"}.van-icon-eye-o:before{content:"\e6b3"}.van-icon-expand:before{content:"\e6b4"}.van-icon-filter-o:before{content:"\e6b5"}.van-icon-fire:before{content:"\e6b6"}.van-icon-fail:before{content:"\e6b7"}.van-icon-failure:before{content:"\e6b8"}.van-icon-fire-o:before{content:"\e6b9"}.van-icon-flag-o:before{content:"\e6ba"}.van-icon-font:before{content:"\e6bb"}.van-icon-font-o:before{content:"\e6bc"}.van-icon-gem-o:before{content:"\e6bd"}.van-icon-flower-o:before{content:"\e6be"}.van-icon-gem:before{content:"\e6bf"}.van-icon-gift-card:before{content:"\e6c0"}.van-icon-friends:before{content:"\e6c1"}.van-icon-friends-o:before{content:"\e6c2"}.van-icon-gold-coin:before{content:"\e6c3"}.van-icon-gold-coin-o:before{content:"\e6c4"}.van-icon-good-job-o:before{content:"\e6c5"}.van-icon-gift:before{content:"\e6c6"}.van-icon-gift-o:before{content:"\e6c7"}.van-icon-gift-card-o:before{content:"\e6c8"}.van-icon-good-job:before{content:"\e6c9"}.van-icon-home-o:before{content:"\e6ca"}.van-icon-goods-collect:before{content:"\e6cb"}.van-icon-graphic:before{content:"\e6cc"}.van-icon-goods-collect-o:before{content:"\e6cd"}.van-icon-hot-o:before{content:"\e6ce"}.van-icon-info:before{content:"\e6cf"}.van-icon-hotel-o:before{content:"\e6d0"}.van-icon-info-o:before{content:"\e6d1"}.van-icon-hot-sale-o:before{content:"\e6d2"}.van-icon-hot:before{content:"\e6d3"}.van-icon-like:before{content:"\e6d4"}.van-icon-idcard:before{content:"\e6d5"}.van-icon-like-o:before{content:"\e6d7"}.van-icon-hot-sale:before{content:"\e6d8"}.van-icon-location-o:before{content:"\e6d9"}.van-icon-location:before{content:"\e6da"}.van-icon-label:before{content:"\e6db"}.van-icon-lock:before{content:"\e6dc"}.van-icon-label-o:before{content:"\e6dd"}.van-icon-map-marked:before{content:"\e6de"}.van-icon-logistics:before{content:"\e6df"}.van-icon-manager:before{content:"\e6e0"}.van-icon-more:before{content:"\e6e1"}.van-icon-live:before{content:"\e6e2"}.van-icon-manager-o:before{content:"\e6e3"}.van-icon-medal:before{content:"\e6e4"}.van-icon-more-o:before{content:"\e6e5"}.van-icon-music-o:before{content:"\e6e6"}.van-icon-music:before{content:"\e6e7"}.van-icon-new-arrival-o:before{content:"\e6e8"}.van-icon-medal-o:before{content:"\e6e9"}.van-icon-new-o:before{content:"\e6ea"}.van-icon-free-postage:before{content:"\e6eb"}.van-icon-newspaper-o:before{content:"\e6ec"}.van-icon-new-arrival:before{content:"\e6ed"}.van-icon-minus:before{content:"\e6ee"}.van-icon-orders-o:before{content:"\e6ef"}.van-icon-new:before{content:"\e6f0"}.van-icon-paid:before{content:"\e6f1"}.van-icon-notes-o:before{content:"\e6f2"}.van-icon-other-pay:before{content:"\e6f3"}.van-icon-pause-circle:before{content:"\e6f4"}.van-icon-pause:before{content:"\e6f5"}.van-icon-pause-circle-o:before{content:"\e6f6"}.van-icon-peer-pay:before{content:"\e6f7"}.van-icon-pending-payment:before{content:"\e6f8"}.van-icon-passed:before{content:"\e6f9"}.van-icon-plus:before{content:"\e6fa"}.van-icon-phone-circle-o:before{content:"\e6fb"}.van-icon-phone-o:before{content:"\e6fc"}.van-icon-printer:before{content:"\e6fd"}.van-icon-photo-fail:before{content:"\e6fe"}.van-icon-phone:before{content:"\e6ff"}.van-icon-photo-o:before{content:"\e700"}.van-icon-play-circle:before{content:"\e701"}.van-icon-play:before{content:"\e702"}.van-icon-phone-circle:before{content:"\e703"}.van-icon-point-gift-o:before{content:"\e704"}.van-icon-point-gift:before{content:"\e705"}.van-icon-play-circle-o:before{content:"\e706"}.van-icon-shrink:before{content:"\e707"}.van-icon-photo:before{content:"\e708"}.van-icon-qr:before{content:"\e709"}.van-icon-qr-invalid:before{content:"\e70a"}.van-icon-question-o:before{content:"\e70b"}.van-icon-revoke:before{content:"\e70c"}.van-icon-replay:before{content:"\e70d"}.van-icon-service:before{content:"\e70e"}.van-icon-question:before{content:"\e70f"}.van-icon-search:before{content:"\e710"}.van-icon-refund-o:before{content:"\e711"}.van-icon-service-o:before{content:"\e712"}.van-icon-scan:before{content:"\e713"}.van-icon-share:before{content:"\e714"}.van-icon-send-gift-o:before{content:"\e715"}.van-icon-share-o:before{content:"\e716"}.van-icon-setting:before{content:"\e717"}.van-icon-points:before{content:"\e718"}.van-icon-photograph:before{content:"\e719"}.van-icon-shop:before{content:"\e71a"}.van-icon-shop-o:before{content:"\e71b"}.van-icon-shop-collect-o:before{content:"\e71c"}.van-icon-shop-collect:before{content:"\e71d"}.van-icon-smile:before{content:"\e71e"}.van-icon-shopping-cart-o:before{content:"\e71f"}.van-icon-sign:before{content:"\e720"}.van-icon-sort:before{content:"\e721"}.van-icon-star-o:before{content:"\e722"}.van-icon-smile-comment-o:before{content:"\e723"}.van-icon-stop:before{content:"\e724"}.van-icon-stop-circle-o:before{content:"\e725"}.van-icon-smile-o:before{content:"\e726"}.van-icon-star:before{content:"\e727"}.van-icon-success:before{content:"\e728"}.van-icon-stop-circle:before{content:"\e729"}.van-icon-records-o:before{content:"\e72a"}.van-icon-shopping-cart:before{content:"\e72b"}.van-icon-tosend:before{content:"\e72c"}.van-icon-todo-list:before{content:"\e72d"}.van-icon-thumb-circle-o:before{content:"\e72e"}.van-icon-thumb-circle:before{content:"\e72f"}.van-icon-umbrella-circle:before{content:"\e730"}.van-icon-underway:before{content:"\e731"}.van-icon-upgrade:before{content:"\e732"}.van-icon-todo-list-o:before{content:"\e733"}.van-icon-tv-o:before{content:"\e734"}.van-icon-underway-o:before{content:"\e735"}.van-icon-user-o:before{content:"\e736"}.van-icon-vip-card-o:before{content:"\e737"}.van-icon-vip-card:before{content:"\e738"}.van-icon-send-gift:before{content:"\e739"}.van-icon-wap-home:before{content:"\e73a"}.van-icon-wap-nav:before{content:"\e73b"}.van-icon-volume-o:before{content:"\e73c"}.van-icon-video:before{content:"\e73d"}.van-icon-wap-home-o:before{content:"\e73e"}.van-icon-volume:before{content:"\e73f"}.van-icon-warning:before{content:"\e740"}.van-icon-weapp-nav:before{content:"\e741"}.van-icon-wechat-pay:before{content:"\e742"}.van-icon-warning-o:before{content:"\e743"}.van-icon-wechat:before{content:"\e744"}.van-icon-setting-o:before{content:"\e745"}.van-icon-youzan-shield:before{content:"\e746"}.van-icon-warn-o:before{content:"\e747"}.van-icon-smile-comment:before{content:"\e748"}.van-icon-user-circle-o:before{content:"\e749"}.van-icon-video-o:before{content:"\e74a"}.van-icon-add-square:before{content:"\e65c"}.van-icon-add:before{content:"\e65d"}.van-icon-arrow-down:before{content:"\e65e"}.van-icon-arrow-up:before{content:"\e65f"}.van-icon-arrow:before{content:"\e660"}.van-icon-after-sale:before{content:"\e661"}.van-icon-add-o:before{content:"\e662"}.van-icon-alipay:before{content:"\e663"}.van-icon-ascending:before{content:"\e664"}.van-icon-apps-o:before{content:"\e665"}.van-icon-aim:before{content:"\e666"}.van-icon-award:before{content:"\e667"}.van-icon-arrow-left:before{content:"\e668"}.van-icon-award-o:before{content:"\e669"}.van-icon-audio:before{content:"\e66a"}.van-icon-bag-o:before{content:"\e66b"}.van-icon-balance-list:before{content:"\e66c"}.van-icon-back-top:before{content:"\e66d"}.van-icon-bag:before{content:"\e66e"}.van-icon-balance-pay:before{content:"\e66f"}.van-icon-balance-o:before{content:"\e670"}.van-icon-bar-chart-o:before{content:"\e671"}.van-icon-bars:before{content:"\e672"}.van-icon-balance-list-o:before{content:"\e673"}.van-icon-birthday-cake-o:before{content:"\e674"}.van-icon-bookmark:before{content:"\e675"}.van-icon-bill:before{content:"\e676"}.van-icon-bell:before{content:"\e677"}.van-icon-browsing-history-o:before{content:"\e678"}.van-icon-browsing-history:before{content:"\e679"}.van-icon-bookmark-o:before{content:"\e67a"}.van-icon-bulb-o:before{content:"\e67b"}.van-icon-bullhorn-o:before{content:"\e67c"}.van-icon-bill-o:before{content:"\e67d"}.van-icon-calendar-o:before{content:"\e67e"}.van-icon-brush-o:before{content:"\e67f"}.van-icon-card:before{content:"\e680"}.van-icon-cart-o:before{content:"\e681"}.van-icon-cart-circle:before{content:"\e682"}.van-icon-cart-circle-o:before{content:"\e683"}.van-icon-cart:before{content:"\e684"}.van-icon-cash-on-deliver:before{content:"\e685"}.van-icon-cash-back-record-o:before{content:"\e686"}.van-icon-cashier-o:before{content:"\e687"}.van-icon-chart-trending-o:before{content:"\e688"}.van-icon-certificate:before{content:"\e689"}.van-icon-chat:before{content:"\e68a"}.van-icon-clear:before{content:"\e68b"}.van-icon-chat-o:before{content:"\e68c"}.van-icon-checked:before{content:"\e68d"}.van-icon-clock:before{content:"\e68e"}.van-icon-clock-o:before{content:"\e68f"}.van-icon-close:before{content:"\e690"}.van-icon-closed-eye:before{content:"\e691"}.van-icon-circle:before{content:"\e692"}.van-icon-cluster-o:before{content:"\e693"}.van-icon-column:before{content:"\e694"}.van-icon-comment-circle-o:before{content:"\e695"}.van-icon-cluster:before{content:"\e696"}.van-icon-comment:before{content:"\e697"}.van-icon-comment-o:before{content:"\e698"}.van-icon-comment-circle:before{content:"\e699"}.van-icon-completed-o:before{content:"\e69a"}.van-icon-credit-pay:before{content:"\e69b"}.van-icon-coupon:before{content:"\e69c"}.van-icon-debit-pay:before{content:"\e69d"}.van-icon-coupon-o:before{content:"\e69e"}.van-icon-contact-o:before{content:"\e69f"}.van-icon-descending:before{content:"\e6a0"}.van-icon-desktop-o:before{content:"\e6a1"}.van-icon-diamond-o:before{content:"\e6a2"}.van-icon-description-o:before{content:"\e6a3"}.van-icon-delete:before{content:"\e6a4"}.van-icon-diamond:before{content:"\e6a5"}.van-icon-delete-o:before{content:"\e6a6"}.van-icon-cross:before{content:"\e6a7"}.van-icon-edit:before{content:"\e6a8"}.van-icon-ellipsis:before{content:"\e6a9"}.van-icon-down:before{content:"\e6aa"}.van-icon-discount-o:before{content:"\e6ab"}.van-icon-ecard-pay:before{content:"\e6ac"}.van-icon-envelop-o:before{content:"\e6ae"}@font-face{font-display:auto;font-family:vant-icon;font-style:normal;font-weight:400;src:url(//at.alicdn.com/t/c/font_2553510_kfwma2yq1rs.woff2?t=1694918397022) format("woff2"),url(//at.alicdn.com/t/c/font_2553510_kfwma2yq1rs.woff?t=1694918397022) format("woff")}:host{align-items:center;display:inline-flex;justify-content:center}.van-icon--custom{position:relative}.van-icon--image{height:1em;width:1em}.van-icon__image{height:100%;width:100%}.van-icon__info{z-index:1}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/image/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/image/index.js
deleted file mode 100644
index 40f6812..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/image/index.js
+++ /dev/null
@@ -1,66 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var button_1 = require("../mixins/button");
-(0, component_1.VantComponent)({
- mixins: [button_1.button],
- classes: ['custom-class', 'loading-class', 'error-class', 'image-class'],
- props: {
- src: {
- type: String,
- observer: function () {
- this.setData({
- error: false,
- loading: true,
- });
- },
- },
- round: Boolean,
- width: null,
- height: null,
- radius: null,
- lazyLoad: Boolean,
- useErrorSlot: Boolean,
- useLoadingSlot: Boolean,
- showMenuByLongpress: Boolean,
- fit: {
- type: String,
- value: 'fill',
- },
- webp: {
- type: Boolean,
- value: false,
- },
- showError: {
- type: Boolean,
- value: true,
- },
- showLoading: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- error: false,
- loading: true,
- viewStyle: '',
- },
- methods: {
- onLoad: function (event) {
- this.setData({
- loading: false,
- });
- this.$emit('load', event.detail);
- },
- onError: function (event) {
- this.setData({
- loading: false,
- error: true,
- });
- this.$emit('error', event.detail);
- },
- onClick: function (event) {
- this.$emit('click', event.detail);
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/image/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/image/index.json
deleted file mode 100644
index e00a588..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/image/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index",
- "van-loading": "../loading/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxml
deleted file mode 100644
index a6f573c..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxml
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxs
deleted file mode 100644
index cec14b8..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxs
+++ /dev/null
@@ -1,32 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
- return style([
- {
- width: addUnit(data.width),
- height: addUnit(data.height),
- 'border-radius': addUnit(data.radius),
- },
- data.radius ? 'overflow: hidden' : null,
- ]);
-}
-
-var FIT_MODE_MAP = {
- none: 'center',
- fill: 'scaleToFill',
- cover: 'aspectFill',
- contain: 'aspectFit',
- widthFix: 'widthFix',
- heightFix: 'heightFix',
-};
-
-function mode(fit) {
- return FIT_MODE_MAP[fit];
-}
-
-module.exports = {
- rootStyle: rootStyle,
- mode: mode,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxss
deleted file mode 100644
index a9c6ebb..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/image/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-image{display:inline-block;position:relative}.van-image--round{border-radius:50%;overflow:hidden}.van-image--round .van-image__img{border-radius:inherit}.van-image__error,.van-image__img,.van-image__loading{display:block;height:100%;width:100%}.van-image__error,.van-image__loading{align-items:center;background-color:var(--image-placeholder-background-color,#f7f8fa);color:var(--image-placeholder-text-color,#969799);display:flex;flex-direction:column;font-size:var(--image-placeholder-font-size,14px);justify-content:center;left:0;position:absolute;top:0}.van-image__loading-icon{color:var(--image-loading-icon-color,#dcdee0);font-size:var(--image-loading-icon-size,32px)!important}.van-image__error-icon{color:var(--image-error-icon-color,#dcdee0);font-size:var(--image-error-icon-size,32px)!important}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.js
deleted file mode 100644
index 9a361a9..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.js
+++ /dev/null
@@ -1,28 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var utils_1 = require("../common/utils");
-var component_1 = require("../common/component");
-var relation_1 = require("../common/relation");
-(0, component_1.VantComponent)({
- relation: (0, relation_1.useParent)('index-bar'),
- props: {
- useSlot: Boolean,
- index: null,
- },
- data: {
- active: false,
- wrapperStyle: '',
- anchorStyle: '',
- },
- methods: {
- scrollIntoView: function (scrollTop) {
- var _this = this;
- (0, utils_1.getRect)(this, '.van-index-anchor-wrapper').then(function (rect) {
- wx.pageScrollTo({
- duration: 0,
- scrollTop: scrollTop + rect.top - _this.parent.data.stickyOffsetTop,
- });
- });
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.wxml
deleted file mode 100644
index 49affa7..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.wxml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
- {{ index }}
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.wxss
deleted file mode 100644
index 4b91560..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/index-anchor/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-index-anchor{background-color:var(--index-anchor-background-color,transparent);color:var(--index-anchor-text-color,#323233);font-size:var(--index-anchor-font-size,14px);font-weight:var(--index-anchor-font-weight,500);line-height:var(--index-anchor-line-height,32px);padding:var(--index-anchor-padding,0 16px)}.van-index-anchor--active{background-color:var(--index-anchor-active-background-color,#fff);color:var(--index-anchor-active-text-color,#07c160);left:0;right:0}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.js
deleted file mode 100644
index afc5412..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.js
+++ /dev/null
@@ -1,243 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var color_1 = require("../common/color");
-var component_1 = require("../common/component");
-var relation_1 = require("../common/relation");
-var utils_1 = require("../common/utils");
-var page_scroll_1 = require("../mixins/page-scroll");
-var indexList = function () {
- var indexList = [];
- var charCodeOfA = 'A'.charCodeAt(0);
- for (var i = 0; i < 26; i++) {
- indexList.push(String.fromCharCode(charCodeOfA + i));
- }
- return indexList;
-};
-(0, component_1.VantComponent)({
- relation: (0, relation_1.useChildren)('index-anchor', function () {
- this.updateData();
- }),
- props: {
- sticky: {
- type: Boolean,
- value: true,
- },
- zIndex: {
- type: Number,
- value: 1,
- },
- highlightColor: {
- type: String,
- value: color_1.GREEN,
- },
- stickyOffsetTop: {
- type: Number,
- value: 0,
- },
- indexList: {
- type: Array,
- value: indexList(),
- },
- },
- mixins: [
- (0, page_scroll_1.pageScrollMixin)(function (event) {
- this.scrollTop = (event === null || event === void 0 ? void 0 : event.scrollTop) || 0;
- this.onScroll();
- }),
- ],
- data: {
- activeAnchorIndex: null,
- showSidebar: false,
- },
- created: function () {
- this.scrollTop = 0;
- },
- methods: {
- updateData: function () {
- var _this = this;
- wx.nextTick(function () {
- if (_this.timer != null) {
- clearTimeout(_this.timer);
- }
- _this.timer = setTimeout(function () {
- _this.setData({
- showSidebar: !!_this.children.length,
- });
- _this.setRect().then(function () {
- _this.onScroll();
- });
- }, 0);
- });
- },
- setRect: function () {
- return Promise.all([
- this.setAnchorsRect(),
- this.setListRect(),
- this.setSiderbarRect(),
- ]);
- },
- setAnchorsRect: function () {
- var _this = this;
- return Promise.all(this.children.map(function (anchor) {
- return (0, utils_1.getRect)(anchor, '.van-index-anchor-wrapper').then(function (rect) {
- Object.assign(anchor, {
- height: rect.height,
- top: rect.top + _this.scrollTop,
- });
- });
- }));
- },
- setListRect: function () {
- var _this = this;
- return (0, utils_1.getRect)(this, '.van-index-bar').then(function (rect) {
- if (!(0, utils_1.isDef)(rect)) {
- return;
- }
- Object.assign(_this, {
- height: rect.height,
- top: rect.top + _this.scrollTop,
- });
- });
- },
- setSiderbarRect: function () {
- var _this = this;
- return (0, utils_1.getRect)(this, '.van-index-bar__sidebar').then(function (res) {
- if (!(0, utils_1.isDef)(res)) {
- return;
- }
- _this.sidebar = {
- height: res.height,
- top: res.top,
- };
- });
- },
- setDiffData: function (_a) {
- var target = _a.target, data = _a.data;
- var diffData = {};
- Object.keys(data).forEach(function (key) {
- if (target.data[key] !== data[key]) {
- diffData[key] = data[key];
- }
- });
- if (Object.keys(diffData).length) {
- target.setData(diffData);
- }
- },
- getAnchorRect: function (anchor) {
- return (0, utils_1.getRect)(anchor, '.van-index-anchor-wrapper').then(function (rect) { return ({
- height: rect.height,
- top: rect.top,
- }); });
- },
- getActiveAnchorIndex: function () {
- var _a = this, children = _a.children, scrollTop = _a.scrollTop;
- var _b = this.data, sticky = _b.sticky, stickyOffsetTop = _b.stickyOffsetTop;
- for (var i = this.children.length - 1; i >= 0; i--) {
- var preAnchorHeight = i > 0 ? children[i - 1].height : 0;
- var reachTop = sticky ? preAnchorHeight + stickyOffsetTop : 0;
- if (reachTop + scrollTop >= children[i].top) {
- return i;
- }
- }
- return -1;
- },
- onScroll: function () {
- var _this = this;
- var _a = this, _b = _a.children, children = _b === void 0 ? [] : _b, scrollTop = _a.scrollTop;
- if (!children.length) {
- return;
- }
- var _c = this.data, sticky = _c.sticky, stickyOffsetTop = _c.stickyOffsetTop, zIndex = _c.zIndex, highlightColor = _c.highlightColor;
- var active = this.getActiveAnchorIndex();
- this.setDiffData({
- target: this,
- data: {
- activeAnchorIndex: active,
- },
- });
- if (sticky) {
- var isActiveAnchorSticky_1 = false;
- if (active !== -1) {
- isActiveAnchorSticky_1 =
- children[active].top <= stickyOffsetTop + scrollTop;
- }
- children.forEach(function (item, index) {
- if (index === active) {
- var wrapperStyle = '';
- var anchorStyle = "\n color: ".concat(highlightColor, ";\n ");
- if (isActiveAnchorSticky_1) {
- wrapperStyle = "\n height: ".concat(children[index].height, "px;\n ");
- anchorStyle = "\n position: fixed;\n top: ".concat(stickyOffsetTop, "px;\n z-index: ").concat(zIndex, ";\n color: ").concat(highlightColor, ";\n ");
- }
- _this.setDiffData({
- target: item,
- data: {
- active: true,
- anchorStyle: anchorStyle,
- wrapperStyle: wrapperStyle,
- },
- });
- }
- else if (index === active - 1) {
- var currentAnchor = children[index];
- var currentOffsetTop = currentAnchor.top;
- var targetOffsetTop = index === children.length - 1
- ? _this.top
- : children[index + 1].top;
- var parentOffsetHeight = targetOffsetTop - currentOffsetTop;
- var translateY = parentOffsetHeight - currentAnchor.height;
- var anchorStyle = "\n position: relative;\n transform: translate3d(0, ".concat(translateY, "px, 0);\n z-index: ").concat(zIndex, ";\n color: ").concat(highlightColor, ";\n ");
- _this.setDiffData({
- target: item,
- data: {
- active: true,
- anchorStyle: anchorStyle,
- },
- });
- }
- else {
- _this.setDiffData({
- target: item,
- data: {
- active: false,
- anchorStyle: '',
- wrapperStyle: '',
- },
- });
- }
- });
- }
- },
- onClick: function (event) {
- this.scrollToAnchor(event.target.dataset.index);
- },
- onTouchMove: function (event) {
- var sidebarLength = this.children.length;
- var touch = event.touches[0];
- var itemHeight = this.sidebar.height / sidebarLength;
- var index = Math.floor((touch.clientY - this.sidebar.top) / itemHeight);
- if (index < 0) {
- index = 0;
- }
- else if (index > sidebarLength - 1) {
- index = sidebarLength - 1;
- }
- this.scrollToAnchor(index);
- },
- onTouchStop: function () {
- this.scrollToAnchorIndex = null;
- },
- scrollToAnchor: function (index) {
- var _this = this;
- if (typeof index !== 'number' || this.scrollToAnchorIndex === index) {
- return;
- }
- this.scrollToAnchorIndex = index;
- var anchor = this.children.find(function (item) { return item.data.index === _this.data.indexList[index]; });
- if (anchor) {
- anchor.scrollIntoView(this.scrollTop);
- this.$emit('select', anchor.data.index);
- }
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.wxml
deleted file mode 100644
index 19a59cf..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.wxml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.wxss
deleted file mode 100644
index 8568801..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/index-bar/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-index-bar{position:relative}.van-index-bar__sidebar{display:flex;flex-direction:column;position:fixed;right:0;text-align:center;top:50%;transform:translateY(-50%);-webkit-user-select:none;user-select:none}.van-index-bar__index{font-size:var(--index-bar-index-font-size,10px);font-weight:500;line-height:var(--index-bar-index-line-height,14px);padding:0 var(--padding-base,4px) 0 var(--padding-md,16px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/info/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/info/index.js
deleted file mode 100644
index e61af73..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/info/index.js
+++ /dev/null
@@ -1,10 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- props: {
- dot: Boolean,
- info: null,
- customStyle: String,
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/info/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/info/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/info/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/info/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/info/index.wxml
deleted file mode 100644
index b39b524..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/info/index.wxml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-{{ dot ? '' : info }}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/info/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/info/index.wxss
deleted file mode 100644
index 375ed5a..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/info/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-info{align-items:center;background-color:var(--info-background-color,#ee0a24);border:var(--info-border-width,1px) solid #fff;border-radius:var(--info-size,16px);box-sizing:border-box;color:var(--info-color,#fff);display:inline-flex;font-family:var(--info-font-family,-apple-system-font,Helvetica Neue,Arial,sans-serif);font-size:var(--info-font-size,12px);font-weight:var(--info-font-weight,500);height:var(--info-size,16px);justify-content:center;min-width:var(--info-size,16px);padding:var(--info-padding,0 3px);position:absolute;right:0;top:0;transform:translate(50%,-50%);transform-origin:100%;white-space:nowrap}.van-info--dot{background-color:var(--info-dot-color,#ee0a24);border-radius:100%;height:var(--info-dot-size,8px);min-width:0;width:var(--info-dot-size,8px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.js
deleted file mode 100644
index be9c0ef..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.js
+++ /dev/null
@@ -1,18 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- props: {
- color: String,
- vertical: Boolean,
- type: {
- type: String,
- value: 'circular',
- },
- size: String,
- textSize: String,
- },
- data: {
- array12: Array.from({ length: 12 }),
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxml
deleted file mode 100644
index 7d4a539..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxs
deleted file mode 100644
index 02a0b80..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxs
+++ /dev/null
@@ -1,22 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function spinnerStyle(data) {
- return style({
- color: data.color,
- width: addUnit(data.size),
- height: addUnit(data.size),
- });
-}
-
-function textStyle(data) {
- return style({
- 'font-size': addUnit(data.textSize),
- });
-}
-
-module.exports = {
- spinnerStyle: spinnerStyle,
- textStyle: textStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxss
deleted file mode 100644
index fc84e84..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/loading/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';:host{font-size:0;line-height:1}.van-loading{align-items:center;color:var(--loading-spinner-color,#c8c9cc);display:inline-flex;justify-content:center}.van-loading__spinner{animation:van-rotate var(--loading-spinner-animation-duration,.8s) linear infinite;box-sizing:border-box;height:var(--loading-spinner-size,30px);max-height:100%;max-width:100%;position:relative;width:var(--loading-spinner-size,30px)}.van-loading__spinner--spinner{animation-timing-function:steps(12)}.van-loading__spinner--circular{border:1px solid transparent;border-radius:100%;border-top-color:initial}.van-loading__text{color:var(--loading-text-color,#969799);font-size:var(--loading-text-font-size,14px);line-height:var(--loading-text-line-height,20px);margin-left:var(--padding-xs,8px)}.van-loading__text:empty{display:none}.van-loading--vertical{flex-direction:column}.van-loading--vertical .van-loading__text{margin:var(--padding-xs,8px) 0 0}.van-loading__dot{height:100%;left:0;position:absolute;top:0;width:100%}.van-loading__dot:before{background-color:currentColor;border-radius:40%;content:" ";display:block;height:25%;margin:0 auto;width:2px}.van-loading__dot:first-of-type{opacity:1;transform:rotate(30deg)}.van-loading__dot:nth-of-type(2){opacity:.9375;transform:rotate(60deg)}.van-loading__dot:nth-of-type(3){opacity:.875;transform:rotate(90deg)}.van-loading__dot:nth-of-type(4){opacity:.8125;transform:rotate(120deg)}.van-loading__dot:nth-of-type(5){opacity:.75;transform:rotate(150deg)}.van-loading__dot:nth-of-type(6){opacity:.6875;transform:rotate(180deg)}.van-loading__dot:nth-of-type(7){opacity:.625;transform:rotate(210deg)}.van-loading__dot:nth-of-type(8){opacity:.5625;transform:rotate(240deg)}.van-loading__dot:nth-of-type(9){opacity:.5;transform:rotate(270deg)}.van-loading__dot:nth-of-type(10){opacity:.4375;transform:rotate(300deg)}.van-loading__dot:nth-of-type(11){opacity:.375;transform:rotate(330deg)}.van-loading__dot:nth-of-type(12){opacity:.3125;transform:rotate(1turn)}@keyframes van-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/basic.js b/src/openeuler/miniprogram_npm/@vant/weapp/mixins/basic.js
deleted file mode 100644
index 4373ad4..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/basic.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.basic = void 0;
-exports.basic = Behavior({
- methods: {
- $emit: function (name, detail, options) {
- this.triggerEvent(name, detail, options);
- },
- set: function (data) {
- this.setData(data);
- return new Promise(function (resolve) { return wx.nextTick(resolve); });
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/button.js b/src/openeuler/miniprogram_npm/@vant/weapp/mixins/button.js
deleted file mode 100644
index 8c1c499..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/button.js
+++ /dev/null
@@ -1,54 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.button = void 0;
-var version_1 = require("../common/version");
-exports.button = Behavior({
- externalClasses: ['hover-class'],
- properties: {
- id: String,
- buttonId: String,
- lang: String,
- businessId: Number,
- sessionFrom: String,
- sendMessageTitle: String,
- sendMessagePath: String,
- sendMessageImg: String,
- showMessageCard: Boolean,
- appParameter: String,
- ariaLabel: String,
- openType: String,
- getUserProfileDesc: String,
- },
- data: {
- canIUseGetUserProfile: (0, version_1.canIUseGetUserProfile)(),
- },
- methods: {
- onGetUserInfo: function (event) {
- this.triggerEvent('getuserinfo', event.detail);
- },
- onContact: function (event) {
- this.triggerEvent('contact', event.detail);
- },
- onGetPhoneNumber: function (event) {
- this.triggerEvent('getphonenumber', event.detail);
- },
- onGetRealTimePhoneNumber: function (event) {
- this.triggerEvent('getrealtimephonenumber', event.detail);
- },
- onError: function (event) {
- this.triggerEvent('error', event.detail);
- },
- onLaunchApp: function (event) {
- this.triggerEvent('launchapp', event.detail);
- },
- onOpenSetting: function (event) {
- this.triggerEvent('opensetting', event.detail);
- },
- onAgreePrivacyAuthorization: function (event) {
- this.triggerEvent('agreeprivacyauthorization', event.detail);
- },
- onChooseAvatar: function (event) {
- this.triggerEvent('chooseavatar', event.detail);
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/link.js b/src/openeuler/miniprogram_npm/@vant/weapp/mixins/link.js
deleted file mode 100644
index 14cb7e8..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/link.js
+++ /dev/null
@@ -1,27 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.link = void 0;
-exports.link = Behavior({
- properties: {
- url: String,
- linkType: {
- type: String,
- value: 'navigateTo',
- },
- },
- methods: {
- jumpLink: function (urlKey) {
- if (urlKey === void 0) { urlKey = 'url'; }
- var url = this.data[urlKey];
- if (url) {
- if (this.data.linkType === 'navigateTo' &&
- getCurrentPages().length > 9) {
- wx.redirectTo({ url: url });
- }
- else {
- wx[this.data.linkType]({ url: url });
- }
- }
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/page-scroll.js b/src/openeuler/miniprogram_npm/@vant/weapp/mixins/page-scroll.js
deleted file mode 100644
index fce7049..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/page-scroll.js
+++ /dev/null
@@ -1,47 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.pageScrollMixin = void 0;
-var validator_1 = require("../common/validator");
-var utils_1 = require("../common/utils");
-function onPageScroll(event) {
- var _a = (0, utils_1.getCurrentPage)().vanPageScroller, vanPageScroller = _a === void 0 ? [] : _a;
- vanPageScroller.forEach(function (scroller) {
- if (typeof scroller === 'function') {
- // @ts-ignore
- scroller(event);
- }
- });
-}
-function pageScrollMixin(scroller) {
- return Behavior({
- attached: function () {
- var page = (0, utils_1.getCurrentPage)();
- if (!(0, utils_1.isDef)(page)) {
- return;
- }
- var _scroller = scroller.bind(this);
- var _a = page.vanPageScroller, vanPageScroller = _a === void 0 ? [] : _a;
- if ((0, validator_1.isFunction)(page.onPageScroll) && page.onPageScroll !== onPageScroll) {
- vanPageScroller.push(page.onPageScroll.bind(page));
- }
- vanPageScroller.push(_scroller);
- page.vanPageScroller = vanPageScroller;
- page.onPageScroll = onPageScroll;
- this._scroller = _scroller;
- },
- detached: function () {
- var _this = this;
- var page = (0, utils_1.getCurrentPage)();
- if (!(0, utils_1.isDef)(page) || !(0, utils_1.isDef)(page.vanPageScroller)) {
- return;
- }
- var vanPageScroller = page.vanPageScroller;
- var index = vanPageScroller.findIndex(function (v) { return v === _this._scroller; });
- if (index > -1) {
- page.vanPageScroller.splice(index, 1);
- }
- this._scroller = undefined;
- },
- });
-}
-exports.pageScrollMixin = pageScrollMixin;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/touch.js b/src/openeuler/miniprogram_npm/@vant/weapp/mixins/touch.js
deleted file mode 100644
index d762c2c..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/touch.js
+++ /dev/null
@@ -1,40 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.touch = void 0;
-// @ts-nocheck
-var MIN_DISTANCE = 10;
-function getDirection(x, y) {
- if (x > y && x > MIN_DISTANCE) {
- return 'horizontal';
- }
- if (y > x && y > MIN_DISTANCE) {
- return 'vertical';
- }
- return '';
-}
-exports.touch = Behavior({
- methods: {
- resetTouchStatus: function () {
- this.direction = '';
- this.deltaX = 0;
- this.deltaY = 0;
- this.offsetX = 0;
- this.offsetY = 0;
- },
- touchStart: function (event) {
- this.resetTouchStatus();
- var touch = event.touches[0];
- this.startX = touch.clientX;
- this.startY = touch.clientY;
- },
- touchMove: function (event) {
- var touch = event.touches[0];
- this.deltaX = touch.clientX - this.startX;
- this.deltaY = touch.clientY - this.startY;
- this.offsetX = Math.abs(this.deltaX);
- this.offsetY = Math.abs(this.deltaY);
- this.direction =
- this.direction || getDirection(this.offsetX, this.offsetY);
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/transition.js b/src/openeuler/miniprogram_npm/@vant/weapp/mixins/transition.js
deleted file mode 100644
index 4a1b62f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/mixins/transition.js
+++ /dev/null
@@ -1,124 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.transition = void 0;
-// @ts-nocheck
-var utils_1 = require("../common/utils");
-var validator_1 = require("../common/validator");
-var getClassNames = function (name) { return ({
- enter: "van-".concat(name, "-enter van-").concat(name, "-enter-active enter-class enter-active-class"),
- 'enter-to': "van-".concat(name, "-enter-to van-").concat(name, "-enter-active enter-to-class enter-active-class"),
- leave: "van-".concat(name, "-leave van-").concat(name, "-leave-active leave-class leave-active-class"),
- 'leave-to': "van-".concat(name, "-leave-to van-").concat(name, "-leave-active leave-to-class leave-active-class"),
-}); };
-function transition(showDefaultValue) {
- return Behavior({
- properties: {
- customStyle: String,
- // @ts-ignore
- show: {
- type: Boolean,
- value: showDefaultValue,
- observer: 'observeShow',
- },
- // @ts-ignore
- duration: {
- type: null,
- value: 300,
- observer: 'observeDuration',
- },
- name: {
- type: String,
- value: 'fade',
- },
- },
- data: {
- type: '',
- inited: false,
- display: false,
- },
- ready: function () {
- if (this.data.show === true) {
- this.observeShow(true, false);
- }
- },
- methods: {
- observeShow: function (value, old) {
- if (value === old) {
- return;
- }
- value ? this.enter() : this.leave();
- },
- enter: function () {
- var _this = this;
- var _a = this.data, duration = _a.duration, name = _a.name;
- var classNames = getClassNames(name);
- var currentDuration = (0, validator_1.isObj)(duration) ? duration.enter : duration;
- if (this.status === 'enter') {
- return;
- }
- this.status = 'enter';
- this.$emit('before-enter');
- (0, utils_1.requestAnimationFrame)(function () {
- if (_this.status !== 'enter') {
- return;
- }
- _this.$emit('enter');
- _this.setData({
- inited: true,
- display: true,
- classes: classNames.enter,
- currentDuration: currentDuration,
- });
- (0, utils_1.requestAnimationFrame)(function () {
- if (_this.status !== 'enter') {
- return;
- }
- _this.transitionEnded = false;
- _this.setData({ classes: classNames['enter-to'] });
- });
- });
- },
- leave: function () {
- var _this = this;
- if (!this.data.display) {
- return;
- }
- var _a = this.data, duration = _a.duration, name = _a.name;
- var classNames = getClassNames(name);
- var currentDuration = (0, validator_1.isObj)(duration) ? duration.leave : duration;
- this.status = 'leave';
- this.$emit('before-leave');
- (0, utils_1.requestAnimationFrame)(function () {
- if (_this.status !== 'leave') {
- return;
- }
- _this.$emit('leave');
- _this.setData({
- classes: classNames.leave,
- currentDuration: currentDuration,
- });
- (0, utils_1.requestAnimationFrame)(function () {
- if (_this.status !== 'leave') {
- return;
- }
- _this.transitionEnded = false;
- setTimeout(function () { return _this.onTransitionEnd(); }, currentDuration);
- _this.setData({ classes: classNames['leave-to'] });
- });
- });
- },
- onTransitionEnd: function () {
- if (this.transitionEnded) {
- return;
- }
- this.transitionEnded = true;
- this.$emit("after-".concat(this.status));
- var _a = this.data, show = _a.show, display = _a.display;
- if (!show && display) {
- this.setData({ display: false });
- }
- },
- },
- });
-}
-exports.transition = transition;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.js
deleted file mode 100644
index 376b561..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.js
+++ /dev/null
@@ -1,68 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var utils_1 = require("../common/utils");
-(0, component_1.VantComponent)({
- classes: ['title-class'],
- props: {
- title: String,
- fixed: {
- type: Boolean,
- observer: 'setHeight',
- },
- placeholder: {
- type: Boolean,
- observer: 'setHeight',
- },
- leftText: String,
- rightText: String,
- customStyle: String,
- leftArrow: Boolean,
- border: {
- type: Boolean,
- value: true,
- },
- zIndex: {
- type: Number,
- value: 1,
- },
- safeAreaInsetTop: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- height: 46,
- },
- created: function () {
- var statusBarHeight = (0, utils_1.getSystemInfoSync)().statusBarHeight;
- this.setData({
- statusBarHeight: statusBarHeight,
- height: 46 + statusBarHeight,
- });
- },
- mounted: function () {
- this.setHeight();
- },
- methods: {
- onClickLeft: function () {
- this.$emit('click-left');
- },
- onClickRight: function () {
- this.$emit('click-right');
- },
- setHeight: function () {
- var _this = this;
- if (!this.data.fixed || !this.data.placeholder) {
- return;
- }
- wx.nextTick(function () {
- (0, utils_1.getRect)(_this, '.van-nav-bar').then(function (res) {
- if (res && 'height' in res) {
- _this.setData({ height: res.height });
- }
- });
- });
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.json
deleted file mode 100644
index 0a336c0..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxml
deleted file mode 100644
index b6405fd..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxml
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- {{ leftText }}
-
-
-
-
- {{ title }}
-
-
-
- {{ rightText }}
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxs
deleted file mode 100644
index 55b4158..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxs
+++ /dev/null
@@ -1,13 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-
-function barStyle(data) {
- return style({
- 'z-index': data.zIndex,
- 'padding-top': data.safeAreaInsetTop ? data.statusBarHeight + 'px' : 0,
- });
-}
-
-module.exports = {
- barStyle: barStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxss
deleted file mode 100644
index d11c31e..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/nav-bar/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-nav-bar{background-color:var(--nav-bar-background-color,#fff);box-sizing:initial;height:var(--nav-bar-height,46px);line-height:var(--nav-bar-height,46px);position:relative;text-align:center;-webkit-user-select:none;user-select:none}.van-nav-bar__content{height:100%;position:relative}.van-nav-bar__text{color:var(--nav-bar-text-color,#1989fa);display:inline-block;margin:0 calc(var(--padding-md, 16px)*-1);padding:0 var(--padding-md,16px);vertical-align:middle}.van-nav-bar__text--hover{background-color:#f2f3f5}.van-nav-bar__arrow{color:var(--nav-bar-icon-color,#1989fa)!important;font-size:var(--nav-bar-arrow-size,16px)!important;vertical-align:middle}.van-nav-bar__arrow+.van-nav-bar__text{margin-left:-20px;padding-left:25px}.van-nav-bar--fixed{left:0;position:fixed;top:0;width:100%}.van-nav-bar__title{color:var(--nav-bar-title-text-color,#323233);font-size:var(--nav-bar-title-font-size,16px);font-weight:var(--font-weight-bold,500);margin:0 auto;max-width:60%}.van-nav-bar__left,.van-nav-bar__right{align-items:center;bottom:0;display:flex;font-size:var(--font-size-md,14px);position:absolute;top:0}.van-nav-bar__left{left:var(--padding-md,16px)}.van-nav-bar__right{right:var(--padding-md,16px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.js
deleted file mode 100644
index db2a755..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.js
+++ /dev/null
@@ -1,125 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var utils_1 = require("../common/utils");
-(0, component_1.VantComponent)({
- props: {
- text: {
- type: String,
- value: '',
- observer: 'init',
- },
- mode: {
- type: String,
- value: '',
- },
- url: {
- type: String,
- value: '',
- },
- openType: {
- type: String,
- value: 'navigate',
- },
- delay: {
- type: Number,
- value: 1,
- },
- speed: {
- type: Number,
- value: 60,
- observer: 'init',
- },
- scrollable: null,
- leftIcon: {
- type: String,
- value: '',
- },
- color: String,
- backgroundColor: String,
- background: String,
- wrapable: Boolean,
- },
- data: {
- show: true,
- },
- created: function () {
- this.resetAnimation = wx.createAnimation({
- duration: 0,
- timingFunction: 'linear',
- });
- },
- destroyed: function () {
- this.timer && clearTimeout(this.timer);
- },
- mounted: function () {
- this.init();
- },
- methods: {
- init: function () {
- var _this = this;
- (0, utils_1.requestAnimationFrame)(function () {
- Promise.all([
- (0, utils_1.getRect)(_this, '.van-notice-bar__content'),
- (0, utils_1.getRect)(_this, '.van-notice-bar__wrap'),
- ]).then(function (rects) {
- var contentRect = rects[0], wrapRect = rects[1];
- var _a = _this.data, speed = _a.speed, scrollable = _a.scrollable, delay = _a.delay;
- if (contentRect == null ||
- wrapRect == null ||
- !contentRect.width ||
- !wrapRect.width ||
- scrollable === false) {
- return;
- }
- if (scrollable || wrapRect.width < contentRect.width) {
- var duration = ((wrapRect.width + contentRect.width) / speed) * 1000;
- _this.wrapWidth = wrapRect.width;
- _this.contentWidth = contentRect.width;
- _this.duration = duration;
- _this.animation = wx.createAnimation({
- duration: duration,
- timingFunction: 'linear',
- delay: delay,
- });
- _this.scroll(true);
- }
- });
- });
- },
- scroll: function (isInit) {
- var _this = this;
- if (isInit === void 0) { isInit = false; }
- this.timer && clearTimeout(this.timer);
- this.timer = null;
- this.setData({
- animationData: this.resetAnimation
- .translateX(isInit ? 0 : this.wrapWidth)
- .step()
- .export(),
- });
- (0, utils_1.requestAnimationFrame)(function () {
- _this.setData({
- animationData: _this.animation
- .translateX(-_this.contentWidth)
- .step()
- .export(),
- });
- });
- this.timer = setTimeout(function () {
- _this.scroll();
- }, this.duration + this.data.delay);
- },
- onClickIcon: function (event) {
- if (this.data.mode === 'closeable') {
- this.timer && clearTimeout(this.timer);
- this.timer = null;
- this.setData({ show: false });
- this.$emit('close', event.detail);
- }
- },
- onClick: function (event) {
- this.$emit('click', event);
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.json
deleted file mode 100644
index 0a336c0..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxml
deleted file mode 100644
index 21b0973..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxml
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
-
-
-
-
-
- {{ text }}
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxs
deleted file mode 100644
index 11e6456..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxs
+++ /dev/null
@@ -1,15 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
- return style({
- color: data.color,
- 'background-color': data.backgroundColor,
- background: data.background,
- });
-}
-
-module.exports = {
- rootStyle: rootStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxss
deleted file mode 100644
index 497636c..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notice-bar/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-notice-bar{align-items:center;background-color:var(--notice-bar-background-color,#fffbe8);color:var(--notice-bar-text-color,#ed6a0c);display:flex;font-size:var(--notice-bar-font-size,14px);height:var(--notice-bar-height,40px);line-height:var(--notice-bar-line-height,24px);padding:var(--notice-bar-padding,0 16px)}.van-notice-bar--withicon{padding-right:40px;position:relative}.van-notice-bar--wrapable{height:auto;padding:var(--notice-bar-wrapable-padding,8px 16px)}.van-notice-bar--wrapable .van-notice-bar__wrap{height:auto}.van-notice-bar--wrapable .van-notice-bar__content{position:relative;white-space:normal}.van-notice-bar__left-icon{align-items:center;display:flex;margin-right:4px;vertical-align:middle}.van-notice-bar__left-icon,.van-notice-bar__right-icon{font-size:var(--notice-bar-icon-size,16px);min-width:var(--notice-bar-icon-min-width,22px)}.van-notice-bar__right-icon{position:absolute;right:15px;top:10px}.van-notice-bar__wrap{flex:1;height:var(--notice-bar-line-height,24px);overflow:hidden;position:relative}.van-notice-bar__content{position:absolute;white-space:nowrap}.van-notice-bar__content.van-ellipsis{max-width:100%}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.js
deleted file mode 100644
index a9526aa..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.js
+++ /dev/null
@@ -1,68 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var color_1 = require("../common/color");
-var utils_1 = require("../common/utils");
-(0, component_1.VantComponent)({
- props: {
- message: String,
- background: String,
- type: {
- type: String,
- value: 'danger',
- },
- color: {
- type: String,
- value: color_1.WHITE,
- },
- duration: {
- type: Number,
- value: 3000,
- },
- zIndex: {
- type: Number,
- value: 110,
- },
- safeAreaInsetTop: {
- type: Boolean,
- value: false,
- },
- top: null,
- },
- data: {
- show: false,
- onOpened: null,
- onClose: null,
- onClick: null,
- },
- created: function () {
- var statusBarHeight = (0, utils_1.getSystemInfoSync)().statusBarHeight;
- this.setData({ statusBarHeight: statusBarHeight });
- },
- methods: {
- show: function () {
- var _this = this;
- var _a = this.data, duration = _a.duration, onOpened = _a.onOpened;
- clearTimeout(this.timer);
- this.setData({ show: true });
- wx.nextTick(onOpened);
- if (duration > 0 && duration !== Infinity) {
- this.timer = setTimeout(function () {
- _this.hide();
- }, duration);
- }
- },
- hide: function () {
- var onClose = this.data.onClose;
- clearTimeout(this.timer);
- this.setData({ show: false });
- wx.nextTick(onClose);
- },
- onTap: function (event) {
- var onClick = this.data.onClick;
- if (onClick) {
- onClick(event.detail);
- }
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.json
deleted file mode 100644
index c14a65f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-transition": "../transition/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxml
deleted file mode 100644
index 42d913e..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
- {{ message }}
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxs
deleted file mode 100644
index bbb94c2..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxs
+++ /dev/null
@@ -1,22 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
- return style({
- 'z-index': data.zIndex,
- top: addUnit(data.top),
- });
-}
-
-function notifyStyle(data) {
- return style({
- background: data.background,
- color: data.color,
- });
-}
-
-module.exports = {
- rootStyle: rootStyle,
- notifyStyle: notifyStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxss
deleted file mode 100644
index c030e9b..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notify/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-notify{word-wrap:break-word;font-size:var(--notify-font-size,14px);line-height:var(--notify-line-height,20px);padding:var(--notify-padding,6px 15px);text-align:center}.van-notify__container{box-sizing:border-box;left:0;position:fixed;top:0;width:100%}.van-notify--primary{background-color:var(--notify-primary-background-color,#1989fa)}.van-notify--success{background-color:var(--notify-success-background-color,#07c160)}.van-notify--danger{background-color:var(--notify-danger-background-color,#ee0a24)}.van-notify--warning{background-color:var(--notify-warning-background-color,#ff976a)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/notify/notify.js b/src/openeuler/miniprogram_npm/@vant/weapp/notify/notify.js
deleted file mode 100644
index d470431..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/notify/notify.js
+++ /dev/null
@@ -1,67 +0,0 @@
-"use strict";
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var color_1 = require("../common/color");
-var defaultOptions = {
- selector: '#van-notify',
- type: 'danger',
- message: '',
- background: '',
- duration: 3000,
- zIndex: 110,
- top: 0,
- color: color_1.WHITE,
- safeAreaInsetTop: false,
- onClick: function () { },
- onOpened: function () { },
- onClose: function () { },
-};
-var currentOptions = __assign({}, defaultOptions);
-function parseOptions(message) {
- if (message == null) {
- return {};
- }
- return typeof message === 'string' ? { message: message } : message;
-}
-function getContext() {
- var pages = getCurrentPages();
- return pages[pages.length - 1];
-}
-function Notify(options) {
- options = __assign(__assign({}, currentOptions), parseOptions(options));
- var context = options.context || getContext();
- var notify = context.selectComponent(options.selector);
- delete options.context;
- delete options.selector;
- if (notify) {
- notify.setData(options);
- notify.show();
- return notify;
- }
- console.warn('未找到 van-notify 节点,请确认 selector 及 context 是否正确');
-}
-exports.default = Notify;
-Notify.clear = function (options) {
- options = __assign(__assign({}, defaultOptions), parseOptions(options));
- var context = options.context || getContext();
- var notify = context.selectComponent(options.selector);
- if (notify) {
- notify.hide();
- }
-};
-Notify.setDefaultOptions = function (options) {
- Object.assign(currentOptions, options);
-};
-Notify.resetDefaultOptions = function () {
- currentOptions = __assign({}, defaultOptions);
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.js
deleted file mode 100644
index 9b58b5f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.js
+++ /dev/null
@@ -1,32 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- props: {
- show: Boolean,
- customStyle: String,
- duration: {
- type: null,
- value: 300,
- },
- zIndex: {
- type: Number,
- value: 1,
- },
- lockScroll: {
- type: Boolean,
- value: true,
- },
- rootPortal: {
- type: Boolean,
- value: false,
- },
- },
- methods: {
- onClick: function () {
- this.$emit('click');
- },
- // for prevent touchmove
- noop: function () { },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.json
deleted file mode 100644
index c14a65f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-transition": "../transition/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.wxml
deleted file mode 100644
index 17fc56f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.wxml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.wxss
deleted file mode 100644
index d1ad81a..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/overlay/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-overlay{background-color:var(--overlay-background-color,rgba(0,0,0,.7));height:100%;left:0;position:fixed;top:0;width:100%}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.js
deleted file mode 100644
index 818b8c5..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.js
+++ /dev/null
@@ -1,11 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- classes: ['header-class', 'footer-class'],
- props: {
- desc: String,
- title: String,
- status: String,
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.json
deleted file mode 100644
index 0e5425c..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-cell": "../cell/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.wxml
deleted file mode 100644
index 1843703..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.wxml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.wxss
deleted file mode 100644
index 485edcd..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/panel/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-panel{background:var(--panel-background-color,#fff)}.van-panel__header-value{color:var(--panel-header-value-color,#ee0a24)}.van-panel__footer{padding:var(--panel-footer-padding,8px 16px)}.van-panel__footer:empty{display:none}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.js
deleted file mode 100644
index 9dbf17c..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.js
+++ /dev/null
@@ -1,122 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var utils_1 = require("../common/utils");
-var validator_1 = require("../common/validator");
-var DEFAULT_DURATION = 200;
-(0, component_1.VantComponent)({
- classes: ['active-class'],
- props: {
- valueKey: String,
- className: String,
- itemHeight: Number,
- visibleItemCount: Number,
- initialOptions: {
- type: Array,
- value: [],
- },
- defaultIndex: {
- type: Number,
- value: 0,
- observer: function (value) {
- this.setIndex(value);
- },
- },
- },
- data: {
- startY: 0,
- offset: 0,
- duration: 0,
- startOffset: 0,
- options: [],
- currentIndex: 0,
- },
- created: function () {
- var _this = this;
- var _a = this.data, defaultIndex = _a.defaultIndex, initialOptions = _a.initialOptions;
- this.set({
- currentIndex: defaultIndex,
- options: initialOptions,
- }).then(function () {
- _this.setIndex(defaultIndex);
- });
- },
- methods: {
- getCount: function () {
- return this.data.options.length;
- },
- onTouchStart: function (event) {
- this.setData({
- startY: event.touches[0].clientY,
- startOffset: this.data.offset,
- duration: 0,
- });
- },
- onTouchMove: function (event) {
- var data = this.data;
- var deltaY = event.touches[0].clientY - data.startY;
- this.setData({
- offset: (0, utils_1.range)(data.startOffset + deltaY, -(this.getCount() * data.itemHeight), data.itemHeight),
- });
- },
- onTouchEnd: function () {
- var data = this.data;
- if (data.offset !== data.startOffset) {
- this.setData({ duration: DEFAULT_DURATION });
- var index = (0, utils_1.range)(Math.round(-data.offset / data.itemHeight), 0, this.getCount() - 1);
- this.setIndex(index, true);
- }
- },
- onClickItem: function (event) {
- var index = event.currentTarget.dataset.index;
- this.setIndex(index, true);
- },
- adjustIndex: function (index) {
- var data = this.data;
- var count = this.getCount();
- index = (0, utils_1.range)(index, 0, count);
- for (var i = index; i < count; i++) {
- if (!this.isDisabled(data.options[i]))
- return i;
- }
- for (var i = index - 1; i >= 0; i--) {
- if (!this.isDisabled(data.options[i]))
- return i;
- }
- },
- isDisabled: function (option) {
- return (0, validator_1.isObj)(option) && option.disabled;
- },
- getOptionText: function (option) {
- var data = this.data;
- return (0, validator_1.isObj)(option) && data.valueKey in option
- ? option[data.valueKey]
- : option;
- },
- setIndex: function (index, userAction) {
- var _this = this;
- var data = this.data;
- index = this.adjustIndex(index) || 0;
- var offset = -index * data.itemHeight;
- if (index !== data.currentIndex) {
- return this.set({ offset: offset, currentIndex: index }).then(function () {
- userAction && _this.$emit('change', index);
- });
- }
- return this.set({ offset: offset });
- },
- setValue: function (value) {
- var options = this.data.options;
- for (var i = 0; i < options.length; i++) {
- if (this.getOptionText(options[i]) === value) {
- return this.setIndex(i);
- }
- }
- return Promise.resolve();
- },
- getValue: function () {
- var data = this.data;
- return data.options[data.currentIndex];
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxml
deleted file mode 100644
index f2c8da2..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
- {{ computed.optionText(option, valueKey) }}
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxs
deleted file mode 100644
index 2d5a611..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxs
+++ /dev/null
@@ -1,36 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function isObj(x) {
- var type = typeof x;
- return x !== null && (type === 'object' || type === 'function');
-}
-
-function optionText(option, valueKey) {
- return isObj(option) && option[valueKey] != null ? option[valueKey] : option;
-}
-
-function rootStyle(data) {
- return style({
- height: addUnit(data.itemHeight * data.visibleItemCount),
- });
-}
-
-function wrapperStyle(data) {
- var offset = addUnit(
- data.offset + (data.itemHeight * (data.visibleItemCount - 1)) / 2
- );
-
- return style({
- transition: 'transform ' + data.duration + 'ms',
- 'line-height': addUnit(data.itemHeight),
- transform: 'translate3d(0, ' + offset + ', 0)',
- });
-}
-
-module.exports = {
- optionText: optionText,
- rootStyle: rootStyle,
- wrapperStyle: wrapperStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxss
deleted file mode 100644
index 519a438..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker-column/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-picker-column{color:var(--picker-option-text-color,#000);font-size:var(--picker-option-font-size,16px);overflow:hidden;text-align:center}.van-picker-column__item{padding:0 5px}.van-picker-column__item--selected{color:var(--picker-option-selected-text-color,#323233);font-weight:var(--font-weight-bold,500)}.van-picker-column__item--disabled{opacity:var(--picker-option-disabled-opacity,.3)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.js
deleted file mode 100644
index 06d1826..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.js
+++ /dev/null
@@ -1,161 +0,0 @@
-"use strict";
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var shared_1 = require("./shared");
-(0, component_1.VantComponent)({
- classes: ['active-class', 'toolbar-class', 'column-class'],
- props: __assign(__assign({}, shared_1.pickerProps), { valueKey: {
- type: String,
- value: 'text',
- }, toolbarPosition: {
- type: String,
- value: 'top',
- }, defaultIndex: {
- type: Number,
- value: 0,
- }, columns: {
- type: Array,
- value: [],
- observer: function (columns) {
- if (columns === void 0) { columns = []; }
- this.simple = columns.length && !columns[0].values;
- if (Array.isArray(this.children) && this.children.length) {
- this.setColumns().catch(function () { });
- }
- },
- } }),
- beforeCreate: function () {
- var _this = this;
- Object.defineProperty(this, 'children', {
- get: function () { return _this.selectAllComponents('.van-picker__column') || []; },
- });
- },
- methods: {
- noop: function () { },
- setColumns: function () {
- var _this = this;
- var data = this.data;
- var columns = this.simple ? [{ values: data.columns }] : data.columns;
- var stack = columns.map(function (column, index) {
- return _this.setColumnValues(index, column.values);
- });
- return Promise.all(stack);
- },
- emit: function (event) {
- var type = event.currentTarget.dataset.type;
- if (this.simple) {
- this.$emit(type, {
- value: this.getColumnValue(0),
- index: this.getColumnIndex(0),
- });
- }
- else {
- this.$emit(type, {
- value: this.getValues(),
- index: this.getIndexes(),
- });
- }
- },
- onChange: function (event) {
- if (this.simple) {
- this.$emit('change', {
- picker: this,
- value: this.getColumnValue(0),
- index: this.getColumnIndex(0),
- });
- }
- else {
- this.$emit('change', {
- picker: this,
- value: this.getValues(),
- index: event.currentTarget.dataset.index,
- });
- }
- },
- // get column instance by index
- getColumn: function (index) {
- return this.children[index];
- },
- // get column value by index
- getColumnValue: function (index) {
- var column = this.getColumn(index);
- return column && column.getValue();
- },
- // set column value by index
- setColumnValue: function (index, value) {
- var column = this.getColumn(index);
- if (column == null) {
- return Promise.reject(new Error('setColumnValue: 对应列不存在'));
- }
- return column.setValue(value);
- },
- // get column option index by column index
- getColumnIndex: function (columnIndex) {
- return (this.getColumn(columnIndex) || {}).data.currentIndex;
- },
- // set column option index by column index
- setColumnIndex: function (columnIndex, optionIndex) {
- var column = this.getColumn(columnIndex);
- if (column == null) {
- return Promise.reject(new Error('setColumnIndex: 对应列不存在'));
- }
- return column.setIndex(optionIndex);
- },
- // get options of column by index
- getColumnValues: function (index) {
- return (this.children[index] || {}).data.options;
- },
- // set options of column by index
- setColumnValues: function (index, options, needReset) {
- if (needReset === void 0) { needReset = true; }
- var column = this.children[index];
- if (column == null) {
- return Promise.reject(new Error('setColumnValues: 对应列不存在'));
- }
- var isSame = JSON.stringify(column.data.options) === JSON.stringify(options);
- if (isSame) {
- return Promise.resolve();
- }
- return column.set({ options: options }).then(function () {
- if (needReset) {
- column.setIndex(0);
- }
- });
- },
- // get values of all columns
- getValues: function () {
- return this.children.map(function (child) { return child.getValue(); });
- },
- // set values of all columns
- setValues: function (values) {
- var _this = this;
- var stack = values.map(function (value, index) {
- return _this.setColumnValue(index, value);
- });
- return Promise.all(stack);
- },
- // get indexes of all columns
- getIndexes: function () {
- return this.children.map(function (child) { return child.data.currentIndex; });
- },
- // set indexes of all columns
- setIndexes: function (indexes) {
- var _this = this;
- var stack = indexes.map(function (optionIndex, columnIndex) {
- return _this.setColumnIndex(columnIndex, optionIndex);
- });
- return Promise.all(stack);
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.json
deleted file mode 100644
index 2fcec89..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "picker-column": "../picker-column/index",
- "loading": "../loading/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxml
deleted file mode 100644
index 8564ccc..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxml
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxs
deleted file mode 100644
index 0abbd10..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxs
+++ /dev/null
@@ -1,42 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-var array = require('../wxs/array.wxs');
-
-function columnsStyle(data) {
- return style({
- height: addUnit(data.itemHeight * data.visibleItemCount),
- });
-}
-
-function maskStyle(data) {
- return style({
- 'background-size':
- '100% ' + addUnit((data.itemHeight * (data.visibleItemCount - 1)) / 2),
- });
-}
-
-function frameStyle(data) {
- return style({
- height: addUnit(data.itemHeight),
- });
-}
-
-function columns(columns) {
- if (!array.isArray(columns)) {
- return [];
- }
-
- if (columns.length && !columns[0].values) {
- return [{ values: columns }];
- }
-
- return columns;
-}
-
-module.exports = {
- columnsStyle: columnsStyle,
- frameStyle: frameStyle,
- maskStyle: maskStyle,
- columns: columns,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxss
deleted file mode 100644
index d924abb..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-picker{-webkit-text-size-adjust:100%;background-color:var(--picker-background-color,#fff);overflow:hidden;position:relative;-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:flex;height:var(--picker-toolbar-height,44px);justify-content:space-between;line-height:var(--picker-toolbar-height,44px)}.van-picker__cancel,.van-picker__confirm{font-size:var(--picker-action-font-size,14px);padding:var(--picker-action-padding,0 16px)}.van-picker__cancel--hover,.van-picker__confirm--hover{opacity:.7}.van-picker__confirm{color:var(--picker-confirm-action-color,#576b95)}.van-picker__cancel{color:var(--picker-cancel-action-color,#969799)}.van-picker__title{font-size:var(--picker-option-font-size,16px);font-weight:var(--font-weight-bold,500);max-width:50%;text-align:center}.van-picker__columns{display:flex;position:relative}.van-picker__column{flex:1 1;width:0}.van-picker__loading{align-items:center;background-color:var(--picker-loading-mask-color,hsla(0,0%,100%,.9));bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:4}.van-picker__mask{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-image:linear-gradient(180deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4)),linear-gradient(0deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4));background-position:top,bottom;background-repeat:no-repeat;height:100%;left:0;top:0;width:100%;z-index:2}.van-picker__frame,.van-picker__mask{pointer-events:none;position:absolute}.van-picker__frame{left:16px;right:16px;top:50%;transform:translateY(-50%);z-index:1}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker/shared.js b/src/openeuler/miniprogram_npm/@vant/weapp/picker/shared.js
deleted file mode 100644
index 3d40a8c..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker/shared.js
+++ /dev/null
@@ -1,24 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.pickerProps = void 0;
-exports.pickerProps = {
- title: String,
- loading: Boolean,
- showToolbar: Boolean,
- cancelButtonText: {
- type: String,
- value: '取消',
- },
- confirmButtonText: {
- type: String,
- value: '确认',
- },
- visibleItemCount: {
- type: Number,
- value: 6,
- },
- itemHeight: {
- type: Number,
- value: 44,
- },
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/picker/toolbar.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/picker/toolbar.wxml
deleted file mode 100644
index 414f612..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/picker/toolbar.wxml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
- {{ cancelButtonText }}
-
- {{
- title
- }}
-
- {{ confirmButtonText }}
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.js
deleted file mode 100644
index 18b08e6..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.js
+++ /dev/null
@@ -1,99 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var transition_1 = require("../mixins/transition");
-(0, component_1.VantComponent)({
- classes: [
- 'enter-class',
- 'enter-active-class',
- 'enter-to-class',
- 'leave-class',
- 'leave-active-class',
- 'leave-to-class',
- 'close-icon-class',
- ],
- mixins: [(0, transition_1.transition)(false)],
- props: {
- round: Boolean,
- closeable: Boolean,
- customStyle: String,
- overlayStyle: String,
- transition: {
- type: String,
- observer: 'observeClass',
- },
- zIndex: {
- type: Number,
- value: 100,
- },
- overlay: {
- type: Boolean,
- value: true,
- },
- closeIcon: {
- type: String,
- value: 'cross',
- },
- closeIconPosition: {
- type: String,
- value: 'top-right',
- },
- closeOnClickOverlay: {
- type: Boolean,
- value: true,
- },
- position: {
- type: String,
- value: 'center',
- observer: 'observeClass',
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- safeAreaInsetTop: {
- type: Boolean,
- value: false,
- },
- safeAreaTabBar: {
- type: Boolean,
- value: false,
- },
- lockScroll: {
- type: Boolean,
- value: true,
- },
- rootPortal: {
- type: Boolean,
- value: false,
- },
- },
- created: function () {
- this.observeClass();
- },
- methods: {
- onClickCloseIcon: function () {
- this.$emit('close');
- },
- onClickOverlay: function () {
- this.$emit('click-overlay');
- if (this.data.closeOnClickOverlay) {
- this.$emit('close');
- }
- },
- observeClass: function () {
- var _a = this.data, transition = _a.transition, position = _a.position, duration = _a.duration;
- var updateData = {
- name: transition || position,
- };
- if (transition === 'none') {
- updateData.duration = 0;
- this.originDuration = duration;
- }
- else if (this.originDuration != null) {
- updateData.duration = this.originDuration;
- }
- this.setData(updateData);
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.json
deleted file mode 100644
index 88a6eab..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index",
- "van-overlay": "../overlay/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxml
deleted file mode 100644
index ab824b1..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxs
deleted file mode 100644
index 8d59f24..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxs
+++ /dev/null
@@ -1,18 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-
-function popupStyle(data) {
- return style([
- {
- 'z-index': data.zIndex,
- '-webkit-transition-duration': data.currentDuration + 'ms',
- 'transition-duration': data.currentDuration + 'ms',
- },
- data.display ? null : 'display: none',
- data.customStyle,
- ]);
-}
-
-module.exports = {
- popupStyle: popupStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxss
deleted file mode 100644
index 91983b4..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/popup/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-popup{-webkit-overflow-scrolling:touch;animation:ease both;background-color:var(--popup-background-color,#fff);box-sizing:border-box;max-height:100%;overflow-y:auto;position:fixed;transition-timing-function:ease}.van-popup--center{left:50%;top:50%;transform:translate3d(-50%,-50%,0)}.van-popup--center.van-popup--round{border-radius:var(--popup-round-border-radius,16px)}.van-popup--top{left:0;top:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px))}.van-popup--right{right:0;top:50%;transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0 0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px))}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0 0}.van-popup--left{left:0;top:50%;transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0}.van-popup--bottom.van-popup--safe{padding-bottom:env(safe-area-inset-bottom)}.van-popup--bottom.van-popup--safeTabBar,.van-popup--top.van-popup--safeTabBar{bottom:var(--tabbar-height,50px)}.van-popup--safeTop{padding-top:env(safe-area-inset-top)}.van-popup__close-icon{color:var(--popup-close-icon-color,#969799);font-size:var(--popup-close-icon-size,18px);position:absolute;z-index:var(--popup-close-icon-z-index,1)}.van-popup__close-icon--top-left{left:var(--popup-close-icon-margin,16px);top:var(--popup-close-icon-margin,16px)}.van-popup__close-icon--top-right{right:var(--popup-close-icon-margin,16px);top:var(--popup-close-icon-margin,16px)}.van-popup__close-icon--bottom-left{bottom:var(--popup-close-icon-margin,16px);left:var(--popup-close-icon-margin,16px)}.van-popup__close-icon--bottom-right{bottom:var(--popup-close-icon-margin,16px);right:var(--popup-close-icon-margin,16px)}.van-popup__close-icon:active{opacity:.6}.van-scale-enter-active,.van-scale-leave-active{transition-property:opacity,transform}.van-scale-enter,.van-scale-leave-to{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.van-fade-enter-active,.van-fade-leave-active{transition-property:opacity}.van-fade-enter,.van-fade-leave-to{opacity:0}.van-center-enter-active,.van-center-leave-active{transition-property:opacity}.van-center-enter,.van-center-leave-to{opacity:0}.van-bottom-enter-active,.van-bottom-leave-active,.van-left-enter-active,.van-left-leave-active,.van-right-enter-active,.van-right-leave-active,.van-top-enter-active,.van-top-leave-active{transition-property:transform}.van-bottom-enter,.van-bottom-leave-to{transform:translate3d(0,100%,0)}.van-top-enter,.van-top-leave-to{transform:translate3d(0,-100%,0)}.van-left-enter,.van-left-leave-to{transform:translate3d(-100%,-50%,0)}.van-right-enter,.van-right-leave-to{transform:translate3d(100%,-50%,0)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.js
deleted file mode 100644
index 3bca928..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.js
+++ /dev/null
@@ -1,55 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var color_1 = require("../common/color");
-var utils_1 = require("../common/utils");
-(0, component_1.VantComponent)({
- props: {
- inactive: Boolean,
- percentage: {
- type: Number,
- observer: 'setLeft',
- },
- pivotText: String,
- pivotColor: String,
- trackColor: String,
- showPivot: {
- type: Boolean,
- value: true,
- },
- color: {
- type: String,
- value: color_1.BLUE,
- },
- textColor: {
- type: String,
- value: '#fff',
- },
- strokeWidth: {
- type: null,
- value: 4,
- },
- },
- data: {
- right: 0,
- },
- mounted: function () {
- this.setLeft();
- },
- methods: {
- setLeft: function () {
- var _this = this;
- Promise.all([
- (0, utils_1.getRect)(this, '.van-progress'),
- (0, utils_1.getRect)(this, '.van-progress__pivot'),
- ]).then(function (_a) {
- var portion = _a[0], pivot = _a[1];
- if (portion && pivot) {
- _this.setData({
- right: (pivot.width * (_this.data.percentage - 100)) / 100,
- });
- }
- });
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxml
deleted file mode 100644
index e81514d..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
- {{ computed.pivotText(pivotText, percentage) }}
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxs
deleted file mode 100644
index 5b1e8e6..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxs
+++ /dev/null
@@ -1,36 +0,0 @@
-/* eslint-disable */
-var utils = require('../wxs/utils.wxs');
-var style = require('../wxs/style.wxs');
-
-function pivotText(pivotText, percentage) {
- return pivotText || percentage + '%';
-}
-
-function rootStyle(data) {
- return style({
- 'height': data.strokeWidth ? utils.addUnit(data.strokeWidth) : '',
- 'background': data.trackColor,
- });
-}
-
-function portionStyle(data) {
- return style({
- background: data.inactive ? '#cacaca' : data.color,
- width: data.percentage ? data.percentage + '%' : '',
- });
-}
-
-function pivotStyle(data) {
- return style({
- color: data.textColor,
- right: data.right + 'px',
- background: data.pivotColor ? data.pivotColor : data.inactive ? '#cacaca' : data.color,
- });
-}
-
-module.exports = {
- pivotText: pivotText,
- rootStyle: rootStyle,
- portionStyle: portionStyle,
- pivotStyle: pivotStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxss
deleted file mode 100644
index a08972a..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/progress/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-progress{background:var(--progress-background-color,#ebedf0);border-radius:var(--progress-height,4px);height:var(--progress-height,4px);position:relative}.van-progress__portion{background:var(--progress-color,#1989fa);border-radius:inherit;height:100%;left:0;position:absolute}.van-progress__pivot{background-color:var(--progress-pivot-background-color,#1989fa);border-radius:1em;box-sizing:border-box;color:var(--progress-pivot-text-color,#fff);font-size:var(--progress-pivot-font-size,10px);line-height:var(--progress-pivot-line-height,1.6);min-width:3.6em;padding:var(--progress-pivot-padding,0 5px);position:absolute;text-align:center;top:50%;transform:translateY(-50%);word-break:keep-all}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.js
deleted file mode 100644
index ddb2a60..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.js
+++ /dev/null
@@ -1,24 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var relation_1 = require("../common/relation");
-(0, component_1.VantComponent)({
- field: true,
- relation: (0, relation_1.useChildren)('radio'),
- props: {
- value: {
- type: null,
- observer: 'updateChildren',
- },
- direction: String,
- disabled: {
- type: Boolean,
- observer: 'updateChildren',
- },
- },
- methods: {
- updateChildren: function () {
- this.children.forEach(function (child) { return child.updateFromParent(); });
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.wxml
deleted file mode 100644
index 0ab17af..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.wxml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.wxss
deleted file mode 100644
index 4e3b5d4..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/radio-group/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-radio-group--horizontal{display:flex;flex-wrap:wrap}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.js
deleted file mode 100644
index 61a86d5..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.js
+++ /dev/null
@@ -1,68 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var version_1 = require("../common/version");
-var component_1 = require("../common/component");
-var relation_1 = require("../common/relation");
-(0, component_1.VantComponent)({
- field: true,
- relation: (0, relation_1.useParent)('radio-group', function () {
- this.updateFromParent();
- }),
- classes: ['icon-class', 'label-class'],
- props: {
- name: null,
- value: null,
- disabled: Boolean,
- useIconSlot: Boolean,
- checkedColor: String,
- labelPosition: {
- type: String,
- value: 'right',
- },
- labelDisabled: Boolean,
- shape: {
- type: String,
- value: 'round',
- },
- iconSize: {
- type: null,
- value: 20,
- },
- },
- data: {
- direction: '',
- parentDisabled: false,
- },
- methods: {
- updateFromParent: function () {
- if (!this.parent) {
- return;
- }
- var _a = this.parent.data, value = _a.value, parentDisabled = _a.disabled, direction = _a.direction;
- this.setData({
- value: value,
- direction: direction,
- parentDisabled: parentDisabled,
- });
- },
- emitChange: function (value) {
- var instance = this.parent || this;
- instance.$emit('input', value);
- instance.$emit('change', value);
- if ((0, version_1.canIUseModel)()) {
- instance.setData({ value: value });
- }
- },
- onChange: function () {
- if (!this.data.disabled && !this.data.parentDisabled) {
- this.emitChange(this.data.name);
- }
- },
- onClickLabel: function () {
- var _a = this.data, disabled = _a.disabled, parentDisabled = _a.parentDisabled, labelDisabled = _a.labelDisabled, name = _a.name;
- if (!(disabled || parentDisabled) && !labelDisabled) {
- this.emitChange(name);
- }
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.json
deleted file mode 100644
index 0a336c0..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.wxml
deleted file mode 100644
index 5f898c0..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.wxml
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.wxss
deleted file mode 100644
index 257b0c7..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/radio/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-radio{align-items:center;display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-radio__icon-wrap{flex:none}.van-radio--horizontal{margin-right:var(--padding-sm,12px)}.van-radio__icon{align-items:center;border:1px solid var(--radio-border-color,#c8c9cc);box-sizing:border-box;color:transparent;display:flex;font-size:var(--radio-size,20px);height:1em;justify-content:center;text-align:center;transition-duration:var(--radio-transition-duration,.2s);transition-property:color,border-color,background-color;width:1em}.van-radio__icon--round{border-radius:100%}.van-radio__icon--checked{background-color:var(--radio-checked-icon-color,#1989fa);border-color:var(--radio-checked-icon-color,#1989fa);color:#fff}.van-radio__icon--disabled{background-color:var(--radio-disabled-background-color,#ebedf0);border-color:var(--radio-disabled-icon-color,#c8c9cc)}.van-radio__icon--disabled.van-radio__icon--checked{color:var(--radio-disabled-icon-color,#c8c9cc)}.van-radio__label{word-wrap:break-word;color:var(--radio-label-color,#323233);line-height:var(--radio-size,20px);padding-left:var(--radio-label-margin,10px)}.van-radio__label--left{float:left;margin:0 var(--radio-label-margin,10px) 0 0}.van-radio__label--disabled{color:var(--radio-disabled-label-color,#c8c9cc)}.van-radio__label:empty{margin:0}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.js
deleted file mode 100644
index 30a96de..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.js
+++ /dev/null
@@ -1,93 +0,0 @@
-"use strict";
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var utils_1 = require("../common/utils");
-var component_1 = require("../common/component");
-var version_1 = require("../common/version");
-(0, component_1.VantComponent)({
- field: true,
- classes: ['icon-class'],
- props: {
- value: {
- type: Number,
- observer: function (value) {
- if (value !== this.data.innerValue) {
- this.setData({ innerValue: value });
- }
- },
- },
- readonly: Boolean,
- disabled: Boolean,
- allowHalf: Boolean,
- size: null,
- icon: {
- type: String,
- value: 'star',
- },
- voidIcon: {
- type: String,
- value: 'star-o',
- },
- color: String,
- voidColor: String,
- disabledColor: String,
- count: {
- type: Number,
- value: 5,
- observer: function (value) {
- this.setData({ innerCountArray: Array.from({ length: value }) });
- },
- },
- gutter: null,
- touchable: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- innerValue: 0,
- innerCountArray: Array.from({ length: 5 }),
- },
- methods: {
- onSelect: function (event) {
- var _this = this;
- var data = this.data;
- var score = event.currentTarget.dataset.score;
- if (!data.disabled && !data.readonly) {
- this.setData({ innerValue: score + 1 });
- if ((0, version_1.canIUseModel)()) {
- this.setData({ value: score + 1 });
- }
- wx.nextTick(function () {
- _this.$emit('input', score + 1);
- _this.$emit('change', score + 1);
- });
- }
- },
- onTouchMove: function (event) {
- var _this = this;
- var touchable = this.data.touchable;
- if (!touchable)
- return;
- var clientX = event.touches[0].clientX;
- (0, utils_1.getAllRect)(this, '.van-rate__icon').then(function (list) {
- var target = list
- .sort(function (cur, next) { return cur.dataset.score - next.dataset.score; })
- .find(function (item) { return clientX >= item.left && clientX <= item.right; });
- if (target != null) {
- _this.onSelect(__assign(__assign({}, event), { currentTarget: target }));
- }
- });
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.json
deleted file mode 100644
index 0a336c0..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.wxml
deleted file mode 100644
index 049714c..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.wxml
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.wxss
deleted file mode 100644
index 470e4f4..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/rate/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-rate{display:inline-flex;-webkit-user-select:none;user-select:none}.van-rate__item{padding:0 var(--rate-horizontal-padding,2px);position:relative}.van-rate__item:not(:last-child){padding-right:var(--rate-icon-gutter,4px)}.van-rate__icon{color:var(--rate-icon-void-color,#c8c9cc);display:block;font-size:var(--rate-icon-size,20px);height:100%}.van-rate__icon--half{left:var(--rate-horizontal-padding,2px);overflow:hidden;position:absolute;top:0;width:.5em}.van-rate__icon--full,.van-rate__icon--half{color:var(--rate-icon-full-color,#ee0a24)}.van-rate__icon--disabled{color:var(--rate-icon-disabled-color,#c8c9cc)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/row/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/row/index.js
deleted file mode 100644
index c27acd6..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/row/index.js
+++ /dev/null
@@ -1,26 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var relation_1 = require("../common/relation");
-(0, component_1.VantComponent)({
- relation: (0, relation_1.useChildren)('col', function (target) {
- var gutter = this.data.gutter;
- if (gutter) {
- target.setData({ gutter: gutter });
- }
- }),
- props: {
- gutter: {
- type: Number,
- observer: 'setGutter',
- },
- },
- methods: {
- setGutter: function () {
- var _this = this;
- this.children.forEach(function (col) {
- col.setData(_this.data);
- });
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/row/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/row/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/row/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxml
deleted file mode 100644
index 69a4359..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxs
deleted file mode 100644
index f5c5958..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxs
+++ /dev/null
@@ -1,18 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
- if (!data.gutter) {
- return '';
- }
-
- return style({
- 'margin-right': addUnit(-data.gutter / 2),
- 'margin-left': addUnit(-data.gutter / 2),
- });
-}
-
-module.exports = {
- rootStyle: rootStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxss
deleted file mode 100644
index bb8946b..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/row/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-row:after{clear:both;content:"";display:table}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/search/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/search/index.js
deleted file mode 100644
index b5348b0..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/search/index.js
+++ /dev/null
@@ -1,100 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var version_1 = require("../common/version");
-(0, component_1.VantComponent)({
- field: true,
- classes: ['field-class', 'input-class', 'cancel-class'],
- props: {
- value: {
- type: String,
- value: '',
- },
- label: String,
- focus: Boolean,
- error: Boolean,
- disabled: Boolean,
- readonly: Boolean,
- inputAlign: String,
- showAction: Boolean,
- useActionSlot: Boolean,
- useLeftIconSlot: Boolean,
- useRightIconSlot: Boolean,
- leftIcon: {
- type: String,
- value: 'search',
- },
- rightIcon: String,
- placeholder: String,
- placeholderStyle: String,
- actionText: {
- type: String,
- value: '取消',
- },
- background: {
- type: String,
- value: '#ffffff',
- },
- maxlength: {
- type: Number,
- value: -1,
- },
- shape: {
- type: String,
- value: 'square',
- },
- clearable: {
- type: Boolean,
- value: true,
- },
- clearTrigger: {
- type: String,
- value: 'focus',
- },
- clearIcon: {
- type: String,
- value: 'clear',
- },
- cursorSpacing: {
- type: Number,
- value: 0,
- },
- },
- methods: {
- onChange: function (event) {
- if ((0, version_1.canIUseModel)()) {
- this.setData({ value: event.detail });
- }
- this.$emit('change', event.detail);
- },
- onCancel: function () {
- var _this = this;
- /**
- * 修复修改输入框值时,输入框失焦和赋值同时触发,赋值失效
- * https://github.com/youzan/vant-weapp/issues/1768
- */
- setTimeout(function () {
- if ((0, version_1.canIUseModel)()) {
- _this.setData({ value: '' });
- }
- _this.$emit('cancel');
- _this.$emit('change', '');
- }, 200);
- },
- onSearch: function (event) {
- this.$emit('search', event.detail);
- },
- onFocus: function (event) {
- this.$emit('focus', event.detail);
- },
- onBlur: function (event) {
- this.$emit('blur', event.detail);
- },
- onClear: function (event) {
- this.$emit('clear', event.detail);
- },
- onClickInput: function (event) {
- this.$emit('click-input', event.detail);
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/search/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/search/index.json
deleted file mode 100644
index b4cfe91..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/search/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-field": "../field/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/search/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/search/index.wxml
deleted file mode 100644
index cbcb47a..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/search/index.wxml
+++ /dev/null
@@ -1,54 +0,0 @@
-
-
-
-
- {{ label }}
-
-
-
-
-
-
-
-
-
-
- {{ actionText }}
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/search/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/search/index.wxss
deleted file mode 100644
index 4f306b0..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/search/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-search{align-items:center;box-sizing:border-box;display:flex;padding:var(--search-padding,10px 12px)}.van-search__content{background-color:var(--search-background-color,#f7f8fa);border-radius:2px;display:flex;flex:1;padding-left:var(--padding-sm,12px)}.van-search__content--round{border-radius:999px}.van-search__label{color:var(--search-label-color,#323233);font-size:var(--search-label-font-size,14px);line-height:var(--search-input-height,34px);padding:var(--search-label-padding,0 5px)}.van-search__field{flex:1}.van-search__field__left-icon{color:var(--search-left-icon-color,#969799)}.van-search--withaction{padding-right:0}.van-search__action{color:var(--search-action-text-color,#323233);font-size:var(--search-action-font-size,14px);line-height:var(--search-input-height,34px)}.van-search__action--hover{background-color:#f2f3f5}.van-search__action-button{padding:var(--search-action-padding,0 8px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.js
deleted file mode 100644
index 669ca0d..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.js
+++ /dev/null
@@ -1,57 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- props: {
- // whether to show popup
- show: Boolean,
- // overlay custom style
- overlayStyle: String,
- // z-index
- zIndex: {
- type: Number,
- value: 100,
- },
- title: String,
- cancelText: {
- type: String,
- value: '取消',
- },
- description: String,
- options: {
- type: Array,
- value: [],
- },
- overlay: {
- type: Boolean,
- value: true,
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- closeOnClickOverlay: {
- type: Boolean,
- value: true,
- },
- duration: {
- type: null,
- value: 300,
- },
- },
- methods: {
- onClickOverlay: function () {
- this.$emit('click-overlay');
- },
- onCancel: function () {
- this.onClose();
- this.$emit('cancel');
- },
- onSelect: function (event) {
- this.$emit('select', event.detail);
- },
- onClose: function () {
- this.$emit('close');
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.json
deleted file mode 100644
index 15a7c22..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-popup": "../popup/index",
- "options": "./options"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxml
deleted file mode 100644
index cefc3af..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxml
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- {{ cancelText }}
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxs
deleted file mode 100644
index 2149ee9..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxs
+++ /dev/null
@@ -1,12 +0,0 @@
-/* eslint-disable */
-function isMulti(options) {
- if (options == null || options[0] == null) {
- return false;
- }
-
- return "Array" === options.constructor && "Array" === options[0].constructor;
-}
-
-module.exports = {
- isMulti: isMulti
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxss
deleted file mode 100644
index e8d8dae..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-share-sheet__header{padding:12px 16px 4px;text-align:center}.van-share-sheet__title{color:#323233;font-size:14px;font-weight:400;line-height:20px;margin-top:8px}.van-share-sheet__title:empty,.van-share-sheet__title:not(:empty)+.van-share-sheet__title{display:none}.van-share-sheet__description{color:#969799;display:block;font-size:12px;line-height:16px;margin-top:8px}.van-share-sheet__description:empty,.van-share-sheet__description:not(:empty)+.van-share-sheet__description{display:none}.van-share-sheet__cancel{background:#fff;border:none;box-sizing:initial;display:block;font-size:16px;height:auto;line-height:48px;padding:0;text-align:center;width:100%}.van-share-sheet__cancel:before{background-color:#f7f8fa;content:" ";display:block;height:8px}.van-share-sheet__cancel:after{display:none}.van-share-sheet__cancel:active{background-color:#f2f3f5}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.js b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.js
deleted file mode 100644
index 0432d4f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.js
+++ /dev/null
@@ -1,27 +0,0 @@
-"use strict";
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- props: {
- options: Array,
- showBorder: Boolean,
- },
- methods: {
- onSelect: function (event) {
- var index = event.currentTarget.dataset.index;
- var option = this.data.options[index];
- this.$emit('select', __assign(__assign({}, option), { index: index }));
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.json b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxml
deleted file mode 100644
index 2983ebb..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
-
- {{ item.name }}
-
- {{ item.description }}
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxs
deleted file mode 100644
index a116d32..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxs
+++ /dev/null
@@ -1,14 +0,0 @@
-/* eslint-disable */
-var PRESET_ICONS = ['qq', 'link', 'weibo', 'wechat', 'poster', 'qrcode', 'weapp-qrcode', 'wechat-moments'];
-
-function getIconURL(icon) {
- if (PRESET_ICONS.indexOf(icon) !== -1) {
- return 'https://img.yzcdn.cn/vant/share-sheet-' + icon + '.png';
- }
-
- return icon;
-}
-
-module.exports = {
- getIconURL: getIconURL,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxss
deleted file mode 100644
index b7f5455..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/share-sheet/options.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-share-sheet__options{-webkit-overflow-scrolling:touch;display:flex;overflow-x:auto;overflow-y:visible;padding:16px 0 16px 8px;position:relative}.van-share-sheet__options--border:before{border-top:1px solid #ebedf0;box-sizing:border-box;content:" ";left:16px;pointer-events:none;position:absolute;right:0;top:0;transform:scaleY(.5);transform-origin:center}.van-share-sheet__options::-webkit-scrollbar{height:0}.van-share-sheet__option{align-items:center;display:flex;flex-direction:column;-webkit-user-select:none;user-select:none}.van-share-sheet__option:active{opacity:.7}.van-share-sheet__button{background-color:initial;border:0;height:auto;line-height:inherit;padding:0}.van-share-sheet__button:after{border:0}.van-share-sheet__icon{height:48px;margin:0 16px;width:48px}.van-share-sheet__name{color:#646566;font-size:12px;margin-top:8px;padding:0 4px}.van-share-sheet__option-description{color:#c8c9cc;font-size:12px;padding:0 4px}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.js
deleted file mode 100644
index eac568f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.js
+++ /dev/null
@@ -1,32 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var relation_1 = require("../common/relation");
-(0, component_1.VantComponent)({
- classes: ['active-class', 'disabled-class'],
- relation: (0, relation_1.useParent)('sidebar'),
- props: {
- dot: Boolean,
- badge: null,
- info: null,
- title: String,
- disabled: Boolean,
- },
- methods: {
- onClick: function () {
- var _this = this;
- var parent = this.parent;
- if (!parent || this.data.disabled) {
- return;
- }
- var index = parent.children.indexOf(this);
- parent.setActive(index).then(function () {
- _this.$emit('click', index);
- parent.$emit('change', index);
- });
- },
- setActive: function (selected) {
- return this.setData({ selected: selected });
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.json
deleted file mode 100644
index bf0ebe0..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-info": "../info/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.wxml
deleted file mode 100644
index c5c08a6..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.wxml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.wxss
deleted file mode 100644
index f1ce421..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar-item/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-sidebar-item{background-color:var(--sidebar-background-color,#f7f8fa);border-left:3px solid transparent;box-sizing:border-box;color:var(--sidebar-text-color,#323233);display:block;font-size:var(--sidebar-font-size,14px);line-height:var(--sidebar-line-height,20px);overflow:hidden;padding:var(--sidebar-padding,20px 12px 20px 8px);-webkit-user-select:none;user-select:none}.van-sidebar-item__text{display:inline-block;position:relative;word-break:break-all}.van-sidebar-item--hover:not(.van-sidebar-item--disabled){background-color:var(--sidebar-active-color,#f2f3f5)}.van-sidebar-item:after{border-bottom-width:1px}.van-sidebar-item--selected{border-color:var(--sidebar-selected-border-color,#ee0a24);color:var(--sidebar-selected-text-color,#323233);font-weight:var(--sidebar-selected-font-weight,500)}.van-sidebar-item--selected:after{border-right-width:1px}.van-sidebar-item--selected,.van-sidebar-item--selected.van-sidebar-item--hover{background-color:var(--sidebar-selected-background-color,#fff)}.van-sidebar-item--disabled{color:var(--sidebar-disabled-text-color,#c8c9cc)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.js
deleted file mode 100644
index f3e0a58..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.js
+++ /dev/null
@@ -1,36 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var relation_1 = require("../common/relation");
-(0, component_1.VantComponent)({
- relation: (0, relation_1.useChildren)('sidebar-item', function () {
- this.setActive(this.data.activeKey);
- }),
- props: {
- activeKey: {
- type: Number,
- value: 0,
- observer: 'setActive',
- },
- },
- beforeCreate: function () {
- this.currentActive = -1;
- },
- methods: {
- setActive: function (activeKey) {
- var _a = this, children = _a.children, currentActive = _a.currentActive;
- if (!children.length) {
- return Promise.resolve();
- }
- this.currentActive = activeKey;
- var stack = [];
- if (currentActive !== activeKey && children[currentActive]) {
- stack.push(children[currentActive].setActive(false));
- }
- if (children[activeKey]) {
- stack.push(children[activeKey].setActive(true));
- }
- return Promise.all(stack);
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.wxml
deleted file mode 100644
index 96b11c7..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.wxml
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.wxss
deleted file mode 100644
index 5a2d44f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sidebar/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-sidebar{width:var(--sidebar-width,80px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.js
deleted file mode 100644
index 2ab3175..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.js
+++ /dev/null
@@ -1,48 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- classes: ['avatar-class', 'title-class', 'row-class'],
- props: {
- row: {
- type: Number,
- value: 0,
- observer: function (value) {
- this.setData({ rowArray: Array.from({ length: value }) });
- },
- },
- title: Boolean,
- avatar: Boolean,
- loading: {
- type: Boolean,
- value: true,
- },
- animate: {
- type: Boolean,
- value: true,
- },
- avatarSize: {
- type: String,
- value: '32px',
- },
- avatarShape: {
- type: String,
- value: 'round',
- },
- titleWidth: {
- type: String,
- value: '40%',
- },
- rowWidth: {
- type: null,
- value: '100%',
- observer: function (val) {
- this.setData({ isArray: val instanceof Array });
- },
- },
- },
- data: {
- isArray: false,
- rowArray: [],
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.json
deleted file mode 100644
index a89ef4d..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.wxml
deleted file mode 100644
index 058e2ef..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.wxml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.wxss
deleted file mode 100644
index d59a5ed..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/skeleton/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-skeleton{box-sizing:border-box;display:flex;padding:var(--skeleton-padding,0 16px);width:100%}.van-skeleton__avatar{background-color:var(--skeleton-avatar-background-color,#f2f3f5);flex-shrink:0;margin-right:var(--padding-md,16px)}.van-skeleton__avatar--round{border-radius:100%}.van-skeleton__content{flex:1}.van-skeleton__avatar+.van-skeleton__content{padding-top:var(--padding-xs,8px)}.van-skeleton__row,.van-skeleton__title{background-color:var(--skeleton-row-background-color,#f2f3f5);height:var(--skeleton-row-height,16px)}.van-skeleton__title{margin:0}.van-skeleton__row:not(:first-child){margin-top:var(--skeleton-row-margin-top,12px)}.van-skeleton__title+.van-skeleton__row{margin-top:20px}.van-skeleton--animate{animation:van-skeleton-blink 1.2s ease-in-out infinite}@keyframes van-skeleton-blink{50%{opacity:.6}}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.js
deleted file mode 100644
index 92adca8..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.js
+++ /dev/null
@@ -1,206 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var touch_1 = require("../mixins/touch");
-var version_1 = require("../common/version");
-var utils_1 = require("../common/utils");
-var DRAG_STATUS = {
- START: 'start',
- MOVING: 'moving',
- END: 'end',
-};
-(0, component_1.VantComponent)({
- mixins: [touch_1.touch],
- props: {
- range: Boolean,
- disabled: Boolean,
- useButtonSlot: Boolean,
- activeColor: String,
- inactiveColor: String,
- max: {
- type: Number,
- value: 100,
- },
- min: {
- type: Number,
- value: 0,
- },
- step: {
- type: Number,
- value: 1,
- },
- value: {
- type: null,
- value: 0,
- observer: function (val) {
- if (val !== this.value) {
- this.updateValue(val);
- }
- },
- },
- vertical: Boolean,
- barHeight: null,
- },
- created: function () {
- this.updateValue(this.data.value);
- },
- methods: {
- onTouchStart: function (event) {
- var _this = this;
- if (this.data.disabled)
- return;
- var index = event.currentTarget.dataset.index;
- if (typeof index === 'number') {
- this.buttonIndex = index;
- }
- this.touchStart(event);
- this.startValue = this.format(this.value);
- this.newValue = this.value;
- if (this.isRange(this.newValue)) {
- this.startValue = this.newValue.map(function (val) { return _this.format(val); });
- }
- else {
- this.startValue = this.format(this.newValue);
- }
- this.dragStatus = DRAG_STATUS.START;
- },
- onTouchMove: function (event) {
- var _this = this;
- if (this.data.disabled)
- return;
- if (this.dragStatus === DRAG_STATUS.START) {
- this.$emit('drag-start');
- }
- this.touchMove(event);
- this.dragStatus = DRAG_STATUS.MOVING;
- (0, utils_1.getRect)(this, '.van-slider').then(function (rect) {
- var vertical = _this.data.vertical;
- var delta = vertical ? _this.deltaY : _this.deltaX;
- var total = vertical ? rect.height : rect.width;
- var diff = (delta / total) * _this.getRange();
- if (_this.isRange(_this.startValue)) {
- _this.newValue[_this.buttonIndex] =
- _this.startValue[_this.buttonIndex] + diff;
- }
- else {
- _this.newValue = _this.startValue + diff;
- }
- _this.updateValue(_this.newValue, false, true);
- });
- },
- onTouchEnd: function () {
- var _this = this;
- if (this.data.disabled)
- return;
- if (this.dragStatus === DRAG_STATUS.MOVING) {
- this.dragStatus = DRAG_STATUS.END;
- (0, utils_1.nextTick)(function () {
- _this.updateValue(_this.newValue, true);
- _this.$emit('drag-end');
- });
- }
- },
- onClick: function (event) {
- var _this = this;
- if (this.data.disabled)
- return;
- var min = this.data.min;
- (0, utils_1.getRect)(this, '.van-slider').then(function (rect) {
- var vertical = _this.data.vertical;
- var touch = event.touches[0];
- var delta = vertical
- ? touch.clientY - rect.top
- : touch.clientX - rect.left;
- var total = vertical ? rect.height : rect.width;
- var value = Number(min) + (delta / total) * _this.getRange();
- if (_this.isRange(_this.value)) {
- var _a = _this.value, left = _a[0], right = _a[1];
- var middle = (left + right) / 2;
- if (value <= middle) {
- _this.updateValue([value, right], true);
- }
- else {
- _this.updateValue([left, value], true);
- }
- }
- else {
- _this.updateValue(value, true);
- }
- });
- },
- isRange: function (val) {
- var range = this.data.range;
- return range && Array.isArray(val);
- },
- handleOverlap: function (value) {
- if (value[0] > value[1]) {
- return value.slice(0).reverse();
- }
- return value;
- },
- updateValue: function (value, end, drag) {
- var _this = this;
- if (this.isRange(value)) {
- value = this.handleOverlap(value).map(function (val) { return _this.format(val); });
- }
- else {
- value = this.format(value);
- }
- this.value = value;
- var vertical = this.data.vertical;
- var mainAxis = vertical ? 'height' : 'width';
- this.setData({
- wrapperStyle: "\n background: ".concat(this.data.inactiveColor || '', ";\n ").concat(vertical ? 'width' : 'height', ": ").concat((0, utils_1.addUnit)(this.data.barHeight) || '', ";\n "),
- barStyle: "\n ".concat(mainAxis, ": ").concat(this.calcMainAxis(), ";\n left: ").concat(vertical ? 0 : this.calcOffset(), ";\n top: ").concat(vertical ? this.calcOffset() : 0, ";\n ").concat(drag ? 'transition: none;' : '', "\n "),
- });
- if (drag) {
- this.$emit('drag', { value: value });
- }
- if (end) {
- this.$emit('change', value);
- }
- if ((drag || end) && (0, version_1.canIUseModel)()) {
- this.setData({ value: value });
- }
- },
- getScope: function () {
- return Number(this.data.max) - Number(this.data.min);
- },
- getRange: function () {
- var _a = this.data, max = _a.max, min = _a.min;
- return max - min;
- },
- getOffsetWidth: function (current, min) {
- var scope = this.getScope();
- // 避免最小值小于最小step时出现负数情况
- return "".concat(Math.max(((current - min) * 100) / scope, 0), "%");
- },
- // 计算选中条的长度百分比
- calcMainAxis: function () {
- var value = this.value;
- var min = this.data.min;
- if (this.isRange(value)) {
- return this.getOffsetWidth(value[1], value[0]);
- }
- return this.getOffsetWidth(value, Number(min));
- },
- // 计算选中条的开始位置的偏移量
- calcOffset: function () {
- var value = this.value;
- var min = this.data.min;
- var scope = this.getScope();
- if (this.isRange(value)) {
- return "".concat(((value[0] - Number(min)) * 100) / scope, "%");
- }
- return '0%';
- },
- format: function (value) {
- var min = +this.data.min;
- var max = +this.data.max;
- var step = +this.data.step;
- value = (0, utils_1.clamp)(value, min, max);
- var diff = Math.round((value - min) / step) * step;
- return (0, utils_1.addNumber)(min, diff);
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxml
deleted file mode 100644
index 7c0184f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxml
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxs
deleted file mode 100644
index 7c43e6e..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxs
+++ /dev/null
@@ -1,14 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function barStyle(barHeight, activeColor) {
- return style({
- height: addUnit(barHeight),
- background: activeColor,
- });
-}
-
-module.exports = {
- barStyle: barStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxss
deleted file mode 100644
index d1587de..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/slider/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-slider{background-color:var(--slider-inactive-background-color,#ebedf0);border-radius:999px;height:var(--slider-bar-height,2px);position:relative}.van-slider:before{bottom:calc(var(--padding-xs, 8px)*-1);content:"";left:0;position:absolute;right:0;top:calc(var(--padding-xs, 8px)*-1)}.van-slider__bar{background-color:var(--slider-active-background-color,#1989fa);border-radius:inherit;height:100%;position:relative;transition:all .2s;width:100%}.van-slider__button{background-color:var(--slider-button-background-color,#fff);border-radius:var(--slider-button-border-radius,50%);box-shadow:var(--slider-button-box-shadow,0 1px 2px rgba(0,0,0,.5));height:var(--slider-button-height,24px);width:var(--slider-button-width,24px)}.van-slider__button-wrapper,.van-slider__button-wrapper-right{position:absolute;right:0;top:50%;transform:translate3d(50%,-50%,0)}.van-slider__button-wrapper-left{left:0;position:absolute;top:50%;transform:translate3d(-50%,-50%,0)}.van-slider--disabled{opacity:var(--slider-disabled-opacity,.5)}.van-slider--vertical{display:inline-block;height:100%;width:var(--slider-bar-height,2px)}.van-slider--vertical .van-slider__button-wrapper,.van-slider--vertical .van-slider__button-wrapper-right{bottom:0;right:50%;top:auto;transform:translate3d(50%,50%,0)}.van-slider--vertical .van-slider__button-wrapper-left{left:auto;right:50%;top:0;transform:translate3d(50%,-50%,0)}.van-slider--vertical:before{bottom:0;left:-8px;right:-8px;top:0}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.js
deleted file mode 100644
index 1aa2c27..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.js
+++ /dev/null
@@ -1,203 +0,0 @@
-"use strict";
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var validator_1 = require("../common/validator");
-var LONG_PRESS_START_TIME = 600;
-var LONG_PRESS_INTERVAL = 200;
-// add num and avoid float number
-function add(num1, num2) {
- var cardinal = Math.pow(10, 10);
- return Math.round((num1 + num2) * cardinal) / cardinal;
-}
-function equal(value1, value2) {
- return String(value1) === String(value2);
-}
-(0, component_1.VantComponent)({
- field: true,
- classes: ['input-class', 'plus-class', 'minus-class'],
- props: {
- value: {
- type: null,
- },
- integer: {
- type: Boolean,
- observer: 'check',
- },
- disabled: Boolean,
- inputWidth: String,
- buttonSize: String,
- asyncChange: Boolean,
- disableInput: Boolean,
- decimalLength: {
- type: Number,
- value: null,
- observer: 'check',
- },
- min: {
- type: null,
- value: 1,
- observer: 'check',
- },
- max: {
- type: null,
- value: Number.MAX_SAFE_INTEGER,
- observer: 'check',
- },
- step: {
- type: null,
- value: 1,
- },
- showPlus: {
- type: Boolean,
- value: true,
- },
- showMinus: {
- type: Boolean,
- value: true,
- },
- disablePlus: Boolean,
- disableMinus: Boolean,
- longPress: {
- type: Boolean,
- value: true,
- },
- theme: String,
- alwaysEmbed: Boolean,
- },
- data: {
- currentValue: '',
- },
- watch: {
- value: function () {
- this.observeValue();
- },
- },
- created: function () {
- this.setData({
- currentValue: this.format(this.data.value),
- });
- },
- methods: {
- observeValue: function () {
- var value = this.data.value;
- this.setData({ currentValue: this.format(value) });
- },
- check: function () {
- var val = this.format(this.data.currentValue);
- if (!equal(val, this.data.currentValue)) {
- this.setData({ currentValue: val });
- }
- },
- isDisabled: function (type) {
- var _a = this.data, disabled = _a.disabled, disablePlus = _a.disablePlus, disableMinus = _a.disableMinus, currentValue = _a.currentValue, max = _a.max, min = _a.min;
- if (type === 'plus') {
- return disabled || disablePlus || +currentValue >= +max;
- }
- return disabled || disableMinus || +currentValue <= +min;
- },
- onFocus: function (event) {
- this.$emit('focus', event.detail);
- },
- onBlur: function (event) {
- var value = this.format(event.detail.value);
- this.setData({ currentValue: value });
- this.emitChange(value);
- this.$emit('blur', __assign(__assign({}, event.detail), { value: value }));
- },
- // filter illegal characters
- filter: function (value) {
- value = String(value).replace(/[^0-9.-]/g, '');
- if (this.data.integer && value.indexOf('.') !== -1) {
- value = value.split('.')[0];
- }
- return value;
- },
- // limit value range
- format: function (value) {
- value = this.filter(value);
- // format range
- value = value === '' ? 0 : +value;
- value = Math.max(Math.min(this.data.max, value), this.data.min);
- // format decimal
- if ((0, validator_1.isDef)(this.data.decimalLength)) {
- value = value.toFixed(this.data.decimalLength);
- }
- return value;
- },
- onInput: function (event) {
- var _a = (event.detail || {}).value, value = _a === void 0 ? '' : _a;
- // allow input to be empty
- if (value === '') {
- return;
- }
- var formatted = this.filter(value);
- // limit max decimal length
- if ((0, validator_1.isDef)(this.data.decimalLength) && formatted.indexOf('.') !== -1) {
- var pair = formatted.split('.');
- formatted = "".concat(pair[0], ".").concat(pair[1].slice(0, this.data.decimalLength));
- }
- this.emitChange(formatted);
- },
- emitChange: function (value) {
- if (!this.data.asyncChange) {
- this.setData({ currentValue: value });
- }
- this.$emit('change', value);
- },
- onChange: function () {
- var type = this.type;
- if (this.isDisabled(type)) {
- this.$emit('overlimit', type);
- return;
- }
- var diff = type === 'minus' ? -this.data.step : +this.data.step;
- var value = this.format(add(+this.data.currentValue, diff));
- this.emitChange(value);
- this.$emit(type);
- },
- longPressStep: function () {
- var _this = this;
- this.longPressTimer = setTimeout(function () {
- _this.onChange();
- _this.longPressStep();
- }, LONG_PRESS_INTERVAL);
- },
- onTap: function (event) {
- var type = event.currentTarget.dataset.type;
- this.type = type;
- this.onChange();
- },
- onTouchStart: function (event) {
- var _this = this;
- if (!this.data.longPress) {
- return;
- }
- clearTimeout(this.longPressTimer);
- var type = event.currentTarget.dataset.type;
- this.type = type;
- this.isLongPress = false;
- this.longPressTimer = setTimeout(function () {
- _this.isLongPress = true;
- _this.onChange();
- _this.longPressStep();
- }, LONG_PRESS_START_TIME);
- },
- onTouchEnd: function () {
- if (!this.data.longPress) {
- return;
- }
- clearTimeout(this.longPressTimer);
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxml
deleted file mode 100644
index 6dd44bc..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxml
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxs
deleted file mode 100644
index a13e818..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxs
+++ /dev/null
@@ -1,22 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function buttonStyle(data) {
- return style({
- width: addUnit(data.buttonSize),
- height: addUnit(data.buttonSize),
- });
-}
-
-function inputStyle(data) {
- return style({
- width: addUnit(data.inputWidth),
- height: addUnit(data.buttonSize),
- });
-}
-
-module.exports = {
- buttonStyle: buttonStyle,
- inputStyle: inputStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxss
deleted file mode 100644
index 2561a7e..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/stepper/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-stepper{font-size:0}.van-stepper__minus,.van-stepper__plus{background-color:var(--stepper-background-color,#f2f3f5);border:0;box-sizing:border-box;color:var(--stepper-button-icon-color,#323233);display:inline-block;height:var(--stepper-input-height,28px);margin:1px;padding:var(--padding-base,4px);position:relative;vertical-align:middle;width:var(--stepper-input-height,28px)}.van-stepper__minus:before,.van-stepper__plus:before{height:1px;width:9px}.van-stepper__minus:after,.van-stepper__plus:after{height:9px;width:1px}.van-stepper__minus:empty.van-stepper__minus:after,.van-stepper__minus:empty.van-stepper__minus:before,.van-stepper__minus:empty.van-stepper__plus:after,.van-stepper__minus:empty.van-stepper__plus:before,.van-stepper__plus:empty.van-stepper__minus:after,.van-stepper__plus:empty.van-stepper__minus:before,.van-stepper__plus:empty.van-stepper__plus:after,.van-stepper__plus:empty.van-stepper__plus:before{background-color:currentColor;bottom:0;content:"";left:0;margin:auto;position:absolute;right:0;top:0}.van-stepper__minus--hover,.van-stepper__plus--hover{background-color:var(--stepper-active-color,#e8e8e8)}.van-stepper__minus--disabled,.van-stepper__plus--disabled{color:var(--stepper-button-disabled-icon-color,#c8c9cc)}.van-stepper__minus--disabled,.van-stepper__minus--disabled.van-stepper__minus--hover,.van-stepper__minus--disabled.van-stepper__plus--hover,.van-stepper__plus--disabled,.van-stepper__plus--disabled.van-stepper__minus--hover,.van-stepper__plus--disabled.van-stepper__plus--hover{background-color:var(--stepper-button-disabled-color,#f7f8fa)}.van-stepper__minus{border-radius:var(--stepper-border-radius,var(--stepper-border-radius,4px)) 0 0 var(--stepper-border-radius,var(--stepper-border-radius,4px))}.van-stepper__minus:after{display:none}.van-stepper__plus{border-radius:0 var(--stepper-border-radius,var(--stepper-border-radius,4px)) var(--stepper-border-radius,var(--stepper-border-radius,4px)) 0}.van-stepper--round .van-stepper__input{background-color:initial!important}.van-stepper--round .van-stepper__minus,.van-stepper--round .van-stepper__plus{border-radius:100%}.van-stepper--round .van-stepper__minus:active,.van-stepper--round .van-stepper__plus:active{opacity:.7}.van-stepper--round .van-stepper__minus--disabled,.van-stepper--round .van-stepper__minus--disabled:active,.van-stepper--round .van-stepper__plus--disabled,.van-stepper--round .van-stepper__plus--disabled:active{opacity:.3}.van-stepper--round .van-stepper__plus{background-color:#ee0a24;color:#fff}.van-stepper--round .van-stepper__minus{background-color:#fff;border:1px solid #ee0a24;color:#ee0a24}.van-stepper__input{-webkit-appearance:none;background-color:var(--stepper-background-color,#f2f3f5);border:0;border-radius:0;border-width:1px 0;box-sizing:border-box;color:var(--stepper-input-text-color,#323233);display:inline-block;font-size:var(--stepper-input-font-size,14px);height:var(--stepper-input-height,28px);margin:1px;min-height:0;padding:1px;text-align:center;vertical-align:middle;width:var(--stepper-input-width,32px)}.van-stepper__input--disabled{background-color:var(--stepper-input-disabled-background-color,#f2f3f5);color:var(--stepper-input-disabled-text-color,#c8c9cc)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.js
deleted file mode 100644
index 1a9986a..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.js
+++ /dev/null
@@ -1,35 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var color_1 = require("../common/color");
-(0, component_1.VantComponent)({
- classes: ['desc-class'],
- props: {
- icon: String,
- steps: Array,
- active: Number,
- direction: {
- type: String,
- value: 'horizontal',
- },
- activeColor: {
- type: String,
- value: color_1.GREEN,
- },
- inactiveColor: {
- type: String,
- value: color_1.GRAY_DARK,
- },
- activeIcon: {
- type: String,
- value: 'checked',
- },
- inactiveIcon: String,
- },
- methods: {
- onClick: function (event) {
- var index = event.currentTarget.dataset.index;
- this.$emit('click-step', index);
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.json
deleted file mode 100644
index 0a336c0..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.wxml
deleted file mode 100644
index 00c8e10..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.wxml
+++ /dev/null
@@ -1,54 +0,0 @@
-
-
-
-
-
-
- {{ item.text }}
- {{ item.desc }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-function get(index, active) {
- if (index < active) {
- return 'finish';
- } else if (index === active) {
- return 'process';
- }
-
- return 'inactive';
-}
-
-module.exports = get;
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.wxss
deleted file mode 100644
index c653884..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/steps/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-steps{background-color:var(--steps-background-color,#fff);overflow:hidden}.van-steps--horizontal{padding:10px}.van-steps--horizontal .van-step__wrapper{display:flex;overflow:hidden;position:relative}.van-steps--vertical{padding-left:10px}.van-steps--vertical .van-step__wrapper{padding:0 0 0 20px}.van-step{color:var(--step-text-color,#969799);flex:1;font-size:var(--step-font-size,14px);position:relative}.van-step--finish{color:var(--step-finish-text-color,#323233)}.van-step__circle{background-color:var(--step-circle-color,#969799);border-radius:50%;height:var(--step-circle-size,5px);width:var(--step-circle-size,5px)}.van-step--horizontal{padding-bottom:14px}.van-step--horizontal:first-child .van-step__title{transform:none}.van-step--horizontal:first-child .van-step__circle-container{padding:0 8px 0 0;transform:translate3d(0,50%,0)}.van-step--horizontal:last-child{position:absolute;right:0;width:auto}.van-step--horizontal:last-child .van-step__title{text-align:right;transform:none}.van-step--horizontal:last-child .van-step__circle-container{padding:0 0 0 8px;right:0;transform:translate3d(0,50%,0)}.van-step--horizontal .van-step__circle-container{background-color:#fff;bottom:6px;padding:0 var(--padding-xs,8px);position:absolute;transform:translate3d(-50%,50%,0);z-index:1}.van-step--horizontal .van-step__title{display:inline-block;font-size:var(--step-horizontal-title-font-size,12px);transform:translate3d(-50%,0,0)}.van-step--horizontal .van-step__line{background-color:var(--step-line-color,#ebedf0);bottom:6px;height:1px;left:0;position:absolute;right:0;transform:translate3d(0,50%,0)}.van-step--horizontal.van-step--process{color:var(--step-process-text-color,#323233)}.van-step--horizontal.van-step--process .van-step__icon{display:block;font-size:var(--step-icon-size,12px);line-height:1}.van-step--vertical{line-height:18px;padding:10px 10px 10px 0}.van-step--vertical:after{border-bottom-width:1px}.van-step--vertical:last-child:after{border-bottom-width:none}.van-step--vertical:first-child:before{background-color:#fff;content:"";height:20px;left:-15px;position:absolute;top:0;width:1px;z-index:1}.van-step--vertical .van-step__circle,.van-step--vertical .van-step__icon,.van-step--vertical .van-step__line{left:-14px;position:absolute;top:19px;transform:translate3d(-50%,-50%,0);z-index:2}.van-step--vertical .van-step__icon{background-color:var(--steps-background-color,#fff);font-size:var(--step-icon-size,12px);line-height:1}.van-step--vertical .van-step__line{background-color:var(--step-line-color,#ebedf0);height:100%;transform:translate3d(-50%,0,0);width:1px;z-index:1}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.js
deleted file mode 100644
index ffeb125..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.js
+++ /dev/null
@@ -1,126 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var utils_1 = require("../common/utils");
-var component_1 = require("../common/component");
-var validator_1 = require("../common/validator");
-var page_scroll_1 = require("../mixins/page-scroll");
-var ROOT_ELEMENT = '.van-sticky';
-(0, component_1.VantComponent)({
- props: {
- zIndex: {
- type: Number,
- value: 99,
- },
- offsetTop: {
- type: Number,
- value: 0,
- observer: 'onScroll',
- },
- disabled: {
- type: Boolean,
- observer: 'onScroll',
- },
- container: {
- type: null,
- observer: 'onScroll',
- },
- scrollTop: {
- type: null,
- observer: function (val) {
- this.onScroll({ scrollTop: val });
- },
- },
- },
- mixins: [
- (0, page_scroll_1.pageScrollMixin)(function (event) {
- if (this.data.scrollTop != null) {
- return;
- }
- this.onScroll(event);
- }),
- ],
- data: {
- height: 0,
- fixed: false,
- transform: 0,
- },
- mounted: function () {
- this.onScroll();
- },
- methods: {
- onScroll: function (_a) {
- var _this = this;
- var _b = _a === void 0 ? {} : _a, scrollTop = _b.scrollTop;
- var _c = this.data, container = _c.container, offsetTop = _c.offsetTop, disabled = _c.disabled;
- if (disabled) {
- this.setDataAfterDiff({
- fixed: false,
- transform: 0,
- });
- return;
- }
- this.scrollTop = scrollTop || this.scrollTop;
- if (typeof container === 'function') {
- Promise.all([(0, utils_1.getRect)(this, ROOT_ELEMENT), this.getContainerRect()])
- .then(function (_a) {
- var root = _a[0], container = _a[1];
- if (offsetTop + root.height > container.height + container.top) {
- _this.setDataAfterDiff({
- fixed: false,
- transform: container.height - root.height,
- });
- }
- else if (offsetTop >= root.top) {
- _this.setDataAfterDiff({
- fixed: true,
- height: root.height,
- transform: 0,
- });
- }
- else {
- _this.setDataAfterDiff({ fixed: false, transform: 0 });
- }
- })
- .catch(function () { });
- return;
- }
- (0, utils_1.getRect)(this, ROOT_ELEMENT).then(function (root) {
- if (!(0, validator_1.isDef)(root) || (!root.width && !root.height)) {
- return;
- }
- if (offsetTop >= root.top) {
- _this.setDataAfterDiff({ fixed: true, height: root.height });
- _this.transform = 0;
- }
- else {
- _this.setDataAfterDiff({ fixed: false });
- }
- });
- },
- setDataAfterDiff: function (data) {
- var _this = this;
- wx.nextTick(function () {
- var diff = Object.keys(data).reduce(function (prev, key) {
- if (data[key] !== _this.data[key]) {
- prev[key] = data[key];
- }
- return prev;
- }, {});
- if (Object.keys(diff).length > 0) {
- _this.setData(diff);
- }
- _this.$emit('scroll', {
- scrollTop: _this.scrollTop,
- isFixed: data.fixed || _this.data.fixed,
- });
- });
- },
- getContainerRect: function () {
- var nodesRef = this.data.container();
- if (!nodesRef) {
- return Promise.reject(new Error('not found container'));
- }
- return new Promise(function (resolve) { return nodesRef.boundingClientRect(resolve).exec(); });
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxml
deleted file mode 100644
index 15e9f4a..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxs
deleted file mode 100644
index be99d89..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxs
+++ /dev/null
@@ -1,25 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function wrapStyle(data) {
- return style({
- transform: data.transform
- ? 'translate3d(0, ' + data.transform + 'px, 0)'
- : '',
- top: data.fixed ? addUnit(data.offsetTop) : '',
- 'z-index': data.zIndex,
- });
-}
-
-function containerStyle(data) {
- return style({
- height: data.fixed ? addUnit(data.height) : '',
- 'z-index': data.zIndex,
- });
-}
-
-module.exports = {
- wrapStyle: wrapStyle,
- containerStyle: containerStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxss
deleted file mode 100644
index 34d76aa..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/sticky/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-sticky{position:relative}.van-sticky-wrap--fixed{left:0;position:fixed;right:0}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.js
deleted file mode 100644
index d3bfc25..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.js
+++ /dev/null
@@ -1,58 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- classes: ['bar-class', 'price-class', 'button-class'],
- props: {
- tip: {
- type: null,
- observer: 'updateTip',
- },
- tipIcon: String,
- type: Number,
- price: {
- type: null,
- observer: 'updatePrice',
- },
- label: String,
- loading: Boolean,
- disabled: Boolean,
- buttonText: String,
- currency: {
- type: String,
- value: '¥',
- },
- buttonType: {
- type: String,
- value: 'danger',
- },
- decimalLength: {
- type: Number,
- value: 2,
- observer: 'updatePrice',
- },
- suffixLabel: String,
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- },
- methods: {
- updatePrice: function () {
- var _a = this.data, price = _a.price, decimalLength = _a.decimalLength;
- var priceStrArr = typeof price === 'number' &&
- (price / 100).toFixed(decimalLength).split('.');
- this.setData({
- hasPrice: typeof price === 'number',
- integerStr: priceStrArr && priceStrArr[0],
- decimalStr: decimalLength && priceStrArr ? ".".concat(priceStrArr[1]) : '',
- });
- },
- updateTip: function () {
- this.setData({ hasTip: typeof this.data.tip === 'string' });
- },
- onSubmit: function (event) {
- this.$emit('submit', event.detail);
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.json
deleted file mode 100644
index bda9b8d..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-button": "../button/index",
- "van-icon": "../icon/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.wxml
deleted file mode 100644
index a56dd46..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.wxml
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
-
-
-
-
-
- {{ tip }}
-
-
-
-
-
-
-
- {{ label || '合计:' }}
-
- {{ currency }}
- {{ integerStr }}{{decimalStr}}
-
- {{ suffixLabel }}
-
-
- {{ loading ? '' : buttonText }}
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.wxss
deleted file mode 100644
index 8379a30..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/submit-bar/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-submit-bar{background-color:var(--submit-bar-background-color,#fff);bottom:0;left:0;position:fixed;-webkit-user-select:none;user-select:none;width:100%;z-index:var(--submit-bar-z-index,100)}.van-submit-bar__tip{background-color:var(--submit-bar-tip-background-color,#fff7cc);color:var(--submit-bar-tip-color,#f56723);font-size:var(--submit-bar-tip-font-size,12px);line-height:var(--submit-bar-tip-line-height,1.5);padding:var(--submit-bar-tip-padding,10px)}.van-submit-bar__tip:empty{display:none}.van-submit-bar__tip-icon{margin-right:4px;vertical-align:middle}.van-submit-bar__tip-text{display:inline;vertical-align:middle}.van-submit-bar__bar{align-items:center;background-color:var(--submit-bar-background-color,#fff);display:flex;font-size:var(--submit-bar-text-font-size,14px);height:var(--submit-bar-height,50px);justify-content:flex-end;padding:var(--submit-bar-padding,0 16px)}.van-submit-bar__safe{height:constant(safe-area-inset-bottom);height:env(safe-area-inset-bottom)}.van-submit-bar__text{color:var(--submit-bar-text-color,#323233);flex:1;font-weight:var(--font-weight-bold,500);padding-right:var(--padding-sm,12px);text-align:right}.van-submit-bar__price{color:var(--submit-bar-price-color,#ee0a24);font-size:var(--submit-bar-price-font-size,12px);font-weight:var(--font-weight-bold,500)}.van-submit-bar__price-integer{font-family:Avenir-Heavy,PingFang SC,Helvetica Neue,Arial,sans-serif;font-size:20px}.van-submit-bar__currency{font-size:var(--submit-bar-currency-font-size,12px)}.van-submit-bar__suffix-label{margin-left:5px}.van-submit-bar__button{--button-default-height:var(--submit-bar-button-height,40px)!important;--button-line-height:var(--submit-bar-button-height,40px)!important;font-weight:var(--font-weight-bold,500);width:var(--submit-bar-button-width,110px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.js
deleted file mode 100644
index 1582b6c..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.js
+++ /dev/null
@@ -1,135 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var touch_1 = require("../mixins/touch");
-var utils_1 = require("../common/utils");
-var THRESHOLD = 0.3;
-var ARRAY = [];
-(0, component_1.VantComponent)({
- props: {
- disabled: Boolean,
- leftWidth: {
- type: Number,
- value: 0,
- observer: function (leftWidth) {
- if (leftWidth === void 0) { leftWidth = 0; }
- if (this.offset > 0) {
- this.swipeMove(leftWidth);
- }
- },
- },
- rightWidth: {
- type: Number,
- value: 0,
- observer: function (rightWidth) {
- if (rightWidth === void 0) { rightWidth = 0; }
- if (this.offset < 0) {
- this.swipeMove(-rightWidth);
- }
- },
- },
- asyncClose: Boolean,
- name: {
- type: null,
- value: '',
- },
- },
- mixins: [touch_1.touch],
- data: {
- catchMove: false,
- wrapperStyle: '',
- },
- created: function () {
- this.offset = 0;
- ARRAY.push(this);
- },
- destroyed: function () {
- var _this = this;
- ARRAY = ARRAY.filter(function (item) { return item !== _this; });
- },
- methods: {
- open: function (position) {
- var _a = this.data, leftWidth = _a.leftWidth, rightWidth = _a.rightWidth;
- var offset = position === 'left' ? leftWidth : -rightWidth;
- this.swipeMove(offset);
- this.$emit('open', {
- position: position,
- name: this.data.name,
- });
- },
- close: function () {
- this.swipeMove(0);
- },
- swipeMove: function (offset) {
- if (offset === void 0) { offset = 0; }
- this.offset = (0, utils_1.range)(offset, -this.data.rightWidth, this.data.leftWidth);
- var transform = "translate3d(".concat(this.offset, "px, 0, 0)");
- var transition = this.dragging
- ? 'none'
- : 'transform .6s cubic-bezier(0.18, 0.89, 0.32, 1)';
- this.setData({
- wrapperStyle: "\n -webkit-transform: ".concat(transform, ";\n -webkit-transition: ").concat(transition, ";\n transform: ").concat(transform, ";\n transition: ").concat(transition, ";\n "),
- });
- },
- swipeLeaveTransition: function () {
- var _a = this.data, leftWidth = _a.leftWidth, rightWidth = _a.rightWidth;
- var offset = this.offset;
- if (rightWidth > 0 && -offset > rightWidth * THRESHOLD) {
- this.open('right');
- }
- else if (leftWidth > 0 && offset > leftWidth * THRESHOLD) {
- this.open('left');
- }
- else {
- this.swipeMove(0);
- }
- this.setData({ catchMove: false });
- },
- startDrag: function (event) {
- if (this.data.disabled) {
- return;
- }
- this.startOffset = this.offset;
- this.touchStart(event);
- },
- noop: function () { },
- onDrag: function (event) {
- var _this = this;
- if (this.data.disabled) {
- return;
- }
- this.touchMove(event);
- if (this.direction !== 'horizontal') {
- return;
- }
- this.dragging = true;
- ARRAY.filter(function (item) { return item !== _this && item.offset !== 0; }).forEach(function (item) { return item.close(); });
- this.setData({ catchMove: true });
- this.swipeMove(this.startOffset + this.deltaX);
- },
- endDrag: function () {
- if (this.data.disabled) {
- return;
- }
- this.dragging = false;
- this.swipeLeaveTransition();
- },
- onClick: function (event) {
- var _a = event.currentTarget.dataset.key, position = _a === void 0 ? 'outside' : _a;
- this.$emit('click', position);
- if (!this.offset) {
- return;
- }
- if (this.data.asyncClose) {
- this.$emit('close', {
- position: position,
- instance: this,
- name: this.data.name,
- });
- }
- else {
- this.swipeMove(0);
- }
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.wxml
deleted file mode 100644
index 3f7f726..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.wxml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.wxss
deleted file mode 100644
index 3a265bf..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/swipe-cell/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-swipe-cell{overflow:hidden;position:relative}.van-swipe-cell__left,.van-swipe-cell__right{height:100%;position:absolute;top:0}.van-swipe-cell__left{left:0;transform:translate3d(-100%,0,0)}.van-swipe-cell__right{right:0;transform:translate3d(100%,0,0)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.js
deleted file mode 100644
index 1d2317f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.js
+++ /dev/null
@@ -1,38 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- field: true,
- classes: ['node-class'],
- props: {
- checked: null,
- loading: Boolean,
- disabled: Boolean,
- activeColor: String,
- inactiveColor: String,
- size: {
- type: String,
- value: '30',
- },
- activeValue: {
- type: null,
- value: true,
- },
- inactiveValue: {
- type: null,
- value: false,
- },
- },
- methods: {
- onClick: function () {
- var _a = this.data, activeValue = _a.activeValue, inactiveValue = _a.inactiveValue, disabled = _a.disabled, loading = _a.loading;
- if (disabled || loading) {
- return;
- }
- var checked = this.data.checked === activeValue;
- var value = checked ? inactiveValue : activeValue;
- this.$emit('input', value);
- this.$emit('change', value);
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.json
deleted file mode 100644
index 01077f5..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-loading": "../loading/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxml
deleted file mode 100644
index 4e9789b..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxs
deleted file mode 100644
index 3ae387a..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxs
+++ /dev/null
@@ -1,26 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
- var currentColor = data.checked === data.activeValue ? data.activeColor : data.inactiveColor;
-
- return style({
- 'font-size': addUnit(data.size),
- 'background-color': currentColor,
- });
-}
-
-var BLUE = '#1989fa';
-var GRAY_DARK = '#969799';
-
-function loadingColor(data) {
- return data.checked === data.activeValue
- ? data.activeColor || BLUE
- : data.inactiveColor || GRAY_DARK;
-}
-
-module.exports = {
- rootStyle: rootStyle,
- loadingColor: loadingColor,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxss
deleted file mode 100644
index 35929de..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/switch/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-switch{background-color:var(--switch-background-color,#fff);border:var(--switch-border,1px solid rgba(0,0,0,.1));border-radius:var(--switch-node-size,1em);box-sizing:initial;display:inline-block;height:var(--switch-height,1em);position:relative;transition:background-color var(--switch-transition-duration,.3s);width:var(--switch-width,2em)}.van-switch__node{background-color:var(--switch-node-background-color,#fff);border-radius:100%;box-shadow:var(--switch-node-box-shadow,0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05));height:var(--switch-node-size,1em);left:0;position:absolute;top:0;transition:var(--switch-transition-duration,.3s) cubic-bezier(.3,1.05,.4,1.05);width:var(--switch-node-size,1em);z-index:var(--switch-node-z-index,1)}.van-switch__loading{height:50%;left:25%;position:absolute!important;top:25%;width:50%}.van-switch--on{background-color:var(--switch-on-background-color,#1989fa)}.van-switch--on .van-switch__node{transform:translateX(calc(var(--switch-width, 2em) - var(--switch-node-size, 1em)))}.van-switch--disabled{opacity:var(--switch-disabled-opacity,.4)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.js
deleted file mode 100644
index ae4d06b..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.js
+++ /dev/null
@@ -1,58 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var relation_1 = require("../common/relation");
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- relation: (0, relation_1.useParent)('tabs'),
- props: {
- dot: {
- type: Boolean,
- observer: 'update',
- },
- info: {
- type: null,
- observer: 'update',
- },
- title: {
- type: String,
- observer: 'update',
- },
- disabled: {
- type: Boolean,
- observer: 'update',
- },
- titleStyle: {
- type: String,
- observer: 'update',
- },
- name: {
- type: null,
- value: '',
- },
- },
- data: {
- active: false,
- },
- methods: {
- getComputedName: function () {
- if (this.data.name !== '') {
- return this.data.name;
- }
- return this.index;
- },
- updateRender: function (active, parent) {
- var parentData = parent.data;
- this.inited = this.inited || active;
- this.setData({
- active: active,
- shouldRender: this.inited || !parentData.lazyRender,
- shouldShow: active || parentData.animated,
- });
- },
- update: function () {
- if (this.parent) {
- this.parent.updateTabs();
- }
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.wxml
deleted file mode 100644
index f5e99f2..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.wxml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.wxss
deleted file mode 100644
index 1c90c88..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tab/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';:host{box-sizing:border-box;flex-shrink:0;width:100%}.van-tab__pane{-webkit-overflow-scrolling:touch;box-sizing:border-box;overflow-y:auto}.van-tab__pane--active{height:auto}.van-tab__pane--inactive{height:0;overflow:visible}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.js
deleted file mode 100644
index 58a5065..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.js
+++ /dev/null
@@ -1,70 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var relation_1 = require("../common/relation");
-(0, component_1.VantComponent)({
- props: {
- info: null,
- name: null,
- icon: String,
- dot: Boolean,
- url: {
- type: String,
- value: '',
- },
- linkType: {
- type: String,
- value: 'redirectTo',
- },
- iconPrefix: {
- type: String,
- value: 'van-icon',
- },
- },
- relation: (0, relation_1.useParent)('tabbar'),
- data: {
- active: false,
- activeColor: '',
- inactiveColor: '',
- },
- methods: {
- onClick: function () {
- var parent = this.parent;
- if (parent) {
- var index = parent.children.indexOf(this);
- var active = this.data.name || index;
- if (active !== this.data.active) {
- parent.$emit('change', active);
- }
- }
- var _a = this.data, url = _a.url, linkType = _a.linkType;
- if (url && wx[linkType]) {
- return wx[linkType]({ url: url });
- }
- this.$emit('click');
- },
- updateFromParent: function () {
- var parent = this.parent;
- if (!parent) {
- return;
- }
- var index = parent.children.indexOf(this);
- var parentData = parent.data;
- var data = this.data;
- var active = (data.name || index) === parentData.active;
- var patch = {};
- if (active !== data.active) {
- patch.active = active;
- }
- if (parentData.activeColor !== data.activeColor) {
- patch.activeColor = parentData.activeColor;
- }
- if (parentData.inactiveColor !== data.inactiveColor) {
- patch.inactiveColor = parentData.inactiveColor;
- }
- if (Object.keys(patch).length > 0) {
- this.setData(patch);
- }
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.json
deleted file mode 100644
index 16f174c..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index",
- "van-info": "../info/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.wxml
deleted file mode 100644
index 524728f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.wxml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.wxss
deleted file mode 100644
index 21ee224..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar-item/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';:host{flex:1}.van-tabbar-item{align-items:center;color:var(--tabbar-item-text-color,#646566);display:flex;flex-direction:column;font-size:var(--tabbar-item-font-size,12px);height:100%;justify-content:center;line-height:var(--tabbar-item-line-height,1)}.van-tabbar-item__icon{font-size:var(--tabbar-item-icon-size,22px);margin-bottom:var(--tabbar-item-margin-bottom,4px);position:relative}.van-tabbar-item__icon__inner{display:block;min-width:1em}.van-tabbar-item--active{color:var(--tabbar-item-active-color,#1989fa)}.van-tabbar-item__info{margin-top:2px}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.js
deleted file mode 100644
index 3db793d..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.js
+++ /dev/null
@@ -1,68 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var relation_1 = require("../common/relation");
-var utils_1 = require("../common/utils");
-(0, component_1.VantComponent)({
- relation: (0, relation_1.useChildren)('tabbar-item', function () {
- this.updateChildren();
- }),
- props: {
- active: {
- type: null,
- observer: 'updateChildren',
- },
- activeColor: {
- type: String,
- observer: 'updateChildren',
- },
- inactiveColor: {
- type: String,
- observer: 'updateChildren',
- },
- fixed: {
- type: Boolean,
- value: true,
- observer: 'setHeight',
- },
- placeholder: {
- type: Boolean,
- observer: 'setHeight',
- },
- border: {
- type: Boolean,
- value: true,
- },
- zIndex: {
- type: Number,
- value: 1,
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- height: 50,
- },
- methods: {
- updateChildren: function () {
- var children = this.children;
- if (!Array.isArray(children) || !children.length) {
- return;
- }
- children.forEach(function (child) { return child.updateFromParent(); });
- },
- setHeight: function () {
- var _this = this;
- if (!this.data.fixed || !this.data.placeholder) {
- return;
- }
- wx.nextTick(function () {
- (0, utils_1.getRect)(_this, '.van-tabbar').then(function (res) {
- _this.setData({ height: res.height });
- });
- });
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.wxml
deleted file mode 100644
index 43bb111..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.wxml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.wxss
deleted file mode 100644
index 42b6c1e..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabbar/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-tabbar{background-color:var(--tabbar-background-color,#fff);box-sizing:initial;display:flex;height:var(--tabbar-height,50px);width:100%}.van-tabbar--fixed{bottom:0;left:0;position:fixed}.van-tabbar--safe{padding-bottom:env(safe-area-inset-bottom)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.js
deleted file mode 100644
index 3121957..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.js
+++ /dev/null
@@ -1,327 +0,0 @@
-"use strict";
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var touch_1 = require("../mixins/touch");
-var utils_1 = require("../common/utils");
-var validator_1 = require("../common/validator");
-var relation_1 = require("../common/relation");
-(0, component_1.VantComponent)({
- mixins: [touch_1.touch],
- classes: [
- 'nav-class',
- 'tab-class',
- 'tab-active-class',
- 'line-class',
- 'wrap-class',
- ],
- relation: (0, relation_1.useChildren)('tab', function () {
- this.updateTabs();
- }),
- props: {
- sticky: Boolean,
- border: Boolean,
- swipeable: Boolean,
- titleActiveColor: String,
- titleInactiveColor: String,
- color: String,
- animated: {
- type: Boolean,
- observer: function () {
- var _this = this;
- this.children.forEach(function (child, index) {
- return child.updateRender(index === _this.data.currentIndex, _this);
- });
- },
- },
- lineWidth: {
- type: null,
- value: 40,
- observer: 'resize',
- },
- lineHeight: {
- type: null,
- value: -1,
- },
- active: {
- type: null,
- value: 0,
- observer: function (name) {
- if (name !== this.getCurrentName()) {
- this.setCurrentIndexByName(name);
- }
- },
- },
- type: {
- type: String,
- value: 'line',
- },
- ellipsis: {
- type: Boolean,
- value: true,
- },
- duration: {
- type: Number,
- value: 0.3,
- },
- zIndex: {
- type: Number,
- value: 1,
- },
- swipeThreshold: {
- type: Number,
- value: 5,
- observer: function (value) {
- this.setData({
- scrollable: this.children.length > value || !this.data.ellipsis,
- });
- },
- },
- offsetTop: {
- type: Number,
- value: 0,
- },
- lazyRender: {
- type: Boolean,
- value: true,
- },
- useBeforeChange: {
- type: Boolean,
- value: false,
- },
- },
- data: {
- tabs: [],
- scrollLeft: 0,
- scrollable: false,
- currentIndex: 0,
- container: null,
- skipTransition: true,
- scrollWithAnimation: false,
- lineOffsetLeft: 0,
- inited: false,
- },
- mounted: function () {
- var _this = this;
- (0, utils_1.requestAnimationFrame)(function () {
- _this.swiping = true;
- _this.setData({
- container: function () { return _this.createSelectorQuery().select('.van-tabs'); },
- });
- _this.resize();
- _this.scrollIntoView();
- });
- },
- methods: {
- updateTabs: function () {
- var _a = this, _b = _a.children, children = _b === void 0 ? [] : _b, data = _a.data;
- this.setData({
- tabs: children.map(function (child) { return child.data; }),
- scrollable: this.children.length > data.swipeThreshold || !data.ellipsis,
- });
- this.setCurrentIndexByName(data.active || this.getCurrentName());
- },
- trigger: function (eventName, child) {
- var currentIndex = this.data.currentIndex;
- var data = this.getChildData(currentIndex, child);
- if (!(0, validator_1.isDef)(data)) {
- return;
- }
- this.$emit(eventName, data);
- },
- onTap: function (event) {
- var _this = this;
- var index = event.currentTarget.dataset.index;
- var child = this.children[index];
- if (child.data.disabled) {
- this.trigger('disabled', child);
- return;
- }
- this.onBeforeChange(index).then(function () {
- _this.setCurrentIndex(index);
- (0, utils_1.nextTick)(function () {
- _this.trigger('click');
- });
- });
- },
- // correct the index of active tab
- setCurrentIndexByName: function (name) {
- var _a = this.children, children = _a === void 0 ? [] : _a;
- var matched = children.filter(function (child) { return child.getComputedName() === name; });
- if (matched.length) {
- this.setCurrentIndex(matched[0].index);
- }
- },
- setCurrentIndex: function (currentIndex) {
- var _this = this;
- var _a = this, data = _a.data, _b = _a.children, children = _b === void 0 ? [] : _b;
- if (!(0, validator_1.isDef)(currentIndex) ||
- currentIndex >= children.length ||
- currentIndex < 0) {
- return;
- }
- (0, utils_1.groupSetData)(this, function () {
- children.forEach(function (item, index) {
- var active = index === currentIndex;
- if (active !== item.data.active || !item.inited) {
- item.updateRender(active, _this);
- }
- });
- });
- if (currentIndex === data.currentIndex) {
- if (!data.inited) {
- this.resize();
- }
- return;
- }
- var shouldEmitChange = data.currentIndex !== null;
- this.setData({ currentIndex: currentIndex });
- (0, utils_1.requestAnimationFrame)(function () {
- _this.resize();
- _this.scrollIntoView();
- });
- (0, utils_1.nextTick)(function () {
- _this.trigger('input');
- if (shouldEmitChange) {
- _this.trigger('change');
- }
- });
- },
- getCurrentName: function () {
- var activeTab = this.children[this.data.currentIndex];
- if (activeTab) {
- return activeTab.getComputedName();
- }
- },
- resize: function () {
- var _this = this;
- if (this.data.type !== 'line') {
- return;
- }
- var _a = this.data, currentIndex = _a.currentIndex, ellipsis = _a.ellipsis, skipTransition = _a.skipTransition;
- Promise.all([
- (0, utils_1.getAllRect)(this, '.van-tab'),
- (0, utils_1.getRect)(this, '.van-tabs__line'),
- ]).then(function (_a) {
- var _b = _a[0], rects = _b === void 0 ? [] : _b, lineRect = _a[1];
- var rect = rects[currentIndex];
- if (rect == null) {
- return;
- }
- var lineOffsetLeft = rects
- .slice(0, currentIndex)
- .reduce(function (prev, curr) { return prev + curr.width; }, 0);
- lineOffsetLeft +=
- (rect.width - lineRect.width) / 2 + (ellipsis ? 0 : 8);
- _this.setData({ lineOffsetLeft: lineOffsetLeft, inited: true });
- _this.swiping = true;
- if (skipTransition) {
- // waiting transition end
- setTimeout(function () {
- _this.setData({ skipTransition: false });
- }, _this.data.duration);
- }
- });
- },
- // scroll active tab into view
- scrollIntoView: function () {
- var _this = this;
- var _a = this.data, currentIndex = _a.currentIndex, scrollable = _a.scrollable, scrollWithAnimation = _a.scrollWithAnimation;
- if (!scrollable) {
- return;
- }
- Promise.all([
- (0, utils_1.getAllRect)(this, '.van-tab'),
- (0, utils_1.getRect)(this, '.van-tabs__nav'),
- ]).then(function (_a) {
- var tabRects = _a[0], navRect = _a[1];
- var tabRect = tabRects[currentIndex];
- var offsetLeft = tabRects
- .slice(0, currentIndex)
- .reduce(function (prev, curr) { return prev + curr.width; }, 0);
- _this.setData({
- scrollLeft: offsetLeft - (navRect.width - tabRect.width) / 2,
- });
- if (!scrollWithAnimation) {
- (0, utils_1.nextTick)(function () {
- _this.setData({ scrollWithAnimation: true });
- });
- }
- });
- },
- onTouchScroll: function (event) {
- this.$emit('scroll', event.detail);
- },
- onTouchStart: function (event) {
- if (!this.data.swipeable)
- return;
- this.swiping = true;
- this.touchStart(event);
- },
- onTouchMove: function (event) {
- if (!this.data.swipeable || !this.swiping)
- return;
- this.touchMove(event);
- },
- // watch swipe touch end
- onTouchEnd: function () {
- var _this = this;
- if (!this.data.swipeable || !this.swiping)
- return;
- var _a = this, direction = _a.direction, deltaX = _a.deltaX, offsetX = _a.offsetX;
- var minSwipeDistance = 50;
- if (direction === 'horizontal' && offsetX >= minSwipeDistance) {
- var index_1 = this.getAvaiableTab(deltaX);
- if (index_1 !== -1) {
- this.onBeforeChange(index_1).then(function () { return _this.setCurrentIndex(index_1); });
- }
- }
- this.swiping = false;
- },
- getAvaiableTab: function (direction) {
- var _a = this.data, tabs = _a.tabs, currentIndex = _a.currentIndex;
- var step = direction > 0 ? -1 : 1;
- for (var i = step; currentIndex + i < tabs.length && currentIndex + i >= 0; i += step) {
- var index = currentIndex + i;
- if (index >= 0 &&
- index < tabs.length &&
- tabs[index] &&
- !tabs[index].disabled) {
- return index;
- }
- }
- return -1;
- },
- onBeforeChange: function (index) {
- var _this = this;
- var useBeforeChange = this.data.useBeforeChange;
- if (!useBeforeChange) {
- return Promise.resolve();
- }
- return new Promise(function (resolve, reject) {
- _this.$emit('before-change', __assign(__assign({}, _this.getChildData(index)), { callback: function (status) { return (status ? resolve() : reject()); } }));
- });
- },
- getChildData: function (index, child) {
- var currentChild = child || this.children[index];
- if (!(0, validator_1.isDef)(currentChild)) {
- return;
- }
- return {
- index: currentChild.index,
- name: currentChild.getComputedName(),
- title: currentChild.data.title,
- };
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.json
deleted file mode 100644
index 19c0bc3..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-info": "../info/index",
- "van-sticky": "../sticky/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxml
deleted file mode 100644
index 05bb1e1..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxml
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.title }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxs
deleted file mode 100644
index 4059c7f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxs
+++ /dev/null
@@ -1,83 +0,0 @@
-/* eslint-disable */
-var utils = require('../wxs/utils.wxs');
-var style = require('../wxs/style.wxs');
-
-function tabClass(active, ellipsis) {
- var classes = ['tab-class'];
-
- if (active) {
- classes.push('tab-active-class');
- }
-
- if (ellipsis) {
- classes.push('van-ellipsis');
- }
-
- return classes.join(' ');
-}
-
-function tabStyle(data) {
- var titleColor = data.active
- ? data.titleActiveColor
- : data.titleInactiveColor;
-
- var ellipsis = data.scrollable && data.ellipsis;
-
- // card theme color
- if (data.type === 'card') {
- return style({
- 'border-color': data.color,
- 'background-color': !data.disabled && data.active ? data.color : null,
- color: titleColor || (!data.disabled && !data.active ? data.color : null),
- 'flex-basis': ellipsis ? 88 / data.swipeThreshold + '%' : null,
- });
- }
-
- return style({
- color: titleColor,
- 'flex-basis': ellipsis ? 88 / data.swipeThreshold + '%' : null,
- });
-}
-
-function navStyle(color, type) {
- return style({
- 'border-color': type === 'card' && color ? color : null,
- });
-}
-
-function trackStyle(data) {
- if (!data.animated) {
- return '';
- }
-
- return style({
- left: -100 * data.currentIndex + '%',
- 'transition-duration': data.duration + 's',
- '-webkit-transition-duration': data.duration + 's',
- });
-}
-
-function lineStyle(data) {
- return style({
- width: utils.addUnit(data.lineWidth),
- opacity: data.inited ? 1 : 0,
- transform: 'translateX(' + data.lineOffsetLeft + 'px)',
- '-webkit-transform': 'translateX(' + data.lineOffsetLeft + 'px)',
- 'background-color': data.color,
- height: data.lineHeight !== -1 ? utils.addUnit(data.lineHeight) : null,
- 'border-radius':
- data.lineHeight !== -1 ? utils.addUnit(data.lineHeight) : null,
- 'transition-duration': !data.skipTransition ? data.duration + 's' : null,
- '-webkit-transition-duration': !data.skipTransition
- ? data.duration + 's'
- : null,
- });
-}
-
-module.exports = {
- tabClass: tabClass,
- tabStyle: tabStyle,
- trackStyle: trackStyle,
- lineStyle: lineStyle,
- navStyle: navStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxss
deleted file mode 100644
index 09a93af..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tabs/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-tabs{-webkit-tap-highlight-color:transparent;position:relative}.van-tabs__wrap{display:flex;overflow:hidden}.van-tabs__wrap--scrollable .van-tab{flex:0 0 22%}.van-tabs__wrap--scrollable .van-tab--complete{flex:1 0 auto!important;padding:0 12px}.van-tabs__wrap--scrollable .van-tabs__nav--complete{padding-left:8px;padding-right:8px}.van-tabs__scroll{background-color:var(--tabs-nav-background-color,#fff);overflow:auto}.van-tabs__scroll--line{box-sizing:initial;height:calc(100% + 15px)}.van-tabs__scroll--card{border:1px solid var(--tabs-default-color,#ee0a24);border-radius:2px;box-sizing:border-box;margin:0 var(--padding-md,16px);width:calc(100% - var(--padding-md, 16px)*2)}.van-tabs__scroll::-webkit-scrollbar{display:none}.van-tabs__nav{display:flex;position:relative;-webkit-user-select:none;user-select:none}.van-tabs__nav--card{box-sizing:border-box;height:var(--tabs-card-height,30px)}.van-tabs__nav--card .van-tab{border-right:1px solid var(--tabs-default-color,#ee0a24);color:var(--tabs-default-color,#ee0a24);line-height:calc(var(--tabs-card-height, 30px) - 2px)}.van-tabs__nav--card .van-tab:last-child{border-right:none}.van-tabs__nav--card .van-tab.van-tab--active{background-color:var(--tabs-default-color,#ee0a24);color:#fff}.van-tabs__nav--card .van-tab--disabled{color:var(--tab-disabled-text-color,#c8c9cc)}.van-tabs__line{background-color:var(--tabs-bottom-bar-color,#ee0a24);border-radius:var(--tabs-bottom-bar-height,3px);bottom:0;height:var(--tabs-bottom-bar-height,3px);left:0;opacity:0;position:absolute;z-index:1}.van-tabs__track{height:100%;position:relative;width:100%}.van-tabs__track--animated{display:flex;transition-property:left}.van-tabs__content{overflow:hidden}.van-tabs--line{height:var(--tabs-line-height,44px)}.van-tabs--card{height:var(--tabs-card-height,30px)}.van-tab{box-sizing:border-box;color:var(--tab-text-color,#646566);cursor:pointer;flex:1;font-size:var(--tab-font-size,14px);line-height:var(--tabs-line-height,44px);min-width:0;padding:0 5px;position:relative;text-align:center}.van-tab--active{color:var(--tab-active-text-color,#323233);font-weight:var(--font-weight-bold,500)}.van-tab--disabled{color:var(--tab-disabled-text-color,#c8c9cc)}.van-tab__title__info{position:relative!important;top:-1px!important;transform:translateX(0)!important}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.js
deleted file mode 100644
index ec4069a..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.js
+++ /dev/null
@@ -1,23 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- props: {
- size: String,
- mark: Boolean,
- color: String,
- plain: Boolean,
- round: Boolean,
- textColor: String,
- type: {
- type: String,
- value: 'default',
- },
- closeable: Boolean,
- },
- methods: {
- onClose: function () {
- this.$emit('close');
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.json
deleted file mode 100644
index 0a336c0..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxml
deleted file mode 100644
index 59352dd..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxs
deleted file mode 100644
index 12d1668..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxs
+++ /dev/null
@@ -1,13 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-
-function rootStyle(data) {
- return style({
- 'background-color': data.plain ? '' : data.color,
- color: data.textColor || data.plain ? data.textColor || data.color : '',
- });
-}
-
-module.exports = {
- rootStyle: rootStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxss
deleted file mode 100644
index 0f0cbae..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tag/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-tag{align-items:center;border-radius:var(--tag-border-radius,2px);color:var(--tag-text-color,#fff);display:inline-flex;font-size:var(--tag-font-size,12px);line-height:var(--tag-line-height,16px);padding:var(--tag-padding,0 4px);position:relative}.van-tag--default{background-color:var(--tag-default-color,#969799)}.van-tag--default.van-tag--plain{color:var(--tag-default-color,#969799)}.van-tag--danger{background-color:var(--tag-danger-color,#ee0a24)}.van-tag--danger.van-tag--plain{color:var(--tag-danger-color,#ee0a24)}.van-tag--primary{background-color:var(--tag-primary-color,#1989fa)}.van-tag--primary.van-tag--plain{color:var(--tag-primary-color,#1989fa)}.van-tag--success{background-color:var(--tag-success-color,#07c160)}.van-tag--success.van-tag--plain{color:var(--tag-success-color,#07c160)}.van-tag--warning{background-color:var(--tag-warning-color,#ff976a)}.van-tag--warning.van-tag--plain{color:var(--tag-warning-color,#ff976a)}.van-tag--plain{background-color:var(--tag-plain-background-color,#fff)}.van-tag--plain:before{border:1px solid;border-radius:inherit;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.van-tag--medium{padding:var(--tag-medium-padding,2px 6px)}.van-tag--large{border-radius:var(--tag-large-border-radius,4px);font-size:var(--tag-large-font-size,14px);padding:var(--tag-large-padding,4px 8px)}.van-tag--mark{border-radius:0 var(--tag-round-border-radius,var(--tag-round-border-radius,999px)) var(--tag-round-border-radius,var(--tag-round-border-radius,999px)) 0}.van-tag--mark:after{content:"";display:block;width:2px}.van-tag--round{border-radius:var(--tag-round-border-radius,999px)}.van-tag__close{margin-left:2px;min-width:1em}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.js
deleted file mode 100644
index 0c01366..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.js
+++ /dev/null
@@ -1,31 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- props: {
- show: Boolean,
- mask: Boolean,
- message: String,
- forbidClick: Boolean,
- zIndex: {
- type: Number,
- value: 1000,
- },
- type: {
- type: String,
- value: 'text',
- },
- loadingType: {
- type: String,
- value: 'circular',
- },
- position: {
- type: String,
- value: 'middle',
- },
- },
- methods: {
- // for prevent touchmove
- noop: function () { },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.json
deleted file mode 100644
index 9b1b78c..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index",
- "van-loading": "../loading/index",
- "van-overlay": "../overlay/index",
- "van-transition": "../transition/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.wxml
deleted file mode 100644
index 69f143e..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.wxml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
- {{ message }}
-
-
-
-
-
-
-
-
- {{ message }}
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.wxss
deleted file mode 100644
index 3b7a34e..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/toast/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-toast{word-wrap:break-word;align-items:center;background-color:var(--toast-background-color,rgba(0,0,0,.7));border-radius:var(--toast-border-radius,8px);box-sizing:initial;color:var(--toast-text-color,#fff);display:flex;flex-direction:column;font-size:var(--toast-font-size,14px);justify-content:center;line-height:var(--toast-line-height,20px);white-space:pre-wrap}.van-toast__container{left:50%;max-width:var(--toast-max-width,70%);position:fixed;top:50%;transform:translate(-50%,-50%);width:-webkit-fit-content;width:fit-content}.van-toast--text{min-width:var(--toast-text-min-width,96px);padding:var(--toast-text-padding,8px 12px)}.van-toast--icon{min-height:var(--toast-default-min-height,88px);padding:var(--toast-default-padding,16px);width:var(--toast-default-width,88px)}.van-toast--icon .van-toast__icon{font-size:var(--toast-icon-size,36px)}.van-toast--icon .van-toast__text{padding-top:8px}.van-toast__loading{margin:10px 0}.van-toast--top{transform:translateY(-30vh)}.van-toast--bottom{transform:translateY(30vh)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/toast/toast.js b/src/openeuler/miniprogram_npm/@vant/weapp/toast/toast.js
deleted file mode 100644
index f51a89a..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/toast/toast.js
+++ /dev/null
@@ -1,83 +0,0 @@
-"use strict";
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var validator_1 = require("../common/validator");
-var defaultOptions = {
- type: 'text',
- mask: false,
- message: '',
- show: true,
- zIndex: 1000,
- duration: 2000,
- position: 'middle',
- forbidClick: false,
- loadingType: 'circular',
- selector: '#van-toast',
-};
-var queue = [];
-var currentOptions = __assign({}, defaultOptions);
-function parseOptions(message) {
- return (0, validator_1.isObj)(message) ? message : { message: message };
-}
-function getContext() {
- var pages = getCurrentPages();
- return pages[pages.length - 1];
-}
-function Toast(toastOptions) {
- var options = __assign(__assign({}, currentOptions), parseOptions(toastOptions));
- var context = (typeof options.context === 'function'
- ? options.context()
- : options.context) || getContext();
- var toast = context.selectComponent(options.selector);
- if (!toast) {
- console.warn('未找到 van-toast 节点,请确认 selector 及 context 是否正确');
- return;
- }
- delete options.context;
- delete options.selector;
- toast.clear = function () {
- toast.setData({ show: false });
- if (options.onClose) {
- options.onClose();
- }
- };
- queue.push(toast);
- toast.setData(options);
- clearTimeout(toast.timer);
- if (options.duration != null && options.duration > 0) {
- toast.timer = setTimeout(function () {
- toast.clear();
- queue = queue.filter(function (item) { return item !== toast; });
- }, options.duration);
- }
- return toast;
-}
-var createMethod = function (type) { return function (options) {
- return Toast(__assign({ type: type }, parseOptions(options)));
-}; };
-Toast.loading = createMethod('loading');
-Toast.success = createMethod('success');
-Toast.fail = createMethod('fail');
-Toast.clear = function () {
- queue.forEach(function (toast) {
- toast.clear();
- });
- queue = [];
-};
-Toast.setDefaultOptions = function (options) {
- Object.assign(currentOptions, options);
-};
-Toast.resetDefaultOptions = function () {
- currentOptions = __assign({}, defaultOptions);
-};
-exports.default = Toast;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.js
deleted file mode 100644
index 55fc8b8..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.js
+++ /dev/null
@@ -1,15 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var transition_1 = require("../mixins/transition");
-(0, component_1.VantComponent)({
- classes: [
- 'enter-class',
- 'enter-active-class',
- 'enter-to-class',
- 'leave-class',
- 'leave-active-class',
- 'leave-to-class',
- ],
- mixins: [(0, transition_1.transition)(true)],
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxml
deleted file mode 100644
index 2743785..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxs
deleted file mode 100644
index e0babf6..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxs
+++ /dev/null
@@ -1,17 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-
-function rootStyle(data) {
- return style([
- {
- '-webkit-transition-duration': data.currentDuration + 'ms',
- 'transition-duration': data.currentDuration + 'ms',
- },
- data.display ? null : 'display: none',
- data.customStyle,
- ]);
-}
-
-module.exports = {
- rootStyle: rootStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxss
deleted file mode 100644
index 3a3d37f..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/transition/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-transition{transition-timing-function:ease}.van-fade-enter-active,.van-fade-leave-active{transition-property:opacity}.van-fade-enter,.van-fade-leave-to{opacity:0}.van-fade-down-enter-active,.van-fade-down-leave-active,.van-fade-left-enter-active,.van-fade-left-leave-active,.van-fade-right-enter-active,.van-fade-right-leave-active,.van-fade-up-enter-active,.van-fade-up-leave-active{transition-property:opacity,transform}.van-fade-up-enter,.van-fade-up-leave-to{opacity:0;transform:translate3d(0,100%,0)}.van-fade-down-enter,.van-fade-down-leave-to{opacity:0;transform:translate3d(0,-100%,0)}.van-fade-left-enter,.van-fade-left-leave-to{opacity:0;transform:translate3d(-100%,0,0)}.van-fade-right-enter,.van-fade-right-leave-to{opacity:0;transform:translate3d(100%,0,0)}.van-slide-down-enter-active,.van-slide-down-leave-active,.van-slide-left-enter-active,.van-slide-left-leave-active,.van-slide-right-enter-active,.van-slide-right-leave-active,.van-slide-up-enter-active,.van-slide-up-leave-active{transition-property:transform}.van-slide-up-enter,.van-slide-up-leave-to{transform:translate3d(0,100%,0)}.van-slide-down-enter,.van-slide-down-leave-to{transform:translate3d(0,-100%,0)}.van-slide-left-enter,.van-slide-left-leave-to{transform:translate3d(-100%,0,0)}.van-slide-right-enter,.van-slide-right-leave-to{transform:translate3d(100%,0,0)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.js
deleted file mode 100644
index b6f69b2..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.js
+++ /dev/null
@@ -1,70 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-(0, component_1.VantComponent)({
- classes: [
- 'main-item-class',
- 'content-item-class',
- 'main-active-class',
- 'content-active-class',
- 'main-disabled-class',
- 'content-disabled-class',
- ],
- props: {
- items: {
- type: Array,
- observer: 'updateSubItems',
- },
- activeId: null,
- mainActiveIndex: {
- type: Number,
- value: 0,
- observer: 'updateSubItems',
- },
- height: {
- type: null,
- value: 300,
- },
- max: {
- type: Number,
- value: Infinity,
- },
- selectedIcon: {
- type: String,
- value: 'success',
- },
- },
- data: {
- subItems: [],
- },
- methods: {
- // 当一个子项被选择时
- onSelectItem: function (event) {
- var item = event.currentTarget.dataset.item;
- var isArray = Array.isArray(this.data.activeId);
- // 判断有没有超出右侧选择的最大数
- var isOverMax = isArray && this.data.activeId.length >= this.data.max;
- // 判断该项有没有被选中, 如果有被选中,则忽视是否超出的条件
- var isSelected = isArray
- ? this.data.activeId.indexOf(item.id) > -1
- : this.data.activeId === item.id;
- if (!item.disabled && (!isOverMax || isSelected)) {
- this.$emit('click-item', item);
- }
- },
- // 当一个导航被点击时
- onClickNav: function (event) {
- var index = event.detail;
- var item = this.data.items[index];
- if (!item.disabled) {
- this.$emit('click-nav', { index: index });
- }
- },
- // 更新子项列表
- updateSubItems: function () {
- var _a = this.data, items = _a.items, mainActiveIndex = _a.mainActiveIndex;
- var _b = (items[mainActiveIndex] || {}).children, children = _b === void 0 ? [] : _b;
- this.setData({ subItems: children });
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.json
deleted file mode 100644
index 42991a2..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index",
- "van-sidebar": "../sidebar/index",
- "van-sidebar-item": "../sidebar-item/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxml
deleted file mode 100644
index 2663e52..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxml
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.text }}
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxs
deleted file mode 100644
index b1cbb39..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxs
+++ /dev/null
@@ -1,12 +0,0 @@
-/* eslint-disable */
-var array = require('../wxs/array.wxs');
-
-function isActive (activeList, itemId) {
- if (array.isArray(activeList)) {
- return activeList.indexOf(itemId) > -1;
- }
-
- return activeList === itemId;
-}
-
-module.exports.isActive = isActive;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxss
deleted file mode 100644
index 5bef0ac..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/tree-select/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-tree-select{display:flex;font-size:var(--tree-select-font-size,14px);position:relative;-webkit-user-select:none;user-select:none}.van-tree-select__nav{--sidebar-padding:12px 8px 12px 12px;background-color:var(--tree-select-nav-background-color,#f7f8fa);flex:1}.van-tree-select__nav__inner{height:100%;width:100%!important}.van-tree-select__content{background-color:var(--tree-select-content-background-color,#fff);flex:2}.van-tree-select__item{font-weight:700;line-height:var(--tree-select-item-height,44px);padding:0 32px 0 var(--padding-md,16px);position:relative}.van-tree-select__item--active{color:var(--tree-select-item-active-color,#ee0a24)}.van-tree-select__item--disabled{color:var(--tree-select-item-disabled-color,#c8c9cc)}.van-tree-select__selected{position:absolute;right:var(--padding-md,16px);top:50%;transform:translateY(-50%)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.js b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.js
deleted file mode 100644
index 5492d40..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.js
+++ /dev/null
@@ -1,183 +0,0 @@
-"use strict";
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var component_1 = require("../common/component");
-var utils_1 = require("./utils");
-var shared_1 = require("./shared");
-var validator_1 = require("../common/validator");
-(0, component_1.VantComponent)({
- props: __assign(__assign(__assign(__assign({ disabled: Boolean, multiple: Boolean, uploadText: String, useBeforeRead: Boolean, afterRead: null, beforeRead: null, previewSize: {
- type: null,
- value: 80,
- }, name: {
- type: null,
- value: '',
- }, accept: {
- type: String,
- value: 'image',
- }, fileList: {
- type: Array,
- value: [],
- observer: 'formatFileList',
- }, maxSize: {
- type: Number,
- value: Number.MAX_VALUE,
- }, maxCount: {
- type: Number,
- value: 100,
- }, deletable: {
- type: Boolean,
- value: true,
- }, showUpload: {
- type: Boolean,
- value: true,
- }, previewImage: {
- type: Boolean,
- value: true,
- }, previewFullImage: {
- type: Boolean,
- value: true,
- }, videoFit: {
- type: String,
- value: 'contain',
- }, imageFit: {
- type: String,
- value: 'scaleToFill',
- }, uploadIcon: {
- type: String,
- value: 'photograph',
- } }, shared_1.imageProps), shared_1.videoProps), shared_1.mediaProps), shared_1.messageFileProps),
- data: {
- lists: [],
- isInCount: true,
- },
- methods: {
- formatFileList: function () {
- var _a = this.data, _b = _a.fileList, fileList = _b === void 0 ? [] : _b, maxCount = _a.maxCount;
- var lists = fileList.map(function (item) { return (__assign(__assign({}, item), { isImage: (0, utils_1.isImageFile)(item), isVideo: (0, utils_1.isVideoFile)(item), deletable: (0, validator_1.isBoolean)(item.deletable) ? item.deletable : true })); });
- this.setData({ lists: lists, isInCount: lists.length < maxCount });
- },
- getDetail: function (index) {
- return {
- name: this.data.name,
- index: index == null ? this.data.fileList.length : index,
- };
- },
- startUpload: function () {
- var _this = this;
- var _a = this.data, maxCount = _a.maxCount, multiple = _a.multiple, lists = _a.lists, disabled = _a.disabled;
- if (disabled)
- return;
- (0, utils_1.chooseFile)(__assign(__assign({}, this.data), { maxCount: maxCount - lists.length }))
- .then(function (res) {
- _this.onBeforeRead(multiple ? res : res[0]);
- })
- .catch(function (error) {
- _this.$emit('error', error);
- });
- },
- onBeforeRead: function (file) {
- var _this = this;
- var _a = this.data, beforeRead = _a.beforeRead, useBeforeRead = _a.useBeforeRead;
- var res = true;
- if (typeof beforeRead === 'function') {
- res = beforeRead(file, this.getDetail());
- }
- if (useBeforeRead) {
- res = new Promise(function (resolve, reject) {
- _this.$emit('before-read', __assign(__assign({ file: file }, _this.getDetail()), { callback: function (ok) {
- ok ? resolve() : reject();
- } }));
- });
- }
- if (!res) {
- return;
- }
- if ((0, validator_1.isPromise)(res)) {
- res.then(function (data) { return _this.onAfterRead(data || file); });
- }
- else {
- this.onAfterRead(file);
- }
- },
- onAfterRead: function (file) {
- var _a = this.data, maxSize = _a.maxSize, afterRead = _a.afterRead;
- var oversize = Array.isArray(file)
- ? file.some(function (item) { return item.size > maxSize; })
- : file.size > maxSize;
- if (oversize) {
- this.$emit('oversize', __assign({ file: file }, this.getDetail()));
- return;
- }
- if (typeof afterRead === 'function') {
- afterRead(file, this.getDetail());
- }
- this.$emit('after-read', __assign({ file: file }, this.getDetail()));
- },
- deleteItem: function (event) {
- var index = event.currentTarget.dataset.index;
- this.$emit('delete', __assign(__assign({}, this.getDetail(index)), { file: this.data.fileList[index] }));
- },
- onPreviewImage: function (event) {
- if (!this.data.previewFullImage)
- return;
- var index = event.currentTarget.dataset.index;
- var _a = this.data, lists = _a.lists, showmenu = _a.showmenu;
- var item = lists[index];
- wx.previewImage({
- urls: lists.filter(function (item) { return (0, utils_1.isImageFile)(item); }).map(function (item) { return item.url; }),
- current: item.url,
- showmenu: showmenu,
- fail: function () {
- wx.showToast({ title: '预览图片失败', icon: 'none' });
- },
- });
- },
- onPreviewVideo: function (event) {
- if (!this.data.previewFullImage)
- return;
- var index = event.currentTarget.dataset.index;
- var lists = this.data.lists;
- var sources = [];
- var current = lists.reduce(function (sum, cur, curIndex) {
- if (!(0, utils_1.isVideoFile)(cur)) {
- return sum;
- }
- sources.push(__assign(__assign({}, cur), { type: 'video' }));
- if (curIndex < index) {
- sum++;
- }
- return sum;
- }, 0);
- wx.previewMedia({
- sources: sources,
- current: current,
- fail: function () {
- wx.showToast({ title: '预览视频失败', icon: 'none' });
- },
- });
- },
- onPreviewFile: function (event) {
- var index = event.currentTarget.dataset.index;
- wx.openDocument({
- filePath: this.data.lists[index].url,
- showMenu: true,
- });
- },
- onClickPreview: function (event) {
- var index = event.currentTarget.dataset.index;
- var item = this.data.lists[index];
- this.$emit('click-preview', __assign(__assign({}, item), this.getDetail(index)));
- },
- },
-});
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.json b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.json
deleted file mode 100644
index e00a588..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index",
- "van-loading": "../loading/index"
- }
-}
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxml b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxml
deleted file mode 100644
index 3e61fd9..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxml
+++ /dev/null
@@ -1,84 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- {{ item.name || item.url }}
-
-
-
-
- {{ item.message }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ uploadText }}
-
-
-
-
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxs
deleted file mode 100644
index c567ec2..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxs
+++ /dev/null
@@ -1,17 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function sizeStyle(data) {
- return "Array" === data.previewSize.constructor ? style({
- width: addUnit(data.previewSize[0]),
- height: addUnit(data.previewSize[1]),
- }) : style({
- width: addUnit(data.previewSize),
- height: addUnit(data.previewSize),
- });
-}
-
-module.exports = {
- sizeStyle: sizeStyle,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxss b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxss
deleted file mode 100644
index 11f8696..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-uploader{display:inline-block;position:relative}.van-uploader__wrapper{display:flex;flex-wrap:wrap}.van-uploader__slot:empty{display:none}.van-uploader__slot:not(:empty)+.van-uploader__upload{display:none!important}.van-uploader__upload{align-items:center;background-color:var(--uploader-upload-background-color,#f7f8fa);box-sizing:border-box;display:flex;flex-direction:column;height:var(--uploader-size,80px);justify-content:center;margin:0 8px 8px 0;position:relative;width:var(--uploader-size,80px)}.van-uploader__upload:active{background-color:var(--uploader-upload-active-color,#f2f3f5)}.van-uploader__upload-icon{color:var(--uploader-icon-color,#dcdee0);font-size:var(--uploader-icon-size,24px)}.van-uploader__upload-text{color:var(--uploader-text-color,#969799);font-size:var(--uploader-text-font-size,12px);margin-top:var(--padding-xs,8px)}.van-uploader__upload--disabled{opacity:var(--uploader-disabled-opacity,.5)}.van-uploader__preview{cursor:pointer;margin:0 8px 8px 0;position:relative}.van-uploader__preview-image{display:block;height:var(--uploader-size,80px);overflow:hidden;width:var(--uploader-size,80px)}.van-uploader__preview-delete,.van-uploader__preview-delete:after{height:var(--uploader-delete-icon-size,14px);position:absolute;right:0;top:0;width:var(--uploader-delete-icon-size,14px)}.van-uploader__preview-delete:after{background-color:var(--uploader-delete-background-color,rgba(0,0,0,.7));border-radius:0 0 0 12px;content:""}.van-uploader__preview-delete-icon{color:var(--uploader-delete-color,#fff);font-size:var(--uploader-delete-icon-size,14px);position:absolute;right:0;top:0;transform:scale(.7) translate(10%,-10%);z-index:1}.van-uploader__file{align-items:center;background-color:var(--uploader-file-background-color,#f7f8fa);display:flex;flex-direction:column;height:var(--uploader-size,80px);justify-content:center;width:var(--uploader-size,80px)}.van-uploader__file-icon{color:var(--uploader-file-icon-color,#646566);font-size:var(--uploader-file-icon-size,20px)}.van-uploader__file-name{box-sizing:border-box;color:var(--uploader-file-name-text-color,#646566);font-size:var(--uploader-file-name-font-size,12px);margin-top:var(--uploader-file-name-margin-top,8px);padding:var(--uploader-file-name-padding,0 4px);text-align:center;width:100%}.van-uploader__mask{align-items:center;background-color:var(--uploader-mask-background-color,rgba(50,50,51,.88));bottom:0;color:#fff;display:flex;flex-direction:column;justify-content:center;left:0;position:absolute;right:0;top:0}.van-uploader__mask-icon{font-size:var(--uploader-mask-icon-size,22px)}.van-uploader__mask-message{font-size:var(--uploader-mask-message-font-size,12px);line-height:var(--uploader-mask-message-line-height,14px);margin-top:6px;padding:0 var(--padding-base,4px)}.van-uploader__loading{color:var(--uploader-loading-icon-color,#fff)!important;height:var(--uploader-loading-icon-size,22px);width:var(--uploader-loading-icon-size,22px)}
\ No newline at end of file
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/shared.js b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/shared.js
deleted file mode 100644
index 4e07727..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/shared.js
+++ /dev/null
@@ -1,60 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.messageFileProps = exports.mediaProps = exports.videoProps = exports.imageProps = void 0;
-// props for image
-exports.imageProps = {
- sizeType: {
- type: Array,
- value: ['original', 'compressed'],
- },
- capture: {
- type: Array,
- value: ['album', 'camera'],
- },
- showmenu: {
- type: Boolean,
- value: true,
- },
-};
-// props for video
-exports.videoProps = {
- capture: {
- type: Array,
- value: ['album', 'camera'],
- },
- compressed: {
- type: Boolean,
- value: true,
- },
- maxDuration: {
- type: Number,
- value: 60,
- },
- camera: {
- type: String,
- value: 'back',
- },
-};
-// props for media
-exports.mediaProps = {
- capture: {
- type: Array,
- value: ['album', 'camera'],
- },
- mediaType: {
- type: Array,
- value: ['image', 'video'],
- },
- maxDuration: {
- type: Number,
- value: 60,
- },
- camera: {
- type: String,
- value: 'back',
- },
-};
-// props for file
-exports.messageFileProps = {
- extension: null,
-};
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/utils.js b/src/openeuler/miniprogram_npm/@vant/weapp/uploader/utils.js
deleted file mode 100644
index b8cf452..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/uploader/utils.js
+++ /dev/null
@@ -1,112 +0,0 @@
-"use strict";
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.chooseFile = exports.isVideoFile = exports.isImageFile = void 0;
-var utils_1 = require("../common/utils");
-var validator_1 = require("../common/validator");
-function isImageFile(item) {
- if (item.isImage != null) {
- return item.isImage;
- }
- if (item.type) {
- return item.type === 'image';
- }
- if (item.url) {
- return (0, validator_1.isImageUrl)(item.url);
- }
- return false;
-}
-exports.isImageFile = isImageFile;
-function isVideoFile(item) {
- if (item.isVideo != null) {
- return item.isVideo;
- }
- if (item.type) {
- return item.type === 'video';
- }
- if (item.url) {
- return (0, validator_1.isVideoUrl)(item.url);
- }
- return false;
-}
-exports.isVideoFile = isVideoFile;
-function formatImage(res) {
- return res.tempFiles.map(function (item) { return (__assign(__assign({}, (0, utils_1.pickExclude)(item, ['path'])), { type: 'image', url: item.tempFilePath || item.path, thumb: item.tempFilePath || item.path })); });
-}
-function formatVideo(res) {
- return [
- __assign(__assign({}, (0, utils_1.pickExclude)(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), { type: 'video', url: res.tempFilePath, thumb: res.thumbTempFilePath }),
- ];
-}
-function formatMedia(res) {
- return res.tempFiles.map(function (item) { return (__assign(__assign({}, (0, utils_1.pickExclude)(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), { type: res.type, url: item.tempFilePath, thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath })); });
-}
-function formatFile(res) {
- return res.tempFiles.map(function (item) { return (__assign(__assign({}, (0, utils_1.pickExclude)(item, ['path'])), { url: item.path })); });
-}
-function chooseFile(_a) {
- var accept = _a.accept, multiple = _a.multiple, capture = _a.capture, compressed = _a.compressed, maxDuration = _a.maxDuration, sizeType = _a.sizeType, camera = _a.camera, maxCount = _a.maxCount, mediaType = _a.mediaType, extension = _a.extension;
- return new Promise(function (resolve, reject) {
- switch (accept) {
- case 'image':
- if (utils_1.isPC) {
- wx.chooseImage({
- count: multiple ? Math.min(maxCount, 9) : 1,
- sourceType: capture,
- sizeType: sizeType,
- success: function (res) { return resolve(formatImage(res)); },
- fail: reject,
- });
- }
- else {
- wx.chooseMedia({
- count: multiple ? Math.min(maxCount, 9) : 1,
- mediaType: ['image'],
- sourceType: capture,
- maxDuration: maxDuration,
- sizeType: sizeType,
- camera: camera,
- success: function (res) { return resolve(formatImage(res)); },
- fail: reject,
- });
- }
- break;
- case 'media':
- wx.chooseMedia({
- count: multiple ? Math.min(maxCount, 9) : 1,
- mediaType: mediaType,
- sourceType: capture,
- maxDuration: maxDuration,
- sizeType: sizeType,
- camera: camera,
- success: function (res) { return resolve(formatMedia(res)); },
- fail: reject,
- });
- break;
- case 'video':
- wx.chooseVideo({
- sourceType: capture,
- compressed: compressed,
- maxDuration: maxDuration,
- camera: camera,
- success: function (res) { return resolve(formatVideo(res)); },
- fail: reject,
- });
- break;
- default:
- wx.chooseMessageFile(__assign(__assign({ count: multiple ? maxCount : 1, type: accept }, (extension ? { extension: extension } : {})), { success: function (res) { return resolve(formatFile(res)); }, fail: reject }));
- break;
- }
- });
-}
-exports.chooseFile = chooseFile;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/add-unit.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/add-unit.wxs
deleted file mode 100644
index 4f33462..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/add-unit.wxs
+++ /dev/null
@@ -1,12 +0,0 @@
-/* eslint-disable */
-var REGEXP = getRegExp('^-?\d+(\.\d+)?$');
-
-function addUnit(value) {
- if (value == null) {
- return undefined;
- }
-
- return REGEXP.test('' + value) ? value + 'px' : value;
-}
-
-module.exports = addUnit;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/array.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/array.wxs
deleted file mode 100644
index 610089c..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/array.wxs
+++ /dev/null
@@ -1,5 +0,0 @@
-function isArray(array) {
- return array && array.constructor === 'Array';
-}
-
-module.exports.isArray = isArray;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/bem.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/bem.wxs
deleted file mode 100644
index 1efa129..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/bem.wxs
+++ /dev/null
@@ -1,39 +0,0 @@
-/* eslint-disable */
-var array = require('./array.wxs');
-var object = require('./object.wxs');
-var PREFIX = 'van-';
-
-function join(name, mods) {
- name = PREFIX + name;
- mods = mods.map(function(mod) {
- return name + '--' + mod;
- });
- mods.unshift(name);
- return mods.join(' ');
-}
-
-function traversing(mods, conf) {
- if (!conf) {
- return;
- }
-
- if (typeof conf === 'string' || typeof conf === 'number') {
- mods.push(conf);
- } else if (array.isArray(conf)) {
- conf.forEach(function(item) {
- traversing(mods, item);
- });
- } else if (typeof conf === 'object') {
- object.keys(conf).forEach(function(key) {
- conf[key] && mods.push(key);
- });
- }
-}
-
-function bem(name, conf) {
- var mods = [];
- traversing(mods, conf);
- return join(name, mods);
-}
-
-module.exports = bem;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/memoize.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/memoize.wxs
deleted file mode 100644
index 8f7f46d..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/memoize.wxs
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Simple memoize
- * wxs doesn't support fn.apply, so this memoize only support up to 2 args
- */
-/* eslint-disable */
-
-function isPrimitive(value) {
- var type = typeof value;
- return (
- type === 'boolean' ||
- type === 'number' ||
- type === 'string' ||
- type === 'undefined' ||
- value === null
- );
-}
-
-// mock simple fn.call in wxs
-function call(fn, args) {
- if (args.length === 2) {
- return fn(args[0], args[1]);
- }
-
- if (args.length === 1) {
- return fn(args[0]);
- }
-
- return fn();
-}
-
-function serializer(args) {
- if (args.length === 1 && isPrimitive(args[0])) {
- return args[0];
- }
- var obj = {};
- for (var i = 0; i < args.length; i++) {
- obj['key' + i] = args[i];
- }
- return JSON.stringify(obj);
-}
-
-function memoize(fn) {
- var cache = {};
-
- return function() {
- var key = serializer(arguments);
- if (cache[key] === undefined) {
- cache[key] = call(fn, arguments);
- }
-
- return cache[key];
- };
-}
-
-module.exports = memoize;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/object.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/object.wxs
deleted file mode 100644
index e077107..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/object.wxs
+++ /dev/null
@@ -1,13 +0,0 @@
-/* eslint-disable */
-var REGEXP = getRegExp('{|}|"', 'g');
-
-function keys(obj) {
- return JSON.stringify(obj)
- .replace(REGEXP, '')
- .split(',')
- .map(function(item) {
- return item.split(':')[0];
- });
-}
-
-module.exports.keys = keys;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/style.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/style.wxs
deleted file mode 100644
index d88ca7c..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/style.wxs
+++ /dev/null
@@ -1,42 +0,0 @@
-/* eslint-disable */
-var object = require('./object.wxs');
-var array = require('./array.wxs');
-
-function kebabCase(word) {
- var newWord = word
- .replace(getRegExp("[A-Z]", 'g'), function (i) {
- return '-' + i;
- })
- .toLowerCase()
-
- return newWord;
-}
-
-function style(styles) {
- if (array.isArray(styles)) {
- return styles
- .filter(function (item) {
- return item != null && item !== '';
- })
- .map(function (item) {
- return style(item);
- })
- .join(';');
- }
-
- if ('Object' === styles.constructor) {
- return object
- .keys(styles)
- .filter(function (key) {
- return styles[key] != null && styles[key] !== '';
- })
- .map(function (key) {
- return [kebabCase(key), [styles[key]]].join(':');
- })
- .join(';');
- }
-
- return styles;
-}
-
-module.exports = style;
diff --git a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/utils.wxs b/src/openeuler/miniprogram_npm/@vant/weapp/wxs/utils.wxs
deleted file mode 100644
index f66d33a..0000000
--- a/src/openeuler/miniprogram_npm/@vant/weapp/wxs/utils.wxs
+++ /dev/null
@@ -1,10 +0,0 @@
-/* eslint-disable */
-var bem = require('./bem.wxs');
-var memoize = require('./memoize.wxs');
-var addUnit = require('./add-unit.wxs');
-
-module.exports = {
- bem: memoize(bem),
- memoize: memoize,
- addUnit: addUnit
-};
diff --git a/src/openeuler/package-events/events/event-detail.wxml b/src/openeuler/package-events/events/event-detail.wxml
index 0244216..79e6422 100644
--- a/src/openeuler/package-events/events/event-detail.wxml
+++ b/src/openeuler/package-events/events/event-detail.wxml
@@ -21,7 +21,7 @@
{{info.date}}
-
+
{{info.address}}
@@ -94,27 +94,19 @@
分享
下载海报
-
-
+
+
精彩回顾
-
-
- 已报名
-
- 立即报名
+
+ 立即报名
-
+
修改日程
- 已报名
立即报名
-
- 修改日程
-
diff --git a/src/openeuler/package-events/publish/success.js b/src/openeuler/package-events/publish/success.js
index 1af62b2..0a84710 100644
--- a/src/openeuler/package-events/publish/success.js
+++ b/src/openeuler/package-events/publish/success.js
@@ -26,12 +26,6 @@ Page({
typeDesc:
'审核通过后您的活动将在openEuler官网和小程序上发布,请耐心等待,您可以在“我的 > 我的活动 > 发布中”查看此活动',
});
- } else if (options.type == 3) {
- this.setData({
- type: 2,
- typeCn: '修改',
- typeDesc: '您可以在“我的 > 我的活动 > 已发布”查看此活动并继续修改日程',
- });
}
},
toList() {
diff --git a/src/openeuler/package-meeting/reserve/reserve.js b/src/openeuler/package-meeting/reserve/reserve.js
index 8958488..2186b5a 100644
--- a/src/openeuler/package-meeting/reserve/reserve.js
+++ b/src/openeuler/package-meeting/reserve/reserve.js
@@ -191,6 +191,7 @@ Page({
etherpad: '',
agenda: '',
emaillist: '',
+ meetingType: 'zoom',
privacyState: false,
sendDev: false,
});
diff --git a/src/openeuler/package-my/events/my-list.js b/src/openeuler/package-my/events/my-list.js
index d1c320b..457f5b2 100644
--- a/src/openeuler/package-my/events/my-list.js
+++ b/src/openeuler/package-my/events/my-list.js
@@ -22,12 +22,6 @@ let remoteMethods = {
service = 'EVENT_COLLECT_LIST';
} else if (that.data.type == 7) {
return;
- } else if (that.data.type == 3) {
- if (that.data.level == 2) {
- service = 'MY_EVENTS_LIST';
- } else {
- service = 'ALL_EVENTS_LIST';
- }
}
appAjax.postJson({
autoShowWait: true,
@@ -113,7 +107,6 @@ Page({
showDialogDel: false,
noAuthDialogShow: false,
user: '',
- registerId: '',
},
/**
@@ -123,17 +116,12 @@ Page({
let type = Number(options.type);
this.setData({
type: type,
- level: await sessionUtil.getUserInfoByKey('eventLevel'),
- user: await sessionUtil.getUserInfoByKey('userId'),
});
- that = this;
let title = '';
if (type === 1) {
title = '待发布';
} else if (type === 2) {
title = '已发布';
- } else if (type === 3) {
- title = '报名表单';
} else if (type === 4) {
title = '草稿箱';
} else if (type === 5) {
@@ -146,6 +134,13 @@ Page({
wx.setNavigationBarTitle({
title,
});
+ },
+ async onShow() {
+ this.setData({
+ level: await sessionUtil.getUserInfoByKey('eventLevel'),
+ user: await sessionUtil.getUserInfoByKey('userId'),
+ });
+ that = this;
this.initData();
},
@@ -222,8 +217,6 @@ Page({
this.initialization();
});
}
- } else if (e.detail.operaType === 3) {
- return;
} else {
this.setData({
noAuthDialogShow: true,
@@ -238,7 +231,6 @@ Page({
curId: e.currentTarget.dataset.item.id,
userId: e.currentTarget.dataset.item.user,
collectionId: e.currentTarget.dataset.item.collection_id || '',
- registerId: e.currentTarget.dataset.item.register_id || '',
});
const strTemp = this.data.collectionId ? '取消收藏' : '收藏活动';
if (this.data.type == 4) {
@@ -288,17 +280,6 @@ Page({
],
});
}
-
- if (this.data.registerId) {
- let tempArr = this.data.actions;
- tempArr.unshift({
- name: '查看门票',
- operaType: 3,
- });
- this.setData({
- actions: tempArr,
- });
- }
}
}
},
@@ -330,8 +311,6 @@ Page({
wx.navigateTo({
url: `/package-events/events/event-detail?id=${e.currentTarget.dataset.id}&type=5`,
});
- } else if (this.data.type == 3) {
- return;
}
},
copyWechat() {
diff --git a/src/openeuler/package-my/events/my-list.wxml b/src/openeuler/package-my/events/my-list.wxml
index 9b5b95e..fc456fa 100644
--- a/src/openeuler/package-my/events/my-list.wxml
+++ b/src/openeuler/package-my/events/my-list.wxml
@@ -30,7 +30,11 @@
+ wx:if="{{(item.status==3 &&level==3) || (item.status==4 &&level==3)}}">
+ 查看详情
+
+
修改日程
精彩回顾
-
- 已报名
- 立即报名
+
+ 立即报名
修改日程
- 已报名
立即报名
-
-
- 修改日程
-
-
diff --git a/src/openeuler/package-my/my/privecy-seting.js b/src/openeuler/package-my/my/privecy-seting.js
index 9075762..0e856ed 100644
--- a/src/openeuler/package-my/my/privecy-seting.js
+++ b/src/openeuler/package-my/my/privecy-seting.js
@@ -57,8 +57,16 @@ Page({
this.setData(setDataObject);
},
confirmRevoke: function () {
- remoteMethods.handleRevoke(() => {
- this.handleLogout();
+ remoteMethods.handleRevoke((res) => {
+ if (res.code === 200) {
+ this.handleLogout();
+ } else {
+ wx.showToast({
+ title: res.msg,
+ icon: 'none',
+ duration: 2000,
+ });
+ }
});
},
confirmLogoff: function () {
diff --git a/src/openeuler/package-my/my/privecy-seting.wxml b/src/openeuler/package-my/my/privecy-seting.wxml
index 4a71b0d..5a9ef38 100644
--- a/src/openeuler/package-my/my/privecy-seting.wxml
+++ b/src/openeuler/package-my/my/privecy-seting.wxml
@@ -30,7 +30,7 @@
退出登陆
- 请确认是否撤销同意隐私声明
+ 请确认是否撤销同意隐私声明,撤销后账号将匿名化处理,匿名化账号不可再登录,请谨慎操作!
确认
我再想想
diff --git a/src/openeuler/pages/events/events.js b/src/openeuler/pages/events/events.js
index 0a7220b..beb7ec3 100644
--- a/src/openeuler/pages/events/events.js
+++ b/src/openeuler/pages/events/events.js
@@ -91,7 +91,6 @@ Page({
curId: '',
userId: '',
collectionId: '',
- registerId: '',
},
/**
* 生命周期函数--监听页面加载
@@ -179,8 +178,8 @@ Page({
});
},
onActionSelect(e) {
- if (this.data.level == 3) {
- if (e.detail.operaType == 1) {
+ if (this.data.level === 3) {
+ if (e.detail.operaType === 1) {
if (this.data.collectionId) {
remoteMethods.unCollect(() => {
this.setData({
@@ -202,7 +201,7 @@ Page({
});
}
} else {
- if (e.detail.operaType == 1) {
+ if (e.detail.operaType === 1) {
if (this.data.collectionId) {
remoteMethods.unCollect(() => {
this.setData({
@@ -218,7 +217,7 @@ Page({
this.initData();
});
}
- } else if (e.detail.operaType == 3) {
+ } else if (e.detail.operaType === 3) {
return;
} else {
this.setData({
@@ -252,10 +251,9 @@ Page({
curId: e.currentTarget.dataset.item.id,
userId: e.currentTarget.dataset.item.user,
collectionId: e.currentTarget.dataset.item.collection_id || '',
- registerId: e.currentTarget.dataset.item.register_id || '',
});
const strTemp = this.data.collectionId ? '取消收藏' : '收藏活动';
- if (this.data.level == 3) {
+ if (this.data.level === 3) {
this.setData({
actions: [
{
@@ -292,17 +290,6 @@ Page({
],
});
}
-
- if (this.data.registerId) {
- let tempArr = this.data.actions;
- tempArr.unshift({
- name: '查看门票',
- operaType: 3,
- });
- this.setData({
- actions: tempArr,
- });
- }
}
},
toUpdateSchedule(e) {
diff --git a/src/openeuler/pages/events/events.wxml b/src/openeuler/pages/events/events.wxml
index 1002429..17a081a 100644
--- a/src/openeuler/pages/events/events.wxml
+++ b/src/openeuler/pages/events/events.wxml
@@ -47,28 +47,16 @@
-
-
- 已报名
-
- 立即报名
+
+ 立即报名
修改日程
- 已报名
立即报名
-
-
- 修改日程
-
-
diff --git a/src/openeuler/pages/my/my.js b/src/openeuler/pages/my/my.js
index 23a5184..eef04a2 100644
--- a/src/openeuler/pages/my/my.js
+++ b/src/openeuler/pages/my/my.js
@@ -1,6 +1,5 @@
// pages/my/my.js
const appAjax = require('./../../utils/app-ajax');
-const sessionUtil = require('../../utils/app-session.js');
let remoteMethods = {
getMyCount: function (_callback) {
diff --git a/src/openeuler/project.private.config.json b/src/openeuler/project.private.config.json
index efcd36c..a0a2827 100644
--- a/src/openeuler/project.private.config.json
+++ b/src/openeuler/project.private.config.json
@@ -1,6 +1,7 @@
{
"setting": {
- "compileHotReLoad": true
+ "compileHotReLoad": true,
+ "urlCheck": false
},
"condition": {
"miniprogram": {
--
Gitee
From 2247c0cd8e3b89a3e2a51d7806c484363fd4429c Mon Sep 17 00:00:00 2001
From: haml-707 <845831435@qq.com>
Date: Tue, 21 Nov 2023 10:41:42 +0800
Subject: [PATCH 10/10] Update .gitignore
---
src/openeuler/.gitignore | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/openeuler/.gitignore b/src/openeuler/.gitignore
index f0a5fd4..f6838ea 100644
--- a/src/openeuler/.gitignore
+++ b/src/openeuler/.gitignore
@@ -1,3 +1,2 @@
-/node_modules
/package-lock.json
/miniprogram_npm
\ No newline at end of file
--
Gitee