@nutui/nutui 3.1.21-beta.3 → 3.1.22-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +57 -0
- package/dist/nutui.es.js +4024 -18197
- package/dist/nutui.umd.js +4017 -18290
- package/dist/packages/_es/ActionSheet.js +26 -157
- package/dist/packages/_es/Address.js +119 -542
- package/dist/packages/_es/AddressList.js +113 -611
- package/dist/packages/_es/Audio.js +62 -274
- package/dist/packages/_es/AudioOperate.js +18 -107
- package/dist/packages/_es/Avatar.js +42 -165
- package/dist/packages/_es/AvatarGroup.js +14 -73
- package/dist/packages/_es/BackTop.js +43 -156
- package/dist/packages/_es/Badge.js +14 -86
- package/dist/packages/_es/Barrage.js +41 -113
- package/dist/packages/_es/Button.js +23 -128
- package/dist/packages/_es/Calendar.js +24 -237
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +10 -107
- package/dist/packages/_es/Cascader.js +156 -500
- package/dist/packages/_es/Category.js +15 -58
- package/dist/packages/_es/CategoryPane.js +11 -111
- package/dist/packages/_es/Cell.js +21 -98
- package/dist/packages/_es/CellGroup.js +9 -44
- package/dist/packages/_es/Checkbox.js +31 -113
- package/dist/packages/_es/CheckboxGroup.js +29 -58
- package/dist/packages/_es/CircleProgress.js +28 -151
- package/dist/packages/_es/Col.js +14 -56
- package/dist/packages/_es/Collapse.js +24 -85
- package/dist/packages/_es/CollapseItem.js +70 -261
- package/dist/packages/_es/Comment.js +64 -434
- package/dist/packages/_es/CountDown.js +61 -242
- package/dist/packages/_es/CountUp.js +149 -548
- package/dist/packages/_es/DatePicker.js +107 -322
- package/dist/packages/_es/Dialog.js +69 -259
- package/dist/packages/_es/Divider.js +32 -45
- package/dist/packages/_es/Drag.js +56 -197
- package/dist/packages/_es/Ecard.js +24 -159
- package/dist/packages/_es/Elevator.js +63 -194
- package/dist/packages/_es/Empty.js +12 -71
- package/dist/packages/_es/FixedNav.js +15 -122
- package/dist/packages/_es/Form.js +64 -146
- package/dist/packages/_es/FormItem.js +15 -110
- package/dist/packages/_es/Grid.js +5 -6
- package/dist/packages/_es/GridItem.js +33 -144
- package/dist/packages/_es/Icon.js +15 -40
- package/dist/packages/_es/ImagePreview.js +74 -298
- package/dist/packages/_es/Indicator.js +15 -62
- package/dist/packages/_es/InfiniteLoading.js +66 -258
- package/dist/packages/_es/Input.js +51 -413
- package/dist/packages/_es/InputNumber.js +41 -160
- package/dist/packages/_es/Layout.js +4 -5
- package/dist/packages/_es/List.js +23 -109
- package/dist/packages/_es/Menu.js +30 -114
- package/dist/packages/_es/MenuItem.js +34 -161
- package/dist/packages/_es/Navbar.js +30 -94
- package/dist/packages/_es/NoticeBar.js +83 -387
- package/dist/packages/_es/Notify.js +81 -236
- package/dist/packages/_es/NumberKeyboard.js +41 -262
- package/dist/packages/_es/OldPicker.js +140 -464
- package/dist/packages/_es/OverLay.js +32 -105
- package/dist/packages/_es/Pagination.js +39 -157
- package/dist/packages/_es/Picker.js +138 -457
- package/dist/packages/_es/Popover.js +344 -185
- package/dist/packages/_es/Popup.js +64 -300
- package/dist/packages/_es/Price.js +16 -118
- package/dist/packages/_es/Progress.js +14 -146
- package/dist/packages/_es/PullRefresh.js +92 -346
- package/dist/packages/_es/Radio.js +22 -90
- package/dist/packages/_es/RadioGroup.js +8 -37
- package/dist/packages/_es/Range.js +92 -417
- package/dist/packages/_es/Rate.js +16 -139
- package/dist/packages/_es/Row.js +22 -64
- package/dist/packages/_es/SearchBar.js +46 -181
- package/dist/packages/_es/ShortPassword.js +35 -225
- package/dist/packages/_es/SideNavBar.js +33 -89
- package/dist/packages/_es/SideNavBarItem.js +11 -46
- package/dist/packages/_es/Signature.js +46 -165
- package/dist/packages/_es/Skeleton.js +20 -136
- package/dist/packages/_es/Sku.js +93 -499
- package/dist/packages/_es/Step.js +25 -119
- package/dist/packages/_es/Steps.js +18 -53
- package/dist/packages/_es/Sticky.js +53 -138
- package/dist/packages/_es/SubSideNavBar.js +26 -90
- package/dist/packages/_es/Swipe.js +46 -183
- package/dist/packages/_es/Swiper.js +121 -414
- package/dist/packages/_es/SwiperItem.js +22 -50
- package/dist/packages/_es/Switch.js +21 -116
- package/dist/packages/_es/TabPane.js +12 -35
- package/dist/packages/_es/Tabbar.js +17 -72
- package/dist/packages/_es/TabbarItem.js +29 -150
- package/dist/packages/_es/Table.js +27 -186
- package/dist/packages/_es/Tabs.js +51 -204
- package/dist/packages/_es/Tag.js +20 -97
- package/dist/packages/_es/TextArea.js +42 -160
- package/dist/packages/_es/TimeDetail.js +23 -84
- package/dist/packages/_es/TimePannel.js +19 -52
- package/dist/packages/_es/TimeSelect.js +15 -103
- package/dist/packages/_es/Toast.js +80 -319
- package/dist/packages/_es/Uploader.js +112 -459
- package/dist/packages/_es/Video.js +83 -340
- package/dist/packages/_es/common.js +38 -128
- package/dist/packages/_es/component.js +35 -76
- package/dist/packages/_es/index.js +5 -6
- package/dist/packages/_es/index2.js +9 -30
- package/dist/packages/_es/index3.js +6 -8
- package/dist/packages/_es/index4.js +13 -58
- package/dist/packages/_es/index5.js +120 -675
- package/dist/packages/_es/plugin-vue_export-helper.js +7 -8
- package/dist/packages/_es/pxCheck.js +3 -5
- package/dist/packages/_es/raf.js +8 -15
- package/dist/packages/addresslist/index.scss +2 -2
- package/dist/packages/button/index.scss +2 -1
- package/dist/packages/card/index.scss +1 -1
- package/dist/packages/cell/index.scss +15 -0
- package/dist/packages/checkbox/index.scss +6 -0
- package/dist/packages/dialog/index.scss +1 -2
- package/dist/packages/divider/index.scss +9 -0
- package/dist/packages/elevator/index.scss +21 -0
- package/dist/packages/formitem/index.scss +1 -0
- package/dist/packages/input/index.scss +13 -1
- package/dist/packages/locale/index.d.ts +8 -3
- package/dist/packages/locale/{locale/lang → lang}/baseLang.d.ts +1 -0
- package/dist/packages/locale/lang/baseLang.js +3 -3
- package/dist/packages/locale/{locale/lang → lang}/en-US.d.ts +16 -0
- package/dist/packages/locale/lang/en-US.js +5 -89
- package/dist/packages/locale/lang/id-ID.d.ts +104 -0
- package/dist/packages/locale/lang/id-ID.js +12 -0
- package/dist/packages/locale/lang/index.js +16 -38
- package/dist/packages/locale/{locale/lang → lang}/zh-CN.d.ts +16 -0
- package/dist/packages/locale/lang/zh-CN.js +5 -89
- package/dist/packages/locale/{locale/lang → lang}/zh-TW.d.ts +16 -0
- package/dist/packages/locale/lang/zh-TW.js +5 -89
- package/dist/packages/menuitem/index.scss +0 -1
- package/dist/packages/navbar/index.scss +8 -1
- package/dist/packages/popover/index.scss +402 -81
- package/dist/packages/popup/index.scss +3 -0
- package/dist/packages/radio/index.scss +1 -0
- package/dist/packages/searchbar/index.scss +4 -0
- package/dist/packages/switch/index.scss +3 -3
- package/dist/packages/tabbar/index.scss +2 -2
- package/dist/packages/tabpane/index.scss +5 -2
- package/dist/packages/tabs/index.scss +3 -0
- package/dist/packages/timeselect/index.scss +3 -2
- package/dist/smartips/attributes.json +188 -44
- package/dist/smartips/tags.json +65 -27
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +48 -48
- package/dist/styles/themes/jdb.scss +48 -48
- package/dist/styles/themes/jdt.scss +48 -48
- package/dist/styles/variables-jdb.scss +25 -8
- package/dist/styles/variables-jdt.scss +25 -8
- package/dist/styles/variables.scss +25 -7
- package/dist/types/__VUE/actionsheet/{index.d.ts → index.vue.d.ts} +62 -114
- package/dist/types/__VUE/address/{index.d.ts → index.vue.d.ts} +81 -151
- package/dist/types/__VUE/addresslist/components/{GeneralShell.d.ts → GeneralShell.vue.d.ts} +6 -7
- package/dist/types/__VUE/addresslist/components/{ItemContents.d.ts → ItemContents.vue.d.ts} +9 -11
- package/dist/types/__VUE/addresslist/components/{LongPressShell.d.ts → LongPressShell.vue.d.ts} +6 -7
- package/dist/types/__VUE/addresslist/components/{SwipeShell.d.ts → SwipeShell.vue.d.ts} +6 -7
- package/dist/types/__VUE/addresslist/{index.d.ts → index.vue.d.ts} +14 -23
- package/dist/types/__VUE/audio/index.vue.d.ts +102 -0
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +88 -0
- package/dist/types/__VUE/avatar/{index.d.ts → index.vue.d.ts} +17 -30
- package/dist/types/__VUE/avatargroup/{index.d.ts → index.vue.d.ts} +20 -35
- package/dist/types/__VUE/backtop/{index.d.ts → index.vue.d.ts} +18 -34
- package/dist/types/__VUE/badge/{index.d.ts → index.vue.d.ts} +20 -33
- package/dist/types/__VUE/barrage/{index.d.ts → index.vue.d.ts} +15 -26
- package/dist/types/__VUE/button/{index.d.ts → index.vue.d.ts} +33 -50
- package/dist/types/__VUE/button/type.d.ts +7 -0
- package/dist/types/__VUE/calendar/{index.d.ts → index.vue.d.ts} +32 -57
- package/dist/types/__VUE/calendaritem/{index.d.ts → index.vue.d.ts} +33 -58
- package/dist/types/__VUE/card/{index.d.ts → index.vue.d.ts} +19 -34
- package/dist/types/__VUE/cascader/{cascader-item.d.ts → cascader-item.vue.d.ts} +22 -23
- package/dist/types/__VUE/cascader/{index.d.ts → index.vue.d.ts} +62 -98
- package/dist/types/__VUE/category/{index.d.ts → index.vue.d.ts} +7 -10
- package/dist/types/__VUE/categorypane/{index.d.ts → index.vue.d.ts} +10 -15
- package/dist/types/__VUE/cell/{index.d.ts → index.vue.d.ts} +38 -39
- package/dist/types/__VUE/cellgroup/{index.d.ts → index.vue.d.ts} +8 -11
- package/dist/types/__VUE/checkbox/common.d.ts +59 -0
- package/dist/types/__VUE/checkbox/{index.d.ts → index.vue.d.ts} +36 -40
- package/dist/types/__VUE/checkboxgroup/{index.d.ts → index.vue.d.ts} +15 -11
- package/dist/types/__VUE/circleprogress/{index.d.ts → index.vue.d.ts} +18 -31
- package/dist/types/__VUE/col/{index.d.ts → index.vue.d.ts} +7 -10
- package/dist/types/__VUE/collapse/{index.d.ts → index.vue.d.ts} +24 -40
- package/dist/types/__VUE/collapseitem/{index.d.ts → index.vue.d.ts} +22 -30
- package/dist/types/__VUE/comment/components/{CmtBottom.d.ts → CmtBottom.vue.d.ts} +10 -15
- package/dist/types/__VUE/comment/components/{CmtHeader.d.ts → CmtHeader.vue.d.ts} +10 -15
- package/dist/types/__VUE/comment/components/{CmtImages.d.ts → CmtImages.vue.d.ts} +10 -15
- package/dist/types/__VUE/comment/{index.d.ts → index.vue.d.ts} +21 -38
- package/dist/types/__VUE/countdown/{index.d.ts → index.vue.d.ts} +21 -35
- package/dist/types/__VUE/countup/{index.d.ts → index.vue.d.ts} +41 -74
- package/dist/types/__VUE/datepicker/{index.d.ts → index.vue.d.ts} +71 -125
- package/dist/types/__VUE/datepicker/type.d.ts +6 -0
- package/dist/types/__VUE/dialog/index.d.ts +44 -302
- package/dist/types/__VUE/dialog/index.vue.d.ts +263 -0
- package/dist/types/__VUE/divider/{index.d.ts → index.vue.d.ts} +15 -15
- package/dist/types/__VUE/drag/{index.d.ts → index.vue.d.ts} +9 -19
- package/dist/types/__VUE/ecard/{index.d.ts → index.vue.d.ts} +25 -44
- package/dist/types/__VUE/elevator/{index.d.ts → index.vue.d.ts} +39 -14
- package/dist/types/__VUE/empty/{index.d.ts → index.vue.d.ts} +9 -14
- package/dist/types/__VUE/fixednav/{index.d.ts → index.vue.d.ts} +18 -34
- package/dist/types/__VUE/form/{index.d.ts → index.vue.d.ts} +5 -6
- package/dist/types/__VUE/formitem/{index.d.ts → index.vue.d.ts} +29 -55
- package/dist/types/__VUE/grid/common.d.ts +3 -3
- package/dist/types/__VUE/grid/{index.d.ts → index.vue.d.ts} +24 -40
- package/dist/types/__VUE/griditem/{index.d.ts → index.vue.d.ts} +19 -26
- package/dist/types/__VUE/icon/{index.d.ts → index.vue.d.ts} +15 -26
- package/dist/types/__VUE/imagepreview/index.d.ts +20 -121
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +108 -0
- package/dist/types/__VUE/indicator/{index.d.ts → index.vue.d.ts} +13 -24
- package/dist/types/__VUE/infiniteloading/{index.d.ts → index.vue.d.ts} +26 -47
- package/dist/types/__VUE/input/{index.d.ts → index.vue.d.ts} +81 -144
- package/dist/types/__VUE/input/type.d.ts +13 -0
- package/dist/types/__VUE/inputnumber/{index.d.ts → index.vue.d.ts} +22 -39
- package/dist/types/__VUE/layout/{index.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/list/{index.d.ts → index.vue.d.ts} +10 -14
- package/dist/types/__VUE/menu/{index.d.ts → index.vue.d.ts} +16 -14
- package/dist/types/__VUE/menuitem/{index.d.ts → index.vue.d.ts} +20 -24
- package/dist/types/__VUE/menuitem/type.d.ts +8 -0
- package/dist/types/__VUE/navbar/{index.d.ts → index.vue.d.ts} +48 -26
- package/dist/types/__VUE/noticebar/{index.d.ts → index.vue.d.ts} +35 -64
- package/dist/types/__VUE/notify/index.d.ts +12 -109
- package/dist/types/__VUE/notify/index.vue.d.ts +101 -0
- package/dist/types/__VUE/numberkeyboard/{index.d.ts → index.vue.d.ts} +41 -43
- package/dist/types/__VUE/oldpicker/{Column.d.ts → Column.vue.d.ts} +17 -22
- package/dist/types/__VUE/oldpicker/{index.d.ts → index.vue.d.ts} +75 -128
- package/dist/types/__VUE/overlay/{index.d.ts → index.vue.d.ts} +19 -30
- package/dist/types/__VUE/pagination/{index.d.ts → index.vue.d.ts} +21 -38
- package/dist/types/__VUE/picker/{Column.d.ts → Column.vue.d.ts} +16 -18
- package/dist/types/__VUE/picker/{index.d.ts → index.vue.d.ts} +79 -129
- package/dist/types/__VUE/popover/{index.d.ts → index.vue.d.ts} +85 -109
- package/dist/types/__VUE/popover/type.d.ts +6 -0
- package/dist/types/__VUE/popup/{index.d.ts → index.vue.d.ts} +45 -80
- package/dist/types/__VUE/price/{index.d.ts → index.vue.d.ts} +17 -30
- package/dist/types/__VUE/progress/{index.d.ts → index.vue.d.ts} +29 -53
- package/dist/types/__VUE/pullrefresh/{index.d.ts → index.vue.d.ts} +18 -46
- package/dist/types/__VUE/radio/{index.d.ts → index.vue.d.ts} +19 -34
- package/dist/types/__VUE/radiogroup/{index.d.ts → index.vue.d.ts} +10 -15
- package/dist/types/__VUE/range/{index.d.ts → index.vue.d.ts} +35 -47
- package/dist/types/__VUE/range/type.d.ts +5 -0
- package/dist/types/__VUE/rate/{index.d.ts → index.vue.d.ts} +30 -55
- package/dist/types/__VUE/row/{index.d.ts → index.vue.d.ts} +16 -25
- package/dist/types/__VUE/searchbar/{index.d.ts → index.vue.d.ts} +62 -32
- package/dist/types/__VUE/shortpassword/{index.d.ts → index.vue.d.ts} +25 -44
- package/dist/types/__VUE/sidenavbar/{index.d.ts → index.vue.d.ts} +6 -7
- package/dist/types/__VUE/sidenavbaritem/{index.d.ts → index.vue.d.ts} +8 -11
- package/dist/types/__VUE/signature/{index.d.ts → index.vue.d.ts} +13 -22
- package/dist/types/__VUE/skeleton/common.d.ts +3 -5
- package/dist/types/__VUE/skeleton/{index.d.ts → index.vue.d.ts} +24 -43
- package/dist/types/__VUE/sku/components/{SkuHeader.d.ts → SkuHeader.vue.d.ts} +6 -7
- package/dist/types/__VUE/sku/components/{SkuOperate.d.ts → SkuOperate.vue.d.ts} +14 -23
- package/dist/types/__VUE/sku/components/{SkuSelect.d.ts → SkuSelect.vue.d.ts} +6 -7
- package/dist/types/__VUE/sku/components/{SkuStepper.d.ts → SkuStepper.vue.d.ts} +12 -19
- package/dist/types/__VUE/sku/{index.d.ts → index.vue.d.ts} +66 -124
- package/dist/types/__VUE/step/{index.d.ts → index.vue.d.ts} +14 -23
- package/dist/types/__VUE/steps/{index.d.ts → index.vue.d.ts} +9 -14
- package/dist/types/__VUE/sticky/{index.d.ts → index.vue.d.ts} +14 -21
- package/dist/types/__VUE/subsidenavbar/{index.d.ts → index.vue.d.ts} +10 -15
- package/dist/types/__VUE/swipe/{index.d.ts → index.vue.d.ts} +11 -18
- package/dist/types/__VUE/swiper/{index.d.ts → index.vue.d.ts} +30 -50
- package/dist/types/__VUE/swiperitem/{index.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/switch/{index.d.ts → index.vue.d.ts} +28 -51
- package/dist/types/__VUE/tabbar/{index.d.ts → index.vue.d.ts} +17 -30
- package/dist/types/__VUE/tabbaritem/{index.d.ts → index.vue.d.ts} +25 -40
- package/dist/types/__VUE/table/common.d.ts +1 -1
- package/dist/types/__VUE/table/{index.d.ts → index.vue.d.ts} +14 -23
- package/dist/types/__VUE/tabpane/{index.d.ts → index.vue.d.ts} +11 -15
- package/dist/types/__VUE/tabs/common.d.ts +6 -2
- package/dist/types/__VUE/tabs/{index.d.ts → index.vue.d.ts} +30 -42
- package/dist/types/__VUE/tag/{index.d.ts → index.vue.d.ts} +21 -34
- package/dist/types/__VUE/tag/type.d.ts +5 -0
- package/dist/types/__VUE/textarea/{index.d.ts → index.vue.d.ts} +26 -45
- package/dist/types/__VUE/timedetail/{index.d.ts → index.vue.d.ts} +8 -11
- package/dist/types/__VUE/timepannel/{index.d.ts → index.vue.d.ts} +8 -11
- package/dist/types/__VUE/timeselect/{index.d.ts → index.vue.d.ts} +25 -29
- package/dist/types/__VUE/toast/index.d.ts +12 -145
- package/dist/types/__VUE/toast/index.vue.d.ts +134 -0
- package/dist/types/__VUE/uploader/{index.d.ts → index.vue.d.ts} +59 -106
- package/dist/types/__VUE/uploader/type.d.ts +18 -0
- package/dist/types/__VUE/video/{index.d.ts → index.vue.d.ts} +9 -26
- package/dist/types/index.d.ts +7 -2
- package/dist/types/nutui.d.ts +92 -92
- package/package.json +7 -3
- package/dist/packages/locale/locale/index.d.ts +0 -8
- package/dist/types/__VUE/audio/index.d.ts +0 -92
- package/dist/types/__VUE/audiooperate/index.d.ts +0 -68
|
@@ -1,440 +1,70 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.22-beta.3 Wed Jun 15 2022 20:12:30 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { resolveComponent, openBlock, createElementBlock, createElementVNode, createCommentVNode, normalizeClass, toDisplayString, renderSlot, createVNode, ref, watch, onMounted, Fragment, renderList, computed, withCtx, normalizeStyle, createTextVNode } from "vue";
|
|
7
|
-
import { c as
|
|
8
|
-
import { _ as
|
|
6
|
+
import { resolveComponent as e, openBlock as t, createElementBlock as n, createElementVNode as l, createCommentVNode as o, normalizeClass as a, toDisplayString as i, renderSlot as s, createVNode as m, ref as c, watch as r, onMounted as p, Fragment as u, renderList as d, computed as y, withCtx as g, normalizeStyle as k, createTextVNode as f } from "vue";
|
|
7
|
+
import { c as v } from "./component.js";
|
|
8
|
+
import { _ as h } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
|
-
const { componentName:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const _component_nut_rate = resolveComponent("nut-rate");
|
|
46
|
-
return openBlock(), createElementBlock("view", null, [
|
|
47
|
-
_ctx.info ? (openBlock(), createElementBlock("view", {
|
|
48
|
-
key: 0,
|
|
49
|
-
class: "nut-comment-header",
|
|
50
|
-
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
51
|
-
}, [
|
|
52
|
-
createElementVNode("view", _hoisted_1$3, [
|
|
53
|
-
createElementVNode("view", _hoisted_2$3, [
|
|
54
|
-
_ctx.info.avatar ? (openBlock(), createElementBlock("img", {
|
|
55
|
-
key: 0,
|
|
56
|
-
src: _ctx.info.avatar
|
|
57
|
-
}, null, 8, _hoisted_3$3)) : createCommentVNode("", true)
|
|
58
|
-
]),
|
|
59
|
-
_ctx.type == "default" ? (openBlock(), createElementBlock("view", {
|
|
60
|
-
key: 0,
|
|
61
|
-
class: normalizeClass([`nut-comment-header__user-${_ctx.type}`])
|
|
62
|
-
}, [
|
|
63
|
-
createElementVNode("view", {
|
|
64
|
-
class: normalizeClass([`nut-comment-header__user-${_ctx.type}-name`])
|
|
65
|
-
}, [
|
|
66
|
-
createElementVNode("span", null, toDisplayString(_ctx.info.nickName), 1),
|
|
67
|
-
renderSlot(_ctx.$slots, "labels")
|
|
68
|
-
], 2),
|
|
69
|
-
createElementVNode("view", _hoisted_4$3, [
|
|
70
|
-
createVNode(_component_nut_rate, {
|
|
71
|
-
modelValue: _ctx.info.score,
|
|
72
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.info.score = $event),
|
|
73
|
-
"icon-size": "10",
|
|
74
|
-
spacing: "5",
|
|
75
|
-
readOnly: "",
|
|
76
|
-
onChange: _ctx.handleClick
|
|
77
|
-
}, null, 8, ["modelValue", "onChange"])
|
|
78
|
-
])
|
|
79
|
-
], 2)) : (openBlock(), createElementBlock("view", {
|
|
80
|
-
key: 1,
|
|
81
|
-
class: normalizeClass([`nut-comment-header__user-${_ctx.type}`])
|
|
82
|
-
}, [
|
|
83
|
-
createElementVNode("span", {
|
|
84
|
-
class: normalizeClass([`nut-comment-header__user-${_ctx.type}-name`])
|
|
85
|
-
}, toDisplayString(_ctx.info.nickName), 3),
|
|
86
|
-
renderSlot(_ctx.$slots, "labels")
|
|
87
|
-
], 2))
|
|
88
|
-
]),
|
|
89
|
-
_ctx.info.time ? (openBlock(), createElementBlock("view", _hoisted_5$1, toDisplayString(_ctx.info.time), 1)) : createCommentVNode("", true)
|
|
90
|
-
])) : createCommentVNode("", true),
|
|
91
|
-
_ctx.type == "complex" ? (openBlock(), createElementBlock("view", {
|
|
92
|
-
key: 1,
|
|
93
|
-
class: normalizeClass([`nut-comment-header__${_ctx.type}-score`])
|
|
94
|
-
}, [
|
|
95
|
-
createVNode(_component_nut_rate, {
|
|
96
|
-
modelValue: _ctx.info.score,
|
|
97
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.info.score = $event),
|
|
98
|
-
"icon-size": "12",
|
|
99
|
-
spacing: "3"
|
|
100
|
-
}, null, 8, ["modelValue"]),
|
|
101
|
-
createElementVNode("i", {
|
|
102
|
-
class: normalizeClass([`nut-comment-header__${_ctx.type}-score-i`])
|
|
103
|
-
}, null, 2),
|
|
104
|
-
createElementVNode("view", {
|
|
105
|
-
class: normalizeClass([`nut-comment-header__${_ctx.type}-score-size`])
|
|
106
|
-
}, toDisplayString(_ctx.info.size), 3)
|
|
107
|
-
], 2)) : createCommentVNode("", true)
|
|
108
|
-
]);
|
|
109
|
-
}
|
|
110
|
-
var CommentHeader = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
|
|
111
|
-
const { componentName: componentName$2, create: create$2 } = createComponent("comment-images");
|
|
112
|
-
const _sfc_main$2 = create$2({
|
|
113
|
-
props: {
|
|
114
|
-
type: {
|
|
115
|
-
type: String,
|
|
116
|
-
default: "one"
|
|
117
|
-
},
|
|
118
|
-
videos: {
|
|
119
|
-
type: Array,
|
|
120
|
-
default: () => []
|
|
121
|
-
},
|
|
122
|
-
images: {
|
|
123
|
-
type: Array,
|
|
124
|
-
default: () => []
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
components: {},
|
|
128
|
-
emits: ["click", "clickImages"],
|
|
129
|
-
setup(props, { emit }) {
|
|
130
|
-
const isShowImage = ref(false);
|
|
131
|
-
const initIndex = ref(1);
|
|
132
|
-
const totalImages = ref([]);
|
|
133
|
-
watch(() => [props.videos, props.images], (value) => {
|
|
134
|
-
if (value[0].length > 0) {
|
|
135
|
-
value[0].forEach((el) => {
|
|
136
|
-
el.type = "video";
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
totalImages.value = value[0].concat(value[1]);
|
|
140
|
-
}, { deep: true });
|
|
141
|
-
onMounted(() => {
|
|
142
|
-
if (props.videos.length > 0) {
|
|
143
|
-
props.videos.forEach((el) => {
|
|
144
|
-
el.type = "video";
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
totalImages.value = props.videos.concat(props.images);
|
|
10
|
+
const { componentName: _, create: w } = v("comment-header"), C = w({ props: { type: { type: String, default: "default" }, info: { type: Object, default: () => {
|
|
11
|
+
} }, labels: { type: Function, default: () => "" } }, components: {}, emits: ["handleClick"], setup: (e2, { emit: t2 }) => ({ handleClick: () => {
|
|
12
|
+
t2("handleClick");
|
|
13
|
+
} }) }), b = { class: "nut-comment-header__user" }, I = { class: "nut-comment-header__user-avter" }, O = ["src"], $ = { class: "nut-comment-header__user-score" }, x = { key: 0, class: "nut-comment-header__time" };
|
|
14
|
+
var j = h(C, [["render", function(c2, r2, p2, u2, d2, y2) {
|
|
15
|
+
const g2 = e("nut-rate");
|
|
16
|
+
return t(), n("view", null, [c2.info ? (t(), n("view", { key: 0, class: "nut-comment-header", onClick: r2[1] || (r2[1] = (...e2) => c2.handleClick && c2.handleClick(...e2)) }, [l("view", b, [l("view", I, [c2.info.avatar ? (t(), n("img", { key: 0, src: c2.info.avatar }, null, 8, O)) : o("", true)]), c2.type == "default" ? (t(), n("view", { key: 0, class: a([`nut-comment-header__user-${c2.type}`]) }, [l("view", { class: a([`nut-comment-header__user-${c2.type}-name`]) }, [l("span", null, i(c2.info.nickName), 1), s(c2.$slots, "labels")], 2), l("view", $, [m(g2, { modelValue: c2.info.score, "onUpdate:modelValue": r2[0] || (r2[0] = (e2) => c2.info.score = e2), "icon-size": "10", spacing: "5", readOnly: "", onChange: c2.handleClick }, null, 8, ["modelValue", "onChange"])])], 2)) : (t(), n("view", { key: 1, class: a([`nut-comment-header__user-${c2.type}`]) }, [l("span", { class: a([`nut-comment-header__user-${c2.type}-name`]) }, i(c2.info.nickName), 3), s(c2.$slots, "labels")], 2))]), c2.info.time ? (t(), n("view", x, i(c2.info.time), 1)) : o("", true)])) : o("", true), c2.type == "complex" ? (t(), n("view", { key: 1, class: a([`nut-comment-header__${c2.type}-score`]) }, [m(g2, { modelValue: c2.info.score, "onUpdate:modelValue": r2[2] || (r2[2] = (e2) => c2.info.score = e2), "icon-size": "12", spacing: "3" }, null, 8, ["modelValue"]), l("i", { class: a([`nut-comment-header__${c2.type}-score-i`]) }, null, 2), l("view", { class: a([`nut-comment-header__${c2.type}-score-size`]) }, i(c2.info.size), 3)], 2)) : o("", true)]);
|
|
17
|
+
}]]);
|
|
18
|
+
const { componentName: z, create: H } = v("comment-images"), N = H({ props: { type: { type: String, default: "one" }, videos: { type: Array, default: () => [] }, images: { type: Array, default: () => [] } }, components: {}, emits: ["click", "clickImages"], setup(e2, { emit: t2 }) {
|
|
19
|
+
const n2 = c(false), l2 = c(1), o2 = c([]);
|
|
20
|
+
r(() => [e2.videos, e2.images], (e3) => {
|
|
21
|
+
e3[0].length > 0 && e3[0].forEach((e4) => {
|
|
22
|
+
e4.type = "video";
|
|
23
|
+
}), o2.value = e3[0].concat(e3[1]);
|
|
24
|
+
}, { deep: true }), p(() => {
|
|
25
|
+
e2.videos.length > 0 && e2.videos.forEach((e3) => {
|
|
26
|
+
e3.type = "video";
|
|
27
|
+
}), o2.value = e2.videos.concat(e2.images);
|
|
28
|
+
});
|
|
29
|
+
return { isShowImage: n2, initIndex: l2, showImages: (n3, l3) => {
|
|
30
|
+
const { videos: o3, images: a2 } = e2, i2 = n3 == "img" ? l3 - o3.length : l3;
|
|
31
|
+
t2("clickImages", { type: n3, index: i2, value: n3 == "img" ? a2[i2] : o3[i2] });
|
|
32
|
+
}, totalImages: o2 };
|
|
33
|
+
} }), S = ["onClick"], T = ["src"], A = l("view", { class: "nut-comment-images__play" }, null, -1), U = ["onClick"], V = ["src"], E = { key: 0, class: "nut-comment-images__mask" };
|
|
34
|
+
var R = h(N, [["render", function(s2, c2, r2, p2, y2, g2) {
|
|
35
|
+
const k2 = e("nut-icon");
|
|
36
|
+
return t(), n("view", { class: a(`nut-comment-images nut-comment-images--${s2.type}`) }, [(t(true), n(u, null, d(s2.videos, (e2, o2) => (t(), n("view", { class: "nut-comment-images__item nut-comment-images__item--video", key: e2.id, onClick: (e3) => s2.showImages("video", o2, o2) }, [l("img", { src: e2.mainUrl }, null, 8, T), A], 8, S))), 128)), (t(true), n(u, null, d(s2.images, (e2, a2) => (t(), n(u, { key: e2.id }, [s2.type == "multi" && s2.videos.length + a2 < 9 || s2.type != "multi" ? (t(), n("view", { key: 0, class: "nut-comment-images__item nut-comment-images__item--imgbox", onClick: (e3) => s2.showImages("img", a2 + s2.videos.length) }, [l("img", { src: e2.smallImgUrl ? e2.smallImgUrl : e2.imgUrl }, null, 8, V), s2.type == "multi" && s2.totalImages.length > 9 && s2.videos.length + a2 > 7 ? (t(), n("view", E, [l("span", null, "\u5171 " + i(s2.totalImages.length) + " \u5F20", 1), m(k2, { name: "right", size: "12" })])) : o("", true)], 8, U)) : o("", true)], 64))), 128))], 2);
|
|
37
|
+
}]]);
|
|
38
|
+
const { componentName: B, create: F, translate: L } = v("comment-bottom"), M = F({ props: { type: { type: String, default: "base" }, info: { type: Object, default: () => {
|
|
39
|
+
} }, operation: { type: Array, default: ["replay", "like", "more"] } }, components: {}, emits: ["clickOperate", "handleClick"], setup(e2, { emit: t2 }) {
|
|
40
|
+
const n2 = c(false), l2 = c([]);
|
|
41
|
+
p(() => {
|
|
42
|
+
const t3 = ["replay", "like", "more"];
|
|
43
|
+
e2.operation && e2.operation.forEach((e3) => {
|
|
44
|
+
t3.includes(e3) && l2.value.push(e3);
|
|
148
45
|
});
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
})
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}, [
|
|
175
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.videos, (itV, index2) => {
|
|
176
|
-
return openBlock(), createElementBlock("view", {
|
|
177
|
-
class: "nut-comment-images__item nut-comment-images__item--video",
|
|
178
|
-
key: itV.id,
|
|
179
|
-
onClick: ($event) => _ctx.showImages("video", index2, index2)
|
|
180
|
-
}, [
|
|
181
|
-
createElementVNode("img", {
|
|
182
|
-
src: itV.mainUrl
|
|
183
|
-
}, null, 8, _hoisted_2$2),
|
|
184
|
-
_hoisted_3$2
|
|
185
|
-
], 8, _hoisted_1$2);
|
|
186
|
-
}), 128)),
|
|
187
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.images, (itI, index2) => {
|
|
188
|
-
return openBlock(), createElementBlock(Fragment, {
|
|
189
|
-
key: itI.id
|
|
190
|
-
}, [
|
|
191
|
-
_ctx.type == "multi" && _ctx.videos.length + index2 < 9 || _ctx.type != "multi" ? (openBlock(), createElementBlock("view", {
|
|
192
|
-
key: 0,
|
|
193
|
-
class: "nut-comment-images__item nut-comment-images__item--imgbox",
|
|
194
|
-
onClick: ($event) => _ctx.showImages("img", index2 + _ctx.videos.length)
|
|
195
|
-
}, [
|
|
196
|
-
createElementVNode("img", {
|
|
197
|
-
src: itI.smallImgUrl ? itI.smallImgUrl : itI.imgUrl
|
|
198
|
-
}, null, 8, _hoisted_5),
|
|
199
|
-
_ctx.type == "multi" && _ctx.totalImages.length > 9 && _ctx.videos.length + index2 > 7 ? (openBlock(), createElementBlock("view", _hoisted_6, [
|
|
200
|
-
createElementVNode("span", null, "\u5171 " + toDisplayString(_ctx.totalImages.length) + " \u5F20", 1),
|
|
201
|
-
createVNode(_component_nut_icon, {
|
|
202
|
-
name: "right",
|
|
203
|
-
size: "12"
|
|
204
|
-
})
|
|
205
|
-
])) : createCommentVNode("", true)
|
|
206
|
-
], 8, _hoisted_4$2)) : createCommentVNode("", true)
|
|
207
|
-
], 64);
|
|
208
|
-
}), 128))
|
|
209
|
-
], 2);
|
|
210
|
-
}
|
|
211
|
-
var CommentImages = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
212
|
-
const { componentName: componentName$1, create: create$1, translate: translate$1 } = createComponent("comment-bottom");
|
|
213
|
-
const _sfc_main$1 = create$1({
|
|
214
|
-
props: {
|
|
215
|
-
type: {
|
|
216
|
-
type: String,
|
|
217
|
-
default: "base"
|
|
218
|
-
},
|
|
219
|
-
info: {
|
|
220
|
-
type: Object,
|
|
221
|
-
default: () => {
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
operation: {
|
|
225
|
-
type: Array,
|
|
226
|
-
default: ["replay", "like", "more"]
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
components: {},
|
|
230
|
-
emits: ["clickOperate", "handleClick"],
|
|
231
|
-
setup(props, { emit }) {
|
|
232
|
-
const showPopver = ref(false);
|
|
233
|
-
const mergeOp = ref([]);
|
|
234
|
-
onMounted(() => {
|
|
235
|
-
const deOp = ["replay", "like", "more"];
|
|
236
|
-
if (props.operation) {
|
|
237
|
-
props.operation.forEach((name) => {
|
|
238
|
-
if (deOp.includes(name)) {
|
|
239
|
-
mergeOp.value.push(name);
|
|
240
|
-
}
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
});
|
|
244
|
-
const operate = (type) => {
|
|
245
|
-
if (type == "more") {
|
|
246
|
-
showPopver.value = !showPopver.value;
|
|
247
|
-
}
|
|
248
|
-
emit("clickOperate", type);
|
|
249
|
-
};
|
|
250
|
-
const handleClick = () => {
|
|
251
|
-
emit("handleClick");
|
|
252
|
-
};
|
|
253
|
-
return { showPopver, operate, mergeOp, handleClick, translate: translate$1 };
|
|
254
|
-
}
|
|
255
|
-
});
|
|
256
|
-
const _hoisted_1$1 = { class: "nut-comment-bottom" };
|
|
257
|
-
const _hoisted_2$1 = { key: 0 };
|
|
258
|
-
const _hoisted_3$1 = { class: "nut-comment-bottom__cpx" };
|
|
259
|
-
const _hoisted_4$1 = ["onClick"];
|
|
260
|
-
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
261
|
-
const _component_nut_icon = resolveComponent("nut-icon");
|
|
262
|
-
return openBlock(), createElementBlock("view", _hoisted_1$1, [
|
|
263
|
-
createElementVNode("view", {
|
|
264
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
|
|
265
|
-
class: "nut-comment-bottom__lable"
|
|
266
|
-
}, [
|
|
267
|
-
_ctx.type != "complex" ? (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(_ctx.info.size), 1)) : createCommentVNode("", true)
|
|
268
|
-
]),
|
|
269
|
-
createElementVNode("view", _hoisted_3$1, [
|
|
270
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.mergeOp, (name, i) => {
|
|
271
|
-
return openBlock(), createElementBlock("view", {
|
|
272
|
-
key: i,
|
|
273
|
-
class: normalizeClass(["nut-comment-bottom__cpx-item", `nut-comment-bottom__cpx-item--${name}`]),
|
|
274
|
-
onClick: ($event) => _ctx.operate(name)
|
|
275
|
-
}, [
|
|
276
|
-
name != "more" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
277
|
-
createElementVNode("span", null, toDisplayString(_ctx.info[name]), 1),
|
|
278
|
-
createVNode(_component_nut_icon, {
|
|
279
|
-
name: name == "like" ? "fabulous" : "comment"
|
|
280
|
-
}, null, 8, ["name"])
|
|
281
|
-
], 64)) : createCommentVNode("", true),
|
|
282
|
-
name == "more" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
283
|
-
createVNode(_component_nut_icon, { name: "more-x" }),
|
|
284
|
-
_ctx.showPopver ? (openBlock(), createElementBlock("view", {
|
|
285
|
-
key: 0,
|
|
286
|
-
class: "nut-comment-bottom__cpx-item-popover",
|
|
287
|
-
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.operate("popover"))
|
|
288
|
-
}, toDisplayString(_ctx.translate("complaintsText")), 1)) : createCommentVNode("", true)
|
|
289
|
-
], 64)) : createCommentVNode("", true)
|
|
290
|
-
], 10, _hoisted_4$1);
|
|
291
|
-
}), 128))
|
|
292
|
-
])
|
|
293
|
-
]);
|
|
294
|
-
}
|
|
295
|
-
var CommentBottom = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
296
|
-
const { componentName, create, translate } = createComponent("comment");
|
|
297
|
-
const _sfc_main = create({
|
|
298
|
-
props: {
|
|
299
|
-
headerType: {
|
|
300
|
-
type: String,
|
|
301
|
-
default: "default"
|
|
302
|
-
},
|
|
303
|
-
imagesRows: {
|
|
304
|
-
type: String,
|
|
305
|
-
default: "one"
|
|
306
|
-
},
|
|
307
|
-
ellipsis: {
|
|
308
|
-
type: [String, Number, Boolean],
|
|
309
|
-
default: false
|
|
310
|
-
},
|
|
311
|
-
videos: {
|
|
312
|
-
type: Array,
|
|
313
|
-
default: () => []
|
|
314
|
-
},
|
|
315
|
-
images: {
|
|
316
|
-
type: Array,
|
|
317
|
-
default: () => []
|
|
318
|
-
},
|
|
319
|
-
info: {
|
|
320
|
-
type: Object,
|
|
321
|
-
default: () => {
|
|
322
|
-
}
|
|
323
|
-
},
|
|
324
|
-
follow: {
|
|
325
|
-
type: Object,
|
|
326
|
-
default: () => {
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
labels: {
|
|
330
|
-
type: Function,
|
|
331
|
-
default: () => ""
|
|
332
|
-
},
|
|
333
|
-
operation: {
|
|
334
|
-
type: Array,
|
|
335
|
-
default: ["replay", "like", "more"]
|
|
336
|
-
}
|
|
337
|
-
},
|
|
338
|
-
components: {
|
|
339
|
-
CommentHeader,
|
|
340
|
-
CommentImages,
|
|
341
|
-
CommentBottom
|
|
342
|
-
},
|
|
343
|
-
emits: ["click", "clickImages", "clickOperate"],
|
|
344
|
-
setup(props, { emit }) {
|
|
345
|
-
const classes = computed(() => {
|
|
346
|
-
const prefixCls = componentName;
|
|
347
|
-
return {
|
|
348
|
-
[prefixCls]: true
|
|
349
|
-
};
|
|
350
|
-
});
|
|
351
|
-
const conEllipsis = computed(() => {
|
|
352
|
-
if (props.ellipsis)
|
|
353
|
-
return props.ellipsis;
|
|
354
|
-
return props.headerType == "complex" ? 6 : 2;
|
|
355
|
-
});
|
|
356
|
-
const clickOperate = (t) => {
|
|
357
|
-
emit("clickOperate", t);
|
|
358
|
-
};
|
|
359
|
-
const handleClick = () => {
|
|
360
|
-
emit("click", props.info);
|
|
361
|
-
};
|
|
362
|
-
const clickImages = (value) => {
|
|
363
|
-
emit("clickImages", value);
|
|
364
|
-
};
|
|
365
|
-
return { classes, conEllipsis, clickOperate, handleClick, clickImages, translate };
|
|
366
|
-
}
|
|
367
|
-
});
|
|
368
|
-
const _hoisted_1 = ["innerHTML"];
|
|
369
|
-
const _hoisted_2 = { class: "nut-comment__follow-title" };
|
|
370
|
-
const _hoisted_3 = { class: "nut-comment__follow-com" };
|
|
371
|
-
const _hoisted_4 = {
|
|
372
|
-
key: 0,
|
|
373
|
-
class: "nut-comment__follow-img"
|
|
374
|
-
};
|
|
375
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
376
|
-
const _component_comment_header = resolveComponent("comment-header");
|
|
377
|
-
const _component_comment_images = resolveComponent("comment-images");
|
|
378
|
-
const _component_nut_icon = resolveComponent("nut-icon");
|
|
379
|
-
const _component_comment_bottom = resolveComponent("comment-bottom");
|
|
380
|
-
return _ctx.info && Object.keys(_ctx.info) ? (openBlock(), createElementBlock("view", {
|
|
381
|
-
key: 0,
|
|
382
|
-
class: normalizeClass(_ctx.classes)
|
|
383
|
-
}, [
|
|
384
|
-
createVNode(_component_comment_header, {
|
|
385
|
-
type: _ctx.headerType,
|
|
386
|
-
info: _ctx.info,
|
|
387
|
-
labels: _ctx.labels,
|
|
388
|
-
onHandleClick: _ctx.handleClick
|
|
389
|
-
}, {
|
|
390
|
-
labels: withCtx(() => [
|
|
391
|
-
renderSlot(_ctx.$slots, "comment-labels")
|
|
392
|
-
]),
|
|
393
|
-
_: 3
|
|
394
|
-
}, 8, ["type", "info", "labels", "onHandleClick"]),
|
|
395
|
-
renderSlot(_ctx.$slots, "feature"),
|
|
396
|
-
createElementVNode("view", {
|
|
397
|
-
class: "nut-comment__main",
|
|
398
|
-
style: normalizeStyle(`-webkit-line-clamp:${_ctx.conEllipsis}`),
|
|
399
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
|
|
400
|
-
innerHTML: _ctx.info.content.replace(/\n/g, "<br>")
|
|
401
|
-
}, null, 12, _hoisted_1),
|
|
402
|
-
createVNode(_component_comment_images, {
|
|
403
|
-
images: _ctx.images,
|
|
404
|
-
videos: _ctx.videos,
|
|
405
|
-
type: _ctx.imagesRows,
|
|
406
|
-
onClickImages: _ctx.clickImages
|
|
407
|
-
}, null, 8, ["images", "videos", "type", "onClickImages"]),
|
|
408
|
-
_ctx.follow && _ctx.follow.days > 0 ? (openBlock(), createElementBlock("view", {
|
|
409
|
-
key: 0,
|
|
410
|
-
class: "nut-comment__follow",
|
|
411
|
-
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
412
|
-
}, [
|
|
413
|
-
createElementVNode("view", _hoisted_2, [
|
|
414
|
-
createVNode(_component_nut_icon, {
|
|
415
|
-
size: "14",
|
|
416
|
-
name: "joy-smile"
|
|
417
|
-
}),
|
|
418
|
-
createTextVNode(toDisplayString(_ctx.translate("additionalReview", _ctx.follow.days)), 1)
|
|
419
|
-
]),
|
|
420
|
-
createElementVNode("view", _hoisted_3, toDisplayString(_ctx.follow.content), 1),
|
|
421
|
-
_ctx.follow.images && _ctx.follow.images.length > 0 ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
422
|
-
createTextVNode(toDisplayString(_ctx.translate("additionalImages", _ctx.follow.images.length)) + " ", 1),
|
|
423
|
-
createVNode(_component_nut_icon, {
|
|
424
|
-
size: "12",
|
|
425
|
-
name: "right"
|
|
426
|
-
})
|
|
427
|
-
])) : createCommentVNode("", true)
|
|
428
|
-
])) : createCommentVNode("", true),
|
|
429
|
-
createVNode(_component_comment_bottom, {
|
|
430
|
-
type: _ctx.headerType,
|
|
431
|
-
info: _ctx.info,
|
|
432
|
-
operation: _ctx.operation,
|
|
433
|
-
onClickOperate: _ctx.clickOperate,
|
|
434
|
-
onHandleClick: _ctx.handleClick
|
|
435
|
-
}, null, 8, ["type", "info", "operation", "onClickOperate", "onHandleClick"]),
|
|
436
|
-
renderSlot(_ctx.$slots, "comment-shop-reply")
|
|
437
|
-
], 2)) : createCommentVNode("", true);
|
|
438
|
-
}
|
|
439
|
-
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
440
|
-
export { index as default };
|
|
46
|
+
});
|
|
47
|
+
return { showPopver: n2, operate: (e3) => {
|
|
48
|
+
e3 == "more" && (n2.value = !n2.value), t2("clickOperate", e3);
|
|
49
|
+
}, mergeOp: l2, handleClick: () => {
|
|
50
|
+
t2("handleClick");
|
|
51
|
+
}, translate: L };
|
|
52
|
+
} }), P = { class: "nut-comment-bottom" }, q = { key: 0 }, D = { class: "nut-comment-bottom__cpx" }, G = ["onClick"];
|
|
53
|
+
var J = h(M, [["render", function(s2, c2, r2, p2, y2, g2) {
|
|
54
|
+
const k2 = e("nut-icon");
|
|
55
|
+
return t(), n("view", P, [l("view", { onClick: c2[0] || (c2[0] = (...e2) => s2.handleClick && s2.handleClick(...e2)), class: "nut-comment-bottom__lable" }, [s2.type != "complex" ? (t(), n("span", q, i(s2.info.size), 1)) : o("", true)]), l("view", D, [(t(true), n(u, null, d(s2.mergeOp, (e2, r3) => (t(), n("view", { key: r3, class: a(["nut-comment-bottom__cpx-item", `nut-comment-bottom__cpx-item--${e2}`]), onClick: (t2) => s2.operate(e2) }, [e2 != "more" ? (t(), n(u, { key: 0 }, [l("span", null, i(s2.info[e2]), 1), m(k2, { name: e2 == "like" ? "fabulous" : "comment" }, null, 8, ["name"])], 64)) : o("", true), e2 == "more" ? (t(), n(u, { key: 1 }, [m(k2, { name: "more-x" }), s2.showPopver ? (t(), n("view", { key: 0, class: "nut-comment-bottom__cpx-item-popover", onClick: c2[1] || (c2[1] = (e3) => s2.operate("popover")) }, i(s2.translate("complaintsText")), 1)) : o("", true)], 64)) : o("", true)], 10, G))), 128))])]);
|
|
56
|
+
}]]);
|
|
57
|
+
const { componentName: K, create: Q, translate: W } = v("comment"), X = Q({ props: { headerType: { type: String, default: "default" }, imagesRows: { type: String, default: "one" }, ellipsis: { type: [String, Number, Boolean], default: false }, videos: { type: Array, default: () => [] }, images: { type: Array, default: () => [] }, info: { type: Object, default: () => {
|
|
58
|
+
} }, follow: { type: Object, default: () => {
|
|
59
|
+
} }, labels: { type: Function, default: () => "" }, operation: { type: Array, default: ["replay", "like", "more"] } }, components: { CommentHeader: j, CommentImages: R, CommentBottom: J }, emits: ["click", "clickImages", "clickOperate"], setup: (e2, { emit: t2 }) => ({ classes: y(() => ({ [K]: true })), conEllipsis: y(() => e2.ellipsis ? e2.ellipsis : e2.headerType == "complex" ? 6 : 2), clickOperate: (e3) => {
|
|
60
|
+
t2("clickOperate", e3);
|
|
61
|
+
}, handleClick: () => {
|
|
62
|
+
t2("click", e2.info);
|
|
63
|
+
}, clickImages: (e3) => {
|
|
64
|
+
t2("clickImages", e3);
|
|
65
|
+
}, translate: W }) }), Y = ["innerHTML"], Z = { class: "nut-comment__follow-title" }, ee = { class: "nut-comment__follow-com" }, te = { key: 0, class: "nut-comment__follow-img" };
|
|
66
|
+
var ne = h(X, [["render", function(c2, r2, p2, u2, d2, y2) {
|
|
67
|
+
const v2 = e("comment-header"), h2 = e("comment-images"), _2 = e("nut-icon"), w2 = e("comment-bottom");
|
|
68
|
+
return c2.info && Object.keys(c2.info) ? (t(), n("view", { key: 0, class: a(c2.classes) }, [m(v2, { type: c2.headerType, info: c2.info, labels: c2.labels, onHandleClick: c2.handleClick }, { labels: g(() => [s(c2.$slots, "comment-labels")]), _: 3 }, 8, ["type", "info", "labels", "onHandleClick"]), s(c2.$slots, "feature"), l("view", { class: "nut-comment__main", style: k(`-webkit-line-clamp:${c2.conEllipsis}`), onClick: r2[0] || (r2[0] = (...e2) => c2.handleClick && c2.handleClick(...e2)), innerHTML: c2.info.content.replace(/\n/g, "<br>") }, null, 12, Y), m(h2, { images: c2.images, videos: c2.videos, type: c2.imagesRows, onClickImages: c2.clickImages }, null, 8, ["images", "videos", "type", "onClickImages"]), c2.follow && c2.follow.days > 0 ? (t(), n("view", { key: 0, class: "nut-comment__follow", onClick: r2[1] || (r2[1] = (...e2) => c2.handleClick && c2.handleClick(...e2)) }, [l("view", Z, [m(_2, { size: "14", name: "joy-smile" }), f(i(c2.translate("additionalReview", c2.follow.days)), 1)]), l("view", ee, i(c2.follow.content), 1), c2.follow.images && c2.follow.images.length > 0 ? (t(), n("view", te, [f(i(c2.translate("additionalImages", c2.follow.images.length)) + " ", 1), m(_2, { size: "12", name: "right" })])) : o("", true)])) : o("", true), m(w2, { type: c2.headerType, info: c2.info, operation: c2.operation, onClickOperate: c2.clickOperate, onHandleClick: c2.handleClick }, null, 8, ["type", "info", "operation", "onClickOperate", "onHandleClick"]), s(c2.$slots, "comment-shop-reply")], 2)) : o("", true);
|
|
69
|
+
}]]);
|
|
70
|
+
export { ne as default };
|