@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.
Files changed (128) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +5980 -6124
  4. package/dist/nutui.umd.js +1 -1
  5. package/dist/packages/actionsheet/ActionSheet.js +1 -3
  6. package/dist/packages/address/Address.js +1 -4
  7. package/dist/packages/addresslist/AddressList.js +0 -4
  8. package/dist/packages/animate/Animate.js +51 -44
  9. package/dist/packages/audio/Audio.js +0 -3
  10. package/dist/packages/audiooperate/AudioOperate.js +0 -4
  11. package/dist/packages/avatar/Avatar.js +0 -1
  12. package/dist/packages/avatarcropper/AvatarCropper.js +0 -1
  13. package/dist/packages/calendar/Calendar.js +1 -7
  14. package/dist/packages/calendarcard/CalendarCard.js +0 -2
  15. package/dist/packages/calendaritem/CalendarItem.js +0 -2
  16. package/dist/packages/card/Card.js +2 -3
  17. package/dist/packages/cascader/Cascader.js +1 -10
  18. package/dist/packages/checkbox/Checkbox.js +4 -2
  19. package/dist/packages/col/Col.js +41 -30
  20. package/dist/packages/collapse/Collapse.js +40 -28
  21. package/dist/packages/collapseitem/CollapseItem.js +112 -125
  22. package/dist/packages/comment/Comment.js +0 -5
  23. package/dist/packages/common-FZL3qC99.js +16 -0
  24. package/dist/packages/countdown/Countdown.js +3 -4
  25. package/dist/packages/datepicker/DatePicker.js +0 -4
  26. package/dist/packages/dialog/Dialog.js +1 -5
  27. package/dist/packages/ecard/Ecard.js +0 -4
  28. package/dist/packages/empty/Empty.js +0 -2
  29. package/dist/packages/fixednav/FixedNav.js +0 -2
  30. package/dist/packages/form/Form.js +163 -157
  31. package/dist/packages/formitem/FormItem.js +77 -108
  32. package/dist/packages/grid/Grid.js +0 -1
  33. package/dist/packages/imagepreview/ImagePreview.js +1 -5
  34. package/dist/packages/{index-wY4t0zYt.js → index-BqB5dTeo.js} +29 -17
  35. package/dist/packages/{index.vue_vue_type_script_lang-MJYVRFbp.js → index.vue_vue_type_script_lang-n0HbjvfF.js} +6 -4
  36. package/dist/packages/infiniteloading/InfiniteLoading.js +0 -1
  37. package/dist/packages/input/Input.js +10 -7
  38. package/dist/packages/inputnumber/InputNumber.js +11 -8
  39. package/dist/packages/invoice/Invoice.js +10 -21
  40. package/dist/packages/layout/Layout.js +3 -0
  41. package/dist/packages/locale/lang/index.js +0 -1
  42. package/dist/packages/menuitem/MenuItem.js +1 -3
  43. package/dist/packages/notify/Notify.js +1 -4
  44. package/dist/packages/numberkeyboard/NumberKeyboard.js +1 -5
  45. package/dist/packages/pagination/Pagination.js +0 -2
  46. package/dist/packages/picker/Picker.js +10 -5
  47. package/dist/packages/popover/Popover.js +1 -4
  48. package/dist/packages/popup/Popup.js +1 -5
  49. package/dist/packages/price/Price.js +69 -77
  50. package/dist/packages/pullrefresh/PullRefresh.js +0 -1
  51. package/dist/packages/radio/Radio.js +1 -6
  52. package/dist/packages/radiogroup/RadioGroup.js +0 -3
  53. package/dist/packages/range/Range.js +10 -7
  54. package/dist/packages/rate/Rate.js +6 -3
  55. package/dist/packages/row/Row.js +43 -39
  56. package/dist/packages/searchbar/Searchbar.js +5 -4
  57. package/dist/packages/shortpassword/ShortPassword.js +1 -4
  58. package/dist/packages/signature/Signature.js +0 -4
  59. package/dist/packages/sku/Sku.js +8 -12
  60. package/dist/packages/switch/Switch.js +12 -2
  61. package/dist/packages/switch/index.css +1 -1
  62. package/dist/packages/switch/index.scss +1 -1
  63. package/dist/packages/table/Table.js +0 -2
  64. package/dist/packages/tabs/Tabs.js +0 -1
  65. package/dist/packages/textarea/Textarea.js +7 -6
  66. package/dist/packages/timepannel/TimePannel.js +2 -2
  67. package/dist/packages/timeselect/TimeSelect.js +1 -5
  68. package/dist/packages/toast/Toast.js +3 -3
  69. package/dist/packages/tour/Tour.js +0 -4
  70. package/dist/packages/uploader/Uploader.js +7 -5
  71. package/dist/packages/video/Video.js +0 -2
  72. package/dist/smartips/web-types.json +21 -3
  73. package/dist/style.css +1 -1
  74. package/dist/types/__VUE/address/index.vue.d.ts +43 -3
  75. package/dist/types/__VUE/animate/animate.vue.d.ts +75 -0
  76. package/dist/types/__VUE/animate/index.d.ts +6 -0
  77. package/dist/types/__VUE/col/col.vue.d.ts +53 -0
  78. package/dist/types/__VUE/col/index.d.ts +5 -0
  79. package/dist/types/__VUE/collapse/collapse.vue.d.ts +60 -0
  80. package/dist/types/__VUE/collapse/index.d.ts +6 -0
  81. package/dist/types/__VUE/collapse/types.d.ts +3 -2
  82. package/dist/types/__VUE/collapseitem/collapse-item.vue.d.ts +201 -0
  83. package/dist/types/__VUE/collapseitem/index.d.ts +5 -0
  84. package/dist/types/__VUE/countdown/index.vue.d.ts +23 -1
  85. package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
  86. package/dist/types/__VUE/form/common.d.ts +4 -30
  87. package/dist/types/__VUE/form/form.vue.d.ts +80 -0
  88. package/dist/types/__VUE/form/index.d.ts +6 -0
  89. package/dist/types/__VUE/form/types.d.ts +12 -5
  90. package/dist/types/__VUE/formitem/form-item.vue.d.ts +97 -0
  91. package/dist/types/__VUE/formitem/index.d.ts +5 -0
  92. package/dist/types/__VUE/input/index.vue.d.ts +1 -0
  93. package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -0
  94. package/dist/types/__VUE/layout/index.d.ts +4 -0
  95. package/dist/types/__VUE/layout/layout.vue.d.ts +10 -0
  96. package/dist/types/__VUE/picker/index.vue.d.ts +1 -0
  97. package/dist/types/__VUE/picker/types.d.ts +1 -0
  98. package/dist/types/__VUE/picker/usePicker.d.ts +1 -0
  99. package/dist/types/__VUE/price/index.d.ts +6 -0
  100. package/dist/types/__VUE/price/price.vue.d.ts +83 -0
  101. package/dist/types/__VUE/range/index.vue.d.ts +1 -1
  102. package/dist/types/__VUE/rate/index.vue.d.ts +1 -0
  103. package/dist/types/__VUE/row/index.d.ts +5 -0
  104. package/dist/types/__VUE/row/row.vue.d.ts +71 -0
  105. package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -0
  106. package/dist/types/__VUE/skeleton/index.vue.d.ts +3 -3
  107. package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +1 -1
  108. package/dist/types/__VUE/sku/index.vue.d.ts +1 -1
  109. package/dist/types/__VUE/switch/index.vue.d.ts +9 -0
  110. package/dist/types/__VUE/table/index.vue.d.ts +4 -4
  111. package/dist/types/__VUE/tabs/index.vue.d.ts +4 -4
  112. package/dist/types/__VUE/textarea/index.vue.d.ts +1 -0
  113. package/dist/types/__VUE/toast/index.vue.d.ts +21 -1
  114. package/dist/types/index.d.ts +19 -10
  115. package/dist/types/utils/index.d.ts +1 -0
  116. package/package.json +1 -1
  117. package/dist/packages/types-Ynmct7na.js +0 -4
  118. package/dist/types/__VUE/animate/index.vue.d.ts +0 -71
  119. package/dist/types/__VUE/col/index.vue.d.ts +0 -42
  120. package/dist/types/__VUE/collapse/index.vue.d.ts +0 -39
  121. package/dist/types/__VUE/collapseitem/index.vue.d.ts +0 -212
  122. package/dist/types/__VUE/form/index.vue.d.ts +0 -58
  123. package/dist/types/__VUE/formitem/index.vue.d.ts +0 -134
  124. package/dist/types/__VUE/formitem/types.d.ts +0 -11
  125. package/dist/types/__VUE/layout/index.vue.d.ts +0 -12
  126. package/dist/types/__VUE/price/index.vue.d.ts +0 -97
  127. package/dist/types/__VUE/row/index.vue.d.ts +0 -62
  128. /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-wY4t0zYt.js";
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-wY4t0zYt.js";
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
- import { ref, computed, watch, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, renderSlot } from "vue";
2
- import { c as createComponent } from "../component-TCzwHGVq.js";
3
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
4
- const { create } = createComponent("animate");
5
- const _sfc_main = create({
6
- props: {
7
- type: {
8
- type: String,
9
- default: ""
10
- },
11
- show: {
12
- type: Boolean,
13
- defualt: false
14
- },
15
- action: {
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(props, { emit }) {
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 { classes, handleClick };
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
- const _hoisted_1 = { class: "nut-animate" };
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
- index as default
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({
@@ -1,7 +1,6 @@
1
1
  import { N } from "../index--uVlasFu.js";
2
2
  import "vue";
3
3
  import "../_plugin-vue_export-helper-yVxbj29m.js";
4
- import "../component-TCzwHGVq.js";
5
4
  export {
6
5
  N as default
7
6
  };
@@ -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-wY4t0zYt.js";
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 NutPrice from "../price/Price.js";
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-wY4t0zYt.js";
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 : props.disabled : props.disabled;
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(() => {
@@ -1,22 +1,36 @@
1
- import { inject, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
2
- import { c as createComponent } from "../component-TCzwHGVq.js";
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 { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
5
- const { create } = createComponent("col");
6
- const _sfc_main = create({
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
- type: [String, Number],
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
- emits: [],
18
- setup(props) {
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
- classes,
37
- style
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
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
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
- index as default
61
+ _sfc_main as Col,
62
+ _sfc_main as default
52
63
  };
@@ -1,22 +1,38 @@
1
- import { ref, watch, provide, openBlock, createElementBlock, renderSlot } from "vue";
2
- import { c as createComponent } from "../component-TCzwHGVq.js";
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 { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
5
- const { create } = createComponent("collapse");
6
- const _sfc_main = create({
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
- type: [String, Number, Array],
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(props, { emit }) {
19
- const nutCollapseRef = ref(null);
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 { nutCollapseRef };
81
+ return (_ctx, _cache) => {
82
+ return openBlock(), createElementBlock("view", _hoisted_1, [
83
+ renderSlot(_ctx.$slots, "default")
84
+ ]);
85
+ };
66
86
  }
67
- });
68
- const _hoisted_1 = {
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
- index as default
90
+ _sfc_main as Collapse,
91
+ _sfc_main as default
80
92
  };