@kyfe/hroa-ui 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/hroa-ui.common.js +2464 -215
  2. package/dist/hroa-ui.css +1 -1
  3. package/dist/hroa-ui.umd.js +2464 -215
  4. package/dist/hroa-ui.umd.min.js +2 -2
  5. package/lib/getJsModule/index.css +1 -1
  6. package/lib/getJsModule/index.js +2 -2
  7. package/lib/hr-add-list/index.js +1 -1
  8. package/lib/hr-bottom-button/index.js +1 -1
  9. package/lib/hr-breadcrumb/index.js +1 -1
  10. package/lib/hr-button/index.js +1 -1
  11. package/lib/hr-clipboard/index.js +1 -1
  12. package/lib/hr-collapse-card/index.css +1 -0
  13. package/lib/hr-collapse-card/index.js +1 -0
  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-dropdown-date/index.css +1 -0
  17. package/lib/hr-dropdown-date/index.js +1 -0
  18. package/lib/hr-elasticity-box/index.js +1 -1
  19. package/lib/hr-elasticity-box-item/index.js +1 -1
  20. package/lib/hr-emotional-picture/index.js +1 -1
  21. package/lib/hr-employee-choose/index.js +1 -1
  22. package/lib/hr-file-list/index.js +1 -1
  23. package/lib/hr-full-screen/index.css +1 -0
  24. package/lib/hr-full-screen/index.js +1 -0
  25. package/lib/hr-img-list/index.js +1 -1
  26. package/lib/hr-info-card/index.js +1 -1
  27. package/lib/hr-information/index.css +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.js +1 -1
  32. package/lib/hr-no-data/index.js +1 -1
  33. package/lib/hr-notice-bar/index.js +1 -1
  34. package/lib/hr-open-ks/index.js +1 -1
  35. package/lib/hr-pager/index.css +1 -1
  36. package/lib/hr-pager/index.js +1 -1
  37. package/lib/hr-popup/index.js +1 -1
  38. package/lib/hr-preview-file/index.js +1 -1
  39. package/lib/hr-rate/index.js +1 -1
  40. package/lib/hr-reason-textarea/index.js +1 -1
  41. package/lib/hr-search-input/index.js +1 -1
  42. package/lib/hr-select/index.js +1 -1
  43. package/lib/hr-select-list/index.js +1 -1
  44. package/lib/hr-single-choose/index.js +1 -1
  45. package/lib/hr-slide-pager/index.js +1 -1
  46. package/lib/hr-sort/index.js +1 -1
  47. package/lib/hr-stack-image/index.js +1 -1
  48. package/lib/hr-tab-nav/index.css +1 -1
  49. package/lib/hr-tab-nav/index.js +1 -1
  50. package/lib/hr-view-item/index.js +1 -1
  51. package/lib/index/index.css +1 -1
  52. package/lib/index/index.js +2 -2
  53. package/lib/utils/index.js +1 -1
  54. package/package.json +2 -2
  55. package/packages/hr-collapse-card/index.js +3 -0
  56. package/packages/hr-collapse-card/src/images/icon_up.png +0 -0
  57. package/packages/hr-collapse-card/src/index.vue +151 -0
  58. package/packages/hr-collapse-card//346/212/230/345/217/240/345/215/241/347/211/207.md +0 -0
  59. package/packages/hr-dropdown-date/index.js +7 -0
  60. package/packages/hr-dropdown-date/src/calendar/calendar.js +128 -0
  61. package/packages/hr-dropdown-date/src/calendar/calendar.vue +485 -0
  62. package/packages/hr-dropdown-date/src/calendar/images/arrow@3x.png +0 -0
  63. package/packages/hr-dropdown-date/src/calendar/index.js +5 -0
  64. package/packages/hr-dropdown-date/src/date-picker/date-range-select.vue +92 -0
  65. package/packages/hr-dropdown-date/src/date-picker/month-range-select.vue +128 -0
  66. package/packages/hr-dropdown-date/src/date-picker/month-select.vue +98 -0
  67. package/packages/hr-dropdown-date/src/date-picker/style.less +120 -0
  68. package/packages/hr-dropdown-date/src/date-picker/utils.js +109 -0
  69. package/packages/hr-dropdown-date/src/index.vue +482 -0
  70. package/packages/hr-dropdown-date/src/week.js +194 -0
  71. package/packages/hr-full-screen/index.js +7 -0
  72. package/packages/hr-full-screen/src/index.vue +117 -0
  73. package/packages/hr-information/src/index.vue +1 -0
  74. package/packages/hr-pager/index.js +1 -1
  75. package/packages/hr-pager/src/index.vue +6 -5
  76. package/packages/hr-tab-nav/src/index.vue +79 -4
