@nutui/nutui 4.1.6 → 4.1.7

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 (130) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +2247 -2196
  4. package/dist/nutui.umd.js +1 -1
  5. package/dist/packages/_es/ActionSheet.js +2 -2
  6. package/dist/packages/_es/Address.js +2 -2
  7. package/dist/packages/_es/AddressList.js +1 -1
  8. package/dist/packages/_es/Animate.js +1 -1
  9. package/dist/packages/_es/Audio.js +1 -1
  10. package/dist/packages/_es/AudioOperate.js +1 -1
  11. package/dist/packages/_es/Avatar.js +1 -1
  12. package/dist/packages/_es/AvatarGroup.js +1 -1
  13. package/dist/packages/_es/Backtop.js +1 -1
  14. package/dist/packages/_es/Badge.js +1 -1
  15. package/dist/packages/_es/Barrage.js +1 -1
  16. package/dist/packages/_es/Button.js +1 -1
  17. package/dist/packages/_es/Calendar.js +3 -3
  18. package/dist/packages/_es/CalendarItem.js +2 -2
  19. package/dist/packages/_es/Card.js +1 -1
  20. package/dist/packages/_es/Cascader.js +2 -2
  21. package/dist/packages/_es/Category.js +1 -1
  22. package/dist/packages/_es/CategoryPane.js +1 -1
  23. package/dist/packages/_es/Cell.js +1 -1
  24. package/dist/packages/_es/CellGroup.js +1 -1
  25. package/dist/packages/_es/Checkbox.js +1 -1
  26. package/dist/packages/_es/CheckboxGroup.js +1 -1
  27. package/dist/packages/_es/CircleProgress.js +1 -1
  28. package/dist/packages/_es/Col.js +1 -1
  29. package/dist/packages/_es/Collapse.js +1 -1
  30. package/dist/packages/_es/CollapseItem.js +1 -1
  31. package/dist/packages/_es/Comment.js +1 -1
  32. package/dist/packages/_es/ConfigProvider.js +1 -1
  33. package/dist/packages/_es/Countdown.js +1 -1
  34. package/dist/packages/_es/Countup.js +1 -1
  35. package/dist/packages/_es/DatePicker.js +1 -1
  36. package/dist/packages/_es/Dialog.js +4 -4
  37. package/dist/packages/_es/Divider.js +1 -1
  38. package/dist/packages/_es/Drag.js +1 -1
  39. package/dist/packages/_es/Ecard.js +1 -1
  40. package/dist/packages/_es/Elevator.js +1 -1
  41. package/dist/packages/_es/Ellipsis.js +1 -1
  42. package/dist/packages/_es/Empty.js +1 -1
  43. package/dist/packages/_es/FixedNav.js +1 -1
  44. package/dist/packages/_es/Form.js +53 -28
  45. package/dist/packages/_es/FormItem.js +15 -2
  46. package/dist/packages/_es/Grid.js +2 -2
  47. package/dist/packages/_es/GridItem.js +2 -2
  48. package/dist/packages/_es/Image.js +1 -1
  49. package/dist/packages/_es/ImagePreview.js +8 -6
  50. package/dist/packages/_es/Indicator.js +1 -1
  51. package/dist/packages/_es/InfiniteLoading.js +1 -1
  52. package/dist/packages/_es/Input.js +1 -1
  53. package/dist/packages/_es/InputNumber.js +1 -1
  54. package/dist/packages/_es/{Interceptor-c05a39f2.js → Interceptor-006f85b3.js} +1 -1
  55. package/dist/packages/_es/Invoice.js +3 -3
  56. package/dist/packages/_es/Layout.js +1 -1
  57. package/dist/packages/_es/List.js +1 -1
  58. package/dist/packages/_es/Menu.js +1 -1
  59. package/dist/packages/_es/MenuItem.js +2 -2
  60. package/dist/packages/_es/Navbar.js +1 -1
  61. package/dist/packages/_es/Noticebar.js +1 -1
  62. package/dist/packages/_es/Notify.js +2 -2
  63. package/dist/packages/_es/NumberKeyboard.js +2 -2
  64. package/dist/packages/_es/Overlay.js +1 -1
  65. package/dist/packages/_es/Pagination.js +1 -1
  66. package/dist/packages/_es/Picker.js +1 -1
  67. package/dist/packages/_es/Popover.js +2 -2
  68. package/dist/packages/_es/Popup.js +2 -2
  69. package/dist/packages/_es/Price.js +1 -1
  70. package/dist/packages/_es/Progress.js +1 -1
  71. package/dist/packages/_es/PullRefresh.js +1 -1
  72. package/dist/packages/_es/Radio.js +2 -2
  73. package/dist/packages/_es/RadioGroup.js +2 -2
  74. package/dist/packages/_es/Range.js +1 -1
  75. package/dist/packages/_es/Rate.js +1 -1
  76. package/dist/packages/_es/Row.js +1 -1
  77. package/dist/packages/_es/Searchbar.js +1 -1
  78. package/dist/packages/_es/ShortPassword.js +2 -2
  79. package/dist/packages/_es/SideNavbar.js +1 -1
  80. package/dist/packages/_es/SideNavbarItem.js +1 -1
  81. package/dist/packages/_es/Signature.js +1 -1
  82. package/dist/packages/_es/Skeleton.js +1 -1
  83. package/dist/packages/_es/Sku.js +2 -2
  84. package/dist/packages/_es/Step.js +1 -1
  85. package/dist/packages/_es/Steps.js +1 -1
  86. package/dist/packages/_es/Sticky.js +1 -1
  87. package/dist/packages/_es/SubSideNavbar.js +1 -1
  88. package/dist/packages/_es/Swipe.js +1 -1
  89. package/dist/packages/_es/SwipeGroup.js +1 -1
  90. package/dist/packages/_es/Swiper.js +1 -1
  91. package/dist/packages/_es/SwiperItem.js +1 -1
  92. package/dist/packages/_es/Switch.js +1 -1
  93. package/dist/packages/_es/TabPane.js +1 -1
  94. package/dist/packages/_es/Tabbar.js +1 -1
  95. package/dist/packages/_es/TabbarItem.js +1 -1
  96. package/dist/packages/_es/Table.js +1 -1
  97. package/dist/packages/_es/Tabs.js +19 -1
  98. package/dist/packages/_es/Tag.js +1 -1
  99. package/dist/packages/_es/Textarea.js +1 -1
  100. package/dist/packages/_es/TimeDetail.js +1 -1
  101. package/dist/packages/_es/TimePannel.js +1 -1
  102. package/dist/packages/_es/TimeSelect.js +2 -2
  103. package/dist/packages/_es/Toast.js +2 -2
  104. package/dist/packages/_es/Tour.js +2 -2
  105. package/dist/packages/_es/TrendArrow.js +1 -1
  106. package/dist/packages/_es/Uploader.js +2 -2
  107. package/dist/packages/_es/Video.js +1 -1
  108. package/dist/packages/_es/Watermark.js +1 -1
  109. package/dist/packages/_es/{common-8775d905.js → common-728db750.js} +1 -1
  110. package/dist/packages/_es/{component-0fbad28e.js → component-f86a70df.js} +4 -4
  111. package/dist/packages/_es/{index-3032df15.js → index-5a1e6d22.js} +1 -1
  112. package/dist/packages/_es/{index-aef16dc6.js → index-b53aec83.js} +1 -1
  113. package/dist/packages/_es/{index.vue_vue_type_script_lang-cdf21a24.js → index.vue_vue_type_script_lang-0ccf787e.js} +4 -9
  114. package/dist/packages/_es/{index.vue_vue_type_script_lang-2852286e.js → index.vue_vue_type_script_lang-1e118ab6.js} +2 -2
  115. package/dist/packages/_es/{mountComponent-a895e3f1.js → mountComponent-053caf41.js} +1 -1
  116. package/dist/packages/checkbox/index.scss +2 -1
  117. package/dist/packages/radio/index.scss +13 -0
  118. package/dist/smartips/web-types.json +1 -1
  119. package/dist/style.css +1 -1
  120. package/dist/styles/themes/default.scss +38 -38
  121. package/dist/styles/themes/jdb.scss +38 -38
  122. package/dist/styles/themes/jddkh.scss +38 -38
  123. package/dist/styles/themes/jdt.scss +38 -38
  124. package/dist/styles/variables-jdb.scss +3 -1
  125. package/dist/styles/variables-jddkh.scss +2 -0
  126. package/dist/styles/variables-jdt.scss +3 -1
  127. package/dist/styles/variables.scss +3 -1
  128. package/dist/types/__VUE/form/common.d.ts +1 -1
  129. package/dist/types/index.d.ts +1 -1
  130. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { shallowReactive, getCurrentInstance, provide, markRaw, isVNode, computed, h } from "vue";
