@kyfe/hroa-ui 0.0.1 → 0.0.2

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 (226) hide show
  1. package/README.md +49 -22
  2. package/dist/404.html +20 -0
  3. package/dist/ERP-components/index.html +34 -0
  4. package/dist/H5-components/custom//346/211/223/345/274/200/350/267/250/345/243/260/350/201/212/345/244/251.html +34 -0
  5. package/dist/H5-components/index.html +34 -0
  6. package/dist/H5-components/initial-stage/introduce.html +71 -0
  7. package/dist/H5-components/initial-stage/updateLog.html +42 -0
  8. package/dist/H5-components/views/hr-emotional-picture.html +51 -0
  9. package/dist/H5-components/views/hr-info-card.html +53 -0
  10. package/dist/H5-components/views/hr-no-data.html +47 -0
  11. package/dist/H5-components/views/hr-preview-file.html +76 -0
  12. package/dist/H5-components/views/hr-search-input.html +50 -0
  13. package/dist/H5-components/views/tic-rich-input.html +95 -0
  14. package/dist/H5-components/views//345/211/252/345/210/207/346/235/277/345/244/215/345/210/266.html +59 -0
  15. package/dist/H5-components/views//345/261/202/345/217/240/345/233/276/347/211/207.html +62 -0
  16. package/dist/H5-components/views//346/211/223/345/274/200/350/267/250/345/243/260/347/224/250/346/210/267.html +66 -0
  17. package/dist/H5-components/views//346/213/226/346/213/275dom/345/205/203/347/264/240.html +52 -0
  18. package/dist/H5-components/views//346/214/211/351/222/256/347/277/273/351/241/265/347/273/204/344/273/266.html +48 -0
  19. package/dist/H5-components/views//346/273/221/345/212/250/347/277/273/351/241/265/347/273/204/344/273/266.html +55 -0
  20. package/dist/H5-components/views//351/200/211/346/213/251/345/231/250/350/241/250/345/215/225.html +111 -0
  21. package/dist/assets/css/0.styles.89cafbc9.css +8 -0
  22. package/dist/assets/img/hr-emotional-picture.e7db80e6.png +0 -0
  23. package/dist/assets/img/hr-info-card.c50e7c33.png +0 -0
  24. package/dist/assets/img/hr-pager.34bafc88.png +0 -0
  25. package/dist/assets/img/hr-preview-file-1.3cb7c6ed.png +0 -0
  26. package/dist/assets/img/hr-preview-file-2.0fe45ea1.png +0 -0
  27. package/dist/assets/img/search.83621669.svg +1 -0
  28. package/dist/assets/img/select.acadd024.png +0 -0
  29. package/dist/assets/img/slide-pager.8e2433c6.png +0 -0
  30. package/dist/assets/img/tic-rich-input.8beff81a.png +0 -0
  31. package/dist/assets/img/v-dragable.b824e34a.png +0 -0
  32. package/dist/assets/js/1.1b9c091d.js +1 -0
  33. package/dist/assets/js/12.af649b9d.js +1 -0
  34. package/dist/assets/js/13.16dba19e.js +1 -0
  35. package/dist/assets/js/14.73f3c298.js +1 -0
  36. package/dist/assets/js/15.0a34e390.js +1 -0
  37. package/dist/assets/js/16.0cb2e2cf.js +1 -0
  38. package/dist/assets/js/17.ab78de8b.js +1 -0
  39. package/dist/assets/js/18.267c7007.js +1 -0
  40. package/dist/assets/js/19.879db5c0.js +1 -0
  41. package/dist/assets/js/2.c3a8a3e9.js +16 -0
  42. package/dist/assets/js/20.fe2689df.js +1 -0
  43. package/dist/assets/js/21.15a9e12c.js +1 -0
  44. package/dist/assets/js/22.8d5eaba3.js +1 -0
  45. package/dist/assets/js/23.333c4992.js +1 -0
  46. package/dist/assets/js/24.543262a0.js +1 -0
  47. package/dist/assets/js/25.657016f9.js +1 -0
  48. package/dist/assets/js/26.03bfb23b.js +1 -0
  49. package/dist/assets/js/27.3faf82a6.js +1 -0
  50. package/dist/assets/js/28.2bc37274.js +1 -0
  51. package/dist/assets/js/29.27882fc9.js +1 -0
  52. package/dist/assets/js/3.b50928b1.js +1 -0
  53. package/dist/assets/js/30.e682e7b5.js +1 -0
  54. package/dist/assets/js/31.711223cc.js +1 -0
  55. package/dist/assets/js/32.65c4dfd4.js +1 -0
  56. package/dist/assets/js/33.b3a7c2ea.js +1 -0
  57. package/dist/assets/js/34.159478bb.js +1 -0
  58. package/dist/assets/js/35.5dead2b1.js +1 -0
  59. package/dist/assets/js/36.b58af11f.js +1 -0
  60. package/dist/assets/js/37.86d4ed5a.js +1 -0
  61. package/dist/assets/js/38.af279c3f.js +1 -0
  62. package/dist/assets/js/39.89b34b70.js +1 -0
  63. package/dist/assets/js/4.5d6de21f.js +1 -0
  64. package/dist/assets/js/40.3e1516da.js +1 -0
  65. package/dist/assets/js/41.d021ff9e.js +1 -0
  66. package/dist/assets/js/42.cb50aa1c.js +1 -0
  67. package/dist/assets/js/43.5fded5c8.js +1 -0
  68. package/dist/assets/js/44.50f78d19.js +1 -0
  69. package/dist/assets/js/45.527386eb.js +1 -0
  70. package/dist/assets/js/46.9f784389.js +1 -0
  71. package/dist/assets/js/47.7553aa19.js +1 -0
  72. package/dist/assets/js/48.9fee02f5.js +1 -0
  73. package/dist/assets/js/49.25c724d7.js +1 -0
  74. package/dist/assets/js/5.b3e00557.js +1 -0
  75. package/dist/assets/js/50.aba60d25.js +1 -0
  76. package/dist/assets/js/51.01a0bacf.js +1 -0
  77. package/dist/assets/js/52.86012cbb.js +1 -0
  78. package/dist/assets/js/53.1563eb60.js +1 -0
  79. package/dist/assets/js/54.7e734114.js +1 -0
  80. package/dist/assets/js/55.28b96a29.js +1 -0
  81. package/dist/assets/js/56.81bd12a3.js +1 -0
  82. package/dist/assets/js/57.70cac198.js +1 -0
  83. package/dist/assets/js/58.cc1b357e.js +1 -0
  84. package/dist/assets/js/59.697472ae.js +1 -0
  85. package/dist/assets/js/6.2c85d2f8.js +1 -0
  86. package/dist/assets/js/60.36873359.js +1 -0
  87. package/dist/assets/js/61.0a367a50.js +1 -0
  88. package/dist/assets/js/62.1aaa7b15.js +1 -0
  89. package/dist/assets/js/63.52c8de07.js +1 -0
  90. package/dist/assets/js/64.25b51d76.js +1 -0
  91. package/dist/assets/js/65.462206d5.js +1 -0
  92. package/dist/assets/js/66.c336d9fe.js +1 -0
  93. package/dist/assets/js/67.1b7fa2b9.js +1 -0
  94. package/dist/assets/js/68.e0ebaf13.js +1 -0
  95. package/dist/assets/js/69.3e1b6d2e.js +1 -0
  96. package/dist/assets/js/7.d1b0af72.js +1 -0
  97. package/dist/assets/js/70.40431d36.js +1 -0
  98. package/dist/assets/js/71.64f24577.js +1 -0
  99. package/dist/assets/js/72.2cf8371b.js +1 -0
  100. package/dist/assets/js/73.88f7feb5.js +1 -0
  101. package/dist/assets/js/74.2d5471c0.js +1 -0
  102. package/dist/assets/js/8.9ab5ee55.js +1 -0
  103. package/dist/assets/js/9.aaca0f9d.js +9 -0
  104. package/dist/assets/js/app.7efea3c2.js +16 -0
  105. package/dist/assets/js/vendors~docsearch.6f3b450f.js +3 -0
  106. package/dist/guide/about//346/255/244/346/226/207/346/241/243/351/241/271/347/233/256.html +41 -0
  107. package/dist/guide/index.html +34 -0
  108. package/dist/index.html +40 -0
  109. package/dist/local-js/axios@0.19.0.min.js +9 -0
  110. package/dist/local-js/ks@3.0.7.umd.min.js +1 -0
  111. package/dist/local-js/ksui@3.0.37.umd.min.js +10 -0
  112. package/dist/local-js/quill.js +3 -0
  113. package/dist/local-js/vant@2.5.6.min.js +7 -0
  114. package/dist/local-js/vconsole.min.js +10 -0
  115. package/dist/local-js/vue-router@3.1.3.min.js +6 -0
  116. package/dist/local-js/vue@2.6.10.runtime.min.js +6 -0
  117. package/dist/local-js/vue@2.7.16.min.js +11932 -0
  118. package/dist/local-js/vuex@3.1.1.min.js +6 -0
  119. package/dist/utils/ERP/ERP/345/267/245/345/205/267/346/226/271/346/263/225.html +38 -0
  120. package/dist/utils/H5/H5/345/267/245/345/205/267/346/226/271/346/263/225.html +55 -0
  121. package/dist/utils/H5/copyText /345/244/215/345/210/266.html" +45 -0
  122. package/dist/utils/index.html +34 -0
  123. package/dist//346/226/207/346/241/243/345/272/223/346/226/207/344/273/266/345/244/271.html +46 -0
  124. package/lib/demo.html +10 -0
  125. package/lib/hrui@1.0.1.common.js +7411 -0
  126. package/lib/hrui@1.0.1.umd.js +7411 -0
  127. package/lib/hrui@1.0.1.umd.min.js +1 -0
  128. package/package.json +65 -65
  129. package/packages/hr-bottom-button/index.js +6 -6
  130. package/packages/hr-bottom-button/src/index.vue +84 -84
  131. package/packages/hr-button/index.js +12 -12
  132. package/packages/hr-button/src/hr-button.vue +38 -38
  133. package/packages/hr-clipboard/index.js +3 -3
  134. package/packages/hr-clipboard/src/main.vue +64 -64
  135. package/packages/hr-clipboard/src/util.js +9 -9
  136. package/packages/hr-condition-filtrate/enum/index.js +10 -10
  137. package/packages/hr-condition-filtrate/index.js +6 -6
  138. package/packages/hr-condition-filtrate/src/employee-choose/index.vue +101 -101
  139. package/packages/hr-condition-filtrate/src/index.vue +245 -245
  140. package/packages/hr-condition-filtrate/src/multiterm-choose/index.vue +166 -166
  141. package/packages/hr-condition-filtrate/src/org-tree-choose/index.vue +101 -101
  142. package/packages/hr-condition-filtrate/src/single-choose/index.vue +143 -143
  143. package/packages/hr-condition-filtrate/src/text-input/index.vue +60 -60
  144. package/packages/hr-condition-filtrate/src/time-selector/date-range-select.vue +154 -154
  145. package/packages/hr-condition-filtrate/src/time-selector/index.vue +380 -380
  146. package/packages/hr-condition-filtrate/src/time-selector/utils/constant.js +30 -30
  147. package/packages/hr-condition-filtrate/src/time-selector/utils/tools.js +212 -212
  148. package/packages/hr-emotional-picture/index.js +6 -6
  149. package/packages/hr-emotional-picture/src/index.vue +66 -66
  150. package/packages/hr-img-list/index.js +3 -0
  151. package/packages/hr-img-list/src/index.vue +124 -0
  152. package/packages/hr-img-list//345/244/232/345/233/276/345/210/227/350/241/250.md +0 -0
  153. package/packages/hr-module-card/index.js +12 -12
  154. package/packages/hr-module-card/src/index.vue +132 -132
  155. 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
  156. package/packages/hr-notice-bar/index.js +6 -6
  157. package/packages/hr-notice-bar/src/bem.js +37 -37
  158. package/packages/hr-notice-bar/src/index.js +51 -51
  159. package/packages/hr-notice-bar//351/200/232/347/237/245/346/240/217/347/273/204/344/273/266.md +2 -2
  160. package/packages/hr-open-ks/index.js +3 -3
  161. package/packages/hr-open-ks/src/main.vue +85 -85
  162. package/packages/hr-open-ks/src/util.js +31 -31
  163. package/packages/hr-pager/index.js +6 -6
  164. package/packages/hr-pager/src/index.vue +95 -95
  165. package/packages/hr-popup/index.js +3 -0
  166. package/packages/hr-popup/src/index.vue +48 -0
  167. package/packages/hr-popup//345/274/271/345/207/272/345/261/202.md +0 -0
  168. package/packages/hr-search-input/index.js +7 -7
  169. package/packages/hr-search-input/src/index.vue +144 -144
  170. package/packages/hr-select/index.js +3 -3
  171. package/packages/hr-select/src/main.vue +62 -62
  172. package/packages/hr-select-list/index.js +3 -0
  173. package/packages/hr-select-list/src/index.vue +162 -0
  174. 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
  175. package/packages/hr-slide-pager/guide/image/turn-left.png +0 -0
  176. package/packages/hr-slide-pager/guide/image/turn-right.png +0 -0
  177. package/packages/hr-slide-pager/guide/index.vue +58 -58
  178. package/packages/hr-slide-pager/index.js +6 -6
  179. package/packages/hr-slide-pager/src/index.vue +370 -370
  180. package/packages/hr-stack-image/index.js +3 -3
  181. package/packages/hr-stack-image/src/main.vue +76 -76
  182. package/packages/hr-tab-nav/index.js +7 -7
  183. package/packages/hr-tab-nav/src/index.vue +96 -96
  184. package/packages/hr-view-item/index.js +12 -12
  185. package/packages/hr-view-item/src/index.vue +89 -89
  186. package/packages/index.js +52 -52
  187. package/packages/utils/directive.js +58 -58
  188. package/packages/utils/index.js +73 -73
  189. package/dist/demo.html +0 -8
  190. package/dist/hrui.common.js +0 -3892
  191. package/dist/hrui.common.js.map +0 -1
  192. package/dist/hrui.umd.js +0 -3902
  193. package/dist/hrui.umd.js.map +0 -1
  194. package/dist/hrui.umd.min.js +0 -2
  195. package/dist/hrui.umd.min.js.map +0 -1
  196. package/lib/hr-bottom-button/index.css +0 -1
  197. package/lib/hr-bottom-button/index.js +0 -1
  198. package/lib/hr-button/index.css +0 -1
  199. package/lib/hr-button/index.js +0 -1
  200. package/lib/hr-clipboard/index.css +0 -1
  201. package/lib/hr-clipboard/index.js +0 -1
  202. package/lib/hr-condition-filtrate/index.css +0 -1
  203. package/lib/hr-condition-filtrate/index.js +0 -1
  204. package/lib/hr-emotional-picture/index.css +0 -1
  205. package/lib/hr-emotional-picture/index.js +0 -1
  206. package/lib/hr-module-card/index.css +0 -1
  207. package/lib/hr-module-card/index.js +0 -1
  208. package/lib/hr-notice-bar/index.js +0 -1
  209. package/lib/hr-open-ks/index.css +0 -1
  210. package/lib/hr-open-ks/index.js +0 -1
  211. package/lib/hr-pager/index.css +0 -1
  212. package/lib/hr-pager/index.js +0 -1
  213. package/lib/hr-search-input/index.css +0 -1
  214. package/lib/hr-search-input/index.js +0 -1
  215. package/lib/hr-select/index.js +0 -1
  216. package/lib/hr-slide-pager/index.css +0 -1
  217. package/lib/hr-slide-pager/index.js +0 -1
  218. package/lib/hr-stack-image/index.css +0 -1
  219. package/lib/hr-stack-image/index.js +0 -1
  220. package/lib/hr-tab-nav/index.css +0 -1
  221. package/lib/hr-tab-nav/index.js +0 -1
  222. package/lib/hr-view-item/index.css +0 -1
  223. package/lib/hr-view-item/index.js +0 -1
  224. package/lib/index/index.js +0 -1
  225. package/lib/utils/index.js +0 -1
  226. /package/lib/{index/index.css → hrui@1.0.1.css} +0 -0
