@nutui/nutui 3.2.6 → 3.2.8-beta.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 -0
- package/README.md +11 -1
- package/dist/nutui.es.js +2685 -4599
- package/dist/nutui.umd.js +2684 -4600
- package/dist/packages/_es/ActionSheet.js +2 -5
- package/dist/packages/_es/Address.js +162 -250
- package/dist/packages/_es/AddressList.js +229 -307
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +1 -1
- 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 +11 -4
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +2 -5
- 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 +2 -2
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +4 -11
- package/dist/packages/_es/CollapseItem.js +12 -12
- package/dist/packages/_es/Comment.js +1 -1
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +2 -10
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +8 -17
- package/dist/packages/_es/Dialog.js +38 -63
- 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 +9 -3
- package/dist/packages/_es/Ellipsis.js +3 -3
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +39 -31
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +2 -2
- 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 +131 -214
- package/dist/packages/_es/Indicator.js +4 -4
- package/dist/packages/_es/InfiniteLoading.js +9 -2
- package/dist/packages/_es/Input.js +109 -132
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Invoice.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 +14 -1
- package/dist/packages/_es/MenuItem.js +14 -8
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +1 -1
- package/dist/packages/_es/Notify.js +5 -7
- package/dist/packages/_es/NumberKeyboard.js +4 -4
- package/dist/packages/_es/OverLay.js +60 -63
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +25 -50
- package/dist/packages/_es/Popover.js +111 -930
- package/dist/packages/_es/Popup.js +108 -261
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.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 +4 -4
- package/dist/packages/_es/SideNavBar.js +1 -1
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +19 -24
- package/dist/packages/_es/Sku.js +4 -7
- 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 +24 -10
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +2 -2
- 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 +4 -4
- package/dist/packages/_es/Toast.js +5 -6
- package/dist/packages/_es/TrendArrow.js +1 -1
- package/dist/packages/_es/Uploader.js +7 -7
- package/dist/packages/_es/Video.js +3 -2
- package/dist/packages/_es/WaterMark.js +1 -1
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +22 -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 +8 -2
- package/dist/packages/_es/interceptor.js +32 -0
- package/dist/packages/_es/mountComponent.js +42 -0
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/props.js +80 -0
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/_es/style.css +1 -1
- package/dist/packages/address/index.scss +12 -3
- package/dist/packages/addresslist/index.scss +61 -101
- package/dist/packages/card/index.scss +1 -0
- package/dist/packages/ellipsis/index.scss +4 -0
- package/dist/packages/formitem/index.scss +2 -0
- package/dist/packages/imagepreview/index.scss +14 -1
- package/dist/packages/inputnumber/index.scss +5 -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 +0 -14
- package/dist/packages/notify/index.scss +2 -2
- package/dist/packages/overlay/index.scss +2 -1
- package/dist/packages/picker/index.scss +20 -12
- package/dist/packages/popover/index.scss +191 -363
- package/dist/packages/popup/index.scss +3 -14
- package/dist/packages/signature/index.scss +6 -2
- package/dist/packages/skeleton/index.scss +21 -19
- package/dist/packages/sticky/index.scss +3 -0
- package/dist/packages/tabbaritem/index.scss +4 -0
- package/dist/packages/timeselect/index.scss +0 -1
- package/dist/smartips/attributes.json +91 -111
- package/dist/smartips/tags.json +22 -35
- package/dist/smartips/web-types.json +162 -221
- package/dist/style.css +1 -1
- package/dist/styles/font/config.json +4 -0
- package/dist/styles/font/demo_index.html +118 -26
- package/dist/styles/font/iconfont.css +23 -7
- package/dist/styles/font/iconfont.js +6 -6
- package/dist/styles/font/iconfont.json +35 -7
- 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 +52 -54
- package/dist/styles/themes/jdb.scss +52 -54
- package/dist/styles/themes/jddkh.scss +52 -54
- package/dist/styles/themes/jdt.scss +52 -54
- package/dist/styles/variables-jdb.scss +8 -1
- package/dist/styles/variables-jddkh.scss +8 -1
- package/dist/styles/variables-jdt.scss +8 -1
- package/dist/styles/variables.scss +17 -1
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +58 -54
- package/dist/types/__VUE/address/index.vue.d.ts +71 -91
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +29 -9
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +4 -13
- package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +9 -9
- package/dist/types/__VUE/addresslist/index.vue.d.ts +23 -20
- package/dist/types/__VUE/audio/index.vue.d.ts +4 -4
- package/dist/types/__VUE/avatar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
- package/dist/types/__VUE/badge/index.vue.d.ts +1 -1
- package/dist/types/__VUE/button/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendar/index.vue.d.ts +11 -0
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +15 -5
- package/dist/types/__VUE/cascader/index.vue.d.ts +47 -52
- package/dist/types/__VUE/cell/index.vue.d.ts +5 -5
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countdown/index.vue.d.ts +0 -1
- package/dist/types/__VUE/countdown/util.d.ts +0 -1
- package/dist/types/__VUE/countup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/datepicker/index.vue.d.ts +55 -60
- package/dist/types/__VUE/dialog/index.d.ts +0 -3
- package/dist/types/__VUE/dialog/index.vue.d.ts +48 -57
- package/dist/types/__VUE/elevator/index.vue.d.ts +2 -1
- package/dist/types/__VUE/form/common.d.ts +4 -2
- package/dist/types/__VUE/form/index.vue.d.ts +4 -4
- package/dist/types/__VUE/grid/index.vue.d.ts +2 -2
- package/dist/types/__VUE/image/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +27 -20
- package/dist/types/__VUE/imagepreview/index.d.ts +19 -5
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +56 -42
- package/dist/types/__VUE/imagepreview/types.d.ts +44 -0
- package/dist/types/__VUE/indicator/index.vue.d.ts +1 -0
- package/dist/types/__VUE/input/index.vue.d.ts +37 -26
- package/dist/types/__VUE/invoice/index.vue.d.ts +1 -1
- package/dist/types/__VUE/menuitem/index.vue.d.ts +3 -1
- package/dist/types/__VUE/navbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/notify/index.vue.d.ts +3 -3
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +3 -3
- package/dist/types/__VUE/overlay/index.vue.d.ts +11 -12
- package/dist/types/__VUE/picker/Column.vue.d.ts +4 -6
- package/dist/types/__VUE/picker/index.vue.d.ts +60 -67
- package/dist/types/__VUE/popover/index.vue.d.ts +36 -139
- package/dist/types/__VUE/popup/common.d.ts +103 -0
- package/dist/types/__VUE/popup/index.vue.d.ts +55 -1591
- package/dist/types/__VUE/popup/props.d.ts +82 -0
- package/dist/types/__VUE/range/index.vue.d.ts +7 -7
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +4 -4
- package/dist/types/__VUE/skeleton/common.d.ts +2 -3
- package/dist/types/__VUE/skeleton/index.vue.d.ts +2 -3
- package/dist/types/__VUE/sku/index.vue.d.ts +56 -61
- package/dist/types/__VUE/step/index.vue.d.ts +1 -1
- package/dist/types/__VUE/swiper/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -1
- package/dist/types/__VUE/timeselect/index.vue.d.ts +3 -3
- package/dist/types/__VUE/toast/index.vue.d.ts +1 -1
- package/dist/types/__VUE/uploader/index.vue.d.ts +15 -6
- package/dist/types/__VUE/video/index.vue.d.ts +5 -5
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +1 -3
- package/package.json +3 -3
- package/dist/packages/_es/OldPicker.js +0 -486
- package/dist/packages/_es/PullRefresh.js +0 -349
- package/dist/packages/oldpicker/index.scss +0 -133
- package/dist/packages/pullrefresh/index.scss +0 -71
- package/dist/types/__VUE/addresslist/components/LongPressShell.vue.d.ts +0 -47
- package/dist/types/__VUE/datepicker/utils.d.ts +0 -5
- package/dist/types/__VUE/oldpicker/Column.vue.d.ts +0 -96
- package/dist/types/__VUE/oldpicker/commonProps.d.ts +0 -22
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +0 -369
- package/dist/types/__VUE/oldpicker/types.d.ts +0 -24
- package/dist/types/__VUE/popup/use-lock-scroll.d.ts +0 -5
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +0 -128
- package/dist/types/__VUE/pullrefresh/use-touch.d.ts +0 -20
- package/dist/types/__VUE/pullrefresh/util.d.ts +0 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { c as createComponent } from "./component.js";
|
|
7
|
+
import { inject, reactive, getCurrentInstance, computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, toDisplayString, createCommentVNode, renderSlot, createVNode } from "vue";
|
|
7
8
|
import { u as useRouter } from "./index.js";
|
|
8
|
-
import { inject, reactive, getCurrentInstance, computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, toDisplayString, createCommentVNode, createVNode, renderSlot } from "vue";
|
|
9
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
11
|
const { create } = createComponent("tabbar-item");
|
|
@@ -52,7 +52,10 @@ const _sfc_main = create({
|
|
|
52
52
|
},
|
|
53
53
|
to: [Object, String]
|
|
54
54
|
},
|
|
55
|
-
setup(props,
|
|
55
|
+
setup(props, { emit, slots }) {
|
|
56
|
+
const isHaveSlot = (slot) => {
|
|
57
|
+
return slots[slot];
|
|
58
|
+
};
|
|
56
59
|
const parent = inject("parent");
|
|
57
60
|
const state = reactive({
|
|
58
61
|
size: parent.size,
|
|
@@ -114,6 +117,7 @@ const _sfc_main = create({
|
|
|
114
117
|
return {
|
|
115
118
|
state,
|
|
116
119
|
active,
|
|
120
|
+
isHaveSlot,
|
|
117
121
|
change
|
|
118
122
|
};
|
|
119
123
|
}
|
|
@@ -131,8 +135,12 @@ const _hoisted_4 = {
|
|
|
131
135
|
key: 1,
|
|
132
136
|
class: "nut-tabbar-item_icon-box_dot"
|
|
133
137
|
};
|
|
134
|
-
const _hoisted_5 = {
|
|
135
|
-
|
|
138
|
+
const _hoisted_5 = {
|
|
139
|
+
key: 2,
|
|
140
|
+
class: "nut-tabbar-item_icon-box_icon"
|
|
141
|
+
};
|
|
142
|
+
const _hoisted_6 = { key: 3 };
|
|
143
|
+
const _hoisted_7 = { key: 0 };
|
|
136
144
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
137
145
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
138
146
|
return openBlock(), createElementBlock("div", {
|
|
@@ -147,7 +155,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
147
155
|
_ctx.num && _ctx.num <= 99 ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString("99+"))) : createCommentVNode("", true)
|
|
148
156
|
], 64)) : createCommentVNode("", true),
|
|
149
157
|
_ctx.dot ? (openBlock(), createElementBlock("div", _hoisted_4)) : createCommentVNode("", true),
|
|
150
|
-
_ctx.icon ? (openBlock(), createElementBlock("
|
|
158
|
+
_ctx.isHaveSlot("icon") ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
159
|
+
renderSlot(_ctx.$slots, "icon", { active: _ctx.active })
|
|
160
|
+
])) : createCommentVNode("", true),
|
|
161
|
+
_ctx.icon && !_ctx.isHaveSlot("icon") ? (openBlock(), createElementBlock("view", _hoisted_6, [
|
|
151
162
|
createVNode(_component_nut_icon, {
|
|
152
163
|
class: "nut-tabbar-item_icon-box_icon",
|
|
153
164
|
size: _ctx.state.size,
|
|
@@ -156,8 +167,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
156
167
|
"class-prefix": _ctx.classPrefix
|
|
157
168
|
}, null, 8, ["size", "name", "font-class-name", "class-prefix"])
|
|
158
169
|
])) : createCommentVNode("", true),
|
|
159
|
-
!_ctx.icon && _ctx.activeImg ? (openBlock(), createElementBlock("div", {
|
|
160
|
-
key:
|
|
170
|
+
!_ctx.icon && _ctx.activeImg && !_ctx.isHaveSlot("icon") ? (openBlock(), createElementBlock("div", {
|
|
171
|
+
key: 4,
|
|
161
172
|
class: "nut-tabbar-item_icon-box_icon",
|
|
162
173
|
style: normalizeStyle({
|
|
163
174
|
backgroundImage: `url(${_ctx.active ? _ctx.activeImg : _ctx.img})`,
|
|
@@ -166,9 +177,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
166
177
|
})
|
|
167
178
|
}, null, 4)) : createCommentVNode("", true),
|
|
168
179
|
createElementVNode("view", {
|
|
169
|
-
class: normalizeClass([
|
|
180
|
+
class: normalizeClass([
|
|
181
|
+
"nut-tabbar-item_icon-box_nav-word",
|
|
182
|
+
{ "nut-tabbar-item_icon-box_big-word": !_ctx.icon && !_ctx.activeImg && !_ctx.isHaveSlot("icon") }
|
|
183
|
+
])
|
|
170
184
|
}, [
|
|
171
|
-
_ctx.tabTitle ? (openBlock(), createElementBlock("view",
|
|
185
|
+
_ctx.tabTitle ? (openBlock(), createElementBlock("view", _hoisted_7, toDisplayString(_ctx.tabTitle), 1)) : createCommentVNode("", true),
|
|
172
186
|
!_ctx.tabTitle ? renderSlot(_ctx.$slots, "default", { key: 1 }) : createCommentVNode("", true)
|
|
173
187
|
], 2)
|
|
174
188
|
])
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { T as TypeOfFun, c as createComponent } from "./component.js";
|
|
7
|
+
import { ref, provide, computed, watch, onMounted, onActivated, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode, createVNode, toDisplayString } from "vue";
|
|
7
8
|
import { p as pxCheck } from "./pxCheck.js";
|
|
8
9
|
import { u as useRect } from "./index2.js";
|
|
9
|
-
import { ref, provide, computed, watch, onMounted, onActivated, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode, createVNode, toDisplayString } from "vue";
|
|
10
10
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
11
11
|
import "../locale/lang";
|
|
12
12
|
class Title {
|
package/dist/packages/_es/Tag.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -36,7 +36,7 @@ const _sfc_main = create({
|
|
|
36
36
|
type: [Boolean],
|
|
37
37
|
default: false
|
|
38
38
|
},
|
|
39
|
-
|
|
39
|
+
teleportDisable: {
|
|
40
40
|
type: Boolean,
|
|
41
41
|
default: false
|
|
42
42
|
}
|
|
@@ -84,7 +84,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
84
84
|
position: "bottom",
|
|
85
85
|
closeable: "",
|
|
86
86
|
round: "",
|
|
87
|
-
|
|
87
|
+
teleportDisable: _ctx.teleportDisable,
|
|
88
88
|
visible: _ctx.visible,
|
|
89
89
|
style: normalizeStyle(_ctx.popStyle),
|
|
90
90
|
"lock-scroll": _ctx.lockScroll,
|
|
@@ -111,7 +111,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
111
111
|
], 2)
|
|
112
112
|
]),
|
|
113
113
|
_: 3
|
|
114
|
-
}, 8, ["
|
|
114
|
+
}, 8, ["teleportDisable", "visible", "style", "lock-scroll", "onClickOverlay", "onClickCloseIcon"]);
|
|
115
115
|
}
|
|
116
116
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
117
117
|
export { index as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -8,6 +8,7 @@ import { c as createComponent } from "./component.js";
|
|
|
8
8
|
import _sfc_main$1 from "./Icon.js";
|
|
9
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
|
+
import { C as CreateComponent } from "./mountComponent.js";
|
|
11
12
|
import "./pxCheck.js";
|
|
12
13
|
const { create } = createComponent("toast");
|
|
13
14
|
const _sfc_main = create({
|
|
@@ -272,11 +273,9 @@ const mountToast = (opts) => {
|
|
|
272
273
|
opts.id = _id;
|
|
273
274
|
idsMap.push(opts.id);
|
|
274
275
|
optsMap.push(opts);
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
render(instance, container);
|
|
279
|
-
document.body.appendChild(container);
|
|
276
|
+
CreateComponent(opts, {
|
|
277
|
+
wrapper: Toast
|
|
278
|
+
});
|
|
280
279
|
return ToastFunction;
|
|
281
280
|
};
|
|
282
281
|
const errorMsg = (msg) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { reactive, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, Fragment, createCommentVNode, renderList, createElementVNode, toDisplayString, createVNode, createBlock,
|
|
7
|
-
import { c as createComponent,
|
|
6
|
+
import { reactive, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, Fragment, createCommentVNode, renderList, createElementVNode, toDisplayString, createVNode, createBlock, mergeProps, createTextVNode } from "vue";
|
|
7
|
+
import { c as createComponent, d as isPromise } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
10
|
class UploadOptions {
|
|
@@ -138,6 +138,7 @@ const _sfc_main = create({
|
|
|
138
138
|
multiple: { type: Boolean, default: false },
|
|
139
139
|
disabled: { type: Boolean, default: false },
|
|
140
140
|
autoUpload: { type: Boolean, default: true },
|
|
141
|
+
deleteIcon: { type: String, default: "failure" },
|
|
141
142
|
beforeUpload: {
|
|
142
143
|
type: Function,
|
|
143
144
|
default: null
|
|
@@ -435,12 +436,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
435
436
|
}, null, 8, ["name"]),
|
|
436
437
|
createElementVNode("view", _hoisted_8, toDisplayString(item.message), 1)
|
|
437
438
|
])) : createCommentVNode("", true),
|
|
438
|
-
_ctx.isDeletable ? (openBlock(), createBlock(_component_nut_icon, {
|
|
439
|
-
key: 2,
|
|
439
|
+
_ctx.isDeletable ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 2 }, _ctx.$attrs, {
|
|
440
440
|
onClick: ($event) => _ctx.onDelete(item, index2),
|
|
441
441
|
class: "close",
|
|
442
|
-
name:
|
|
443
|
-
}, null,
|
|
442
|
+
name: _ctx.deleteIcon
|
|
443
|
+
}), null, 16, ["onClick", "name"])) : createCommentVNode("", true),
|
|
444
444
|
item.type.includes("image") && item.url ? (openBlock(), createElementBlock("img", {
|
|
445
445
|
key: 3,
|
|
446
446
|
class: "nut-uploader__preview-img__c",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -100,7 +100,8 @@ const _sfc_main = create({
|
|
|
100
100
|
state.videoElm.load();
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
-
}
|
|
103
|
+
},
|
|
104
|
+
{ immediate: true, deep: true }
|
|
104
105
|
);
|
|
105
106
|
watch(
|
|
106
107
|
() => props.options,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -41,11 +41,16 @@ const TypeOfFun = (value) => {
|
|
|
41
41
|
return "unknow";
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
+
const isArray = Array.isArray;
|
|
45
|
+
const isDate = (val) => val instanceof Date;
|
|
44
46
|
const isFunction = (val) => typeof val === "function";
|
|
47
|
+
const isString = (val) => typeof val === "string";
|
|
45
48
|
const isObject = (val) => val !== null && typeof val === "object";
|
|
46
49
|
const isPromise = (val) => {
|
|
47
50
|
return isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
|
48
51
|
};
|
|
52
|
+
const docu = document;
|
|
53
|
+
const body = docu.body;
|
|
49
54
|
const getPropByPath = (obj, keyPath) => {
|
|
50
55
|
try {
|
|
51
56
|
return keyPath.split(".").reduce((prev, curr) => prev[curr], obj);
|
|
@@ -82,6 +87,21 @@ function myFixed(num, digit = 2) {
|
|
|
82
87
|
num = parseFloat(num);
|
|
83
88
|
return (Math.round((num + Number.EPSILON) * Math.pow(10, digit)) / Math.pow(10, digit)).toFixed(digit);
|
|
84
89
|
}
|
|
90
|
+
function preventDefault(event, isStopPropagation) {
|
|
91
|
+
if (typeof event.cancelable !== "boolean" || event.cancelable) {
|
|
92
|
+
event.preventDefault();
|
|
93
|
+
}
|
|
94
|
+
if (isStopPropagation) {
|
|
95
|
+
event.stopPropagation();
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
const padZero = (num, length = 2) => {
|
|
99
|
+
num += "";
|
|
100
|
+
while (num.length < length) {
|
|
101
|
+
num = "0" + num;
|
|
102
|
+
}
|
|
103
|
+
return num.toString();
|
|
104
|
+
};
|
|
85
105
|
function createComponent(name) {
|
|
86
106
|
const componentName = "nut-" + name;
|
|
87
107
|
return {
|
|
@@ -106,4 +126,4 @@ function createComponent(name) {
|
|
|
106
126
|
}
|
|
107
127
|
};
|
|
108
128
|
}
|
|
109
|
-
export { TypeOfFun as T,
|
|
129
|
+
export { TypeOfFun as T, preventDefault as a, body as b, createComponent as c, isPromise as d, isObject as e, isString as f, getPropByPath as g, isFunction as h, isDate as i, isArray as j, floatData as k, myFixed as m, padZero as p };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -147,11 +147,16 @@ const _sfc_main = create({
|
|
|
147
147
|
endDate: {
|
|
148
148
|
type: String,
|
|
149
149
|
default: Utils.getDay(365)
|
|
150
|
+
},
|
|
151
|
+
firstDayOfWeek: {
|
|
152
|
+
type: Number,
|
|
153
|
+
default: 0
|
|
150
154
|
}
|
|
151
155
|
},
|
|
152
156
|
emits: ["choose", "update", "close", "select"],
|
|
153
157
|
setup(props, { emit, slots }) {
|
|
154
|
-
const
|
|
158
|
+
const weekdays = translate("weekdays");
|
|
159
|
+
const weeks = ref([...weekdays.slice(props.firstDayOfWeek, 7), ...weekdays.slice(0, props.firstDayOfWeek)]);
|
|
155
160
|
const months = ref(null);
|
|
156
161
|
const monthsPanel = ref(null);
|
|
157
162
|
const weeksPanel = ref(null);
|
|
@@ -340,6 +345,7 @@ const _sfc_main = create({
|
|
|
340
345
|
});
|
|
341
346
|
};
|
|
342
347
|
const getPreDaysStatus = (days, type, dateInfo, preCurrMonthDays) => {
|
|
348
|
+
days = days - props.firstDayOfWeek;
|
|
343
349
|
let { year, month } = dateInfo;
|
|
344
350
|
if (type == "prev" && days >= 7) {
|
|
345
351
|
days -= 7;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { d as isPromise } from "./component.js";
|
|
7
|
+
const funInterceptor = (interceptor, {
|
|
8
|
+
args = [],
|
|
9
|
+
done,
|
|
10
|
+
canceled
|
|
11
|
+
}) => {
|
|
12
|
+
if (interceptor) {
|
|
13
|
+
const returnVal = interceptor.apply(null, args);
|
|
14
|
+
if (isPromise(returnVal)) {
|
|
15
|
+
returnVal.then((value) => {
|
|
16
|
+
if (value) {
|
|
17
|
+
done();
|
|
18
|
+
} else if (canceled) {
|
|
19
|
+
canceled();
|
|
20
|
+
}
|
|
21
|
+
}).catch(() => {
|
|
22
|
+
});
|
|
23
|
+
} else if (returnVal) {
|
|
24
|
+
done();
|
|
25
|
+
} else if (canceled) {
|
|
26
|
+
canceled();
|
|
27
|
+
}
|
|
28
|
+
} else {
|
|
29
|
+
done();
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
export { funInterceptor as f };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { createApp } from "vue";
|
|
7
|
+
import { f as isString, h as isFunction } from "./component.js";
|
|
8
|
+
const CreateComponent = (options, component) => {
|
|
9
|
+
let elWarp = document.body;
|
|
10
|
+
const teleport = options.teleport || "body";
|
|
11
|
+
if (teleport != "body") {
|
|
12
|
+
if (isString(teleport)) {
|
|
13
|
+
elWarp = document.querySelector(teleport);
|
|
14
|
+
} else {
|
|
15
|
+
elWarp = options.teleport;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
const root = document.createElement("view");
|
|
19
|
+
const name = component.name && component.name + "-";
|
|
20
|
+
const id1 = options.id || new Date().getTime();
|
|
21
|
+
root.id = name + id1;
|
|
22
|
+
let Wrapper = {};
|
|
23
|
+
if (isFunction(component.wrapper)) {
|
|
24
|
+
Wrapper = component.wrapper(elWarp, root);
|
|
25
|
+
} else {
|
|
26
|
+
Wrapper = component.wrapper;
|
|
27
|
+
}
|
|
28
|
+
const instance = createApp(Wrapper, options);
|
|
29
|
+
const componens = component.components;
|
|
30
|
+
componens && componens.forEach((comp) => {
|
|
31
|
+
instance.use(comp);
|
|
32
|
+
});
|
|
33
|
+
elWarp.appendChild(root);
|
|
34
|
+
return {
|
|
35
|
+
instance: instance.mount(root),
|
|
36
|
+
unmount: () => {
|
|
37
|
+
instance.unmount();
|
|
38
|
+
elWarp.removeChild(root);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export { CreateComponent as C };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
const popupProps = {
|
|
7
|
+
visible: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: false
|
|
10
|
+
},
|
|
11
|
+
zIndex: {
|
|
12
|
+
type: [Number, String],
|
|
13
|
+
default: 2e3
|
|
14
|
+
},
|
|
15
|
+
duration: {
|
|
16
|
+
type: [Number, String],
|
|
17
|
+
default: 0.3
|
|
18
|
+
},
|
|
19
|
+
lockScroll: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: false
|
|
22
|
+
},
|
|
23
|
+
closeOnClickOverlay: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: true
|
|
26
|
+
},
|
|
27
|
+
position: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "center"
|
|
30
|
+
},
|
|
31
|
+
transition: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: ""
|
|
34
|
+
},
|
|
35
|
+
style: {
|
|
36
|
+
type: Object,
|
|
37
|
+
default: {}
|
|
38
|
+
},
|
|
39
|
+
popClass: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: ""
|
|
42
|
+
},
|
|
43
|
+
closeable: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false
|
|
46
|
+
},
|
|
47
|
+
closeIconPosition: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: "top-right"
|
|
50
|
+
},
|
|
51
|
+
closeIcon: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: "close"
|
|
54
|
+
},
|
|
55
|
+
destroyOnClose: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: true
|
|
58
|
+
},
|
|
59
|
+
teleport: {
|
|
60
|
+
type: [String, Element],
|
|
61
|
+
default: "body"
|
|
62
|
+
},
|
|
63
|
+
overlay: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: true
|
|
66
|
+
},
|
|
67
|
+
round: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: false
|
|
70
|
+
},
|
|
71
|
+
teleportDisable: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: false
|
|
74
|
+
},
|
|
75
|
+
safeAreaInsetBottom: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
default: false
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
export { popupProps as p };
|
package/dist/packages/_es/raf.js
CHANGED