2
- import { c as createComponent } from "./component-0fbad28e.js";
2
+ import { c as createComponent } from "./component-f86a70df.js";
3
3
  import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
4
4
  function flattenVNodes(children, childName) {
5
5
  const result = [];
@@ -128,11 +128,11 @@ export {
128
128
  clamp as e,
129
129
  isPromise as f,
130
130
  getPropByPath as g,
131
- isObject as h,
131
+ isString as h,
132
132
  isArray as i,
133
- isString as j,
134
- isFunction as k,
135
- getScrollTopRoot as l,
133
+ isFunction as j,
134
+ getScrollTopRoot as k,
135
+ isObject as l,
136
136
  myFixed as m,
137
137
  floatData as n,
138
138
  padZero as p
@@ -20,7 +20,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { reactive, computed, watch, watchEffect, toRefs, resolveComponent, openBlock, createBlock, Teleport, mergeProps, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, vShow } from "vue";
21
21
  import { Close } from "@nutui/icons-vue";
22
22
  import Overlay from "./Overlay.js";
23
- import { c as createComponent } from "./component-0fbad28e.js";
23
+ import { c as createComponent } from "./component-f86a70df.js";
24
24
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
25
25
  const popupProps = {
26
26
  visible: {
@@ -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-0fbad28e.js";
21
+ import { c as createComponent } from "./component-f86a70df.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";
@@ -1,5 +1,5 @@
1
1
  import { inject, computed, h } from "vue";
2
- import { c as createComponent } from "./component-0fbad28e.js";
2
+ import { c as createComponent } from "./component-f86a70df.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");
@@ -35,9 +35,6 @@ const _sfc_main = create({
35
35
  const color = computed(() => {
36
36
  return !props.disabled ? isCurValue.value ? "nut-radio__icon" : "nut-radio__icon--unchecked" : "nut-radio__icon--disable";
37
37
  });
38
- const position = computed(() => {
39
- return parent.position;
40
- });
41
38
  const renderIcon = () => {
42
39
  const { iconSize } = props;
43
40
  const iconNodeMap = {
@@ -77,17 +74,15 @@ const _sfc_main = create({
77
74
  return;
78
75
  parent.updateValue(props.label);
79
76
  };
80
- let reverseState = position.value === "left";
77
+ const reverseState = computed(() => parent.position.value === "left");
81
78
  return () => {
82
79
  return h(
83
80
  "view",
84
81
  {
85
- class: `${componentName} ${componentName}--${props.shape} ${reverseState ? `${componentName}--reverse` : ""}`,
82
+ class: `${componentName} ${componentName}--${props.shape} ${reverseState.value ? `${componentName}--reverse` : ""}`,
86
83
  onClick: handleClick
87
84
  },
88
- [
89
- props.shape == "button" ? renderButton() : reverseState ? [renderLabel(), renderIcon()] : [renderIcon(), renderLabel()]
90
- ]
85
+ [props.shape === "button" ? renderButton() : [renderIcon(), renderLabel()]]
91
86
  );
92
87
  };
93
88
  }
@@ -1,5 +1,5 @@
1
1
  import { provide, readonly, computed, watch, h } from "vue";
2
- import { c as createComponent } from "./component-0fbad28e.js";
2
+ import { c as createComponent } from "./component-f86a70df.js";
3
3
  const { componentName, create } = createComponent("radio-group");
4
4
  const _sfc_main = create({
5
5
  props: {
@@ -22,7 +22,7 @@ const _sfc_main = create({
22
22
  const updateValue = (value) => emit("update:modelValue", value);
23
23
  provide("parent", {
24
24
  label: readonly(computed(() => props.modelValue)),
25
- position: props.textPosition,
25
+ position: readonly(computed(() => props.textPosition)),
26
26
  updateValue
27
27
  });
28
28
  watch(
@@ -1,5 +1,5 @@
1
1
  import { createApp } from "vue";
2
- import { j as isString, k as isFunction } from "./component-0fbad28e.js";
2
+ import { h as isString, j as isFunction } from "./component-f86a70df.js";
3
3
  const CreateComponent = (options, component) => {
4
4
  let elWrap = document.body;
5
5
  const teleport = options.teleport || "body";
@@ -17,8 +17,9 @@
17
17
  }
18
18
  }
19
19
  .nut-checkbox {
20
- display: flex;
20
+ display: $checkbox-display;
21
21
  align-items: center;
22
+ margin-right: $checkbox-margin-right;
22
23
  &--reverse {
23
24
  flex-direction: row-reverse;
24
25
  .nut-checkbox__label {
@@ -2,13 +2,16 @@
2
2
  .nut-radio {
3
3
  &__label {
4
4
  color: $dark-color;
5
+
5
6
  &--disabled {
6
7
  color: $radio-label-disable-color;
7
8
  }
8
9
  }
10
+
9
11
  &__button {
10
12
  background: $dark-background;
11
13
  color: $dark-color;
14
+
12
15
  &--disabled {
13
16
  color: $radio-label-disable-color;
14
17
  border: 1px solid $radio-label-disable-color;
@@ -16,6 +19,7 @@
16
19
  }
17
20
  }
18
21
  }
22
+
19
23
  .nut-radio {
20
24
  display: flex;
21
25
  align-items: center;
@@ -27,6 +31,8 @@
27
31
  }
28
32
 
29
33
  &--reverse {
34
+ flex-direction: row-reverse;
35
+
30
36
  .nut-radio__label {
31
37
  margin-right: $radio-label-margin-left;
32
38
  margin-left: 0;
@@ -43,11 +49,13 @@
43
49
  color: $radio-label-font-color;
44
50
  box-sizing: border-box;
45
51
  border: 1px solid #f6f7f9;
52
+
46
53
  &--active {
47
54
  background: transparent;
48
55
  color: $radio-label-font-active-color;
49
56
  border: 1px solid $radio-label-button-border-color;
50
57
  position: relative;
58
+
51
59
  &::after {
52
60
  position: absolute;
53
61
  top: 0;
@@ -57,10 +65,12 @@
57
65
  width: 100%;
58
66
  height: 100%;
59
67
  background-color: $radio-label-button-background;
68
+ border-radius: $radio-button-border-radius;
60
69
  opacity: 0.05;
61
70
  content: '';
62
71
  }
63
72
  }
73
+
64
74
  &--disabled {
65
75
  color: $radio-label-disable-color;
66
76
  border: none;
@@ -72,6 +82,7 @@
72
82
  margin-left: $radio-label-margin-left;
73
83
  font-size: $radio-label-font-size;
74
84
  color: $radio-label-font-color;
85
+
75
86
  &--disabled {
76
87
  color: $radio-label-disable-color;
77
88
  }
@@ -82,9 +93,11 @@
82
93
  transition-duration: 0.3s;
83
94
  transition-property: color, border-color, background-color;
84
95
  }
96
+
85
97
  &__icon--unchecked {
86
98
  color: $radio-icon-disable-color;
87
99
  }
100
+
88
101
  &__icon--disable {
89
102
  color: $radio-icon-disable-color2;
90
103
  }
@@ -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.6",
5
+ "version": "4.1.7",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [