@nutui/nutui 4.0.0-beta.20 → 4.0.0-beta.22

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 (136) hide show
  1. package/dist/nutui.es.js +1 -1
  2. package/dist/nutui.umd.js +2 -2
  3. package/dist/packages/_es/Comment.js +3 -5
  4. package/dist/packages/_es/InputNumber.js +1 -1
  5. package/dist/packages/_es/Progress.js +27 -28
  6. package/dist/packages/_es/Sku.js +5 -6
  7. package/dist/packages/_es/Switch.js +4 -1
  8. package/dist/packages/_es/Table.js +90 -93
  9. package/dist/packages/_es/Textarea.js +24 -4
  10. package/dist/packages/_es/Uploader.js +17 -16
  11. package/dist/packages/actionsheet/style.mjs +1 -2
  12. package/dist/packages/address/style.mjs +1 -3
  13. package/dist/packages/addresslist/style.mjs +1 -2
  14. package/dist/packages/animate/style.mjs +1 -0
  15. package/dist/packages/audio/style.mjs +1 -1
  16. package/dist/packages/audiooperate/style.mjs +1 -1
  17. package/dist/packages/avatar/style.mjs +1 -0
  18. package/dist/packages/avatargroup/style.mjs +1 -0
  19. package/dist/packages/backtop/style.mjs +1 -0
  20. package/dist/packages/badge/index.scss +5 -1
  21. package/dist/packages/badge/style.mjs +1 -0
  22. package/dist/packages/barrage/style.mjs +1 -0
  23. package/dist/packages/button/style.mjs +1 -0
  24. package/dist/packages/calendar/style.mjs +1 -3
  25. package/dist/packages/calendaritem/style.mjs +1 -0
  26. package/dist/packages/card/style.mjs +1 -2
  27. package/dist/packages/cascader/style.mjs +1 -5
  28. package/dist/packages/category/style.mjs +1 -0
  29. package/dist/packages/categorypane/style.mjs +1 -0
  30. package/dist/packages/cell/style.mjs +1 -0
  31. package/dist/packages/cellgroup/style.mjs +1 -0
  32. package/dist/packages/checkbox/style.mjs +1 -0
  33. package/dist/packages/checkboxgroup/style.mjs +1 -0
  34. package/dist/packages/circleprogress/style.mjs +1 -0
  35. package/dist/packages/col/style.mjs +1 -0
  36. package/dist/packages/collapse/style.mjs +1 -0
  37. package/dist/packages/collapseitem/style.mjs +1 -0
  38. package/dist/packages/comment/index.scss +6 -6
  39. package/dist/packages/comment/style.mjs +1 -1
  40. package/dist/packages/configprovider/style.mjs +1 -0
  41. package/dist/packages/countdown/style.mjs +1 -0
  42. package/dist/packages/countup/style.mjs +1 -0
  43. package/dist/packages/datepicker/style.mjs +1 -3
  44. package/dist/packages/dialog/style.mjs +1 -3
  45. package/dist/packages/divider/style.mjs +1 -0
  46. package/dist/packages/drag/style.mjs +1 -0
  47. package/dist/packages/ecard/index.scss +4 -0
  48. package/dist/packages/ecard/style.mjs +1 -1
  49. package/dist/packages/elevator/index.scss +14 -0
  50. package/dist/packages/elevator/style.mjs +1 -0
  51. package/dist/packages/ellipsis/style.mjs +1 -0
  52. package/dist/packages/empty/style.mjs +1 -0
  53. package/dist/packages/fixednav/style.mjs +1 -1
  54. package/dist/packages/form/style.mjs +1 -1
  55. package/dist/packages/formitem/style.mjs +1 -1
  56. package/dist/packages/grid/style.mjs +1 -0
  57. package/dist/packages/griditem/style.mjs +1 -0
  58. package/dist/packages/icon/style.mjs +1 -0
  59. package/dist/packages/image/style.mjs +1 -0
  60. package/dist/packages/imagepreview/style.mjs +1 -5
  61. package/dist/packages/indicator/style.mjs +1 -0
  62. package/dist/packages/infiniteloading/style.mjs +1 -0
  63. package/dist/packages/input/style.mjs +1 -0
  64. package/dist/packages/inputnumber/style.mjs +1 -0
  65. package/dist/packages/invoice/style.mjs +1 -7
  66. package/dist/packages/layout/style.mjs +1 -0
  67. package/dist/packages/list/style.mjs +1 -0
  68. package/dist/packages/menu/style.mjs +1 -0
  69. package/dist/packages/menuitem/style.mjs +1 -2
  70. package/dist/packages/navbar/style.mjs +1 -0
  71. package/dist/packages/noticebar/style.mjs +1 -0
  72. package/dist/packages/notify/style.mjs +1 -2
  73. package/dist/packages/numberkeyboard/style.mjs +1 -2
  74. package/dist/packages/overlay/style.mjs +1 -0
  75. package/dist/packages/pagination/style.mjs +1 -0
  76. package/dist/packages/picker/style.mjs +1 -2
  77. package/dist/packages/popover/style.mjs +1 -2
  78. package/dist/packages/popup/style.mjs +1 -1
  79. package/dist/packages/price/style.mjs +1 -0
  80. package/dist/packages/progress/index.scss +6 -6
  81. package/dist/packages/progress/style.mjs +1 -0
  82. package/dist/packages/pullrefresh/style.mjs +1 -0
  83. package/dist/packages/radio/style.mjs +1 -0
  84. package/dist/packages/radiogroup/style.mjs +1 -0
  85. package/dist/packages/range/style.mjs +1 -0
  86. package/dist/packages/rate/style.mjs +1 -0
  87. package/dist/packages/row/style.mjs +1 -0
  88. package/dist/packages/searchbar/style.mjs +1 -0
  89. package/dist/packages/shortpassword/style.mjs +1 -2
  90. package/dist/packages/sidenavbar/style.mjs +1 -0
  91. package/dist/packages/sidenavbaritem/style.mjs +1 -0
  92. package/dist/packages/signature/style.mjs +1 -1
  93. package/dist/packages/skeleton/style.mjs +1 -1
  94. package/dist/packages/sku/style.mjs +1 -4
  95. package/dist/packages/step/style.mjs +1 -0
  96. package/dist/packages/steps/style.mjs +1 -0
  97. package/dist/packages/sticky/style.mjs +1 -0
  98. package/dist/packages/subsidenavbar/style.mjs +1 -0
  99. package/dist/packages/swipe/style.mjs +1 -0
  100. package/dist/packages/swiper/style.mjs +1 -0
  101. package/dist/packages/swiperitem/style.mjs +1 -0
  102. package/dist/packages/switch/index.scss +7 -0
  103. package/dist/packages/switch/style.mjs +1 -0
  104. package/dist/packages/tabbar/style.mjs +1 -0
  105. package/dist/packages/tabbaritem/style.mjs +1 -1
  106. package/dist/packages/table/style.mjs +1 -0
  107. package/dist/packages/tabpane/style.mjs +1 -0
  108. package/dist/packages/tabs/style.mjs +1 -1
  109. package/dist/packages/tag/style.mjs +1 -0
  110. package/dist/packages/textarea/style.mjs +1 -0
  111. package/dist/packages/timedetail/style.mjs +1 -0
  112. package/dist/packages/timepannel/style.mjs +1 -0
  113. package/dist/packages/timeselect/style.mjs +1 -2
  114. package/dist/packages/toast/style.mjs +1 -0
  115. package/dist/packages/tour/style.mjs +1 -3
  116. package/dist/packages/trendarrow/style.mjs +1 -0
  117. package/dist/packages/uploader/index.scss +20 -14
  118. package/dist/packages/uploader/style.mjs +1 -2
  119. package/dist/packages/video/style.mjs +1 -0
  120. package/dist/packages/watermark/style.mjs +1 -0
  121. package/dist/smartips/web-types.json +9 -9
  122. package/dist/style.css +1 -1
  123. package/dist/styles/themes/default.scss +56 -56
  124. package/dist/styles/themes/jdb.scss +56 -56
  125. package/dist/styles/themes/jddkh.scss +56 -56
  126. package/dist/styles/themes/jdt.scss +56 -56
  127. package/dist/styles/variables-jdb.scss +1 -0
  128. package/dist/styles/variables-jddkh.scss +1 -0
  129. package/dist/styles/variables-jdt.scss +1 -0
  130. package/dist/styles/variables.scss +1 -0
  131. package/dist/types/__VUE/table/common.d.ts +9 -9
  132. package/dist/types/__VUE/table/index.vue.d.ts +13 -11
  133. package/dist/types/__VUE/table/renderColumn.d.ts +9 -9
  134. package/dist/types/__VUE/textarea/index.vue.d.ts +5 -0
  135. package/dist/types/index.d.ts +1 -1
  136. package/package.json +2 -2
