@nutui/nutui 4.1.0-beta.3 → 4.1.0-beta.5
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/dist/nutui.es.js +1 -1
- package/dist/nutui.js +4383 -4395
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/_es/ActionSheet.js +2 -2
- package/dist/packages/_es/Address.js +2 -2
- package/dist/packages/_es/AddressList.js +1 -1
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +2 -2
- package/dist/packages/_es/AudioOperate.js +3 -3
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/AvatarGroup.js +3 -4
- 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 +2 -2
- package/dist/packages/_es/Calendar.js +3 -3
- package/dist/packages/_es/CalendarItem.js +2 -2
- package/dist/packages/_es/Card.js +2 -2
- package/dist/packages/_es/Cascader.js +4 -3
- package/dist/packages/_es/Category.js +3 -3
- package/dist/packages/_es/CategoryPane.js +2 -2
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +2 -2
- 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 +1 -1
- package/dist/packages/_es/CollapseItem.js +1 -1
- package/dist/packages/_es/Comment.js +4 -4
- package/dist/packages/_es/ConfigProvider.js +4 -4
- package/dist/packages/_es/Countdown.js +4 -4
- package/dist/packages/_es/Countup.js +9 -12
- package/dist/packages/_es/DatePicker.js +3 -3
- package/dist/packages/_es/Dialog.js +4 -4
- 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 +2 -2
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +1 -1
- package/dist/packages/_es/FormItem.js +3 -3
- package/dist/packages/_es/Grid.js +2 -2
- package/dist/packages/_es/GridItem.js +2 -2
- package/dist/packages/_es/Image.js +2 -2
- package/dist/packages/_es/ImagePreview.js +4 -4
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +2 -2
- package/dist/packages/_es/Input.js +2 -4
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/{Interceptor-956b24fc.js → Interceptor-883a3078.js} +1 -1
- package/dist/packages/_es/Invoice.js +3 -3
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +1 -1
- package/dist/packages/_es/Menu.js +2 -2
- package/dist/packages/_es/MenuItem.js +2 -2
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/Noticebar.js +5 -5
- package/dist/packages/_es/Notify.js +2 -2
- package/dist/packages/_es/NumberKeyboard.js +2 -2
- package/dist/packages/_es/Overlay.js +3 -1
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +7 -7
- package/dist/packages/_es/Popover.js +7 -7
- package/dist/packages/_es/Popup.js +2 -2
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.js +3 -2
- package/dist/packages/_es/Radio.js +2 -2
- package/dist/packages/_es/RadioGroup.js +2 -2
- package/dist/packages/_es/Range.js +1 -1
- package/dist/packages/_es/Rate.js +4 -4
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/Searchbar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +2 -2
- 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 +1 -1
- package/dist/packages/_es/Sku.js +8 -8
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +125 -5
- package/dist/packages/_es/SubSideNavbar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +2 -2
- package/dist/packages/_es/SwiperItem.js +2 -2
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +2 -2
- package/dist/packages/_es/Tabbar.js +2 -2
- package/dist/packages/_es/TabbarItem.js +2 -2
- package/dist/packages/_es/Table.js +12 -6
- package/dist/packages/_es/Tabs.js +5 -4
- 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 +2 -2
- package/dist/packages/_es/Toast.js +2 -2
- package/dist/packages/_es/Tour.js +2 -2
- package/dist/packages/_es/TrendArrow.js +1 -1
- package/dist/packages/_es/Uploader.js +5 -4
- package/dist/packages/_es/Video.js +1 -1
- package/dist/packages/_es/Watermark.js +2 -2
- package/dist/packages/_es/{common-b9a5e726.js → common-3cfd9c50.js} +1 -1
- package/dist/packages/_es/{component-81a4c1d0.js → component-470275dd.js} +1 -7
- package/dist/packages/_es/{index-87422be8.js → index-02204c4b.js} +2 -1
- package/dist/packages/_es/{index-da0a7662.js → index-412323a0.js} +7 -7
- package/dist/packages/_es/{index-43c34ac6.js → index-97b44e6c.js} +1 -0
- package/dist/packages/_es/{index.vue_vue_type_script_lang-22dfc112.js → index.vue_vue_type_script_lang-0b4f12ed.js} +1 -1
- package/dist/packages/_es/{index.vue_vue_type_script_lang-a8856969.js → index.vue_vue_type_script_lang-9ebe2e75.js} +2 -2
- package/dist/packages/_es/{mountComponent-8b24c346.js → mountComponent-f893becf.js} +1 -1
- package/dist/packages/sticky/index.scss +0 -10
- package/dist/smartips/web-types.json +4 -10
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +43 -43
- package/dist/styles/themes/jdb.scss +43 -43
- package/dist/styles/themes/jddkh.scss +43 -43
- package/dist/styles/themes/jdt.scss +43 -43
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +291 -1
- package/dist/types/__VUE/address/index.vue.d.ts +345 -1
- package/dist/types/__VUE/addresslist/index.vue.d.ts +72 -1
- package/dist/types/__VUE/animate/index.vue.d.ts +49 -1
- package/dist/types/__VUE/audio/index.vue.d.ts +109 -1
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +26 -1
- package/dist/types/__VUE/avatar/index.vue.d.ts +65 -1
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +81 -1
- package/dist/types/__VUE/backtop/index.vue.d.ts +87 -1
- package/dist/types/__VUE/badge/index.vue.d.ts +91 -1
- package/dist/types/__VUE/barrage/index.vue.d.ts +67 -1
- package/dist/types/__VUE/button/index.vue.d.ts +79 -1
- package/dist/types/__VUE/calendar/index.vue.d.ts +164 -1
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +205 -1
- package/dist/types/__VUE/calendaritem/type.d.ts +0 -7
- package/dist/types/__VUE/card/index.vue.d.ts +57 -1
- package/dist/types/__VUE/cascader/index.vue.d.ts +252 -1
- package/dist/types/__VUE/category/index.vue.d.ts +27 -1
- package/dist/types/__VUE/categorypane/index.vue.d.ts +34 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +106 -1
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +22 -1
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +36 -1
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +83 -1
- package/dist/types/__VUE/col/index.vue.d.ts +30 -1
- package/dist/types/__VUE/collapse/index.vue.d.ts +56 -1
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +206 -1
- package/dist/types/__VUE/comment/index.vue.d.ts +109 -1
- package/dist/types/__VUE/configprovider/index.vue.d.ts +33 -1
- package/dist/types/__VUE/countdown/index.vue.d.ts +92 -1
- package/dist/types/__VUE/countup/index.vue.d.ts +204 -1
- package/dist/types/__VUE/datepicker/index.vue.d.ts +222 -1
- package/dist/types/__VUE/dialog/index.vue.d.ts +326 -1
- package/dist/types/__VUE/divider/index.vue.d.ts +46 -1
- package/dist/types/__VUE/drag/index.vue.d.ts +49 -1
- package/dist/types/__VUE/ecard/index.vue.d.ts +114 -1
- package/dist/types/__VUE/elevator/index.vue.d.ts +98 -1
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +85 -1
- package/dist/types/__VUE/empty/index.vue.d.ts +35 -1
- package/dist/types/__VUE/fixednav/index.vue.d.ts +94 -1
- package/dist/types/__VUE/form/index.vue.d.ts +29 -1
- package/dist/types/__VUE/formitem/index.vue.d.ts +103 -1
- package/dist/types/__VUE/formitem/types.d.ts +2 -2
- package/dist/types/__VUE/grid/index.vue.d.ts +73 -1
- package/dist/types/__VUE/griditem/index.vue.d.ts +36 -1
- package/dist/types/__VUE/icon/index.vue.d.ts +1 -1
- package/dist/types/__VUE/image/index.vue.d.ts +115 -1
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +172 -1
- package/dist/types/__VUE/indicator/index.vue.d.ts +59 -1
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +76 -1
- package/dist/types/__VUE/input/index.vue.d.ts +208 -2
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +105 -1
- package/dist/types/__VUE/invoice/index.vue.d.ts +41 -1
- package/dist/types/__VUE/layout/index.vue.d.ts +1 -1
- package/dist/types/__VUE/list/index.vue.d.ts +76 -1
- package/dist/types/__VUE/menu/index.vue.d.ts +79 -1
- package/dist/types/__VUE/menuitem/index.vue.d.ts +71 -1
- package/dist/types/__VUE/navbar/index.vue.d.ts +111 -1
- package/dist/types/__VUE/noticebar/index.vue.d.ts +196 -1
- package/dist/types/__VUE/notify/index.vue.d.ts +99 -1
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +109 -1
- package/dist/types/__VUE/overlay/index.vue.d.ts +74 -1
- package/dist/types/__VUE/pagination/index.vue.d.ts +100 -1
- package/dist/types/__VUE/picker/common.d.ts +4 -4
- package/dist/types/__VUE/picker/index.vue.d.ts +115 -1
- package/dist/types/__VUE/popover/index.vue.d.ts +176 -1
- package/dist/types/__VUE/popup/common.d.ts +2 -2
- package/dist/types/__VUE/popup/index.vue.d.ts +208 -1
- package/dist/types/__VUE/price/index.vue.d.ts +84 -1
- package/dist/types/__VUE/progress/index.vue.d.ts +109 -1
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +106 -1
- package/dist/types/__VUE/radio/index.vue.d.ts +42 -1
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +36 -1
- package/dist/types/__VUE/range/index.vue.d.ts +146 -1
- package/dist/types/__VUE/rate/index.vue.d.ts +229 -1
- package/dist/types/__VUE/row/index.vue.d.ts +51 -1
- package/dist/types/__VUE/searchbar/index.vue.d.ts +281 -1
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +92 -1
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +25 -1
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +29 -1
- package/dist/types/__VUE/signature/index.vue.d.ts +70 -1
- package/dist/types/__VUE/skeleton/index.vue.d.ts +104 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +312 -1
- package/dist/types/__VUE/step/index.vue.d.ts +31 -1
- package/dist/types/__VUE/steps/index.vue.d.ts +35 -1
- package/dist/types/__VUE/sticky/index.vue.d.ts +55 -1
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +42 -1
- package/dist/types/__VUE/swipe/index.vue.d.ts +58 -1
- package/dist/types/__VUE/swiper/index.vue.d.ts +163 -1
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +7 -1
- package/dist/types/__VUE/switch/index.vue.d.ts +98 -1
- package/dist/types/__VUE/tabbar/index.vue.d.ts +74 -1
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +49 -1
- package/dist/types/__VUE/table/common.d.ts +21 -6
- package/dist/types/__VUE/table/index.vue.d.ts +69 -1
- package/dist/types/__VUE/table/renderColumn.d.ts +20 -6
- package/dist/types/__VUE/tabpane/index.vue.d.ts +33 -1
- package/dist/types/__VUE/tabs/hooks.d.ts +2 -2
- package/dist/types/__VUE/tabs/index.vue.d.ts +179 -2
- package/dist/types/__VUE/tag/index.vue.d.ts +79 -1
- package/dist/types/__VUE/textarea/index.vue.d.ts +111 -1
- package/dist/types/__VUE/timedetail/index.vue.d.ts +27 -1
- package/dist/types/__VUE/timepannel/index.vue.d.ts +31 -1
- package/dist/types/__VUE/timeselect/index.vue.d.ts +81 -1
- package/dist/types/__VUE/toast/index.vue.d.ts +149 -1
- package/dist/types/__VUE/tour/index.vue.d.ts +184 -1
- package/dist/types/__VUE/trendarrow/index.vue.d.ts +94 -1
- package/dist/types/__VUE/uploader/index.vue.d.ts +243 -1
- package/dist/types/__VUE/video/index.vue.d.ts +114 -1
- package/dist/types/__VUE/watermark/index.vue.d.ts +164 -1
- package/dist/types/utils/create/component.d.ts +2 -24
- package/dist/types/utils/useTaroRect/index.d.ts +1 -1
- package/dist/types/utils/useTouch/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/packages/_es/index.vue_vue_type_script_lang-cc5c4086.js +0 -151
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +0 -2
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +0 -2
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +0 -12
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +0 -2
- package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +0 -2
- package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +0 -2
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +0 -12
- package/dist/types/__VUE/picker/Column.vue.d.ts +0 -12
- package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +0 -2
- package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +0 -2
- package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +0 -2
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +0 -2
package/dist/packages/_es/Sku.js
CHANGED
|
@@ -19,15 +19,15 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
|
|
21
21
|
import Price from "./Price.js";
|
|
22
|
-
import { c as createComponent, T as TypeOfFun } from "./component-
|
|
22
|
+
import { c as createComponent, T as TypeOfFun } from "./component-470275dd.js";
|
|
23
23
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
24
|
import InputNumber from "./InputNumber.js";
|
|
25
|
-
import { p as popupProps, P as Popup } from "./index-
|
|
25
|
+
import { p as popupProps, P as Popup } from "./index-412323a0.js";
|
|
26
26
|
import "../locale/lang";
|
|
27
27
|
import "./pxCheck-c6b9f6b7.js";
|
|
28
28
|
import "@nutui/icons-vue";
|
|
29
29
|
import "./Overlay.js";
|
|
30
|
-
const {
|
|
30
|
+
const { create: create$4, translate: translate$1 } = createComponent("sku-header");
|
|
31
31
|
const _sfc_main$4 = create$4({
|
|
32
32
|
props: {
|
|
33
33
|
goods: {
|
|
@@ -39,7 +39,7 @@ const _sfc_main$4 = create$4({
|
|
|
39
39
|
components: {
|
|
40
40
|
[Price.name]: Price
|
|
41
41
|
},
|
|
42
|
-
setup(props, {
|
|
42
|
+
setup(props, { slots }) {
|
|
43
43
|
const getSlots = (name) => slots[name];
|
|
44
44
|
return {
|
|
45
45
|
getSlots,
|
|
@@ -74,7 +74,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
74
74
|
]);
|
|
75
75
|
}
|
|
76
76
|
const SkuHeader = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
|
|
77
|
-
const {
|
|
77
|
+
const { create: create$3 } = createComponent("sku-select");
|
|
78
78
|
const _sfc_main$3 = create$3({
|
|
79
79
|
props: {
|
|
80
80
|
sku: {
|
|
@@ -140,7 +140,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
140
140
|
]);
|
|
141
141
|
}
|
|
142
142
|
const SkuSelect = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
|
|
143
|
-
const {
|
|
143
|
+
const { create: create$2 } = createComponent("sku-stepper");
|
|
144
144
|
const _sfc_main$2 = create$2({
|
|
145
145
|
props: {
|
|
146
146
|
// 购买数量最大值
|
|
@@ -233,7 +233,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
233
233
|
]);
|
|
234
234
|
}
|
|
235
235
|
const SkuStepper = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
236
|
-
const {
|
|
236
|
+
const { create: create$1 } = createComponent("sku-operate");
|
|
237
237
|
const _sfc_main$1 = create$1({
|
|
238
238
|
props: {
|
|
239
239
|
// 底部按钮配置 confirm cart buy
|
|
@@ -310,7 +310,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
310
310
|
])) : createCommentVNode("", true);
|
|
311
311
|
}
|
|
312
312
|
const SkuOperate = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
313
|
-
const {
|
|
313
|
+
const { create, translate } = createComponent("sku");
|
|
314
314
|
const _sfc_main = create({
|
|
315
315
|
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
316
316
|
sku: {
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { getCurrentInstance, inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, Fragment, toDisplayString, createCommentVNode } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
22
22
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
23
|
import "../locale/lang";
|
|
24
24
|
const { create, componentName } = createComponent("step");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { reactive, computed, provide, h } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
3
3
|
import "../locale/lang";
|
|
4
4
|
const { create, componentName } = createComponent("steps");
|
|
5
5
|
const _sfc_main = create({
|
|
@@ -1,8 +1,128 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import "./
|
|
1
|
+
import { ref, reactive, computed, watch, onMounted, onUnmounted, openBlock, createElementBlock, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
2
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
3
|
+
import { g as getScrollParent } from "./index-97b44e6c.js";
|
|
4
|
+
import { u as useRect } from "./index-29892cda.js";
|
|
5
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
6
|
import "../locale/lang";
|
|
5
|
-
|
|
7
|
+
const { create } = createComponent("sticky");
|
|
8
|
+
const _sfc_main = create({
|
|
9
|
+
props: {
|
|
10
|
+
position: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "top"
|
|
13
|
+
},
|
|
14
|
+
top: {
|
|
15
|
+
type: [Number, String],
|
|
16
|
+
default: 0
|
|
17
|
+
},
|
|
18
|
+
bottom: {
|
|
19
|
+
type: [Number, String],
|
|
20
|
+
default: 0
|
|
21
|
+
},
|
|
22
|
+
container: {
|
|
23
|
+
type: Object
|
|
24
|
+
},
|
|
25
|
+
zIndex: {
|
|
26
|
+
type: [Number, String],
|
|
27
|
+
default: 99
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
emits: ["change"],
|
|
31
|
+
setup(props, { emit }) {
|
|
32
|
+
const rootRef = ref();
|
|
33
|
+
const stickyRef = ref();
|
|
34
|
+
const state = reactive({
|
|
35
|
+
fixed: false,
|
|
36
|
+
height: 0,
|
|
37
|
+
transform: 0
|
|
38
|
+
});
|
|
39
|
+
const threshold = computed(() => {
|
|
40
|
+
return props.position === "top" ? Number(props.top) : Number(props.bottom);
|
|
41
|
+
});
|
|
42
|
+
const rootStyle = computed(() => {
|
|
43
|
+
if (state.fixed)
|
|
44
|
+
return { height: `${state.height}px` };
|
|
45
|
+
return {};
|
|
46
|
+
});
|
|
47
|
+
const stickyStyle = computed(() => {
|
|
48
|
+
if (!state.fixed)
|
|
49
|
+
return {};
|
|
50
|
+
return {
|
|
51
|
+
[props.position]: `${threshold.value}px`,
|
|
52
|
+
transform: state.transform ? `translate3d(0, ${state.transform}px, 0)` : void 0,
|
|
53
|
+
position: state.fixed ? "fixed" : void 0,
|
|
54
|
+
zIndex: Number(props.zIndex)
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
const handleScroll = () => {
|
|
58
|
+
const containerEle = props.container;
|
|
59
|
+
if (!rootRef.value && !containerEle)
|
|
60
|
+
return;
|
|
61
|
+
const rootRect = useRect(rootRef);
|
|
62
|
+
const stCurrent = stickyRef.value;
|
|
63
|
+
const stickyRect = useRect(stCurrent);
|
|
64
|
+
const containerRect = useRect(containerEle);
|
|
65
|
+
state.height = rootRect.height;
|
|
66
|
+
const getFixed = () => {
|
|
67
|
+
let fixed = false;
|
|
68
|
+
if (props.position === "top") {
|
|
69
|
+
fixed = containerEle ? threshold.value > rootRect.top && containerRect.bottom > 0 : threshold.value > rootRect.top;
|
|
70
|
+
} else {
|
|
71
|
+
const clientHeight = document.documentElement.clientHeight;
|
|
72
|
+
fixed = containerEle ? containerRect.bottom > 0 && clientHeight - threshold.value - stickyRect.height > containerRect.top : clientHeight - threshold.value < rootRect.bottom;
|
|
73
|
+
}
|
|
74
|
+
return fixed;
|
|
75
|
+
};
|
|
76
|
+
const getTransform = () => {
|
|
77
|
+
if (containerEle) {
|
|
78
|
+
if (props.position === "top") {
|
|
79
|
+
const diff = containerRect.bottom - threshold.value - stickyRect.height;
|
|
80
|
+
return diff < 0 ? diff : 0;
|
|
81
|
+
} else {
|
|
82
|
+
const clientHeight = document.documentElement.clientHeight;
|
|
83
|
+
const diff = containerRect.bottom - (clientHeight - threshold.value);
|
|
84
|
+
return diff < 0 ? diff : 0;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return 0;
|
|
88
|
+
};
|
|
89
|
+
state.transform = getTransform();
|
|
90
|
+
state.fixed = getFixed();
|
|
91
|
+
};
|
|
92
|
+
watch(
|
|
93
|
+
() => state.fixed,
|
|
94
|
+
(val) => {
|
|
95
|
+
emit("change", val);
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
onMounted(() => {
|
|
99
|
+
handleScroll();
|
|
100
|
+
const el = getScrollParent(rootRef.value);
|
|
101
|
+
el.addEventListener("scroll", handleScroll, true);
|
|
102
|
+
});
|
|
103
|
+
onUnmounted(() => {
|
|
104
|
+
const el = getScrollParent(rootRef.value);
|
|
105
|
+
el.removeEventListener("scroll", handleScroll);
|
|
106
|
+
});
|
|
107
|
+
return { rootRef, rootStyle, stickyRef, stickyStyle };
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
111
|
+
return openBlock(), createElementBlock("div", {
|
|
112
|
+
class: "nut-sticky",
|
|
113
|
+
ref: "rootRef",
|
|
114
|
+
style: normalizeStyle(_ctx.rootStyle)
|
|
115
|
+
}, [
|
|
116
|
+
createElementVNode("div", {
|
|
117
|
+
class: "nut-sticky__box",
|
|
118
|
+
ref: "stickyRef",
|
|
119
|
+
style: normalizeStyle(_ctx.stickyStyle)
|
|
120
|
+
}, [
|
|
121
|
+
renderSlot(_ctx.$slots, "default")
|
|
122
|
+
], 4)
|
|
123
|
+
], 4);
|
|
124
|
+
}
|
|
125
|
+
const Sticky = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
6
126
|
export {
|
|
7
|
-
|
|
127
|
+
Sticky as default
|
|
8
128
|
};
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, computed, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, toDisplayString, createBlock, withDirectives, normalizeStyle, renderSlot, vShow } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
22
22
|
import { ArrowDown2, ArrowUp2 } from "@nutui/icons-vue";
|
|
23
23
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
24
|
import "../locale/lang";
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { u as useTouch } from "./index-7a7385e4.js";
|
|
21
21
|
import { computed, ref, reactive, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
22
|
-
import { c as createComponent } from "./component-
|
|
22
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
23
23
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
24
|
import "../locale/lang";
|
|
25
25
|
const { componentName, create } = createComponent("swipe");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, reactive, computed, provide, onDeactivated, onBeforeUnmount, watch, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent, e as clamp } from "./component-
|
|
2
|
+
import { c as createComponent, e as clamp } from "./component-470275dd.js";
|
|
3
3
|
import { u as useTouch } from "./index-7a7385e4.js";
|
|
4
4
|
import { u as useExpose } from "./index-79c5dc33.js";
|
|
5
5
|
import { r as requestAniFrame } from "./raf-729dad54.js";
|
|
@@ -294,7 +294,7 @@ const _sfc_main = create({
|
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
};
|
|
297
|
-
const onTouchEnd = (
|
|
297
|
+
const onTouchEnd = () => {
|
|
298
298
|
if (!props.touchable || !state.moving)
|
|
299
299
|
return;
|
|
300
300
|
const speed = delTa.value / (Date.now() - state.touchTime);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { inject, getCurrentInstance, reactive, computed, onUnmounted, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
3
3
|
import { u as useExpose } from "./index-79c5dc33.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
const { create, componentName } = createComponent("swiper-item");
|
|
7
7
|
const _sfc_main = create({
|
|
8
|
-
setup(
|
|
8
|
+
setup() {
|
|
9
9
|
const parent = inject("parent");
|
|
10
10
|
parent["relation"](getCurrentInstance());
|
|
11
11
|
const state = reactive({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createVNode, createCommentVNode, Fragment, withDirectives, toDisplayString, vShow } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
3
3
|
import { Loading1 } from "@nutui/icons-vue";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { inject, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
22
22
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
23
|
import "../locale/lang";
|
|
24
24
|
const { create } = createComponent("tab-pane");
|
|
@@ -38,7 +38,7 @@ const _sfc_main = create({
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
emits: ["click"],
|
|
41
|
-
setup(props
|
|
41
|
+
setup(props) {
|
|
42
42
|
const parentOption = inject("tabsOpiton");
|
|
43
43
|
const paneStyle = computed(() => {
|
|
44
44
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRefs, ref, reactive, provide, watch, onMounted, nextTick, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { create } = createComponent("tabbar");
|
|
@@ -35,7 +35,7 @@ const _sfc_main = create({
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
emits: ["tab-switch", "update:modelValue"],
|
|
38
|
-
setup(props, { emit
|
|
38
|
+
setup(props, { emit }) {
|
|
39
39
|
const { bottom, placeholder } = toRefs(props);
|
|
40
40
|
const height = ref();
|
|
41
41
|
const mdValue = reactive({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createComponent } from "./component-
|
|
1
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
2
2
|
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
3
3
|
import { inject, reactive, getCurrentInstance, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, toDisplayString } from "vue";
|
|
4
4
|
import { u as useRouter } from "./index-54d03fc1.js";
|
|
@@ -28,7 +28,7 @@ const _sfc_main = create({
|
|
|
28
28
|
},
|
|
29
29
|
to: [Object, String]
|
|
30
30
|
},
|
|
31
|
-
setup(props, {
|
|
31
|
+
setup(props, { slots }) {
|
|
32
32
|
const isHaveSlot = (slot) => {
|
|
33
33
|
return slots[slot];
|
|
34
34
|
};
|
|
@@ -18,17 +18,23 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { defineComponent, h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
22
22
|
import { DownArrow } from "@nutui/icons-vue";
|
|
23
23
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
24
|
import "../locale/lang";
|
|
25
25
|
const RenderColumn = defineComponent({
|
|
26
|
+
props: {
|
|
27
|
+
slots: {
|
|
28
|
+
type: Array,
|
|
29
|
+
default: () => []
|
|
30
|
+
},
|
|
31
|
+
record: {
|
|
32
|
+
type: Object,
|
|
33
|
+
default: () => ({})
|
|
34
|
+
}
|
|
35
|
+
},
|
|
26
36
|
setup(props) {
|
|
27
37
|
return () => h(`view`, {}, props.slots[0] ? props.slots[0](props.record) : props.slots[1](props.record));
|
|
28
|
-
},
|
|
29
|
-
props: {
|
|
30
|
-
slots: Array,
|
|
31
|
-
record: Object
|
|
32
38
|
}
|
|
33
39
|
});
|
|
34
40
|
const { componentName, create, translate } = createComponent("table");
|
|
@@ -64,7 +70,7 @@ const _sfc_main = create({
|
|
|
64
70
|
}
|
|
65
71
|
},
|
|
66
72
|
emits: ["sorter"],
|
|
67
|
-
setup(props, { emit
|
|
73
|
+
setup(props, { emit }) {
|
|
68
74
|
const state = reactive({
|
|
69
75
|
curData: props.data
|
|
70
76
|
});
|
|
@@ -38,23 +38,24 @@ var __async = (__this, __arguments, generator) => {
|
|
|
38
38
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
|
-
import { c as createComponent, T as TypeOfFun } from "./component-
|
|
41
|
+
import { c as createComponent, T as TypeOfFun } from "./component-470275dd.js";
|
|
42
42
|
import { ref, onMounted, reactive, provide, computed, watch, onActivated, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode, createVNode, toDisplayString } from "vue";
|
|
43
43
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
44
44
|
import { u as useRect } from "./index-29892cda.js";
|
|
45
45
|
import { r as requestAniFrame } from "./raf-729dad54.js";
|
|
46
|
-
import
|
|
46
|
+
import Sticky from "./Sticky.js";
|
|
47
47
|
import { JoySmile } from "@nutui/icons-vue";
|
|
48
48
|
import { u as useTouch } from "./index-7a7385e4.js";
|
|
49
49
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
50
50
|
import "../locale/lang";
|
|
51
|
+
import "./index-97b44e6c.js";
|
|
51
52
|
const useTabContentTouch = (props, tabMethods, taro, useTaroRect) => {
|
|
52
53
|
const tabsContentRef = ref();
|
|
53
54
|
const tabsContentRefRect = ref({ width: 0, height: 0 });
|
|
54
55
|
const initTaroWidth = () => __async(void 0, null, function* () {
|
|
55
56
|
var _a, _b;
|
|
56
57
|
if (taro && taro.getEnv() !== taro.ENV_TYPE.WEB) {
|
|
57
|
-
let rect = yield useTaroRect(tabsContentRef
|
|
58
|
+
let rect = yield useTaroRect(tabsContentRef);
|
|
58
59
|
tabsContentRefRect.value.width = rect.width || 0;
|
|
59
60
|
tabsContentRefRect.value.height = rect.height || 0;
|
|
60
61
|
} else {
|
|
@@ -159,7 +160,7 @@ class Title {
|
|
|
159
160
|
}
|
|
160
161
|
const { create } = createComponent("tabs");
|
|
161
162
|
const _sfc_main = create({
|
|
162
|
-
components: { [
|
|
163
|
+
components: { [Sticky.name]: Sticky, JoySmile },
|
|
163
164
|
props: {
|
|
164
165
|
modelValue: {
|
|
165
166
|
type: [String, Number],
|
package/dist/packages/_es/Tag.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
3
3
|
import { Close } from "@nutui/icons-vue";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, computed, onMounted, nextTick, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { componentName, create, translate } = createComponent("textarea");
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, toDisplayString } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
22
22
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
23
|
import "../locale/lang";
|
|
24
24
|
const { componentName, create } = createComponent("time-detail");
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
22
22
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
23
|
import "../locale/lang";
|
|
24
24
|
const { componentName, create } = createComponent("time-pannel");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, provide, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
3
|
-
import { P as Popup } from "./index-
|
|
2
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
3
|
+
import { P as Popup } from "./index-412323a0.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
import "./Overlay.js";
|
|
@@ -18,11 +18,11 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, onMounted, watch, computed, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, createElementBlock, resolveDynamicComponent, createCommentVNode, toDisplayString, vShow, createVNode, render } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
22
22
|
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
23
23
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
24
|
import "../locale/lang";
|
|
25
|
-
import { C as CreateComponent } from "./mountComponent-
|
|
25
|
+
import { C as CreateComponent } from "./mountComponent-f893becf.js";
|
|
26
26
|
import { Success, Failure, Tips, Loading } from "@nutui/icons-vue";
|
|
27
27
|
const { create } = createComponent("toast");
|
|
28
28
|
const _sfc_main = create({
|
|
@@ -18,14 +18,14 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, ref, computed, onMounted, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, createElementVNode, vShow, Fragment, renderList, normalizeStyle, createCommentVNode, createVNode, withCtx, renderSlot, toDisplayString } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
22
22
|
import { u as useRect } from "./index-29892cda.js";
|
|
23
23
|
import { Close } from "@nutui/icons-vue";
|
|
24
24
|
import Popover from "./Popover.js";
|
|
25
25
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
26
26
|
import "../locale/lang";
|
|
27
27
|
import "./renderIcon-3d0fd47c.js";
|
|
28
|
-
import "./index-
|
|
28
|
+
import "./index-412323a0.js";
|
|
29
29
|
import "./Overlay.js";
|
|
30
30
|
const { create } = createComponent("tour");
|
|
31
31
|
const _sfc_main = create({
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createVNode } from "vue";
|
|
21
|
-
import { m as myFixed, c as createComponent } from "./component-
|
|
21
|
+
import { m as myFixed, c as createComponent } from "./component-470275dd.js";
|
|
22
22
|
import { TriangleUp, TriangleDown } from "@nutui/icons-vue";
|
|
23
23
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
24
|
import "../locale/lang";
|
|
@@ -5,8 +5,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import { reactive, computed, h, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, createCommentVNode, Fragment, renderList, createElementVNode, toDisplayString, createVNode } from "vue";
|
|
8
|
-
import { c as createComponent } from "./component-
|
|
9
|
-
import { f as funInterceptor } from "./Interceptor-
|
|
8
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
9
|
+
import { f as funInterceptor } from "./Interceptor-883a3078.js";
|
|
10
10
|
import Progress from "./Progress.js";
|
|
11
11
|
import { Photograph, Failure, Loading, Del, Link } from "@nutui/icons-vue";
|
|
12
12
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -133,7 +133,7 @@ const _sfc_main = create({
|
|
|
133
133
|
},
|
|
134
134
|
beforeDelete: {
|
|
135
135
|
type: Function,
|
|
136
|
-
default: (
|
|
136
|
+
default: () => {
|
|
137
137
|
return true;
|
|
138
138
|
}
|
|
139
139
|
},
|
|
@@ -191,6 +191,7 @@ const _sfc_main = create({
|
|
|
191
191
|
try {
|
|
192
192
|
uploadOption.sourceFile = fileItem.formData.get(props.name);
|
|
193
193
|
} catch (error) {
|
|
194
|
+
console.warn("[NutUI] <Uploader> formData.get(name)", error);
|
|
194
195
|
}
|
|
195
196
|
uploadOption.onStart = (option) => {
|
|
196
197
|
fileItem.status = "ready";
|
|
@@ -228,7 +229,7 @@ const _sfc_main = create({
|
|
|
228
229
|
task.upload();
|
|
229
230
|
} else {
|
|
230
231
|
uploadQueue.push(
|
|
231
|
-
new Promise((resolve
|
|
232
|
+
new Promise((resolve) => {
|
|
232
233
|
resolve(task);
|
|
233
234
|
})
|
|
234
235
|
);
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, ref, computed, watch, nextTick, onMounted, toRefs, openBlock, createElementBlock, createElementVNode, createCommentVNode, withDirectives, vShow, normalizeClass, toDisplayString, normalizeStyle, withModifiers } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
22
22
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
23
|
import "../locale/lang";
|
|
24
24
|
function throttle(fn, delay) {
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, watch, computed, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
22
22
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
23
|
import "../locale/lang";
|
|
24
24
|
const { componentName, create } = createComponent("watermark");
|
|
@@ -94,7 +94,7 @@ const _sfc_main = create({
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
emits: ["click"],
|
|
97
|
-
setup(props
|
|
97
|
+
setup(props) {
|
|
98
98
|
const state = reactive({
|
|
99
99
|
base64Url: ""
|
|
100
100
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { shallowReactive, getCurrentInstance, provide, markRaw, isVNode, computed, h } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
3
3
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
4
4
|
function flattenVNodes(children, childName) {
|
|
5
5
|
const result = [];
|
|
@@ -58,7 +58,7 @@ const floatData = (format, dataOp, mapOps) => {
|
|
|
58
58
|
let mergeMapOps = Object.assign({}, mapOps);
|
|
59
59
|
if (Object.keys(dataOp).length > 0) {
|
|
60
60
|
Object.keys(mergeFormat).forEach((keys) => {
|
|
61
|
-
if (
|
|
61
|
+
if (Object.prototype.hasOwnProperty.call(mergeMapOps, keys)) {
|
|
62
62
|
const tof = TypeOfFun(mergeMapOps[keys]);
|
|
63
63
|
if (tof == "function") {
|
|
64
64
|
mergeFormat[keys] = mergeMapOps[keys](dataOp);
|
|
@@ -111,17 +111,11 @@ function createComponent(name) {
|
|
|
111
111
|
return isFunction(text) ? text(...args) : text;
|
|
112
112
|
},
|
|
113
113
|
create: function(_component) {
|
|
114
|
-
_component.baseName = name;
|
|
115
114
|
_component.name = componentName;
|
|
116
115
|
_component.install = (vue) => {
|
|
117
116
|
vue.component(_component.name, _component);
|
|
118
117
|
};
|
|
119
118
|
return defineComponent(_component);
|
|
120
|
-
},
|
|
121
|
-
createDemo: function(_component) {
|
|
122
|
-
_component.baseName = name;
|
|
123
|
-
_component.name = "demo-" + name;
|
|
124
|
-
return defineComponent(_component);
|
|
125
119
|
}
|
|
126
120
|
};
|
|
127
121
|
}
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, computed, reactive, watch, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle, createTextVNode } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-470275dd.js";
|
|
22
22
|
import { r as requestAniFrame } from "./raf-729dad54.js";
|
|
23
23
|
import { u as useExpose } from "./index-79c5dc33.js";
|
|
24
24
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -128,6 +128,7 @@ const Utils = {
|
|
|
128
128
|
}
|
|
129
129
|
return Math.ceil((d + remainder) / 7);
|
|
130
130
|
},
|
|
131
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
131
132
|
getYearWeek: function(year, month, date, firstDayOfWeek = 0) {
|
|
132
133
|
const dateNow = new Date(Number(year), parseInt(month) - 1, Number(date));
|
|
133
134
|
const dateFirst = new Date(Number(year), 0, 1);
|