@kyfe/hroa-ui 0.0.3 → 1.0.0

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 (274) hide show
  1. package/README.md +77 -77
  2. package/dist/demo.html +10 -0
  3. package/dist/hroa-ui.common.js +31775 -0
  4. package/dist/hroa-ui.css +6 -0
  5. package/dist/hroa-ui.umd.js +31775 -0
  6. package/dist/hroa-ui.umd.min.js +9 -0
  7. package/lib/getJsModule/index.css +6 -0
  8. package/lib/getJsModule/index.js +9 -0
  9. package/lib/hr-at-input/index.css +5 -5
  10. package/lib/hr-at-input/index.js +1 -1
  11. package/lib/hr-bottom-button/index.js +1 -1
  12. package/lib/hr-button/index.js +1 -1
  13. package/lib/hr-clipboard/index.js +1 -1
  14. package/lib/hr-condition-filtrate/index.js +1 -1
  15. package/lib/hr-condition-filtrate-popup/index.js +1 -1
  16. package/lib/hr-elasticity-box/index.css +1 -1
  17. package/lib/hr-elasticity-box/index.js +1 -1
  18. package/lib/hr-elasticity-box-item/index.js +1 -1
  19. package/lib/hr-emotional-picture/index.js +1 -1
  20. package/lib/hr-employee-choose/index.js +1 -1
  21. package/lib/hr-img-list/index.css +1 -1
  22. package/lib/hr-img-list/index.js +1 -1
  23. package/lib/hr-info-card/index.js +1 -1
  24. package/lib/hr-license-plate-number/index.js +1 -1
  25. package/lib/hr-module-card/index.js +1 -1
  26. package/lib/hr-multiterm-choose/index.css +1 -1
  27. package/lib/hr-multiterm-choose/index.js +1 -1
  28. package/lib/hr-no-data/index.js +1 -1
  29. package/lib/hr-notice-bar/index.js +1 -1
  30. package/lib/hr-open-ks/index.js +1 -1
  31. package/lib/hr-pager/index.js +1 -1
  32. package/lib/hr-popup/index.js +1 -1
  33. package/lib/hr-preview-file/index.js +1 -1
  34. package/lib/hr-rate/index.js +1 -1
  35. package/lib/hr-reason-textarea/index.js +1 -1
  36. package/lib/hr-search-input/index.js +1 -1
  37. package/lib/hr-select/index.js +1 -1
  38. package/lib/hr-select-list/index.js +1 -1
  39. package/lib/hr-single-choose/index.css +1 -1
  40. package/lib/hr-single-choose/index.js +1 -1
  41. package/lib/hr-slide-pager/index.js +1 -1
  42. package/lib/hr-sort/index.js +1 -1
  43. package/lib/hr-stack-image/index.js +1 -1
  44. package/lib/hr-tab-nav/index.js +1 -1
  45. package/lib/hr-view-item/index.js +1 -1
  46. package/lib/index/index.css +6 -8
  47. package/lib/index/index.js +2 -2
  48. package/lib/utils/index.js +1 -1
  49. package/package.json +7 -7
  50. package/packages/getJsModule.js +11 -0
  51. package/packages/hr-at-input/index.js +6 -6
  52. package/packages/hr-at-input/src/blot/atPerson.js +43 -43
  53. package/packages/hr-at-input/src/index.vue +472 -472
  54. package/packages/hr-at-input/src/quill.snow.css +945 -945
  55. package/packages/hr-at-input/src/utils/index.js +59 -59
  56. package/packages/hr-bottom-button/index.js +6 -6
  57. package/packages/hr-bottom-button/src/index.vue +108 -108
  58. package/packages/hr-button/index.js +12 -12
  59. package/packages/hr-button/src/hr-button.vue +38 -38
  60. package/packages/hr-clipboard/index.js +8 -8
  61. package/packages/hr-clipboard/src/index.vue +46 -46
  62. package/packages/hr-clipboard/src/util.js +9 -9
  63. package/packages/hr-condition-filtrate/enum/index.js +10 -10
  64. package/packages/hr-condition-filtrate/index.js +6 -6
  65. package/packages/hr-condition-filtrate/src/employee-choose/index.vue +101 -101
  66. package/packages/hr-condition-filtrate/src/index.vue +245 -245
  67. package/packages/hr-condition-filtrate/src/multiterm-choose/index.vue +166 -166
  68. package/packages/hr-condition-filtrate/src/org-tree-choose/index.vue +101 -101
  69. package/packages/hr-condition-filtrate/src/single-choose/index.vue +143 -143
  70. package/packages/hr-condition-filtrate/src/text-input/index.vue +60 -60
  71. package/packages/hr-condition-filtrate/src/time-selector/date-range-select.vue +154 -154
  72. package/packages/hr-condition-filtrate/src/time-selector/index.vue +380 -380
  73. package/packages/hr-condition-filtrate/src/time-selector/utils/constant.js +30 -30
  74. package/packages/hr-condition-filtrate/src/time-selector/utils/tools.js +212 -212
  75. package/packages/hr-condition-filtrate-popup/index.js +6 -6
  76. package/packages/hr-condition-filtrate-popup/src/index.vue +235 -235
  77. package/packages/hr-elasticity-box/index.js +6 -6
  78. package/packages/hr-elasticity-box/src/elasticity-box-item.vue +60 -60
  79. package/packages/hr-elasticity-box/src/index.vue +51 -52
  80. package/packages/hr-elasticity-box-item/index.js +6 -6
  81. package/packages/hr-emotional-picture/index.js +6 -6
  82. package/packages/hr-emotional-picture/src/index.vue +66 -66
  83. package/packages/hr-employee-choose/index.js +6 -6
  84. package/packages/hr-employee-choose/src/index.vue +119 -119
  85. package/packages/hr-img-list/index.js +3 -3
  86. package/packages/hr-img-list/src/index.vue +143 -143
  87. package/packages/hr-info-card/index.js +7 -7
  88. package/packages/hr-info-card/src/index.vue +67 -67
  89. package/packages/hr-license-plate-number/index.js +7 -7
  90. package/packages/hr-license-plate-number/src/enum.js +44 -44
  91. package/packages/hr-license-plate-number/src/index.vue +164 -164
  92. package/packages/hr-license-plate-number/src/vnp-keyboard.vue +182 -182
  93. package/packages/hr-module-card/index.js +12 -12
  94. package/packages/hr-module-card/src/index.vue +132 -132
  95. package/packages/hr-module-card//346/250/241/345/235/227/345/215/241/347/211/207/347/273/204/344/273/266.md +29 -29
  96. package/packages/hr-multiterm-choose/index.js +7 -7
  97. package/packages/hr-multiterm-choose/src/active-icon.png +0 -0
  98. package/packages/hr-multiterm-choose/src/index.vue +211 -168
  99. package/packages/hr-no-data/index.js +7 -7
  100. package/packages/hr-no-data/src/index.vue +48 -48
  101. package/packages/hr-notice-bar/index.js +6 -6
  102. package/packages/hr-notice-bar/src/bem.js +37 -37
  103. package/packages/hr-notice-bar/src/index.js +51 -51
  104. package/packages/hr-notice-bar//351/200/232/347/237/245/346/240/217/347/273/204/344/273/266.md +2 -2
  105. package/packages/hr-open-ks/index.js +7 -7
  106. package/packages/hr-open-ks/src/index.vue +97 -97
  107. package/packages/hr-open-ks/src/util.js +31 -31
  108. package/packages/hr-pager/index.js +6 -6
  109. package/packages/hr-pager/src/index.vue +95 -95
  110. package/packages/hr-popup/index.js +3 -3
  111. package/packages/hr-popup/src/index.vue +59 -59
  112. package/packages/hr-preview-file/index.js +7 -7
  113. package/packages/hr-preview-file/src/index.vue +58 -58
  114. package/packages/hr-preview-file/src/util.js +50 -50
  115. package/packages/hr-rate/index.js +6 -6
  116. package/packages/hr-rate/src/index.vue +41 -41
  117. package/packages/hr-reason-textarea/index.js +6 -6
  118. package/packages/hr-reason-textarea/src/index.vue +127 -127
  119. package/packages/hr-search-input/index.js +7 -7
  120. package/packages/hr-search-input/src/index.vue +144 -144
  121. package/packages/hr-select/index.js +7 -7
  122. package/packages/hr-select/src/index.vue +41 -41
  123. package/packages/hr-select-list/index.js +3 -3
  124. package/packages/hr-select-list/src/index.vue +167 -167
  125. package/packages/hr-single-choose/index.js +7 -7
  126. package/packages/hr-single-choose/src/index.vue +177 -142
  127. package/packages/hr-slide-pager/guide/image/turn-left.png +0 -0
  128. package/packages/hr-slide-pager/guide/image/turn-right.png +0 -0
  129. package/packages/hr-slide-pager/guide/index.vue +58 -58
  130. package/packages/hr-slide-pager/index.js +6 -6
  131. package/packages/hr-slide-pager/src/index.vue +375 -375
  132. package/packages/hr-sort/index.js +3 -3
  133. package/packages/hr-sort/src/main.vue +132 -132
  134. package/packages/hr-stack-image/index.js +3 -3
  135. package/packages/hr-stack-image/src/main.vue +76 -76
  136. package/packages/hr-tab-nav/index.js +7 -7
  137. package/packages/hr-tab-nav/src/index.vue +114 -114
  138. package/packages/hr-view-item/index.js +12 -12
  139. package/packages/hr-view-item/src/index.vue +89 -89
  140. package/packages/index.js +23 -54
  141. package/packages/utils/directive/common.js +0 -0
  142. package/packages/utils/directive/index.js +2 -0
  143. package/packages/utils/{directive.js → directive/specific.js} +54 -58
  144. package/packages/utils/index.js +7 -73
  145. package/packages/utils/tool/common.js +65 -0
  146. package/packages/utils/tool/index.js +2 -0
  147. package/packages/utils/tool/specific.js +0 -0
  148. package/dist/404.html +0 -20
  149. package/dist/ERP-components/index.html +0 -34
  150. package/dist/H5-components/custom//346/211/223/345/274/200/350/267/250/345/243/260/350/201/212/345/244/251.html +0 -34
  151. package/dist/H5-components/index.html +0 -34
  152. package/dist/H5-components/initial-stage/introduce.html +0 -71
  153. package/dist/H5-components/initial-stage/updateLog.html +0 -42
  154. package/dist/H5-components/views/tic-rich-input.html +0 -95
  155. package/dist/H5-components/views//346/213/226/346/213/275dom/345/205/203/347/264/240.html +0 -52
  156. package/dist/H5-components/views//346/214/211/351/222/256/347/277/273/351/241/265/347/273/204/344/273/266.html +0 -48
  157. package/dist/H5-components/views//346/273/221/345/212/250/347/277/273/351/241/265/347/273/204/344/273/266.html +0 -51
  158. package/dist/assets/css/0.styles.df919f3e.css +0 -8
  159. package/dist/assets/img/hr-pager.34bafc88.png +0 -0
  160. package/dist/assets/img/search.83621669.svg +0 -1
  161. package/dist/assets/img/slide-pager.8e2433c6.png +0 -0
  162. package/dist/assets/img/tic-rich-input.8beff81a.png +0 -0
  163. package/dist/assets/img/v-dragable.b824e34a.png +0 -0
  164. package/dist/assets/js/1.b735a6b9.js +0 -1
  165. package/dist/assets/js/12.23c4fee9.js +0 -1
  166. package/dist/assets/js/13.3da0c9aa.js +0 -1
  167. package/dist/assets/js/14.3356e8f7.js +0 -1
  168. package/dist/assets/js/15.d6eecfd8.js +0 -1
  169. package/dist/assets/js/16.4ffe823f.js +0 -1
  170. package/dist/assets/js/17.7b93bad9.js +0 -1
  171. package/dist/assets/js/18.11371dfb.js +0 -1
  172. package/dist/assets/js/19.416e5407.js +0 -1
  173. package/dist/assets/js/2.dc0cacdb.js +0 -1
  174. package/dist/assets/js/20.74e92b24.js +0 -1
  175. package/dist/assets/js/21.a60b56ab.js +0 -1
  176. package/dist/assets/js/22.2fae118b.js +0 -1
  177. package/dist/assets/js/23.6e3d1710.js +0 -1
  178. package/dist/assets/js/24.4160ee24.js +0 -1
  179. package/dist/assets/js/25.0ffd750f.js +0 -1
  180. package/dist/assets/js/26.32cd369d.js +0 -1
  181. package/dist/assets/js/27.8fcb6434.js +0 -1
  182. package/dist/assets/js/28.359c258c.js +0 -1
  183. package/dist/assets/js/29.739e5995.js +0 -1
  184. package/dist/assets/js/3.cca146d6.js +0 -1
  185. package/dist/assets/js/30.6a338bb7.js +0 -1
  186. package/dist/assets/js/31.f29dd7e6.js +0 -1
  187. package/dist/assets/js/32.39b11d5d.js +0 -1
  188. package/dist/assets/js/33.8a822667.js +0 -1
  189. package/dist/assets/js/34.9e1e9fdb.js +0 -1
  190. package/dist/assets/js/35.00b584d6.js +0 -1
  191. package/dist/assets/js/36.4005f115.js +0 -1
  192. package/dist/assets/js/37.a76ba098.js +0 -1
  193. package/dist/assets/js/38.b2331905.js +0 -1
  194. package/dist/assets/js/39.d1ef70eb.js +0 -1
  195. package/dist/assets/js/4.2e3cdcda.js +0 -1
  196. package/dist/assets/js/40.80762a79.js +0 -1
  197. package/dist/assets/js/41.b30a6572.js +0 -1
  198. package/dist/assets/js/42.2abb93f1.js +0 -1
  199. package/dist/assets/js/43.3060afbe.js +0 -1
  200. package/dist/assets/js/44.4ca5cdaa.js +0 -1
  201. package/dist/assets/js/45.2aefab82.js +0 -1
  202. package/dist/assets/js/46.94373d07.js +0 -1
  203. package/dist/assets/js/47.1a325aa2.js +0 -1
  204. package/dist/assets/js/48.63967e1a.js +0 -1
  205. package/dist/assets/js/49.632d6f06.js +0 -1
  206. package/dist/assets/js/5.84ceb550.js +0 -1
  207. package/dist/assets/js/50.122dcadf.js +0 -1
  208. package/dist/assets/js/51.de943550.js +0 -1
  209. package/dist/assets/js/52.70b10851.js +0 -1
  210. package/dist/assets/js/53.8852d650.js +0 -1
  211. package/dist/assets/js/54.2a74d28d.js +0 -1
  212. package/dist/assets/js/55.e48fe797.js +0 -1
  213. package/dist/assets/js/56.ebdbcffb.js +0 -1
  214. package/dist/assets/js/57.e087b0fe.js +0 -1
  215. package/dist/assets/js/58.3801ee85.js +0 -1
  216. package/dist/assets/js/59.7b5d18c0.js +0 -1
  217. package/dist/assets/js/6.61f28a2c.js +0 -1
  218. package/dist/assets/js/60.69f85710.js +0 -1
  219. package/dist/assets/js/61.ccded94e.js +0 -1
  220. package/dist/assets/js/62.49aaec93.js +0 -1
  221. package/dist/assets/js/63.ed0dd65b.js +0 -1
  222. package/dist/assets/js/64.50827258.js +0 -1
  223. package/dist/assets/js/65.fb0e39c2.js +0 -1
  224. package/dist/assets/js/66.0f253a81.js +0 -1
  225. package/dist/assets/js/67.871e932d.js +0 -1
  226. package/dist/assets/js/68.daa5a202.js +0 -1
  227. package/dist/assets/js/69.b097197f.js +0 -1
  228. package/dist/assets/js/7.49cc9ae9.js +0 -1
  229. package/dist/assets/js/70.765eda7b.js +0 -1
  230. package/dist/assets/js/71.63871fac.js +0 -1
  231. package/dist/assets/js/72.8b18b0c9.js +0 -1
  232. package/dist/assets/js/73.19e03de2.js +0 -1
  233. package/dist/assets/js/74.d53dccaa.js +0 -1
  234. package/dist/assets/js/75.acd6fc61.js +0 -1
  235. package/dist/assets/js/76.078ca037.js +0 -1
  236. package/dist/assets/js/77.d841f01e.js +0 -1
  237. package/dist/assets/js/78.a7365451.js +0 -1
  238. package/dist/assets/js/79.dd3a87ea.js +0 -1
  239. package/dist/assets/js/8.9cb30c6d.js +0 -1
  240. package/dist/assets/js/80.fb936b5b.js +0 -1
  241. package/dist/assets/js/81.2e26e94f.js +0 -1
  242. package/dist/assets/js/82.2a3a6e2c.js +0 -1
  243. package/dist/assets/js/83.db18cd89.js +0 -1
  244. package/dist/assets/js/84.1b4f6da9.js +0 -1
  245. package/dist/assets/js/85.7ad98dbe.js +0 -1
  246. package/dist/assets/js/86.4cc432c1.js +0 -1
  247. package/dist/assets/js/87.73d3f488.js +0 -1
  248. package/dist/assets/js/88.912a9f32.js +0 -1
  249. package/dist/assets/js/89.9177aadb.js +0 -1
  250. package/dist/assets/js/9.5eb3dd52.js +0 -9
  251. package/dist/assets/js/90.d7d98ef8.js +0 -1
  252. package/dist/assets/js/91.41d2835a.js +0 -1
  253. package/dist/assets/js/92.2e7bac23.js +0 -1
  254. package/dist/assets/js/app.9bfd80ac.js +0 -16
  255. package/dist/assets/js/vendors~docsearch.c220fc7a.js +0 -3
  256. package/dist/guide/about//346/255/244/346/226/207/346/241/243/351/241/271/347/233/256.html +0 -41
  257. package/dist/guide/index.html +0 -34
  258. package/dist/index.html +0 -40
  259. package/dist/local-js/axios@0.19.0.min.js +0 -9
  260. package/dist/local-js/ks@3.0.7.umd.min.js +0 -1
  261. package/dist/local-js/ksui@3.0.37.umd.min.js +0 -10
  262. package/dist/local-js/ksui@3.0.41.umd.min.js +0 -10
  263. package/dist/local-js/quill.js +0 -3
  264. package/dist/local-js/vant@2.5.6.min.js +0 -7
  265. package/dist/local-js/vconsole.min.js +0 -10
  266. package/dist/local-js/vue-router@3.1.3.min.js +0 -6
  267. package/dist/local-js/vue@2.6.10.runtime.min.js +0 -6
  268. package/dist/local-js/vue@2.7.16.min.js +0 -11932
  269. package/dist/local-js/vuex@3.1.1.min.js +0 -6
  270. package/dist/utils/ERP/ERP/345/267/245/345/205/267/346/226/271/346/263/225.html +0 -38
  271. package/dist/utils/H5/H5/345/267/245/345/205/267/346/226/271/346/263/225.html +0 -55
  272. package/dist/utils/H5/copyText /345/244/215/345/210/266.html" +0 -45
  273. package/dist/utils/index.html +0 -34
  274. package/dist//346/226/207/346/241/243/345/272/223/346/226/207/344/273/266/345/244/271.html +0 -46