@@ -1,3 +1,3 @@
1
- import hrStackImage from './src/main'
2
-
3
- export default hrStackImage
1
+ import hrStackImage from './src/main'
2
+
3
+ export default hrStackImage
@@ -1,77 +1,77 @@
1
- <script>
2
- export default {
3
- name: 'HrStackImage',
4
- props: {
5
- list: {
6
- type: Array,
7
- default: () => []
8
- },
9
- size: {
10
- type: String,
11
- default: '30px'
12
- },
13
- radius: {
14
- type: String,
15
- default: '30px'
16
- },
17
- stackSize: {
18
- type: String,
19
- default: '6px'
20
- }
21
- },
22
- emits: ['click'],
23
- computed: {
24
- hasList () {
25
- return Array.isArray(this.list) && this.list.length > 0
26
- }
27
- },
28
- methods: {
29
- handleImageClick (index) {
30
- this.$emit('click', index)
31
- }
32
- },
33
- render () {
34
- const imgConfigStyle = {
35
- width: this.size,
36
- height: this.size,
37
- borderRadius: this.radius
38
- }
39
- return (
40
- this.hasList ? <div class="image-group">
41
- {
42
- this.list.map((url, index) =>
43
- <img
44
- src={url}
45
- style={{ ...imgConfigStyle, marginLeft: index === 0 ? '0' : `-${this.stackSize}` }}
46
- onClick={() => this.handleImageClick(index)}>
47
- </img>
48
- )
49
- }
50
- </div> : null
51
- )
52
- }
53
- }
54
- </script>
55
-
56
- <style lang="less" scoped>
57
- .image-group {
58
- display: flex;
59
- align-items: center;
60
-
61
- img {
62
- width: 20px;
63
- height: 20px;
64
- border-radius: 20px;
65
- border: 1px solid #ffffff;
66
- cursor: pointer;
67
-
68
- &:hover {
69
- transform: scale(1.5);
70
- }
71
-
72
- &:last-child {
73
- margin-left: 0;
74
- }
75
- }
76
- }
1
+ <script>
2
+ export default {
3
+ name: 'HrStackImage',
4
+ props: {
5
+ list: {
6
+ type: Array,
7
+ default: () => []
8
+ },
9
+ size: {
10
+ type: String,
11
+ default: '30px'
12
+ },
13
+ radius: {
14
+ type: String,
15
+ default: '30px'
16
+ },
17
+ stackSize: {
18
+ type: String,
19
+ default: '6px'
20
+ }
21
+ },
22
+ emits: ['click'],
23
+ computed: {
24
+ hasList () {
25
+ return Array.isArray(this.list) && this.list.length > 0
26
+ }
27
+ },
28
+ methods: {
29
+ handleImageClick (index) {
30
+ this.$emit('click', index)
31
+ }
32
+ },
33
+ render () {
34
+ const imgConfigStyle = {
35
+ width: this.size,
36
+ height: this.size,
37
+ borderRadius: this.radius
38
+ }
39
+ return (
40
+ this.hasList ? <div class="image-group">
41
+ {
42
+ this.list.map((url, index) =>
43
+ <img
44
+ src={url}
45
+ style={{ ...imgConfigStyle, marginLeft: index === 0 ? '0' : `-${this.stackSize}` }}
46
+ onClick={() => this.handleImageClick(index)}>
47
+ </img>
48
+ )
49
+ }
50
+ </div> : null
51
+ )
52
+ }
53
+ }
54
+ </script>
55
+
56
+ <style lang="less" scoped>
57
+ .image-group {
58
+ display: flex;
59
+ align-items: center;
60
+
61
+ img {
62
+ width: 20px;
63
+ height: 20px;
64
+ border-radius: 20px;
65
+ border: 1px solid #ffffff;
66
+ cursor: pointer;
67
+
68
+ &:hover {
69
+ transform: scale(1.5);
70
+ }
71
+
72
+ &:last-child {
73
+ margin-left: 0;
74
+ }
75
+ }
76
+ }
77
77
  </style>
