@nutui/nutui-react 2.6.15 → 2.6.17

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 (53) hide show
  1. package/CHANGELOG.md +45 -14
  2. package/README.md +2 -2
  3. package/dist/esm/Cell/style/style.css +1 -1
  4. package/dist/esm/Cell.js +3 -3
  5. package/dist/esm/Form/style/style.css +1 -1
  6. package/dist/esm/ImagePreview.js +22 -13
  7. package/dist/esm/InputNumber.js +26 -9
  8. package/dist/esm/Menu.js +9 -2
  9. package/dist/esm/NumberKeyboard.js +38 -27
  10. package/dist/esm/Uploader.js +5 -3
  11. package/dist/esm/formitem2.js +5 -5
  12. package/dist/esm/menuitem2.js +1 -1
  13. package/dist/locales/base.js +1 -1
  14. package/dist/locales/en-US.js +1 -1
  15. package/dist/locales/id-ID.js +1 -1
  16. package/dist/locales/tr-TR.js +1 -1
  17. package/dist/locales/zh-CN.js +1 -1
  18. package/dist/locales/zh-TW.js +1 -1
  19. package/dist/locales/zh-UG.js +1 -1
  20. package/dist/nutui.react.es.js +212 -150
  21. package/dist/nutui.react.umd.js +212 -150
  22. package/dist/packages/cell/cell.scss +20 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/packages/avatargroup/context.d.ts +0 -1
  25. package/dist/types/packages/cascader/cascader.d.ts +1 -1
  26. package/dist/types/packages/cascader/cascader.taro.d.ts +1 -1
  27. package/dist/types/packages/cell/cell.d.ts +7 -2
  28. package/dist/types/packages/cell/cell.taro.d.ts +2 -1
  29. package/dist/types/packages/cellgroup/context.d.ts +0 -1
  30. package/dist/types/packages/checkboxgroup/context.d.ts +0 -1
  31. package/dist/types/packages/collapse/context.d.ts +0 -1
  32. package/dist/types/packages/form/context.d.ts +0 -1
  33. package/dist/types/packages/formitem/formitem.d.ts +5 -0
  34. package/dist/types/packages/formitem/formitem.taro.d.ts +1 -0
  35. package/dist/types/packages/imagepreview/imagepreview.d.ts +15 -0
  36. package/dist/types/packages/imagepreview/imagepreview.taro.d.ts +17 -13
  37. package/dist/types/packages/inputnumber/inputnumber.d.ts +1 -1
  38. package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +1 -1
  39. package/dist/types/packages/menuitem/menuitem.d.ts +5 -0
  40. package/dist/types/packages/menuitem/menuitem.taro.d.ts +1 -0
  41. package/dist/types/packages/popover/types.d.ts +0 -1
  42. package/dist/types/packages/radiogroup/context.d.ts +1 -1
  43. package/dist/types/packages/row/UserContext.d.ts +0 -1
  44. package/dist/types/packages/sidenavbar/context.d.ts +0 -1
  45. package/dist/types/packages/steps/context.d.ts +0 -1
  46. package/dist/types/packages/swiper/context.d.ts +0 -1
  47. package/dist/types/packages/swiper/swiper.taro.d.ts +2 -1
  48. package/dist/types/packages/uploader/uploader.d.ts +1 -1
  49. package/dist/types/packages/uploader/uploader.taro.d.ts +1 -1
  50. package/dist/types/packages/virtuallist/utils.d.ts +2 -2
  51. package/dist/types/utils/index.d.ts +0 -1
  52. package/dist/types/utils/use-lock-scoll-taro.d.ts +0 -1
  53. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,20 +1,51 @@
