@nutui/nutui 3.1.23-beta.4 → 3.2.0
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 +41 -1
- package/dist/nutui.es.js +164 -103
- package/dist/nutui.umd.js +164 -103
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +5 -4
- package/dist/packages/_es/AddressList.js +2 -2
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +29 -44
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +1 -1
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +1 -1
- 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 +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +11 -10
- 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 +1 -1
- package/dist/packages/_es/DatePicker.js +9 -3
- package/dist/packages/_es/Dialog.js +1 -1
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +1 -1
- package/dist/packages/_es/Elevator.js +1 -1
- 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 +1 -1
- package/dist/packages/_es/FormItem.js +1 -1
- 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 +1 -1
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +31 -4
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +1 -1
- package/dist/packages/_es/Menu.js +1 -1
- package/dist/packages/_es/MenuItem.js +8 -4
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +1 -1
- package/dist/packages/_es/Notify.js +5 -11
- package/dist/packages/_es/NumberKeyboard.js +1 -1
- package/dist/packages/_es/OldPicker.js +1 -1
- package/dist/packages/_es/OverLay.js +1 -1
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +13 -3
- 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 +1 -1
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Radio.js +1 -1
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +1 -1
- package/dist/packages/_es/Rate.js +1 -1
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/SideNavBar.js +1 -1
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +21 -8
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +1 -1
- 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 +36 -21
- package/dist/packages/_es/Tabs.js +1 -1
- package/dist/packages/_es/Tag.js +1 -1
- 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 +1 -1
- package/dist/packages/_es/Uploader.js +8 -3
- 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 +1 -1
- 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 +1 -1
- 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/actionsheet/index.scss +17 -0
- package/dist/packages/address/index.scss +60 -0
- package/dist/packages/audio/index.scss +8 -0
- package/dist/packages/backtop/index.scss +8 -0
- package/dist/packages/badge/index.scss +8 -0
- package/dist/packages/barrage/index.scss +7 -0
- package/dist/packages/calendar/index.scss +27 -1
- package/dist/packages/card/index.scss +8 -1
- package/dist/packages/circleprogress/index.scss +6 -0
- package/dist/packages/collapseitem/index.scss +21 -0
- package/dist/packages/comment/index.scss +37 -0
- package/dist/packages/countup/index.scss +24 -3
- package/dist/packages/ecard/index.scss +31 -1
- package/dist/packages/elevator/index.scss +16 -0
- package/dist/packages/empty/index.scss +6 -0
- package/dist/packages/image/index.scss +12 -0
- package/dist/packages/infiniteloading/index.scss +18 -0
- 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/noticebar/index.scss +13 -0
- package/dist/packages/notify/index.scss +5 -0
- package/dist/packages/numberkeyboard/index.scss +10 -0
- package/dist/packages/oldpicker/index.scss +2 -0
- package/dist/packages/picker/index.scss +35 -0
- package/dist/packages/popup/index.scss +10 -0
- package/dist/packages/shortpassword/index.scss +20 -0
- package/dist/packages/sidenavbaritem/index.scss +9 -0
- package/dist/packages/sku/index.scss +40 -0
- package/dist/packages/subsidenavbar/index.scss +12 -0
- package/dist/packages/textarea/index.scss +6 -0
- package/dist/smartips/attributes.json +5 -1
- package/dist/smartips/tags.json +2 -1
- package/dist/smartips/web-types.json +11 -2
- 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 +8 -1
- package/dist/styles/variables-jdt.scss +8 -1
- package/dist/styles/variables.scss +8 -1
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +4 -4
- package/dist/types/__VUE/address/index.vue.d.ts +3 -3
- package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -1
- package/dist/types/__VUE/audio/index.vue.d.ts +4 -1
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +1 -1
- package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +3 -3
- package/dist/types/__VUE/backtop/index.vue.d.ts +5 -5
- package/dist/types/__VUE/badge/index.vue.d.ts +2 -2
- package/dist/types/__VUE/button/index.vue.d.ts +2 -2
- package/dist/types/__VUE/calendar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cascader/index.vue.d.ts +2 -2
- package/dist/types/__VUE/categorypane/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +8 -8
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +1 -1
- package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +3 -3
- package/dist/types/__VUE/configprovider/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countdown/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/datepicker/index.vue.d.ts +3 -3
- package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
- package/dist/types/__VUE/fixednav/index.vue.d.ts +3 -3
- package/dist/types/__VUE/formitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/grid/index.vue.d.ts +2 -2
- package/dist/types/__VUE/griditem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +1 -1
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -1
- package/dist/types/__VUE/input/index.vue.d.ts +3 -2
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
- package/dist/types/__VUE/menu/index.vue.d.ts +2 -2
- package/dist/types/__VUE/menuitem/index.vue.d.ts +7 -1
- package/dist/types/__VUE/noticebar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/notify/index.vue.d.ts +5 -5
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +3 -3
- package/dist/types/__VUE/oldpicker/Column.vue.d.ts +1 -1
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +4 -4
- package/dist/types/__VUE/overlay/index.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/index.vue.d.ts +16 -16
- package/dist/types/__VUE/popover/index.vue.d.ts +6 -6
- package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +1 -1
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/range/index.vue.d.ts +1 -1
- package/dist/types/__VUE/rate/index.vue.d.ts +2 -2
- package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +2 -2
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/signature/index.vue.d.ts +5 -2
- package/dist/types/__VUE/sku/index.vue.d.ts +3 -3
- package/dist/types/__VUE/step/index.vue.d.ts +2 -2
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +3 -3
- package/dist/types/__VUE/table/common.d.ts +3 -0
- package/dist/types/__VUE/table/index.vue.d.ts +3 -0
- package/dist/types/__VUE/table/types.d.ts +2 -0
- package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -1
- package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timedetail/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timepannel/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
- package/dist/types/__VUE/toast/index.vue.d.ts +2 -2
- package/dist/types/__VUE/uploader/index.vue.d.ts +11 -4
- package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
- package/dist/types/__VUE/video/index.vue.d.ts +1 -1
- package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,44 @@
|
|
|
1
|
+
## v3.2.0
|
|
2
|
+
|
|
3
|
+
`2022-08-01`
|
|
4
|
+
|
|
5
|
+
NutUI 非常感谢您对开源事业做出的贡献!🌷🌷🌷
|
|
6
|
+
本次社区贡献者 @LadyChatterleyLover @Zhengqbbb @zjyau @hydraZty
|
|
7
|
+
|
|
8
|
+
* :sparkles: 暗黑模式适配支持 @nutui-teams
|
|
9
|
+
* :sparkles: feat: 新增 WaterMark 水印组件 @lkjh3214
|
|
10
|
+
* :sparkles: feat: imagepreview 缩放功能 (#1425) @yangxiaolu1993
|
|
11
|
+
* :sparkles: feat(popup): support muti stacks @szg2008
|
|
12
|
+
* :sparkles: feat(swiper): support show center @szg2008
|
|
13
|
+
* :sparkles: feat(category): onchange add (sku) (#1440) @zjyau
|
|
14
|
+
* :sparkles: feat(picker): 惯性滚动与性能优化 (#1453) & 平铺功能 @yangxiaolu1993
|
|
15
|
+
* :sparkles: feat(card): add price slot (#1452) @zjyau
|
|
16
|
+
* :sparkles: feat(tabbar): add new props name#1449 (#1471) @Drjingfubo
|
|
17
|
+
* :sparkles: feat(uploader): add props before-xhr-upload @richard1015
|
|
18
|
+
* :sparkles: feat(Table): 增加标题,列表样式参数 (#1460) @zjyau
|
|
19
|
+
* :sparkles: feat(audio): 新增can-play事件 (#1515) @eiinu
|
|
20
|
+
* :sparkles: feat(menuitem): 增加自定义titleClass属性和优化input组件disabled和readonly状态下的事件处理 (#1480) @LadyChatterleyLover
|
|
21
|
+
* :sparkles: feat(address): address 新增底部插槽 (#1509) @yangxiaolu1993
|
|
22
|
+
* :sparkles: feat(signature): 组件增加签名开始、结束、进行中回调函数 (#1520) @Ymm0008
|
|
23
|
+
* :zap: chore: use cz-git commitizen adapter (#1424) @Zhengqbbb
|
|
24
|
+
* :bug: fix(navbar): taro init height error @ailululu
|
|
25
|
+
* :bug: fix(textarea): 支付宝小程序限制重影问题 #1514 @richard1015
|
|
26
|
+
* :bug: fix(picker): 小程序重影问题 #1514 @richard1015
|
|
27
|
+
* :bug: fix(checkbox、switch): async change value , emit change fn @richard1015
|
|
28
|
+
* :bug: fix(actionsheet): add new props #1395 (#1456) @Drjingfubo
|
|
29
|
+
* :bug: fix(datepicker): top 插槽未生效问题 (#1501) @eiinu
|
|
30
|
+
* :bug: fix(noticebar、swiper): md文档问题;修复noticebar右侧图标垂直居中问题;修复audio显示时长问题 (#1510) @eiinu
|
|
31
|
+
* :bug: fix: 修复折叠面板手风琴模式; @Ymm0008
|
|
32
|
+
* :bug: fix: 修复notify标签式展示报错问题及class类名问题; @Ymm0008
|
|
33
|
+
* :bug: fix: 解决签名组件(Signat… @Ymm0008
|
|
34
|
+
* :bug: fix: 类型声明文件命名错误修复(#1442) @szg2008
|
|
35
|
+
* :bug: fix: addresslist datalist清空后不同步问题 (#1483) @zjyau
|
|
36
|
+
* 📖docs: Update README.md @snandy
|
|
37
|
+
* 📖docs(radio): install add icon @richard1015
|
|
38
|
+
* 📖docs(card): add install desc @richard1015
|
|
39
|
+
* 📖docs(toast): taro env eidt @richard1015
|
|
40
|
+
* 🍭style: fix Picker options partially overlap in older versions of Safa… @hydraZty
|
|
41
|
+
|
|
1
42
|
## v3.1.22
|
|
2
43
|
|
|
3
44
|
`2022-06-24`
|
|
@@ -45,7 +86,6 @@ NutUI 非常感谢您对开源事业做出的贡献!🌷🌷🌷
|
|
|
45
86
|
* 📖docs(elevator): 增加吸顶props @szg2008
|
|
46
87
|
* 🍭style: fix font family of highlighted code (#1354) @renbaoshuo
|
|
47
88
|
|
|
48
|
-
|
|
49
89
|
## v3.1.21
|
|
50
90
|
|
|
51
91
|
`2022-05-30`
|
package/dist/nutui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.0 Mon Aug 01 2022 21:25:13 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -2275,6 +2275,8 @@ const _sfc_main$1x = create$1x({
|
|
|
2275
2275
|
default: 1
|
|
2276
2276
|
},
|
|
2277
2277
|
titleIcon: String,
|
|
2278
|
+
activeTitleClass: String,
|
|
2279
|
+
inactiveTitleClass: String,
|
|
2278
2280
|
optionIcon: {
|
|
2279
2281
|
type: String,
|
|
2280
2282
|
default: "Check"
|
|
@@ -2400,18 +2402,20 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2400
2402
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index) => {
|
|
2401
2403
|
return openBlock(), createElementBlock("view", {
|
|
2402
2404
|
key: index,
|
|
2403
|
-
class: normalizeClass(["nut-menu-item__option", { active: option.value === _ctx.modelValue }]),
|
|
2405
|
+
class: normalizeClass(["nut-menu-item__option", [{ active: option.value === _ctx.modelValue }]]),
|
|
2404
2406
|
style: normalizeStyle({ "flex-basis": 100 / _ctx.cols + "%" }),
|
|
2405
2407
|
onClick: ($event) => _ctx.onClick(option)
|
|
2406
2408
|
}, [
|
|
2407
2409
|
option.value === _ctx.modelValue ? (openBlock(), createBlock(_component_nut_icon, {
|
|
2408
2410
|
key: 0,
|
|
2411
|
+
class: normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
|
|
2409
2412
|
name: _ctx.optionIcon,
|
|
2410
2413
|
color: _ctx.parent.props.activeColor
|
|
2411
|
-
}, null, 8, ["name", "color"])) : createCommentVNode("", true),
|
|
2414
|
+
}, null, 8, ["class", "name", "color"])) : createCommentVNode("", true),
|
|
2412
2415
|
createElementVNode("view", {
|
|
2416
|
+
class: normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
|
|
2413
2417
|
style: normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
|
|
2414
|
-
}, toDisplayString(option.text),
|
|
2418
|
+
}, toDisplayString(option.text), 7)
|
|
2415
2419
|
], 14, _hoisted_2$_);
|
|
2416
2420
|
}), 128)),
|
|
2417
2421
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -6183,7 +6187,14 @@ const _sfc_main$1e = create$1e({
|
|
|
6183
6187
|
setChooseValue();
|
|
6184
6188
|
};
|
|
6185
6189
|
watch(() => props.column, (val) => {
|
|
6186
|
-
|
|
6190
|
+
if (props.column && props.column.length > 0) {
|
|
6191
|
+
state.transformY = 0;
|
|
6192
|
+
modifyStatus(false);
|
|
6193
|
+
}
|
|
6194
|
+
}, {
|
|
6195
|
+
deep: true
|
|
6196
|
+
});
|
|
6197
|
+
watch(() => props.value, (val) => {
|
|
6187
6198
|
state.transformY = 0;
|
|
6188
6199
|
modifyStatus(false);
|
|
6189
6200
|
}, {
|
|
@@ -6373,11 +6384,14 @@ const _sfc_main$1d = create$1d({
|
|
|
6373
6384
|
defaultValues.value[columnIndex] = option.value ? option.value : "";
|
|
6374
6385
|
let index = columnIndex;
|
|
6375
6386
|
let cursor = option;
|
|
6376
|
-
while (cursor && cursor.children) {
|
|
6387
|
+
while (cursor && cursor.children && cursor.children[0]) {
|
|
6377
6388
|
defaultValues.value[index + 1] = cursor.children[0].value;
|
|
6378
6389
|
index++;
|
|
6379
6390
|
cursor = cursor.children[0];
|
|
6380
6391
|
}
|
|
6392
|
+
if (cursor && cursor.children && cursor.children.length == 0) {
|
|
6393
|
+
defaultValues.value = defaultValues.value.slice(0, index + 1);
|
|
6394
|
+
}
|
|
6381
6395
|
} else {
|
|
6382
6396
|
defaultValues.value[columnIndex] = option.hasOwnProperty("value") ? option.value : "";
|
|
6383
6397
|
}
|
|
@@ -6697,7 +6711,7 @@ const _sfc_main$1c = create$1c({
|
|
|
6697
6711
|
selectedValue,
|
|
6698
6712
|
selectedOptions
|
|
6699
6713
|
}) => {
|
|
6700
|
-
if (["date", "datetime", "datehour", "month-day"].includes(props.type)) {
|
|
6714
|
+
if (["date", "datetime", "datehour", "month-day", "year-month"].includes(props.type)) {
|
|
6701
6715
|
let formatDate = [];
|
|
6702
6716
|
selectedValue.forEach((item) => {
|
|
6703
6717
|
formatDate.push(item);
|
|
@@ -6705,11 +6719,14 @@ const _sfc_main$1c = create$1c({
|
|
|
6705
6719
|
if (props.type == "month-day" && formatDate.length < 3) {
|
|
6706
6720
|
formatDate.unshift(new Date(props.modelValue || props.minDate || props.maxDate).getFullYear());
|
|
6707
6721
|
}
|
|
6722
|
+
if (props.type == "year-month" && formatDate.length < 3) {
|
|
6723
|
+
formatDate.push(new Date(props.modelValue || props.minDate || props.maxDate).getDate());
|
|
6724
|
+
}
|
|
6708
6725
|
const year = Number(formatDate[0]);
|
|
6709
6726
|
const month = Number(formatDate[1]) - 1;
|
|
6710
6727
|
const day = Math.min(Number(formatDate[2]), getMonthEndDay(Number(formatDate[0]), Number(formatDate[1])));
|
|
6711
6728
|
let date = null;
|
|
6712
|
-
if (props.type === "date" || props.type === "month-day") {
|
|
6729
|
+
if (props.type === "date" || props.type === "month-day" || props.type === "year-month") {
|
|
6713
6730
|
date = new Date(year, month, day);
|
|
6714
6731
|
} else if (props.type === "datetime") {
|
|
6715
6732
|
date = new Date(year, month, day, Number(formatDate[3]), Number(formatDate[4]));
|
|
@@ -6810,6 +6827,9 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6810
6827
|
isWrapTeleport: _ctx.isWrapTeleport,
|
|
6811
6828
|
threeDimensional: _ctx.threeDimensional
|
|
6812
6829
|
}, {
|
|
6830
|
+
top: withCtx(() => [
|
|
6831
|
+
renderSlot(_ctx.$slots, "top")
|
|
6832
|
+
]),
|
|
6813
6833
|
default: withCtx(() => [
|
|
6814
6834
|
renderSlot(_ctx.$slots, "default")
|
|
6815
6835
|
]),
|
|
@@ -7210,12 +7230,18 @@ const _sfc_main$1a = create$1a({
|
|
|
7210
7230
|
}
|
|
7211
7231
|
};
|
|
7212
7232
|
const onFocus = (event) => {
|
|
7233
|
+
if (props.disabled || props.readonly) {
|
|
7234
|
+
return;
|
|
7235
|
+
}
|
|
7213
7236
|
const input = event.target;
|
|
7214
7237
|
let value = input.value;
|
|
7215
7238
|
active.value = true;
|
|
7216
7239
|
emit("focus", value, event);
|
|
7217
7240
|
};
|
|
7218
7241
|
const onBlur = (event) => {
|
|
7242
|
+
if (props.disabled || props.readonly) {
|
|
7243
|
+
return;
|
|
7244
|
+
}
|
|
7219
7245
|
setTimeout(() => {
|
|
7220
7246
|
active.value = false;
|
|
7221
7247
|
}, 200);
|
|
@@ -7239,10 +7265,29 @@ const _sfc_main$1a = create$1a({
|
|
|
7239
7265
|
}
|
|
7240
7266
|
};
|
|
7241
7267
|
const onClickInput = (event) => {
|
|
7268
|
+
if (props.disabled) {
|
|
7269
|
+
return;
|
|
7270
|
+
}
|
|
7242
7271
|
emit("click-input", event);
|
|
7243
7272
|
};
|
|
7244
|
-
const onClickLeftIcon = (event) =>
|
|
7245
|
-
|
|
7273
|
+
const onClickLeftIcon = (event) => {
|
|
7274
|
+
if (props.disabled) {
|
|
7275
|
+
return;
|
|
7276
|
+
}
|
|
7277
|
+
emit("click-left-icon", event);
|
|
7278
|
+
};
|
|
7279
|
+
const onClickRightIcon = (event) => {
|
|
7280
|
+
if (props.disabled) {
|
|
7281
|
+
return;
|
|
7282
|
+
}
|
|
7283
|
+
emit("click-right-icon", event);
|
|
7284
|
+
};
|
|
7285
|
+
const onClick = (e) => {
|
|
7286
|
+
if (props.disabled) {
|
|
7287
|
+
e.stopImmediatePropagation();
|
|
7288
|
+
return;
|
|
7289
|
+
}
|
|
7290
|
+
};
|
|
7246
7291
|
watch(() => props.modelValue, () => {
|
|
7247
7292
|
updateValue(getModelValue());
|
|
7248
7293
|
resetValidation();
|
|
@@ -7264,6 +7309,7 @@ const _sfc_main$1a = create$1a({
|
|
|
7264
7309
|
onClickInput,
|
|
7265
7310
|
onClickLeftIcon,
|
|
7266
7311
|
onClickRightIcon,
|
|
7312
|
+
onClick,
|
|
7267
7313
|
translate: translate$m
|
|
7268
7314
|
};
|
|
7269
7315
|
}
|
|
@@ -7282,7 +7328,8 @@ const _hoisted_8$c = { class: "nut-input-word-num" };
|
|
|
7282
7328
|
function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7283
7329
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
7284
7330
|
return openBlock(), createElementBlock("view", {
|
|
7285
|
-
class: normalizeClass(_ctx.classes)
|
|
7331
|
+
class: normalizeClass(_ctx.classes),
|
|
7332
|
+
onClick: _cache[10] || (_cache[10] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
7286
7333
|
}, [
|
|
7287
7334
|
_ctx.$slots.input ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
7288
7335
|
_ctx.label ? (openBlock(), createElementBlock("view", {
|
|
@@ -8124,8 +8171,8 @@ class Uploader$1 {
|
|
|
8124
8171
|
xhr.setRequestHeader(key, value);
|
|
8125
8172
|
}
|
|
8126
8173
|
(_a = options.onStart) == null ? void 0 : _a.call(options, options);
|
|
8127
|
-
if (options.
|
|
8128
|
-
|
|
8174
|
+
if (options.beforeXhrUpload) {
|
|
8175
|
+
options.beforeXhrUpload(xhr, options);
|
|
8129
8176
|
} else {
|
|
8130
8177
|
xhr.send(options.formData);
|
|
8131
8178
|
}
|
|
@@ -8209,6 +8256,10 @@ const _sfc_main$14 = create$14({
|
|
|
8209
8256
|
type: Function,
|
|
8210
8257
|
default: null
|
|
8211
8258
|
},
|
|
8259
|
+
beforeXhrUpload: {
|
|
8260
|
+
type: Function,
|
|
8261
|
+
default: null
|
|
8262
|
+
},
|
|
8212
8263
|
beforeDelete: {
|
|
8213
8264
|
type: Function,
|
|
8214
8265
|
default: (file, files) => {
|
|
@@ -8252,6 +8303,7 @@ const _sfc_main$14 = create$14({
|
|
|
8252
8303
|
uploadOption.xhrState = props.xhrState;
|
|
8253
8304
|
uploadOption.headers = props.headers;
|
|
8254
8305
|
uploadOption.withCredentials = props.withCredentials;
|
|
8306
|
+
uploadOption.beforeXhrUpload = props.beforeXhrUpload;
|
|
8255
8307
|
try {
|
|
8256
8308
|
uploadOption.sourceFile = fileItem.formData.get(props.name);
|
|
8257
8309
|
} catch (error) {
|
|
@@ -10767,7 +10819,7 @@ const _sfc_main$U = create$U({
|
|
|
10767
10819
|
type: String,
|
|
10768
10820
|
default: "danger"
|
|
10769
10821
|
},
|
|
10770
|
-
|
|
10822
|
+
modelVisible: {
|
|
10771
10823
|
type: Boolean,
|
|
10772
10824
|
default: false
|
|
10773
10825
|
},
|
|
@@ -10790,7 +10842,7 @@ const _sfc_main$U = create$U({
|
|
|
10790
10842
|
});
|
|
10791
10843
|
onMounted(() => {
|
|
10792
10844
|
});
|
|
10793
|
-
const
|
|
10845
|
+
const showPopup = ref(props.modelVisible);
|
|
10794
10846
|
const clickCover = () => {
|
|
10795
10847
|
props.onClick && props.onClick();
|
|
10796
10848
|
};
|
|
@@ -10824,7 +10876,7 @@ const _sfc_main$U = create$U({
|
|
|
10824
10876
|
props.unmount && props.unmount(props.id);
|
|
10825
10877
|
props.onClose && props.onClose();
|
|
10826
10878
|
};
|
|
10827
|
-
return { state, hide, onAfterLeave, clickCover,
|
|
10879
|
+
return { state, hide, onAfterLeave, clickCover, showPopup };
|
|
10828
10880
|
}
|
|
10829
10881
|
});
|
|
10830
10882
|
function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -10853,18 +10905,12 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10853
10905
|
var Notify = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$T]]);
|
|
10854
10906
|
const defaultOptions$1 = {
|
|
10855
10907
|
type: "base",
|
|
10856
|
-
showPopup: true,
|
|
10857
10908
|
visible: true,
|
|
10858
10909
|
msg: "",
|
|
10859
10910
|
color: void 0,
|
|
10860
10911
|
background: void 0,
|
|
10861
10912
|
duration: 3e3,
|
|
10862
|
-
className: ""
|
|
10863
|
-
onClosed: null,
|
|
10864
|
-
onClick: null,
|
|
10865
|
-
onOpened: null,
|
|
10866
|
-
textTimer: null,
|
|
10867
|
-
unmount: null
|
|
10913
|
+
className: ""
|
|
10868
10914
|
};
|
|
10869
10915
|
let idsMap$1 = [];
|
|
10870
10916
|
let optsMap$1 = [];
|
|
@@ -11765,7 +11811,7 @@ const _sfc_main$Q = create$Q({
|
|
|
11765
11811
|
}
|
|
11766
11812
|
},
|
|
11767
11813
|
components: {},
|
|
11768
|
-
emits: ["fastBack", "play", "forward", "ended", "changeProgress", "mute"],
|
|
11814
|
+
emits: ["fastBack", "play", "forward", "ended", "changeProgress", "mute", "can-play"],
|
|
11769
11815
|
setup(props, { emit }) {
|
|
11770
11816
|
const audioRef = ref(null);
|
|
11771
11817
|
const audioData = reactive({
|
|
@@ -11797,22 +11843,25 @@ const _sfc_main$Q = create$Q({
|
|
|
11797
11843
|
} catch (e) {
|
|
11798
11844
|
console.log(e.message);
|
|
11799
11845
|
}
|
|
11800
|
-
setTimeout(() => {
|
|
11801
|
-
const audioR = audioRef.value;
|
|
11802
|
-
if (props.autoplay) {
|
|
11803
|
-
if (audioR && audioR.paused) {
|
|
11804
|
-
audioR.play();
|
|
11805
|
-
}
|
|
11806
|
-
}
|
|
11807
|
-
audioData.second = audioR.duration;
|
|
11808
|
-
audioData.duration = formatSeconds(audioR.duration);
|
|
11809
|
-
}, 500);
|
|
11810
11846
|
});
|
|
11847
|
+
const onCanplay = (e) => {
|
|
11848
|
+
const audioR = audioRef.value;
|
|
11849
|
+
if (props.autoplay) {
|
|
11850
|
+
if (audioR && audioR.paused) {
|
|
11851
|
+
audioR.play();
|
|
11852
|
+
}
|
|
11853
|
+
}
|
|
11854
|
+
audioData.second = audioR.duration;
|
|
11855
|
+
audioData.duration = formatSeconds(audioR.duration);
|
|
11856
|
+
emit("can-play", e);
|
|
11857
|
+
};
|
|
11811
11858
|
const onTimeupdate = (e) => {
|
|
11812
11859
|
audioData.currentTime = parseInt(e.target.currentTime);
|
|
11813
11860
|
};
|
|
11814
11861
|
const fastBack = () => {
|
|
11815
|
-
audioData.currentTime
|
|
11862
|
+
if (audioData.currentTime > 0) {
|
|
11863
|
+
audioData.currentTime--;
|
|
11864
|
+
}
|
|
11816
11865
|
audioRef.value.currentTime = audioData.currentTime;
|
|
11817
11866
|
emit("fastBack", audioData.currentTime);
|
|
11818
11867
|
};
|
|
@@ -11851,37 +11900,17 @@ const _sfc_main$Q = create$Q({
|
|
|
11851
11900
|
emit("mute", audioData.hanMuted);
|
|
11852
11901
|
};
|
|
11853
11902
|
const formatSeconds = (value) => {
|
|
11854
|
-
|
|
11855
|
-
|
|
11856
|
-
let theTime2 = 0;
|
|
11857
|
-
if (theTime > 60) {
|
|
11858
|
-
theTime1 = Math.floor(theTime / 60);
|
|
11859
|
-
theTime = Math.floor(theTime % 60);
|
|
11860
|
-
if (theTime1 > 60) {
|
|
11861
|
-
theTime2 = Math.floor(theTime1 / 60);
|
|
11862
|
-
theTime1 = Math.floor(theTime1 % 60);
|
|
11863
|
-
}
|
|
11903
|
+
if (!value) {
|
|
11904
|
+
return "00:00:00";
|
|
11864
11905
|
}
|
|
11906
|
+
let time = parseInt(value);
|
|
11907
|
+
let hours = Math.floor(time / 3600);
|
|
11908
|
+
let minutes = Math.floor((time - hours * 3600) / 60);
|
|
11909
|
+
let seconds = time - hours * 3600 - minutes * 60;
|
|
11865
11910
|
let result = "";
|
|
11866
|
-
|
|
11867
|
-
|
|
11868
|
-
|
|
11869
|
-
if (theTime1 > 0) {
|
|
11870
|
-
result = "" + theTime1 + ":" + result;
|
|
11871
|
-
if (theTime1 < 10) {
|
|
11872
|
-
result = "0" + result;
|
|
11873
|
-
}
|
|
11874
|
-
} else {
|
|
11875
|
-
result = "00:" + result;
|
|
11876
|
-
}
|
|
11877
|
-
if (theTime2 > 0) {
|
|
11878
|
-
result = "" + theTime2 + ":" + result;
|
|
11879
|
-
if (theTime2 < 10) {
|
|
11880
|
-
result = "0" + result;
|
|
11881
|
-
}
|
|
11882
|
-
} else {
|
|
11883
|
-
result = "00:" + result;
|
|
11884
|
-
}
|
|
11911
|
+
result += ("0" + hours.toString()).slice(-2) + ":";
|
|
11912
|
+
result += ("0" + minutes.toString()).slice(-2) + ":";
|
|
11913
|
+
result += ("0" + seconds.toString()).slice(-2);
|
|
11885
11914
|
return result;
|
|
11886
11915
|
};
|
|
11887
11916
|
watch(() => audioData.currentTime, (value) => {
|
|
@@ -11906,7 +11935,8 @@ const _sfc_main$Q = create$Q({
|
|
|
11906
11935
|
progressChange,
|
|
11907
11936
|
audioEnd,
|
|
11908
11937
|
onTimeupdate,
|
|
11909
|
-
handleMute
|
|
11938
|
+
handleMute,
|
|
11939
|
+
onCanplay
|
|
11910
11940
|
};
|
|
11911
11941
|
}
|
|
11912
11942
|
});
|
|
@@ -11979,7 +12009,8 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11979
12009
|
autoplay: _ctx.autoplay,
|
|
11980
12010
|
loop: _ctx.loop,
|
|
11981
12011
|
onTimeupdate: _cache[3] || (_cache[3] = (...args) => _ctx.onTimeupdate && _ctx.onTimeupdate(...args)),
|
|
11982
|
-
|
|
12012
|
+
onCanplay: _cache[4] || (_cache[4] = (...args) => _ctx.onCanplay && _ctx.onCanplay(...args)),
|
|
12013
|
+
onEnded: _cache[5] || (_cache[5] = (...args) => _ctx.audioEnd && _ctx.audioEnd(...args)),
|
|
11983
12014
|
muted: _ctx.hanMuted
|
|
11984
12015
|
}, null, 40, _hoisted_8$7)
|
|
11985
12016
|
]);
|
|
@@ -16875,20 +16906,18 @@ const _sfc_main$t = create$t({
|
|
|
16875
16906
|
emits: ["update:active", "change"],
|
|
16876
16907
|
setup(props, { emit, slots }) {
|
|
16877
16908
|
const collapseDom = ref(null);
|
|
16909
|
+
const collapseChldren = ref([]);
|
|
16878
16910
|
watch(() => props.active, (newval, oldval) => {
|
|
16879
|
-
|
|
16880
|
-
|
|
16881
|
-
let doms = (_b = collapseDom.value) == null ? void 0 : _b.children;
|
|
16882
|
-
Array.from(doms).forEach((dom, index) => {
|
|
16883
|
-
const item = dom["__vueParentComponent"]["ctx"];
|
|
16911
|
+
let doms = collapseChldren.value;
|
|
16912
|
+
Array.from(doms).forEach((item) => {
|
|
16884
16913
|
if (typeof newval == "number" || typeof newval == "string") {
|
|
16885
|
-
if (newval ==
|
|
16886
|
-
item.changeOpen(
|
|
16914
|
+
if (newval == item.name) {
|
|
16915
|
+
item.changeOpen(true);
|
|
16887
16916
|
} else {
|
|
16888
16917
|
item.changeOpen(false);
|
|
16889
16918
|
}
|
|
16890
16919
|
} else if (Object.values(newval) instanceof Array) {
|
|
16891
|
-
if (newval.indexOf(Number(
|
|
16920
|
+
if (newval.indexOf(Number(item.name)) > -1 || newval.indexOf(String(item.name)) > -1) {
|
|
16892
16921
|
item.changeOpen(true);
|
|
16893
16922
|
} else {
|
|
16894
16923
|
item.changeOpen(false);
|
|
@@ -16897,6 +16926,9 @@ const _sfc_main$t = create$t({
|
|
|
16897
16926
|
item.animation();
|
|
16898
16927
|
});
|
|
16899
16928
|
});
|
|
16929
|
+
onMounted(() => {
|
|
16930
|
+
collapseChldren.value = getCurrentInstance().provides.collapseParent.children || [];
|
|
16931
|
+
});
|
|
16900
16932
|
const changeVal = (val) => {
|
|
16901
16933
|
emit("update:active", val);
|
|
16902
16934
|
emit("change", val);
|
|
@@ -17242,9 +17274,19 @@ const component = (componentName2, translate2) => {
|
|
|
17242
17274
|
[`nut-table__main__head__tr--align${item.align ? item.align : ""}`]: true
|
|
17243
17275
|
};
|
|
17244
17276
|
};
|
|
17277
|
+
const stylehead = (item) => {
|
|
17278
|
+
return item.stylehead ? item.stylehead : "";
|
|
17279
|
+
};
|
|
17280
|
+
const stylecolumn = (item) => {
|
|
17281
|
+
return item.stylecolumn ? item.stylecolumn : "";
|
|
17282
|
+
};
|
|
17245
17283
|
const getColumnItem = (value) => {
|
|
17246
17284
|
return props.columns.filter((item) => item.key === value)[0];
|
|
17247
17285
|
};
|
|
17286
|
+
const getColumnItemStyle = (value) => {
|
|
17287
|
+
const style = props.columns.filter((item) => item.key === value);
|
|
17288
|
+
return style[0].stylecolumn ? style[0].stylecolumn : "";
|
|
17289
|
+
};
|
|
17248
17290
|
const handleSorterClick = (item) => {
|
|
17249
17291
|
if (item.sorter) {
|
|
17250
17292
|
emit("sorter", item);
|
|
@@ -17264,9 +17306,12 @@ const component = (componentName2, translate2) => {
|
|
|
17264
17306
|
classes,
|
|
17265
17307
|
cellClasses,
|
|
17266
17308
|
getColumnItem,
|
|
17309
|
+
getColumnItemStyle,
|
|
17267
17310
|
handleSorterClick,
|
|
17268
17311
|
sortDataItem,
|
|
17269
|
-
translate: translate2
|
|
17312
|
+
translate: translate2,
|
|
17313
|
+
stylehead,
|
|
17314
|
+
stylecolumn
|
|
17270
17315
|
};
|
|
17271
17316
|
}
|
|
17272
17317
|
};
|
|
@@ -17280,17 +17325,17 @@ const _hoisted_4$g = { class: "nut-table__main__body" };
|
|
|
17280
17325
|
const _hoisted_5$9 = { key: 1 };
|
|
17281
17326
|
const _hoisted_6$8 = {
|
|
17282
17327
|
key: 0,
|
|
17283
|
-
class: "nut-table__summary"
|
|
17284
|
-
};
|
|
17285
|
-
const _hoisted_7$6 = ["innerHTML"];
|
|
17286
|
-
const _hoisted_8$3 = {
|
|
17287
|
-
key: 1,
|
|
17288
17328
|
class: "nut-table__nodata"
|
|
17289
17329
|
};
|
|
17290
|
-
const
|
|
17330
|
+
const _hoisted_7$6 = {
|
|
17291
17331
|
key: 0,
|
|
17292
17332
|
class: "nut-table__nodata__text"
|
|
17293
17333
|
};
|
|
17334
|
+
const _hoisted_8$3 = {
|
|
17335
|
+
key: 1,
|
|
17336
|
+
class: "nut-table__summary"
|
|
17337
|
+
};
|
|
17338
|
+
const _hoisted_9$3 = ["innerHTML"];
|
|
17294
17339
|
function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17295
17340
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
17296
17341
|
const _component_RenderColumn = resolveComponent("RenderColumn");
|
|
@@ -17306,7 +17351,8 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17306
17351
|
return openBlock(), createElementBlock("span", {
|
|
17307
17352
|
class: normalizeClass(["nut-table__main__head__tr__th", _ctx.cellClasses(item)]),
|
|
17308
17353
|
key: item.key,
|
|
17309
|
-
onClick: ($event) => _ctx.handleSorterClick(item)
|
|
17354
|
+
onClick: ($event) => _ctx.handleSorterClick(item),
|
|
17355
|
+
style: normalizeStyle(item.stylehead)
|
|
17310
17356
|
}, [
|
|
17311
17357
|
createTextVNode(toDisplayString(item.title) + " ", 1),
|
|
17312
17358
|
renderSlot(_ctx.$slots, "icon"),
|
|
@@ -17315,7 +17361,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17315
17361
|
name: "down-arrow",
|
|
17316
17362
|
size: "12px"
|
|
17317
17363
|
})) : createCommentVNode("", true)
|
|
17318
|
-
],
|
|
17364
|
+
], 14, _hoisted_3$j);
|
|
17319
17365
|
}), 128))
|
|
17320
17366
|
])
|
|
17321
17367
|
]),
|
|
@@ -17328,32 +17374,33 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17328
17374
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.sortDataItem(), ([value, render2]) => {
|
|
17329
17375
|
return openBlock(), createElementBlock("span", {
|
|
17330
17376
|
class: normalizeClass(["nut-table__main__body__tr__td", _ctx.cellClasses(_ctx.getColumnItem(value))]),
|
|
17331
|
-
key: value
|
|
17377
|
+
key: value,
|
|
17378
|
+
style: normalizeStyle(_ctx.getColumnItemStyle(value))
|
|
17332
17379
|
}, [
|
|
17333
17380
|
typeof item[value] === "function" || typeof render2 === "function" ? (openBlock(), createBlock(_component_RenderColumn, {
|
|
17334
17381
|
key: 0,
|
|
17335
17382
|
slots: [render2, item[value]],
|
|
17336
17383
|
record: item
|
|
17337
17384
|
}, null, 8, ["slots", "record"])) : (openBlock(), createElementBlock("view", _hoisted_5$9, toDisplayString(item[value]), 1))
|
|
17338
|
-
],
|
|
17385
|
+
], 6);
|
|
17339
17386
|
}), 128))
|
|
17340
17387
|
]);
|
|
17341
17388
|
}), 128))
|
|
17342
17389
|
])
|
|
17343
17390
|
], 2),
|
|
17344
|
-
_ctx.
|
|
17345
|
-
createElementVNode("span", {
|
|
17346
|
-
class: "nut-table__summary__text",
|
|
17347
|
-
innerHTML: _ctx.summary().value
|
|
17348
|
-
}, null, 8, _hoisted_7$6)
|
|
17349
|
-
])) : createCommentVNode("", true),
|
|
17350
|
-
!_ctx.curData.length ? (openBlock(), createElementBlock("view", _hoisted_8$3, [
|
|
17391
|
+
!_ctx.curData.length ? (openBlock(), createElementBlock("view", _hoisted_6$8, [
|
|
17351
17392
|
createElementVNode("div", {
|
|
17352
17393
|
class: normalizeClass(["nut-table__nodata", { "nut-table__nodata--border": _ctx.bordered }])
|
|
17353
17394
|
}, [
|
|
17354
17395
|
renderSlot(_ctx.$slots, "nodata"),
|
|
17355
|
-
!_ctx.$slots.nodata ? (openBlock(), createElementBlock("div",
|
|
17396
|
+
!_ctx.$slots.nodata ? (openBlock(), createElementBlock("div", _hoisted_7$6, toDisplayString(_ctx.translate("noData")), 1)) : createCommentVNode("", true)
|
|
17356
17397
|
], 2)
|
|
17398
|
+
])) : createCommentVNode("", true),
|
|
17399
|
+
_ctx.summary ? (openBlock(), createElementBlock("view", _hoisted_8$3, [
|
|
17400
|
+
createElementVNode("span", {
|
|
17401
|
+
class: "nut-table__summary__text",
|
|
17402
|
+
innerHTML: _ctx.summary().value
|
|
17403
|
+
}, null, 8, _hoisted_9$3)
|
|
17357
17404
|
])) : createCommentVNode("", true)
|
|
17358
17405
|
], 2);
|
|
17359
17406
|
}
|
|
@@ -18315,10 +18362,11 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18315
18362
|
}, [
|
|
18316
18363
|
createElementVNode("div", _hoisted_23, toDisplayString(_ctx.customAndExistTitle || _ctx.translate("chooseAnotherAddress")), 1)
|
|
18317
18364
|
])) : createCommentVNode("", true)
|
|
18318
|
-
])) : createCommentVNode("", true)
|
|
18365
|
+
])) : createCommentVNode("", true),
|
|
18366
|
+
renderSlot(_ctx.$slots, "bottom")
|
|
18319
18367
|
])
|
|
18320
18368
|
]),
|
|
18321
|
-
_:
|
|
18369
|
+
_: 3
|
|
18322
18370
|
}, 8, ["lock-scroll", "onClose", "onClickOverlay", "visible", "isWrapTeleport", "teleport"]);
|
|
18323
18371
|
}
|
|
18324
18372
|
var Address = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n]]);
|
|
@@ -18451,7 +18499,15 @@ const _sfc_main$l = create$l({
|
|
|
18451
18499
|
},
|
|
18452
18500
|
strokeStyle: {
|
|
18453
18501
|
type: String,
|
|
18454
|
-
default:
|
|
18502
|
+
default: () => {
|
|
18503
|
+
let bodyDom = document.getElementsByTagName("body");
|
|
18504
|
+
let clsName = bodyDom[0]["className"];
|
|
18505
|
+
if (clsName.indexOf("nut-theme-dark") == -1) {
|
|
18506
|
+
return "#000";
|
|
18507
|
+
} else {
|
|
18508
|
+
return "#fff";
|
|
18509
|
+
}
|
|
18510
|
+
}
|
|
18455
18511
|
},
|
|
18456
18512
|
type: {
|
|
18457
18513
|
type: String,
|
|
@@ -18463,7 +18519,7 @@ const _sfc_main$l = create$l({
|
|
|
18463
18519
|
}
|
|
18464
18520
|
},
|
|
18465
18521
|
components: {},
|
|
18466
|
-
emits: ["confirm", "clear"],
|
|
18522
|
+
emits: ["start", "end", "signing", "confirm", "clear"],
|
|
18467
18523
|
setup(props, { emit }) {
|
|
18468
18524
|
const canvas = ref(null);
|
|
18469
18525
|
const wrap = ref(null);
|
|
@@ -18493,6 +18549,7 @@ const _sfc_main$l = create$l({
|
|
|
18493
18549
|
state.ctx.beginPath();
|
|
18494
18550
|
state.ctx.lineWidth = props.lineWidth;
|
|
18495
18551
|
state.ctx.strokeStyle = props.strokeStyle;
|
|
18552
|
+
emit("start");
|
|
18496
18553
|
canvas.value.addEventListener(state.events[1], moveEventHandler, false);
|
|
18497
18554
|
canvas.value.addEventListener(state.events[2], endEventHandler, false);
|
|
18498
18555
|
canvas.value.addEventListener(state.events[3], leaveEventHandler, false);
|
|
@@ -18500,6 +18557,7 @@ const _sfc_main$l = create$l({
|
|
|
18500
18557
|
const moveEventHandler = (event) => {
|
|
18501
18558
|
event.preventDefault();
|
|
18502
18559
|
let evt = state.isSupportTouch ? event.touches[0] : event;
|
|
18560
|
+
emit("signing", evt);
|
|
18503
18561
|
let coverPos = canvas.value.getBoundingClientRect();
|
|
18504
18562
|
let mouseX = evt.clientX - coverPos.left;
|
|
18505
18563
|
let mouseY = evt.clientY - coverPos.top;
|
|
@@ -18508,6 +18566,7 @@ const _sfc_main$l = create$l({
|
|
|
18508
18566
|
};
|
|
18509
18567
|
const endEventHandler = (event) => {
|
|
18510
18568
|
event.preventDefault();
|
|
18569
|
+
emit("end");
|
|
18511
18570
|
canvas.value.removeEventListener(state.events[1], moveEventHandler, false);
|
|
18512
18571
|
canvas.value.removeEventListener(state.events[2], endEventHandler, false);
|
|
18513
18572
|
};
|
|
@@ -18555,7 +18614,7 @@ const _hoisted_1$k = {
|
|
|
18555
18614
|
};
|
|
18556
18615
|
const _hoisted_2$i = ["height", "width"];
|
|
18557
18616
|
const _hoisted_3$g = {
|
|
18558
|
-
key:
|
|
18617
|
+
key: 0,
|
|
18559
18618
|
class: "nut-signature-unsopport"
|
|
18560
18619
|
};
|
|
18561
18620
|
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -18564,12 +18623,14 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18564
18623
|
class: normalizeClass(_ctx.classes)
|
|
18565
18624
|
}, [
|
|
18566
18625
|
createElementVNode("div", _hoisted_1$k, [
|
|
18567
|
-
((
|
|
18568
|
-
key: 0,
|
|
18626
|
+
withDirectives(createElementVNode("canvas", {
|
|
18569
18627
|
ref: "canvas",
|
|
18570
18628
|
height: _ctx.canvasHeight,
|
|
18571
18629
|
width: _ctx.canvasWidth
|
|
18572
|
-
}, null, 8, _hoisted_2$i)
|
|
18630
|
+
}, null, 8, _hoisted_2$i), [
|
|
18631
|
+
[vShow, _ctx.isCanvasSupported()]
|
|
18632
|
+
]),
|
|
18633
|
+
!_ctx.isCanvasSupported() ? (openBlock(), createElementBlock("p", _hoisted_3$g, toDisplayString(_ctx.unSupportTpl || _ctx.translate("unSupportTpl")), 1)) : createCommentVNode("", true)
|
|
18573
18634
|
], 512),
|
|
18574
18635
|
createVNode(_component_nut_button, {
|
|
18575
18636
|
class: "nut-signature-btn",
|
|
@@ -20031,7 +20092,7 @@ const _sfc_main$6 = create$6({
|
|
|
20031
20092
|
});
|
|
20032
20093
|
const trowelData = () => {
|
|
20033
20094
|
console.log("props.data", props.data);
|
|
20034
|
-
if (Object.keys(props.dataMapOptions).length > 0
|
|
20095
|
+
if (Object.keys(props.dataMapOptions).length > 0) {
|
|
20035
20096
|
dataArray.value = props.data.map((item, index) => {
|
|
20036
20097
|
return floatData(dataInfo, item, props.dataMapOptions);
|
|
20037
20098
|
});
|
|
@@ -20774,6 +20835,6 @@ function install(app) {
|
|
|
20774
20835
|
}
|
|
20775
20836
|
});
|
|
20776
20837
|
}
|
|
20777
|
-
const version = "3.
|
|
20838
|
+
const version = "3.2.0";
|
|
20778
20839
|
var nutui_vue_build = { install, version, Locale };
|
|
20779
20840
|
export { ActionSheet, Address, AddressList, Animate, Audio, AudioOperate, Avatar, AvatarGroup, BackTop, Badge, Barrage, Button, Calendar, CalendarItem, Card, Cascader, Category, CategoryPane, Cell, CellGroup, _sfc_main$1g as Checkbox, _sfc_main$1f as CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, Comment, _sfc_main$1J as ConfigProvider, CountDown, CountUp, DatePicker, _Dialog as Dialog, Divider, Drag, Ecard, Elevator, Ellipsis, Empty, FixedNav, Form, FormItem, _sfc_main$1C as Grid, GridItem, _sfc_main$1P as Icon, Image$1 as Image, _ImagePreview as ImagePreview, Indicator, InfiniteLoading, Input, InputNumber, _sfc_main$1H as Layout, List, Locale, Menu, MenuItem, Navbar, NoticeBar, NotifyFunction as Notify, NumberKeyboard, OldPicker, OverLay, Pagination, Picker, Popover, Popup, Price, Progress, PullRefresh, _sfc_main$19 as Radio, _sfc_main$18 as RadioGroup, Range, Rate, Row, SearchBar, ShortPassword, SideNavBar, SideNavBarItem, Signature, Skeleton, Sku, Step, _sfc_main$G as Steps, _sfc_main$1E as Sticky, SubSideNavBar, Swipe, Swiper, SwiperItem, Switch, TabPane, Tabbar, TabbarItem, Table, Tabs, Tag, TextArea, TimeDetail, TimePannel, TimeSelect, ToastFunction as Toast, Uploader, Video, WaterMark, nutui_vue_build as default, install, version };
|