wz-h5-design 1.0.6 → 1.0.8

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 (174) hide show
  1. package/dist/Button/index.js +11 -2
  2. package/dist/Button/index.umd.cjs +1 -1
  3. package/dist/Button/style/index.css +1 -1
  4. package/dist/Button/style.css +1 -1
  5. package/dist/Cell/iconfont-B9h4iRmM.js +35 -0
  6. package/dist/Cell/iconfont-B_mx7ld3.js +35 -0
  7. package/dist/Cell/iconfont-CRbFpV7z.js +35 -0
  8. package/dist/Cell/iconfont-CXxMq4G2.js +35 -0
  9. package/dist/Cell/iconfont-De-ylfev.js +35 -0
  10. package/dist/Cell/index.js +43 -12
  11. package/dist/Cell/index.umd.cjs +2 -2
  12. package/dist/Cell/style/index.css +1 -1
  13. package/dist/Cell/style.css +1 -1
  14. package/dist/CheckList/iconfont-B9h4iRmM.js +35 -0
  15. package/dist/CheckList/iconfont-B_mx7ld3.js +35 -0
  16. package/dist/CheckList/iconfont-CRbFpV7z.js +35 -0
  17. package/dist/CheckList/iconfont-CXxMq4G2.js +35 -0
  18. package/dist/CheckList/iconfont-De-ylfev.js +35 -0
  19. package/dist/CheckList/index.js +43 -12
  20. package/dist/CheckList/index.umd.cjs +1 -1
  21. package/dist/CheckList/style.css +1 -1
  22. package/dist/Checkbox/iconfont-B9h4iRmM.js +35 -0
  23. package/dist/Checkbox/iconfont-B_mx7ld3.js +35 -0
  24. package/dist/Checkbox/iconfont-CRbFpV7z.js +35 -0
  25. package/dist/Checkbox/iconfont-CXxMq4G2.js +35 -0
  26. package/dist/Checkbox/iconfont-De-ylfev.js +35 -0
  27. package/dist/Checkbox/index.js +43 -13
  28. package/dist/Checkbox/index.umd.cjs +1 -1
  29. package/dist/Checkbox/style.css +1 -1
  30. package/dist/DateRangePicker/iconfont-B9h4iRmM.js +35 -0
  31. package/dist/DateRangePicker/iconfont-B_mx7ld3.js +35 -0
  32. package/dist/DateRangePicker/iconfont-CRbFpV7z.js +35 -0
  33. package/dist/DateRangePicker/iconfont-CXxMq4G2.js +35 -0
  34. package/dist/DateRangePicker/iconfont-De-ylfev.js +35 -0
  35. package/dist/DateRangePicker/index.js +43 -13
  36. package/dist/DateRangePicker/index.umd.cjs +1 -1
  37. package/dist/DateRangePicker/style.css +1 -1
  38. package/dist/DemoLayout/index.js +92 -0
  39. package/dist/DemoLayout/index.umd.cjs +1 -0
  40. package/dist/Dialog/index.js +11 -2
  41. package/dist/Dialog/index.umd.cjs +2 -2
  42. package/dist/Dialog/style.css +1 -1
  43. package/dist/Divider/index.js +2 -2
  44. package/dist/Divider/index.umd.cjs +1 -1
  45. package/dist/DropDownMenu/iconfont-B9h4iRmM.js +35 -0
  46. package/dist/DropDownMenu/iconfont-B_mx7ld3.js +35 -0
  47. package/dist/DropDownMenu/iconfont-CRbFpV7z.js +35 -0
  48. package/dist/DropDownMenu/iconfont-CXxMq4G2.js +35 -0
  49. package/dist/DropDownMenu/iconfont-De-ylfev.js +35 -0
  50. package/dist/DropDownMenu/index.js +43 -13
  51. package/dist/DropDownMenu/index.umd.cjs +1 -1
  52. package/dist/DropDownMenu/style.css +1 -1
  53. package/dist/Icon/iconfont-B9h4iRmM.js +35 -0
  54. package/dist/Icon/iconfont-B_mx7ld3.js +35 -0
  55. package/dist/Icon/iconfont-CRbFpV7z.js +35 -0
  56. package/dist/Icon/iconfont-CXxMq4G2.js +35 -0
  57. package/dist/Icon/iconfont-De-ylfev.js +35 -0
  58. package/dist/Icon/index.js +43 -12
  59. package/dist/Icon/index.umd.cjs +1 -1
  60. package/dist/Icon/style/index.css +1 -1
  61. package/dist/Icon/style.css +1 -1
  62. package/dist/Input/iconfont-B9h4iRmM.js +35 -0
  63. package/dist/Input/iconfont-B_mx7ld3.js +35 -0
  64. package/dist/Input/iconfont-CRbFpV7z.js +35 -0
  65. package/dist/Input/iconfont-CXxMq4G2.js +35 -0
  66. package/dist/Input/iconfont-De-ylfev.js +35 -0
  67. package/dist/Input/index.js +43 -13
  68. package/dist/Input/index.umd.cjs +1 -1
  69. package/dist/Input/style.css +1 -1
  70. package/dist/NavBar/iconfont-B9h4iRmM.js +35 -0
  71. package/dist/NavBar/iconfont-B_mx7ld3.js +35 -0
  72. package/dist/NavBar/iconfont-CRbFpV7z.js +35 -0
  73. package/dist/NavBar/iconfont-CXxMq4G2.js +35 -0
  74. package/dist/NavBar/iconfont-De-ylfev.js +35 -0
  75. package/dist/NavBar/index.js +43 -13
  76. package/dist/NavBar/index.umd.cjs +2 -2
  77. package/dist/NavBar/style.css +1 -1
  78. package/dist/Radio/iconfont-B9h4iRmM.js +35 -0
  79. package/dist/Radio/iconfont-B_mx7ld3.js +35 -0
  80. package/dist/Radio/iconfont-CRbFpV7z.js +35 -0
  81. package/dist/Radio/iconfont-CXxMq4G2.js +35 -0
  82. package/dist/Radio/iconfont-De-ylfev.js +35 -0
  83. package/dist/Radio/index.js +43 -13
  84. package/dist/Radio/index.umd.cjs +1 -1
  85. package/dist/Radio/style.css +1 -1
  86. package/dist/Search/iconfont-B9h4iRmM.js +35 -0
  87. package/dist/Search/iconfont-B_mx7ld3.js +35 -0
  88. package/dist/Search/iconfont-CRbFpV7z.js +35 -0
  89. package/dist/Search/iconfont-CXxMq4G2.js +35 -0
  90. package/dist/Search/iconfont-De-ylfev.js +35 -0
  91. package/dist/Search/index.js +49 -16
  92. package/dist/Search/index.umd.cjs +1 -1
  93. package/dist/Search/style/index.css +1 -1
  94. package/dist/Search/style.css +1 -1
  95. package/dist/Stepper/iconfont-B9h4iRmM.js +35 -0
  96. package/dist/Stepper/iconfont-B_mx7ld3.js +35 -0
  97. package/dist/Stepper/iconfont-CRbFpV7z.js +35 -0
  98. package/dist/Stepper/iconfont-CXxMq4G2.js +35 -0
  99. package/dist/Stepper/iconfont-De-ylfev.js +35 -0
  100. package/dist/Stepper/index.js +43 -13
  101. package/dist/Stepper/index.umd.cjs +1 -1
  102. package/dist/Stepper/style/index.css +1 -1
  103. package/dist/Stepper/style.css +1 -1
  104. package/dist/Tabbar/iconfont-B9h4iRmM.js +35 -0
  105. package/dist/Tabbar/iconfont-B_mx7ld3.js +35 -0
  106. package/dist/Tabbar/iconfont-CRbFpV7z.js +35 -0
  107. package/dist/Tabbar/iconfont-CXxMq4G2.js +35 -0
  108. package/dist/Tabbar/iconfont-De-ylfev.js +35 -0
  109. package/dist/Tabbar/index.js +43 -13
  110. package/dist/Tabbar/index.umd.cjs +2 -2
  111. package/dist/Tabbar/style.css +1 -1
  112. package/dist/Tag/index.js +17 -4
  113. package/dist/Tag/index.umd.cjs +2 -2
  114. package/dist/Tag/style/index.css +1 -1
  115. package/dist/Tag/style.css +1 -1
  116. package/dist/Tip/iconfont-B9h4iRmM.js +35 -0
  117. package/dist/Tip/iconfont-B_mx7ld3.js +35 -0
  118. package/dist/Tip/iconfont-CRbFpV7z.js +35 -0
  119. package/dist/Tip/iconfont-CXxMq4G2.js +35 -0
  120. package/dist/Tip/iconfont-De-ylfev.js +35 -0
  121. package/dist/Tip/index.js +43 -13
  122. package/dist/Tip/index.umd.cjs +2 -2
  123. package/dist/Tip/style.css +1 -1
  124. package/dist/Toast/iconfont-B9h4iRmM.js +35 -0
  125. package/dist/Toast/iconfont-B_mx7ld3.js +35 -0
  126. package/dist/Toast/iconfont-CRbFpV7z.js +35 -0
  127. package/dist/Toast/iconfont-CXxMq4G2.js +35 -0
  128. package/dist/Toast/iconfont-De-ylfev.js +35 -0
  129. package/dist/Toast/index.js +42 -12
  130. package/dist/Toast/index.umd.cjs +2 -2
  131. package/dist/Toast/style.css +1 -1
  132. package/dist/Tooltip/iconfont-B9h4iRmM.js +35 -0
  133. package/dist/Tooltip/iconfont-B_mx7ld3.js +35 -0
  134. package/dist/Tooltip/iconfont-CRbFpV7z.js +35 -0
  135. package/dist/Tooltip/iconfont-CXxMq4G2.js +35 -0
  136. package/dist/Tooltip/iconfont-De-ylfev.js +35 -0
  137. package/dist/Tooltip/index.js +43 -13
  138. package/dist/Tooltip/index.umd.cjs +2 -2
  139. package/dist/Tooltip/style.css +1 -1
  140. package/dist/assets/fonts/qitu/iconfont.css +11 -3
  141. package/dist/assets/fonts/qitu/iconfont.ttf +0 -0
  142. package/dist/assets/fonts/qitu/iconfont.woff +0 -0
  143. package/dist/assets/fonts/qitu/iconfont.woff2 +0 -0
  144. package/dist/assets/fonts/qituyonghu/iconfont.css +39 -3
  145. package/dist/assets/fonts/qituyonghu/iconfont.ttf +0 -0
  146. package/dist/assets/fonts/qituyonghu/iconfont.woff +0 -0
  147. package/dist/assets/fonts/qituyonghu/iconfont.woff2 +0 -0
  148. package/dist/assets/fonts/wzdaili/iconfont.css +3 -3
  149. package/dist/assets/fonts/wzdaili/iconfont.ttf +0 -0
  150. package/dist/assets/fonts/wzdaili/iconfont.woff +0 -0
  151. package/dist/assets/fonts/wzdaili/iconfont.woff2 +0 -0
  152. package/dist/assets/fonts/wzyonghu/iconfont.css +11 -3
  153. package/dist/assets/fonts/wzyonghu/iconfont.ttf +0 -0
  154. package/dist/assets/fonts/wzyonghu/iconfont.woff +0 -0
  155. package/dist/assets/fonts/wzyonghu/iconfont.woff2 +0 -0
  156. package/dist/assets/fonts/yunying/iconfont.css +7 -3
  157. package/dist/assets/fonts/yunying/iconfont.ttf +0 -0
  158. package/dist/assets/fonts/yunying/iconfont.woff +0 -0
  159. package/dist/assets/fonts/yunying/iconfont.woff2 +0 -0
  160. package/dist/iconfont-B9h4iRmM.js +35 -0
  161. package/dist/iconfont-B_mx7ld3.js +35 -0
  162. package/dist/iconfont-CRbFpV7z.js +35 -0
  163. package/dist/iconfont-CXxMq4G2.js +35 -0
  164. package/dist/iconfont-De-ylfev.js +35 -0
  165. package/dist/style.css +1 -1
  166. package/dist/types/components/Button/Button.d.ts +2 -0
  167. package/dist/types/components/DemoLayout/index.d.ts +30 -0
  168. package/dist/types/components/Icon/icon-data.d.ts +5 -11
  169. package/dist/types/components/Icon/icon-types.d.ts +12 -0
  170. package/dist/types/components/Tag/Tag.d.ts +8 -0
  171. package/dist/types/components/index.d.ts +2 -1
  172. package/dist/wz-h5-design.es.js +170 -26
  173. package/dist/wz-h5-design.umd.js +2 -2
  174. package/package.json +1 -1
@@ -8,9 +8,11 @@ export interface ButtonProps {
8
8
  color?: string;
9
9
  textColor?: string;
10
10
  borderColor?: string;
11
+ borderOpacity?: number;
11
12
  width?: string | number;
12
13
  height?: string | number;
13
14
  fontSize?: string | number;
15
+ borderRadius?: string | number;
14
16
  className?: string;
15
17
  style?: React.CSSProperties;
16
18
  children?: React.ReactNode;
@@ -0,0 +1,30 @@
1
+ import React from "react";
2
+ export interface DemoContainerProps {
3
+ children: React.ReactNode;
4
+ style?: React.CSSProperties;
5
+ }
6
+ export declare const DemoContainer: React.FC<DemoContainerProps>;
7
+ export interface DemoSectionProps {
8
+ title: string;
9
+ children: React.ReactNode;
10
+ style?: React.CSSProperties;
11
+ }
12
+ export declare const DemoSection: React.FC<DemoSectionProps>;
13
+ export interface DemoRowProps {
14
+ children: React.ReactNode;
15
+ gap?: number | string;
16
+ noMargin?: boolean;
17
+ style?: React.CSSProperties;
18
+ }
19
+ export declare const DemoRow: React.FC<DemoRowProps>;
20
+ export interface DemoSubTitleProps {
21
+ children: React.ReactNode;
22
+ style?: React.CSSProperties;
23
+ }
24
+ export declare const DemoSubTitle: React.FC<DemoSubTitleProps>;
25
+ export interface DemoIconItemProps {
26
+ icon: React.ReactNode;
27
+ label?: string;
28
+ style?: React.CSSProperties;
29
+ }
30
+ export declare const DemoIconItem: React.FC<DemoIconItemProps>;
@@ -1,22 +1,16 @@
1
1
  /**
2
- * 自动生成的图标数据和类型定义
2
+ * 自动生成的图标数据
3
3
  * 请勿手动修改此文件
4
4
  * 运行 npm run extract-icons 重新生成
5
5
  */
6
6
  export declare const ICON_MAP: {
7
- readonly qitu: readonly ["check", "close", "close-outline", "danxuankuang_sel", "date", "dingdan", "dropdown", "edit", "eyes-close", "eyes-open", "info", "jia", "jian", "jinjianchuyong", "map", "minus-sign", "next2beifen", "no-data", "plus-sign", "radio-nor", "remove", "shebei_nor", "shebei_sel", "shenhezhong1", "shouye_nor", "shouye_sel", "sousuo", "tel", "wode_nor", "wode_sel", "zhandiantubiao"];
8
- readonly qituyonghu: readonly ["check-round", "dangqianweizhi", "dropdown", "huan", "huanche1", "jia", "jinjianchuyong", "radio-nor", "song", "tuijian", "xiangji", "xuanzhong"];
7
+ readonly qitu: readonly ["bianzu", "check", "chekuanguanli", "close", "close-outline", "danxuankuang_sel", "date", "dingdan", "dropdown", "edit", "eyes-close", "eyes-open", "info", "jia", "jian", "jinjianchuyong", "map", "minus-sign", "next2beifen", "no-data", "plus-sign", "radio-nor", "remove", "shebei_nor", "shebei_sel", "shenhezhong1", "shouye_nor", "shouye_sel", "sousuo", "tel", "wode_nor", "wode_sel", "zhandiantubiao"];
8
+ readonly qituyonghu: readonly ["check-round", "chongzhidingdan", "dangqianweizhi", "dingdan", "dropdown", "huan", "huanche1", "info", "jia", "jian", "jinjianchuyong", "no-data", "radio-nor", "song", "tuijian", "xiangji", "xuanzhong", "yichaoshi", "yiguoqi", "yilixian", "yizuchu"];
9
9
  readonly wzdaili: readonly ["bukekan", "chongdiandingdan", "chongzhidingdan", "kaquanguanli", "kekan", "shebeiguanli", "shenhezhong", "shujuzonglan", "xiazaizhongxin", "xufeidingdan", "yunyingshangguanli", "zengzhishouyifenzhang", "zhanghaoguanli", "zhifuquanxianguanli"];
10
- readonly wzyonghu: readonly ["bangdingshoujihao", "chongdianbangzhu", "chongdianjilu", "chongdianwuyou", "daohang", "guanyuwanzhuang", "guzhangshangbao", "ic_notify_close", "jiantou", "jiaoyijilu", "lianxikefu", "shoucangshebei", "shouqi", "sousuo", "wanzhuangshangcheng", "wodechongdianquan", "wodedianka", "woyaodaili", "xialashaixuan", "xialashaixuan1"];
11
- readonly yunying: readonly ["batch-operation", "bianzu", "bofanganniu", "bulletin", "chart", "check", "check-circle", "check-round", "checkbox", "checkbox-checked", "checkbox-indet", "clear", "close", "close-outline", "code", "daochu1", "date", "del", "delete", "device-group", "device_nor", "device_sel", "dianliangmoshi", "dingdan", "download", "drag", "dropdown", "edit", "eyes-close", "eyes-open", "filter", "fujianwenjian", "fujianwenjian-shibai", "fuxuan_disable", "fuxuan_nor", "fuxuan_sel", "gongshuaimoshi", "home_nor", "home_sel", "info", "info-outline", "jia", "jian", "list-down", "list-up", "map", "minus-sign", "next", "no-data", "notice", "order_nor", "order_sel", "piliangcaozuo", "plus", "plus-sign", "question", "question-round", "radio-nor", "radio-sel", "refresh", "remove", "right-arrow", "scan", "share", "sousuo", "tel", "time", "user_nor", "user_sel", "warning", "weixuanzemoshi", "xiangji"];
10
+ readonly wzyonghu: readonly ["bangdingshoujihao", "chongdianbangzhu", "chongdianjilu", "chongdianwuyou", "daohang", "guanyuwanzhuang", "guzhangshangbao", "ic_notify_close", "info-outline", "jiantou", "jiantou-copy", "jiaoyijilu", "lianxikefu", "shoucangshebei", "shouqi", "sousuo", "wanzhuangshangcheng", "wodechongdianquan", "wodedianka", "woyaodaili", "xialashaixuan", "xialashaixuan1"];
11
+ readonly yunying: readonly ["batch-operation", "bianzu", "bofanganniu", "bulletin", "chart", "check", "check-circle", "check-round", "checkbox", "checkbox-checked", "checkbox-indet", "clear", "close", "close-outline", "code", "daochu1", "date", "del", "delete", "device-group", "device_nor", "device_sel", "dianliangmoshi", "dingdan", "download", "drag", "dropdown", "edit", "eyes-close", "eyes-open", "filter", "fujianwenjian", "fujianwenjian-shibai", "fuxuan_disable", "fuxuan_nor", "fuxuan_sel", "gongshuaimoshi", "home_nor", "home_sel", "info", "info-outline", "jia", "jian", "list-down", "list-up", "map", "minus-sign", "next", "no-data", "notice", "order_nor", "order_sel", "piliangcaozuo", "plus", "plus-sign", "question", "question-circle", "question-round", "radio-nor", "radio-sel", "refresh", "remove", "right-arrow", "scan", "share", "sousuo", "tel", "time", "user_nor", "user_sel", "warning", "weixuanzemoshi", "xiangji"];
12
12
  };
13
13
  export type IconType = 'qitu' | 'qituyonghu' | 'wzdaili' | 'wzyonghu' | 'yunying';
14
- export type QituIconName = 'check' | 'close' | 'close-outline' | 'danxuankuang_sel' | 'date' | 'dingdan' | 'dropdown' | 'edit' | 'eyes-close' | 'eyes-open' | 'info' | 'jia' | 'jian' | 'jinjianchuyong' | 'map' | 'minus-sign' | 'next2beifen' | 'no-data' | 'plus-sign' | 'radio-nor' | 'remove' | 'shebei_nor' | 'shebei_sel' | 'shenhezhong1' | 'shouye_nor' | 'shouye_sel' | 'sousuo' | 'tel' | 'wode_nor' | 'wode_sel' | 'zhandiantubiao';
15
- export type QituyonghuIconName = 'check-round' | 'dangqianweizhi' | 'dropdown' | 'huan' | 'huanche1' | 'jia' | 'jinjianchuyong' | 'radio-nor' | 'song' | 'tuijian' | 'xiangji' | 'xuanzhong';
16
- export type WzdailiIconName = 'bukekan' | 'chongdiandingdan' | 'chongzhidingdan' | 'kaquanguanli' | 'kekan' | 'shebeiguanli' | 'shenhezhong' | 'shujuzonglan' | 'xiazaizhongxin' | 'xufeidingdan' | 'yunyingshangguanli' | 'zengzhishouyifenzhang' | 'zhanghaoguanli' | 'zhifuquanxianguanli';
17
- export type WzyonghuIconName = 'bangdingshoujihao' | 'chongdianbangzhu' | 'chongdianjilu' | 'chongdianwuyou' | 'daohang' | 'guanyuwanzhuang' | 'guzhangshangbao' | 'ic_notify_close' | 'jiantou' | 'jiaoyijilu' | 'lianxikefu' | 'shoucangshebei' | 'shouqi' | 'sousuo' | 'wanzhuangshangcheng' | 'wodechongdianquan' | 'wodedianka' | 'woyaodaili' | 'xialashaixuan' | 'xialashaixuan1';
18
- export type YunyingIconName = 'batch-operation' | 'bianzu' | 'bofanganniu' | 'bulletin' | 'chart' | 'check' | 'check-circle' | 'check-round' | 'checkbox' | 'checkbox-checked' | 'checkbox-indet' | 'clear' | 'close' | 'close-outline' | 'code' | 'daochu1' | 'date' | 'del' | 'delete' | 'device-group' | 'device_nor' | 'device_sel' | 'dianliangmoshi' | 'dingdan' | 'download' | 'drag' | 'dropdown' | 'edit' | 'eyes-close' | 'eyes-open' | 'filter' | 'fujianwenjian' | 'fujianwenjian-shibai' | 'fuxuan_disable' | 'fuxuan_nor' | 'fuxuan_sel' | 'gongshuaimoshi' | 'home_nor' | 'home_sel' | 'info' | 'info-outline' | 'jia' | 'jian' | 'list-down' | 'list-up' | 'map' | 'minus-sign' | 'next' | 'no-data' | 'notice' | 'order_nor' | 'order_sel' | 'piliangcaozuo' | 'plus' | 'plus-sign' | 'question' | 'question-round' | 'radio-nor' | 'radio-sel' | 'refresh' | 'remove' | 'right-arrow' | 'scan' | 'share' | 'sousuo' | 'tel' | 'time' | 'user_nor' | 'user_sel' | 'warning' | 'weixuanzemoshi' | 'xiangji';
19
- export type IconName = QituIconName | QituyonghuIconName | WzdailiIconName | WzyonghuIconName | YunyingIconName;
20
14
  /**
21
15
  * 获取指定类型的所有图标名称
22
16
  */
@@ -0,0 +1,12 @@
1
+ /**
2
+ * 自动生成的图标类型定义
3
+ * 请勿手动修改此文件
4
+ * 运行 npm run extract-icons 重新生成
5
+ */
6
+ export type IconType = 'qitu' | 'qituyonghu' | 'wzdaili' | 'wzyonghu' | 'yunying';
7
+ export type QituIconName = 'bianzu' | 'check' | 'chekuanguanli' | 'close' | 'close-outline' | 'danxuankuang_sel' | 'date' | 'dingdan' | 'dropdown' | 'edit' | 'eyes-close' | 'eyes-open' | 'info' | 'jia' | 'jian' | 'jinjianchuyong' | 'map' | 'minus-sign' | 'next2beifen' | 'no-data' | 'plus-sign' | 'radio-nor' | 'remove' | 'shebei_nor' | 'shebei_sel' | 'shenhezhong1' | 'shouye_nor' | 'shouye_sel' | 'sousuo' | 'tel' | 'wode_nor' | 'wode_sel' | 'zhandiantubiao';
8
+ export type QituyonghuIconName = 'check-round' | 'chongzhidingdan' | 'dangqianweizhi' | 'dingdan' | 'dropdown' | 'huan' | 'huanche1' | 'info' | 'jia' | 'jian' | 'jinjianchuyong' | 'no-data' | 'radio-nor' | 'song' | 'tuijian' | 'xiangji' | 'xuanzhong' | 'yichaoshi' | 'yiguoqi' | 'yilixian' | 'yizuchu';
9
+ export type WzdailiIconName = 'bukekan' | 'chongdiandingdan' | 'chongzhidingdan' | 'kaquanguanli' | 'kekan' | 'shebeiguanli' | 'shenhezhong' | 'shujuzonglan' | 'xiazaizhongxin' | 'xufeidingdan' | 'yunyingshangguanli' | 'zengzhishouyifenzhang' | 'zhanghaoguanli' | 'zhifuquanxianguanli';
10
+ export type WzyonghuIconName = 'bangdingshoujihao' | 'chongdianbangzhu' | 'chongdianjilu' | 'chongdianwuyou' | 'daohang' | 'guanyuwanzhuang' | 'guzhangshangbao' | 'ic_notify_close' | 'info-outline' | 'jiantou' | 'jiantou-copy' | 'jiaoyijilu' | 'lianxikefu' | 'shoucangshebei' | 'shouqi' | 'sousuo' | 'wanzhuangshangcheng' | 'wodechongdianquan' | 'wodedianka' | 'woyaodaili' | 'xialashaixuan' | 'xialashaixuan1';
11
+ export type YunyingIconName = 'batch-operation' | 'bianzu' | 'bofanganniu' | 'bulletin' | 'chart' | 'check' | 'check-circle' | 'check-round' | 'checkbox' | 'checkbox-checked' | 'checkbox-indet' | 'clear' | 'close' | 'close-outline' | 'code' | 'daochu1' | 'date' | 'del' | 'delete' | 'device-group' | 'device_nor' | 'device_sel' | 'dianliangmoshi' | 'dingdan' | 'download' | 'drag' | 'dropdown' | 'edit' | 'eyes-close' | 'eyes-open' | 'filter' | 'fujianwenjian' | 'fujianwenjian-shibai' | 'fuxuan_disable' | 'fuxuan_nor' | 'fuxuan_sel' | 'gongshuaimoshi' | 'home_nor' | 'home_sel' | 'info' | 'info-outline' | 'jia' | 'jian' | 'list-down' | 'list-up' | 'map' | 'minus-sign' | 'next' | 'no-data' | 'notice' | 'order_nor' | 'order_sel' | 'piliangcaozuo' | 'plus' | 'plus-sign' | 'question' | 'question-circle' | 'question-round' | 'radio-nor' | 'radio-sel' | 'refresh' | 'remove' | 'right-arrow' | 'scan' | 'share' | 'sousuo' | 'tel' | 'time' | 'user_nor' | 'user_sel' | 'warning' | 'weixuanzemoshi' | 'xiangji';
12
+ export type IconName = QituIconName | QituyonghuIconName | WzdailiIconName | WzyonghuIconName | YunyingIconName;
@@ -19,6 +19,14 @@ export interface TagProps {
19
19
  * @description 背景颜色,type='solid' 时生效
20
20
  */
21
21
  bgColor?: string;
22
+ /**
23
+ * @description 边框颜色,type='line' 时生效
24
+ */
25
+ borderColor?: string;
26
+ /**
27
+ * @description 圆角大小
28
+ */
29
+ borderRadius?: number | string;
22
30
  /**
23
31
  * @description 字体粗细
24
32
  */
@@ -31,5 +31,6 @@ import { Tooltip } from "./Tooltip/Tooltip";
31
31
  import { Dialog } from "./Dialog";
32
32
  import { ConfigProvider, useConfig } from "./ConfigProvider";
33
33
  import type { ConfigProviderProps, ThemeType, ThemeVars } from "./ConfigProvider";
34
- export { Button, ButtonGroup, Radio, Checkbox, Switch, Tabbar, Icon, Card, Cell, Tabs, Collapse, Stepper, Popup, Cascader, Input, Divider, CheckList, Search, TimePicker, DatePicker, DateRangePicker, Flex, Grid, GridView, Tag, Tip, NavBar, DropdownMenu, Toast, Tooltip, Dialog, ConfigProvider, useConfig, };
34
+ import { DemoContainer, DemoSection, DemoRow, DemoSubTitle, DemoIconItem } from "./DemoLayout";
35
+ export { Button, ButtonGroup, Radio, Checkbox, Switch, Tabbar, Icon, Card, Cell, Tabs, Collapse, Stepper, Popup, Cascader, Input, Divider, CheckList, Search, TimePicker, DatePicker, DateRangePicker, Flex, Grid, GridView, Tag, Tip, NavBar, DropdownMenu, Toast, Tooltip, Dialog, ConfigProvider, useConfig, DemoContainer, DemoSection, DemoRow, DemoSubTitle, DemoIconItem, };
35
36
  export type { ConfigProviderProps, ThemeType, ThemeVars };
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import React, { forwardRef, useState, useRef, useMemo, useContext, createContext, createElement, useCallback, Children, useEffect, useImperativeHandle, useLayoutEffect } from "react";
2
+ import React, { forwardRef, useState, useRef, useMemo, useEffect, useContext, createContext, createElement, useCallback, Children, useImperativeHandle, useLayoutEffect } from "react";
3
3
  import { createRoot } from "react-dom/client";
4
4
  const Button = forwardRef(({
5
5
  type = "primary",
@@ -9,9 +9,11 @@ const Button = forwardRef(({
9
9
  color = "",
10
10
  textColor = "",
11
11
  borderColor = "",
12
+ borderOpacity = 0.7,
12
13
  width,
13
14
  height,
14
15
  fontSize,
16
+ borderRadius,
15
17
  className = "",
16
18
  style = {},
17
19
  children,
@@ -26,6 +28,9 @@ const Button = forwardRef(({
26
28
  return typeof value === "number" ? `${value}px` : value;
27
29
  };
28
30
  const calcBorderRadius = () => {
31
+ if (borderRadius !== void 0) {
32
+ return formatSize(borderRadius);
33
+ }
29
34
  if (height !== void 0) {
30
35
  const h = typeof height === "number" ? height : parseFloat(height);
31
36
  if (!isNaN(h)) return `${h / 2}px`;
@@ -48,9 +53,13 @@ const Button = forwardRef(({
48
53
  };
49
54
  }
50
55
  if (type === "outline") {
56
+ const getOutlineBorderColor = () => {
57
+ if (borderColor) return borderColor;
58
+ return `rgba(var(--wz-primary-color-rgb, 34, 201, 77), ${borderOpacity})`;
59
+ };
51
60
  return {
52
61
  color: textColor || "var(--wz-primary-color)",
53
- borderColor: borderColor || "var(--wz-primary-color)",
62
+ borderColor: getOutlineBorderColor(),
54
63
  background: "transparent",
55
64
  ...style,
56
65
  ...customStyle
@@ -84,7 +93,7 @@ const Button = forwardRef(({
84
93
  return { ...s, ...customStyle };
85
94
  }
86
95
  return { ...style, ...customStyle };
87
- }, [type, color, textColor, borderColor, width, height, fontSize, style]);
96
+ }, [type, color, textColor, borderColor, width, height, fontSize, borderRadius, style]);
88
97
  const handleClick = (e) => {
89
98
  if (disabled) return;
90
99
  setIsActive(true);
@@ -138,7 +147,7 @@ const ButtonGroup = ({
138
147
  if (value === void 0) return void 0;
139
148
  return typeof value === "number" ? `${value}px` : value;
140
149
  };
141
- const containerStyle = {
150
+ const containerStyle2 = {
142
151
  backgroundColor: bgColor,
143
152
  height: formatSize(height),
144
153
  padding: formatSize(padding),
@@ -150,33 +159,63 @@ const ButtonGroup = ({
150
159
  fixed ? "wz-button-group--fixed" : "",
151
160
  className
152
161
  ].filter(Boolean).join(" ");
153
- return /* @__PURE__ */ jsx("div", { className: classNames2, style: containerStyle, children });
162
+ return /* @__PURE__ */ jsx("div", { className: classNames2, style: containerStyle2, children });
154
163
  };
155
164
  ButtonGroup.displayName = "ButtonGroup";
165
+ const loadedSymbols = /* @__PURE__ */ new Set();
166
+ const loadIconSymbol = (type) => {
167
+ if (loadedSymbols.has(type)) return;
168
+ try {
169
+ switch (type) {
170
+ case "yunying":
171
+ import("./iconfont-B9h4iRmM.js");
172
+ break;
173
+ case "qitu":
174
+ import("./iconfont-CXxMq4G2.js");
175
+ break;
176
+ case "wzyonghu":
177
+ import("./iconfont-CRbFpV7z.js");
178
+ break;
179
+ case "wzdaili":
180
+ import("./iconfont-B_mx7ld3.js");
181
+ break;
182
+ case "qituyonghu":
183
+ import("./iconfont-De-ylfev.js");
184
+ break;
185
+ }
186
+ loadedSymbols.add(type);
187
+ } catch (e) {
188
+ console.error(`Failed to load icon symbol for type: ${type}`, e);
189
+ }
190
+ };
156
191
  const Icon = ({
157
192
  name,
158
193
  size = 24,
159
- color = "currentColor",
194
+ color,
160
195
  className = "",
161
196
  style,
162
197
  onClick,
163
198
  type = "yunying"
164
- // 默认使用yunying图标库
165
199
  }) => {
166
- const iconStyle = {
167
- fontSize: typeof size === "number" ? `${size}px` : size,
168
- color,
200
+ useEffect(() => {
201
+ loadIconSymbol(type);
202
+ }, [type]);
203
+ const iconSize = typeof size === "number" ? `${size}px` : size;
204
+ const svgStyle = {
205
+ width: iconSize,
206
+ height: iconSize,
207
+ fill: color || "currentColor",
169
208
  ...style
170
209
  };
171
- const iconFontClass = `iconfont-${type}`;
172
- const iconPrefix = "icon-";
173
- const iconClass = `${iconPrefix}${name}`;
210
+ const symbolId = `#icon-${name}`;
174
211
  return /* @__PURE__ */ jsx(
175
- "i",
212
+ "svg",
176
213
  {
177
- className: `wz-icon ${iconFontClass} ${iconClass} ${className}`,
178
- style: iconStyle,
179
- onClick
214
+ className: `wz-icon ${className}`,
215
+ style: svgStyle,
216
+ onClick,
217
+ "aria-hidden": "true",
218
+ children: /* @__PURE__ */ jsx("use", { xlinkHref: symbolId })
180
219
  }
181
220
  );
182
221
  };
@@ -1288,8 +1327,8 @@ const Divider = ({
1288
1327
  className: `wz-divider wz-divider--${direction} ${className}`,
1289
1328
  style: {
1290
1329
  background: color || defaultColor,
1291
- width: isVertical ? 2 : length || "100%",
1292
- height: isVertical ? length || 24 : 2,
1330
+ width: isVertical ? 1 : length || "100%",
1331
+ height: isVertical ? length || 16 : 2,
1293
1332
  margin,
1294
1333
  ...style
1295
1334
  }
@@ -1336,8 +1375,8 @@ const Search = forwardRef(
1336
1375
  disabled = false,
1337
1376
  prefix,
1338
1377
  suffix,
1339
- leftIcon = /* @__PURE__ */ jsx(Icon, { name: "search", size: 16 }),
1340
- actionText = "搜索",
1378
+ leftIcon,
1379
+ actionText,
1341
1380
  actionColor,
1342
1381
  showCancel = false,
1343
1382
  cancelText = "返回",
@@ -1419,7 +1458,10 @@ const Search = forwardRef(
1419
1458
  {
1420
1459
  className: `wz-search-input-wrapper ${showClear ? "wz-search-input-wrapper--with-clear" : ""}`,
1421
1460
  children: [
1422
- leftIcon && /* @__PURE__ */ jsx("div", { className: "wz-search-left-icon", children: leftIcon }),
1461
+ leftIcon && /* @__PURE__ */ jsxs("div", { className: "wz-search-left-icon", children: [
1462
+ leftIcon,
1463
+ /* @__PURE__ */ jsx("div", { className: "wz-search-left-icon-divider" })
1464
+ ] }),
1423
1465
  /* @__PURE__ */ jsx(
1424
1466
  "input",
1425
1467
  {
@@ -2156,28 +2198,41 @@ const Tag = (props) => {
2156
2198
  size = "large",
2157
2199
  color,
2158
2200
  bgColor,
2201
+ borderColor,
2202
+ borderRadius,
2159
2203
  fontWeight,
2160
2204
  className,
2161
2205
  style,
2162
2206
  children
2163
2207
  } = props;
2164
- const classes = classNames("wz-tag", `wz-tag-${type}`, `wz-tag-${size}`, className);
2208
+ const classes = classNames(
2209
+ "wz-tag",
2210
+ `wz-tag-${type}`,
2211
+ `wz-tag-${size}`,
2212
+ className
2213
+ );
2165
2214
  const tagStyle = useMemo(() => {
2166
2215
  const newStyle = { ...style };
2167
2216
  if (color) {
2168
2217
  newStyle.color = color;
2169
- if (type === "line") {
2218
+ if (type === "line" && !borderColor) {
2170
2219
  newStyle.borderColor = hexToRgba(color, 0.5);
2171
2220
  }
2172
2221
  }
2173
- if (bgColor && type === "solid") {
2222
+ if (borderColor && type === "line") {
2223
+ newStyle.borderColor = borderColor;
2224
+ }
2225
+ if (bgColor) {
2174
2226
  newStyle.backgroundColor = bgColor;
2175
2227
  }
2228
+ if (borderRadius !== void 0) {
2229
+ newStyle.borderRadius = typeof borderRadius === "number" ? `${borderRadius}px` : borderRadius;
2230
+ }
2176
2231
  if (fontWeight) {
2177
2232
  newStyle.fontWeight = fontWeight;
2178
2233
  }
2179
2234
  return newStyle;
2180
- }, [type, color, bgColor, fontWeight, style]);
2235
+ }, [type, color, bgColor, borderColor, borderRadius, fontWeight, style]);
2181
2236
  return /* @__PURE__ */ jsx("div", { className: classes, style: tagStyle, children });
2182
2237
  };
2183
2238
  const Tip = ({
@@ -2762,6 +2817,90 @@ const ConfigProvider = ({
2762
2817
  );
2763
2818
  return /* @__PURE__ */ jsx(ConfigContext.Provider, { value: contextValue, children });
2764
2819
  };
2820
+ const containerStyle = {
2821
+ display: "flex",
2822
+ flexDirection: "column",
2823
+ gap: "20px",
2824
+ padding: "10px",
2825
+ backgroundColor: "#f5f5f5"
2826
+ };
2827
+ const sectionTitleStyle = {
2828
+ fontSize: "16px",
2829
+ color: "#999",
2830
+ marginBottom: "12px"
2831
+ };
2832
+ const cardStyle = {
2833
+ backgroundColor: "#fff",
2834
+ borderRadius: "12px",
2835
+ padding: "20px"
2836
+ };
2837
+ const rowStyle = {
2838
+ display: "flex",
2839
+ gap: "5px",
2840
+ flexWrap: "wrap",
2841
+ alignItems: "center",
2842
+ marginBottom: "12px"
2843
+ };
2844
+ const subTitleStyle = {
2845
+ fontSize: "14px",
2846
+ color: "#333",
2847
+ marginBottom: "12px",
2848
+ fontWeight: 500
2849
+ };
2850
+ const DemoContainer = ({
2851
+ children,
2852
+ style
2853
+ }) => /* @__PURE__ */ jsx("div", { style: { ...containerStyle, ...style }, children });
2854
+ const DemoSection = ({
2855
+ title,
2856
+ children,
2857
+ style
2858
+ }) => /* @__PURE__ */ jsxs("div", { style, children: [
2859
+ /* @__PURE__ */ jsx("div", { style: sectionTitleStyle, children: title }),
2860
+ /* @__PURE__ */ jsx("div", { style: cardStyle, children })
2861
+ ] });
2862
+ const DemoRow = ({
2863
+ children,
2864
+ gap = 5,
2865
+ noMargin = false,
2866
+ style
2867
+ }) => /* @__PURE__ */ jsx(
2868
+ "div",
2869
+ {
2870
+ style: {
2871
+ ...rowStyle,
2872
+ gap,
2873
+ marginBottom: noMargin ? 0 : 12,
2874
+ ...style
2875
+ },
2876
+ children
2877
+ }
2878
+ );
2879
+ const DemoSubTitle = ({
2880
+ children,
2881
+ style
2882
+ }) => /* @__PURE__ */ jsx("div", { style: { ...subTitleStyle, ...style }, children });
2883
+ const DemoIconItem = ({
2884
+ icon,
2885
+ label,
2886
+ style
2887
+ }) => /* @__PURE__ */ jsxs(
2888
+ "div",
2889
+ {
2890
+ style: {
2891
+ display: "flex",
2892
+ flexDirection: "column",
2893
+ alignItems: "center",
2894
+ gap: "8px",
2895
+ minWidth: "60px",
2896
+ ...style
2897
+ },
2898
+ children: [
2899
+ icon,
2900
+ label && /* @__PURE__ */ jsx("span", { style: { fontSize: "12px", color: "#666" }, children: label })
2901
+ ]
2902
+ }
2903
+ );
2765
2904
  export {
2766
2905
  Button,
2767
2906
  ButtonGroup,
@@ -2774,6 +2913,11 @@ export {
2774
2913
  ConfigProvider,
2775
2914
  DatePicker,
2776
2915
  DateRangePicker,
2916
+ DemoContainer,
2917
+ DemoIconItem,
2918
+ DemoRow,
2919
+ DemoSection,
2920
+ DemoSubTitle,
2777
2921
  Dialog,
2778
2922
  Divider,
2779
2923
  DropdownMenu,