@nutui/nutui 3.2.2-beta.1 → 3.2.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 +93 -0
- package/README.md +5 -3
- package/dist/nutui.es.js +1460 -973
- package/dist/nutui.umd.js +1470 -981
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/AddressList.js +6 -7
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +1 -1
- package/dist/packages/_es/AudioOperate.js +2 -3
- package/dist/packages/_es/Avatar.js +2 -2
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +2 -2
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +70 -21
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +17 -9
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +22 -4
- package/dist/packages/_es/Category.js +1 -1
- package/dist/packages/_es/CategoryPane.js +1 -1
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +1 -1
- package/dist/packages/_es/CircleProgress.js +4 -4
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +1 -1
- package/dist/packages/_es/Comment.js +1 -1
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +3 -1
- package/dist/packages/_es/DatePicker.js +8 -3
- package/dist/packages/_es/Dialog.js +3 -3
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +5 -5
- package/dist/packages/_es/Ecard.js +2 -2
- package/dist/packages/_es/Elevator.js +3 -2
- package/dist/packages/_es/Ellipsis.js +1 -1
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +17 -10
- package/dist/packages/_es/FormItem.js +5 -4
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +1 -1
- package/dist/packages/_es/ImagePreview.js +13 -15
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +5 -6
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Invoice.js +141 -0
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +12 -6
- package/dist/packages/_es/Menu.js +1 -1
- package/dist/packages/_es/MenuItem.js +2 -2
- package/dist/packages/_es/Navbar.js +2 -2
- package/dist/packages/_es/NoticeBar.js +2 -2
- package/dist/packages/_es/Notify.js +7 -5
- package/dist/packages/_es/NumberKeyboard.js +12 -14
- package/dist/packages/_es/OldPicker.js +1 -1
- package/dist/packages/_es/OverLay.js +1 -1
- package/dist/packages/_es/Pagination.js +6 -6
- package/dist/packages/_es/Picker.js +19 -4
- package/dist/packages/_es/Popover.js +1 -1
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +2 -2
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Radio.js +3 -3
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +1 -1
- package/dist/packages/_es/Rate.js +2 -1
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +21 -7
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/SideNavBar.js +3 -3
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +7 -4
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +1 -1
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +1 -1
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +92 -11
- package/dist/packages/_es/Tag.js +1 -2
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +13 -10
- package/dist/packages/_es/TrendArrow.js +131 -0
- package/dist/packages/_es/Uploader.js +23 -8
- package/dist/packages/_es/Video.js +1 -1
- package/dist/packages/_es/WaterMark.js +1 -1
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +9 -2
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/index4.js +1 -1
- package/dist/packages/_es/index5.js +18 -12
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/_es/style.css +16 -1
- package/dist/packages/address/index.scss +17 -0
- package/dist/packages/barrage/index.scss +27 -18
- package/dist/packages/invoice/index.scss +33 -0
- package/dist/packages/list/index.scss +0 -1
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/menuitem/index.scss +3 -1
- package/dist/packages/navbar/index.scss +6 -8
- package/dist/packages/picker/index.scss +22 -0
- package/dist/packages/price/index.scss +1 -1
- package/dist/packages/searchbar/index.scss +2 -0
- package/dist/packages/tabbar/index.scss +2 -1
- package/dist/packages/textarea/index.scss +4 -1
- package/dist/packages/toast/index.scss +3 -0
- package/dist/packages/trendarrow/index.scss +17 -0
- package/dist/smartips/attributes.json +106 -22
- package/dist/smartips/tags.json +46 -17
- package/dist/smartips/web-types.json +226 -23
- package/dist/style.css +1 -1
- package/dist/styles/font/config.json +3 -1
- package/dist/styles/font/demo_index.html +51 -5
- package/dist/styles/font/iconfont.css +11 -3
- package/dist/styles/font/iconfont.js +64 -61
- package/dist/styles/font/iconfont.json +14 -0
- package/dist/styles/font/iconfont.ttf +0 -0
- package/dist/styles/font/iconfont.woff +0 -0
- package/dist/styles/font/iconfont.woff2 +0 -0
- package/dist/styles/themes/default.scss +46 -44
- package/dist/styles/themes/jdb.scss +46 -44
- package/dist/styles/themes/jdt.scss +46 -44
- package/dist/styles/variables-jdb.scss +8 -2
- package/dist/styles/variables-jdt.scss +8 -2
- package/dist/styles/variables.scss +8 -2
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +116 -62
- package/dist/types/__VUE/address/index.vue.d.ts +149 -79
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +6 -5
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +10 -7
- package/dist/types/__VUE/addresslist/components/LongPressShell.vue.d.ts +6 -5
- package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +6 -5
- package/dist/types/__VUE/addresslist/index.vue.d.ts +22 -13
- package/dist/types/__VUE/animate/index.vue.d.ts +14 -9
- package/dist/types/__VUE/audio/index.vue.d.ts +30 -17
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +6 -5
- package/dist/types/__VUE/avatar/index.vue.d.ts +32 -19
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +34 -19
- package/dist/types/__VUE/backtop/index.vue.d.ts +32 -22
- package/dist/types/__VUE/badge/index.vue.d.ts +33 -20
- package/dist/types/__VUE/barrage/index.vue.d.ts +28 -16
- package/dist/types/__VUE/button/index.vue.d.ts +43 -26
- package/dist/types/__VUE/calendar/index.vue.d.ts +62 -35
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +72 -45
- package/dist/types/__VUE/card/index.vue.d.ts +34 -19
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +25 -24
- package/dist/types/__VUE/cascader/index.vue.d.ts +108 -63
- package/dist/types/__VUE/category/index.vue.d.ts +10 -7
- package/dist/types/__VUE/categorypane/index.vue.d.ts +14 -9
- package/dist/types/__VUE/cell/index.vue.d.ts +51 -30
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +10 -7
- package/dist/types/__VUE/checkbox/index.vue.d.ts +47 -26
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +14 -9
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +30 -17
- package/dist/types/__VUE/col/index.vue.d.ts +10 -7
- package/dist/types/__VUE/collapse/index.vue.d.ts +41 -25
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +29 -21
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +14 -9
- package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +14 -9
- package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +14 -9
- package/dist/types/__VUE/comment/index.vue.d.ts +38 -21
- package/dist/types/__VUE/configprovider/index.vue.d.ts +10 -7
- package/dist/types/__VUE/countdown/index.vue.d.ts +34 -20
- package/dist/types/__VUE/countdown/util.d.ts +1 -1
- package/dist/types/__VUE/countup/index.vue.d.ts +73 -40
- package/dist/types/__VUE/datepicker/index.vue.d.ts +136 -68
- package/dist/types/__VUE/dialog/index.vue.d.ts +135 -73
- package/dist/types/__VUE/divider/index.vue.d.ts +18 -11
- package/dist/types/__VUE/drag/index.vue.d.ts +19 -9
- package/dist/types/__VUE/ecard/index.vue.d.ts +42 -23
- package/dist/types/__VUE/elevator/index.vue.d.ts +26 -15
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +26 -15
- package/dist/types/__VUE/empty/index.vue.d.ts +14 -9
- package/dist/types/__VUE/fixednav/index.vue.d.ts +38 -20
- package/dist/types/__VUE/form/common.d.ts +4 -0
- package/dist/types/__VUE/form/index.vue.d.ts +16 -6
- package/dist/types/__VUE/formitem/index.vue.d.ts +43 -23
- package/dist/types/__VUE/grid/index.vue.d.ts +40 -24
- package/dist/types/__VUE/griditem/index.vue.d.ts +25 -18
- package/dist/types/__VUE/icon/index.vue.d.ts +26 -15
- package/dist/types/__VUE/image/index.vue.d.ts +37 -25
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +42 -29
- package/dist/types/__VUE/imagepreview/index.d.ts +4 -4
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +64 -37
- package/dist/types/__VUE/indicator/index.vue.d.ts +24 -13
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +46 -25
- package/dist/types/__VUE/input/index.vue.d.ts +132 -70
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +46 -25
- package/dist/types/__VUE/invoice/index.vue.d.ts +53 -0
- package/dist/types/__VUE/layout/index.vue.d.ts +1 -1
- package/dist/types/__VUE/list/index.vue.d.ts +15 -9
- package/dist/types/__VUE/menu/index.vue.d.ts +32 -22
- package/dist/types/__VUE/menuitem/index.vue.d.ts +22 -20
- package/dist/types/__VUE/navbar/index.vue.d.ts +42 -23
- package/dist/types/__VUE/noticebar/index.vue.d.ts +63 -34
- package/dist/types/__VUE/notify/index.d.ts +15 -5
- package/dist/types/__VUE/notify/index.vue.d.ts +42 -30
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +64 -35
- package/dist/types/__VUE/oldpicker/Column.vue.d.ts +20 -15
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +123 -70
- package/dist/types/__VUE/overlay/index.vue.d.ts +30 -1547
- package/dist/types/__VUE/pagination/index.vue.d.ts +42 -25
- package/dist/types/__VUE/picker/Column.vue.d.ts +25 -19
- package/dist/types/__VUE/picker/index.vue.d.ts +138 -78
- package/dist/types/__VUE/popover/index.vue.d.ts +104 -56
- package/dist/types/__VUE/popup/index.vue.d.ts +90 -60
- package/dist/types/__VUE/price/index.vue.d.ts +30 -17
- package/dist/types/__VUE/progress/index.vue.d.ts +51 -27
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +45 -17
- package/dist/types/__VUE/radio/index.vue.d.ts +36 -21
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +14 -9
- package/dist/types/__VUE/range/index.vue.d.ts +46 -34
- package/dist/types/__VUE/rate/index.vue.d.ts +59 -32
- package/dist/types/__VUE/row/index.vue.d.ts +22 -13
- package/dist/types/__VUE/searchbar/index.vue.d.ts +72 -30
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +42 -23
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +6 -5
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +10 -7
- package/dist/types/__VUE/signature/index.vue.d.ts +22 -13
- package/dist/types/__VUE/skeleton/common.d.ts +1 -1
- package/dist/types/__VUE/skeleton/index.vue.d.ts +43 -24
- package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +6 -5
- package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +22 -13
- package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +6 -5
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +18 -11
- package/dist/types/__VUE/sku/index.vue.d.ts +124 -66
- package/dist/types/__VUE/step/index.vue.d.ts +23 -14
- package/dist/types/__VUE/steps/index.vue.d.ts +14 -9
- package/dist/types/__VUE/sticky/index.vue.d.ts +21 -14
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +14 -9
- package/dist/types/__VUE/swipe/index.vue.d.ts +18 -11
- package/dist/types/__VUE/swiper/index.vue.d.ts +54 -29
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/switch/index.vue.d.ts +50 -27
- package/dist/types/__VUE/tabbar/index.vue.d.ts +31 -18
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +42 -26
- package/dist/types/__VUE/table/common.d.ts +1 -1
- package/dist/types/__VUE/table/index.vue.d.ts +24 -15
- package/dist/types/__VUE/tabpane/index.vue.d.ts +14 -9
- package/dist/types/__VUE/tabs/common.d.ts +13 -0
- package/dist/types/__VUE/tabs/index.vue.d.ts +70 -26
- package/dist/types/__VUE/tag/index.vue.d.ts +30 -17
- package/dist/types/__VUE/textarea/index.vue.d.ts +43 -24
- package/dist/types/__VUE/timedetail/index.vue.d.ts +10 -7
- package/dist/types/__VUE/timepannel/index.vue.d.ts +10 -7
- package/dist/types/__VUE/timeselect/index.vue.d.ts +31 -18
- package/dist/types/__VUE/toast/index.d.ts +1 -1
- package/dist/types/__VUE/toast/index.vue.d.ts +60 -42
- package/dist/types/__VUE/trendarrow/index.vue.d.ts +138 -0
- package/dist/types/__VUE/uploader/index.vue.d.ts +107 -58
- package/dist/types/__VUE/video/index.vue.d.ts +26 -9
- package/dist/types/__VUE/watermark/index.vue.d.ts +70 -37
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +3 -1
- package/package.json +4 -4
- package/dist/types/__VUE/animate/type.d.ts +0 -6
- package/dist/types/__VUE/button/type.d.ts +0 -7
- package/dist/types/__VUE/cascader/types.d.ts +0 -30
- package/dist/types/__VUE/datepicker/type.d.ts +0 -6
- package/dist/types/__VUE/form/types.d.ts +0 -13
- package/dist/types/__VUE/formitem/types.d.ts +0 -10
- package/dist/types/__VUE/image/type.d.ts +0 -6
- package/dist/types/__VUE/imagepreview/types.d.ts +0 -7
- package/dist/types/__VUE/input/type.d.ts +0 -13
- package/dist/types/__VUE/menuitem/type.d.ts +0 -8
- package/dist/types/__VUE/oldpicker/commonProps.d.ts +0 -22
- package/dist/types/__VUE/oldpicker/types.d.ts +0 -24
- package/dist/types/__VUE/picker/types.d.ts +0 -26
- package/dist/types/__VUE/popover/type.d.ts +0 -6
- package/dist/types/__VUE/range/type.d.ts +0 -5
- package/dist/types/__VUE/table/types.d.ts +0 -21
- package/dist/types/__VUE/tag/type.d.ts +0 -5
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, reactive, computed, watch, toRefs, openBlock, createElementBlock, normalizeClass,
|
|
6
|
+
import { ref, reactive, computed, watch, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, renderList, renderSlot } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
10
|
const { componentName, create } = createComponent("list");
|
|
11
|
+
const clientHeight = document.documentElement.clientHeight || document.body.clientHeight || 667;
|
|
11
12
|
const _sfc_main = create({
|
|
12
13
|
props: {
|
|
13
14
|
height: {
|
|
@@ -22,7 +23,7 @@ const _sfc_main = create({
|
|
|
22
23
|
},
|
|
23
24
|
containerHeight: {
|
|
24
25
|
type: [Number],
|
|
25
|
-
default:
|
|
26
|
+
default: clientHeight
|
|
26
27
|
}
|
|
27
28
|
},
|
|
28
29
|
emits: ["scroll", "scroll-bottom"],
|
|
@@ -33,8 +34,11 @@ const _sfc_main = create({
|
|
|
33
34
|
start: 0,
|
|
34
35
|
list: props.listData.slice()
|
|
35
36
|
});
|
|
37
|
+
const getContainerHeight = computed(() => {
|
|
38
|
+
return Math.min(props.containerHeight, clientHeight);
|
|
39
|
+
});
|
|
36
40
|
const visibleCount = computed(() => {
|
|
37
|
-
return Math.ceil(
|
|
41
|
+
return Math.ceil(getContainerHeight.value / props.height);
|
|
38
42
|
});
|
|
39
43
|
const end = computed(() => {
|
|
40
44
|
return state.start + visibleCount.value;
|
|
@@ -77,13 +81,15 @@ const _sfc_main = create({
|
|
|
77
81
|
listHeight,
|
|
78
82
|
visibleData,
|
|
79
83
|
classes,
|
|
84
|
+
getContainerHeight,
|
|
80
85
|
handleScrollEvent
|
|
81
86
|
};
|
|
82
87
|
}
|
|
83
88
|
});
|
|
84
89
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
85
|
-
return openBlock(), createElementBlock("
|
|
90
|
+
return openBlock(), createElementBlock("div", {
|
|
86
91
|
class: normalizeClass(_ctx.classes),
|
|
92
|
+
style: normalizeStyle({ height: `${_ctx.getContainerHeight}px` }),
|
|
87
93
|
onScrollPassive: _cache[0] || (_cache[0] = (...args) => _ctx.handleScrollEvent && _ctx.handleScrollEvent(...args)),
|
|
88
94
|
ref: "list"
|
|
89
95
|
}, [
|
|
@@ -108,7 +114,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
108
114
|
], 4);
|
|
109
115
|
}), 128))
|
|
110
116
|
], 4)
|
|
111
|
-
],
|
|
117
|
+
], 38);
|
|
112
118
|
}
|
|
113
119
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
114
120
|
export { index as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -119,7 +119,7 @@ const _sfc_main = create({
|
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
|
-
const _hoisted_1 = { class: "nut-menu-item__content" };
|
|
122
|
+
const _hoisted_1 = { class: "nut-menu-item__content nut-menu-item__overflow" };
|
|
123
123
|
const _hoisted_2 = ["onClick"];
|
|
124
124
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
125
125
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -10,7 +10,7 @@ import "../locale/lang";
|
|
|
10
10
|
const { componentName, create } = createComponent("navbar");
|
|
11
11
|
const _sfc_main = create({
|
|
12
12
|
props: {
|
|
13
|
-
leftShow: { type: Boolean, default:
|
|
13
|
+
leftShow: { type: Boolean, default: false },
|
|
14
14
|
title: { type: String, default: "" },
|
|
15
15
|
titIcon: { type: String, default: "" },
|
|
16
16
|
leftText: { type: String, default: "" },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -322,7 +322,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
322
322
|
class: normalizeClass(["content", _ctx.animationClass, { "nut-ellipsis": _ctx.isEllipsis }]),
|
|
323
323
|
style: normalizeStyle(_ctx.contentStyle),
|
|
324
324
|
onAnimationend: _cache[0] || (_cache[0] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args)),
|
|
325
|
-
|
|
325
|
+
"on:webkitAnimationEnd": _cache[1] || (_cache[1] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args))
|
|
326
326
|
}, [
|
|
327
327
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
328
328
|
createTextVNode(toDisplayString(_ctx.text), 1)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -11,7 +11,7 @@ import "../locale/lang";
|
|
|
11
11
|
import "./OverLay.js";
|
|
12
12
|
import "./Icon.js";
|
|
13
13
|
import "./pxCheck.js";
|
|
14
|
-
const {
|
|
14
|
+
const { create } = createComponent("notify");
|
|
15
15
|
const _sfc_main = create({
|
|
16
16
|
components: {
|
|
17
17
|
[Popup.name]: Popup
|
|
@@ -46,7 +46,7 @@ const _sfc_main = create({
|
|
|
46
46
|
onClick: Function,
|
|
47
47
|
unmount: Function
|
|
48
48
|
},
|
|
49
|
-
setup(props
|
|
49
|
+
setup(props) {
|
|
50
50
|
let timer = null;
|
|
51
51
|
const state = reactive({
|
|
52
52
|
mounted: false
|
|
@@ -124,7 +124,9 @@ const defaultOptions = {
|
|
|
124
124
|
color: void 0,
|
|
125
125
|
background: void 0,
|
|
126
126
|
duration: 3e3,
|
|
127
|
-
className: ""
|
|
127
|
+
className: "",
|
|
128
|
+
teleport: "",
|
|
129
|
+
unmount: new Function()
|
|
128
130
|
};
|
|
129
131
|
let idsMap = [];
|
|
130
132
|
let optsMap = [];
|
|
@@ -158,7 +160,7 @@ const updateNotify = (opts) => {
|
|
|
158
160
|
}
|
|
159
161
|
const instance = createVNode(Notify, opts);
|
|
160
162
|
render(instance, container);
|
|
161
|
-
return instance.component.
|
|
163
|
+
return instance.component.data;
|
|
162
164
|
}
|
|
163
165
|
};
|
|
164
166
|
const mountNotify = (opts) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, computed, watch,
|
|
6
|
+
import { ref, computed, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList, normalizeClass, createTextVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
@@ -143,7 +143,7 @@ const _sfc_main = create({
|
|
|
143
143
|
emit("update:value", props.value.slice(0, props.value.length - 1));
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
function onTouchMove(
|
|
146
|
+
function onTouchMove(event) {
|
|
147
147
|
event.stopPropagation();
|
|
148
148
|
}
|
|
149
149
|
function onTouchEnd(event) {
|
|
@@ -153,8 +153,6 @@ const _sfc_main = create({
|
|
|
153
153
|
function closeBoard() {
|
|
154
154
|
emit("close");
|
|
155
155
|
}
|
|
156
|
-
onMounted(() => {
|
|
157
|
-
});
|
|
158
156
|
return {
|
|
159
157
|
clickKeyIndex,
|
|
160
158
|
defaultKey,
|
|
@@ -182,7 +180,7 @@ const _hoisted_2 = {
|
|
|
182
180
|
const _hoisted_3 = { class: "tit" };
|
|
183
181
|
const _hoisted_4 = { class: "number-board-body" };
|
|
184
182
|
const _hoisted_5 = { class: "number-board" };
|
|
185
|
-
const _hoisted_6 = ["onTouchstart"
|
|
183
|
+
const _hoisted_6 = ["onTouchstart"];
|
|
186
184
|
const _hoisted_7 = {
|
|
187
185
|
key: 1,
|
|
188
186
|
src: "https://img11.360buyimg.com/imagetools/jfs/t1/146371/38/8485/738/5f606425Eca239740/14f4b4f5f20d8a68.png"
|
|
@@ -204,12 +202,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
204
202
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
205
203
|
return openBlock(), createBlock(_component_nut_popup, {
|
|
206
204
|
visible: _ctx.show,
|
|
207
|
-
"onUpdate:visible": _cache[
|
|
205
|
+
"onUpdate:visible": _cache[7] || (_cache[7] = ($event) => _ctx.show = $event),
|
|
208
206
|
position: "bottom",
|
|
209
207
|
teleport: _ctx.teleport,
|
|
210
208
|
popClass: _ctx.popClass,
|
|
211
209
|
overlay: _ctx.overlay,
|
|
212
|
-
onClickOverlay: _cache[
|
|
210
|
+
onClickOverlay: _cache[8] || (_cache[8] = ($event) => _ctx.closeBoard()),
|
|
213
211
|
isWrapTeleport: _ctx.isWrapTeleport,
|
|
214
212
|
"overlay-class": "nut-numberkeyboard-overlay"
|
|
215
213
|
}, {
|
|
@@ -243,8 +241,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
243
241
|
{ delete: item.type == "delete" }
|
|
244
242
|
]),
|
|
245
243
|
onTouchstart: (event) => _ctx.onTouchstart(item, event),
|
|
246
|
-
onTouchmove: (event) => _ctx.onTouchMove(
|
|
247
|
-
onTouchend: _cache[
|
|
244
|
+
onTouchmove: _cache[1] || (_cache[1] = (event) => _ctx.onTouchMove(event)),
|
|
245
|
+
onTouchend: _cache[2] || (_cache[2] = (event) => _ctx.onTouchEnd(event))
|
|
248
246
|
}, [
|
|
249
247
|
item.type == "number" || item.type == "custom" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
250
248
|
createTextVNode(toDisplayString(item.id), 1)
|
|
@@ -259,14 +257,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
259
257
|
createElementVNode("div", _hoisted_10, [
|
|
260
258
|
createElementVNode("div", {
|
|
261
259
|
class: normalizeClass(["key", { active: _ctx.clickKeyIndex == "delete" }]),
|
|
262
|
-
onTouchstart: _cache[
|
|
263
|
-
onTouchmove: _cache[
|
|
264
|
-
onTouchend: _cache[
|
|
260
|
+
onTouchstart: _cache[3] || (_cache[3] = (event) => _ctx.onTouchstart({ id: "delete", type: "delete" }, event)),
|
|
261
|
+
onTouchmove: _cache[4] || (_cache[4] = (event) => _ctx.onTouchMove({ id: "delete", type: "delete" }, event)),
|
|
262
|
+
onTouchend: _cache[5] || (_cache[5] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
265
263
|
}, _hoisted_12, 34)
|
|
266
264
|
]),
|
|
267
265
|
createElementVNode("div", {
|
|
268
266
|
class: "key-board-wrapper key-board-finish",
|
|
269
|
-
onClick: _cache[
|
|
267
|
+
onClick: _cache[6] || (_cache[6] = ($event) => _ctx.closeBoard())
|
|
270
268
|
}, [
|
|
271
269
|
createElementVNode("div", {
|
|
272
270
|
class: normalizeClass(["key", "finish", { activeFinsh: _ctx.clickKeyIndex == "finish" }])
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@ import { toRefs, computed, watchEffect, openBlock, createElementBlock, createEle
|
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
|
-
const {
|
|
10
|
+
const { create, translate } = createComponent("pagination");
|
|
11
11
|
const _sfc_main = create({
|
|
12
12
|
props: {
|
|
13
13
|
modelValue: {
|
|
@@ -64,7 +64,7 @@ const _sfc_main = create({
|
|
|
64
64
|
if (isSelect)
|
|
65
65
|
emit("change", curPage);
|
|
66
66
|
};
|
|
67
|
-
const setPage = (number, text, active) => {
|
|
67
|
+
const setPage = (number, text, active = false) => {
|
|
68
68
|
return { number, text, active };
|
|
69
69
|
};
|
|
70
70
|
const pages = computed(() => {
|
|
@@ -72,16 +72,16 @@ const _sfc_main = create({
|
|
|
72
72
|
return;
|
|
73
73
|
let items = [];
|
|
74
74
|
const pageCount = countRef.value;
|
|
75
|
-
const pageSize = showPageSize.value;
|
|
75
|
+
const pageSize = +showPageSize.value;
|
|
76
76
|
let startPage = 1;
|
|
77
77
|
let endPage = pageCount;
|
|
78
78
|
const partialShow = pageCount > pageSize;
|
|
79
79
|
if (partialShow) {
|
|
80
80
|
startPage = Math.max(modelValue.value - Math.floor(pageSize / 2), 1);
|
|
81
|
-
endPage = startPage + pageSize - 1;
|
|
81
|
+
endPage = startPage + +pageSize - 1;
|
|
82
82
|
if (endPage > pageCount) {
|
|
83
83
|
endPage = pageCount;
|
|
84
|
-
startPage = endPage - pageSize + 1;
|
|
84
|
+
startPage = endPage - +pageSize + 1;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
for (var i = startPage; i <= endPage; i++) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -97,7 +97,7 @@ const _sfc_main$1 = create$1({
|
|
|
97
97
|
};
|
|
98
98
|
const onTouchMove = (event) => {
|
|
99
99
|
touch.move(event);
|
|
100
|
-
if (touch.isVertical) {
|
|
100
|
+
if (touch.isVertical()) {
|
|
101
101
|
moving.value = true;
|
|
102
102
|
preventDefault(event, true);
|
|
103
103
|
}
|
|
@@ -189,6 +189,7 @@ const _sfc_main$1 = create$1({
|
|
|
189
189
|
};
|
|
190
190
|
const stopMomentum = () => {
|
|
191
191
|
moving.value = false;
|
|
192
|
+
touchTime.value = 0;
|
|
192
193
|
setChooseValue();
|
|
193
194
|
};
|
|
194
195
|
watch(
|
|
@@ -330,7 +331,12 @@ const _sfc_main = create({
|
|
|
330
331
|
formattedColumns: props.columns
|
|
331
332
|
});
|
|
332
333
|
let defaultValues = ref(props.modelValue);
|
|
333
|
-
ref();
|
|
334
|
+
const pickerColumn = ref([]);
|
|
335
|
+
const swipeRef = (el) => {
|
|
336
|
+
if (el && pickerColumn.value.length < columnsList.value.length) {
|
|
337
|
+
pickerColumn.value.push(el);
|
|
338
|
+
}
|
|
339
|
+
};
|
|
334
340
|
const classes = computed(() => {
|
|
335
341
|
const prefixCls = componentName;
|
|
336
342
|
return {
|
|
@@ -420,6 +426,9 @@ const _sfc_main = create({
|
|
|
420
426
|
}
|
|
421
427
|
};
|
|
422
428
|
const confirmHandler = () => {
|
|
429
|
+
pickerColumn.value.length > 0 && pickerColumn.value.forEach((column2) => {
|
|
430
|
+
column2.stopMomentum();
|
|
431
|
+
});
|
|
423
432
|
if (defaultValues.value && !defaultValues.value.length) {
|
|
424
433
|
columnsList.value.forEach((columns) => {
|
|
425
434
|
defaultValues.value.push(columns[0].value);
|
|
@@ -464,6 +473,8 @@ const _sfc_main = create({
|
|
|
464
473
|
() => props.visible,
|
|
465
474
|
(val) => {
|
|
466
475
|
state.show = val;
|
|
476
|
+
if (val)
|
|
477
|
+
pickerColumn.value = [];
|
|
467
478
|
}
|
|
468
479
|
);
|
|
469
480
|
watch(
|
|
@@ -483,7 +494,9 @@ const _sfc_main = create({
|
|
|
483
494
|
changeHandler,
|
|
484
495
|
confirmHandler,
|
|
485
496
|
defaultValues,
|
|
486
|
-
translate
|
|
497
|
+
translate,
|
|
498
|
+
pickerColumn,
|
|
499
|
+
swipeRef
|
|
487
500
|
};
|
|
488
501
|
}
|
|
489
502
|
});
|
|
@@ -532,6 +545,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
532
545
|
key: columnIndex
|
|
533
546
|
}, [
|
|
534
547
|
createVNode(_component_nut_picker_column, {
|
|
548
|
+
ref_for: true,
|
|
549
|
+
ref: _ctx.swipeRef,
|
|
535
550
|
itemShow: _ctx.show,
|
|
536
551
|
column: column2,
|
|
537
552
|
readonly: _ctx.readonly,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -60,7 +60,7 @@ const _sfc_main = create({
|
|
|
60
60
|
default: true
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
|
-
setup(props
|
|
63
|
+
setup(props) {
|
|
64
64
|
const slotDefault = !!useSlots().default;
|
|
65
65
|
const height = ref(props.strokeWidth + "px");
|
|
66
66
|
const progressOuter = ref();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -20,7 +20,7 @@ const _sfc_main = create({
|
|
|
20
20
|
default: "round"
|
|
21
21
|
},
|
|
22
22
|
label: {
|
|
23
|
-
type: [String, Number],
|
|
23
|
+
type: [String, Number, Boolean],
|
|
24
24
|
default: ""
|
|
25
25
|
},
|
|
26
26
|
iconName: {
|
|
@@ -47,7 +47,7 @@ const _sfc_main = create({
|
|
|
47
47
|
setup(props, { emit, slots }) {
|
|
48
48
|
let parent = inject("parent", null);
|
|
49
49
|
const isCurValue = computed(() => {
|
|
50
|
-
return parent.label.value
|
|
50
|
+
return parent.label.value === props.label;
|
|
51
51
|
});
|
|
52
52
|
const color = computed(() => {
|
|
53
53
|
return !props.disabled ? isCurValue.value ? "nut-radio__icon" : "nut-radio__icon--unchecked" : "nut-radio__icon--disable";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -156,6 +156,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
156
156
|
return openBlock(), createElementBlock("view", {
|
|
157
157
|
class: "nut-rate-item",
|
|
158
158
|
key: n,
|
|
159
|
+
ref_for: true,
|
|
159
160
|
ref: "rateRefs",
|
|
160
161
|
id: "rateRefs-" + _ctx.refRandomId + n,
|
|
161
162
|
style: normalizeStyle({ marginRight: _ctx.pxCheck(_ctx.spacing) })
|
package/dist/packages/_es/Row.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -34,6 +34,10 @@ const _sfc_main = create({
|
|
|
34
34
|
type: Boolean,
|
|
35
35
|
default: true
|
|
36
36
|
},
|
|
37
|
+
clearIcon: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: "circle-close"
|
|
40
|
+
},
|
|
37
41
|
background: {
|
|
38
42
|
type: String,
|
|
39
43
|
default: ""
|
|
@@ -42,6 +46,11 @@ const _sfc_main = create({
|
|
|
42
46
|
type: String,
|
|
43
47
|
default: ""
|
|
44
48
|
},
|
|
49
|
+
focusStyle: {
|
|
50
|
+
type: Object,
|
|
51
|
+
default: () => {
|
|
52
|
+
}
|
|
53
|
+
},
|
|
45
54
|
autofocus: {
|
|
46
55
|
type: Boolean,
|
|
47
56
|
default: false
|
|
@@ -93,10 +102,12 @@ const _sfc_main = create({
|
|
|
93
102
|
emit("update:modelValue", val, event);
|
|
94
103
|
emit("change", val, event);
|
|
95
104
|
};
|
|
105
|
+
const focusCss = ref({});
|
|
96
106
|
const valueFocus = (event) => {
|
|
97
107
|
const input = event.target;
|
|
98
108
|
let value = input.value;
|
|
99
109
|
state.active = true;
|
|
110
|
+
focusCss.value = props.focusStyle;
|
|
100
111
|
emit("focus", value, event);
|
|
101
112
|
};
|
|
102
113
|
const valueBlur = (event) => {
|
|
@@ -108,6 +119,7 @@ const _sfc_main = create({
|
|
|
108
119
|
if (props.maxLength && value.length > Number(props.maxLength)) {
|
|
109
120
|
value = value.slice(0, Number(props.maxLength));
|
|
110
121
|
}
|
|
122
|
+
focusCss.value = {};
|
|
111
123
|
emit("blur", value, event);
|
|
112
124
|
};
|
|
113
125
|
const handleClear = (event) => {
|
|
@@ -128,9 +140,10 @@ const _sfc_main = create({
|
|
|
128
140
|
emit("click-right-icon", props.modelValue, event);
|
|
129
141
|
};
|
|
130
142
|
const styleSearchbar = computed(() => {
|
|
131
|
-
|
|
132
|
-
|
|
143
|
+
const style = {
|
|
144
|
+
textAlign: props.inputAlign
|
|
133
145
|
};
|
|
146
|
+
return style;
|
|
134
147
|
});
|
|
135
148
|
const inputsearch = ref(null);
|
|
136
149
|
onMounted(() => {
|
|
@@ -148,6 +161,7 @@ const _sfc_main = create({
|
|
|
148
161
|
handleSubmit,
|
|
149
162
|
searchbarStyle,
|
|
150
163
|
inputSearchbarStyle,
|
|
164
|
+
focusCss,
|
|
151
165
|
translate,
|
|
152
166
|
clickInput,
|
|
153
167
|
leftIconClick,
|
|
@@ -182,7 +196,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
182
196
|
])) : createCommentVNode("", true),
|
|
183
197
|
createElementVNode("view", {
|
|
184
198
|
class: "nut-searchbar__search-input",
|
|
185
|
-
style: normalizeStyle(_ctx.inputSearchbarStyle)
|
|
199
|
+
style: normalizeStyle({ ..._ctx.inputSearchbarStyle, ..._ctx.focusCss })
|
|
186
200
|
}, [
|
|
187
201
|
_ctx.$slots.leftin ? (openBlock(), createElementBlock("view", {
|
|
188
202
|
key: 0,
|
|
@@ -218,12 +232,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
218
232
|
class: "nut-searchbar__input-clear"
|
|
219
233
|
}, [
|
|
220
234
|
createVNode(_component_nut_icon, {
|
|
221
|
-
name:
|
|
235
|
+
name: _ctx.clearIcon,
|
|
222
236
|
size: "12",
|
|
223
237
|
color: "#555"
|
|
224
|
-
})
|
|
238
|
+
}, null, 8, ["name"])
|
|
225
239
|
], 512)), [
|
|
226
|
-
[vShow, _ctx.modelValue.length > 0]
|
|
240
|
+
[vShow, String(_ctx.modelValue).length > 0]
|
|
227
241
|
]) : createCommentVNode("", true)
|
|
228
242
|
]),
|
|
229
243
|
_ctx.$slots.rightin ? (openBlock(), createElementBlock("view", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -16,7 +16,7 @@ const _sfc_main = create({
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
emits: [],
|
|
19
|
-
setup: (props
|
|
19
|
+
setup: (props) => {
|
|
20
20
|
const list = ref(null);
|
|
21
21
|
const state = reactive({
|
|
22
22
|
count: 1,
|
|
@@ -31,7 +31,7 @@ const _sfc_main = create({
|
|
|
31
31
|
const setPaddingLeft = (nodeList, level = 1) => {
|
|
32
32
|
for (let i = 0; i < nodeList.length; i++) {
|
|
33
33
|
let item = nodeList[i];
|
|
34
|
-
item.children[0].style.paddingLeft = props.offset * level + "px";
|
|
34
|
+
item.children[0].style.paddingLeft = +props.offset * level + "px";
|
|
35
35
|
if (!item.className.includes("nut-sidenavbaritem")) {
|
|
36
36
|
setPaddingLeft(Array.from(item.children[1].children), ++state.count);
|
|
37
37
|
}
|