@@ -1,8 +1,8 @@
1
-
2
- import HrTabNav from './src/index.vue'
3
-
4
- HrTabNav.install = function (Vue) {
5
- Vue.component(HrTabNav.name, HrTabNav)
6
- }
7
-
1
+
2
+ import HrTabNav from './src/index.vue'
3
+
4
+ HrTabNav.install = function (Vue) {
5
+ Vue.component(HrTabNav.name, HrTabNav)
6
+ }
7
+
8
8
  export default HrTabNav
@@ -1,96 +1,96 @@
1
- <script>
2
- export default {
3
- name: 'HrTabNav',
4
- props: {
5
- defaultType: {
6
- type: Number,
7
- default () {
8
- return 10
9
- }
10
- }
11
- },
12
- data () {
13
- return {
14
- tabList: [
15
- {
16
- text: '待调度',
17
- count: 20,
18
- type: 10
19
- },
20
- {
21
- text: '已调度',
22
- count: 20,
23
- type: 20
24
- },
25
- {
26
- text: '调度中',
27
- count: 20,
28
- type: 30
29
- }
30
- ],
31
- currentType: 10
32
- }
33
- },
34
- watch: {
35
- defaultType: {
36
- immediate: true,
37
- handler (value) {
38
- this.currentType = value
39
- }
40
- }
41
- },
42
- methods: {
43
- switchTab (type) {
44
- this.currentType = type
45
- }
46
- },
47
- render () {
48
- // render tab
49
- const renderHeaderTab = (params = {}) => {
50
- const { text, type, count } = params
51
- const active = this.currentType === type
52
-
53
- return <div class={['nav-item', active && 'active']} onClick={this.switchTab.bind(this, type)}>
54
- {text} {count}
55
- {active && <i class="item-border"></i>}
56
- </div>
57
- }
58
-
59
- return <div class="hr-tab-nav">
60
- {
61
- this.tabList.map((item) => {
62
- return renderHeaderTab(item)
63
- })
64
- }
65
- </div>
66
- }
67
- }
68
- </script>
69
- <style scoped lang="less">
70
- .hr-tab-nav {
71
- display: flex;
72
- line-height: 34px;
73
- margin-bottom: 11px;
74
- .nav-item {
75
- font-size: 13px;
76
- font-weight: 600;
77
- color: #858793;
78
- position: relative;
79
- margin-right: 29px;
80
- .item-border {
81
- width: 15px;
82
- height: 3px;
83
- position: absolute;
84
- left: 50%;
85
- bottom: 0;
86
- transform: translateX(-50%);
87
- background: #a68cff;
88
- border-radius: 1.5px;
89
- }
90
- }
91
- .nav-item.active {
92
- font-size: 16px;
93
- color: #03050d;
94
- }
95
- }
96
- </style>
1
+ <script>
2
+ export default {
3
+ name: 'HrTabNav',
4
+ props: {
5
+ defaultType: {
6
+ type: Number,
7
+ default () {
8
+ return 10
9
+ }
10
+ }
11
+ },
12
+ data () {
13
+ return {
14
+ tabList: [
15
+ {
16
+ text: '待调度',
17
+ count: 20,
18
+ type: 10
19
+ },
20
+ {
21
+ text: '已调度',
22
+ count: 20,
23
+ type: 20
24
+ },
25
+ {
26
+ text: '调度中',
27
+ count: 20,
28
+ type: 30
29
+ }
30
+ ],
31
+ currentType: 10
32
+ }
33
+ },
34
+ watch: {
35
+ defaultType: {
36
+ immediate: true,
37
+ handler (value) {
38
+ this.currentType = value
39
+ }
40
+ }
41
+ },
42
+ methods: {
43
+ switchTab (type) {
44
+ this.currentType = type
45
+ }
46
+ },
47
+ render () {
48
+ // render tab
49
+ const renderHeaderTab = (params = {}) => {
50
+ const { text, type, count } = params
51
+ const active = this.currentType === type
52
+
53
+ return <div class={['nav-item', active && 'active']} onClick={this.switchTab.bind(this, type)}>
54
+ {text} {count}
55
+ {active && <i class="item-border"></i>}
56
+ </div>
57
+ }
58
+
59
+ return <div class="hr-tab-nav">
60
+ {
61
+ this.tabList.map((item) => {
62
+ return renderHeaderTab(item)
63
+ })
64
+ }
65
+ </div>
66
+ }
67
+ }
68
+ </script>
69
+ <style scoped lang="less">
70
+ .hr-tab-nav {
71
+ display: flex;
72
+ line-height: 34px;
73
+ margin-bottom: 11px;
74
+ .nav-item {
75
+ font-size: 13px;
76
+ font-weight: 600;
77
+ color: #858793;
78
+ position: relative;
79
+ margin-right: 29px;
80
+ .item-border {
81
+ width: 15px;
82
+ height: 3px;
83
+ position: absolute;
84
+ left: 50%;
85
+ bottom: 0;
86
+ transform: translateX(-50%);
87
+ background: #a68cff;
88
+ border-radius: 1.5px;
89
+ }
90
+ }
91
+ .nav-item.active {
92
+ font-size: 16px;
93
+ color: #03050d;
94
+ }
95
+ }
96
+ </style>
@@ -1,13 +1,13 @@
1
- /*
2
- * @Author : HR-OA-KTS 黄强 670604@ky-tech.com.cn
3
- * @Date : 2024-02-28 19:11:32
4
- * @Description :
5
- */
6
-
7
- import hrViewItem from './src/index.vue'
8
-
9
- hrViewItem.install = function (Vue) {
10
- Vue.component(hrViewItem.name, hrViewItem);
11
- };
12
-
1
+ /*
2
+ * @Author : HR-OA-KTS 黄强 670604@ky-tech.com.cn
3
+ * @Date : 2024-02-28 19:11:32
4
+ * @Description :
5
+ */
6
+
7
+ import hrViewItem from './src/index.vue'
8
+
9
+ hrViewItem.install = function (Vue) {
10
+ Vue.component(hrViewItem.name, hrViewItem);
11
+ };
12
+
13
13
  export default hrViewItem;
