@nutui/nutui 4.1.0-beta.5 → 4.1.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 +30 -0
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +4651 -4662
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/_es/ActionSheet.js +2 -2
- package/dist/packages/_es/Address.js +4 -3
- package/dist/packages/_es/AddressList.js +1 -1
- 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 +17 -79
- package/dist/packages/_es/AvatarGroup.js +91 -19
- 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 +22 -24
- package/dist/packages/_es/CalendarItem.js +2 -2
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +2 -2
- 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 +1 -1
- package/dist/packages/_es/CollapseItem.js +1 -1
- package/dist/packages/_es/Comment.js +1 -1
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/Countdown.js +1 -1
- package/dist/packages/_es/Countup.js +1 -1
- package/dist/packages/_es/DatePicker.js +1 -1
- 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 +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +26 -21
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +2 -2
- package/dist/packages/_es/GridItem.js +2 -2
- package/dist/packages/_es/Image.js +1 -1
- package/dist/packages/_es/ImagePreview.js +4 -4
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +1 -1
- package/dist/packages/_es/InputNumber.js +23 -2
- package/dist/packages/_es/{Interceptor-883a3078.js → Interceptor-c05a39f2.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 +1 -1
- package/dist/packages/_es/MenuItem.js +2 -2
- package/dist/packages/_es/Navbar.js +42 -89
- package/dist/packages/_es/Noticebar.js +1 -1
- package/dist/packages/_es/Notify.js +2 -2
- package/dist/packages/_es/NumberKeyboard.js +2 -2
- package/dist/packages/_es/Overlay.js +1 -1
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +1 -1
- package/dist/packages/_es/Popover.js +2 -2
- 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 +1 -1
- 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 +1 -1
- 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 +2 -2
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +5 -1
- package/dist/packages/_es/SubSideNavbar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +1 -1
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +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 +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 +25 -18
- package/dist/packages/_es/Video.js +1 -1
- package/dist/packages/_es/Watermark.js +1 -1
- package/dist/packages/_es/{common-3cfd9c50.js → common-8775d905.js} +1 -1
- package/dist/packages/_es/{component-470275dd.js → component-0fbad28e.js} +2 -2
- package/dist/packages/_es/{index-02204c4b.js → index-3a5098e4.js} +14 -12
- package/dist/packages/_es/{index-412323a0.js → index-5ffbc437.js} +1 -1
- package/dist/packages/_es/{index.vue_vue_type_script_lang-0b4f12ed.js → index.vue_vue_type_script_lang-2852286e.js} +1 -1
- package/dist/packages/_es/{index.vue_vue_type_script_lang-9ebe2e75.js → index.vue_vue_type_script_lang-cdf21a24.js} +1 -1
- package/dist/packages/_es/{mountComponent-f893becf.js → mountComponent-a895e3f1.js} +1 -1
- package/dist/packages/avatargroup/index.scss +0 -3
- package/dist/packages/navbar/index.scss +1 -0
- package/dist/smartips/web-types.json +132 -6
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +51 -153
- package/dist/styles/themes/jdb.scss +51 -153
- package/dist/styles/themes/jddkh.scss +51 -153
- package/dist/styles/themes/jdt.scss +51 -153
- package/dist/types/__VUE/avatar/index.vue.d.ts +11 -27
- package/dist/types/__VUE/avatar/types.d.ts +3 -0
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +18 -15
- package/dist/types/__VUE/calendar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +7 -8
- package/dist/types/__VUE/calendaritem/type.d.ts +0 -1
- package/dist/types/__VUE/form/common.d.ts +2 -2
- package/dist/types/__VUE/form/index.vue.d.ts +4 -4
- package/dist/types/__VUE/navbar/index.vue.d.ts +8 -5
- package/dist/types/__VUE/uploader/index.vue.d.ts +40 -4
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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-0fbad28e.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";
|
|
@@ -289,8 +289,9 @@ const _sfc_main = create({
|
|
|
289
289
|
return Utils.isEqual(state.currDate[1], currDate);
|
|
290
290
|
};
|
|
291
291
|
const isMultiple = (currDate) => {
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
var _a, _b;
|
|
293
|
+
if (((_a = state.currDate) == null ? void 0 : _a.length) > 0) {
|
|
294
|
+
return (_b = state.currDate) == null ? void 0 : _b.some((item) => {
|
|
294
295
|
return Utils.isEqual(item, currDate);
|
|
295
296
|
});
|
|
296
297
|
} else {
|
|
@@ -333,17 +334,18 @@ const _sfc_main = create({
|
|
|
333
334
|
}
|
|
334
335
|
};
|
|
335
336
|
const chooseDay = (day, month, isFirst = false) => {
|
|
337
|
+
var _a, _b;
|
|
336
338
|
if (getClass(day, month) != `${state.dayPrefix}--disabled`) {
|
|
337
339
|
const { type } = props;
|
|
338
|
-
let days = [...month.curData];
|
|
339
340
|
let [y, m] = month.curData;
|
|
341
|
+
let days = [...month.curData];
|
|
340
342
|
days[2] = Utils.getNumTwoBit(Number(day.day));
|
|
341
343
|
days[3] = `${days[0]}-${days[1]}-${days[2]}`;
|
|
342
344
|
days[4] = Utils.getWhatDay(+days[0], +days[1], +days[2]);
|
|
343
345
|
if (type == "multiple") {
|
|
344
|
-
if (state.currDate.length > 0) {
|
|
346
|
+
if (((_a = state.currDate) == null ? void 0 : _a.length) > 0) {
|
|
345
347
|
let hasIndex = void 0;
|
|
346
|
-
state.currDate.forEach((item, index) => {
|
|
348
|
+
(_b = state.currDate) == null ? void 0 : _b.forEach((item, index) => {
|
|
347
349
|
if (item == days[3]) {
|
|
348
350
|
hasIndex = index;
|
|
349
351
|
}
|
|
@@ -490,7 +492,7 @@ const _sfc_main = create({
|
|
|
490
492
|
...getPreDaysStatus(
|
|
491
493
|
preMonthDays,
|
|
492
494
|
"prev",
|
|
493
|
-
{ month: preMonth
|
|
495
|
+
{ month: String(preMonth), year: String(preYear) },
|
|
494
496
|
preCurrMonthDays
|
|
495
497
|
),
|
|
496
498
|
...getDaysStatus(currMonthDays, "curr", title)
|
|
@@ -530,7 +532,7 @@ const _sfc_main = create({
|
|
|
530
532
|
state.startData = splitDate(propStartDate);
|
|
531
533
|
state.endData = splitDate(propEndDate);
|
|
532
534
|
if (props.defaultValue || Array.isArray(props.defaultValue) && props.defaultValue.length > 0) {
|
|
533
|
-
state.currDate = props.type
|
|
535
|
+
state.currDate = props.type !== "one" ? [...props.defaultValue] : props.defaultValue;
|
|
534
536
|
}
|
|
535
537
|
const startDate = {
|
|
536
538
|
year: Number(state.startData[0]),
|
|
@@ -619,7 +621,7 @@ const _sfc_main = create({
|
|
|
619
621
|
state.currentIndex = current;
|
|
620
622
|
state.yearMonthTitle = state.monthsData[state.currentIndex].title;
|
|
621
623
|
if (state.defaultData.length > 0) {
|
|
622
|
-
if (
|
|
624
|
+
if (state.isRange) {
|
|
623
625
|
chooseDay({ day: state.defaultData[2], type: "curr" }, state.monthsData[state.currentIndex], true);
|
|
624
626
|
chooseDay({ day: state.defaultData[5], type: "curr" }, state.monthsData[lastCurrent], true);
|
|
625
627
|
} else if (props.type == "week") {
|
|
@@ -793,12 +795,12 @@ const _sfc_main = create({
|
|
|
793
795
|
chooseDay,
|
|
794
796
|
isCurrDay,
|
|
795
797
|
confirm,
|
|
798
|
+
months
|
|
799
|
+
}, toRefs(state)), toRefs(props)), {
|
|
800
|
+
translate,
|
|
796
801
|
monthsPanel,
|
|
797
|
-
months,
|
|
798
802
|
weeksPanel,
|
|
799
803
|
viewArea
|
|
800
|
-
}, toRefs(state)), toRefs(props)), {
|
|
801
|
-
translate
|
|
802
804
|
});
|
|
803
805
|
}
|
|
804
806
|
});
|
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { c as createComponent } from "./component-
|
|
20
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
21
21
|
import { reactive, computed, watch, watchEffect, toRefs, resolveComponent, openBlock, createBlock, Teleport, mergeProps, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, vShow } from "vue";
|
|
22
22
|
import Overlay from "./Overlay.js";
|
|
23
23
|
import { Close } from "@nutui/icons-vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { provide, readonly, computed, watch, h } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
3
3
|
const { componentName, create } = createComponent("radio-group");
|
|
4
4
|
const _sfc_main = create({
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject, computed, h } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
3
3
|
import { CheckNormal, CheckChecked } from "@nutui/icons-vue";
|
|
4
4
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
5
5
|
const { componentName, create } = createComponent("radio");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createApp } from "vue";
|
|
2
|
-
import { j as isString, k as isFunction } from "./component-
|
|
2
|
+
import { j as isString, k as isFunction } from "./component-0fbad28e.js";
|
|
3
3
|
const CreateComponent = (options, component) => {
|
|
4
4
|
let elWrap = document.body;
|
|
5
5
|
const teleport = options.teleport || "body";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "NutUI",
|
|
5
|
-
"version": "4.1.0
|
|
5
|
+
"version": "4.1.0",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"tags": [
|
|
@@ -917,7 +917,7 @@
|
|
|
917
917
|
{
|
|
918
918
|
"name": "img-url",
|
|
919
919
|
"default": "-",
|
|
920
|
-
"description": "左侧图片 `
|
|
920
|
+
"description": "左侧图片 `URL`",
|
|
921
921
|
"value": {
|
|
922
922
|
"type": "string",
|
|
923
923
|
"kind": "expression"
|
|
@@ -2730,13 +2730,139 @@
|
|
|
2730
2730
|
"events": [],
|
|
2731
2731
|
"attributes": [
|
|
2732
2732
|
{
|
|
2733
|
-
"name": "
|
|
2734
|
-
"default": "
|
|
2735
|
-
"description": "
|
|
2733
|
+
"name": "show",
|
|
2734
|
+
"default": "`false`",
|
|
2735
|
+
"description": "是否展示预览图片",
|
|
2736
|
+
"value": {
|
|
2737
|
+
"type": "boolean",
|
|
2738
|
+
"kind": "expression"
|
|
2739
|
+
}
|
|
2740
|
+
},
|
|
2741
|
+
{
|
|
2742
|
+
"name": "videos",
|
|
2743
|
+
"default": "`[]`",
|
|
2744
|
+
"description": "预览的视频数组(视频自动放到图片之前)",
|
|
2745
|
+
"value": {
|
|
2746
|
+
"type": "videoarray[]",
|
|
2747
|
+
"kind": "expression"
|
|
2748
|
+
}
|
|
2749
|
+
},
|
|
2750
|
+
{
|
|
2751
|
+
"name": "images",
|
|
2752
|
+
"default": "`[]`",
|
|
2753
|
+
"description": "预览图片数组",
|
|
2754
|
+
"value": {
|
|
2755
|
+
"type": "imagearray[]",
|
|
2756
|
+
"kind": "expression"
|
|
2757
|
+
}
|
|
2758
|
+
},
|
|
2759
|
+
{
|
|
2760
|
+
"name": "autoplay",
|
|
2761
|
+
"default": "`3000`",
|
|
2762
|
+
"description": "自动轮播时长,0 表示不会自动轮播",
|
|
2763
|
+
"value": {
|
|
2764
|
+
"type": "number | string",
|
|
2765
|
+
"kind": "expression"
|
|
2766
|
+
}
|
|
2767
|
+
},
|
|
2768
|
+
{
|
|
2769
|
+
"name": "init-no",
|
|
2770
|
+
"default": "`0`",
|
|
2771
|
+
"description": "初始页码",
|
|
2772
|
+
"value": {
|
|
2773
|
+
"type": "number",
|
|
2774
|
+
"kind": "expression"
|
|
2775
|
+
}
|
|
2776
|
+
},
|
|
2777
|
+
{
|
|
2778
|
+
"name": "pagination-visible",
|
|
2779
|
+
"default": "`false`",
|
|
2780
|
+
"description": "分页指示器是否展示",
|
|
2781
|
+
"value": {
|
|
2782
|
+
"type": "boolean",
|
|
2783
|
+
"kind": "expression"
|
|
2784
|
+
}
|
|
2785
|
+
},
|
|
2786
|
+
{
|
|
2787
|
+
"name": "pagination-color",
|
|
2788
|
+
"default": "`#fff`",
|
|
2789
|
+
"description": "分页指示器选中的颜色",
|
|
2736
2790
|
"value": {
|
|
2737
2791
|
"type": "string",
|
|
2738
2792
|
"kind": "expression"
|
|
2739
2793
|
}
|
|
2794
|
+
},
|
|
2795
|
+
{
|
|
2796
|
+
"name": "content-close",
|
|
2797
|
+
"default": "`true`",
|
|
2798
|
+
"description": "点击图片可以退出预览",
|
|
2799
|
+
"value": {
|
|
2800
|
+
"type": "boolean",
|
|
2801
|
+
"kind": "expression"
|
|
2802
|
+
}
|
|
2803
|
+
},
|
|
2804
|
+
{
|
|
2805
|
+
"name": "show-index",
|
|
2806
|
+
"default": "`true`",
|
|
2807
|
+
"description": "是否显示页码",
|
|
2808
|
+
"value": {
|
|
2809
|
+
"type": "boolean",
|
|
2810
|
+
"kind": "expression"
|
|
2811
|
+
}
|
|
2812
|
+
},
|
|
2813
|
+
{
|
|
2814
|
+
"name": "closeable",
|
|
2815
|
+
"default": "`false`",
|
|
2816
|
+
"description": "是否显示关闭图标",
|
|
2817
|
+
"value": {
|
|
2818
|
+
"type": "boolean",
|
|
2819
|
+
"kind": "expression"
|
|
2820
|
+
}
|
|
2821
|
+
},
|
|
2822
|
+
{
|
|
2823
|
+
"name": "close-icon-position",
|
|
2824
|
+
"default": "`top-right`",
|
|
2825
|
+
"description": "关闭图标位置,可选值:`top-left`",
|
|
2826
|
+
"value": {
|
|
2827
|
+
"type": "string",
|
|
2828
|
+
"kind": "expression"
|
|
2829
|
+
}
|
|
2830
|
+
},
|
|
2831
|
+
{
|
|
2832
|
+
"name": "before-close",
|
|
2833
|
+
"default": "-",
|
|
2834
|
+
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 `Promise`",
|
|
2835
|
+
"value": {
|
|
2836
|
+
"type": "(active: number) => boolean | promise<`boolean`>",
|
|
2837
|
+
"kind": "expression"
|
|
2838
|
+
}
|
|
2839
|
+
},
|
|
2840
|
+
{
|
|
2841
|
+
"name": "max-zoom",
|
|
2842
|
+
"default": "`3`",
|
|
2843
|
+
"description": "手势缩放时,最大缩放比例",
|
|
2844
|
+
"value": {
|
|
2845
|
+
"type": "number",
|
|
2846
|
+
"kind": "expression"
|
|
2847
|
+
}
|
|
2848
|
+
},
|
|
2849
|
+
{
|
|
2850
|
+
"name": "min-zoom",
|
|
2851
|
+
"default": "`1/3`",
|
|
2852
|
+
"description": "手势缩放时,最小缩放比例",
|
|
2853
|
+
"value": {
|
|
2854
|
+
"type": "number",
|
|
2855
|
+
"kind": "expression"
|
|
2856
|
+
}
|
|
2857
|
+
},
|
|
2858
|
+
{
|
|
2859
|
+
"name": "is-loop",
|
|
2860
|
+
"default": "`true`",
|
|
2861
|
+
"description": "是否循环播放",
|
|
2862
|
+
"value": {
|
|
2863
|
+
"type": "boolean",
|
|
2864
|
+
"kind": "expression"
|
|
2865
|
+
}
|
|
2740
2866
|
}
|
|
2741
2867
|
]
|
|
2742
2868
|
},
|
|
@@ -5947,7 +6073,7 @@
|
|
|
5947
6073
|
},
|
|
5948
6074
|
{
|
|
5949
6075
|
"name": "placeholder",
|
|
5950
|
-
"default": "`'
|
|
6076
|
+
"default": "`'请输入'`",
|
|
5951
6077
|
"description": "设置占位提示文字",
|
|
5952
6078
|
"value": {
|
|
5953
6079
|
"type": "string",
|