@nutui/nutui 4.3.0 → 4.3.2
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 +45 -0
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +5980 -6124
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/actionsheet/ActionSheet.js +1 -3
- package/dist/packages/address/Address.js +1 -4
- package/dist/packages/addresslist/AddressList.js +0 -4
- package/dist/packages/animate/Animate.js +51 -44
- package/dist/packages/audio/Audio.js +0 -3
- package/dist/packages/audiooperate/AudioOperate.js +0 -4
- package/dist/packages/avatar/Avatar.js +0 -1
- package/dist/packages/avatarcropper/AvatarCropper.js +0 -1
- package/dist/packages/calendar/Calendar.js +1 -7
- package/dist/packages/calendarcard/CalendarCard.js +0 -2
- package/dist/packages/calendaritem/CalendarItem.js +0 -2
- package/dist/packages/card/Card.js +2 -3
- package/dist/packages/cascader/Cascader.js +1 -10
- package/dist/packages/checkbox/Checkbox.js +4 -2
- package/dist/packages/col/Col.js +41 -30
- package/dist/packages/collapse/Collapse.js +40 -28
- package/dist/packages/collapseitem/CollapseItem.js +112 -125
- package/dist/packages/comment/Comment.js +0 -5
- package/dist/packages/common-FZL3qC99.js +16 -0
- package/dist/packages/countdown/Countdown.js +3 -4
- package/dist/packages/datepicker/DatePicker.js +0 -4
- package/dist/packages/dialog/Dialog.js +1 -5
- package/dist/packages/ecard/Ecard.js +0 -4
- package/dist/packages/empty/Empty.js +0 -2
- package/dist/packages/fixednav/FixedNav.js +0 -2
- package/dist/packages/form/Form.js +163 -157
- package/dist/packages/formitem/FormItem.js +77 -108
- package/dist/packages/grid/Grid.js +0 -1
- package/dist/packages/imagepreview/ImagePreview.js +1 -5
- package/dist/packages/{index-wY4t0zYt.js → index-BqB5dTeo.js} +29 -17
- package/dist/packages/{index.vue_vue_type_script_lang-MJYVRFbp.js → index.vue_vue_type_script_lang-n0HbjvfF.js} +6 -4
- package/dist/packages/infiniteloading/InfiniteLoading.js +0 -1
- package/dist/packages/input/Input.js +10 -7
- package/dist/packages/inputnumber/InputNumber.js +11 -8
- package/dist/packages/invoice/Invoice.js +10 -21
- package/dist/packages/layout/Layout.js +3 -0
- package/dist/packages/locale/lang/index.js +0 -1
- package/dist/packages/menuitem/MenuItem.js +1 -3
- package/dist/packages/notify/Notify.js +1 -4
- package/dist/packages/numberkeyboard/NumberKeyboard.js +1 -5
- package/dist/packages/pagination/Pagination.js +0 -2
- package/dist/packages/picker/Picker.js +10 -5
- package/dist/packages/popover/Popover.js +1 -4
- package/dist/packages/popup/Popup.js +1 -5
- package/dist/packages/price/Price.js +69 -77
- package/dist/packages/pullrefresh/PullRefresh.js +0 -1
- package/dist/packages/radio/Radio.js +1 -6
- package/dist/packages/radiogroup/RadioGroup.js +0 -3
- package/dist/packages/range/Range.js +10 -7
- package/dist/packages/rate/Rate.js +6 -3
- package/dist/packages/row/Row.js +43 -39
- package/dist/packages/searchbar/Searchbar.js +5 -4
- package/dist/packages/shortpassword/ShortPassword.js +1 -4
- package/dist/packages/signature/Signature.js +0 -4
- package/dist/packages/sku/Sku.js +8 -12
- package/dist/packages/switch/Switch.js +12 -2
- package/dist/packages/switch/index.css +1 -1
- package/dist/packages/switch/index.scss +1 -1
- package/dist/packages/table/Table.js +0 -2
- package/dist/packages/tabs/Tabs.js +0 -1
- package/dist/packages/textarea/Textarea.js +7 -6
- package/dist/packages/timepannel/TimePannel.js +2 -2
- package/dist/packages/timeselect/TimeSelect.js +1 -5
- package/dist/packages/toast/Toast.js +3 -3
- package/dist/packages/tour/Tour.js +0 -4
- package/dist/packages/uploader/Uploader.js +7 -5
- package/dist/packages/video/Video.js +0 -2
- package/dist/smartips/web-types.json +21 -3
- package/dist/style.css +1 -1
- package/dist/types/__VUE/address/index.vue.d.ts +43 -3
- package/dist/types/__VUE/animate/animate.vue.d.ts +75 -0
- package/dist/types/__VUE/animate/index.d.ts +6 -0
- package/dist/types/__VUE/col/col.vue.d.ts +53 -0
- package/dist/types/__VUE/col/index.d.ts +5 -0
- package/dist/types/__VUE/collapse/collapse.vue.d.ts +60 -0
- package/dist/types/__VUE/collapse/index.d.ts +6 -0
- package/dist/types/__VUE/collapse/types.d.ts +3 -2
- package/dist/types/__VUE/collapseitem/collapse-item.vue.d.ts +201 -0
- package/dist/types/__VUE/collapseitem/index.d.ts +5 -0
- package/dist/types/__VUE/countdown/index.vue.d.ts +23 -1
- package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
- package/dist/types/__VUE/form/common.d.ts +4 -30
- package/dist/types/__VUE/form/form.vue.d.ts +80 -0
- package/dist/types/__VUE/form/index.d.ts +6 -0
- package/dist/types/__VUE/form/types.d.ts +12 -5
- package/dist/types/__VUE/formitem/form-item.vue.d.ts +97 -0
- package/dist/types/__VUE/formitem/index.d.ts +5 -0
- package/dist/types/__VUE/input/index.vue.d.ts +1 -0
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -0
- package/dist/types/__VUE/layout/index.d.ts +4 -0
- package/dist/types/__VUE/layout/layout.vue.d.ts +10 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +1 -0
- package/dist/types/__VUE/picker/types.d.ts +1 -0
- package/dist/types/__VUE/picker/usePicker.d.ts +1 -0
- package/dist/types/__VUE/price/index.d.ts +6 -0
- package/dist/types/__VUE/price/price.vue.d.ts +83 -0
- package/dist/types/__VUE/range/index.vue.d.ts +1 -1
- package/dist/types/__VUE/rate/index.vue.d.ts +1 -0
- package/dist/types/__VUE/row/index.d.ts +5 -0
- package/dist/types/__VUE/row/row.vue.d.ts +71 -0
- package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -0
- package/dist/types/__VUE/skeleton/index.vue.d.ts +3 -3
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +1 -1
- package/dist/types/__VUE/switch/index.vue.d.ts +9 -0
- package/dist/types/__VUE/table/index.vue.d.ts +4 -4
- package/dist/types/__VUE/tabs/index.vue.d.ts +4 -4
- package/dist/types/__VUE/textarea/index.vue.d.ts +1 -0
- package/dist/types/__VUE/toast/index.vue.d.ts +21 -1
- package/dist/types/index.d.ts +19 -10
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/packages/types-Ynmct7na.js +0 -4
- package/dist/types/__VUE/animate/index.vue.d.ts +0 -71
- package/dist/types/__VUE/col/index.vue.d.ts +0 -42
- package/dist/types/__VUE/collapse/index.vue.d.ts +0 -39
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +0 -212
- package/dist/types/__VUE/form/index.vue.d.ts +0 -58
- package/dist/types/__VUE/formitem/index.vue.d.ts +0 -134
- package/dist/types/__VUE/formitem/types.d.ts +0 -11
- package/dist/types/__VUE/layout/index.vue.d.ts +0 -12
- package/dist/types/__VUE/price/index.vue.d.ts +0 -97
- package/dist/types/__VUE/row/index.vue.d.ts +0 -62
- /package/dist/types/__VUE/animate/{type.d.ts → types.d.ts} +0 -0
|
@@ -19,11 +19,9 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
21
21
|
import { useSlots, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeClass, normalizeStyle } from "vue";
|
|
22
|
-
import { N as NutPopup, p as popupProps } from "../index-
|
|
22
|
+
import { N as NutPopup, p as popupProps } from "../index-BqB5dTeo.js";
|
|
23
23
|
import { Loading } from "@nutui/icons-vue";
|
|
24
24
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
25
|
-
import "../overlay/Overlay.js";
|
|
26
|
-
import "../util-4Jkyw4BJ.js";
|
|
27
25
|
const { create } = createComponent("action-sheet");
|
|
28
26
|
const _sfc_main = create({
|
|
29
27
|
components: {
|
|
@@ -20,13 +20,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20
20
|
import { ref, reactive, computed, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, renderSlot, withDirectives, createVNode, vShow, toDisplayString, createElementBlock, Fragment, renderList, normalizeClass, createCommentVNode, normalizeStyle, createTextVNode } from "vue";
|
|
21
21
|
import { Location, Location2, Check, Close, Left } from "@nutui/icons-vue";
|
|
22
22
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
23
|
-
import { N as NutPopup, p as popupProps } from "../index-
|
|
23
|
+
import { N as NutPopup, p as popupProps } from "../index-BqB5dTeo.js";
|
|
24
24
|
import NutElevator from "../elevator/Elevator.js";
|
|
25
25
|
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
26
26
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
27
|
-
import "../overlay/Overlay.js";
|
|
28
|
-
import "../util-4Jkyw4BJ.js";
|
|
29
|
-
import "@nutui/nutui/dist/packages/locale/lang";
|
|
30
27
|
const { create } = createComponent("address");
|
|
31
28
|
const cN = "NutAddress";
|
|
32
29
|
const _sfc_main = create({
|
|
@@ -6,10 +6,6 @@ import { Del, Edit } from "@nutui/icons-vue";
|
|
|
6
6
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
7
7
|
import { Button as _sfc_main$3 } from "../button/Button.js";
|
|
8
8
|
import NutSwipe from "../swipe/Swipe.js";
|
|
9
|
-
import "@nutui/nutui/dist/packages/locale/lang";
|
|
10
|
-
import "../with-install-p59gYYU_.js";
|
|
11
|
-
import "../index-084nl_oE.js";
|
|
12
|
-
import "../types-qOrhXtA_.js";
|
|
13
9
|
const { create: create$2 } = createComponent("address-list-item");
|
|
14
10
|
const cN$1 = "NutAddressList";
|
|
15
11
|
const _sfc_main$2 = create$2({
|
|
@@ -1,32 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
type: String,
|
|
17
|
-
default: ""
|
|
18
|
-
},
|
|
19
|
-
loop: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: false
|
|
22
|
-
},
|
|
23
|
-
duration: {
|
|
24
|
-
type: [String, Number],
|
|
25
|
-
defualt: 500
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
26
16
|
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
21
|
+
import { w as withInstall } from "../with-install-p59gYYU_.js";
|
|
22
|
+
const _hoisted_1 = { class: "nut-animate" };
|
|
23
|
+
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
24
|
+
name: "NutAnimate"
|
|
25
|
+
}), {
|
|
26
|
+
__name: "animate",
|
|
27
|
+
props: {
|
|
28
|
+
type: {},
|
|
29
|
+
show: { type: Boolean, default: false },
|
|
30
|
+
action: { default: "" },
|
|
31
|
+
loop: { type: Boolean, default: false },
|
|
32
|
+
duration: { default: 500 }
|
|
27
33
|
},
|
|
28
34
|
emits: ["click", "animate"],
|
|
29
|
-
setup(
|
|
35
|
+
setup(__props, { emit: __emit }) {
|
|
36
|
+
const props = __props;
|
|
37
|
+
const emit = __emit;
|
|
30
38
|
const animated = ref(props.action === "initial" || props.show === true || props.loop);
|
|
31
39
|
const classes = computed(() => {
|
|
32
40
|
const prefixCls = "nut-animate";
|
|
@@ -60,24 +68,23 @@ const _sfc_main = create({
|
|
|
60
68
|
}
|
|
61
69
|
}
|
|
62
70
|
);
|
|
63
|
-
return
|
|
71
|
+
return (_ctx, _cache) => {
|
|
72
|
+
return openBlock(), createElementBlock("view", _hoisted_1, [
|
|
73
|
+
createElementVNode("view", {
|
|
74
|
+
class: normalizeClass(classes.value),
|
|
75
|
+
style: normalizeStyle({
|
|
76
|
+
animationDuration: _ctx.duration ? `${_ctx.duration}ms` : void 0
|
|
77
|
+
}),
|
|
78
|
+
onClick: handleClick
|
|
79
|
+
}, [
|
|
80
|
+
renderSlot(_ctx.$slots, "default")
|
|
81
|
+
], 6)
|
|
82
|
+
]);
|
|
83
|
+
};
|
|
64
84
|
}
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
68
|
-
return openBlock(), createElementBlock("view", _hoisted_1, [
|
|
69
|
-
createElementVNode("view", {
|
|
70
|
-
class: normalizeClass(_ctx.classes),
|
|
71
|
-
style: normalizeStyle({
|
|
72
|
-
animationDuration: _ctx.duration ? `${_ctx.duration}ms` : void 0
|
|
73
|
-
}),
|
|
74
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
75
|
-
}, [
|
|
76
|
-
renderSlot(_ctx.$slots, "default")
|
|
77
|
-
], 6)
|
|
78
|
-
]);
|
|
79
|
-
}
|
|
80
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
85
|
+
}));
|
|
86
|
+
withInstall(_sfc_main);
|
|
81
87
|
export {
|
|
82
|
-
|
|
88
|
+
_sfc_main as Animate,
|
|
89
|
+
_sfc_main as default
|
|
83
90
|
};
|
|
@@ -22,9 +22,6 @@ import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
|
22
22
|
import { Service } from "@nutui/icons-vue";
|
|
23
23
|
import NutRange from "../range/Range.js";
|
|
24
24
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
25
|
-
import "../util-4Jkyw4BJ.js";
|
|
26
|
-
import "../index-084nl_oE.js";
|
|
27
|
-
import "../index-cp6Ms_Qe.js";
|
|
28
25
|
const { create } = createComponent("audio");
|
|
29
26
|
const _sfc_main = create({
|
|
30
27
|
props: {
|
|
@@ -22,10 +22,6 @@ import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
|
22
22
|
import { Button as _sfc_main$1 } from "../button/Button.js";
|
|
23
23
|
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
24
24
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
25
|
-
import "@nutui/icons-vue";
|
|
26
|
-
import "../with-install-p59gYYU_.js";
|
|
27
|
-
import "@nutui/nutui/dist/packages/locale/lang";
|
|
28
|
-
import "../util-4Jkyw4BJ.js";
|
|
29
25
|
const { create } = createComponent("audio-operate");
|
|
30
26
|
const cN = "NutAudioOperate";
|
|
31
27
|
const _sfc_main = create({
|
|
@@ -46,7 +46,6 @@ import { Refresh2, Retweet } from "@nutui/icons-vue";
|
|
|
46
46
|
import { u as useTouch } from "../index-084nl_oE.js";
|
|
47
47
|
import { u as useRect } from "../index-cp6Ms_Qe.js";
|
|
48
48
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
49
|
-
import "../with-install-p59gYYU_.js";
|
|
50
49
|
const { create } = createComponent("avatar-cropper");
|
|
51
50
|
const _sfc_main = create({
|
|
52
51
|
components: {
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { computed, ref, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, createSlots, renderSlot } from "vue";
|
|
2
2
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
3
|
import NutCalendarItem from "../calendaritem/CalendarItem.js";
|
|
4
|
-
import { N as NutPopup } from "../index-
|
|
4
|
+
import { N as NutPopup } from "../index-BqB5dTeo.js";
|
|
5
5
|
import { U as Utils } from "../date-djiVNSnJ.js";
|
|
6
6
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
7
|
-
import "../raf-MQjoO-Ag.js";
|
|
8
|
-
import "../index-s3RgMhc7.js";
|
|
9
|
-
import "@nutui/nutui/dist/packages/locale/lang";
|
|
10
|
-
import "../util-4Jkyw4BJ.js";
|
|
11
|
-
import "@nutui/icons-vue";
|
|
12
|
-
import "../overlay/Overlay.js";
|
|
13
7
|
const { create } = createComponent("calendar");
|
|
14
8
|
const _sfc_main = create({
|
|
15
9
|
components: {
|
|
@@ -21,8 +21,6 @@ import { h, defineComponent, ref, computed, watchEffect, withDirectives, openBlo
|
|
|
21
21
|
import { U as Utils } from "../date-djiVNSnJ.js";
|
|
22
22
|
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
23
23
|
import { w as withInstall } from "../with-install-p59gYYU_.js";
|
|
24
|
-
import "@nutui/nutui/dist/packages/locale/lang";
|
|
25
|
-
import "../util-4Jkyw4BJ.js";
|
|
26
24
|
const Left = () => {
|
|
27
25
|
return h(
|
|
28
26
|
"svg",
|
|
@@ -23,8 +23,6 @@ import { U as Utils } from "../date-djiVNSnJ.js";
|
|
|
23
23
|
import { r as requestAniFrame } from "../raf-MQjoO-Ag.js";
|
|
24
24
|
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
25
25
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
26
|
-
import "@nutui/nutui/dist/packages/locale/lang";
|
|
27
|
-
import "../util-4Jkyw4BJ.js";
|
|
28
26
|
const { create } = createComponent("calendar-item");
|
|
29
27
|
const cN = "NutCalendarItem";
|
|
30
28
|
const _sfc_main = create({
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
2
2
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, renderSlot, createVNode, createCommentVNode, withCtx, createTextVNode } from "vue";
|
|
3
|
-
import
|
|
3
|
+
import { Price as _sfc_main$1 } from "../price/Price.js";
|
|
4
4
|
import NutTag from "../tag/Tag.js";
|
|
5
5
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
6
|
-
import "@nutui/icons-vue";
|
|
7
6
|
const { create } = createComponent("card");
|
|
8
7
|
const _sfc_main = create({
|
|
9
8
|
components: {
|
|
10
|
-
NutPrice,
|
|
9
|
+
NutPrice: _sfc_main$1,
|
|
11
10
|
NutTag
|
|
12
11
|
},
|
|
13
12
|
props: {
|
|
@@ -55,22 +55,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
57
|
import { computed, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
58
|
-
import { N as NutPopup, p as popupProps } from "../index-
|
|
58
|
+
import { N as NutPopup, p as popupProps } from "../index-BqB5dTeo.js";
|
|
59
59
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
60
60
|
import { Loading, Checklist } from "@nutui/icons-vue";
|
|
61
61
|
import NutTabs from "../tabs/Tabs.js";
|
|
62
62
|
import NutTabPane from "../tabpane/TabPane.js";
|
|
63
63
|
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
64
64
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
65
|
-
import "../overlay/Overlay.js";
|
|
66
|
-
import "../util-4Jkyw4BJ.js";
|
|
67
|
-
import "../sticky/Sticky.js";
|
|
68
|
-
import "../index-xDfQLRen.js";
|
|
69
|
-
import "../index-cp6Ms_Qe.js";
|
|
70
|
-
import "../pxCheck-OnXlN1NC.js";
|
|
71
|
-
import "../raf-MQjoO-Ag.js";
|
|
72
|
-
import "../index-084nl_oE.js";
|
|
73
|
-
import "@nutui/nutui/dist/packages/locale/lang";
|
|
74
65
|
const formatTree = (tree, parent, config) => tree.map((node) => {
|
|
75
66
|
const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
|
|
76
67
|
const _a = node, { [valueKey]: value, [textKey]: text, [childrenKey]: children } = _a, others = __objRest(_a, [__restKey(valueKey), __restKey(textKey), __restKey(childrenKey)]);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { inject, reactive, computed, watch, onMounted, getCurrentInstance, onBeforeUnmount, h } from "vue";
|
|
1
|
+
import { toRef, inject, reactive, computed, watch, onMounted, getCurrentInstance, onBeforeUnmount, h } from "vue";
|
|
2
2
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
3
|
import { CheckNormal, Checked, CheckDisabled } from "@nutui/icons-vue";
|
|
4
4
|
import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
|
|
5
5
|
import { C as CHECKBOX_KEY } from "../types-zeKkNDAq.js";
|
|
6
|
+
import { u as useFormDisabled } from "../common-FZL3qC99.js";
|
|
6
7
|
const { create, componentName } = createComponent("checkbox");
|
|
7
8
|
const _sfc_main = create({
|
|
8
9
|
props: {
|
|
@@ -38,6 +39,7 @@ const _sfc_main = create({
|
|
|
38
39
|
},
|
|
39
40
|
emits: ["change", "update:modelValue"],
|
|
40
41
|
setup(props, { emit, slots }) {
|
|
42
|
+
const disabled = useFormDisabled(toRef(props, "disabled"));
|
|
41
43
|
const parent = inject(CHECKBOX_KEY, null);
|
|
42
44
|
const state = reactive({
|
|
43
45
|
partialSelect: props.indeterminate
|
|
@@ -51,7 +53,7 @@ const _sfc_main = create({
|
|
|
51
53
|
}
|
|
52
54
|
});
|
|
53
55
|
const pDisabled = computed(() => {
|
|
54
|
-
return hasParent.value ? parent.disabled.value ? parent.disabled.value :
|
|
56
|
+
return hasParent.value ? parent.disabled.value ? parent.disabled.value : disabled.value : disabled.value;
|
|
55
57
|
});
|
|
56
58
|
const checked = computed(() => !!props.modelValue);
|
|
57
59
|
const color = computed(() => {
|
package/dist/packages/col/Col.js
CHANGED
|
@@ -1,22 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { defineComponent, inject, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
3
21
|
import { L as LAYOUT_KEY } from "../types-Ww4ErYJT.js";
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
const _sfc_main =
|
|
22
|
+
import { w as withInstall } from "../with-install-p59gYYU_.js";
|
|
23
|
+
const prefixCls = "nut-col";
|
|
24
|
+
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
25
|
+
name: "NutCol"
|
|
26
|
+
}), {
|
|
27
|
+
__name: "col",
|
|
7
28
|
props: {
|
|
8
|
-
span: {
|
|
9
|
-
|
|
10
|
-
default: "24"
|
|
11
|
-
},
|
|
12
|
-
offset: {
|
|
13
|
-
type: [String, Number],
|
|
14
|
-
default: "0"
|
|
15
|
-
}
|
|
29
|
+
span: { default: 24 },
|
|
30
|
+
offset: { default: 0 }
|
|
16
31
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const prefixCls = "nut-col";
|
|
32
|
+
setup(__props) {
|
|
33
|
+
const props = __props;
|
|
20
34
|
const gutter = inject(LAYOUT_KEY);
|
|
21
35
|
const classes = computed(() => {
|
|
22
36
|
return {
|
|
@@ -32,21 +46,18 @@ const _sfc_main = create({
|
|
|
32
46
|
paddingRight: gutter / 2 + "px"
|
|
33
47
|
};
|
|
34
48
|
});
|
|
35
|
-
return {
|
|
36
|
-
|
|
37
|
-
|
|
49
|
+
return (_ctx, _cache) => {
|
|
50
|
+
return openBlock(), createElementBlock("view", {
|
|
51
|
+
class: normalizeClass(classes.value),
|
|
52
|
+
style: normalizeStyle(style.value)
|
|
53
|
+
}, [
|
|
54
|
+
renderSlot(_ctx.$slots, "default")
|
|
55
|
+
], 6);
|
|
38
56
|
};
|
|
39
57
|
}
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
return openBlock(), createElementBlock("view", {
|
|
43
|
-
class: normalizeClass(_ctx.classes),
|
|
44
|
-
style: normalizeStyle(_ctx.style)
|
|
45
|
-
}, [
|
|
46
|
-
renderSlot(_ctx.$slots, "default")
|
|
47
|
-
], 6);
|
|
48
|
-
}
|
|
49
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
58
|
+
}));
|
|
59
|
+
withInstall(_sfc_main);
|
|
50
60
|
export {
|
|
51
|
-
|
|
61
|
+
_sfc_main as Col,
|
|
62
|
+
_sfc_main as default
|
|
52
63
|
};
|
|
@@ -1,22 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { defineComponent, ref, watch, provide, openBlock, createElementBlock, renderSlot } from "vue";
|
|
3
21
|
import { C as COLLAPSE_KEY } from "../types-4IflWeQO.js";
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
const _sfc_main =
|
|
22
|
+
import { w as withInstall } from "../with-install-p59gYYU_.js";
|
|
23
|
+
const _hoisted_1 = { class: "nut-collapse" };
|
|
24
|
+
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
25
|
+
name: "NutCollapse"
|
|
26
|
+
}), {
|
|
27
|
+
__name: "collapse",
|
|
7
28
|
props: {
|
|
8
|
-
modelValue: {
|
|
9
|
-
|
|
10
|
-
default: ""
|
|
11
|
-
},
|
|
12
|
-
accordion: {
|
|
13
|
-
type: Boolean,
|
|
14
|
-
default: false
|
|
15
|
-
}
|
|
29
|
+
modelValue: { default: "" },
|
|
30
|
+
accordion: { type: Boolean, default: false }
|
|
16
31
|
},
|
|
17
32
|
emits: ["update:modelValue", "change"],
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
33
|
+
setup(__props, { emit: __emit }) {
|
|
34
|
+
const props = __props;
|
|
35
|
+
const emit = __emit;
|
|
20
36
|
const innerValue = ref(props.modelValue || (props.accordion ? "" : []));
|
|
21
37
|
watch(
|
|
22
38
|
() => props.modelValue,
|
|
@@ -62,19 +78,15 @@ const _sfc_main = create({
|
|
|
62
78
|
updateVal,
|
|
63
79
|
isExpanded
|
|
64
80
|
});
|
|
65
|
-
return
|
|
81
|
+
return (_ctx, _cache) => {
|
|
82
|
+
return openBlock(), createElementBlock("view", _hoisted_1, [
|
|
83
|
+
renderSlot(_ctx.$slots, "default")
|
|
84
|
+
]);
|
|
85
|
+
};
|
|
66
86
|
}
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
ref: "nutCollapseRef",
|
|
70
|
-
class: "nut-collapse"
|
|
71
|
-
};
|
|
72
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
73
|
-
return openBlock(), createElementBlock("view", _hoisted_1, [
|
|
74
|
-
renderSlot(_ctx.$slots, "default")
|
|
75
|
-
], 512);
|
|
76
|
-
}
|
|
77
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
87
|
+
}));
|
|
88
|
+
withInstall(_sfc_main);
|
|
78
89
|
export {
|
|
79
|
-
|
|
90
|
+
_sfc_main as Collapse,
|
|
91
|
+
_sfc_main as default
|
|
80
92
|
};
|