@xhsreds/reds-rn-next 0.10.1-beta202512111732 → 0.10.1-beta202512111822

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 (76) hide show
  1. package/coverage/.tmp/coverage-0.json +1 -1
  2. package/coverage/.tmp/coverage-10.json +1 -1
  3. package/coverage/.tmp/coverage-11.json +1 -1
  4. package/coverage/.tmp/coverage-12.json +1 -1
  5. package/coverage/.tmp/coverage-13.json +1 -1
  6. package/coverage/.tmp/coverage-14.json +1 -1
  7. package/coverage/.tmp/coverage-15.json +1 -1
  8. package/coverage/.tmp/coverage-16.json +1 -1
  9. package/coverage/.tmp/coverage-17.json +1 -1
  10. package/coverage/.tmp/coverage-18.json +1 -1
  11. package/coverage/.tmp/coverage-19.json +1 -1
  12. package/coverage/.tmp/coverage-2.json +1 -1
  13. package/coverage/.tmp/coverage-20.json +1 -1
  14. package/coverage/.tmp/coverage-21.json +1 -1
  15. package/coverage/.tmp/coverage-22.json +1 -1
  16. package/coverage/.tmp/coverage-23.json +1 -1
  17. package/coverage/.tmp/coverage-24.json +1 -1
  18. package/coverage/.tmp/coverage-25.json +1 -1
  19. package/coverage/.tmp/coverage-27.json +1 -1
  20. package/coverage/.tmp/coverage-29.json +1 -1
  21. package/coverage/.tmp/coverage-3.json +1 -1
  22. package/coverage/.tmp/coverage-30.json +1 -1
  23. package/coverage/.tmp/coverage-31.json +1 -1
  24. package/coverage/.tmp/coverage-32.json +1 -1
  25. package/coverage/.tmp/coverage-33.json +1 -1
  26. package/coverage/.tmp/coverage-34.json +1 -1
  27. package/coverage/.tmp/coverage-35.json +1 -1
  28. package/coverage/.tmp/coverage-36.json +1 -1
  29. package/coverage/.tmp/coverage-38.json +1 -1
  30. package/coverage/.tmp/coverage-4.json +1 -1
  31. package/coverage/.tmp/coverage-5.json +1 -1
  32. package/coverage/.tmp/coverage-6.json +1 -1
  33. package/coverage/.tmp/coverage-7.json +1 -1
  34. package/coverage/.tmp/coverage-8.json +1 -1
  35. package/coverage/.tmp/coverage-9.json +1 -1
  36. package/lib/cjs/i18n/index.js +33 -33
  37. package/lib/esm/i18n/index.js +33 -33
  38. package/package.json +2 -2
  39. package/src/components/ActionSheets/doc/index.mdx +4 -4
  40. package/src/components/ActionablePopover/doc/index.mdx +5 -5
  41. package/src/components/Alert/doc/index.mdx +7 -7
  42. package/src/components/Button/doc/index.mdx +4 -4
  43. package/src/components/Carousel/doc/index.mdx +4 -4
  44. package/src/components/CheckBoxGroup/doc/index.mdx +3 -3
  45. package/src/components/Collapse/doc/index.mdx +3 -3
  46. package/src/components/DatePicker/doc/index.mdx +21 -21
  47. package/src/components/DropDown/doc/index.mdx +6 -6
  48. package/src/components/Empty/doc/index.mdx +3 -3
  49. package/src/components/FAB/doc/index.mdx +3 -3
  50. package/src/components/Form/doc/index.mdx +4 -4
  51. package/src/components/Icon/doc/index.mdx +3 -3
  52. package/src/components/Image/doc/index.mdx +4 -4
  53. package/src/components/MiniSnackBar/doc/index.mdx +3 -3
  54. package/src/components/NoticeBar/doc/index.mdx +4 -4
  55. package/src/components/Picker/doc/index.mdx +5 -5
  56. package/src/components/PickerView/doc/index.mdx +3 -3
  57. package/src/components/Popover/doc/index.mdx +5 -5
  58. package/src/components/ProgressIndicator/doc/index.mdx +11 -11
  59. package/src/components/PullRefresh/doc/index.mdx +3 -3
  60. package/src/components/Radio/doc/index.mdx +3 -3
  61. package/src/components/Rate/doc/index.mdx +3 -3
  62. package/src/components/Search/doc/index.mdx +17 -17
  63. package/src/components/SegmentedControl/doc/index.mdx +3 -3
  64. package/src/components/Sheets/doc/index.mdx +35 -43
  65. package/src/components/Slider/doc/index.mdx +6 -6
  66. package/src/components/Stepper/doc/index.mdx +3 -3
  67. package/src/components/Switch/doc/index.mdx +4 -4
  68. package/src/components/Tab/doc/index.mdx +3 -3
  69. package/src/components/TabBar/doc/index.mdx +3 -3
  70. package/src/components/Tag/doc/index.mdx +4 -4
  71. package/src/components/Text/doc/index.mdx +4 -4
  72. package/src/components/TextField/doc/index.mdx +32 -32
  73. package/src/components/TextView/doc/index.mdx +5 -5
  74. package/src/components/Toast/doc/index.mdx +6 -6
  75. package/src/components/Uploader/doc/index.mdx +26 -26
  76. package/src/components/Video/doc/index.mdx +4 -4
