@nutui/nutui 4.1.8-beta.1 → 4.2.1

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 (69) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +4867 -4913
  4. package/dist/nutui.umd.js +1 -1
  5. package/dist/packages/_es/ActionSheet.js +22 -29
  6. package/dist/packages/_es/Address.js +2 -1
  7. package/dist/packages/_es/Barrage.js +9 -14
  8. package/dist/packages/_es/Calendar.js +7 -4
  9. package/dist/packages/_es/CalendarItem.js +1 -1
  10. package/dist/packages/_es/Cascader.js +3 -2
  11. package/dist/packages/_es/Collapse.js +9 -14
  12. package/dist/packages/_es/DatePicker.js +1 -1
  13. package/dist/packages/_es/Dialog.js +11 -2
  14. package/dist/packages/_es/Drag.js +4 -11
  15. package/dist/packages/_es/Elevator.js +27 -43
  16. package/dist/packages/_es/Ellipsis.js +5 -11
  17. package/dist/packages/_es/Input.js +15 -7
  18. package/dist/packages/_es/List.js +4 -11
  19. package/dist/packages/_es/Noticebar.js +16 -24
  20. package/dist/packages/_es/Rate.js +5 -13
  21. package/dist/packages/_es/SideNavbar.js +10 -18
  22. package/dist/packages/_es/SideNavbarItem.js +6 -13
  23. package/dist/packages/_es/Sku.js +15 -29
  24. package/dist/packages/_es/SubSideNavbar.js +6 -13
  25. package/dist/packages/_es/Swiper.js +11 -10
  26. package/dist/packages/_es/SwiperItem.js +5 -12
  27. package/dist/packages/_es/Table.js +25 -37
  28. package/dist/packages/_es/TimeDetail.js +15 -26
  29. package/dist/packages/_es/TimeSelect.js +20 -29
  30. package/dist/packages/_es/TrendArrow.js +6 -13
  31. package/dist/packages/_es/{index-b53aec83.js → index-a187a5aa.js} +3 -2
  32. package/dist/packages/address/index.css +1 -1
  33. package/dist/packages/checkbox/index.css +1 -1
  34. package/dist/packages/checkbox/index.scss +1 -0
  35. package/dist/packages/elevator/index.css +1 -1
  36. package/dist/packages/elevator/index.scss +0 -13
  37. package/dist/packages/imagepreview/index.css +1 -1
  38. package/dist/packages/swiper/index.css +1 -1
  39. package/dist/packages/swiper/index.scss +0 -1
  40. package/dist/smartips/web-types.json +20 -2
  41. package/dist/style.css +1 -1
  42. package/dist/types/__VUE/actionsheet/index.vue.d.ts +0 -3
  43. package/dist/types/__VUE/barrage/index.vue.d.ts +0 -3
  44. package/dist/types/__VUE/calendar/index.vue.d.ts +4 -2
  45. package/dist/types/__VUE/calendaritem/index.vue.d.ts +3 -0
  46. package/dist/types/__VUE/collapse/index.vue.d.ts +0 -3
  47. package/dist/types/__VUE/dialog/index.d.ts +10 -8
  48. package/dist/types/__VUE/dialog/index.vue.d.ts +9 -0
  49. package/dist/types/__VUE/drag/index.vue.d.ts +0 -3
  50. package/dist/types/__VUE/elevator/index.vue.d.ts +0 -6
  51. package/dist/types/__VUE/ellipsis/index.vue.d.ts +0 -3
  52. package/dist/types/__VUE/imagepreview/index.d.ts +1 -0
  53. package/dist/types/__VUE/input/index.vue.d.ts +7 -4
  54. package/dist/types/__VUE/input/type.d.ts +5 -0
  55. package/dist/types/__VUE/list/index.vue.d.ts +0 -3
  56. package/dist/types/__VUE/noticebar/index.vue.d.ts +0 -20
  57. package/dist/types/__VUE/rate/index.vue.d.ts +3 -4
  58. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +0 -3
  59. package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +0 -3
  60. package/dist/types/__VUE/sku/index.vue.d.ts +8 -176
  61. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +0 -3
  62. package/dist/types/__VUE/swiper/index.vue.d.ts +0 -3
  63. package/dist/types/__VUE/swiperitem/index.vue.d.ts +0 -3
  64. package/dist/types/__VUE/table/index.vue.d.ts +3 -6
  65. package/dist/types/__VUE/timedetail/index.vue.d.ts +4 -6
  66. package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -5
  67. package/dist/types/__VUE/trendarrow/index.vue.d.ts +0 -3
  68. package/dist/types/index.d.ts +1 -1
  69. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