@@ -1,89 +1,89 @@
1
- <!--
2
- * @Author : HR-OA-KTS 黄强 670604@ky-tech.com.cn
3
- * @Date : 2023-08-23 19:07:30
4
- * @Description :
5
- -->
6
- <template>
7
- <div class="hr-view-info-item">
8
- <div class="label">
9
- <slot name="prefix"></slot>
10
- <span>{{ label }}</span>
11
- </div>
12
- <div class="content">
13
- <template v-if="hasValue()">
14
- <slot></slot>
15
- </template>
16
- <template v-else-if="showDefaultValue">
17
- <span> - </span>
18
- </template>
19
- </div>
20
- </div>
21
- </template>
22
-
23
- <script>
24
- export default {
25
- name: 'hr-view-item',
26
- props: {
27
- label: {
28
- type: String,
29
- default: ''
30
- },
31
- value: {
32
- type: String,
33
- default: ''
34
- },
35
- // 是否显示默认值 -
36
- showDefaultValue: {
37
- type: Boolean,
38
- default: true
39
- }
40
- },
41
- data () {
42
- return {
43
- }
44
- },
45
- created () {
46
- },
47
- mounted () {
48
- },
49
- methods: {
50
- // 是否传递有效插槽值
51
- hasValue () {
52
- const defaultSlots = this.$slots.default
53
- if (!defaultSlots) return false
54
- // 插槽是否传递文本
55
- let soltText = defaultSlots[0].text
56
- if (soltText) {
57
- // 处理自动转义的 /n 换行字符
58
- soltText = soltText.trim()
59
- }
60
- // 插槽是否传递dom
61
- const soltTag = defaultSlots[0].tag
62
-
63
- return soltText || soltTag
64
- }
65
- },
66
- computed: {
67
- },
68
- }
69
- </script>
70
-
71
- <style lang="less" scoped>
72
- .hr-view-info-item {
73
- display: flex;
74
- line-height: 28px;
75
- .label,
76
- .content {
77
- font-size: 14px;
78
- font-weight: normal;
79
- }
80
- .label {
81
- min-width: 86px;
82
- color: #6e6d72;
83
- }
84
- .content {
85
- color: #03050d;
86
- word-break: break-word;
87
- }
88
- }
89
- </style>
1
+ <!--
2
+ * @Author : HR-OA-KTS 黄强 670604@ky-tech.com.cn
3
+ * @Date : 2023-08-23 19:07:30
4
+ * @Description :
5
+ -->
6
+ <template>
7
+ <div class="hr-view-info-item">
8
+ <div class="label">
9
+ <slot name="prefix"></slot>
10
+ <span>{{ label }}</span>
11
+ </div>
12
+ <div class="content">
13
+ <template v-if="hasValue()">
14
+ <slot></slot>
15
+ </template>
16
+ <template v-else-if="showDefaultValue">
17
+ <span> - </span>
18
+ </template>
19
+ </div>
20
+ </div>
21
+ </template>
22
+
23
+ <script>
24
+ export default {
25
+ name: 'hr-view-item',
26
+ props: {
27
+ label: {
28
+ type: String,
29
+ default: ''
30
+ },
31
+ value: {
32
+ type: String,
33
+ default: ''
34
+ },
35
+ // 是否显示默认值 -
36
+ showDefaultValue: {
37
+ type: Boolean,
38
+ default: true
39
+ }
40
+ },
41
+ data () {
42
+ return {
43
+ }
44
+ },
45
+ created () {
46
+ },
47
+ mounted () {
48
+ },
49
+ methods: {
50
+ // 是否传递有效插槽值
51
+ hasValue () {
52
+ const defaultSlots = this.$slots.default
53
+ if (!defaultSlots) return false
54
+ // 插槽是否传递文本
55
+ let soltText = defaultSlots[0].text
56
+ if (soltText) {
57
+ // 处理自动转义的 /n 换行字符
58
+ soltText = soltText.trim()
59
+ }
60
+ // 插槽是否传递dom
61
+ const soltTag = defaultSlots[0].tag
62
+
63
+ return soltText || soltTag
64
+ }
65
+ },
66
+ computed: {
67
+ },
68
+ }
69
+ </script>
70
+
71
+ <style lang="less" scoped>
72
+ .hr-view-info-item {
73
+ display: flex;
74
+ line-height: 28px;
75
+ .label,
76
+ .content {
77
+ font-size: 14px;
78
+ font-weight: normal;
79
+ }
80
+ .label {
81
+ min-width: 86px;
82
+ color: #6e6d72;
83
+ }
84
+ .content {
85
+ color: #03050d;
86
+ word-break: break-word;
87
+ }
88
+ }
89
+ </style>
package/packages/index.js CHANGED
@@ -1,53 +1,53 @@
1
- /*
2
- * @Author : HR-OA-KTS 黄强 670604@ky-tech.com.cn
3
- * @Date : 2023-11-07 16:54:33
4
- * @Description :
5
- */
6
- // 引入组件
7
- import hrButton from "./hr-button";
8
- import hrModuleCard from "./hr-module-card";
9
- import hrViewItem from "./hr-view-item";
10
- import hrStackImage from './hr-stack-image'
11
- import HrOpenKS from './hr-open-ks/index'
12
- import HrClipboard from './hr-clipboard/index'
13
- import HrSelect from './hr-select/index'
14
-
15
- // 存储组件列表
16
- const components = [
17
- hrButton,
18
- hrModuleCard,
19
- hrViewItem,
20
- hrStackImage,
21
- HrOpenKS,
22
- HrClipboard,
23
- HrSelect
24
- ];
25
-
26
- // 定义install方法,接受vue作为参数
27
- const install = function (Vue) {
28
-
29
- // 判断是否安装过了
30
- if (install.installed) return;
31
-
32
- // 遍历注册全局组件
33
- components.forEach((component) => {
34
- Vue.component(component.name, component);
35
- });
36
- };
37
-
38
- // 判断是否直接引入文件
39
- if (typeof window !== "undefined" && window.Vue) {
40
- install(window.Vue);
41
- }
42
-
43
- export default install
44
-
45
- export {
46
- hrButton,
47
- hrModuleCard,
48
- hrViewItem,
49
- hrStackImage,
50
- HrOpenKS,
51
- HrClipboard,
52
- HrSelect
1
+ /*
2
+ * @Author : HR-OA-KTS 黄强 670604@ky-tech.com.cn
3
+ * @Date : 2023-11-07 16:54:33
4
+ * @Description :
5
+ */
6
+ // 引入组件
7
+ import hrButton from "./hr-button";
8
+ import hrModuleCard from "./hr-module-card";
9
+ import hrViewItem from "./hr-view-item";
10
+ import hrStackImage from './hr-stack-image'
11
+ import HrOpenKS from './hr-open-ks/index'
12
+ import HrClipboard from './hr-clipboard/index'
13
+ import HrSelect from './hr-select/index'
14
+
15
+ // 存储组件列表
16
+ const components = [
17
+ hrButton,
18
+ hrModuleCard,
19
+ hrViewItem,
20
+ hrStackImage,
21
+ HrOpenKS,
22
+ HrClipboard,
23
+ HrSelect
24
+ ];
25
+
26
+ // 定义install方法,接受vue作为参数
27
+ const install = function (Vue) {
28
+
29
+ // 判断是否安装过了
30
+ if (install.installed) return;
31
+
32
+ // 遍历注册全局组件
33
+ components.forEach((component) => {
34
+ Vue.component(component.name, component);
35
+ });
36
+ };
37
+
38
+ // 判断是否直接引入文件
39
+ if (typeof window !== "undefined" && window.Vue) {
40
+ install(window.Vue);
41
+ }
42
+
43
+ export default install
44
+
45
+ export {
46
+ hrButton,
47
+ hrModuleCard,
48
+ hrViewItem,
49
+ hrStackImage,
50
+ HrOpenKS,
51
+ HrClipboard,
52
+ HrSelect
53
53
  }