@@ -1 +1 @@
1
- {"/builds/fe/infra/reds/packages/reds-rn/src/components/DatePicker/interface/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/DatePicker/interface/index.ts","statementMap":{"0":{"start":{"line":1,"column":44},"end":{"line":11,"column":24}},"1":{"start":{"line":2,"column":2},"end":{"line":2,"column":51}},"2":{"start":{"line":3,"column":2},"end":{"line":3,"column":45}},"3":{"start":{"line":4,"column":2},"end":{"line":4,"column":35}},"4":{"start":{"line":5,"column":2},"end":{"line":5,"column":35}},"5":{"start":{"line":6,"column":2},"end":{"line":6,"column":47}},"6":{"start":{"line":7,"column":2},"end":{"line":7,"column":59}},"7":{"start":{"line":8,"column":2},"end":{"line":8,"column":71}},"8":{"start":{"line":9,"column":2},"end":{"line":9,"column":59}},"9":{"start":{"line":10,"column":2},"end":{"line":10,"column":25}},"10":{"start":{"line":12,"column":38},"end":{"line":24,"column":1}},"11":{"start":{"line":15,"column":24},"end":{"line":15,"column":29}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":45},"end":{"line":1,"column":46}},"loc":{"start":{"line":1,"column":66},"end":{"line":11,"column":1}},"line":1},"1":{"name":"(anonymous_1)","decl":{"start":{"line":15,"column":13},"end":{"line":15,"column":14}},"loc":{"start":{"line":15,"column":24},"end":{"line":15,"column":29}},"line":15},"2":{"name":"(anonymous_2)","decl":{"start":{"line":16,"column":12},"end":{"line":16,"column":13}},"loc":{"start":{"line":16,"column":23},"end":{"line":17,"column":3}},"line":16},"3":{"name":"(anonymous_3)","decl":{"start":{"line":18,"column":12},"end":{"line":18,"column":13}},"loc":{"start":{"line":18,"column":18},"end":{"line":19,"column":3}},"line":18},"4":{"name":"(anonymous_4)","decl":{"start":{"line":20,"column":13},"end":{"line":20,"column":14}},"loc":{"start":{"line":20,"column":24},"end":{"line":21,"column":3}},"line":20}},"branchMap":{"0":{"loc":{"start":{"line":11,"column":3},"end":{"line":11,"column":23}},"type":"binary-expr","locations":[{"start":{"line":11,"column":3},"end":{"line":11,"column":17}},{"start":{"line":11,"column":21},"end":{"line":11,"column":23}}],"line":11}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":0},"f":{"0":1,"1":0,"2":0,"3":0,"4":0},"b":{"0":[1,1]},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/DatePicker/interface/index.ts"],"sourcesContent":["export enum DatePickerMode {\n YearMonthDay = \"yearmonthday\",\n YearMonth = \"yearmonth\",\n Year = \"year\",\n Hour = \"hour\",\n HourMinute = \"hourminute\",\n HourMinuteSecond = \"hourminutesecond\",\n YearMonthDayHourMinute = \"yearmonthdayhourminute\",\n YearMonthDayHour = \"yearmonthdayhour\",\n}\nexport interface RedsDatePicker {\n visible: boolean;\n value: string;\n cancelText?: string;\n mode?: DatePickerMode;\n startYear?: number;\n endYear?: number;\n startTime?: string;\n endTime?: string;\n label: string;\n formatter?: (value: string) => any;\n onChange?: (value: string) => void;\n onCancel?: () => void;\n onConfirm?: (value: string) => void;\n isDatePattern?: boolean;\n closeText?: string;\n mask?: boolean;\n hostName?: string;\n}\n\nexport interface RedsDatePickerEvent {}\nexport const DatePickerDefaultProps = {\n visible: false,\n mode: DatePickerMode.YearMonthDay,\n formatter: (value: string) => value,\n onChange: (value: string) => {},\n onCancel: () => {},\n onConfirm: (value: string) => {},\n isDatePattern: false,\n hostName: \"root\",\n};\n"],"mappings":"AAAO,WAAK,iBAAL,kBAAKA,oBAAL;AACL,EAAAA,gBAAA,kBAAe;AACf,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,UAAO;AACP,EAAAA,gBAAA,UAAO;AACP,EAAAA,gBAAA,gBAAa;AACb,EAAAA,gBAAA,sBAAmB;AACnB,EAAAA,gBAAA,4BAAyB;AACzB,EAAAA,gBAAA,sBAAmB;AART,SAAAA;AAAA,GAAA;AA+BL,aAAM,yBAAyB;AAAA,EACpC,SAAS;AAAA,EACT,MAAM;AAAA,EACN,WAAW,CAAC,UAAkB;AAAA,EAC9B,UAAU,CAAC,UAAkB;AAAA,EAAC;AAAA,EAC9B,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,WAAW,CAAC,UAAkB;AAAA,EAAC;AAAA,EAC/B,eAAe;AAAA,EACf,UAAU;AACZ;","names":["DatePickerMode"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"9e76fc27de5c3917033e01222a48d018ce0fa2fd"},"/builds/fe/infra/reds/packages/reds-rn/src/components/Picker/interface/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/Picker/interface/index.ts","statementMap":{"0":{"start":{"line":1,"column":34},"end":{"line":12,"column":1}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":13},"end":{"line":2,"column":14}},"loc":{"start":{"line":2,"column":19},"end":{"line":3,"column":3}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":4,"column":12},"end":{"line":4,"column":13}},"loc":{"start":{"line":4,"column":18},"end":{"line":5,"column":3}},"line":4},"2":{"name":"(anonymous_2)","decl":{"start":{"line":6,"column":12},"end":{"line":6,"column":13}},"loc":{"start":{"line":6,"column":18},"end":{"line":7,"column":3}},"line":6}},"branchMap":{},"s":{"0":1},"f":{"0":0,"1":0,"2":0},"b":{},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/Picker/interface/index.ts"],"sourcesContent":["import { GestureResponderEvent } from \"react-native\";\nimport { lightColor } from \"@xhs/reds-token-next\";\nimport { SheetsType } from \"../../Sheets\";\n\ntype SheetsSize = SheetsType.SheetsSize;\n\nexport interface Column {\n label: string;\n value: string;\n}\nexport interface RedsPicker {\n onConfirm?: (val: string[]) => void;\n onCancel?: () => void;\n onChange?: (val: string[]) => void;\n columns: Column[][];\n value: string[];\n visible: boolean;\n accessibility?: Object;\n hostName?: string;\n bottom?: any;\n}\n\nexport interface RedsPickerEvent {}\nexport const PickerDefaultProps = {\n onConfirm: () => {},\n onCancel: () => {},\n onChange: () => {},\n columns: [],\n value: [],\n visible: false,\n accessibility: {},\n};\n"],"mappings":"AAuBO,aAAM,qBAAqB;AAAA,EAChC,WAAW,MAAM;AAAA,EAAC;AAAA,EAClB,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,SAAS,CAAC;AAAA,EACV,OAAO,CAAC;AAAA,EACR,SAAS;AAAA,EACT,eAAe,CAAC;AAClB;","names":[]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"a054bd43402933bffcf3758b7f508a8aa18b200a"}}
1
+ {"/builds/fe/infra/reds/packages/reds-rn/src/components/Icon/interface/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/Icon/interface/index.ts","statementMap":{"0":{"start":{"line":1,"column":38},"end":{"line":5,"column":18}},"1":{"start":{"line":2,"column":2},"end":{"line":2,"column":27}},"2":{"start":{"line":3,"column":2},"end":{"line":3,"column":31}},"3":{"start":{"line":4,"column":2},"end":{"line":4,"column":19}},"4":{"start":{"line":6,"column":32},"end":{"line":9,"column":1}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":39},"end":{"line":1,"column":40}},"loc":{"start":{"line":1,"column":54},"end":{"line":5,"column":1}},"line":1}},"branchMap":{"0":{"loc":{"start":{"line":5,"column":3},"end":{"line":5,"column":17}},"type":"binary-expr","locations":[{"start":{"line":5,"column":3},"end":{"line":5,"column":11}},{"start":{"line":5,"column":15},"end":{"line":5,"column":17}}],"line":5}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1},"f":{"0":1},"b":{"0":[1,1]},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/Icon/interface/index.ts"],"sourcesContent":["import { GestureResponderEvent, ImageStyle } from \"react-native\";\n\ntype IconFunction = (props: { size: number; fill?: string | string[] }) => string;\n\nexport const enum iconType {\n svg = \"svg\",\n image = \"image\",\n}\nexport interface RedsIcon {\n size?: number;\n fill?: string;\n icon?: IconFunction | string;\n type?: iconType;\n styles?: ImageStyle;\n onClick?: (value: GestureResponderEvent) => void;\n}\n\nexport interface RedsIconEvent {\n onClick?: (value: GestureResponderEvent) => void;\n}\nexport const IconDefaultProps = {\n size: 24,\n type: iconType.svg,\n};\n"],"mappings":"AAIO,WAAW,WAAX,kBAAWA,cAAX;AACL,EAAAA,UAAA,SAAM;AACN,EAAAA,UAAA,WAAQ;AAFQ,SAAAA;AAAA,GAAA;AAgBX,aAAM,mBAAmB;AAAA,EAC9B,MAAM;AAAA,EACN,MAAM;AACR;","names":["iconType"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"81b964ff99f676ac34052449880e62cd29fecc96"},"/builds/fe/infra/reds/packages/reds-rn/src/components/TextField/interface/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/TextField/interface/index.ts","statementMap":{"0":{"start":{"line":2,"column":37},"end":{"line":22,"column":1}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":16,"column":19},"end":{"line":16,"column":20}},"loc":{"start":{"line":16,"column":25},"end":{"line":17,"column":3}},"line":16}},"branchMap":{},"s":{"0":1},"f":{"0":0},"b":{},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/TextField/interface/index.ts"],"sourcesContent":["import { ReactNode } from \"react\";\nimport { iconType } from \"../../Icon/interface\";\nimport { TextStyle, ViewStyle } from \"react-native\";\ntype inputTypeRN = \"default\" | \"number-pad\" | \"decimal-pad\" | \"numeric\" | \"email-address\" | \"phone-pad\" | \"url\";\ntype inputAlignType = \"left\" | \"right\";\ntype TextFieldFormatter = (val: string) => string;\ntype TextFieldFormatTrigger = \"onChange\" | \"onBlur\";\nexport interface RedsTextField {\n modelValue?: string;\n placeholder?: string;\n type?: inputTypeRN;\n maxLength?: number;\n showCount?: boolean;\n isFormItem?: boolean;\n disabled?: boolean;\n readonly?: boolean;\n clearable?: boolean;\n autofocus?: boolean;\n prefix?: ReactNode;\n suffix?: ReactNode;\n inputAlign?: inputAlignType;\n formatter?: TextFieldFormatter;\n formatterTrigger?: TextFieldFormatTrigger;\n iconType?: iconType;\n onChange?: (value: string) => any;\n onClear?: (value: string) => any;\n onFocus?: (event: any) => any;\n onBlur?: (event: any) => any;\n style?: ViewStyle;\n maxLengthStyle?: TextStyle;\n inputStyle?: ViewStyle | ViewStyle[];\n onSubmitEditing?: (nativeEvent: any) => void;\n isControl?: boolean;\n accessibility?: Object;\n placeholderStyle?: Object;\n placeholderTextColor?: String;\n ref?: any;\n clearAccessibility?: Object;\n}\n\nexport interface RedsTextFieldEvent {}\nexport const TextFieldDefaultProps = {\n type: \"default\" as inputTypeRN,\n showCount: false,\n isFormItem: false,\n disabled: false,\n readonly: false,\n clearable: false,\n autofocus: false,\n inputAlign: \"left\" as inputAlignType,\n formatterTrigger: \"onChange\" as TextFieldFormatTrigger,\n iconType: iconType.svg,\n style: {},\n maxLengthStyle: {},\n inputStyle: {},\n onSubmitEditing: () => {},\n isControl: false,\n accessibility: {},\n placeholderStyle: {},\n clearAccessibility: {},\n};\n"],"mappings":"AACA,SAAS,gBAAgB;AAwClB,aAAM,wBAAwB;AAAA,EACnC,MAAM;AAAA,EACN,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,UAAU;AAAA,EACV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,UAAU,SAAS;AAAA,EACnB,OAAO,CAAC;AAAA,EACR,gBAAgB,CAAC;AAAA,EACjB,YAAY,CAAC;AAAA,EACb,iBAAiB,MAAM;AAAA,EAAC;AAAA,EACxB,WAAW;AAAA,EACX,eAAe,CAAC;AAAA,EAChB,kBAAkB,CAAC;AAAA,EACnB,oBAAoB,CAAC;AACvB;","names":[]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"560f4b0b2547d0c93cfb05d705f4c8305eab2333"}}
@@ -1 +1 @@
1
- {"/builds/fe/infra/reds/packages/reds-rn/src/components/Picker/interface/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/Picker/interface/index.ts","statementMap":{"0":{"start":{"line":1,"column":34},"end":{"line":12,"column":1}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":13},"end":{"line":2,"column":14}},"loc":{"start":{"line":2,"column":19},"end":{"line":3,"column":3}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":4,"column":12},"end":{"line":4,"column":13}},"loc":{"start":{"line":4,"column":18},"end":{"line":5,"column":3}},"line":4},"2":{"name":"(anonymous_2)","decl":{"start":{"line":6,"column":12},"end":{"line":6,"column":13}},"loc":{"start":{"line":6,"column":18},"end":{"line":7,"column":3}},"line":6}},"branchMap":{},"s":{"0":1},"f":{"0":0,"1":0,"2":0},"b":{},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/Picker/interface/index.ts"],"sourcesContent":["import { GestureResponderEvent } from \"react-native\";\nimport { lightColor } from \"@xhs/reds-token-next\";\nimport { SheetsType } from \"../../Sheets\";\n\ntype SheetsSize = SheetsType.SheetsSize;\n\nexport interface Column {\n label: string;\n value: string;\n}\nexport interface RedsPicker {\n onConfirm?: (val: string[]) => void;\n onCancel?: () => void;\n onChange?: (val: string[]) => void;\n columns: Column[][];\n value: string[];\n visible: boolean;\n accessibility?: Object;\n hostName?: string;\n bottom?: any;\n}\n\nexport interface RedsPickerEvent {}\nexport const PickerDefaultProps = {\n onConfirm: () => {},\n onCancel: () => {},\n onChange: () => {},\n columns: [],\n value: [],\n visible: false,\n accessibility: {},\n};\n"],"mappings":"AAuBO,aAAM,qBAAqB;AAAA,EAChC,WAAW,MAAM;AAAA,EAAC;AAAA,EAClB,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,SAAS,CAAC;AAAA,EACV,OAAO,CAAC;AAAA,EACR,SAAS;AAAA,EACT,eAAe,CAAC;AAClB;","names":[]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"a054bd43402933bffcf3758b7f508a8aa18b200a"}}
1
+ {"/builds/fe/infra/reds/packages/reds-rn/src/components/Stepper/interface/index.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/Stepper/interface/index.ts","statementMap":{"0":{"start":{"line":1,"column":35},"end":{"line":4,"column":1}}},"fnMap":{},"branchMap":{},"s":{"0":1},"f":{},"b":{},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/Stepper/interface/index.ts"],"sourcesContent":["import { GestureResponderEvent } from \"react-native\";\nimport { lightColor } from \"@xhs/reds-token-next\";\nexport interface RedsStepper {\n value?: number;\n max?: number;\n min?: number;\n disable?: boolean;\n onChange?: (value: number) => any;\n isControl?: boolean;\n style?: any;\n}\n\nexport interface RedsStepperEvent {}\nexport const StepperDefaultProps = {\n disable: false,\n isControl: true,\n};\n"],"mappings":"AAaO,aAAM,sBAAsB;AAAA,EACjC,SAAS;AAAA,EACT,WAAW;AACb;","names":[]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"3425e3501b6767b8b3928f62737b5f0a3338c161"},"/builds/fe/infra/reds/packages/reds-rn/src/components/Stepper/styles.ts":{"path":"/builds/fe/infra/reds/packages/reds-rn/src/components/Stepper/styles.ts","statementMap":{"0":{"start":{"line":2,"column":25},"end":{"line":38,"column":1}},"1":{"start":{"line":3,"column":2},"end":{"line":37,"column":5}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":25},"end":{"line":2,"column":26}},"loc":{"start":{"line":2,"column":53},"end":{"line":38,"column":1}},"line":2}},"branchMap":{},"s":{"0":1,"1":0},"f":{"0":0},"b":{},"inputSourceMap":{"version":3,"sources":["/builds/fe/infra/reds/packages/reds-rn/src/components/Stepper/styles.ts"],"sourcesContent":["import { StyleSheet } from \"react-native\";\nexport const getStyles = (themeColor: any, typography: any) => {\n return StyleSheet.create({\n container: {\n display: \"flex\",\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n width: 72,\n },\n opacity: {\n opacity: 0.5,\n },\n icon: {\n width: 20,\n height: 20,\n backgroundColor: themeColor.Fill1,\n borderRadius: 20,\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n lineHeight: 20,\n },\n text: {\n fontWeight: typography.B1LooseFontWeight,\n fontSize: typography.T3FontSize,\n color: themeColor.Title,\n },\n minus: {\n height: 1.5,\n width: 10,\n },\n add: {\n height: 10,\n width: 10,\n },\n });\n};\n"],"mappings":"AAAA,SAAS,kBAAkB;AACpB,aAAM,YAAY,CAAC,YAAiB,eAAoB;AAC7D,SAAO,WAAW,OAAO;AAAA,IACvB,WAAW;AAAA,MACT,SAAS;AAAA,MACT,eAAe;AAAA,MACf,YAAY;AAAA,MACZ,gBAAgB;AAAA,MAChB,OAAO;AAAA,IACT;AAAA,IACA,SAAS;AAAA,MACP,SAAS;AAAA,IACX;AAAA,IACA,MAAM;AAAA,MACJ,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,iBAAiB,WAAW;AAAA,MAC5B,cAAc;AAAA,MACd,SAAS;AAAA,MACT,gBAAgB;AAAA,MAChB,YAAY;AAAA,MACZ,YAAY;AAAA,IACd;AAAA,IACA,MAAM;AAAA,MACJ,YAAY,WAAW;AAAA,MACvB,UAAU,WAAW;AAAA,MACrB,OAAO,WAAW;AAAA,IACpB;AAAA,IACA,OAAO;AAAA,MACL,QAAQ;AAAA,MACR,OAAO;AAAA,IACT;AAAA,IACA,KAAK;AAAA,MACH,QAAQ;AAAA,MACR,OAAO;AAAA,IACT;AAAA,EACF,CAAC;AACH;","names":[]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"f14da7582aa3cc63bcbee2632badf493e6859d01"}}
@@ -2,37 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var zh_cn = {
6
- componentKey: {
7
- sureKey: "确定",
8
- satisfyKey: "满意",
9
- confirmKey: "确认",
10
- uploadingKey: "上传中",
11
- resetKey: "重置",
12
- NoDataKey: "暂无数据",
13
- liveStreamingKey: "直播",
14
- generallyKey: "一般",
15
- uploadFailedKey: "上传失败",
16
- submitKey: "提交",
17
- requestSuccessfulKey: "请求成功",
18
- cancelKey: "取消",
19
- PullDownToRefreshKey: "下拉刷新",
20
- selectAllKey: "全选",
21
- requestDataKey: "请求数据中",
22
- closeKey: "收起",
23
- veryBadKey: "极差",
24
- searchKey: "搜索",
25
- expandKey: "展开",
26
- IDCardPhotoKey: "身份证人像面",
27
- finishKey: "完成",
28
- surpriseKey: "惊喜",
29
- releaseRefreshKey: "松开刷新",
30
- nationalEmblemSideOfIDCardKey: "身份证国徽面",
31
- buttonKey: "按钮",
32
- jumpKey: "跳转",
33
- disappointmentKey: "失望"
34
- }
35
- };
36
5
  var zh_tw = {
37
6
  componentKey: {
38
7
  sureKey: "確定",
@@ -95,10 +64,41 @@ var en_us = {
95
64
  disappointmentKey: "Disappointment"
96
65
  }
97
66
  };
67
+ var zh_cn = {
68
+ componentKey: {
69
+ sureKey: "确定",
70
+ satisfyKey: "满意",
71
+ confirmKey: "确认",
72
+ uploadingKey: "上传中",
73
+ resetKey: "重置",
74
+ NoDataKey: "暂无数据",
75
+ liveStreamingKey: "直播",
76
+ generallyKey: "一般",
77
+ uploadFailedKey: "上传失败",
78
+ submitKey: "提交",
79
+ requestSuccessfulKey: "请求成功",
80
+ cancelKey: "取消",
81
+ PullDownToRefreshKey: "下拉刷新",
82
+ selectAllKey: "全选",
83
+ requestDataKey: "请求数据中",
84
+ closeKey: "收起",
85
+ veryBadKey: "极差",
86
+ searchKey: "搜索",
87
+ expandKey: "展开",
88
+ IDCardPhotoKey: "身份证人像面",
89
+ finishKey: "完成",
90
+ surpriseKey: "惊喜",
91
+ releaseRefreshKey: "松开刷新",
92
+ nationalEmblemSideOfIDCardKey: "身份证国徽面",
93
+ buttonKey: "按钮",
94
+ jumpKey: "跳转",
95
+ disappointmentKey: "失望"
96
+ }
97
+ };
98
98
  var i18n = {
99
- zh_cn: zh_cn,
100
99
  zh_tw: zh_tw,
101
- en_us: en_us
100
+ en_us: en_us,
101
+ zh_cn: zh_cn
102
102
  };
103
103
 
104
104
  exports.default = i18n;
@@ -1,34 +1,3 @@
1
- var zh_cn = {
2
- componentKey: {
3
- sureKey: "确定",
4
- satisfyKey: "满意",
5
- confirmKey: "确认",
6
- uploadingKey: "上传中",
7
- resetKey: "重置",
8
- NoDataKey: "暂无数据",
9
- liveStreamingKey: "直播",
10
- generallyKey: "一般",
11
- uploadFailedKey: "上传失败",
12
- submitKey: "提交",
13
- requestSuccessfulKey: "请求成功",
14
- cancelKey: "取消",
15
- PullDownToRefreshKey: "下拉刷新",
16
- selectAllKey: "全选",
17
- requestDataKey: "请求数据中",
18
- closeKey: "收起",
19
- veryBadKey: "极差",
20
- searchKey: "搜索",
21
- expandKey: "展开",
22
- IDCardPhotoKey: "身份证人像面",
23
- finishKey: "完成",
24
- surpriseKey: "惊喜",
25
- releaseRefreshKey: "松开刷新",
26
- nationalEmblemSideOfIDCardKey: "身份证国徽面",
27
- buttonKey: "按钮",
28
- jumpKey: "跳转",
29
- disappointmentKey: "失望"
30
- }
31
- };
32
1
  var zh_tw = {
33
2
  componentKey: {
34
3
  sureKey: "確定",
@@ -91,10 +60,41 @@ var en_us = {
91
60
  disappointmentKey: "Disappointment"
92
61
  }
93
62
  };
63
+ var zh_cn = {
64
+ componentKey: {
65
+ sureKey: "确定",
66
+ satisfyKey: "满意",
67
+ confirmKey: "确认",
68
+ uploadingKey: "上传中",
69
+ resetKey: "重置",
70
+ NoDataKey: "暂无数据",
71
+ liveStreamingKey: "直播",
72
+ generallyKey: "一般",
73
+ uploadFailedKey: "上传失败",
74
+ submitKey: "提交",
75
+ requestSuccessfulKey: "请求成功",
76
+ cancelKey: "取消",
77
+ PullDownToRefreshKey: "下拉刷新",
78
+ selectAllKey: "全选",
79
+ requestDataKey: "请求数据中",
80
+ closeKey: "收起",
81
+ veryBadKey: "极差",
82
+ searchKey: "搜索",
83
+ expandKey: "展开",
84
+ IDCardPhotoKey: "身份证人像面",
85
+ finishKey: "完成",
86
+ surpriseKey: "惊喜",
87
+ releaseRefreshKey: "松开刷新",
88
+ nationalEmblemSideOfIDCardKey: "身份证国徽面",
89
+ buttonKey: "按钮",
90
+ jumpKey: "跳转",
91
+ disappointmentKey: "失望"
92
+ }
93
+ };
94
94
  var i18n = {
95
- zh_cn: zh_cn,
96
95
  zh_tw: zh_tw,
97
- en_us: en_us
96
+ en_us: en_us,
97
+ zh_cn: zh_cn
98
98
  };
99
99
 
100
100
  export { i18n as default, en_us, zh_cn, zh_tw };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xhsreds/reds-rn-next",
3
- "version": "0.10.1-beta202512111732",
3
+ "version": "0.10.1-beta202512111822",
4
4
  "author": "贾斌(呀哈) <jiabin@xiaohongshu.com>",
5
5
  "license": "ISC",
6
6
  "dependencies": {
@@ -27,7 +27,7 @@
27
27
  "react-native-svg": "13.14.0",
28
28
  "@xhs/react-native-harmony": "*",
29
29
  "@xhs/reds-components": "*",
30
- "@xhsreds/reds-token-next": "0.10.1-beta202512111732"
30
+ "@xhsreds/reds-token-next": "0.10.1-beta202512111822"
31
31
  },
32
32
  "peerDependenciesMeta": {
33
33
  "ozone-schema-web": {
@@ -26,7 +26,7 @@ ActionSheets size属性继承自sheets组件 容器高度由sheets内部容器
26
26
 
27
27
  ### Events
28
28
 
29
- | 事件 | 描述 | 类型 | 默认值 |
30
- | -------- | ---------- | ---------------------- | ------ |
31
- | onClose | 关闭时触发 | () => any | |
32
- | onChange | 点击时触发 | (value: string) => any | |
29
+ | 事件 | 描述 | 类型 | 默认值 |
30
+ | -------- | ---------- | ------------------------- | ------ |
31
+ | onClose | 关闭时触发 | () =&gt; any | |
32
+ | onChange | 点击时触发 | (value: string) =&gt; any | |
@@ -34,8 +34,8 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
34
34
 
35
35
  ### Events
36
36
 
37
- | 事件 | 描述 | 类型 | 默认值 |
38
- | --------------- | ----------------- | -------------------------------------- | ------ |
39
- | onClickMask | 点击遮罩层时触发 | (evnet: GestureResponderEvent) => void | |
40
- | onVisibleChange | visible改变时触发 | (value: boolean) => void | |
41
- | onClick | visible改变时触发 | (value: string &#124; number) => void | |
37
+ | 事件 | 描述 | 类型 | 默认值 |
38
+ | --------------- | ----------------- | ----------------------------------------- | ------ |
39
+ | onClickMask | 点击遮罩层时触发 | (evnet: GestureResponderEvent) =&gt; void | |
40
+ | onVisibleChange | visible改变时触发 | (value: boolean) =&gt; void | |
41
+ | onClick | visible改变时触发 | (value: string &#124; number) =&gt; void | |
@@ -38,10 +38,10 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
38
38
 
39
39
  ### Events
40
40
 
41
- | 事件 | 描述 | 类型 | 默认值 |
42
- | --------- | ------------------ | -------------------------------------- | ------ |
43
- | onConfirm | 点击确认按钮时触发 | (value: GestureResponderEvent) => void | |
44
- | onCancel | 点击取消按钮时触发 | (value: GestureResponderEvent) => void | |
45
- | onOpen | 打开弹窗时触发 | () => void | |
46
- | onClose | 关闭弹窗时触发 | () => void | |
47
- | onMask | 点击确认按钮时触发 | (value: GestureResponderEvent) => void | |
41
+ | 事件 | 描述 | 类型 | 默认值 |
42
+ | --------- | ------------------ | ----------------------------------------- | ------ |
43
+ | onConfirm | 点击确认按钮时触发 | (value: GestureResponderEvent) =&gt; void | |
44
+ | onCancel | 点击取消按钮时触发 | (value: GestureResponderEvent) =&gt; void | |
45
+ | onOpen | 打开弹窗时触发 | () =&gt; void | |
46
+ | onClose | 关闭弹窗时触发 | () =&gt; void | |
47
+ | onMask | 点击确认按钮时触发 | (value: GestureResponderEvent) =&gt; void | |
@@ -33,7 +33,7 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
33
33
 
34
34
  ### Events
35
35
 
36
- | 事件 | 描述 | 类型 | 默认值 |
37
- | ------------------- | ------------------ | -------------------------------------- | ------ |
38
- | onClick | 被点击时触发 | (value: GestureResponderEvent) => void | |
39
- | onFirstDrawFinished | 第一次渲染结束回调 | () => void | |
36
+ | 事件 | 描述 | 类型 | 默认值 |
37
+ | ------------------- | ------------------ | ----------------------------------------- | ------ |
38
+ | onClick | 被点击时触发 | (value: GestureResponderEvent) =&gt; void | |
39
+ | onFirstDrawFinished | 第一次渲染结束回调 | () =&gt; void | |
@@ -34,7 +34,7 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
34
34
 
35
35
  ### Events
36
36
 
37
- | 事件 | 描述 | 类型 | 默认值 |
38
- | -------- | ------------------ | ----------------------------------- | ------ |
39
- | onChange | 当值发生变化时触发 | (value: any, index: number) => void | |
40
- | onClick | 被点击时触发 | (value: any, index: number) => void | |
37
+ | 事件 | 描述 | 类型 | 默认值 |
38
+ | -------- | ------------------ | -------------------------------------- | ------ |
39
+ | onChange | 当值发生变化时触发 | (value: any, index: number) =&gt; void | |
40
+ | onClick | 被点击时触发 | (value: any, index: number) =&gt; void | |
@@ -25,6 +25,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
25
25
 
26
26
  ### Events
27
27
 
28
- | 事件 | 描述 | 类型 | 默认值 |
29
- | -------- | ------------------ | ----------------------------------------- | ------ |
30
- | onChange | 当值发生变化时触发 | (value: string[] &#124; number[]) => void | |
28
+ | 事件 | 描述 | 类型 | 默认值 |
29
+ | -------- | ------------------ | -------------------------------------------- | ------ |
30
+ | onChange | 当值发生变化时触发 | (value: string[] &#124; number[]) =&gt; void | |
@@ -19,6 +19,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
19
19
 
20
20
  ### Events
21
21
 
22
- | 事件 | 描述 | 类型 | 默认值 |
23
- | -------- | -------------- | -------------------------------------- | ------ |
24
- | onChange | 切换面板时触发 | (activeValue: ActiveValueType) => void | |
22
+ | 事件 | 描述 | 类型 | 默认值 |
23
+ | -------- | -------------- | ----------------------------------------- | ------ |
24
+ | onChange | 切换面板时触发 | (activeValue: ActiveValueType) =&gt; void | |
@@ -10,27 +10,27 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
10
10
 
11
11
  ### Props
12
12
 
13
- | 属性 | 描述 | 类型 | 默认值 |
14
- | ------------- | ----------------------------------------- | ---------------------- | --------------------------- |
15
- | visible | 是否展示datePicker | boolean | false |
16
- | value | 选中值 | string | |
17
- | cancelText | 关闭文案 | string | |
18
- | mode | 模式 | DatePickerMode | DatePickerMode.YearMonthDay |
19
- | startYear | 选择器的最小可选时间,默认为当前时间-10年 | number | |
20
- | endYear | 选择器的最大可选时间,默认为当前时间+10年 | number | |
21
- | startTime | 选择器的最小可选时间,优先级大于startYear | string | |
22
- | endTime | 选择器的最大可选时间,优先级大于endYear | string | |
23
- | label | 标题 | string | |
24
- | formatter | 格式化时间格式 | (value: string) => any | (value: string) => value |
25
- | isDatePattern | 是否返回时间格式数据 | boolean | false |
26
- | closeText | 关闭文案 | string | |
27
- | mask | mask | boolean | |
28
- | hostName | hostName | string | root |
13
+ | 属性 | 描述 | 类型 | 默认值 |
14
+ | ------------- | ----------------------------------------- | ------------------------- | --------------------------- |
15
+ | visible | 是否展示datePicker | boolean | false |
16
+ | value | 选中值 | string | |
17
+ | cancelText | 关闭文案 | string | |
18
+ | mode | 模式 | DatePickerMode | DatePickerMode.YearMonthDay |
19
+ | startYear | 选择器的最小可选时间,默认为当前时间-10年 | number | |
20
+ | endYear | 选择器的最大可选时间,默认为当前时间+10年 | number | |
21
+ | startTime | 选择器的最小可选时间,优先级大于startYear | string | |
22
+ | endTime | 选择器的最大可选时间,优先级大于endYear | string | |
23
+ | label | 标题 | string | |
24
+ | formatter | 格式化时间格式 | (value: string) =&gt; any | (value: string) =&gt; value |
25
+ | isDatePattern | 是否返回时间格式数据 | boolean | false |
26
+ | closeText | 关闭文案 | string | |
27
+ | mask | mask | boolean | |
28
+ | hostName | hostName | string | root |
29
29
 
30
30
  ### Events
31
31
 
32
- | 事件 | 描述 | 类型 | 默认值 |
33
- | --------- | ------------------ | ----------------------- | --------------------- |
34
- | onChange | 当值发生变化时触发 | (value: string) => void | (value: string) => {} |
35
- | onCancel | 取消事件 | () => void | () => {} |
36
- | onConfirm | 确定事件 | (value: string) => void | (value: string) => {} |
32
+ | 事件 | 描述 | 类型 | 默认值 |
33
+ | --------- | ------------------ | -------------------------- | ------------------------ |
34
+ | onChange | 当值发生变化时触发 | (value: string) =&gt; void | (value: string) =&gt; {} |
35
+ | onCancel | 取消事件 | () =&gt; void | () =&gt; {} |
36
+ | onConfirm | 确定事件 | (value: string) =&gt; void | (value: string) =&gt; {} |
@@ -65,9 +65,9 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
65
65
 
66
66
  ### Events
67
67
 
68
- | 事件 | 描述 | 类型 | 默认值 |
69
- | --------- | --------------- | ------------------------------------ | -------- |
70
- | onReset | filter 重置选项 | () => void | () => {} |
71
- | onConfirm | 确定选项 | () => void | () => {} |
72
- | onClose | 关闭 | () => void | () => {} |
73
- | onChange | 选择onChange | (key: string, index: number) => void | () => {} |
68
+ | 事件 | 描述 | 类型 | 默认值 |
69
+ | --------- | --------------- | --------------------------------------- | ----------- |
70
+ | onReset | filter 重置选项 | () =&gt; void | () =&gt; {} |
71
+ | onConfirm | 确定选项 | () =&gt; void | () =&gt; {} |
72
+ | onClose | 关闭 | () =&gt; void | () =&gt; {} |
73
+ | onChange | 选择onChange | (key: string, index: number) =&gt; void | () =&gt; {} |
@@ -20,6 +20,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
20
20
 
21
21
  ### Events
22
22
 
23
- | 事件 | 描述 | 类型 | 默认值 |
24
- | ------- | ------------ | ---------- | ------ |
25
- | onClick | 访问链接操作 | () => void | |
23
+ | 事件 | 描述 | 类型 | 默认值 |
24
+ | ------- | ------------ | ------------- | ------ |
25
+ | onClick | 访问链接操作 | () =&gt; void | |
@@ -28,6 +28,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
28
28
 
29
29
  ### Events
30
30
 
31
- | 事件 | 描述 | 类型 | 默认值 |
32
- | ------- | ------------ | -------------------------------------- | ------ |
33
- | onClick | 被点击时触发 | (value: GestureResponderEvent) => void | |
31
+ | 事件 | 描述 | 类型 | 默认值 |
32
+ | ------- | ------------ | ----------------------------------------- | ------ |
33
+ | onClick | 被点击时触发 | (value: GestureResponderEvent) =&gt; void | |
@@ -23,7 +23,7 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
23
23
 
24
24
  ### Events
25
25
 
26
- | 事件 | 描述 | 类型 | 默认值 |
27
- | -------- | -------------- | -------------------------------------- | ------ |
28
- | onSubmit | 点击提交时触发 | (value: FormData, errors: any) => void | |
29
- | onError | 有错误时触发 | (error: any, data: FormData) => void | |
26
+ | 事件 | 描述 | 类型 | 默认值 |
27
+ | -------- | -------------- | ----------------------------------------- | ------ |
28
+ | onSubmit | 点击提交时触发 | (value: FormData, errors: any) =&gt; void | |
29
+ | onError | 有错误时触发 | (error: any, data: FormData) =&gt; void | |
@@ -24,6 +24,6 @@ Jfrog平台查一下最新@xhs/reder-icon-svg-ReDs_icon版本项目中引入 按
24
24
 
25
25
  ### Events
26
26
 
27
- | 事件 | 描述 | 类型 | 默认值 |
28
- | ------- | ------------ | -------------------------------------- | ------ |
29
- | onClick | 被点击时触发 | (value: GestureResponderEvent) => void | |
27
+ | 事件 | 描述 | 类型 | 默认值 |
28
+ | ------- | ------------ | ----------------------------------------- | ------ |
29
+ | onClick | 被点击时触发 | (value: GestureResponderEvent) =&gt; void | |
@@ -28,7 +28,7 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
28
28
 
29
29
  ### Events
30
30
 
31
- | 事件 | 描述 | 类型 | 默认值 |
32
- | ------------------- | ------------------ | ---------------------------------- | -------- |
33
- | onReload | 重新加载时触发 | (v: GestureResponderEvent) => void | |
34
- | onFirstDrawFinished | 第一次渲染结束回调 | (e: Event) => void | () => {} |
31
+ | 事件 | 描述 | 类型 | 默认值 |
32
+ | ------------------- | ------------------ | ------------------------------------- | ----------- |
33
+ | onReload | 重新加载时触发 | (v: GestureResponderEvent) =&gt; void | |
34
+ | onFirstDrawFinished | 第一次渲染结束回调 | (e: Event) =&gt; void | () =&gt; {} |
@@ -22,6 +22,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
22
22
 
23
23
  ### Events
24
24
 
25
- | 事件 | 描述 | 类型 | 默认值 |
26
- | ------- | -------- | ---------- | ------ |
27
- | onClick | 点击事件 | () => void | |
25
+ | 事件 | 描述 | 类型 | 默认值 |
26
+ | ------- | -------- | ------------- | ------ |
27
+ | onClick | 点击事件 | () =&gt; void | |
@@ -26,7 +26,7 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
26
26
 
27
27
  ### Events
28
28
 
29
- | 事件 | 描述 | 类型 | 默认值 |
30
- | ------- | ------------ | ---------- | ------ |
31
- | onClose | 关闭容器 | () => void | |
32
- | onClick | 被点击时触发 | () => void | |
29
+ | 事件 | 描述 | 类型 | 默认值 |
30
+ | ------- | ------------ | ------------- | ------ |
31
+ | onClose | 关闭容器 | () =&gt; void | |
32
+ | onClick | 被点击时触发 | () =&gt; void | |
@@ -21,8 +21,8 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
21
21
 
22
22
  ### Events
23
23
 
24
- | 事件 | 描述 | 类型 | 默认值 |
25
- | --------- | ---------------- | ----------------------- | -------- |
26
- | onConfirm | 确定回调 | (val: string[]) => void | () => {} |
27
- | onCancel | 取消回调 | () => void | () => {} |
28
- | onChange | 选择选项改变回调 | (val: string[]) => void | () => {} |
24
+ | 事件 | 描述 | 类型 | 默认值 |
25
+ | --------- | ---------------- | -------------------------- | ----------- |
26
+ | onConfirm | 确定回调 | (val: string[]) =&gt; void | () =&gt; {} |
27
+ | onCancel | 取消回调 | () =&gt; void | () =&gt; {} |
28
+ | onChange | 选择选项改变回调 | (val: string[]) =&gt; void | () =&gt; {} |
@@ -19,6 +19,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
19
19
 
20
20
  ### Events
21
21
 
22
- | 事件 | 描述 | 类型 | 默认值 |
23
- | -------- | -------- | ----------------------- | -------- |
24
- | onChange | 选择变化 | (val: string[]) => void | () => {} |
22
+ | 事件 | 描述 | 类型 | 默认值 |
23
+ | -------- | -------- | -------------------------- | ----------- |
24
+ | onChange | 选择变化 | (val: string[]) =&gt; void | () =&gt; {} |
@@ -12,7 +12,7 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
12
12
  | ------------------ | --------------------------------- | --------------------------------------------------------------------------------------------------- | --------------- |
13
13
  | visible | 是否显示气泡 | boolean | undefined |
14
14
  | placement | 气泡方向 | "top-start" &#124; "top" &#124; "top-end" &#124; "bottom-start" &#124; "bottom" &#124; "bottom-end" | top |
15
- | content | 弹出内容 | ReactNode &#124; (() => ReactNode) | |
15
+ | content | 弹出内容 | ReactNode &#124; (() =&gt; ReactNode) | |
16
16
  | opacity | 遮罩透明度 | number | 0 |
17
17
  | mode | 主题色 | "light" &#124; "dark" &#124; "alwaysLight" &#124; "alwaysDark" | light |
18
18
  | trigger | 触发方式 | "click" &#124; "touch" | click |
@@ -33,7 +33,7 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
33
33
 
34
34
  ### Events
35
35
 
36
- | 事件 | 描述 | 类型 | 默认值 |
37
- | --------------- | ----------------- | -------------------------------------- | ------ |
38
- | onClickMask | 点击遮罩层时触发 | (evnet: GestureResponderEvent) => void | |
39
- | onVisibleChange | visible改变时触发 | (value: boolean) => void | |
36
+ | 事件 | 描述 | 类型 | 默认值 |
37
+ | --------------- | ----------------- | ----------------------------------------- | ------ |
38
+ | onClickMask | 点击遮罩层时触发 | (evnet: GestureResponderEvent) =&gt; void | |
39
+ | onVisibleChange | visible改变时触发 | (value: boolean) =&gt; void | |
@@ -25,16 +25,16 @@ import ProgressDemo from "!!raw-loader!../demo/progress.tsx";
25
25
 
26
26
  ### Props
27
27
 
28
- | 属性 | 描述 | 类型 | 默认值 |
29
- | ------------ | -------------- | -------------------------------------- | ------------------------------------------------------------- |
30
- | percent | 当前进度 | number | 0 |
31
- | showPercent | 展示文字 | boolean | true |
32
- | textStyle | 字体样式 | any | |
33
- | formatText | 进度条文字函数 | (percent: number) => string | (percent: number) => (percent > 100 ? "100%" : percent + "%") |
34
- | size | 进度条尺寸 | number | |
35
- | type | 类型 | string | default |
36
- | strokeColor | 边框颜色 | "dark" &#124; "light" &#124; "primary" | |
37
- | strokeWidth | 边框宽度 | number | |
38
- | lottieSource | lottie自定义 | string | |
28
+ | 属性 | 描述 | 类型 | 默认值 |
29
+ | ------------ | -------------- | -------------------------------------- | ---------------------------------------------------------------- |
30
+ | percent | 当前进度 | number | 0 |
31
+ | showPercent | 展示文字 | boolean | true |
32
+ | textStyle | 字体样式 | any | |
33
+ | formatText | 进度条文字函数 | (percent: number) =&gt; string | (percent: number) =&gt; (percent > 100 ? "100%" : percent + "%") |
34
+ | size | 进度条尺寸 | number | |
35
+ | type | 类型 | string | default |
36
+ | strokeColor | 边框颜色 | "dark" &#124; "light" &#124; "primary" | |
37
+ | strokeWidth | 边框宽度 | number | |
38
+ | lottieSource | lottie自定义 | string | |
39
39
 
40
40
  ### Events
@@ -32,6 +32,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
32
32
 
33
33
  ### Events
34
34
 
35
- | 事件 | 描述 | 类型 | 默认值 |
36
- | --------- | ------------------ | ---------- | ------ |
37
- | onRequest | 下拉执行的请求函数 | () => void | |
35
+ | 事件 | 描述 | 类型 | 默认值 |
36
+ | --------- | ------------------ | ------------- | ------ |
37
+ | onRequest | 下拉执行的请求函数 | () =&gt; void | |
@@ -32,6 +32,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
32
32
 
33
33
  ### Events
34
34
 
35
- | 事件 | 描述 | 类型 | 默认值 |
36
- | ------- | -------- | ----------------------- | ------ |
37
- | onClick | 点击事件 | (value: string) => void | |
35
+ | 事件 | 描述 | 类型 | 默认值 |
36
+ | ------- | -------- | -------------------------- | ------ |
37
+ | onClick | 点击事件 | (value: string) =&gt; void | |