@@ -1,128 +1,128 @@
1
- <script>
2
- export default {
3
- name: 'HrReasonTextarea',
4
- props: {
5
- ruleForm: {
6
- type: Object,
7
- default () {
8
- return {
9
- reason: {
10
- value: '',
11
- rules: [{ required: true, message: `请填写申请理由` }],
12
- placeholder: '112',
13
- key: '加班原因',
14
- maxlength: 500,
15
- maxHeight: 240
16
- },
17
- output: {
18
- value: '',
19
- rules: [{ required: true, message: `请填写申请理由` }],
20
- placeholder: '11',
21
- key: '加班产出',
22
- maxlength: 500,
23
- maxHeight: 240
24
- }
25
- }
26
- }
27
- },
28
- readonly: {
29
- type: Boolean,
30
- default () {
31
- return false
32
- }
33
- }
34
- },
35
- data () {
36
- return {
37
- }
38
- },
39
- created () {
40
- },
41
- methods: {
42
- userInput (item, name, index) {
43
- this.$emit('input', item, name, index)
44
- }
45
- },
46
- render () {
47
- const renderReasonTextarea = (item, name, index) => {
48
- const {
49
- rules = [],
50
- placeholder = '请输入',
51
- key = '原因',
52
- maxlength = 500,
53
- maxHeight = 240
54
- } = item
55
-
56
- return <div class="reason-textarea">
57
- <div class="reason-textarea-title">
58
- <span class="reason-textarea-title-order">{index + 1}</span>
59
- <span class="reason-textarea-title-text">{key}</span>
60
- </div>
61
- <van-field
62
- value={item.value}
63
- onInput={(value) => {
64
- item.value = value
65
- this.userInput(name, item)
66
- }}
67
- rules={rules}
68
- readonly={this.readonly}
69
- error-message-align="right"
70
- placeholder={placeholder}
71
- class="input-textarea"
72
- maxlength={maxlength}
73
- type="textarea"
74
- autosize={{ maxHeight }}
75
- rows="2"
76
- required />
77
- </div>
78
- }
79
- return <div class="hr-reason-textarea">
80
- {
81
- Object.keys(this.ruleForm || {}).map((name, index) => {
82
- return renderReasonTextarea(this.ruleForm[name], name, index)
83
- })
84
- }
85
- </div>
86
- }
87
- }
88
- </script>
89
-
90
- <style scoped lang="less">
91
- .hr-reason-textarea {
92
- padding: 11px 16px;
93
- .reason-textarea {
94
- .reason-textarea-title {
95
- display: flex;
96
- .reason-textarea-title-order {
97
- flex: 0 0 18px;
98
- margin-top: 2px;
99
- margin-right: 5px;
100
- width: 18px;
101
- height: 18px;
102
- line-height: 18px;
103
- text-align: center;
104
- border-radius: 50%;
105
- background: #f3f4f6;
106
- border: 1px solid #9da4bb;
107
- font-size: 12px;
108
- color: #9da4bb;
109
- }
110
- .reason-textarea-title-text {
111
- font-size: 15px;
112
- font-weight: normal;
113
- line-height: 22px;
114
- color: #03050d;
115
- }
116
- }
117
- /deep/ .input-textarea {
118
- padding: 0 !important;
119
- .van-cell__value {
120
- background: none;
121
- }
122
- }
123
- /deep/ .van-cell::after {
124
- border-bottom: none;
125
- }
126
- }
127
- }
1
+ <script>
2
+ export default {
3
+ name: 'HrReasonTextarea',
4
+ props: {
5
+ ruleForm: {
6
+ type: Object,
7
+ default () {
8
+ return {
9
+ reason: {
10
+ value: '',
11
+ rules: [{ required: true, message: `请填写申请理由` }],
12
+ placeholder: '112',
13
+ key: '加班原因',
14
+ maxlength: 500,
15
+ maxHeight: 240
16
+ },
17
+ output: {
18
+ value: '',
19
+ rules: [{ required: true, message: `请填写申请理由` }],
20
+ placeholder: '11',
21
+ key: '加班产出',
22
+ maxlength: 500,
23
+ maxHeight: 240
24
+ }
25
+ }
26
+ }
27
+ },
28
+ readonly: {
29
+ type: Boolean,
30
+ default () {
31
+ return false
32
+ }
33
+ }
34
+ },
35
+ data () {
36
+ return {
37
+ }
38
+ },
39
+ created () {
40
+ },
41
+ methods: {
42
+ userInput (item, name, index) {
43
+ this.$emit('input', item, name, index)
44
+ }
45
+ },
46
+ render () {
47
+ const renderReasonTextarea = (item, name, index) => {
48
+ const {
49
+ rules = [],
50
+ placeholder = '请输入',
51
+ key = '原因',
52
+ maxlength = 500,
53
+ maxHeight = 240
54
+ } = item
55
+
56
+ return <div class="reason-textarea">
57
+ <div class="reason-textarea-title">
58
+ <span class="reason-textarea-title-order">{index + 1}</span>
59
+ <span class="reason-textarea-title-text">{key}</span>
60
+ </div>
61
+ <van-field
62
+ value={item.value}
63
+ onInput={(value) => {
64
+ item.value = value
65
+ this.userInput(name, item)
66
+ }}
67
+ rules={rules}
68
+ readonly={this.readonly}
69
+ error-message-align="right"
70
+ placeholder={placeholder}
71
+ class="input-textarea"
72
+ maxlength={maxlength}
73
+ type="textarea"
74
+ autosize={{ maxHeight }}
75
+ rows="2"
76
+ required />
77
+ </div>
78
+ }
79
+ return <div class="hr-reason-textarea">
80
+ {
81
+ Object.keys(this.ruleForm || {}).map((name, index) => {
82
+ return renderReasonTextarea(this.ruleForm[name], name, index)
83
+ })
84
+ }
85
+ </div>
86
+ }
87
+ }
88
+ </script>
89
+
90
+ <style scoped lang="less">
91
+ .hr-reason-textarea {
92
+ padding: 11px 16px;
93
+ .reason-textarea {
94
+ .reason-textarea-title {
95
+ display: flex;
96
+ .reason-textarea-title-order {
97
+ flex: 0 0 18px;
98
+ margin-top: 2px;
99
+ margin-right: 5px;
100
+ width: 18px;
101
+ height: 18px;
102
+ line-height: 18px;
103
+ text-align: center;
104
+ border-radius: 50%;
105
+ background: #f3f4f6;
106
+ border: 1px solid #9da4bb;
107
+ font-size: 12px;
108
+ color: #9da4bb;
109
+ }
110
+ .reason-textarea-title-text {
111
+ font-size: 15px;
112
+ font-weight: normal;
113
+ line-height: 22px;
114
+ color: #03050d;
115
+ }
116
+ }
117
+ /deep/ .input-textarea {
118
+ padding: 0 !important;
119
+ .van-cell__value {
120
+ background: none;
121
+ }
122
+ }
123
+ /deep/ .van-cell::after {
124
+ border-bottom: none;
125
+ }
126
+ }
127
+ }
128
128
  </style>