1
- # v2.6.15
2
- `2024-07-26`
1
+ # v2.6.17
2
+ `2024-08-30`
3
+
4
+
5
+ * 🏡 chore(form): form demo (#2528)
6
+ * 📖 docs(readme): fix pnpm run dev weapp jd dir (#2514)
7
+ * :sparkles: feat(cell): add clickable prop to support click style feedback (#2527)
8
+ * :sparkles: feat(image-preview): 增加索引字段,用于预览内容排序 (#2519)
9
+ * :bug: fix(tabs.taro.tsx): 解决在不需要滚动的时候,切换tab产生tab位置错乱的问题 (#2554)
10
+ * :bug: fix(uploader): beforeUpload should trigger every time before uploading (#2553)
11
+ * :bug: fix(PullToRefresh): 修复PullToRefresh组件disabled属性在taro中无效的问题 (#2538)
12
+ * :bug: fix(uploader): ios 下无法回显的问题修复 (#2550)
13
+ * :bug: fix(uploader): sizeType prop didnot work when weapp || jd (#2526)
14
+
15
+
16
+ # v2.6.16
17
+
18
+ `2024-08-03`
19
+
20
+ - 📖 docs(card): correct doc (#2504) @Alex-huxiyang
21
+ - :sparkles: feat(menu): menu-item 组件增加标题icon自定义方式 (#2488) @zhangming
22
+ - :sparkles: feat(form): Form.Item 增加 align 属性 (#2492) @zhangming
23
+ - :bug: fix(inputNumber): correct onChange, onOverlimit event triggering timing when async & sync (#2509) @Alex-huxiyang
24
+ - :bug: fix(uploader): xhrBeforeUpload判断错误 (#2507) @Alex-huxiyang
25
+ - :bug: fix(swiper): correct onChange ts type (#2493) @Alex-huxiyang
26
+ - 🪵 refactor(numberkeyboard): optimize code & correct defaultProps (#2508) @Alex-huxiyang
27
+ - 🏡 chore(cell): unify ts type & docs (#2496) @Alex-huxiyang
28
+ - 🏡 chore(deps): update vitest monorepo to v2 (major) (#2439) @renovate[bot]
29
+ - 🏡 chore(deps): update dependency glob to v11 (#2438) @renovate[bot]
30
+ - 🏡 chore(deps): update dependency inquirer to v10 (#2420) @renovate[bot]
31
+ - 🏡 chore(deps): update dependency marked to v13 (#2358) @renovate[bot]
3
32
 
33
+ # v2.6.15
4
34
 
5
- * 🏡 chore: run md-table-format when git commit changes (#2484) @Alex-huxiyang
6
- * :sparkles: feat(menu): allow custom classnames for Menu and dynamic titles (#2480) @Alex-huxiyang
7
- * :sparkles: feat(watermark): support multi-line text (#2477) @xiaoyatong
8
- * :bug: fix: move defaultprops (#2482) @xiaoyatong
9
- * :bug: fix: snapshot update (#2481) @Alex-huxiyang
10
- * :bug: fix(uploader): image 居中展示 (#2475) @xiaoyatong
11
- * :bug: fix(infiniteLoading): rest 导致事件无法触发 (#2474) @oasis-cloud
12
- * :bug: fix: sticky 构建时类型错误 @oasis-cloud
13
- * :bug: fix(uploader): images should display when they've been successfully uploaded (#2448) @Alex-huxiyang
14
- * :bug: fix: 修复日历进行快捷选择日期时 点击确认获取的是上一次的日期 (#2436) @yangqianlu
15
- * 🪵 refactor: table (#2473) @zanyuki-jd
16
- * 🪵 refactor: sticky (#2468) @oasis-cloud
35
+ `2024-07-26`
17
36
 
37
+ - 🏡 chore: run md-table-format when git commit changes (#2484) @Alex-huxiyang
38
+ - :sparkles: feat(menu): allow custom classnames for Menu and dynamic titles (#2480) @Alex-huxiyang
39
+ - :sparkles: feat(watermark): support multi-line text (#2477) @xiaoyatong
40
+ - :bug: fix: move defaultprops (#2482) @xiaoyatong
41
+ - :bug: fix: snapshot update (#2481) @Alex-huxiyang
42
+ - :bug: fix(uploader): image 居中展示 (#2475) @xiaoyatong
43
+ - :bug: fix(infiniteLoading): rest 导致事件无法触发 (#2474) @oasis-cloud
44
+ - :bug: fix: sticky 构建时类型错误 @oasis-cloud
45
+ - :bug: fix(uploader): images should display when they've been successfully uploaded (#2448) @Alex-huxiyang
46
+ - :bug: fix: 修复日历进行快捷选择日期时 点击确认获取的是上一次的日期 (#2436) @yangqianlu
47
+ - 🪵 refactor: table (#2473) @zanyuki-jd
48
+ - 🪵 refactor: sticky (#2468) @oasis-cloud
18
49
 
19
50
  # v2.6.14
20
51
 
package/README.md CHANGED
@@ -84,11 +84,11 @@ cd nutui-react
84
84
  pnpm install
85
85
 
86
86
  # Start development
87
- # dir:src/sites/mobile-taro/dist/weapp
87
+ # dir:packages/nutui-taro-demo/dist/weapp
88
88
  pnpm run dev:taro:weapp
89
89
 
90
90
  # OR run as jd mini-program
91
- # dir:src/sites/mobile-taro/dist/jd
91
+ # dir:packages/nutui-taro-demo/dist/jd
92
92
  pnpm run dev:taro:jd
93
93
  ```
94
94
 
@@ -1 +1 @@
1
- .nut-cell-group{display:block}.nut-cell-group-title{display:inherit;padding:var(--nutui-cell-group-title-padding, 0 10px);color:var(--nutui-cell-group-title-color, var(--nutui-gray-7, #1a1a1a));font-size:var(--nutui-cell-group-title-font-size, var(--nutui-font-size-3, 14px));line-height:var(--nutui-cell-group-title-line-height, 20px);margin-top:30px;margin-bottom:10px}.nut-cell-group-description{display:inherit;padding:var(--nutui-cell-group-description-padding, 0 10px);color:var(--nutui-cell-group-description-color, var(--nutui-gray-6, #595959));font-size:var(--nutui-cell-group-description-font-size, var(--nutui-font-size-2, 12px));line-height:var(--nutui-cell-group-description-line-height, 16px);margin-top:10px;margin-bottom:10px}.nut-cell-group-wrap{display:inherit;border-radius:var(--nutui-cell-border-radius, 6px);overflow:hidden;background-color:var(--nutui-cell-group-background-color, var(--nutui-gray-1, #ffffff));margin:var(--nutui-cell-group-wrap-margin, 10px 0)}.nut-cell-group-wrap .nut-cell{margin:0;box-shadow:none;border-radius:0}.nut-cell-group-wrap-divider .nut-cell-divider{position:absolute;box-sizing:border-box;pointer-events:none;right:var(--nutui-cell-divider-right, 16px);bottom:0;left:var(--nutui-cell-divider-left, 16px);transform:scaleY(.5);border-top:var(--nutui-cell-divider-border-bottom, 2px solid var(--nutui-black-3, rgba(0, 0, 0, .06)))}.nut-cell-group-wrap-divider .nut-cell:last-child .nut-cell-divider{border-top:0!important}[dir=rtl] .nut-cell-group-wrap-divider .nut-cell-divider,.nut-rtl .nut-cell-group-wrap-divider .nut-cell-divider{left:var(--nutui-cell-divider-right, 16px);right:var(--nutui-cell-divider-left, 16px)}.nut-cell{position:relative;display:flex;width:100%;line-height:var(--nutui-cell-line-height, 20px);padding:var(--nutui-cell-padding, 13px 16px);background-color:var(--nutui-cell-background-color, var(--nutui-gray-1, #ffffff));border-radius:var(--nutui-cell-border-radius, 6px);box-shadow:var(--nutui-cell-box-shadow, 0px 1px 7px 0px rgb(237, 238, 241));font-size:var(--nutui-cell-title-font-size, var(--nutui-font-size-3, 14px));color:var(--nutui-cell-title-color, var(--nutui-gray-7, #1a1a1a));margin:10px 0;box-sizing:border-box}.nut-cell-left{display:flex;flex-direction:column;flex:1}.nut-cell-description{font-size:var(--nutui-cell-description-font-size, var(--nutui-font-size-2, 12px));color:var(--nutui-cell-description-color, var(--nutui-gray-6, #595959))}.nut-cell-extra{display:inline-flex;justify-content:flex-end;align-items:center;flex:1;min-width:0;word-break:break-all;font-size:var(--nutui-cell-extra-font-size, var(--nutui-font-size-3, 14px));color:var(--nutui-cell-extra-color, var(--nutui-gray-6, #595959))}
1
+ .nut-cell-group{display:block}.nut-cell-group-title{display:inherit;padding:var(--nutui-cell-group-title-padding, 0 10px);color:var(--nutui-cell-group-title-color, var(--nutui-gray-7, #1a1a1a));font-size:var(--nutui-cell-group-title-font-size, var(--nutui-font-size-3, 14px));line-height:var(--nutui-cell-group-title-line-height, 20px);margin-top:30px;margin-bottom:10px}.nut-cell-group-description{display:inherit;padding:var(--nutui-cell-group-description-padding, 0 10px);color:var(--nutui-cell-group-description-color, var(--nutui-gray-6, #595959));font-size:var(--nutui-cell-group-description-font-size, var(--nutui-font-size-2, 12px));line-height:var(--nutui-cell-group-description-line-height, 16px);margin-top:10px;margin-bottom:10px}.nut-cell-group-wrap{display:inherit;border-radius:var(--nutui-cell-border-radius, 6px);overflow:hidden;background-color:var(--nutui-cell-group-background-color, var(--nutui-gray-1, #ffffff));margin:var(--nutui-cell-group-wrap-margin, 10px 0)}.nut-cell-group-wrap .nut-cell{margin:0;box-shadow:none;border-radius:0}.nut-cell-group-wrap-divider .nut-cell-divider{position:absolute;box-sizing:border-box;pointer-events:none;right:var(--nutui-cell-divider-right, 16px);bottom:0;left:var(--nutui-cell-divider-left, 16px);transform:scaleY(.5);border-top:var(--nutui-cell-divider-border-bottom, 2px solid var(--nutui-black-3, rgba(0, 0, 0, .06)))}.nut-cell-group-wrap-divider .nut-cell:last-child .nut-cell-divider{border-top:0!important}[dir=rtl] .nut-cell-group-wrap-divider .nut-cell-divider,.nut-rtl .nut-cell-group-wrap-divider .nut-cell-divider{left:var(--nutui-cell-divider-right, 16px);right:var(--nutui-cell-divider-left, 16px)}.nut-cell{position:relative;display:flex;width:100%;line-height:var(--nutui-cell-line-height, 20px);padding:var(--nutui-cell-padding, 13px 16px);background-color:var(--nutui-cell-background-color, var(--nutui-gray-1, #ffffff));border-radius:var(--nutui-cell-border-radius, 6px);box-shadow:var(--nutui-cell-box-shadow, 0px 1px 7px 0px rgb(237, 238, 241));font-size:var(--nutui-cell-title-font-size, var(--nutui-font-size-3, 14px));color:var(--nutui-cell-title-color, var(--nutui-gray-7, #1a1a1a));margin:10px 0;box-sizing:border-box}.nut-cell-left{display:flex;flex-direction:column;flex:1}.nut-cell-description{font-size:var(--nutui-cell-description-font-size, var(--nutui-font-size-2, 12px));color:var(--nutui-cell-description-color, var(--nutui-gray-6, #595959))}.nut-cell-extra{display:inline-flex;justify-content:flex-end;align-items:center;flex:1;min-width:0;word-break:break-all;font-size:var(--nutui-cell-extra-font-size, var(--nutui-font-size-3, 14px));color:var(--nutui-cell-extra-color, var(--nutui-gray-6, #595959))}.nut-cell:active:before{opacity:.1}.nut-cell-clickable{cursor:pointer}.nut-cell-clickable:before{position:absolute;top:50%;left:50%;width:100%;height:100%;background-color:var(--nutui-gray-7, #1a1a1a);border:inherit;border-color:var(--nutui-gray-7, #1a1a1a);border-radius:inherit;transform:translate(-50%,-50%);opacity:0;content:" "}
package/dist/esm/Cell.js CHANGED
@@ -4,12 +4,12 @@ import classNames from "classnames";
4
4
  import { C as ComponentDefaults } from "./typings.js";
5
5
  import CellGroup__default from "./CellGroup.js";
6
6
  import { C as CellGroupContext } from "./context.js";
7
- const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { title: null, description: null, extra: null, radius: "6px", align: "flex-start", onClick: (event) => {
7
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { title: null, description: null, extra: null, radius: "6px", align: "flex-start", clickable: false, onClick: (event) => {
8
8
  } });
9
9
  const classPrefix = "nut-cell";
10
10
  const Cell = (props) => {
11
11
  const ctx = useContext(CellGroupContext);
12
- const _a = Object.assign(Object.assign({}, defaultProps), props), { children, onClick, title, description, extra, radius, align, className, style } = _a, rest = __rest(_a, ["children", "onClick", "title", "description", "extra", "radius", "align", "className", "style"]);
12
+ const _a = Object.assign(Object.assign({}, defaultProps), props), { children, clickable, onClick, title, description, extra, radius, align, className, style } = _a, rest = __rest(_a, ["children", "clickable", "onClick", "title", "description", "extra", "radius", "align", "className", "style"]);
13
13
  const handleClick = (event) => {
14
14
  onClick(event);
15
15
  };
@@ -19,7 +19,7 @@ const Cell = (props) => {
19
19
  };
20
20
  return React__default.createElement(
21
21
  "div",
22
- Object.assign({ className: classNames(classPrefix, className), onClick: (event) => handleClick(event), style: baseStyle }, rest),
22
+ Object.assign({ className: `${classNames(classPrefix, className, clickable ? `${classPrefix}-clickable` : "")}`, onClick: (event) => handleClick(event), style: baseStyle }, rest),
23
23
  children || React__default.createElement(
24
24
  React__default.Fragment,
25
25
  null,
@@ -1 +1 @@
1
- .nut-cell-group{display:block}.nut-cell-group-title{display:inherit;padding:var(--nutui-cell-group-title-padding, 0 10px);color:var(--nutui-cell-group-title-color, var(--nutui-gray-7, #1a1a1a));font-size:var(--nutui-cell-group-title-font-size, var(--nutui-font-size-3, 14px));line-height:var(--nutui-cell-group-title-line-height, 20px);margin-top:30px;margin-bottom:10px}.nut-cell-group-description{display:inherit;padding:var(--nutui-cell-group-description-padding, 0 10px);color:var(--nutui-cell-group-description-color, var(--nutui-gray-6, #595959));font-size:var(--nutui-cell-group-description-font-size, var(--nutui-font-size-2, 12px));line-height:var(--nutui-cell-group-description-line-height, 16px);margin-top:10px;margin-bottom:10px}.nut-cell-group-wrap{display:inherit;border-radius:var(--nutui-cell-border-radius, 6px);overflow:hidden;background-color:var(--nutui-cell-group-background-color, var(--nutui-gray-1, #ffffff));margin:var(--nutui-cell-group-wrap-margin, 10px 0)}.nut-cell-group-wrap .nut-cell{margin:0;box-shadow:none;border-radius:0}.nut-cell-group-wrap-divider .nut-cell-divider{position:absolute;box-sizing:border-box;pointer-events:none;right:var(--nutui-cell-divider-right, 16px);bottom:0;left:var(--nutui-cell-divider-left, 16px);transform:scaleY(.5);border-top:var(--nutui-cell-divider-border-bottom, 2px solid var(--nutui-black-3, rgba(0, 0, 0, .06)))}.nut-cell-group-wrap-divider .nut-cell:last-child .nut-cell-divider{border-top:0!important}[dir=rtl] .nut-cell-group-wrap-divider .nut-cell-divider,.nut-rtl .nut-cell-group-wrap-divider .nut-cell-divider{left:var(--nutui-cell-divider-right, 16px);right:var(--nutui-cell-divider-left, 16px)}.nut-cell{position:relative;display:flex;width:100%;line-height:var(--nutui-cell-line-height, 20px);padding:var(--nutui-cell-padding, 13px 16px);background-color:var(--nutui-cell-background-color, var(--nutui-gray-1, #ffffff));border-radius:var(--nutui-cell-border-radius, 6px);box-shadow:var(--nutui-cell-box-shadow, 0px 1px 7px 0px rgb(237, 238, 241));font-size:var(--nutui-cell-title-font-size, var(--nutui-font-size-3, 14px));color:var(--nutui-cell-title-color, var(--nutui-gray-7, #1a1a1a));margin:10px 0;box-sizing:border-box}.nut-cell-left{display:flex;flex-direction:column;flex:1}.nut-cell-description{font-size:var(--nutui-cell-description-font-size, var(--nutui-font-size-2, 12px));color:var(--nutui-cell-description-color, var(--nutui-gray-6, #595959))}.nut-cell-extra{display:inline-flex;justify-content:flex-end;align-items:center;flex:1;min-width:0;word-break:break-all;font-size:var(--nutui-cell-extra-font-size, var(--nutui-font-size-3, 14px));color:var(--nutui-cell-extra-color, var(--nutui-gray-6, #595959))}.nut-form-item{display:flex}.nut-form-item.error.line:before{border-bottom:1px solid var(--nutui-form-item-error-line-color, var(--nutui-color-primary, #fa2c19));transform:scaleX(1);transition:transform .2s cubic-bezier(0,0,.2,1) 0ms}.nut-form-item-label{font-size:var(--nutui-form-item-label-font-size, var(--nutui-font-size-3, 14px));font-weight:400;width:var(--nutui-form-item-label-width, 90px);margin-right:var(--nutui-form-item-label-margin-right, 10px);flex:none!important;display:inline-block!important;word-wrap:break-word;text-align:var(--nutui-form-item-label-text-align, left)}.nut-form-item-label .required:before{content:"*";color:var(--nutui-form-item-required-color, var(--nutui-color-primary, #fa2c19));margin-right:var(--nutui-form-item-required-margin-right, 4px)}.nut-form-item-body{flex:1;display:flex!important;flex-direction:column}.nut-form-item-body-slots{text-align:var(--nutui-form-item-body-slots-text-align, left)}.nut-form-item-body-slots .nut-input{padding:0;border:0}.nut-form-item-body-slots .nut-input-text{font-size:var(--nutui-form-item-body-font-size, var(--nutui-font-size-3, 14px));text-align:var(--nutui-form-item-body-input-text-align, left);color:var(--nutui-gray-7, #1a1a1a);width:100%;outline:0 none;border:0;text-decoration:none;background:transparent}.nut-form-item-body-slots .nut-range-container{min-height:24px}.nut-form-item-body-slots .nut-textarea{padding:0!important}.nut-form-item-body-slots .nut-textarea .nut-textarea-textarea{font:inherit;text-align:var(--nutui-form-item-body-input-text-align, left)}.nut-form-item-body-tips{text-align:var(--nutui-form-item-tip-text-align, left);font-size:var(--nutui-form-item-tip-font-size, var(--nutui-font-size-1, 10px));color:var(--nutui-form-item-error-message-color, var(--nutui-color-primary, #fa2c19))}[dir=rtl] .nut-form-item-label,.nut-rtl .nut-form-item-label{text-align:right;margin-right:0;margin-left:var(--nutui-form-item-label-margin-right, 10px)}[dir=rtl] .nut-form-item-label .required:before,.nut-rtl .nut-form-item-label .required:before{margin-right:0;margin-left:var(--nutui-form-item-required-margin-right, 4px)}[dir=rtl] .nut-form-item-body-slots,.nut-rtl .nut-form-item-body-slots{text-align:right}[dir=rtl] .nut-form-item-body-slots .nut-icon-ArrowRight,[dir=rtl] .nut-form-item-body-slots .nut-icon-ArrowLeft,.nut-rtl .nut-form-item-body-slots .nut-icon-ArrowRight,.nut-rtl .nut-form-item-body-slots .nut-icon-ArrowLeft{transform:rotateY(180deg)}[dir=rtl] .nut-form-item-body-slots .nut-input-text,.nut-rtl .nut-form-item-body-slots .nut-input-text,[dir=rtl] .nut-form-item-body-slots .nut-textarea-textarea,.nut-rtl .nut-form-item-body-slots .nut-textarea-textarea,[dir=rtl] .nut-form-item-tips,.nut-rtl .nut-form-item-tips{text-align:right}.form-layout-right .nut-form-item-label{text-align:right;padding-right:24px;white-space:nowrap}.form-layout-left .nut-form-item-label{position:relative;text-align:left;padding-left:12px;white-space:nowrap}.form-layout-left .nut-form-item-label .required{display:block;line-height:1.5;position:absolute;left:.1em}.form-layout-top .nut-form-item{flex-direction:column;align-items:flex-start;white-space:nowrap}.form-layout-top .nut-form-item-label{padding-bottom:4px;display:block;padding-right:24px}.form-layout-top .nut-form-item-body{margin-left:0;width:100%}[dir=rtl] .form-layout-right .nut-form-item-label,.nut-rtl .form-layout-right .nut-form-item-label{text-align:left;padding-right:0;padding-left:24px}[dir=rtl] .form-layout-left .nut-form-item-label,.nut-rtl .form-layout-left .nut-form-item-label{text-align:right;padding-left:0;padding-right:12px}[dir=rtl] .form-layout-left .nut-form-item-label .required,.nut-rtl .form-layout-left .nut-form-item-label .required{left:auto;right:.1em}[dir=rtl] .form-layout-top .nut-form-item-label,.nut-rtl .form-layout-top .nut-form-item-label{padding-right:0;padding-left:24px}[dir=rtl] .form-layout-top .nut-form-item-body,.nut-rtl .form-layout-top .nut-form-item-body{margin-left:0;margin-right:0}
1
+ .nut-cell-group{display:block}.nut-cell-group-title{display:inherit;padding:var(--nutui-cell-group-title-padding, 0 10px);color:var(--nutui-cell-group-title-color, var(--nutui-gray-7, #1a1a1a));font-size:var(--nutui-cell-group-title-font-size, var(--nutui-font-size-3, 14px));line-height:var(--nutui-cell-group-title-line-height, 20px);margin-top:30px;margin-bottom:10px}.nut-cell-group-description{display:inherit;padding:var(--nutui-cell-group-description-padding, 0 10px);color:var(--nutui-cell-group-description-color, var(--nutui-gray-6, #595959));font-size:var(--nutui-cell-group-description-font-size, var(--nutui-font-size-2, 12px));line-height:var(--nutui-cell-group-description-line-height, 16px);margin-top:10px;margin-bottom:10px}.nut-cell-group-wrap{display:inherit;border-radius:var(--nutui-cell-border-radius, 6px);overflow:hidden;background-color:var(--nutui-cell-group-background-color, var(--nutui-gray-1, #ffffff));margin:var(--nutui-cell-group-wrap-margin, 10px 0)}.nut-cell-group-wrap .nut-cell{margin:0;box-shadow:none;border-radius:0}.nut-cell-group-wrap-divider .nut-cell-divider{position:absolute;box-sizing:border-box;pointer-events:none;right:var(--nutui-cell-divider-right, 16px);bottom:0;left:var(--nutui-cell-divider-left, 16px);transform:scaleY(.5);border-top:var(--nutui-cell-divider-border-bottom, 2px solid var(--nutui-black-3, rgba(0, 0, 0, .06)))}.nut-cell-group-wrap-divider .nut-cell:last-child .nut-cell-divider{border-top:0!important}[dir=rtl] .nut-cell-group-wrap-divider .nut-cell-divider,.nut-rtl .nut-cell-group-wrap-divider .nut-cell-divider{left:var(--nutui-cell-divider-right, 16px);right:var(--nutui-cell-divider-left, 16px)}.nut-cell{position:relative;display:flex;width:100%;line-height:var(--nutui-cell-line-height, 20px);padding:var(--nutui-cell-padding, 13px 16px);background-color:var(--nutui-cell-background-color, var(--nutui-gray-1, #ffffff));border-radius:var(--nutui-cell-border-radius, 6px);box-shadow:var(--nutui-cell-box-shadow, 0px 1px 7px 0px rgb(237, 238, 241));font-size:var(--nutui-cell-title-font-size, var(--nutui-font-size-3, 14px));color:var(--nutui-cell-title-color, var(--nutui-gray-7, #1a1a1a));margin:10px 0;box-sizing:border-box}.nut-cell-left{display:flex;flex-direction:column;flex:1}.nut-cell-description{font-size:var(--nutui-cell-description-font-size, var(--nutui-font-size-2, 12px));color:var(--nutui-cell-description-color, var(--nutui-gray-6, #595959))}.nut-cell-extra{display:inline-flex;justify-content:flex-end;align-items:center;flex:1;min-width:0;word-break:break-all;font-size:var(--nutui-cell-extra-font-size, var(--nutui-font-size-3, 14px));color:var(--nutui-cell-extra-color, var(--nutui-gray-6, #595959))}.nut-cell:active:before{opacity:.1}.nut-cell-clickable{cursor:pointer}.nut-cell-clickable:before{position:absolute;top:50%;left:50%;width:100%;height:100%;background-color:var(--nutui-gray-7, #1a1a1a);border:inherit;border-color:var(--nutui-gray-7, #1a1a1a);border-radius:inherit;transform:translate(-50%,-50%);opacity:0;content:" "}.nut-form-item{display:flex}.nut-form-item.error.line:before{border-bottom:1px solid var(--nutui-form-item-error-line-color, var(--nutui-color-primary, #fa2c19));transform:scaleX(1);transition:transform .2s cubic-bezier(0,0,.2,1) 0ms}.nut-form-item-label{font-size:var(--nutui-form-item-label-font-size, var(--nutui-font-size-3, 14px));font-weight:400;width:var(--nutui-form-item-label-width, 90px);margin-right:var(--nutui-form-item-label-margin-right, 10px);flex:none!important;display:inline-block!important;word-wrap:break-word;text-align:var(--nutui-form-item-label-text-align, left)}.nut-form-item-label .required:before{content:"*";color:var(--nutui-form-item-required-color, var(--nutui-color-primary, #fa2c19));margin-right:var(--nutui-form-item-required-margin-right, 4px)}.nut-form-item-body{flex:1;display:flex!important;flex-direction:column}.nut-form-item-body-slots{text-align:var(--nutui-form-item-body-slots-text-align, left)}.nut-form-item-body-slots .nut-input{padding:0;border:0}.nut-form-item-body-slots .nut-input-text{font-size:var(--nutui-form-item-body-font-size, var(--nutui-font-size-3, 14px));text-align:var(--nutui-form-item-body-input-text-align, left);color:var(--nutui-gray-7, #1a1a1a);width:100%;outline:0 none;border:0;text-decoration:none;background:transparent}.nut-form-item-body-slots .nut-range-container{min-height:24px}.nut-form-item-body-slots .nut-textarea{padding:0!important}.nut-form-item-body-slots .nut-textarea .nut-textarea-textarea{font:inherit;text-align:var(--nutui-form-item-body-input-text-align, left)}.nut-form-item-body-tips{text-align:var(--nutui-form-item-tip-text-align, left);font-size:var(--nutui-form-item-tip-font-size, var(--nutui-font-size-1, 10px));color:var(--nutui-form-item-error-message-color, var(--nutui-color-primary, #fa2c19))}[dir=rtl] .nut-form-item-label,.nut-rtl .nut-form-item-label{text-align:right;margin-right:0;margin-left:var(--nutui-form-item-label-margin-right, 10px)}[dir=rtl] .nut-form-item-label .required:before,.nut-rtl .nut-form-item-label .required:before{margin-right:0;margin-left:var(--nutui-form-item-required-margin-right, 4px)}[dir=rtl] .nut-form-item-body-slots,.nut-rtl .nut-form-item-body-slots{text-align:right}[dir=rtl] .nut-form-item-body-slots .nut-icon-ArrowRight,[dir=rtl] .nut-form-item-body-slots .nut-icon-ArrowLeft,.nut-rtl .nut-form-item-body-slots .nut-icon-ArrowRight,.nut-rtl .nut-form-item-body-slots .nut-icon-ArrowLeft{transform:rotateY(180deg)}[dir=rtl] .nut-form-item-body-slots .nut-input-text,.nut-rtl .nut-form-item-body-slots .nut-input-text,[dir=rtl] .nut-form-item-body-slots .nut-textarea-textarea,.nut-rtl .nut-form-item-body-slots .nut-textarea-textarea,[dir=rtl] .nut-form-item-tips,.nut-rtl .nut-form-item-tips{text-align:right}.form-layout-right .nut-form-item-label{text-align:right;padding-right:24px;white-space:nowrap}.form-layout-left .nut-form-item-label{position:relative;text-align:left;padding-left:12px;white-space:nowrap}.form-layout-left .nut-form-item-label .required{display:block;line-height:1.5;position:absolute;left:.1em}.form-layout-top .nut-form-item{flex-direction:column;align-items:flex-start;white-space:nowrap}.form-layout-top .nut-form-item-label{padding-bottom:4px;display:block;padding-right:24px}.form-layout-top .nut-form-item-body{margin-left:0;width:100%}[dir=rtl] .form-layout-right .nut-form-item-label,.nut-rtl .form-layout-right .nut-form-item-label{text-align:left;padding-right:0;padding-left:24px}[dir=rtl] .form-layout-left .nut-form-item-label,.nut-rtl .form-layout-left .nut-form-item-label{text-align:right;padding-left:0;padding-right:12px}[dir=rtl] .form-layout-left .nut-form-item-label .required,.nut-rtl .form-layout-left .nut-form-item-label .required{left:auto;right:.1em}[dir=rtl] .form-layout-top .nut-form-item-label,.nut-rtl .form-layout-top .nut-form-item-label{padding-right:0;padding-left:24px}[dir=rtl] .form-layout-top .nut-form-item-body,.nut-rtl .form-layout-top .nut-form-item-body{margin-left:0;margin-right:0}
@@ -143,19 +143,28 @@ const ImagePreview = (props) => {
143
143
  { visible: showPop, className: `${classPrefix}-pop`, style: { width: "100%" }, onClick: onCloseInner },
144
144
  React__default.createElement("div", { className: classNames(classPrefix, className), style, ref, onTouchStart }, showPop ? React__default.createElement(Swiper__default, { autoPlay: !!duration, duration, className: `${classPrefix}-swiper`, loop: true, style: {
145
145
  "--nutui-indicator-color": indicatorColor
146
- }, direction: "horizontal", onChange: (page) => slideChangeEnd(page), defaultValue: innerNo && (innerNo > maxNo ? maxNo - 1 : innerNo - 1), indicator }, (videos && videos.length > 0 ? videos.map((item, index) => {
147
- return React__default.createElement(
148
- SwiperItem__default,
149
- { key: index },
150
- React__default.createElement(Video__default, { source: item.source, options: item.options, onClick: closeOnImg })
151
- );
152
- }) : []).concat(images && images.length > 0 ? images.map((item, index) => {
153
- return React__default.createElement(
154
- SwiperItem__default,
155
- { key: index },
156
- React__default.createElement(Image__default, { src: item.src, draggable: false, onClick: closeOnImg })
157
- );
158
- }) : [])) : null),
146
+ }, direction: "horizontal", onChange: (page) => slideChangeEnd(page), defaultValue: innerNo && (innerNo > maxNo ? maxNo - 1 : innerNo - 1), indicator }, (videos !== null && videos !== void 0 ? videos : []).map((item) => ({ type: "video", data: item })).concat((images !== null && images !== void 0 ? images : []).map((item) => ({ type: "image", data: item }))).sort((a, b) => {
147
+ var _a, _b, _c, _d;
148
+ return ((_b = (_a = a.data) === null || _a === void 0 ? void 0 : _a.index) !== null && _b !== void 0 ? _b : 0) - ((_d = (_c = b.data) === null || _c === void 0 ? void 0 : _c.index) !== null && _d !== void 0 ? _d : 0);
149
+ }).map((item, index) => {
150
+ if (item.type === "video") {
151
+ const { source, options } = item.data;
152
+ return React__default.createElement(
153
+ SwiperItem__default,
154
+ { key: index },
155
+ React__default.createElement(Video__default, { source, options, onClick: closeOnImg })
156
+ );
157
+ }
158
+ if (item.type === "image") {
159
+ const { src } = item.data;
160
+ return React__default.createElement(
161
+ SwiperItem__default,
162
+ { key: index },
163
+ React__default.createElement(Image__default, { src, draggable: false, onClick: closeOnImg })
164
+ );
165
+ }
166
+ return null;
167
+ })) : null),
159
168
  pagination ? React__default.createElement(
160
169
  "div",
161
170
  { className: `${classPrefix}-index` },
@@ -98,6 +98,18 @@ const InputNumber = (props) => {
98
98
  return null;
99
99
  return text;
100
100
  };
101
+ const clampValue = (valueStr) => {
102
+ if (valueStr === null)
103
+ return defaultValue;
104
+ const val = Number(parseFloat(valueStr || "0").toFixed(digits));
105
+ return Math.max(Number(min), Math.min(Number(max), val));
106
+ };
107
+ const handleValueChange = (valueStr, e) => {
108
+ const val = clampValue(valueStr);
109
+ if (val !== Number(shadowValue)) {
110
+ onChange === null || onChange === void 0 ? void 0 : onChange(val, e);
111
+ }
112
+ };
101
113
  const handleInputChange = (e) => {
102
114
  setInputValue(e.target.value);
103
115
  const valueStr = parseValue(e.target.value);
@@ -108,24 +120,29 @@ const InputNumber = (props) => {
108
120
  setShadowValue(defaultValue);
109
121
  }
110
122
  } else {
111
- setShadowValue(valueStr);
112
- }
113
- if (!async) {
114
- onChange === null || onChange === void 0 ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e);
123
+ setShadowValue(clampValue(valueStr));
115
124
  }
125
+ !async && handleValueChange(valueStr, e);
116
126
  };
117
127
  const handleFocus = (e) => {
118
128
  setFocused(true);
119
129
  setInputValue(shadowValue !== void 0 && shadowValue !== null ? bound(Number(shadowValue), Number(min), Number(max)).toString() : "");
120
- onFocus && onFocus(e);
130
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
121
131
  };
122
132
  const handleBlur = (e) => {
123
133
  setFocused(false);
124
- onBlur && onBlur(e);
125
- if (async) {
126
- const valueStr = parseValue(e.target.value);
127
- onChange === null || onChange === void 0 ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e);
134
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
135
+ const valueStr = parseValue(e.target.value);
136
+ if (valueStr === null) {
137
+ if (allowEmpty) {
138
+ setShadowValue(null);
139
+ } else {
140
+ setShadowValue(defaultValue);
141
+ }
142
+ } else {
143
+ setShadowValue(clampValue(valueStr));
128
144
  }
145
+ async && handleValueChange(valueStr, e);
129
146
  };
130
147
  return React__default.createElement(
131
148
  "div",
package/dist/esm/Menu.js CHANGED
@@ -68,7 +68,7 @@ const Menu = (props) => {
68
68
  const menuTitle = () => {
69
69
  return React__default.Children.map(children, (child, index) => {
70
70
  if (React__default.isValidElement(child)) {
71
- const { title, options, value, defaultValue, disabled, direction } = child.props;
71
+ const { title, titleIcon, options, value, defaultValue, disabled, direction } = child.props;
72
72
  const selected = options === null || options === void 0 ? void 0 : options.filter((option) => option.value === (value !== void 0 ? value : defaultValue));
73
73
  const finallyTitle = () => {
74
74
  if (title)
@@ -79,6 +79,13 @@ const Menu = (props) => {
79
79
  return selected[0].text;
80
80
  return "";
81
81
  };
82
+ const finallyIcon = () => {
83
+ if (titleIcon)
84
+ return titleIcon;
85
+ if (icon)
86
+ return icon;
87
+ return direction === "up" ? React__default.createElement(ArrowUp, { className: "nut-menu-title-icon", width: "12px", height: "12px" }) : React__default.createElement(ArrowDown, { className: "nut-menu-title-icon", width: "12px", height: "12px" });
88
+ };
82
89
  return React__default.createElement(
83
90
  "div",
84
91
  { className: classNames("nut-menu-title", `nut-menu-title-${index}`, {
@@ -91,7 +98,7 @@ const Menu = (props) => {
91
98
  !disabled && toggleMenuItem(index);
92
99
  } },
93
100
  React__default.createElement("div", { className: "nut-menu-title-text" }, finallyTitle()),
94
- icon || (direction === "up" ? React__default.createElement(ArrowUp, { className: "nut-menu-title-icon", width: "12px", height: "12px" }) : React__default.createElement(ArrowDown, { className: "nut-menu-title-icon", width: "12px", height: "12px" }))
101
+ finallyIcon()
95
102
  );
96
103
  }
97
104
  return null;
@@ -5,11 +5,11 @@ import { ArrowDown } from "@nutui/icons-react";
5
5
  import Popup__default from "./Popup.js";
6
6
  import { useConfig } from "./ConfigProvider.js";
7
7
  import { C as ComponentDefaults } from "./typings.js";
8
- Object.assign(Object.assign({}, ComponentDefaults), { visible: false, rightActions: "", type: "default", custom: [], random: false, onClose: () => {
8
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { visible: false, rightActions: "", type: "default", custom: [], random: false, onClose: () => {
9
9
  } });
10
10
  const NumberKeyboard = (props) => {
11
11
  const { locale } = useConfig();
12
- const { title, rightActions, confirmText, visible, type, custom, random, style, className, onChange, onDelete, onClose, onConfirm } = props, rest = __rest(props, ["title", "rightActions", "confirmText", "visible", "type", "custom", "random", "style", "className", "onChange", "onDelete", "onClose", "onConfirm"]);
12
+ const _a = Object.assign(Object.assign({}, defaultProps), props), { title, rightActions, confirmText, visible, type, custom, random, style, className, onChange, onDelete, onClose, onConfirm } = _a, rest = __rest(_a, ["title", "rightActions", "confirmText", "visible", "type", "custom", "random", "style", "className", "onChange", "onDelete", "onClose", "onConfirm"]);
13
13
  const classPrefix = "nut-numberkeyboard";
14
14
  const getBasicKeys = () => {
15
15
  const keys = new Array(9).fill(0).map((_, index) => {
@@ -55,41 +55,52 @@ const NumberKeyboard = (props) => {
55
55
  };
56
56
  const onTouchEnd = (item2) => {
57
57
  setActive(false);
58
- if (item2.type === "num" || item2.type === "custom") {
59
- onChange && onChange(item2.id);
58
+ switch (item2.type) {
59
+ case "num":
60
+ case "custom":
61
+ onChange === null || onChange === void 0 ? void 0 : onChange(item2.id);
62
+ break;
63
+ case "close":
64
+ onClose === null || onClose === void 0 ? void 0 : onClose();
65
+ break;
66
+ case "delete":
67
+ onDelete === null || onDelete === void 0 ? void 0 : onDelete();
68
+ break;
69
+ case "confirm":
70
+ onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm();
71
+ break;
60
72
  }
61
- if (item2.type === "close") {
62
- onClose && onClose();
63
- }
64
- if (item2.type === "delete") {
65
- onDelete && onDelete();
66
- }
67
- if (item2.type === "confirm") {
68
- onConfirm && onConfirm();
73
+ };
74
+ const renderContent = (item2) => {
75
+ switch (item2.type) {
76
+ case "num":
77
+ case "custom":
78
+ return React__default.createElement("div", null, item2.id);
79
+ case "delete":
80
+ return React__default.createElement(DeleteIcon, null);
81
+ case "close":
82
+ return React__default.createElement(ArrowDown, { width: 18, height: 18 });
83
+ case "confirm":
84
+ return React__default.createElement(React__default.Fragment, null, confirmText || locale.done);
85
+ default:
86
+ return null;
69
87
  }
70
88
  };
71
89
  return React__default.createElement(
72
90
  "div",
73
91
  { key: item.id, className: `${classPrefix}-body-wrapper` },
74
- React__default.createElement(
75
- "div",
76
- { className: classNames({
77
- key: true,
78
- active,
79
- close: item.type === "close",
80
- delete: item.type === "delete",
81
- confirm: item.type === "confirm"
82
- }), onTouchStart: () => onTouchStart(), onTouchEnd: () => onTouchEnd(item), onTouchCancel: () => onTouchEnd(item) },
83
- (item.type === "num" || item.type === "custom") && React__default.createElement("div", null, item.id),
84
- item.type === "delete" && React__default.createElement(DeleteIcon, null),
85
- item.type === "close" && React__default.createElement(ArrowDown, { width: 18, height: 18 }),
86
- item.type === "confirm" && React__default.createElement(React__default.Fragment, null, confirmText || locale.done)
87
- )
92
+ React__default.createElement("div", { className: classNames({
93
+ key: true,
94
+ active,
95
+ close: item.type === "close",
96
+ delete: item.type === "delete",
97
+ confirm: item.type === "confirm"
98
+ }), onTouchStart: () => onTouchStart(), onTouchEnd: () => onTouchEnd(item), onTouchCancel: () => onTouchEnd(item) }, renderContent(item))
88
99
  );
89
100
  };
90
101
  return React__default.createElement(
91
102
  Popup__default,
92
- Object.assign({ visible, position: "bottom", onOverlayClick: onClose, onCloseIconClick: onClose, zIndex: 9999, overlayStyle: { backgroundColor: "rgba(0, 0, 0, 0)" } }, rest),
103
+ Object.assign({}, rest, { visible, position: "bottom", onOverlayClick: onClose, onCloseIconClick: onClose, zIndex: 9999, overlayStyle: { backgroundColor: "rgba(0, 0, 0, 0)" } }),
93
104
  React__default.createElement(
94
105
  "div",
95
106
  { className: classNames(classPrefix, className), style },
@@ -8,6 +8,7 @@ import { C as ComponentDefaults } from "./typings.js";
8
8
  import Button__default from "./Button.js";
9
9
  import { u as usePropsValue } from "./use-props-value.js";
10
10
  import Progress__default from "./Progress.js";
11
+ import Image__default from "./Image.js";
11
12
  class UploadOptions {
12
13
  constructor() {
13
14
  this.url = "";
@@ -110,7 +111,7 @@ const Preview = ({ fileList, previewType, deletable, onDeleteItem, handleItemCli
110
111
  renderIcon(item),
111
112
  React__default.createElement("div", { className: "nut-uploader-preview-progress-msg" }, item.message)
112
113
  ),
113
- ((_a = item.type) === null || _a === void 0 ? void 0 : _a.includes("image")) ? React__default.createElement(React__default.Fragment, null, item.url && React__default.createElement("img", { className: "nut-uploader-preview-img-c", style: { objectFit: "fill" }, src: item.url, alt: "", onClick: () => handleItemClick(item, index) })) : React__default.createElement(React__default.Fragment, null, previewUrl ? React__default.createElement("img", { className: "nut-uploader-preview-img-c", src: previewUrl, alt: "", onClick: () => handleItemClick(item, index) }) : React__default.createElement(
114
+ ((_a = item.type) === null || _a === void 0 ? void 0 : _a.includes("image")) ? React__default.createElement(React__default.Fragment, null, item.url && React__default.createElement(Image__default, { className: "nut-uploader-preview-img-c", style: { objectFit: "fill" }, src: item.url, alt: "", onClick: () => handleItemClick(item, index) })) : React__default.createElement(React__default.Fragment, null, previewUrl ? React__default.createElement(Image__default, { className: "nut-uploader-preview-img-c", src: previewUrl, alt: "", onClick: () => handleItemClick(item, index) }) : React__default.createElement(
114
115
  "div",
115
116
  { className: "nut-uploader-preview-img-file" },
116
117
  React__default.createElement(
@@ -340,14 +341,15 @@ const InternalUploader = (props, ref) => {
340
341
  });
341
342
  };
342
343
  const fileChange = (event) => {
343
- if (disabled) {
344
+ if (disabled)
344
345
  return;
345
- }
346
346
  const $el = event.target;
347
347
  const { files } = $el;
348
348
  if (beforeUpload) {
349
349
  beforeUpload(new Array().slice.call(files)).then((f) => {
350
350
  const _files = filterFiles(new Array().slice.call(f));
351
+ if (!_files.length)
352
+ $el.value = "";
351
353
  readFile(_files);
352
354
  });
353
355
  } else {
@@ -107,12 +107,12 @@ class FormStore {
107
107
  return errs;
108
108
  });
109
109
  this.submit = () => __awaiter(this, void 0, void 0, function* () {
110
- var _b, _c, _d, _e;
110
+ var _a, _b, _c, _d;
111
111
  const errors = yield this.validateFields();
112
112
  if (errors.length === 0) {
113
- (_c = (_b = this.callbacks).onFinish) === null || _c === void 0 ? void 0 : _c.call(_b, this.store);
113
+ (_b = (_a = this.callbacks).onFinish) === null || _b === void 0 ? void 0 : _b.call(_a, this.store);
114
114
  } else if (errors.length > 0) {
115
- (_e = (_d = this.callbacks).onFinishFailed) === null || _e === void 0 ? void 0 : _e.call(_d, this.store, errors);
115
+ (_d = (_c = this.callbacks).onFinishFailed) === null || _d === void 0 ? void 0 : _d.call(_c, this.store, errors);
116
116
  }
117
117
  });
118
118
  this.resetFields = () => {
@@ -260,7 +260,7 @@ class FormItem extends React__default.Component {
260
260
  }
261
261
  };
262
262
  this.renderLayout = (childNode) => {
263
- const { label, name, required, rules, className, style, errorMessageAlign } = Object.assign(Object.assign({}, defaultProps), this.props);
263
+ const { label, name, required, rules, className, style, errorMessageAlign, align } = Object.assign(Object.assign({}, defaultProps), this.props);
264
264
  const requiredInRules = rules === null || rules === void 0 ? void 0 : rules.some((rule) => rule.required);
265
265
  const item = name ? this.context.errors[name] : [];
266
266
  const { starPosition } = this.context;
@@ -274,7 +274,7 @@ class FormItem extends React__default.Component {
274
274
  );
275
275
  return React__default.createElement(
276
276
  Cell__default,
277
- { className: `nut-form-item ${className}`, style, onClick: (e) => this.props.onClick && this.props.onClick(e, this.componentRef) },
277
+ { className: `nut-form-item ${className}`, style, align, onClick: (e) => this.props.onClick && this.props.onClick(e, this.componentRef) },
278
278
  label ? React__default.createElement("div", { className: "nut-cell-title nut-form-item-label" }, renderLabel) : null,
279
279
  React__default.createElement(
280
280
  "div",
@@ -7,7 +7,7 @@ import { u as useClickAway } from "./use-click-away.js";
7
7
  import { C as ComponentDefaults } from "./typings.js";
8
8
  import { u as usePropsValue } from "./use-props-value.js";
9
9
  import { g as getScrollParent } from "./get-scroll-parent.js";
10
- const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { columns: 1, direction: "down", icon: null, closeOnClickAway: true, activeTitleClass: "", inactiveTitleClass: "", onChange: (value) => void 0 });
10
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { titleIcon: null, columns: 1, direction: "down", icon: null, closeOnClickAway: true, activeTitleClass: "", inactiveTitleClass: "", onChange: (value) => void 0 });
11
11
  const MenuItem = forwardRef((props, ref) => {
12
12
  const { className, style, options, value, defaultValue, columns, title, icon, direction, onChange, activeTitleClass, inactiveTitleClass, closeOnClickAway, children, activeColor, show, parent, index } = Object.assign(Object.assign({}, defaultProps), props);
13
13
  const [showPopup, setShowPopup] = useState(show);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.15 Fri Jul 26 2024 15:21:32 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.17 Fri Aug 30 2024 14:11:49 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.15 Fri Jul 26 2024 15:21:32 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.17 Fri Aug 30 2024 14:11:49 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.15 Fri Jul 26 2024 15:21:32 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.17 Fri Aug 30 2024 14:11:49 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.15 Fri Jul 26 2024 15:21:32 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.17 Fri Aug 30 2024 14:11:49 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.15 Fri Jul 26 2024 15:21:32 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.17 Fri Aug 30 2024 14:11:49 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.15 Fri Jul 26 2024 15:21:32 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.17 Fri Aug 30 2024 14:11:49 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.15 Fri Jul 26 2024 15:21:32 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.17 Fri Aug 30 2024 14:11:49 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */