@kyfe/hroa-ui 1.0.6 → 1.0.7

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 (244) hide show
  1. package/dist/hroa-ui.common.js +133 -2576
  2. package/dist/hroa-ui.css +1 -1
  3. package/dist/hroa-ui.umd.js +133 -2576
  4. package/dist/hroa-ui.umd.min.js +2 -2
  5. package/lib/hr-add-list/index.js +1 -1
  6. package/lib/hr-bottom-button/index.js +1 -1
  7. package/lib/hr-breadcrumb/index.js +1 -1
  8. package/lib/hr-button/index.js +1 -1
  9. package/lib/hr-checkbox/index.js +1 -1
  10. package/lib/hr-checkbox-group/index.js +1 -1
  11. package/lib/hr-clipboard/index.js +1 -1
  12. package/lib/hr-collapse-card/index.js +1 -1
  13. package/lib/hr-condition-filtrate/index.js +1 -1
  14. package/lib/hr-condition-filtrate-popup/index.js +1 -1
  15. package/lib/hr-date-filter/index.css +1 -1
  16. package/lib/hr-date-filter/index.js +1 -1
  17. package/lib/hr-dropdown-date/index.css +1 -1
  18. package/lib/hr-dropdown-date/index.js +1 -1
  19. package/lib/hr-elasticity-box/index.js +1 -1
  20. package/lib/hr-elasticity-box-item/index.js +1 -1
  21. package/lib/hr-emotional-picture/index.js +1 -1
  22. package/lib/hr-employee-choose/index.js +1 -1
  23. package/lib/hr-file-list/index.js +1 -1
  24. package/lib/hr-full-screen/index.js +1 -1
  25. package/lib/hr-img-list/index.css +1 -1
  26. package/lib/hr-img-list/index.js +1 -1
  27. package/lib/hr-info-card/index.js +1 -1
  28. package/lib/hr-information/index.js +1 -1
  29. package/lib/hr-license-plate-number/index.js +1 -1
  30. package/lib/hr-module-card/index.js +1 -1
  31. package/lib/hr-multiterm-choose/index.css +1 -1
  32. package/lib/hr-multiterm-choose/index.js +1 -1
  33. package/lib/hr-no-data/index.js +1 -1
  34. package/lib/hr-notice-bar/index.js +1 -1
  35. package/lib/hr-notification-dialog/index.js +1 -1
  36. package/lib/hr-open-ks/index.js +1 -1
  37. package/lib/hr-pager/index.js +1 -1
  38. package/lib/hr-popup/index.js +1 -1
  39. package/lib/hr-preview-file/index.js +1 -1
  40. package/lib/hr-radiobox/index.js +1 -1
  41. package/lib/hr-radiobox-group/index.js +1 -1
  42. package/lib/hr-rate/index.js +1 -1
  43. package/lib/hr-reason-textarea/index.js +1 -1
  44. package/lib/hr-search-input/index.js +1 -1
  45. package/lib/hr-search-tips/index.js +1 -1
  46. package/lib/hr-select/index.js +1 -1
  47. package/lib/hr-select-list/index.js +1 -1
  48. package/lib/hr-single-choose/index.css +1 -1
  49. package/lib/hr-single-choose/index.js +1 -1
  50. package/lib/hr-slide-pager/index.js +1 -1
  51. package/lib/hr-sort/index.js +1 -1
  52. package/lib/hr-stack-image/index.js +1 -1
  53. package/lib/hr-tab-nav/index.js +1 -1
  54. package/lib/hr-time-picker/index.js +1 -1
  55. package/lib/hr-view-item/index.js +1 -1
  56. package/lib/hr-virtual-list/index.js +1 -1
  57. package/lib/index/index.css +1 -1
  58. package/lib/index/index.js +2 -2
  59. package/lib/utils/index.js +1 -1
  60. package/package.json +12 -9
  61. package/lib/getJsModule/index.css +0 -1
  62. package/lib/getJsModule/index.js +0 -9
  63. package/packages/getJsModule.js +0 -11
  64. package/packages/hr-add-list/image/add.svg +0 -1
  65. package/packages/hr-add-list/image/close.svg +0 -1
  66. package/packages/hr-add-list/index.js +0 -7
  67. package/packages/hr-add-list/src/index.vue +0 -125
  68. package/packages/hr-add-list//346/226/260/345/242/236/345/244/232/347/254/224/346/225/260/346/215/256.md +0 -0
  69. package/packages/hr-bottom-button/index.js +0 -7
  70. package/packages/hr-bottom-button/src/index.vue +0 -128
  71. package/packages/hr-breadcrumb/index.js +0 -3
  72. package/packages/hr-breadcrumb/src/index.vue +0 -87
  73. package/packages/hr-breadcrumb//351/235/242/345/214/205/345/261/221.md +0 -0
  74. package/packages/hr-button/index.js +0 -13
  75. package/packages/hr-button/src/hr-button.vue +0 -39
  76. package/packages/hr-checkbox/index.js +0 -8
  77. package/packages/hr-checkbox/src/active-icon.png +0 -0
  78. package/packages/hr-checkbox/src/checkbox-group.vue +0 -74
  79. package/packages/hr-checkbox/src/checkbox.vue +0 -226
  80. package/packages/hr-checkbox/src/data.js +0 -46
  81. package/packages/hr-checkbox//345/244/215/351/200/211/346/241/206-/345/215/225/351/200/211/346/241/206.md +0 -0
  82. package/packages/hr-checkbox-group/index.js +0 -8
  83. package/packages/hr-clipboard/index.js +0 -8
  84. package/packages/hr-clipboard/src/index.vue +0 -46
  85. package/packages/hr-clipboard/src/util.js +0 -9
  86. package/packages/hr-collapse-card/index.js +0 -3
  87. package/packages/hr-collapse-card/src/images/icon_up.png +0 -0
  88. package/packages/hr-collapse-card/src/index.vue +0 -151
  89. package/packages/hr-collapse-card//346/212/230/345/217/240/345/215/241/347/211/207.md +0 -0
  90. package/packages/hr-condition-filtrate/enum/index.js +0 -11
  91. package/packages/hr-condition-filtrate/image/arrow-right.png +0 -0
  92. package/packages/hr-condition-filtrate/index.js +0 -7
  93. package/packages/hr-condition-filtrate/src/employee-choose/index.vue +0 -101
  94. package/packages/hr-condition-filtrate/src/index.vue +0 -246
  95. package/packages/hr-condition-filtrate/src/multiterm-choose/index.vue +0 -167
  96. package/packages/hr-condition-filtrate/src/org-tree-choose/index.vue +0 -102
  97. package/packages/hr-condition-filtrate/src/single-choose/index.vue +0 -144
  98. package/packages/hr-condition-filtrate/src/text-input/index.vue +0 -60
  99. package/packages/hr-condition-filtrate/src/time-selector/date-range-select.vue +0 -154
  100. package/packages/hr-condition-filtrate/src/time-selector/images/date-icon.png +0 -0
  101. package/packages/hr-condition-filtrate/src/time-selector/index.vue +0 -380
  102. package/packages/hr-condition-filtrate/src/time-selector/utils/constant.js +0 -30
  103. package/packages/hr-condition-filtrate/src/time-selector/utils/tools.js +0 -213
  104. package/packages/hr-condition-filtrate-popup/index.js +0 -7
  105. package/packages/hr-condition-filtrate-popup/src/index.vue +0 -236
  106. package/packages/hr-date-filter/index.js +0 -7
  107. package/packages/hr-date-filter/src/date-select.vue +0 -153
  108. package/packages/hr-date-filter/src/index.vue +0 -243
  109. package/packages/hr-date-filter/src/style.less +0 -130
  110. package/packages/hr-date-filter/src/utils.js +0 -109
  111. package/packages/hr-dropdown-date/index.js +0 -7
  112. package/packages/hr-dropdown-date/src/calendar/calendar.js +0 -128
  113. package/packages/hr-dropdown-date/src/calendar/calendar.vue +0 -485
  114. package/packages/hr-dropdown-date/src/calendar/images/arrow@3x.png +0 -0
  115. package/packages/hr-dropdown-date/src/calendar/index.js +0 -5
  116. package/packages/hr-dropdown-date/src/date-picker/date-range-select.vue +0 -92
  117. package/packages/hr-dropdown-date/src/date-picker/month-range-select.vue +0 -128
  118. package/packages/hr-dropdown-date/src/date-picker/month-select.vue +0 -98
  119. package/packages/hr-dropdown-date/src/date-picker/style.less +0 -120
  120. package/packages/hr-dropdown-date/src/date-picker/utils.js +0 -109
  121. package/packages/hr-dropdown-date/src/index.vue +0 -482
  122. package/packages/hr-dropdown-date/src/week.js +0 -194
  123. package/packages/hr-elasticity-box/index.js +0 -7
  124. package/packages/hr-elasticity-box/src/elasticity-box-item.vue +0 -61
  125. package/packages/hr-elasticity-box/src/index.vue +0 -52
  126. package/packages/hr-elasticity-box-item/index.js +0 -7
  127. package/packages/hr-emotional-picture/index.js +0 -7
  128. package/packages/hr-emotional-picture/src/index.vue +0 -66
  129. package/packages/hr-emotional-picture//346/203/205/346/204/237/345/233/276/347/273/204/344/273/266.md +0 -0
  130. package/packages/hr-employee-choose/index.js +0 -7
  131. package/packages/hr-employee-choose/src/image/arrow-right.png +0 -0
  132. package/packages/hr-employee-choose/src/index.vue +0 -119
  133. package/packages/hr-file-list/index.js +0 -3
  134. package/packages/hr-file-list/src/file-type/other.vue +0 -45
  135. package/packages/hr-file-list/src/file-type/picture.vue +0 -38
  136. package/packages/hr-file-list/src/file-type/video.vue +0 -60
  137. package/packages/hr-file-list/src/index.vue +0 -246
  138. package/packages/hr-file-list/src/utils/enum.js +0 -95
  139. package/packages/hr-file-list/src/utils/fun.js +0 -16
  140. package/packages/hr-file-list//346/226/207/344/273/266/345/210/227/350/241/250.md +0 -0
  141. package/packages/hr-full-screen/index.js +0 -7
  142. package/packages/hr-full-screen/src/index.vue +0 -117
  143. package/packages/hr-img-list/index.js +0 -3
  144. package/packages/hr-img-list/src/index.vue +0 -144
  145. package/packages/hr-img-list//345/244/232/345/233/276/345/210/227/350/241/250.md +0 -0
  146. package/packages/hr-info-card/index.js +0 -7
  147. package/packages/hr-info-card/src/index.vue +0 -67
  148. package/packages/hr-information/index.js +0 -7
  149. package/packages/hr-information/src/index.vue +0 -72
  150. package/packages/hr-license-plate-number/index.js +0 -8
  151. package/packages/hr-license-plate-number/src/enum.js +0 -44
  152. package/packages/hr-license-plate-number/src/index.vue +0 -164
  153. package/packages/hr-license-plate-number/src/vnp-keyboard.vue +0 -182
  154. package/packages/hr-license-plate-number//350/275/246/347/211/214/345/217/267/345/274/271/347/252/227.md +0 -0
  155. package/packages/hr-module-card/index.js +0 -13
  156. package/packages/hr-module-card/src/index.vue +0 -132
  157. package/packages/hr-module-card//346/250/241/345/235/227/345/215/241/347/211/207/347/273/204/344/273/266.md +0 -29
  158. package/packages/hr-multiterm-choose/index.js +0 -8
  159. package/packages/hr-multiterm-choose/src/active-icon.png +0 -0
  160. package/packages/hr-multiterm-choose/src/index.vue +0 -224
  161. package/packages/hr-multiterm-choose//345/244/232/351/200/211/346/241/206.md +0 -0
  162. package/packages/hr-no-data/index.js +0 -7
  163. package/packages/hr-no-data/src/index.vue +0 -48
  164. package/packages/hr-notice-bar/index.js +0 -7
  165. package/packages/hr-notice-bar/src/bem.js +0 -38
  166. package/packages/hr-notice-bar/src/index.js +0 -52
  167. package/packages/hr-notice-bar//351/200/232/347/237/245/346/240/217/347/273/204/344/273/266.md +0 -3
  168. package/packages/hr-notification-dialog/images/header.png +0 -0
  169. package/packages/hr-notification-dialog/index.js +0 -7
  170. package/packages/hr-notification-dialog/src/index.vue +0 -293
  171. package/packages/hr-notification-dialog//345/274/271/347/252/227/346/217/220/347/244/272/347/273/204/344/273/266.md +0 -0
  172. package/packages/hr-open-ks/index.js +0 -7
  173. package/packages/hr-open-ks/src/icon.png +0 -0
  174. package/packages/hr-open-ks/src/index.vue +0 -97
  175. package/packages/hr-open-ks/src/util.js +0 -31
  176. package/packages/hr-pager/images/next-page.png +0 -0
  177. package/packages/hr-pager/images/prev-page.png +0 -0
  178. package/packages/hr-pager/index.js +0 -7
  179. package/packages/hr-pager/src/index.vue +0 -120
  180. package/packages/hr-pager//346/214/211/351/222/256/347/277/273/351/241/265/347/273/204/344/273/266.md +0 -0
  181. package/packages/hr-popup/index.js +0 -3
  182. package/packages/hr-popup/src/index.vue +0 -64
  183. package/packages/hr-popup//345/274/271/345/207/272/345/261/202.md +0 -0
  184. package/packages/hr-preview-file/index.js +0 -7
  185. package/packages/hr-preview-file/src/index.vue +0 -58
  186. package/packages/hr-preview-file/src/util.js +0 -50
  187. package/packages/hr-radiobox/index.js +0 -8
  188. package/packages/hr-radiobox/src/data.js +0 -46
  189. package/packages/hr-radiobox/src/radiobox-group.vue +0 -64
  190. package/packages/hr-radiobox/src/radiobox.vue +0 -191
  191. package/packages/hr-radiobox-group/index.js +0 -8
  192. package/packages/hr-rate/index.js +0 -7
  193. package/packages/hr-rate/src/index.vue +0 -42
  194. package/packages/hr-rate//350/257/204/345/210/206/347/273/204/344/273/266/357/274/210/345/270/246/346/226/207/346/241/210/357/274/211.md +0 -0
  195. package/packages/hr-reason-textarea/index.js +0 -7
  196. package/packages/hr-reason-textarea/src/index.vue +0 -128
  197. package/packages/hr-search-input/image/input-close-icon.png +0 -0
  198. package/packages/hr-search-input/image/search-icon.png +0 -0
  199. package/packages/hr-search-input/index.js +0 -8
  200. package/packages/hr-search-input/src/index.vue +0 -144
  201. package/packages/hr-search-tips/index.js +0 -3
  202. package/packages/hr-search-tips/src/index.vue +0 -213
  203. package/packages/hr-search-tips//350/277/234/347/250/213/346/250/241/347/263/212/346/220/234/347/264/242.md +0 -0
  204. package/packages/hr-select/index.js +0 -7
  205. package/packages/hr-select/src/index.vue +0 -41
  206. package/packages/hr-select-list/index.js +0 -3
  207. package/packages/hr-select-list/src/index.vue +0 -214
  208. package/packages/hr-select-list//344/270/213/346/213/211/351/200/211/346/213/251(/351/273/230/350/256/244/345/244/232/351/200/211).md +0 -0
  209. package/packages/hr-single-choose/index.js +0 -8
  210. package/packages/hr-single-choose/src/index.vue +0 -195
  211. package/packages/hr-single-choose//345/215/225/351/200/211/346/241/206.md +0 -0
  212. package/packages/hr-slide-pager/guide/image/turn-left.png +0 -0
  213. package/packages/hr-slide-pager/guide/image/turn-right.png +0 -0
  214. package/packages/hr-slide-pager/guide/index.vue +0 -59
  215. package/packages/hr-slide-pager/guide//346/226/260/346/211/213/346/214/207/345/274/225.md +0 -0
  216. package/packages/hr-slide-pager/index.js +0 -7
  217. package/packages/hr-slide-pager/src/index.vue +0 -374
  218. package/packages/hr-slide-pager//346/273/221/345/212/250/347/277/273/351/241/265/347/273/204/344/273/266.md +0 -0
  219. package/packages/hr-sort/index.js +0 -3
  220. package/packages/hr-sort/src/main.vue +0 -133
  221. package/packages/hr-sort//346/216/222/345/272/217.md +0 -0
  222. package/packages/hr-stack-image/index.js +0 -3
  223. package/packages/hr-stack-image/src/main.vue +0 -77
  224. package/packages/hr-stack-image//345/261/202/345/217/240/345/233/276/347/211/207/347/273/204/344/273/266.md +0 -0
  225. package/packages/hr-tab-nav/index.js +0 -8
  226. package/packages/hr-tab-nav/src/index.vue +0 -190
  227. package/packages/hr-time-picker/index.js +0 -3
  228. package/packages/hr-time-picker/src/index.vue +0 -85
  229. package/packages/hr-time-picker//346/227/266/351/227/264/351/200/211/346/213/251/345/231/250.md +0 -0
  230. package/packages/hr-view-item/index.js +0 -13
  231. package/packages/hr-view-item/src/index.vue +0 -89
  232. package/packages/hr-view-item//350/241/250/345/215/225/351/241/271item/345/261/225/347/244/272.md +0 -0
  233. package/packages/hr-virtual-list/index.js +0 -7
  234. package/packages/hr-virtual-list/src/cc-item.vue +0 -105
  235. package/packages/hr-virtual-list/src/index.vue +0 -227
  236. package/packages/hr-virtual-list//350/231/232/346/213/237/345/210/227/350/241/250.md +0 -0
  237. package/packages/index.js +0 -23
  238. package/packages/utils/directive/common.js +0 -0
  239. package/packages/utils/directive/index.js +0 -2
  240. package/packages/utils/directive/specific.js +0 -54
  241. package/packages/utils/index.js +0 -7
  242. package/packages/utils/tool/common.js +0 -65
  243. package/packages/utils/tool/index.js +0 -2
  244. package/packages/utils/tool/specific.js +0 -0
@@ -1,11 +0,0 @@
1
- const jsModulefiles = require.context('./', true, /\.js$/)
2
-
3
- export const getJsModuleList = () => {
4
- const moduleMap = {}
5
- jsModulefiles.keys().forEach((file) => {
6
- if (file.indexOf('hr') === -1 && file.indexOf('src/index.js') === -1) return
7
- const component = jsModulefiles(file).default || jsModulefiles(file)
8
- moduleMap[component.name] = component
9
- })
10
- return moduleMap
11
- }
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><g><path d="M8,0L6,0L6,6L0,6L0,8L6,8L6,14L8,14L8,8L14,8L14,6L8,6L8,0Z" fill-rule="evenodd" fill="#7972FE" fill-opacity="1"/></g></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="16" height="16" viewBox="0 0 16 16"><g><g transform="matrix(-1,0,0,1,32,0)"><path d="M16 6C16 2.686291501015239 18.68629150101524 0 22 0L32 0C32 0 32 0 32 0L32 8C32 12.418277998646346 28.418277998646346 16 24 16L16 16C16 16 16 16 16 16Z" fill="#C6C6D0" fill-opacity="1"/></g><g><path d="M8.994630292510987,6.37497901397705L11.194520292510987,4.175094013977051C11.368090292510987,4.001527413977051,11.649490292510986,4.001527413977051,11.823060292510986,4.175094013977051C11.996630292510986,4.34866001397705,11.996630292510986,4.630067013977051,11.823060292510986,4.803633013977051L9.623170292510986,7.003519013977051L11.823060292510986,9.203409013977051C11.996630292510986,9.376979013977051,11.996630292510986,9.65837901397705,11.823060292510986,9.83194901397705C11.649490292510986,10.00551901397705,11.368090292510987,10.00551901397705,11.194520292510987,9.83194901397705L8.994630292510987,7.6320590139770506L6.794744292510987,9.83194901397705C6.6211782925109866,10.00551901397705,6.339771292510986,10.00551901397705,6.166205292510987,9.83194901397705C5.992638692510987,9.65837901397705,5.992638692510987,9.376979013977051,6.166205292510987,9.203409013977051L8.366090292510986,7.003519013977051L6.166205292510987,4.803633013977051C5.992638692510987,4.630067013977051,5.992638692510987,4.34866001397705,6.166205292510987,4.175094013977051C6.339771292510986,4.001527413977051,6.6211782925109866,4.001527413977051,6.794744292510987,4.175094013977051L8.994630292510987,6.37497901397705Z" fill-rule="evenodd" fill="#FFFFFF" fill-opacity="1"/></g></g></svg>
@@ -1,7 +0,0 @@
1
- import HrAddList from './src/index.vue'
2
-
3
- HrAddList.install = function (Vue) {
4
- Vue.component(HrAddList.name, HrAddList);
5
- };
6
-
7
- export default HrAddList
@@ -1,125 +0,0 @@
1
- <template>
2
- <div class="hr-data-list">
3
- <div class="data-list-card"
4
- v-for="(item, index) in data"
5
- :key="index">
6
- <div class="data-list-card-title">
7
- <slot name="title"
8
- :index="index + 1">
9
- <template>
10
- <img class="icon-image"
11
- :src="titleImageUrl"
12
- v-if="titleImageUrl"
13
- alt="">
14
- {{`${title}${showTitleIndex ? index + 1 : ''}`}}
15
- </template>
16
- </slot>
17
- <div class="close-btn"
18
- @click="deleteData(index)">
19
- <img src="../image/close.svg"
20
- alt="">
21
- </div>
22
- </div>
23
- <slot :row="item"></slot>
24
- </div>
25
- <div class="add-data-btn"
26
- @click="addData"> <img class="icon-add"
27
- src="../image/add.svg"
28
- alt="">{{addText}}</div>
29
- </div>
30
- </template>
31
-
32
- <script>
33
- export default {
34
- name: 'HrAddList',
35
- props: {
36
- data: {
37
- type: Array,
38
- default: () => []
39
- },
40
- title: {
41
- type: String,
42
- default: ''
43
- },
44
- showTitleIndex: {
45
- type: Boolean,
46
- default: true
47
- },
48
- titleImageUrl: {
49
- type: String,
50
- default: ''
51
- },
52
- addText: {
53
- type: String,
54
- default: '添加'
55
- },
56
- },
57
- data () {
58
- return {
59
- list: []
60
- }
61
- },
62
- methods: {
63
- addData () {
64
- this.$emit('add')
65
- },
66
- deleteData (index) {
67
- this.$emit('delete', index)
68
- }
69
- }
70
- }
71
- </script>
72
-
73
- <style scoped lang="less">
74
- .hr-data-list {
75
- .data-list-card {
76
- position: relative;
77
- margin-top: 10px;
78
- background-color: #fff;
79
- border-radius: 6px;
80
- overflow: hidden;
81
- .data-list-card-title {
82
- display: flex;
83
- align-items: center;
84
- padding: 12px 16px;
85
- box-shadow: inset 0px -0.5px 0px 0px #ebedf5;
86
- font-size: 15px;
87
- font-weight: 500;
88
- > .icon-image {
89
- height: 18px;
90
- width: 18px;
91
- margin-right: 6px;
92
- }
93
- .close-btn {
94
- position: absolute;
95
- right: 0;
96
- top: 0;
97
- padding: 0 0 3px 6px;
98
- img {
99
- height: 16px;
100
- width: 16px;
101
- }
102
- }
103
- }
104
- }
105
- .add-data-btn {
106
- display: flex;
107
- align-items: center;
108
- justify-content: center;
109
- margin: 10px 0;
110
- height: 46px;
111
- background-color: #fff;
112
- border-radius: 6px;
113
- color: #7972fe;
114
- font-size: 14px;
115
- .icon-add {
116
- height: 14px;
117
- width: 14px;
118
- margin-right: 8px;
119
- }
120
- &:active {
121
- background-color: rgba(0, 0, 0, 0.1);
122
- }
123
- }
124
- }
125
- </style>
@@ -1,7 +0,0 @@
1
- import HrBottomButton from './src/index.vue'
2
-
3
- HrBottomButton.install = function (Vue) {
4
- Vue.component(HrBottomButton.name, HrBottomButton)
5
- }
6
-
7
- export default HrBottomButton
@@ -1,128 +0,0 @@
1
- <script>
2
- export default {
3
- name: 'HrBottomButton',
4
- props: {
5
- list: {
6
- type: Array,
7
- default () {
8
- return [
9
- {
10
- text: '取消',
11
- icon: '',
12
- },
13
- {
14
- text: '确定',
15
- icon: '',
16
- }
17
- ]
18
- }
19
- },
20
- isRadius: {
21
- type: Boolean,
22
- default () {
23
- return false
24
- }
25
- },
26
- zIndex: {
27
- type: Number,
28
- default () {
29
- return 1
30
- }
31
- },
32
- isCompatibilityIos: {
33
- type: Boolean,
34
- default () {
35
- return true
36
- }
37
- },
38
- },
39
- data () {
40
- return {}
41
- },
42
- methods: {
43
- clickButton (index) {
44
- this.$emit('clickButton', index)
45
- }
46
- },
47
- render () {
48
- return <div class={[
49
- 'hr-bottom-button',
50
- this.isCompatibilityIos && 'hr-bottom-button-ios'
51
- ]} style={{
52
- zIndex: this.zIndex
53
- }}>
54
- <div class="button-list">
55
- {
56
- this.list.map((item, index) => {
57
- const { text } = item
58
- return <div class="list-item" onClick={this.clickButton.bind(this, index)}>
59
- <span class="item-text">{text}</span>
60
- </div>
61
- })
62
- }
63
- </div>
64
- </div>
65
- }
66
- }
67
- </script>
68
-
69
- <style scoped lang="less">
70
- .hr-bottom-button {
71
- background: #fff;
72
- .button-list {
73
- padding: 8px 16px;
74
- display: flex;
75
- // justify-content: space-around;
76
- // gap: 13px;
77
- .list-item {
78
- margin-right: 13px;
79
- flex: 1;
80
- font-size: 16px;
81
- color: #7972fe;
82
- display: flex;
83
- line-height: 40px;
84
- border-radius: 8px;
85
- background: #fff;
86
- position: relative;
87
- .item-text {
88
- text-align: center;
89
- flex: 1;
90
- }
91
- &::after {
92
- content: "";
93
- width: 200%;
94
- height: 200%;
95
- border: 1px solid #7972fe;
96
- transform: scale(0.5);
97
- border-radius: 16px;
98
- position: absolute;
99
- left: 0;
100
- top: 0;
101
- transform-origin: 0 0;
102
- }
103
- }
104
- .list-item:last-child {
105
- color: #ffffff;
106
- background: #7972fe;
107
- margin-right: 0;
108
-
109
- &::after {
110
- content: "";
111
- width: 200%;
112
- height: 200%;
113
- border: 1px solid transparent;
114
- transform: scale(0.5);
115
- border-radius: 16px;
116
- position: absolute;
117
- left: 0;
118
- top: 0;
119
- transform-origin: 0 0;
120
- }
121
- }
122
- }
123
- }
124
- .ios .hr-bottom-button-ios,
125
- .ipx .hr-bottom-button-ios {
126
- padding-bottom: 28px;
127
- }
128
- </style>
@@ -1,3 +0,0 @@
1
- import HrBreadcrumb from './src/index.vue'
2
-
3
- export default HrBreadcrumb
@@ -1,87 +0,0 @@
1
- <script>
2
- import { cloneDeep } from 'lodash'
3
-
4
- export default {
5
- name: 'HrBreadcrumb',
6
- props: {
7
- // 分隔符
8
- separator: {
9
- type: String,
10
- default: '/'
11
- },
12
- // 节点字号
13
- nodeSize: {
14
- type: String,
15
- default: '12px'
16
- },
17
- value: {
18
- type: Array,
19
- default: () => ([])
20
- }
21
- },
22
- data () {
23
- return {
24
- listData: []
25
- }
26
- },
27
- watch: {
28
- value: {
29
- handler (val) {
30
- this.listData = val || []
31
- },
32
- immediate: true,
33
- deep: true
34
- }
35
- },
36
- render () {
37
- return (
38
- <div class="hr-breadcrumb"
39
- style={`font-size:${this.nodeSize}`}>
40
- {
41
- this.listData.map((item, index) => {
42
- const lastItem = index === this.listData.length - 1
43
- return (
44
- <span class={['node-text', lastItem ? 'disabled-text' : 'use-text']}
45
- onClick={() => this.itemClick(item, index)}>
46
- {
47
- index > 0 && this.separator &&
48
- <span class="separator" domPropsInnerHTML={this.separator}></span>
49
- }
50
- {item.name}
51
- </span>
52
- )
53
- })
54
- }
55
- </div>
56
- )
57
- },
58
- methods: {
59
- itemClick (item, index) {
60
- const result = this.splitArray(this.listData, index)
61
- this.$emit('itemClick', item, index, result)
62
- this.$emit('change', result[0])
63
- },
64
- // 分割数组
65
- splitArray (array, index) {
66
- const arr = cloneDeep(array)
67
- let part1 = [...arr.slice(0, index + 1)]
68
- let part2 = [...arr.slice(index + 1)]
69
- return [part1, part2]
70
- }
71
- }
72
- }
73
- </script>
74
-
75
- <style lang="less" scoped>
76
- .hr-breadcrumb {
77
- .disabled-text {
78
- color: #888ea6;
79
- }
80
- .use-text {
81
- color: #7972fe;
82
- }
83
- .separator {
84
- margin: 0 2px;
85
- }
86
- }
87
- </style>
@@ -1,13 +0,0 @@
1
- /*
2
- * @Author : HR-OA-KTS 黄强 670604@ky-tech.com.cn
3
- * @Date : 2023-11-07 16:47:26
4
- * @Description :
5
- */
6
-
7
- import hrButton from './src/hr-button'
8
-
9
- hrButton.install = function (Vue) {
10
- Vue.component(hrButton.name, hrButton);
11
- };
12
-
13
- export default hrButton;
@@ -1,39 +0,0 @@
1
- <!--
2
- * @Author : HR-OA-KTS 黄强 670604@ky-tech.com.cn
3
- * @Date : 2023-11-07 16:47:16
4
- * @Description :
5
- -->
6
- <template>
7
- <div class="hr-button">
8
-
9
- <ks-button plain
10
- type="primary"
11
- @click="handleBtnClick">
12
- <slot></slot>
13
- </ks-button>
14
- </div>
15
- </template>
16
-
17
- <script>
18
-
19
- export default {
20
- name: "hr-button",
21
- props: {},
22
- data () {
23
- return {
24
-
25
- }
26
- },
27
- methods: {
28
- handleBtnClick () {
29
- console.log('别看我长得丑,我有内涵的');
30
- }
31
- }
32
- }
33
- </script>
34
-
35
- <style scoped>
36
- .button {
37
- padding: 6px 10px;
38
- }
39
- </style>
@@ -1,8 +0,0 @@
1
-
2
- import HrCheckbox from './src/checkbox.vue'
3
-
4
- HrCheckbox.install = function (Vue) {
5
- Vue.component(HrCheckbox.name, HrCheckbox)
6
- }
7
-
8
- export default HrCheckbox
@@ -1,74 +0,0 @@
1
- <script>
2
- export default {
3
- name: 'HrCheckboxGroup',
4
- provide () {
5
- return {
6
- divideeQually: this.divideeQually,
7
- margin: this.margin,
8
- marginBottom: this.marginBottom,
9
- selfAdaption: this.selfAdaption,
10
- }
11
- },
12
- props: {
13
- divideeQually: {
14
- type: Number,
15
- default () {
16
- return 3
17
- }
18
- },
19
- margin: {
20
- type: Number,
21
- default () {
22
- return 12
23
- }
24
- },
25
- selfAdaption: {
26
- type: Boolean,
27
- default () {
28
- return false
29
- }
30
- },
31
- value: {
32
- type: Array,
33
- default () {
34
- return []
35
- }
36
- },
37
- marginBottom: {
38
- type: Number,
39
- default () {
40
- return this.margin
41
- }
42
- },
43
- },
44
- data () {
45
- return {
46
- }
47
- },
48
- created () {
49
- this.init()
50
- },
51
- methods: {
52
- init () {
53
- this.initState()
54
- },
55
- initState () {
56
- },
57
- },
58
- render () {
59
- return <div class="checkbox-group">
60
- {
61
- this.$slots.default
62
- }
63
- </div>
64
- }
65
- }
66
- </script>
67
-
68
- <style scoped lang="less">
69
- .checkbox-group {
70
- display: flex;
71
- flex-wrap: wrap;
72
- justify-content: flex-start;
73
- }
74
- </style>