@@ -73,10 +73,9 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
73
73
  createVNode(_component_nut_rate, {
74
74
  modelValue: _ctx.info.score,
75
75
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.info.score = $event),
76
- size: "15",
76
+ size: "12",
77
77
  spacing: "5",
78
78
  readonly: "",
79
- touchable: false,
80
79
  onChange: _ctx.handleClick
81
80
  }, null, 8, ["modelValue", "onChange"])
82
81
  ])
@@ -99,10 +98,9 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
99
98
  createVNode(_component_nut_rate, {
100
99
  modelValue: _ctx.info.score,
101
100
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.info.score = $event),
102
- size: "15",
101
+ size: "12",
103
102
  spacing: "3",
104
- readonly: "",
105
- touchable: false
103
+ readonly: ""
106
104
  }, null, 8, ["modelValue"]),
107
105
  createElementVNode("i", {
108
106
  class: normalizeClass([`nut-comment-header__${_ctx.type}-score-i`])
@@ -147,7 +147,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
147
147
  type: "number",
148
148
  min: _ctx.min,
149
149
  max: _ctx.max,
150
- style: normalizeStyle({ width: _ctx.pxCheck(_ctx.inputWidth) }),
150
+ style: normalizeStyle({ width: _ctx.pxCheck(_ctx.inputWidth), height: _ctx.pxCheck(_ctx.buttonSize) }),
151
151
  disabled: _ctx.disabled,
152
152
  readonly: _ctx.readonly,
153
153
  value: _ctx.modelValue,
@@ -97,35 +97,34 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
97
97
  createElementVNode("div", {
98
98
  class: normalizeClass(["nut-progress-inner", _ctx.status == "active" ? "nut-active" : ""]),
99
99
  style: normalizeStyle(_ctx.bgStyle)
100
+ }, null, 6),
101
+ _ctx.showText && _ctx.textInside && !_ctx.slotDefault ? (openBlock(), createElementBlock("div", {
102
+ key: 0,
103
+ class: "nut-progress-text nut-progress-insidetext",
104
+ ref: "insideText",
105
+ style: normalizeStyle({
106
+ lineHeight: _ctx.height,
107
+ left: `${_ctx.percentage}%`,
108
+ transform: `translate(-${+_ctx.percentage}%,-50%)`,
109
+ background: _ctx.textBackground || _ctx.strokeColor
110
+ })
111
+ }, [
112
+ createElementVNode("span", {
113
+ style: normalizeStyle(_ctx.textStyle)
114
+ }, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)
115
+ ], 4)) : createCommentVNode("", true),
116
+ _ctx.showText && _ctx.textInside && _ctx.slotDefault ? (openBlock(), createElementBlock("div", {
117
+ key: 1,
118
+ ref: "insideText",
119
+ style: normalizeStyle({
120
+ position: `absolute`,
121
+ top: `50%`,
122
+ left: `${_ctx.percentage}%`,
123
+ transform: `translate(-${+_ctx.percentage}%,-50%)`
124
+ })
100
125
  }, [
101
- _ctx.showText && _ctx.textInside && !_ctx.slotDefault ? (openBlock(), createElementBlock("div", {
102
- key: 0,
103
- class: "nut-progress-text nut-progress-insidetext",
104
- ref: "insideText",
105
- style: normalizeStyle({
106
- lineHeight: _ctx.height,
107
- left: `${_ctx.percentage}%`,
108
- transform: `translate(-${+_ctx.percentage}%,-50%)`,
109
- background: _ctx.textBackground || _ctx.strokeColor
110
- })
111
- }, [
112
- createElementVNode("span", {
113
- style: normalizeStyle(_ctx.textStyle)
114
- }, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)
115
- ], 4)) : createCommentVNode("", true),
116
- _ctx.showText && _ctx.textInside && _ctx.slotDefault ? (openBlock(), createElementBlock("div", {
117
- key: 1,
118
- ref: "insideText",
119
- style: normalizeStyle({
120
- position: `absolute`,
121
- top: `50%`,
122
- left: `${_ctx.percentage}%`,
123
- transform: `translate(-${+_ctx.percentage}%,-50%)`
124
- })
125
- }, [
126
- renderSlot(_ctx.$slots, "default")
127
- ], 4)) : createCommentVNode("", true)
128
- ], 6)
126
+ renderSlot(_ctx.$slots, "default")
127
+ ], 4)) : createCommentVNode("", true)
129
128
  ], 6),