@@ -1,8 +1,8 @@
1
-
2
- import HrSearchInput from './src/index.vue'
3
-
4
- HrSearchInput.install = function (Vue) {
5
- Vue.component(HrSearchInput.name, HrSearchInput)
6
- }
7
-
1
+
2
+ import HrSearchInput from './src/index.vue'
3
+
4
+ HrSearchInput.install = function (Vue) {
5
+ Vue.component(HrSearchInput.name, HrSearchInput)
6
+ }
7
+
8
8
  export default HrSearchInput
@@ -1,144 +1,144 @@
1
- <script>
2
- export default {
3
- name: 'HrSearchInput',
4
- props: {
5
- menuConfig: {
6
- type: Object,
7
- default () {
8
- return {
9
- id: '151596034994370809',
10
- code: '41f7a32add1745c99c7fecd5ee83f41c'
11
- }
12
- }
13
- },
14
- placeholder: {
15
- type: String,
16
- default () {
17
- return '搜索'
18
- }
19
- }
20
- },
21
- data () {
22
- return {
23
- searchParam: '',
24
- isShowinputBox: false
25
- }
26
- },
27
- methods: {
28
- search (searchParam) {
29
- this.searchParam = searchParam
30
- this.isShowinputBox = false
31
- this.$emit('search', this.searchParam)
32
- }
33
- },
34
- render () {
35
- const { id, code } = this.menuConfig
36
- {/* render ipnput bar */ }
37
- const renderInputBar = () => {
38
- return <div class="input-bar">
39
- <van-search
40
- left-icon={require('../image/search-icon.png')}
41
- readonly
42
- value={this.searchParam}
43
- onClick={() => {
44
- this.isShowinputBox = true
45
- }}
46
- placeholder={this.placeholder} />
47
- {
48
- this.searchParam && <img
49
- class="bar-close"
50
- onClick={(event) => {
51
- event.stopPropagation()
52
- this.search('')
53
- }}
54
- src={require('../image/input-close-icon.png')} />
55
- }
56
- </div>
57
- }
58
-
59
- {/* render input box */ }
60
- const renderInputBox = () => {
61
- return <div class="input-box">
62
- <header class="box-header ksui-header">
63
- <div class="ksui-nav">
64
- <ks-nav-bar
65
- title="搜索"
66
- left-arrow={true}
67
- onClick-left={() => {
68
- this.isShowinputBox = false
69
- }}>
70
- </ks-nav-bar>
71
- </div>
72
- </header>
73
- <div class="box-content ksui-body">
74
- <div class="content-bar">
75
- <ks-history-search
76
- placeholder={this.placeholder}
77
- onSearch={this.search}
78
- value={this.searchParam}
79
- onSelect={this.search}
80
- onCancel={this.search}
81
- left-icon={require('../image/search-icon.png')}
82
- menuId={id}
83
- code={code}>
84
- </ks-history-search>
85
- </div>
86
- </div>
87
- </div>
88
- }
89
-
90
- return <div class="hr-search-input">
91
- {renderInputBar()}
92
- {this.isShowinputBox && renderInputBox()}
93
- </div>
94
- }
95
- }
96
- </script>
97
-
98
- <style scoped lang="less">
99
- .hr-search-input {
100
- display: flex;
101
- padding-bottom: 10px;
102
- .input-bar {
103
- overflow: hidden;
104
- border-radius: 8px;
105
- flex: 1;
106
- position: relative;
107
- background: #ffffff;
108
- .van-search {
109
- padding: 0 !important;
110
- .van-search__content {
111
- background: #ffffff;
112
- }
113
- }
114
- .bar-close {
115
- width: 16px;
116
- height: 16px;
117
- position: absolute;
118
- right: 14px;
119
- top: 50%;
120
- transform: translate(0, -50%);
121
- }
122
- }
123
- .input-box {
124
- position: fixed;
125
- left: 0;
126
- top: 0;
127
- width: 100%;
128
- height: 100%;
129
- background: #fff;
130
- .box-content {
131
- .content-bar {
132
- /deep/.van-search {
133
- .van-search__content {
134
- background: #f7f8fa;
135
- }
136
- }
137
- }
138
- }
139
- }
140
- }
141
- .van-search .van-cell {
142
- padding: 6px 8px 6px 0;
143
- }
144
- </style>
1
+ <script>
2
+ export default {
3
+ name: 'HrSearchInput',
4
+ props: {
5
+ menuConfig: {
6
+ type: Object,
7
+ default () {
8
+ return {
9
+ id: '151596034994370809',
10
+ code: '41f7a32add1745c99c7fecd5ee83f41c'
11
+ }
12
+ }
13
+ },
14
+ placeholder: {
15
+ type: String,
16
+ default () {
17
+ return '搜索'
18
+ }
19
+ }
20
+ },
21
+ data () {
22
+ return {
23
+ searchParam: '',
24
+ isShowinputBox: false
25
+ }
26
+ },
27
+ methods: {
28
+ search (searchParam) {
29
+ this.searchParam = searchParam
30
+ this.isShowinputBox = false
31
+ this.$emit('search', this.searchParam)
32
+ }
33
+ },
34
+ render () {
35
+ const { id, code } = this.menuConfig
36
+ {/* render ipnput bar */ }
37
+ const renderInputBar = () => {
38
+ return <div class="input-bar">
39
+ <van-search
40
+ left-icon={require('../image/search-icon.png')}
41
+ readonly
42
+ value={this.searchParam}
43
+ onClick={() => {
44
+ this.isShowinputBox = true
45
+ }}
46
+ placeholder={this.placeholder} />
47
+ {
48
+ this.searchParam && <img
49
+ class="bar-close"
50
+ onClick={(event) => {
51
+ event.stopPropagation()
52
+ this.search('')
53
+ }}
54
+ src={require('../image/input-close-icon.png')} />
55
+ }
56
+ </div>
57
+ }
58
+
59
+ {/* render input box */ }
60
+ const renderInputBox = () => {
61
+ return <div class="input-box">
62
+ <header class="box-header ksui-header">
63
+ <div class="ksui-nav">
64
+ <ks-nav-bar
65
+ title="搜索"
66
+ left-arrow={true}
67
+ onClick-left={() => {
68
+ this.isShowinputBox = false
69
+ }}>
70
+ </ks-nav-bar>
71
+ </div>
72
+ </header>
73
+ <div class="box-content ksui-body">
74
+ <div class="content-bar">
75
+ <ks-history-search
76
+ placeholder={this.placeholder}
77
+ onSearch={this.search}
78
+ value={this.searchParam}
79
+ onSelect={this.search}
80
+ onCancel={this.search}
81
+ left-icon={require('../image/search-icon.png')}
82
+ menuId={id}
83
+ code={code}>
84
+ </ks-history-search>
85
+ </div>
86
+ </div>
87
+ </div>
88
+ }
89
+
90
+ return <div class="hr-search-input">
91
+ {renderInputBar()}
92
+ {this.isShowinputBox && renderInputBox()}
93
+ </div>
94
+ }
95
+ }
96
+ </script>
97
+
98
+ <style scoped lang="less">
99
+ .hr-search-input {
100
+ display: flex;
101
+ padding-bottom: 10px;
102
+ .input-bar {
103
+ overflow: hidden;
104
+ border-radius: 8px;
105
+ flex: 1;
106
+ position: relative;
107
+ background: #ffffff;
108
+ .van-search {
109
+ padding: 0 !important;
110
+ .van-search__content {
111
+ background: #ffffff;
112
+ }
113
+ }
114
+ .bar-close {
115
+ width: 16px;
116
+ height: 16px;
117
+ position: absolute;
118
+ right: 14px;
119
+ top: 50%;
120
+ transform: translate(0, -50%);
121
+ }
122
+ }
123
+ .input-box {
124
+ position: fixed;
125
+ left: 0;
126
+ top: 0;
127
+ width: 100%;
128
+ height: 100%;
129
+ background: #fff;
130
+ .box-content {
131
+ .content-bar {
132
+ /deep/.van-search {
133
+ .van-search__content {
134
+ background: #f7f8fa;
135
+ }
136
+ }
137
+ }
138
+ }
139
+ }
140
+ }
141
+ .van-search .van-cell {
142
+ padding: 6px 8px 6px 0;
143
+ }
144
+ </style>
@@ -1,7 +1,7 @@
1
- import HrSelect from './src/index.vue'
2
-
3
- HrSelect.install = function (Vue) {
4
- Vue.component(HrSelect.name, HrSelect)
5
- }
6
-
7
- export default HrSelect
1
+ import HrSelect from './src/index.vue'
2
+
3
+ HrSelect.install = function (Vue) {
4
+ Vue.component(HrSelect.name, HrSelect)
5
+ }
6
+
7
+ export default HrSelect
@@ -1,41 +1,41 @@
1
- <template>
2
- <div>
3
- <ks-field readonly
4
- clickable
5
- v-bind="$attrs"
6
- :placeholder="placeholder"
7
- @click="show = true" />
8
- <ks-popup v-model="show"
9
- v-bind="$attrs"
10
- position="bottom"
11
- :round="true">
12
- <ks-picker show-toolbar
13
- v-bind="$attrs"
14
- @cancel="show = false"
15
- @confirm="confirm" />
16
- </ks-popup>
17
- </div>
18
- </template>
19
-
20
- <script>
21
- export default {
22
- name: 'HrSelect',
23
- props: {
24
- placeholder: {
25
- type: String,
26
- default: '请选择'
27
- },
28
- },
29
- data () {
30
- return {
31
- show: false
32
- }
33
- },
34
- methods: {
35
- confirm (val) {
36
- this.$emit('select', val)
37
- this.show = false
38
- }
39
- }
40
- }
41
- </script>
1
+ <template>
2
+ <div>
3
+ <ks-field readonly
4
+ clickable
5
+ v-bind="$attrs"
6
+ :placeholder="placeholder"
7
+ @click="show = true" />
8
+ <ks-popup v-model="show"
9
+ v-bind="$attrs"
10
+ position="bottom"
11
+ :round="true">
12
+ <ks-picker show-toolbar
13
+ v-bind="$attrs"
14
+ @cancel="show = false"
15
+ @confirm="confirm" />
16
+ </ks-popup>
17
+ </div>
18
+ </template>
19
+
20
+ <script>
21
+ export default {
22
+ name: 'HrSelect',
23
+ props: {
24
+ placeholder: {
25
+ type: String,
26
+ default: '请选择'
27
+ },
28
+ },
29
+ data () {
30
+ return {
31
+ show: false
32
+ }
33
+ },
34
+ methods: {
35
+ confirm (val) {
36
+ this.$emit('select', val)
37
+ this.show = false
38
+ }
39
+ }
40
+ }
41
+ </script>
@@ -1,3 +1,3 @@
1
- import HrSelectList from './src/index.vue'
2
-
3
- export default HrSelectList
1
+ import HrSelectList from './src/index.vue'
2
+
3
+ export default HrSelectList