- import { inject, getCurrentInstance, reactive, computed, onUnmounted, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
1
+ import { inject, getCurrentInstance, reactive, computed, onUnmounted, openBlock, createElementBlock, normalizeStyle, renderSlot } from "vue";
2
2
  import { c as createComponent } from "./component-f86a70df.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
- const { create, componentName } = createComponent("swiper-item");
6
+ const { create } = createComponent("swiper-item");
7
7
  const _sfc_main = create({
8
8
  setup() {
9
9
  const parent = inject("parent");
@@ -11,12 +11,6 @@ const _sfc_main = create({
11
11
  const state = reactive({
12
12
  offset: 0
13
13
  });
14
- const classes = computed(() => {
15
- const prefixCls = componentName;
16
- return {
17
- [prefixCls]: true
18
- };
19
- });
20
14
  const style = computed(() => {
21
15
  const style2 = {};
22
16
  const direction = parent == null ? void 0 : parent.props.direction;
@@ -36,18 +30,17 @@ const _sfc_main = create({
36
30
  });
37
31
  useExpose({ setOffset });
38
32
  return {
39
- style,
40
- classes
33
+ style
41
34
  };
42
35
  }
43
36
  });
44
37
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
45
38
  return openBlock(), createElementBlock("view", {
46
- class: normalizeClass(_ctx.classes),
39
+ class: "nut-swiper-item",
47
40
  style: normalizeStyle(_ctx.style)
48
41
  }, [
49
42
  renderSlot(_ctx.$slots, "default")
50
- ], 6);
43
+ ], 4);
51
44
  }
52
45
  const SwiperItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
53
46
  export {
@@ -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 { defineComponent, h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
20
+ import { defineComponent, h, reactive, watch, toRefs, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
21
21
  import { c as createComponent } from "./component-f86a70df.js";
22
22
  import { DownArrow } from "@nutui/icons-vue";
23
23
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
@@ -37,7 +37,7 @@ const RenderColumn = defineComponent({
37
37
  return () => h(`view`, {}, props.slots[0] ? props.slots[0](props.record) : props.slots[1](props.record));
38
38
  }
39
39
  });
40
- const { componentName, create, translate } = createComponent("table");
40
+ const { create, translate } = createComponent("table");
41
41
  const _sfc_main = create({
42
42
  components: {
43
43
  RenderColumn,
@@ -50,15 +50,11 @@ const _sfc_main = create({
50
50
  },
51
51
  columns: {
52
52
  type: Array,
53
- default: () => {
54
- return [];
55
- }
53
+ default: () => []
56
54
  },
57
55
  data: {
58
56
  type: Object,
59
- default: () => {
60
- return {};
61
- }
57
+ default: () => ({})
62
58
  },
63
59
  summary: {
64
60
  type: Function,
@@ -74,12 +70,6 @@ const _sfc_main = create({
74
70
  const state = reactive({
75
71
  curData: props.data
76
72
  });
77
- const classes = computed(() => {
78
- const prefixCls = componentName;
79
- return {
80
- [prefixCls]: true
81
- };
82
- });
83
73
  const cellClasses = (item) => {
84
74
  return {
85
75
  "nut-table__main__head__tr--border": props.bordered,
@@ -117,7 +107,6 @@ const _sfc_main = create({
117
107
  }
118
108
  );
119
109
  return __spreadProps(__spreadValues({}, toRefs(state)), {
120
- classes,
121
110
  cellClasses,
122
111
  getColumnItem,
123
112
  getColumnItemStyle,
@@ -129,35 +118,34 @@ const _sfc_main = create({
129
118
  });
130
119
  }
131
120
  });
132
- const _hoisted_1 = { class: "nut-table__main__head" };
133
- const _hoisted_2 = { class: "nut-table__main__head__tr" };
134
- const _hoisted_3 = ["onClick"];
135
- const _hoisted_4 = { class: "nut-table__main__body" };
136
- const _hoisted_5 = { key: 1 };
137
- const _hoisted_6 = {
121
+ const _hoisted_1 = { class: "nut-table" };
122
+ const _hoisted_2 = { class: "nut-table__main__head" };
123
+ const _hoisted_3 = { class: "nut-table__main__head__tr" };
124
+ const _hoisted_4 = ["onClick"];
125
+ const _hoisted_5 = { class: "nut-table__main__body" };
126
+ const _hoisted_6 = { key: 1 };
127
+ const _hoisted_7 = {
138
128
  key: 0,
139
129
  class: "nut-table__nodata"
140
130
  };
141
- const _hoisted_7 = {
131
+ const _hoisted_8 = {
142
132
  key: 0,
143
133
  class: "nut-table__nodata__text"
144
134
  };
145
- const _hoisted_8 = {
135
+ const _hoisted_9 = {
146
136
  key: 1,
147
137
  class: "nut-table__summary"
148
138
  };
149
- const _hoisted_9 = ["innerHTML"];
139
+ const _hoisted_10 = ["innerHTML"];
150
140
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
151
141
  const _component_DownArrow = resolveComponent("DownArrow");
152
142
  const _component_RenderColumn = resolveComponent("RenderColumn");
153
- return openBlock(), createElementBlock("view", {
154
- class: normalizeClass(_ctx.classes)
155
- }, [
143
+ return openBlock(), createElementBlock("view", _hoisted_1, [
156
144
  createElementVNode("view", {
157
145
  class: normalizeClass(["nut-table__main", { "nut-table__main--striped": _ctx.striped }])
158
146
  }, [
159
- createElementVNode("view", _hoisted_1, [
160
- createElementVNode("view", _hoisted_2, [
147
+ createElementVNode("view", _hoisted_2, [
148
+ createElementVNode("view", _hoisted_3, [
161
149
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (item) => {
162
150
  return openBlock(), createElementBlock("span", {
163
151
  key: item.key,
@@ -172,11 +160,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
172
160
  width: "12px",
173
161
  height: "12px"
174
162
  })) : createCommentVNode("", true)
175
- ], 14, _hoisted_3);
163
+ ], 14, _hoisted_4);
176
164
  }), 128))
177
165
  ])
178
166
  ]),
179
- createElementVNode("view", _hoisted_4, [
167
+ createElementVNode("view", _hoisted_5, [
180
168
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.curData, (item) => {
181
169
  return openBlock(), createElementBlock("view", {
182
170
  key: item,
@@ -192,28 +180,28 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
192
180
  key: 0,
193
181
  slots: [render, item[value]],
194
182
  record: item
195
- }, null, 8, ["slots", "record"])) : (openBlock(), createElementBlock("view", _hoisted_5, toDisplayString(item[value]), 1))
183
+ }, null, 8, ["slots", "record"])) : (openBlock(), createElementBlock("view", _hoisted_6, toDisplayString(item[value]), 1))
196
184
  ], 6);
197
185
  }), 128))
198
186
  ]);
199
187
  }), 128))
200
188
  ])
201
189
  ], 2),
202
- !_ctx.curData.length ? (openBlock(), createElementBlock("view", _hoisted_6, [
190
+ !_ctx.curData.length ? (openBlock(), createElementBlock("view", _hoisted_7, [
203
191
  createElementVNode("div", {
204
192
  class: normalizeClass(["nut-table__nodata", { "nut-table__nodata--border": _ctx.bordered }])
205
193
  }, [
206
194
  renderSlot(_ctx.$slots, "nodata"),
207
- !_ctx.$slots.nodata ? (openBlock(), createElementBlock("div", _hoisted_7, toDisplayString(_ctx.translate("noData")), 1)) : createCommentVNode("", true)
195
+ !_ctx.$slots.nodata ? (openBlock(), createElementBlock("div", _hoisted_8, toDisplayString(_ctx.translate("noData")), 1)) : createCommentVNode("", true)
208
196
  ], 2)
209
197
  ])) : createCommentVNode("", true),
210
- _ctx.summary ? (openBlock(), createElementBlock("view", _hoisted_8, [
198
+ _ctx.summary ? (openBlock(), createElementBlock("view", _hoisted_9, [
211
199
  createElementVNode("span", {
212
200
  class: "nut-table__summary__text",
213
201
  innerHTML: _ctx.summary().value
214
- }, null, 8, _hoisted_9)
202
+ }, null, 8, _hoisted_10)
215
203
  ])) : createCommentVNode("", true)
216
- ], 2);
204
+ ]);
217
205
  }
218
206
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
219
207
  export {
@@ -17,35 +17,27 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, toDisplayString } from "vue";
20
+ import { inject, reactive, computed, toRefs, openBlock, createElementBlock, createElementVNode, Fragment, renderList, normalizeClass, toDisplayString } from "vue";
21
21
  import { c as createComponent } from "./component-f86a70df.js";
22
22
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
23
23
  import "../locale/lang";
24
- const { componentName, create } = createComponent("time-detail");
24
+ const { create } = createComponent("time-detail");
25
25
  const _sfc_main = create({
26
26
  name: "timedetail",
27
27
  props: {
28
28
  times: {
29
29
  type: Array,
30
- default: () => {
31
- return [];
32
- }
30
+ default: () => []
33
31
  }
34
32
  },
35
33
  emits: ["select"],
36
- setup: (props, context) => {
34
+ setup: (props, { emit }) => {
37
35
  const currentKey = inject("currentKey");
38
36
  const currentTime = inject("currentTime");
39
37
  const state = reactive({
40
38
  currentKey,
41
39
  currentTime
42
40
  });
43
- const classes = computed(() => {
44
- const prefixCls = componentName;
45
- return {
46
- [prefixCls]: true
47
- };
48
- });
49
41
  const getClass = (item) => {
50
42
  let find = state.currentTime.find((item2) => item2.key == state.currentKey);
51
43
  if (find) {
@@ -59,36 +51,33 @@ const _sfc_main = create({
59
51
  return props.times.find((time) => time.key == state.currentKey)["list"];
60
52
  });
61
53
  const handleTime = (time) => {
62
- context.emit("select", time);
54
+ emit("select", time);
63
55
  };
64
- return __spreadProps(__spreadValues({
65
- classes
66
- }, toRefs(state)), {
56
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
67
57
  getClass,
68
58
  renderData,
69
59
  handleTime
70
60
  });
71
61
  }
72
62
  });
73
- const _hoisted_1 = { class: "nut-time-detail__detail nut-time-detail__detail--moring" };
74
- const _hoisted_2 = { class: "nut-time-detail__detail__list" };
75
- const _hoisted_3 = ["onClick"];
63
+ const _hoisted_1 = { class: "nut-time-detail" };
64
+ const _hoisted_2 = { class: "nut-time-detail__detail nut-time-detail__detail--moring" };
65
+ const _hoisted_3 = { class: "nut-time-detail__detail__list" };
66
+ const _hoisted_4 = ["onClick"];
76
67
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
77
- return openBlock(), createElementBlock("view", {
78
- class: normalizeClass(_ctx.classes)
79
- }, [
80
- createElementVNode("view", _hoisted_1, [
81
- createElementVNode("view", _hoisted_2, [
68
+ return openBlock(), createElementBlock("view", _hoisted_1, [
69
+ createElementVNode("view", _hoisted_2, [
70
+ createElementVNode("view", _hoisted_3, [
82
71
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.renderData, (item) => {
83
72
  return openBlock(), createElementBlock("view", {
84
73
  key: item,
85
74
  class: normalizeClass(_ctx.getClass(item)),
86
75
  onClick: ($event) => _ctx.handleTime(item)
87
- }, toDisplayString(item), 11, _hoisted_3);
76
+ }, toDisplayString(item), 11, _hoisted_4);
88
77
  }), 128))
89
78
  ])
90
79
  ])
91
- ], 2);
80
+ ]);
92
81
  }
93
82
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
94
83
  export {
@@ -1,11 +1,11 @@
1
- import { computed, provide, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, renderSlot } from "vue";
1
+ import { computed, provide, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, createElementBlock, toDisplayString, renderSlot } from "vue";
2
2
  import { c as createComponent } from "./component-f86a70df.js";
3
3
  import { P as Popup } from "./index-5a1e6d22.js";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
6
6
  import "@nutui/icons-vue";
7
7
  import "./Overlay.js";
8
- const { componentName, create, translate } = createComponent("time-select");
8
+ const { create, translate } = createComponent("time-select");
9
9
  const _sfc_main = create({
10
10
  components: {
11
11
  [Popup.name]: Popup
@@ -43,13 +43,7 @@ const _sfc_main = create({
43
43
  }
44
44
  },
45
45
  emits: ["update:visible", "select"],
46
- setup: (props, context) => {
47
- const classes = computed(() => {
48
- const prefixCls = componentName;
49
- return {
50
- [prefixCls]: true
51
- };
52
- });
46
+ setup: (props, { emit }) => {
53
47
  const popStyle = computed(() => {
54
48
  return {
55
49
  width: "100%",
@@ -59,26 +53,25 @@ const _sfc_main = create({
59
53
  const currentKey = computed(() => props.currentKey);
60
54
  const currentTime = computed(() => props.currentTime);
61
55
  const close = () => {
62
- context.emit("update:visible", false);
63
- context.emit("select", currentTime.value);
56
+ emit("update:visible", false);
57
+ emit("select", currentTime.value);
64
58
  };
65
59
  provide("currentKey", currentKey);
66
60
  provide("currentTime", currentTime);
67
61
  return {
68
- classes,
69
62
  popStyle,
70
- props,
71
63
  close,
72
64
  translate
73
65
  };
74
66
  }
75
67
  });
76
- const _hoisted_1 = { class: "nut-time-select__title" };
77
- const _hoisted_2 = { class: "nut-time-select__title__fixed" };
78
- const _hoisted_3 = { key: 0 };
79
- const _hoisted_4 = { class: "nut-time-select__content" };
80
- const _hoisted_5 = { class: "nut-time-select__content__pannel" };
81
- const _hoisted_6 = { class: "nut-time-select__content__detail" };
68
+ const _hoisted_1 = { class: "nut-time-select" };
69
+ const _hoisted_2 = { class: "nut-time-select__title" };
70
+ const _hoisted_3 = { class: "nut-time-select__title__fixed" };
71
+ const _hoisted_4 = { key: 0 };
72
+ const _hoisted_5 = { class: "nut-time-select__content" };
73
+ const _hoisted_6 = { class: "nut-time-select__content__pannel" };
74
+ const _hoisted_7 = { class: "nut-time-select__content__detail" };
82
75
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
83
76
  const _component_nut_popup = resolveComponent("nut-popup");
84
77
  return openBlock(), createBlock(_component_nut_popup, {
@@ -93,23 +86,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
93
86
  onClickCloseIcon: _ctx.close
94
87
  }, {
95
88
  default: withCtx(() => [
96
- createElementVNode("view", {
97
- class: normalizeClass(_ctx.classes)
98
- }, [
99
- createElementVNode("view", _hoisted_1, [
100
- createElementVNode("view", _hoisted_2, [
101
- !_ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(_ctx.title || _ctx.translate("pickupTime")), 1)) : renderSlot(_ctx.$slots, "title", { key: 1 })
89
+ createElementVNode("view", _hoisted_1, [
90
+ createElementVNode("view", _hoisted_2, [
91
+ createElementVNode("view", _hoisted_3, [
92
+ !_ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(_ctx.title || _ctx.translate("pickupTime")), 1)) : renderSlot(_ctx.$slots, "title", { key: 1 })
102
93
  ])
103
94
  ]),
104
- createElementVNode("view", _hoisted_4, [
105
- createElementVNode("view", _hoisted_5, [
95
+ createElementVNode("view", _hoisted_5, [
96
+ createElementVNode("view", _hoisted_6, [
106
97
  renderSlot(_ctx.$slots, "pannel")
107
98
  ]),
108
- createElementVNode("view", _hoisted_6, [
99
+ createElementVNode("view", _hoisted_7, [
109
100
  renderSlot(_ctx.$slots, "detail")
110
101
  ])
111
102
  ])
112
- ], 2)
103
+ ])
113
104
  ]),
114
105
  _: 3
115
106
  }, 8, ["teleport-disable", "visible", "style", "lock-scroll", "onClickOverlay", "onClickCloseIcon"]);
@@ -17,12 +17,12 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createVNode } from "vue";
20
+ import { reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createVNode } from "vue";
21
21
  import { m as myFixed, c as createComponent } from "./component-f86a70df.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";
25
- const { componentName, create } = createComponent("trend-arrow");
25
+ const { create } = createComponent("trend-arrow");
26
26
  const _sfc_main = create({
27
27
  components: { TriangleUp, TriangleDown },
28
28
  props: {
@@ -67,12 +67,6 @@ const _sfc_main = create({
67
67
  const state = reactive({
68
68
  rateTrend: props.rate > 0 ? true : false
69
69
  });
70
- const classes = computed(() => {
71
- const prefixCls = componentName;
72
- return {
73
- [prefixCls]: true
74
- };
75
- });
76
70
  const calcRate = computed(() => {
77
71
  const { rate, digits, showSign, showZero } = props;
78
72
  state.rateTrend = rate > 0 ? true : false;
@@ -93,15 +87,14 @@ const _sfc_main = create({
93
87
  };
94
88
  return style;
95
89
  });
96
- return __spreadProps(__spreadValues({}, toRefs(state)), { classes, calcRate, calcStyle });
90
+ return __spreadProps(__spreadValues({}, toRefs(state)), { calcRate, calcStyle });
97
91
  }
98
92
  });
93
+ const _hoisted_1 = { class: "nut-trend-arrow" };
99
94
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
100
95
  const _component_TriangleUp = resolveComponent("TriangleUp");
101
96
  const _component_TriangleDown = resolveComponent("TriangleDown");
102
- return openBlock(), createElementBlock("view", {
103
- class: normalizeClass(_ctx.classes)
104
- }, [
97
+ return openBlock(), createElementBlock("view", _hoisted_1, [
105
98
  !_ctx.arrowLeft ? (openBlock(), createElementBlock("span", {
106
99
  key: 0,
107
100
  class: "nut-trend-arrow-icon-before nut-trend-arrow-rate",
@@ -118,7 +111,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
118
111
  class: "nut-trend-arrow-icon-after nut-trend-arrow-rate",
119
112
  style: normalizeStyle(_ctx.calcStyle)
120
113
  }, toDisplayString(_ctx.calcRate), 5)) : createCommentVNode("", true)
121
- ], 2);
114
+ ]);
122
115
  }
123
116
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
124
117
  export {
@@ -226,7 +226,8 @@ const _sfc_main = create({
226
226
  firstDayOfWeek: {
227
227
  type: Number,
228
228
  default: 0
229
- }
229
+ },
230
+ disabledDate: Function
230
231
  },
231
232
  emits: ["choose", "update", "close", "select"],
232
233
  setup(props, { emit, slots }) {
@@ -314,7 +315,7 @@ const _sfc_main = create({
314
315
  if (day.type == "curr") {
315
316
  if (Utils.isEqual(state.currDate, currDate) || (type == "range" || type == "week") && (isStart(currDate) || isEnd(currDate)) || type == "multiple" && isMultiple(currDate)) {
316
317
  res.push(`${state.dayPrefix}--active`);
317
- } else if (state.propStartDate && Utils.compareDate(currDate, state.propStartDate) || state.propEndDate && Utils.compareDate(state.propEndDate, currDate)) {
318
+ } else if (state.propStartDate && Utils.compareDate(currDate, state.propStartDate) || state.propEndDate && Utils.compareDate(state.propEndDate, currDate) || props.disabledDate && props.disabledDate(currDate)) {
318
319
  res.push(`${state.dayPrefix}--disabled`);
319
320
  } else if ((type == "range" || type == "week") && Array.isArray(state.currDate) && Object.values(state.currDate).length == 2 && Utils.compareDate(state.currDate[0], currDate) && Utils.compareDate(currDate, state.currDate[1])) {
320
321
  res.push(`${state.dayPrefix}--choose`);
@@ -1 +1 @@
1
- .overlay-fade-enter-active,.overlay-fade-leave-active{transition-property:opacity;transition-timing-function:ease}.overlay-fade-enter-from,.overlay-fade-leave-to{opacity:0}.nut-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nut-overlay-bg-color, rgba(0, 0, 0, 0.7))}.nut-overflow-hidden{overflow:hidden !important}.nut-theme-dark .nut-popup{background:var(--nut-dark-background2, #1b1b1b)}.nut-theme-dark .nut-popup__close-icon{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-popup-slide-center-enter-active,.nut-popup-slide-center-leave-active{transition-property:opacity;transition-timing-function:ease}.nut-popup-slide-center-enter-from,.nut-popup-slide-center-leave-to{opacity:0}.nut-popup-slide-top-enter-from,.nut-popup-slide-top-leave-active{transform:translate(0, -100%)}.nut-popup-slide-right-enter-from,.nut-popup-slide-right-leave-active{transform:translate(100%, 0)}.nut-popup-slide-bottom-enter-from,.nut-popup-slide-bottom-leave-active{transform:translate(0, 100%)}.nut-popup-slide-left-enter-from,.nut-popup-slide-left-leave-active{transform:translate(-100%, 0)}.nut-popup--center{top:50%;left:50%;transform:translate(-50%, -50%)}.nut-popup--center.round{border-radius:var(--nut-popup-border-radius, 20px)}.nut-popup--bottom{bottom:0;left:0;width:100%}.nut-popup--bottom.round{border-radius:var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px) 0 0}.nut-popup--bottom--safebottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.nut-popup--right{top:0;right:0}.nut-popup--right.round{border-radius:var(--nut-popup-border-radius, 20px) 0 0 var(--nut-popup-border-radius, 20px)}.nut-popup--left{top:0;left:0}.nut-popup--left.round{border-radius:0 var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px) 0}.nut-popup--top{top:0;left:0;width:100%}.nut-popup--top.round{border-radius:0 0 var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px)}.nut-popup{position:fixed;max-height:100%;overflow-y:auto;background-color:var(--nut-white, #fff);-webkit-overflow-scrolling:touch}.nut-popup__close-icon{position:absolute !important;z-index:1;color:#969799;font-size:18px;cursor:pointer;width:30px;height:30px;line-height:30px;text-align:center}.nut-popup__close-icon:active{opacity:.7}.nut-popup__close-icon--top-left{top:var(--nut-popup-close-icon-margin, 16px);left:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--top-right{top:var(--nut-popup-close-icon-margin, 16px);right:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--bottom-left{bottom:var(--nut-popup-close-icon-margin, 16px);left:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--bottom-right{right:var(--nut-popup-close-icon-margin, 16px);bottom:var(--nut-popup-close-icon-margin, 16px)}.nut-theme-dark .nut-elevator{background-color:var(--nut-dark-background2, #1b1b1b)}.nut-theme-dark .nut-elevator__list__item{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-elevator__list__item__code{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-elevator__list__fixed{background-color:var(--nut-dark-background2, #1b1b1b)}.nut-elevator{width:100%;display:block;position:relative}.nut-elevator__list{display:block;position:relative;overflow:auto}.nut-elevator__list__item{display:block;font-size:var(--nut-elevator-list-item-font-size, 12px);color:var(--nut-elevator-list-item-font-color, #333333)}.nut-elevator__list__item__code{display:flex;position:relative;height:var(--nut-elevator-list-item-code-height, 35px);line-height:var(--nut-elevator-list-item-code-line-height, 35px);font-size:var(--nut-elevator-list-item-code-font-size, 14px);color:var(--nut-elevator-list-item-code-font-color, #1a1a1a);padding:var(--nut-elevator-list-item-code-padding, 0 20px);font-weight:var(--nut-elevator-list-item-code-font-weight, 500);box-sizing:border-box}.nut-elevator__list__item__code::after{content:" ";width:var(--nut-elevator-list-item-code-after-width, 100%);height:var(--nut-elevator-list-item-code-after-height, 1px);position:absolute;left:0;bottom:0;background-color:var(--nut-elevator-list-item-code-after-bg-color, #f5f5f5)}.nut-elevator__list__item__name{display:flex;align-items:center;padding:var(--nut-elevator-list-item-name-padding, 0 20px);height:var(--nut-elevator-list-item-name-height, 30px);line-height:var(--nut-elevator-list-item-name-line-height, 30px)}.nut-elevator__list__item__name--highcolor{color:var(--nut-elevator-list-item-highcolor, var(--nut-primary-color, #fa2c19))}.nut-elevator__list .nut-elevator__list__fixed__wrapper{position:absolute;top:0;left:0;width:100%}.nut-elevator__list__fixed{width:100%;position:absolute;top:0;left:0;padding:var(--nut-elevator-list-item-code-padding, 0 20px);height:var(--nut-elevator-list-item-code-height, 35px);line-height:var(--nut-elevator-list-item-code-line-height, 35px);font-size:var(--nut-elevator-list-item-code-font-size, 14px);color:var(--nut-elevator-list-fixed-color, var(--nut-primary-color, #fa2c19));font-weight:var(--nut-elevator-list-item-code-font-weight, 500);background-color:var(--nut-elevator-list-fixed-bg-color, var(--nut-white, #fff));box-sizing:border-box;box-shadow:var(--nut-elevator-list-fixed-box-shadow, 0 0 10px #eee);z-index:1}.nut-elevator__list__fixed--mini{position:sticky;top:-1px}.nut-elevator__list--mini{position:static}.nut-elevator__code--current{position:var(--nut-elevator-list-item-code-current-position, absolute);right:var(--nut-elevator-list-item-code-current-right, 60px);top:var(--nut-elevator-list-item-code-current-top, 50%);transform:var(--nut-elevator-list-item-code-current-transform, translateY(-50%));width:var(--nut-elevator-list-item-code-current-width, 45px);height:var(--nut-elevator-list-item-code-current-height, 45px);line-height:var(--nut-elevator-list-item-code-current-line-height, 45px);border-radius:var(--nut-elevator-list-item-code-current-border-radius, 50%);background:var(--nut-elevator-list-item-code-current-bg-color, #fff);box-shadow:var(--nut-elevator-list-item-code-current-box-shadow, 0 3px 3px 1px rgb(240, 240, 240));text-align:var(--nut-elevator-list-item-code-current-text-align, center)}.nut-elevator__bars{position:var(--nut-elevator-list-item-bars-position, absolute);right:var(--nut-elevator-list-item-bars-right, 8px);top:var(--nut-elevator-list-item-bars-top, 50%);transform:var(--nut-elevator-list-item-bars-transform, translateY(-50%));padding:var(--nut-elevator-list-item-bars-padding, 15px 0);background-color:var(--nut-elevator-list-item-bars-background-color, #eeeff2);border-radius:var(--nut-elevator-list-item-bars-border-radius, 6px);text-align:var(--nut-elevator-list-item-bars-text-align, center);z-index:var(--nut-elevator-list-item-bars-z-index, 1)}.nut-elevator__bars__inner__item{display:block;padding:var(--nut-elevator-list-item-bars-inner-item-padding, 3px);font-size:var(--nut-elevator-list-item-bars-inner-item-font-size, 10px)}.nut-elevator__bars__inner__item.active{color:var(--nut-elevator-list-item-bars-inner-item-active-color, var(--nut-primary-color, #fa2c19))}.nut-theme-dark .nut-address__header{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-address__header__title{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-address .nut-address__custom .nut-address__region{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-address .nut-address__custom .nut-address__detail .nut-address__detail-list .nut-address__detail-item{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list .nut-address__exist-group-item{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-address .nut-address__exist .nut-address__exist-choose{border-top:1px solid var(--nut-dark-background, #131313)}.nut-theme-dark .nut-address-custom-buttom{border-top:1px solid var(--nut-dark-background, #131313)}.nut-address{display:block}.nut-address__header{display:flex;justify-content:space-between;align-items:center;height:68px;padding:0 20px;text-align:center;font-weight:bold;color:#333}.nut-address__header__title{display:block;color:var(--nut-address-header-title-color, #262626);font-size:var(--nut-address-header-title-font-size, 18px)}.nut-address .nut-address__custom{display:block}.nut-address .nut-address__custom .nut-address__region{position:relative;padding:0 20px;display:flex;font-size:var(--nut-address-region-tab-font-size, 13px);color:var(--nut-address-region-tab-color, #1d1e1e)}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item{position:relative;min-width:2px;margin-right:30px;display:block}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item.active{font-weight:var(--nut-address-region-tab-active-item-font-weight, bold)}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item view{display:block;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item span{display:inline-block;max-width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item .nut-address__region-line--mini{position:absolute;bottom:-10px;left:0px;display:inline-block;margin-top:5px;width:0;height:3px;background:var(--nut-address-region-tab-line, linear-gradient(90deg, var(--nut-primary-color, #fa2c19) 0%, rgba(250, 44, 25, 0.15) 100%));transition:.2s all linear}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item .nut-address__region-line--mini.active{width:26px}.nut-address .nut-address__custom .nut-address__region .nut-address__region-line{position:absolute;bottom:-10px;left:20px;display:inline-block;margin-top:5px;width:26px;height:3px;background:var(--nut-address-region-tab-line, linear-gradient(90deg, var(--nut-primary-color, #fa2c19) 0%, rgba(250, 44, 25, 0.15) 100%));transition:.2s all linear;border-radius:var(--nut-address-region-tab-line-border-radius, 0);opacity:var(--nut-address-region-tab-line-opacity, 1)}.nut-address .nut-address__custom .nut-address__detail{display:block;margin:20px 20px 0}.nut-address .nut-address__custom .nut-address__detail .nut-address__detail-list{padding-top:15px;height:270px;box-sizing:border-box;padding:0}.nut-address .nut-address__custom .nut-address__detail .nut-address__detail-list .nut-address__detail-item{display:flex;align-items:center;font-size:var(--nut-address-region-item-font-size, var(--nut-font-size-1, 12px));color:var(--nut-address-region-item-color, #333)}.nut-address .nut-address__custom .nut-address__detail .nut-address__detail-list .nut-address__detail-item.active{font-weight:bold}.nut-address .nut-address__custom .nut-address__detail .nut-address__detail-list .nut-address__detail-item>div{display:flex;align-items:center;margin:10px 0}.nut-address .nut-address__custom .nut-address__elevator-group{display:flex;margin-top:20px}.nut-address .nut-address__exist{display:block;margin-top:15px}.nut-address .nut-address__exist .nut-address__exist-group{padding:15px 20px 0;height:279px;overflow-y:scroll}.nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list{box-sizing:border-box;padding:0}.nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list .nut-address__exist-group-item{display:flex;align-items:center;margin-bottom:20px;font-size:var(--nut-font-size-1, 12px);line-height:14px;color:#333}.nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list .nut-address__exist-group-item.active{font-weight:bold}.nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list .nut-address__exist-group-item .exist-item-icon{margin-right:var(--nut-address-item-margin-right, 9px);color:var(--nut-address-icon-color, var(--nut-primary-color, #fa2c19)) !important}.nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list .nut-address__exist-group-item span{display:inline-block;flex:1}.nut-address .nut-address__exist .nut-address__exist-choose{width:100%;height:54px;padding:6px 0px 0;border-top:1px solid #f2f2f2}.nut-address .nut-address__exist .nut-address__exist-choose .nut-address__exist-choose-btn{width:90%;height:42px;line-height:42px;margin:auto;text-align:center;background:var(--nut-button-primary-background-color, linear-gradient(135deg, var(--nut-primary-color, var(--nut-primary-color, #fa2c19)) 0%, var(--nut-primary-color, var(--nut-primary-color, #fa2c19)) 100%));border-radius:21px;font-size:15px;color:var(--nut-white, #fff)}.nut-address-select-icon{margin-right:var(--nut-address-item-margin-right, 9px);color:var(--nut-address-icon-color, var(--nut-primary-color, #fa2c19)) !important}
1
+ .overlay-fade-enter-active,.overlay-fade-leave-active{transition-property:opacity;transition-timing-function:ease}.overlay-fade-enter-from,.overlay-fade-leave-to{opacity:0}.nut-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nut-overlay-bg-color, rgba(0, 0, 0, 0.7))}.nut-overflow-hidden{overflow:hidden !important}.nut-theme-dark .nut-popup{background:var(--nut-dark-background2, #1b1b1b)}.nut-theme-dark .nut-popup__close-icon{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-popup-slide-center-enter-active,.nut-popup-slide-center-leave-active{transition-property:opacity;transition-timing-function:ease}.nut-popup-slide-center-enter-from,.nut-popup-slide-center-leave-to{opacity:0}.nut-popup-slide-top-enter-from,.nut-popup-slide-top-leave-active{transform:translate(0, -100%)}.nut-popup-slide-right-enter-from,.nut-popup-slide-right-leave-active{transform:translate(100%, 0)}.nut-popup-slide-bottom-enter-from,.nut-popup-slide-bottom-leave-active{transform:translate(0, 100%)}.nut-popup-slide-left-enter-from,.nut-popup-slide-left-leave-active{transform:translate(-100%, 0)}.nut-popup--center{top:50%;left:50%;transform:translate(-50%, -50%)}.nut-popup--center.round{border-radius:var(--nut-popup-border-radius, 20px)}.nut-popup--bottom{bottom:0;left:0;width:100%}.nut-popup--bottom.round{border-radius:var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px) 0 0}.nut-popup--bottom--safebottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.nut-popup--right{top:0;right:0}.nut-popup--right.round{border-radius:var(--nut-popup-border-radius, 20px) 0 0 var(--nut-popup-border-radius, 20px)}.nut-popup--left{top:0;left:0}.nut-popup--left.round{border-radius:0 var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px) 0}.nut-popup--top{top:0;left:0;width:100%}.nut-popup--top.round{border-radius:0 0 var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px)}.nut-popup{position:fixed;max-height:100%;overflow-y:auto;background-color:var(--nut-white, #fff);-webkit-overflow-scrolling:touch}.nut-popup__close-icon{position:absolute !important;z-index:1;color:#969799;font-size:18px;cursor:pointer;width:30px;height:30px;line-height:30px;text-align:center}.nut-popup__close-icon:active{opacity:.7}.nut-popup__close-icon--top-left{top:var(--nut-popup-close-icon-margin, 16px);left:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--top-right{top:var(--nut-popup-close-icon-margin, 16px);right:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--bottom-left{bottom:var(--nut-popup-close-icon-margin, 16px);left:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--bottom-right{right:var(--nut-popup-close-icon-margin, 16px);bottom:var(--nut-popup-close-icon-margin, 16px)}.nut-theme-dark .nut-elevator{background-color:var(--nut-dark-background2, #1b1b1b)}.nut-theme-dark .nut-elevator__list__item{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-elevator__list__item__code{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-elevator__list__fixed{background-color:var(--nut-dark-background2, #1b1b1b)}.nut-elevator{width:100%;display:block;position:relative}.nut-elevator__list{display:block;position:relative;overflow:auto}.nut-elevator__list__item{display:block;font-size:var(--nut-elevator-list-item-font-size, 12px);color:var(--nut-elevator-list-item-font-color, #333333)}.nut-elevator__list__item__code{display:flex;position:relative;height:var(--nut-elevator-list-item-code-height, 35px);line-height:var(--nut-elevator-list-item-code-line-height, 35px);font-size:var(--nut-elevator-list-item-code-font-size, 14px);color:var(--nut-elevator-list-item-code-font-color, #1a1a1a);padding:var(--nut-elevator-list-item-code-padding, 0 20px);font-weight:var(--nut-elevator-list-item-code-font-weight, 500);box-sizing:border-box}.nut-elevator__list__item__code::after{content:" ";width:var(--nut-elevator-list-item-code-after-width, 100%);height:var(--nut-elevator-list-item-code-after-height, 1px);position:absolute;left:0;bottom:0;background-color:var(--nut-elevator-list-item-code-after-bg-color, #f5f5f5)}.nut-elevator__list__item__name{display:flex;align-items:center;padding:var(--nut-elevator-list-item-name-padding, 0 20px);height:var(--nut-elevator-list-item-name-height, 30px);line-height:var(--nut-elevator-list-item-name-line-height, 30px)}.nut-elevator__list__item__name--highcolor{color:var(--nut-elevator-list-item-highcolor, var(--nut-primary-color, #fa2c19))}.nut-elevator__list__fixed{width:100%;position:absolute;top:0;left:0;padding:var(--nut-elevator-list-item-code-padding, 0 20px);height:var(--nut-elevator-list-item-code-height, 35px);line-height:var(--nut-elevator-list-item-code-line-height, 35px);font-size:var(--nut-elevator-list-item-code-font-size, 14px);color:var(--nut-elevator-list-fixed-color, var(--nut-primary-color, #fa2c19));font-weight:var(--nut-elevator-list-item-code-font-weight, 500);background-color:var(--nut-elevator-list-fixed-bg-color, var(--nut-white, #fff));box-sizing:border-box;box-shadow:var(--nut-elevator-list-fixed-box-shadow, 0 0 10px #eee);z-index:1}.nut-elevator__code--current{position:var(--nut-elevator-list-item-code-current-position, absolute);right:var(--nut-elevator-list-item-code-current-right, 60px);top:var(--nut-elevator-list-item-code-current-top, 50%);transform:var(--nut-elevator-list-item-code-current-transform, translateY(-50%));width:var(--nut-elevator-list-item-code-current-width, 45px);height:var(--nut-elevator-list-item-code-current-height, 45px);line-height:var(--nut-elevator-list-item-code-current-line-height, 45px);border-radius:var(--nut-elevator-list-item-code-current-border-radius, 50%);background:var(--nut-elevator-list-item-code-current-bg-color, #fff);box-shadow:var(--nut-elevator-list-item-code-current-box-shadow, 0 3px 3px 1px rgb(240, 240, 240));text-align:var(--nut-elevator-list-item-code-current-text-align, center)}.nut-elevator__bars{position:var(--nut-elevator-list-item-bars-position, absolute);right:var(--nut-elevator-list-item-bars-right, 8px);top:var(--nut-elevator-list-item-bars-top, 50%);transform:var(--nut-elevator-list-item-bars-transform, translateY(-50%));padding:var(--nut-elevator-list-item-bars-padding, 15px 0);background-color:var(--nut-elevator-list-item-bars-background-color, #eeeff2);border-radius:var(--nut-elevator-list-item-bars-border-radius, 6px);text-align:var(--nut-elevator-list-item-bars-text-align, center);z-index:var(--nut-elevator-list-item-bars-z-index, 1)}.nut-elevator__bars__inner__item{display:block;padding:var(--nut-elevator-list-item-bars-inner-item-padding, 3px);font-size:var(--nut-elevator-list-item-bars-inner-item-font-size, 10px)}.nut-elevator__bars__inner__item.active{color:var(--nut-elevator-list-item-bars-inner-item-active-color, var(--nut-primary-color, #fa2c19))}.nut-theme-dark .nut-address__header{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-address__header__title{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-address .nut-address__custom .nut-address__region{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-address .nut-address__custom .nut-address__detail .nut-address__detail-list .nut-address__detail-item{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list .nut-address__exist-group-item{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-address .nut-address__exist .nut-address__exist-choose{border-top:1px solid var(--nut-dark-background, #131313)}.nut-theme-dark .nut-address-custom-buttom{border-top:1px solid var(--nut-dark-background, #131313)}.nut-address{display:block}.nut-address__header{display:flex;justify-content:space-between;align-items:center;height:68px;padding:0 20px;text-align:center;font-weight:bold;color:#333}.nut-address__header__title{display:block;color:var(--nut-address-header-title-color, #262626);font-size:var(--nut-address-header-title-font-size, 18px)}.nut-address .nut-address__custom{display:block}.nut-address .nut-address__custom .nut-address__region{position:relative;padding:0 20px;display:flex;font-size:var(--nut-address-region-tab-font-size, 13px);color:var(--nut-address-region-tab-color, #1d1e1e)}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item{position:relative;min-width:2px;margin-right:30px;display:block}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item.active{font-weight:var(--nut-address-region-tab-active-item-font-weight, bold)}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item view{display:block;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item span{display:inline-block;max-width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item .nut-address__region-line--mini{position:absolute;bottom:-10px;left:0px;display:inline-block;margin-top:5px;width:0;height:3px;background:var(--nut-address-region-tab-line, linear-gradient(90deg, var(--nut-primary-color, #fa2c19) 0%, rgba(250, 44, 25, 0.15) 100%));transition:.2s all linear}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item .nut-address__region-line--mini.active{width:26px}.nut-address .nut-address__custom .nut-address__region .nut-address__region-line{position:absolute;bottom:-10px;left:20px;display:inline-block;margin-top:5px;width:26px;height:3px;background:var(--nut-address-region-tab-line, linear-gradient(90deg, var(--nut-primary-color, #fa2c19) 0%, rgba(250, 44, 25, 0.15) 100%));transition:.2s all linear;border-radius:var(--nut-address-region-tab-line-border-radius, 0);opacity:var(--nut-address-region-tab-line-opacity, 1)}.nut-address .nut-address__custom .nut-address__detail{display:block;margin:20px 20px 0}.nut-address .nut-address__custom .nut-address__detail .nut-address__detail-list{padding-top:15px;height:270px;box-sizing:border-box;padding:0}.nut-address .nut-address__custom .nut-address__detail .nut-address__detail-list .nut-address__detail-item{display:flex;align-items:center;font-size:var(--nut-address-region-item-font-size, var(--nut-font-size-1, 12px));color:var(--nut-address-region-item-color, #333)}.nut-address .nut-address__custom .nut-address__detail .nut-address__detail-list .nut-address__detail-item.active{font-weight:bold}.nut-address .nut-address__custom .nut-address__detail .nut-address__detail-list .nut-address__detail-item>div{display:flex;align-items:center;margin:10px 0}.nut-address .nut-address__custom .nut-address__elevator-group{display:flex;margin-top:20px}.nut-address .nut-address__exist{display:block;margin-top:15px}.nut-address .nut-address__exist .nut-address__exist-group{padding:15px 20px 0;height:279px;overflow-y:scroll}.nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list{box-sizing:border-box;padding:0}.nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list .nut-address__exist-group-item{display:flex;align-items:center;margin-bottom:20px;font-size:var(--nut-font-size-1, 12px);line-height:14px;color:#333}.nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list .nut-address__exist-group-item.active{font-weight:bold}.nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list .nut-address__exist-group-item .exist-item-icon{margin-right:var(--nut-address-item-margin-right, 9px);color:var(--nut-address-icon-color, var(--nut-primary-color, #fa2c19)) !important}.nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list .nut-address__exist-group-item span{display:inline-block;flex:1}.nut-address .nut-address__exist .nut-address__exist-choose{width:100%;height:54px;padding:6px 0px 0;border-top:1px solid #f2f2f2}.nut-address .nut-address__exist .nut-address__exist-choose .nut-address__exist-choose-btn{width:90%;height:42px;line-height:42px;margin:auto;text-align:center;background:var(--nut-button-primary-background-color, linear-gradient(135deg, var(--nut-primary-color, var(--nut-primary-color, #fa2c19)) 0%, var(--nut-primary-color, var(--nut-primary-color, #fa2c19)) 100%));border-radius:21px;font-size:15px;color:var(--nut-white, #fff)}.nut-address-select-icon{margin-right:var(--nut-address-item-margin-right, 9px);color:var(--nut-address-icon-color, var(--nut-primary-color, #fa2c19)) !important}
@@ -1 +1 @@
1
- .nut-theme-dark .nut-checkbox__label{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-checkbox__label--disabled{color:var(--nut-checkbox-label-disable-color, #999)}.nut-theme-dark .nut-checkbox__button{background:var(--nut-dark-background, #131313);color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-checkbox__button--disabled{color:var(--nut-checkbox-label-disable-color, #999);border:1px solid var(--nut-checkbox-label-disable-color, #999)}.nut-checkbox{display:var(--nut-checkbox-display, inline-flex);align-items:center;margin-right:var(--nut-checkbox-margin-right, 20px)}.nut-checkbox--reverse{flex-direction:row-reverse}.nut-checkbox--reverse .nut-checkbox__label{margin-right:var(--nut-checkbox-label-margin-left, 15px);margin-left:0}.nut-checkbox__button{display:inline-flex;align-items:center;padding:var(--nut-checkbox-button-padding, 5px 18px);font-size:var(--nut-checkbox-button-font-size, 12px);background:var(--nut-checkbox-button-background, #f6f7f9);border-radius:var(--nut-checkbox-button-border-radius, 15px);color:var(--nut-checkbox-label-color, #1d1e1e);box-sizing:border-box;border:1px solid var(--nut-checkbox-button-border-color, #f6f7f9)}.nut-checkbox__button--active{background:rgba(0,0,0,0);color:var(--nut-checkbox-button-font-color-active, var(--nut-primary-color, #fa2c19));border:1px solid var(--nut-checkbox-button-border-color-active, var(--nut-primary-color, #fa2c19));position:relative}.nut-checkbox__button--active::after{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;background-color:var(--nut-checkbox-button-background-active, var(--nut-primary-color, #fa2c19));opacity:.05;content:""}.nut-checkbox__button--disabled{color:var(--nut-checkbox-label-disable-color, #999);border:none}.nut-checkbox__label{flex:1;margin-left:var(--nut-checkbox-label-margin-left, 15px);font-size:var(--nut-checkbox-label-font-size, 14px);color:var(--nut-checkbox-label-color, #1d1e1e)}.nut-checkbox__label--disabled{color:var(--nut-checkbox-label-disable-color, #999)}.nut-checkbox__icon{color:var(--nut-primary-color, #fa2c19);font-size:var(--nut-checkbox-icon-font-size, 18px);transition-duration:.3s;transition-property:color,border-color,background-color}.nut-checkbox__icon--unchecked{color:var(--nut-checkbox-icon-disable-color, #d6d6d6);font-size:var(--nut-checkbox-icon-font-size, 18px)}.nut-checkbox__icon--indeterminate{color:var(--nut-primary-color, #fa2c19);font-size:var(--nut-checkbox-icon-font-size, 18px)}.nut-checkbox__icon--disable{color:var(--nut-checkbox-icon-disable-color2, var(--nut-help-color, #f5f5f5));font-size:var(--nut-checkbox-icon-font-size, 18px)}
1
+ .nut-theme-dark .nut-checkbox__label{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-checkbox__label--disabled{color:var(--nut-checkbox-label-disable-color, #999)}.nut-theme-dark .nut-checkbox__button{background:var(--nut-dark-background, #131313);color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-checkbox__button--disabled{color:var(--nut-checkbox-label-disable-color, #999);border:1px solid var(--nut-checkbox-label-disable-color, #999)}.nut-checkbox{display:var(--nut-checkbox-display, inline-flex);vertical-align:bottom;align-items:center;margin-right:var(--nut-checkbox-margin-right, 20px)}.nut-checkbox--reverse{flex-direction:row-reverse}.nut-checkbox--reverse .nut-checkbox__label{margin-right:var(--nut-checkbox-label-margin-left, 15px);margin-left:0}.nut-checkbox__button{display:inline-flex;align-items:center;padding:var(--nut-checkbox-button-padding, 5px 18px);font-size:var(--nut-checkbox-button-font-size, 12px);background:var(--nut-checkbox-button-background, #f6f7f9);border-radius:var(--nut-checkbox-button-border-radius, 15px);color:var(--nut-checkbox-label-color, #1d1e1e);box-sizing:border-box;border:1px solid var(--nut-checkbox-button-border-color, #f6f7f9)}.nut-checkbox__button--active{background:rgba(0,0,0,0);color:var(--nut-checkbox-button-font-color-active, var(--nut-primary-color, #fa2c19));border:1px solid var(--nut-checkbox-button-border-color-active, var(--nut-primary-color, #fa2c19));position:relative}.nut-checkbox__button--active::after{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;background-color:var(--nut-checkbox-button-background-active, var(--nut-primary-color, #fa2c19));opacity:.05;content:""}.nut-checkbox__button--disabled{color:var(--nut-checkbox-label-disable-color, #999);border:none}.nut-checkbox__label{flex:1;margin-left:var(--nut-checkbox-label-margin-left, 15px);font-size:var(--nut-checkbox-label-font-size, 14px);color:var(--nut-checkbox-label-color, #1d1e1e)}.nut-checkbox__label--disabled{color:var(--nut-checkbox-label-disable-color, #999)}.nut-checkbox__icon{color:var(--nut-primary-color, #fa2c19);font-size:var(--nut-checkbox-icon-font-size, 18px);transition-duration:.3s;transition-property:color,border-color,background-color}.nut-checkbox__icon--unchecked{color:var(--nut-checkbox-icon-disable-color, #d6d6d6);font-size:var(--nut-checkbox-icon-font-size, 18px)}.nut-checkbox__icon--indeterminate{color:var(--nut-primary-color, #fa2c19);font-size:var(--nut-checkbox-icon-font-size, 18px)}.nut-checkbox__icon--disable{color:var(--nut-checkbox-icon-disable-color2, var(--nut-help-color, #f5f5f5));font-size:var(--nut-checkbox-icon-font-size, 18px)}
@@ -18,6 +18,7 @@
18
18
  }
19
19
  .nut-checkbox {
20
20
  display: $checkbox-display;
21
+ vertical-align: bottom;
21
22
  align-items: center;
22
23
  margin-right: $checkbox-margin-right;
23
24
  &--reverse {
@@ -1 +1 @@
1
- .nut-theme-dark .nut-elevator{background-color:var(--nut-dark-background2, #1b1b1b)}.nut-theme-dark .nut-elevator__list__item{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-elevator__list__item__code{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-elevator__list__fixed{background-color:var(--nut-dark-background2, #1b1b1b)}.nut-elevator{width:100%;display:block;position:relative}.nut-elevator__list{display:block;position:relative;overflow:auto}.nut-elevator__list__item{display:block;font-size:var(--nut-elevator-list-item-font-size, 12px);color:var(--nut-elevator-list-item-font-color, #333333)}.nut-elevator__list__item__code{display:flex;position:relative;height:var(--nut-elevator-list-item-code-height, 35px);line-height:var(--nut-elevator-list-item-code-line-height, 35px);font-size:var(--nut-elevator-list-item-code-font-size, 14px);color:var(--nut-elevator-list-item-code-font-color, #1a1a1a);padding:var(--nut-elevator-list-item-code-padding, 0 20px);font-weight:var(--nut-elevator-list-item-code-font-weight, 500);box-sizing:border-box}.nut-elevator__list__item__code::after{content:" ";width:var(--nut-elevator-list-item-code-after-width, 100%);height:var(--nut-elevator-list-item-code-after-height, 1px);position:absolute;left:0;bottom:0;background-color:var(--nut-elevator-list-item-code-after-bg-color, #f5f5f5)}.nut-elevator__list__item__name{display:flex;align-items:center;padding:var(--nut-elevator-list-item-name-padding, 0 20px);height:var(--nut-elevator-list-item-name-height, 30px);line-height:var(--nut-elevator-list-item-name-line-height, 30px)}.nut-elevator__list__item__name--highcolor{color:var(--nut-elevator-list-item-highcolor, var(--nut-primary-color, #fa2c19))}.nut-elevator__list .nut-elevator__list__fixed__wrapper{position:absolute;top:0;left:0;width:100%}.nut-elevator__list__fixed{width:100%;position:absolute;top:0;left:0;padding:var(--nut-elevator-list-item-code-padding, 0 20px);height:var(--nut-elevator-list-item-code-height, 35px);line-height:var(--nut-elevator-list-item-code-line-height, 35px);font-size:var(--nut-elevator-list-item-code-font-size, 14px);color:var(--nut-elevator-list-fixed-color, var(--nut-primary-color, #fa2c19));font-weight:var(--nut-elevator-list-item-code-font-weight, 500);background-color:var(--nut-elevator-list-fixed-bg-color, var(--nut-white, #fff));box-sizing:border-box;box-shadow:var(--nut-elevator-list-fixed-box-shadow, 0 0 10px #eee);z-index:1}.nut-elevator__list__fixed--mini{position:sticky;top:-1px}.nut-elevator__list--mini{position:static}.nut-elevator__code--current{position:var(--nut-elevator-list-item-code-current-position, absolute);right:var(--nut-elevator-list-item-code-current-right, 60px);top:var(--nut-elevator-list-item-code-current-top, 50%);transform:var(--nut-elevator-list-item-code-current-transform, translateY(-50%));width:var(--nut-elevator-list-item-code-current-width, 45px);height:var(--nut-elevator-list-item-code-current-height, 45px);line-height:var(--nut-elevator-list-item-code-current-line-height, 45px);border-radius:var(--nut-elevator-list-item-code-current-border-radius, 50%);background:var(--nut-elevator-list-item-code-current-bg-color, #fff);box-shadow:var(--nut-elevator-list-item-code-current-box-shadow, 0 3px 3px 1px rgb(240, 240, 240));text-align:var(--nut-elevator-list-item-code-current-text-align, center)}.nut-elevator__bars{position:var(--nut-elevator-list-item-bars-position, absolute);right:var(--nut-elevator-list-item-bars-right, 8px);top:var(--nut-elevator-list-item-bars-top, 50%);transform:var(--nut-elevator-list-item-bars-transform, translateY(-50%));padding:var(--nut-elevator-list-item-bars-padding, 15px 0);background-color:var(--nut-elevator-list-item-bars-background-color, #eeeff2);border-radius:var(--nut-elevator-list-item-bars-border-radius, 6px);text-align:var(--nut-elevator-list-item-bars-text-align, center);z-index:var(--nut-elevator-list-item-bars-z-index, 1)}.nut-elevator__bars__inner__item{display:block;padding:var(--nut-elevator-list-item-bars-inner-item-padding, 3px);font-size:var(--nut-elevator-list-item-bars-inner-item-font-size, 10px)}.nut-elevator__bars__inner__item.active{color:var(--nut-elevator-list-item-bars-inner-item-active-color, var(--nut-primary-color, #fa2c19))}
1
+ .nut-theme-dark .nut-elevator{background-color:var(--nut-dark-background2, #1b1b1b)}.nut-theme-dark .nut-elevator__list__item{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-elevator__list__item__code{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-elevator__list__fixed{background-color:var(--nut-dark-background2, #1b1b1b)}.nut-elevator{width:100%;display:block;position:relative}.nut-elevator__list{display:block;position:relative;overflow:auto}.nut-elevator__list__item{display:block;font-size:var(--nut-elevator-list-item-font-size, 12px);color:var(--nut-elevator-list-item-font-color, #333333)}.nut-elevator__list__item__code{display:flex;position:relative;height:var(--nut-elevator-list-item-code-height, 35px);line-height:var(--nut-elevator-list-item-code-line-height, 35px);font-size:var(--nut-elevator-list-item-code-font-size, 14px);color:var(--nut-elevator-list-item-code-font-color, #1a1a1a);padding:var(--nut-elevator-list-item-code-padding, 0 20px);font-weight:var(--nut-elevator-list-item-code-font-weight, 500);box-sizing:border-box}.nut-elevator__list__item__code::after{content:" ";width:var(--nut-elevator-list-item-code-after-width, 100%);height:var(--nut-elevator-list-item-code-after-height, 1px);position:absolute;left:0;bottom:0;background-color:var(--nut-elevator-list-item-code-after-bg-color, #f5f5f5)}.nut-elevator__list__item__name{display:flex;align-items:center;padding:var(--nut-elevator-list-item-name-padding, 0 20px);height:var(--nut-elevator-list-item-name-height, 30px);line-height:var(--nut-elevator-list-item-name-line-height, 30px)}.nut-elevator__list__item__name--highcolor{color:var(--nut-elevator-list-item-highcolor, var(--nut-primary-color, #fa2c19))}.nut-elevator__list__fixed{width:100%;position:absolute;top:0;left:0;padding:var(--nut-elevator-list-item-code-padding, 0 20px);height:var(--nut-elevator-list-item-code-height, 35px);line-height:var(--nut-elevator-list-item-code-line-height, 35px);font-size:var(--nut-elevator-list-item-code-font-size, 14px);color:var(--nut-elevator-list-fixed-color, var(--nut-primary-color, #fa2c19));font-weight:var(--nut-elevator-list-item-code-font-weight, 500);background-color:var(--nut-elevator-list-fixed-bg-color, var(--nut-white, #fff));box-sizing:border-box;box-shadow:var(--nut-elevator-list-fixed-box-shadow, 0 0 10px #eee);z-index:1}.nut-elevator__code--current{position:var(--nut-elevator-list-item-code-current-position, absolute);right:var(--nut-elevator-list-item-code-current-right, 60px);top:var(--nut-elevator-list-item-code-current-top, 50%);transform:var(--nut-elevator-list-item-code-current-transform, translateY(-50%));width:var(--nut-elevator-list-item-code-current-width, 45px);height:var(--nut-elevator-list-item-code-current-height, 45px);line-height:var(--nut-elevator-list-item-code-current-line-height, 45px);border-radius:var(--nut-elevator-list-item-code-current-border-radius, 50%);background:var(--nut-elevator-list-item-code-current-bg-color, #fff);box-shadow:var(--nut-elevator-list-item-code-current-box-shadow, 0 3px 3px 1px rgb(240, 240, 240));text-align:var(--nut-elevator-list-item-code-current-text-align, center)}.nut-elevator__bars{position:var(--nut-elevator-list-item-bars-position, absolute);right:var(--nut-elevator-list-item-bars-right, 8px);top:var(--nut-elevator-list-item-bars-top, 50%);transform:var(--nut-elevator-list-item-bars-transform, translateY(-50%));padding:var(--nut-elevator-list-item-bars-padding, 15px 0);background-color:var(--nut-elevator-list-item-bars-background-color, #eeeff2);border-radius:var(--nut-elevator-list-item-bars-border-radius, 6px);text-align:var(--nut-elevator-list-item-bars-text-align, center);z-index:var(--nut-elevator-list-item-bars-z-index, 1)}.nut-elevator__bars__inner__item{display:block;padding:var(--nut-elevator-list-item-bars-inner-item-padding, 3px);font-size:var(--nut-elevator-list-item-bars-inner-item-font-size, 10px)}.nut-elevator__bars__inner__item.active{color:var(--nut-elevator-list-item-bars-inner-item-active-color, var(--nut-primary-color, #fa2c19))}
@@ -57,12 +57,6 @@
57
57
  }
58
58
  }
59
59
  }
60
- .nut-elevator__list__fixed__wrapper {
61
- position: absolute;
62
- top: 0;
63
- left: 0;
64
- width: 100%;
65
- }
66
60
  &__fixed {
67
61
  width: 100%;
68
62
  position: absolute;
@@ -78,13 +72,6 @@
78
72
  box-sizing: border-box;
79
73
  box-shadow: $elevator-list-fixed-box-shadow;
80
74
  z-index: 1;
81
- &--mini {
82
- position: sticky;
83
- top: -1px;
84
- }
85
- }
86
- &--mini {
87
- position: static;
88
75
  }
89
76
  }
90
77
  &__code--current {