130
129
  _ctx.showText && !_ctx.textInside ? (openBlock(), createElementBlock("div", _hoisted_2, [
131
130
  _ctx.status == "active" || _ctx.status == "" ? (openBlock(), createElementBlock("span", {
@@ -266,7 +266,10 @@ const _hoisted_1$1 = {
266
266
  key: 0,
267
267
  class: "nut-sku-operate"
268
268
  };
269
- const _hoisted_2$1 = ["innerHTML"];
269
+ const _hoisted_2$1 = {
270
+ key: 0,
271
+ class: "nut-sku-operate-desc"
272
+ };
270
273
  const _hoisted_3 = {
271
274
  key: 1,
272
275
  class: "nut-sku-operate-btn"
@@ -274,11 +277,7 @@ const _hoisted_3 = {
274
277
  const _hoisted_4 = ["onClick"];
275
278
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
276
279
  return _ctx.btnOptions.length > 0 ? (openBlock(), createElementBlock("view", _hoisted_1$1, [
277
- _ctx.btnExtraText ? (openBlock(), createElementBlock("view", {
278
- key: 0,
279
- class: "nut-sku-operate-desc",
280
- innerHTML: _ctx.btnExtraText
281
- }, null, 8, _hoisted_2$1)) : createCommentVNode("", true),
280
+ _ctx.btnExtraText ? (openBlock(), createElementBlock("view", _hoisted_2$1, toDisplayString(_ctx.btnExtraText), 1)) : createCommentVNode("", true),
282
281
  renderSlot(_ctx.$slots, "operate-btn"),
283
282
  !_ctx.getSlots("operate-btn") ? (openBlock(), createElementBlock("view", _hoisted_3, [
284
283
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.btnOptions, (btn, i) => {
@@ -97,7 +97,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
97
97
  }, [
98
98
  createElementVNode("view", _hoisted_1, [
99
99
  _ctx.loading ? renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
100
- createVNode(_component_Loading1, { name: "loading" })
100
+ createVNode(_component_Loading1, {
101
+ name: "loading",
102
+ color: _ctx.activeColor
103
+ }, null, 8, ["color"])
101
104
  ]) : createCommentVNode("", true),
102
105
  _ctx.activeText ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
103
106
  withDirectives(createElementVNode("view", { class: "nut-switch-label open" }, toDisplayString(_ctx.activeText), 513), [
@@ -1,9 +1,9 @@
1
+ import { defineComponent, h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
1
2
  import { c as createComponent } from "./component-81a4c1d0.js";
2
- import { h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
3
3
  import { DownArrow } from "@nutui/icons-vue";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
6
- const RenderColumn = {
6
+ const RenderColumn = defineComponent({
7
7
  setup(props) {
8
8
  return () => h(`view`, {}, props.slots[0] ? props.slots[0](props.record) : props.slots[1](props.record));
9
9
  },
@@ -11,103 +11,100 @@ const RenderColumn = {
11
11
  slots: Array,
12
12
  record: Object
13
13
  }
14
- };
15
- const component = (componentName2, translate2) => {
16
- return {
17
- components: {
18
- RenderColumn,
19
- DownArrow
14
+ });
15
+ const { componentName, create, translate } = createComponent("table");
16
+ const _sfc_main = create({
17
+ components: {
18
+ RenderColumn,
19
+ DownArrow
20
+ },
21
+ props: {
22
+ bordered: {
23
+ type: Boolean,
24
+ default: true
20
25
  },
21
- props: {
22
- bordered: {
23
- type: Boolean,
24
- default: true
25
- },
26
- columns: {
27
- type: Array,
28
- default: () => {
29
- return [];
30
- }
31
- },
32
- data: {
33
- type: Object,
34
- default: () => {
35
- return {};
36
- }
37
- },
38
- summary: {
39
- type: Function,
40
- default: null
41
- },
42
- striped: {
43
- type: Boolean,
44
- default: false
26
+ columns: {
27
+ type: Array,
28
+ default: () => {
29
+ return [];
45
30
  }
46
31
  },
47
- emits: ["sorter"],
48
- setup(props, { emit, slots }) {
49
- const state = reactive({
50
- curData: props.data
51
- });
52
- const classes = computed(() => {
53
- const prefixCls = componentName2;
54
- return {
55
- [prefixCls]: true
56
- };
57
- });
58
- const cellClasses = (item) => {
59
- return {
60
- "nut-table__main__head__tr--border": props.bordered,
61
- [`nut-table__main__head__tr--align${item.align ? item.align : ""}`]: true
62
- };
63
- };
64
- const stylehead = (item) => {
65
- return item.stylehead ? item.stylehead : "";
66
- };
67
- const stylecolumn = (item) => {
68
- return item.stylecolumn ? item.stylecolumn : "";
69
- };
70
- const getColumnItem = (value) => {
71
- return props.columns.filter((item) => item.key === value)[0];
72
- };
73
- const getColumnItemStyle = (value) => {
74
- const style = props.columns.filter((item) => item.key === value);
75
- return style[0].stylecolumn ? style[0].stylecolumn : "";
76
- };
77
- const handleSorterClick = (item) => {
78
- if (item.sorter) {
79
- emit("sorter", item);
80
- state.curData = typeof item.sorter === "function" ? state.curData.sort(item.sorter) : item.sorter === "default" ? state.curData.sort() : state.curData;
81
- }
82
- };
83
- const sortDataItem = () => {
84
- return props.columns.map((columns) => {
85
- return [columns.key, columns.render];
86
- });
32
+ data: {
33
+ type: Object,
34
+ default: () => {
35
+ return {};
36
+ }
37
+ },
38
+ summary: {
39
+ type: Function,
40
+ default: null
41
+ },
42
+ striped: {
43
+ type: Boolean,
44
+ default: false
45
+ }
46
+ },
47
+ emits: ["sorter"],
48
+ setup(props, { emit, slots }) {
49
+ const state = reactive({
50
+ curData: props.data
51
+ });
52
+ const classes = computed(() => {
53
+ const prefixCls = componentName;
54
+ return {
55
+ [prefixCls]: true
87
56
  };
88
- watch(
89
- () => props.data,
90
- (val) => {
91
- state.curData = val.slice();
92
- }
93
- );
57
+ });
58
+ const cellClasses = (item) => {
94
59
  return {
95
- ...toRefs(state),
96
- classes,
97
- cellClasses,
98
- getColumnItem,
99
- getColumnItemStyle,
100
- handleSorterClick,
101
- sortDataItem,
102
- translate: translate2,
103
- stylehead,
104
- stylecolumn
60
+ "nut-table__main__head__tr--border": props.bordered,
61
+ [`nut-table__main__head__tr--align${item.align ? item.align : ""}`]: true
105
62
  };
106
- }
107
- };
108
- };
109
- const { componentName, create, translate } = createComponent("table");
110
- const _sfc_main = create(component(componentName, translate));
63
+ };
64
+ const stylehead = (item) => {
65
+ return item.stylehead ? item.stylehead : "";
66
+ };
67
+ const stylecolumn = (item) => {
68
+ return item.stylecolumn ? item.stylecolumn : "";
69
+ };
70
+ const getColumnItem = (value) => {
71
+ return props.columns.filter((item) => item.key === value)[0];
72
+ };
73
+ const getColumnItemStyle = (value) => {
74
+ const style = props.columns.filter((item) => item.key === value);
75
+ return style[0].stylecolumn ? style[0].stylecolumn : "";
76
+ };
77
+ const handleSorterClick = (item) => {
78
+ if (item.sorter) {
79
+ emit("sorter", item);
80
+ state.curData = typeof item.sorter === "function" ? state.curData.sort(item.sorter) : item.sorter === "default" ? state.curData.sort() : state.curData;
81
+ }
82
+ };
83
+ const sortDataItem = () => {
84
+ return props.columns.map((columns) => {
85
+ return [columns.key, columns.render];
86
+ });
87
+ };
88
+ watch(
89
+ () => props.data,
90
+ (val) => {
91
+ state.curData = val.slice();
92
+ }
93
+ );
94
+ return {
95
+ ...toRefs(state),
96
+ classes,
97
+ cellClasses,
98
+ getColumnItem,
99
+ getColumnItemStyle,
100
+ handleSorterClick,
101
+ sortDataItem,
102
+ translate,
103
+ stylehead,
104
+ stylecolumn
105
+ };
106
+ }
107
+ });
111
108
  const _hoisted_1 = { class: "nut-table__main__head" };
112
109
  const _hoisted_2 = { class: "nut-table__main__head__tr" };
113
110
  const _hoisted_3 = ["onClick"];
@@ -103,8 +103,14 @@ const _sfc_main = create({
103
103
  emit("change", value, event);
104
104
  };
105
105
  const change = (event) => {
106
- const input = event.target;
107
- emitChange(input.value, event);
106
+ if (!event.target.composing) {
107
+ const input = event.target;
108
+ let value = input.value;
109
+ if (props.maxLength && value.length > Number(props.maxLength)) {
110
+ value = value.slice(0, Number(props.maxLength));
111
+ }
112
+ emitChange(input.value, event);
113
+ }
108
114
  };
109
115
  const focus = (event) => {
110
116
  if (props.disabled)
@@ -123,6 +129,15 @@ const _sfc_main = create({
123
129
  emitChange(value, event);
124
130
  emit("blur", { value, event });
125
131
  };
132
+ const startComposing = ({ target }) => {
133
+ target.composing = true;
134
+ };
135
+ const endComposing = ({ target }) => {
136
+ if (target.composing) {
137
+ target.composing = false;
138
+ target.dispatchEvent(new Event("input"));
139
+ }
140
+ };
126
141
  return {
127
142
  textareaRef,
128
143
  classes,
@@ -130,7 +145,9 @@ const _sfc_main = create({
130
145
  change,
131
146
  focus,
132
147
  blur,
133
- translate
148
+ translate,
149
+ startComposing,
150
+ endComposing
134
151
  };
135
152
  }
136
153
  });
@@ -156,7 +173,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
156
173
  onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
157
174
  maxlength: _ctx.maxLength,
158
175
  placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
159
- autofocus: _ctx.autofocus
176
+ autofocus: _ctx.autofocus,
177
+ onChange: _cache[3] || (_cache[3] = (...args) => _ctx.endComposing && _ctx.endComposing(...args)),
178
+ onCompositionend: _cache[4] || (_cache[4] = (...args) => _ctx.endComposing && _ctx.endComposing(...args)),
179
+ onCompositionstart: _cache[5] || (_cache[5] = (...args) => _ctx.startComposing && _ctx.startComposing(...args))
160
180
  }, null, 44, _hoisted_1),
161
181
  _ctx.limitShow ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0) + "/" + toDisplayString(_ctx.maxLength), 1)) : createCommentVNode("", true)
162
182
  ], 2);
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { reactive, computed, h, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, createCommentVNode, Fragment, renderList, createElementVNode, toDisplayString, createVNode, createTextVNode } from "vue";
7
+ import { reactive, computed, h, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, createCommentVNode, Fragment, renderList, createElementVNode, toDisplayString, createVNode } from "vue";
8
8
  import { c as createComponent } from "./component-81a4c1d0.js";
9
9
  import { f as funInterceptor } from "./interceptor-956b24fc.js";
10
10
  import Progress from "./Progress.js";
@@ -364,12 +364,14 @@ const _hoisted_7 = {
364
364
  class: "nut-uploader__preview-img__file"
365
365
  };
366
366
  const _hoisted_8 = ["onClick"];
367
- const _hoisted_9 = { class: "tips" };
368
- const _hoisted_10 = {
367
+ const _hoisted_9 = { class: "file__name_tips" };
368
+ const _hoisted_10 = { class: "tips" };
369
+ const _hoisted_11 = {
369
370
  key: 1,
370
371
  class: "nut-uploader__preview-list"
371
372
  };
372
- const _hoisted_11 = ["onClick"];
373
+ const _hoisted_12 = ["onClick"];
374
+ const _hoisted_13 = { class: "file__name_tips" };
373
375
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
374
376
  const _component_Failure = resolveComponent("Failure");
375
377
  const _component_Loading = resolveComponent("Loading");
@@ -426,24 +428,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
426
428
  onClick: ($event) => _ctx.fileItemClick(item),
427
429
  class: "nut-uploader__preview-img__file__name"
428
430
  }, [
429
- createVNode(_component_Link, { color: "#808080" }),
430
- createTextVNode(" " + toDisplayString(item.name), 1)
431
+ createElementVNode("view", _hoisted_9, toDisplayString(item.name), 1)
431
432
  ], 8, _hoisted_8)
432
433
  ])),
433
- createElementVNode("view", _hoisted_9, toDisplayString(item.name), 1)
434
- ])) : _ctx.listType == "list" ? (openBlock(), createElementBlock("view", _hoisted_10, [
434
+ createElementVNode("view", _hoisted_10, toDisplayString(item.name), 1)
435
+ ])) : _ctx.listType == "list" ? (openBlock(), createElementBlock("view", _hoisted_11, [
435
436
  createElementVNode("view", {
436
437
  onClick: ($event) => _ctx.fileItemClick(item),
437
438
  class: normalizeClass(["nut-uploader__preview-img__file__name", [item.status]])
438
439
  }, [
439
- createVNode(_component_Link),
440
- createTextVNode(" " + toDisplayString(item.name), 1)
441
- ], 10, _hoisted_11),
442
- createVNode(_component_Del, {
443
- color: "#808080",
444
- class: "nut-uploader__preview-img__file__del",
445
- onClick: ($event) => _ctx.onDelete(item, index2)
446
- }, null, 8, ["onClick"]),
440
+ createVNode(_component_Link, { class: "nut-uploader__preview-img__file__link" }),
441
+ createElementVNode("view", _hoisted_13, toDisplayString(item.name), 1),
442
+ createVNode(_component_Del, {
443
+ color: "#808080",
444
+ class: "nut-uploader__preview-img__file__del",
445
+ onClick: ($event) => _ctx.onDelete(item, index2)
446
+ }, null, 8, ["onClick"])
447
+ ], 10, _hoisted_12),
447
448
  item.status == "uploading" ? (openBlock(), createBlock(_component_nut_progress, {
448
449
  key: 0,
449
450
  size: "small",
@@ -1,5 +1,4 @@
1
- import '../overlay/index.scss';
2
1
  import '../../styles/reset.css';
2
+ import '../overlay/index.scss';
3
3
  import '../popup/index.scss';
4
- import '../../styles/reset.css';
5
4
  import './index.scss';
@@ -1,7 +1,5 @@
1
- import '../elevator/index.scss';
2
1
  import '../../styles/reset.css';
2
+ import '../elevator/index.scss';
3
3
  import '../overlay/index.scss';
4
- import '../../styles/reset.css';
5
4
  import '../popup/index.scss';
6
- import '../../styles/reset.css';
7
5
  import './index.scss';
@@ -1,5 +1,4 @@
1
- import '../swipe/index.scss';
2
1
  import '../../styles/reset.css';
2
+ import '../swipe/index.scss';
3
3
  import '../button/index.scss';
4
- import '../../styles/reset.css';
5
4
  import './index.scss';
@@ -1 +1,2 @@
1
+ import '../../styles/reset.css';
1
2
  import './index.scss';
@@ -1,3 +1,3 @@
1
- import '../range/index.scss';
2
1
  import '../../styles/reset.css';
2
+ import '../range/index.scss';
3
3
  import './index.scss';
@@ -1,3 +1,3 @@
1
- import '../button/index.scss';
2
1
  import '../../styles/reset.css';
2
+ import '../button/index.scss';
3
3
  import './index.scss';
@@ -1 +1,2 @@
1
+ import '../../styles/reset.css';
1
2
  import './index.scss';
@@ -1 +1,2 @@
1
+ import '../../styles/reset.css';
1
2
  import './index.scss';
@@ -1 +1,2 @@
1
+ import '../../styles/reset.css';
1
2
  import './index.scss';
@@ -10,16 +10,20 @@
10
10
  position: relative;
11
11
  display: inline-block;
12
12
  .nut-badge__icon {
13
+ display: flex;
14
+ align-items: center;
13
15
  line-height: normal;
14
16
  transform: $badge-content-transform;
15
17
  position: absolute;
16
18
  background: $badge-background-color;
17
- padding: $badge-padding;
19
+ padding: $badge-icon-padding;
18
20
  text-align: center;
19
21
  border-radius: $badge-border-radius;
20
22
  z-index: $badge-z-index;
21
23
  }
22
24
  .nut-badge__content {
25
+ display: flex;
26
+ align-items: center;
23
27
  transform: $badge-content-transform;
24
28
  &--sup {
25
29
  position: absolute;
@@ -1 +1,2 @@
1
+ import '../../styles/reset.css';
1
2
  import './index.scss';
@@ -1 +1,2 @@
1
+ import '../../styles/reset.css';
1
2
  import './index.scss';
@@ -1 +1,2 @@
1
+ import '../../styles/reset.css';
1
2
  import './index.scss';
@@ -1,7 +1,5 @@
1
- import '../calendaritem/index.scss';
2
1
  import '../../styles/reset.css';
2
+ import '../calendaritem/index.scss';
3
3
  import '../overlay/index.scss';
4
- import '../../styles/reset.css';
5
4
  import '../popup/index.scss';
6
- import '../../styles/reset.css';
7
5
  import './index.scss';
@@ -1 +1,2 @@
1
+ import '../../styles/reset.css';
1
2
  import './index.scss';
@@ -1,5 +1,4 @@
1
- import '../tag/index.scss';
2
1
  import '../../styles/reset.css';
2
+ import '../tag/index.scss';
3
3
  import '../price/index.scss';
4
- import '../../styles/reset.css';
5
4
  import './index.scss';
@@ -1,11 +1,7 @@
1
- import '../tabpane/index.scss';
2
1
  import '../../styles/reset.css';
2
+ import '../tabpane/index.scss';
3
3
  import '../sticky/index.scss';
4
- import '../../styles/reset.css';
5
4
  import '../tabs/index.scss';
6
- import '../../styles/reset.css';
7
5
  import '../overlay/index.scss';
8
- import '../../styles/reset.css';
9
6
  import '../popup/index.scss';
10
- import '../../styles/reset.css';
11
7
  import './index.scss';
@@ -1 +1,2 @@
1
+ import '../../styles/reset.css';
1
2
  import './index.scss';
@@ -1 +1,2 @@
1
+ import '../../styles/reset.css';
1
2
  import './index.scss';
@@ -1 +1,2 @@
1
+ import '../../styles/reset.css';
1
2
  import './index.scss';
@@ -1 +1,2 @@
1
+ import '../../styles/reset.css';
1
2
  import './index.scss';
@@ -1 +1,2 @@
1
+ import '../../styles/reset.css';
1
2
  import './index.scss';
@@ -1 +1,2 @@
1
+ import '../../styles/reset.css';
1
2
  import './index.scss';
@@ -1 +1,2 @@
1
+ import '../../styles/reset.css';
1
2
  import './index.scss';
@@ -1 +1,2 @@
1
+ import '../../styles/reset.css';
1
2
  import './index.scss';
@@ -1 +1,2 @@
1
+ import '../../styles/reset.css';
1
2
  import './index.scss';
@@ -1 +1,2 @@
1
+ import '../../styles/reset.css';
1
2
  import './index.scss';