@@ -0,0 +1,117 @@
1
+ <script>
2
+ export default {
3
+ name: 'HrFullScreen',
4
+ props: {
5
+ show: {
6
+ type: Boolean,
7
+ default: false
8
+ },
9
+ title: {
10
+ type: String,
11
+ default: '标题'
12
+ }
13
+ },
14
+ computed: {
15
+ showPop: {
16
+ get () {
17
+ return this.show
18
+ },
19
+ set (val) {
20
+ this.$emit('update:show', val)
21
+ }
22
+ },
23
+ },
24
+ methods: {
25
+ changePopup (val) {
26
+ this.showPop = val
27
+ }
28
+ },
29
+ render () {
30
+ const myHeader = () => {
31
+ return (
32
+ <div class="screen-title">
33
+ <div onClick={() => this.showPop = false} class="title-left">
34
+ <div class="title-back">
35
+ <ks-icon name="arrow-left" />
36
+ </div>
37
+ <div class="title-text">{this.title}</div>
38
+ </div>
39
+ </div>
40
+ )
41
+ }
42
+ const popupAttrs = {
43
+ props: {
44
+ value: this.showPop,
45
+ overlay: false,
46
+ duration: 0,
47
+ getContainer: 'body'
48
+ },
49
+ style: {
50
+ width: '100%',
51
+ height: '100%'
52
+ },
53
+ on: {
54
+ input: this.changePopup,
55
+ },
56
+ }
57
+ return (
58
+ <van-popup {...popupAttrs}>
59
+ <div class="hr-full-screen">
60
+ {myHeader()}
61
+ <div class="page">{this.$slots.default}</div>
62
+ </div>
63
+ </van-popup>
64
+ )
65
+ }
66
+ }
67
+ </script>
68
+ <style lang="less" scoped>
69
+ .hr-full-screen {
70
+ width: 100%;
71
+ height: 100%;
72
+ overflow: hidden;
73
+ display: flex;
74
+ flex-direction: column;
75
+ background: #7972fe;
76
+ .screen-title {
77
+ padding-left: 16px;
78
+ padding-bottom: 8px;
79
+ box-sizing: content-box;
80
+ display: flex;
81
+ background: #7972fe;
82
+ height: 44px;
83
+ line-height: 44px;
84
+ color: #fff;
85
+ .title-left {
86
+ display: flex;
87
+ .title-back {
88
+ font-size: 22px;
89
+ font-weight: 500;
90
+ display: flex;
91
+ align-items: center;
92
+ }
93
+ .title-text {
94
+ margin-left: 4px;
95
+ font-size: 16px;
96
+ font-weight: 500;
97
+ }
98
+ }
99
+ }
100
+ .page {
101
+ flex: 1;
102
+ display: flex;
103
+ flex-direction: column;
104
+ background-color: #ffffff;
105
+ color: #03050d;
106
+ min-height: calc(100% - 52px);
107
+ }
108
+ }
109
+ .ios .hr-full-screen .screen-title,
110
+ .ipx .hr-full-screen .screen-title {
111
+ padding-top: 44px !important;
112
+ }
113
+ .ios .hr-full-screen .page,
114
+ .ipx .hr-full-screen .page {
115
+ min-height: calc(100% - 96px) !important;
116
+ }
117
+ </style>
@@ -66,6 +66,7 @@
66
66
  }
67
67
  .information-value {
68
68
  flex: 1;
69
+ word-break: break-all;
69
70
  }
70
71
  }
71
72
  </style>
@@ -4,4 +4,4 @@ hrPager.install = function (Vue) {
4
4
  Vue.component(hrPager.name, hrPager);
5
5
  };
6
6
 
7
- export default hrPager;
7
+ export default hrPager
@@ -77,19 +77,20 @@
77
77
  user-select: none;
78
78
  position: fixed;
79
79
  top: 45%;
80
+ left: 0;
80
81
  width: 100%;
81
82
  box-sizing: border-box;
82
- padding: 0 29px;
83
+ padding: 0 30px;
83
84
  > img {
84
85
  position: absolute;
85
- width: 97px;
86
- height: 97px;
86
+ width: 48px;
87
+ height: 48px;
87
88
  }
88
89
  .prev {
89
- left: 29px;
90
+ left: 14px;
90
91
  }
91
92
  .next {
92
- right: 29px;
93
+ right: 14px;
93
94
  }
94
95
  }
95
96
  </style>
@@ -22,8 +22,73 @@
22
22
  count: 0,
23
23
  type: 20
24
24
  },
25
+ {
26
+ text: 'tab3',
27
+ count: 10,
28
+ type: 30
29
+ },
30
+ {
31
+ text: 'tab4',
32
+ count: 1000,
33
+ type: 40
34
+ },
35
+ {
36
+ text: 'tab5',
37
+ count: 0,
38
+ type: 50
39
+ },
40
+ {
41
+ text: 'tab6',
42
+ count: 0,
43
+ type: 60
44
+ },
45
+ {
46
+ text: 'tab7',
47
+ count: 0,
48
+ type: 70
49
+ },
50
+ {
51
+ text: 'tab8',
52
+ count: 0,
53
+ type: 80
54
+ },
55
+ {
56
+ text: 'tab9',
57
+ count: 0,
58
+ type: 90
59
+ },
25
60
  ]
26
61
  }
62
+ },
63
+ marginRight: {
64
+ type: Number || String,
65
+ default () {
66
+ return 37
67
+ },
68
+ },
69
+ defaultColor: {
70
+ type: String,
71
+ default () {
72
+ return '#858793'
73
+ },
74
+ },
75
+ activeColor: {
76
+ type: String,
77
+ default () {
78
+ return '#03050d'
79
+ },
80
+ },
81
+ defaultFontSize: {
82
+ type: Number || String,
83
+ default () {
84
+ return 14
85
+ },
86
+ },
87
+ activeFontSize: {
88
+ type: Number || String,
89
+ default () {
90
+ return 14
91
+ },
27
92
  }
28
93
  },
29
94
  data () {
@@ -47,12 +112,19 @@
47
112
  },
48
113
  render () {
49
114
  // render tab
50
- const renderHeaderTab = (params = {}) => {
115
+ const renderHeaderTab = (params = {}, index) => {
51
116
  const { text, type, count } = params
52
117
  const active = this.currentType === type
53
118
  const isUndefined = typeof count === 'undefined'
119
+ const marginRight = index === this.tabList.length - 1 ? null : this.marginRight
120
+ const color = active ? this.activeColor : this.defaultColor
121
+ const fontSize = active ? this.activeFontSize : this.defaultFontSize
54
122
 
55
- return <div class={['nav-item', active && 'active']} onClick={this.switchTab.bind(this, type)}>
123
+ return <div class={['nav-item', active && 'active']} style={{
124
+ marginRight: `${marginRight}px`,
125
+ color,
126
+ fontSize: `${fontSize}px`,
127
+ }} onClick={this.switchTab.bind(this, type)}>
56
128
  {text} {isUndefined ? '' : count}
57
129
  {active && <i class="item-border"></i>}
58
130
  </div>
@@ -60,8 +132,8 @@
60
132
 
61
133
  return <div class="hr-tab-nav">
62
134
  {
63
- this.tabList.map((item) => {
64
- return renderHeaderTab(item)
135
+ this.tabList.map((item, index) => {
136
+ return renderHeaderTab(item, index)
65
137
  })
66
138
  }
67
139
  {
@@ -103,6 +175,9 @@
103
175
  background: #a68cff;
104
176
  border-radius: 1.5px;
105
177
  }
178
+ &:last-child {
179
+ margin: 0;
180
+ }
106
181
  }
107
182
  .nav-slot {
108
183
  margin-left: auto;