@kyfe/hroa-ui 1.0.6 → 1.0.8-beta.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.
- package/dist/hroa-ui.common.js +2344 -2381
- package/dist/hroa-ui.css +1 -1
- package/dist/hroa-ui.umd.js +2344 -2381
- package/dist/hroa-ui.umd.min.js +2 -2
- package/lib/h5-iaa/hr-assistant-profile/demo/index.css +1 -0
- package/lib/h5-iaa/hr-assistant-profile/demo/index.js +1 -0
- package/lib/hr-add-list/index.js +1 -1
- package/lib/hr-bottom-button/index.js +1 -1
- package/lib/hr-breadcrumb/index.js +2 -2
- package/lib/hr-button/index.js +1 -1
- package/lib/hr-checkbox/index.js +1 -1
- package/lib/hr-checkbox-group/index.js +1 -1
- package/lib/hr-clipboard/index.js +1 -1
- package/lib/hr-collapse-card/index.js +1 -1
- package/lib/hr-condition-filtrate/index.js +1 -1
- package/lib/hr-condition-filtrate-popup/index.js +1 -1
- package/lib/hr-date-filter/index.css +1 -1
- package/lib/hr-date-filter/index.js +1 -1
- package/lib/hr-dropdown-date/index.css +1 -1
- package/lib/hr-dropdown-date/index.js +1 -1
- package/lib/hr-elasticity-box/index.js +1 -1
- package/lib/hr-elasticity-box-item/index.js +1 -1
- package/lib/hr-emotional-picture/index.js +1 -1
- package/lib/hr-employee-choose/index.js +1 -1
- package/lib/hr-file-list/index.js +1 -1
- package/lib/hr-full-screen/index.js +1 -1
- package/lib/hr-img-list/index.css +1 -1
- package/lib/hr-img-list/index.js +1 -1
- package/lib/hr-info-card/index.js +1 -1
- package/lib/hr-information/index.js +1 -1
- package/lib/hr-license-plate-number/index.js +1 -1
- package/lib/hr-module-card/index.js +1 -1
- package/lib/hr-multiterm-choose/index.css +1 -1
- package/lib/hr-multiterm-choose/index.js +1 -1
- package/lib/hr-no-data/index.js +1 -1
- package/lib/hr-notice-bar/index.js +1 -1
- package/lib/hr-notification-dialog/index.js +1 -1
- package/lib/hr-open-ks/index.js +1 -1
- package/lib/hr-pager/index.js +1 -1
- package/lib/hr-popup/index.js +1 -1
- package/lib/hr-preview-file/index.js +1 -1
- package/lib/hr-radiobox/index.js +1 -1
- package/lib/hr-radiobox-group/index.js +1 -1
- package/lib/hr-rate/index.js +1 -1
- package/lib/hr-reason-textarea/index.js +1 -1
- package/lib/hr-search-input/index.js +1 -1
- package/lib/hr-search-tips/index.js +2 -2
- package/lib/hr-select/index.js +1 -1
- package/lib/hr-select-list/index.js +2 -2
- package/lib/hr-single-choose/index.css +1 -1
- package/lib/hr-single-choose/index.js +1 -1
- package/lib/hr-slide-pager/index.js +1 -1
- package/lib/hr-sort/index.js +1 -1
- package/lib/hr-stack-image/index.js +1 -1
- package/lib/hr-tab-nav/index.js +1 -1
- package/lib/hr-time-picker/index.js +1 -1
- package/lib/hr-view-item/index.js +1 -1
- package/lib/hr-virtual-list/index.js +1 -1
- package/lib/index/index.css +1 -1
- package/lib/index/index.js +2 -2
- package/lib/utils/index.js +1 -1
- package/package.json +82 -71
- package/lib/getJsModule/index.css +0 -1
- package/lib/getJsModule/index.js +0 -9
- package/packages/getJsModule.js +0 -11
- package/packages/hr-add-list/image/add.svg +0 -1
- package/packages/hr-add-list/image/close.svg +0 -1
- package/packages/hr-add-list/index.js +0 -7
- package/packages/hr-add-list/src/index.vue +0 -125
- 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
- package/packages/hr-bottom-button/index.js +0 -7
- package/packages/hr-bottom-button/src/index.vue +0 -128
- package/packages/hr-breadcrumb/index.js +0 -3
- package/packages/hr-breadcrumb/src/index.vue +0 -87
- package/packages/hr-breadcrumb//351/235/242/345/214/205/345/261/221.md +0 -0
- package/packages/hr-button/index.js +0 -13
- package/packages/hr-button/src/hr-button.vue +0 -39
- package/packages/hr-checkbox/index.js +0 -8
- package/packages/hr-checkbox/src/active-icon.png +0 -0
- package/packages/hr-checkbox/src/checkbox-group.vue +0 -74
- package/packages/hr-checkbox/src/checkbox.vue +0 -226
- package/packages/hr-checkbox/src/data.js +0 -46
- 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
- package/packages/hr-checkbox-group/index.js +0 -8
- package/packages/hr-clipboard/index.js +0 -8
- package/packages/hr-clipboard/src/index.vue +0 -46
- package/packages/hr-clipboard/src/util.js +0 -9
- package/packages/hr-collapse-card/index.js +0 -3
- package/packages/hr-collapse-card/src/images/icon_up.png +0 -0
- package/packages/hr-collapse-card/src/index.vue +0 -151
- package/packages/hr-collapse-card//346/212/230/345/217/240/345/215/241/347/211/207.md +0 -0
- package/packages/hr-condition-filtrate/enum/index.js +0 -11
- package/packages/hr-condition-filtrate/image/arrow-right.png +0 -0
- package/packages/hr-condition-filtrate/index.js +0 -7
- package/packages/hr-condition-filtrate/src/employee-choose/index.vue +0 -101
- package/packages/hr-condition-filtrate/src/index.vue +0 -246
- package/packages/hr-condition-filtrate/src/multiterm-choose/index.vue +0 -167
- package/packages/hr-condition-filtrate/src/org-tree-choose/index.vue +0 -102
- package/packages/hr-condition-filtrate/src/single-choose/index.vue +0 -144
- package/packages/hr-condition-filtrate/src/text-input/index.vue +0 -60
- package/packages/hr-condition-filtrate/src/time-selector/date-range-select.vue +0 -154
- package/packages/hr-condition-filtrate/src/time-selector/images/date-icon.png +0 -0
- package/packages/hr-condition-filtrate/src/time-selector/index.vue +0 -380
- package/packages/hr-condition-filtrate/src/time-selector/utils/constant.js +0 -30
- package/packages/hr-condition-filtrate/src/time-selector/utils/tools.js +0 -213
- package/packages/hr-condition-filtrate-popup/index.js +0 -7
- package/packages/hr-condition-filtrate-popup/src/index.vue +0 -236
- package/packages/hr-date-filter/index.js +0 -7
- package/packages/hr-date-filter/src/date-select.vue +0 -153
- package/packages/hr-date-filter/src/index.vue +0 -243
- package/packages/hr-date-filter/src/style.less +0 -130
- package/packages/hr-date-filter/src/utils.js +0 -109
- package/packages/hr-dropdown-date/index.js +0 -7
- package/packages/hr-dropdown-date/src/calendar/calendar.js +0 -128
- package/packages/hr-dropdown-date/src/calendar/calendar.vue +0 -485
- package/packages/hr-dropdown-date/src/calendar/images/arrow@3x.png +0 -0
- package/packages/hr-dropdown-date/src/calendar/index.js +0 -5
- package/packages/hr-dropdown-date/src/date-picker/date-range-select.vue +0 -92
- package/packages/hr-dropdown-date/src/date-picker/month-range-select.vue +0 -128
- package/packages/hr-dropdown-date/src/date-picker/month-select.vue +0 -98
- package/packages/hr-dropdown-date/src/date-picker/style.less +0 -120
- package/packages/hr-dropdown-date/src/date-picker/utils.js +0 -109
- package/packages/hr-dropdown-date/src/index.vue +0 -482
- package/packages/hr-dropdown-date/src/week.js +0 -194
- package/packages/hr-elasticity-box/index.js +0 -7
- package/packages/hr-elasticity-box/src/elasticity-box-item.vue +0 -61
- package/packages/hr-elasticity-box/src/index.vue +0 -52
- package/packages/hr-elasticity-box-item/index.js +0 -7
- package/packages/hr-emotional-picture/index.js +0 -7
- package/packages/hr-emotional-picture/src/index.vue +0 -66
- package/packages/hr-emotional-picture//346/203/205/346/204/237/345/233/276/347/273/204/344/273/266.md +0 -0
- package/packages/hr-employee-choose/index.js +0 -7
- package/packages/hr-employee-choose/src/image/arrow-right.png +0 -0
- package/packages/hr-employee-choose/src/index.vue +0 -119
- package/packages/hr-file-list/index.js +0 -3
- package/packages/hr-file-list/src/file-type/other.vue +0 -45
- package/packages/hr-file-list/src/file-type/picture.vue +0 -38
- package/packages/hr-file-list/src/file-type/video.vue +0 -60
- package/packages/hr-file-list/src/index.vue +0 -246
- package/packages/hr-file-list/src/utils/enum.js +0 -95
- package/packages/hr-file-list/src/utils/fun.js +0 -16
- package/packages/hr-file-list//346/226/207/344/273/266/345/210/227/350/241/250.md +0 -0
- package/packages/hr-full-screen/index.js +0 -7
- package/packages/hr-full-screen/src/index.vue +0 -117
- package/packages/hr-img-list/index.js +0 -3
- package/packages/hr-img-list/src/index.vue +0 -144
- package/packages/hr-img-list//345/244/232/345/233/276/345/210/227/350/241/250.md +0 -0
- package/packages/hr-info-card/index.js +0 -7
- package/packages/hr-info-card/src/index.vue +0 -67
- package/packages/hr-information/index.js +0 -7
- package/packages/hr-information/src/index.vue +0 -72
- package/packages/hr-license-plate-number/index.js +0 -8
- package/packages/hr-license-plate-number/src/enum.js +0 -44
- package/packages/hr-license-plate-number/src/index.vue +0 -164
- package/packages/hr-license-plate-number/src/vnp-keyboard.vue +0 -182
- package/packages/hr-license-plate-number//350/275/246/347/211/214/345/217/267/345/274/271/347/252/227.md +0 -0
- package/packages/hr-module-card/index.js +0 -13
- package/packages/hr-module-card/src/index.vue +0 -132
- 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
- package/packages/hr-multiterm-choose/index.js +0 -8
- package/packages/hr-multiterm-choose/src/active-icon.png +0 -0
- package/packages/hr-multiterm-choose/src/index.vue +0 -224
- package/packages/hr-multiterm-choose//345/244/232/351/200/211/346/241/206.md +0 -0
- package/packages/hr-no-data/index.js +0 -7
- package/packages/hr-no-data/src/index.vue +0 -48
- package/packages/hr-notice-bar/index.js +0 -7
- package/packages/hr-notice-bar/src/bem.js +0 -38
- package/packages/hr-notice-bar/src/index.js +0 -52
- package/packages/hr-notice-bar//351/200/232/347/237/245/346/240/217/347/273/204/344/273/266.md +0 -3
- package/packages/hr-notification-dialog/images/header.png +0 -0
- package/packages/hr-notification-dialog/index.js +0 -7
- package/packages/hr-notification-dialog/src/index.vue +0 -293
- 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
- package/packages/hr-open-ks/index.js +0 -7
- package/packages/hr-open-ks/src/icon.png +0 -0
- package/packages/hr-open-ks/src/index.vue +0 -97
- package/packages/hr-open-ks/src/util.js +0 -31
- package/packages/hr-pager/images/next-page.png +0 -0
- package/packages/hr-pager/images/prev-page.png +0 -0
- package/packages/hr-pager/index.js +0 -7
- package/packages/hr-pager/src/index.vue +0 -120
- 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
- package/packages/hr-popup/index.js +0 -3
- package/packages/hr-popup/src/index.vue +0 -64
- package/packages/hr-popup//345/274/271/345/207/272/345/261/202.md +0 -0
- package/packages/hr-preview-file/index.js +0 -7
- package/packages/hr-preview-file/src/index.vue +0 -58
- package/packages/hr-preview-file/src/util.js +0 -50
- package/packages/hr-radiobox/index.js +0 -8
- package/packages/hr-radiobox/src/data.js +0 -46
- package/packages/hr-radiobox/src/radiobox-group.vue +0 -64
- package/packages/hr-radiobox/src/radiobox.vue +0 -191
- package/packages/hr-radiobox-group/index.js +0 -8
- package/packages/hr-rate/index.js +0 -7
- package/packages/hr-rate/src/index.vue +0 -42
- 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
- package/packages/hr-reason-textarea/index.js +0 -7
- package/packages/hr-reason-textarea/src/index.vue +0 -128
- package/packages/hr-search-input/image/input-close-icon.png +0 -0
- package/packages/hr-search-input/image/search-icon.png +0 -0
- package/packages/hr-search-input/index.js +0 -8
- package/packages/hr-search-input/src/index.vue +0 -144
- package/packages/hr-search-tips/index.js +0 -3
- package/packages/hr-search-tips/src/index.vue +0 -213
- 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
- package/packages/hr-select/index.js +0 -7
- package/packages/hr-select/src/index.vue +0 -41
- package/packages/hr-select-list/index.js +0 -3
- package/packages/hr-select-list/src/index.vue +0 -214
- 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
- package/packages/hr-single-choose/index.js +0 -8
- package/packages/hr-single-choose/src/index.vue +0 -195
- package/packages/hr-single-choose//345/215/225/351/200/211/346/241/206.md +0 -0
- package/packages/hr-slide-pager/guide/image/turn-left.png +0 -0
- package/packages/hr-slide-pager/guide/image/turn-right.png +0 -0
- package/packages/hr-slide-pager/guide/index.vue +0 -59
- package/packages/hr-slide-pager/guide//346/226/260/346/211/213/346/214/207/345/274/225.md +0 -0
- package/packages/hr-slide-pager/index.js +0 -7
- package/packages/hr-slide-pager/src/index.vue +0 -374
- 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
- package/packages/hr-sort/index.js +0 -3
- package/packages/hr-sort/src/main.vue +0 -133
- package/packages/hr-sort//346/216/222/345/272/217.md +0 -0
- package/packages/hr-stack-image/index.js +0 -3
- package/packages/hr-stack-image/src/main.vue +0 -77
- 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
- package/packages/hr-tab-nav/index.js +0 -8
- package/packages/hr-tab-nav/src/index.vue +0 -190
- package/packages/hr-time-picker/index.js +0 -3
- package/packages/hr-time-picker/src/index.vue +0 -85
- package/packages/hr-time-picker//346/227/266/351/227/264/351/200/211/346/213/251/345/231/250.md +0 -0
- package/packages/hr-view-item/index.js +0 -13
- package/packages/hr-view-item/src/index.vue +0 -89
- package/packages/hr-view-item//350/241/250/345/215/225/351/241/271item/345/261/225/347/244/272.md +0 -0
- package/packages/hr-virtual-list/index.js +0 -7
- package/packages/hr-virtual-list/src/cc-item.vue +0 -105
- package/packages/hr-virtual-list/src/index.vue +0 -227
- package/packages/hr-virtual-list//350/231/232/346/213/237/345/210/227/350/241/250.md +0 -0
- package/packages/index.js +0 -23
- package/packages/utils/directive/common.js +0 -0
- package/packages/utils/directive/index.js +0 -2
- package/packages/utils/directive/specific.js +0 -54
- package/packages/utils/index.js +0 -7
- package/packages/utils/tool/common.js +0 -65
- package/packages/utils/tool/index.js +0 -2
- package/packages/utils/tool/specific.js +0 -0
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import CheckItem from './data'
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
name: 'HrCheckbox',
|
|
6
|
-
inject: {
|
|
7
|
-
selfAdaption: {
|
|
8
|
-
from: 'selfAdaption',
|
|
9
|
-
default () {
|
|
10
|
-
return false
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
divideeQually: {
|
|
14
|
-
from: 'divideeQually',
|
|
15
|
-
default () {
|
|
16
|
-
return 3
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
margin: {
|
|
20
|
-
from: 'margin',
|
|
21
|
-
default () {
|
|
22
|
-
return 12
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
marginBottom: {
|
|
26
|
-
from: 'marginBottom',
|
|
27
|
-
default () {
|
|
28
|
-
return this.margin
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
props: {
|
|
33
|
-
index: {
|
|
34
|
-
type: Number,
|
|
35
|
-
default () {
|
|
36
|
-
return 0
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
value: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default () {
|
|
42
|
-
return false
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
label: {
|
|
46
|
-
type: String,
|
|
47
|
-
default () {
|
|
48
|
-
return '暂无'
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
disabled: { // 禁用
|
|
52
|
-
type: Boolean,
|
|
53
|
-
default () {
|
|
54
|
-
return false
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
data () {
|
|
59
|
-
return {
|
|
60
|
-
checkItem: new CheckItem(),
|
|
61
|
-
isLimitExceeded: false,
|
|
62
|
-
selfModel: false
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
computed: {
|
|
66
|
-
// 中间层
|
|
67
|
-
model: {
|
|
68
|
-
get () {
|
|
69
|
-
return this.isGroup
|
|
70
|
-
? this.store : this.value !== undefined
|
|
71
|
-
? this.value : this.selfModel
|
|
72
|
-
},
|
|
73
|
-
set (val) {
|
|
74
|
-
if (this.isGroup) {
|
|
75
|
-
this.dispatch('HrCheckboxGroup', 'input', [val])
|
|
76
|
-
} else {
|
|
77
|
-
this.$emit('input', val)
|
|
78
|
-
this.selfModel = val
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
//是否有group
|
|
83
|
-
isGroup () {
|
|
84
|
-
let parent = this.$parent
|
|
85
|
-
while (parent) {
|
|
86
|
-
if (parent.$options.name !== 'HrCheckboxGroup') {
|
|
87
|
-
parent = parent.$parent
|
|
88
|
-
} else {
|
|
89
|
-
this._checkboxGroup = parent
|
|
90
|
-
return true
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
return false
|
|
94
|
-
},
|
|
95
|
-
// 是否选中
|
|
96
|
-
isChecked () {
|
|
97
|
-
if ({}.toString.call(this.model) === '[object Boolean]') { // 表示Boolean
|
|
98
|
-
return this.model
|
|
99
|
-
} else if (Array.isArray(this.model)) {
|
|
100
|
-
return this.model.indexOf(this.label) > -1
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
// 存放数据
|
|
104
|
-
store () {
|
|
105
|
-
return this.isGroup ? this._checkboxGroup.value : this.value
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
created () {
|
|
109
|
-
},
|
|
110
|
-
watch: {},
|
|
111
|
-
methods: {
|
|
112
|
-
handleChange () {
|
|
113
|
-
this.setModel()
|
|
114
|
-
this.$emit('change', this.model)
|
|
115
|
-
this.$nextTick(() => {
|
|
116
|
-
this.dispatch('HrCheckboxGroup', 'change', this._checkboxGroup.value)
|
|
117
|
-
})
|
|
118
|
-
},
|
|
119
|
-
// 设置model
|
|
120
|
-
setModel () {
|
|
121
|
-
if (this.isGroup) {
|
|
122
|
-
const model = this.model.concat() // 拷贝
|
|
123
|
-
if (this.isChecked) {
|
|
124
|
-
const index = this.model.indexOf(this.label)
|
|
125
|
-
model.splice(index, 1)
|
|
126
|
-
this.model = model
|
|
127
|
-
} else {
|
|
128
|
-
model.push(this.label)
|
|
129
|
-
this.model = model
|
|
130
|
-
}
|
|
131
|
-
} else {
|
|
132
|
-
this.model = !this.isChecked
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
// 修改父组件数组
|
|
136
|
-
dispatch (componentName, eventName, params) {
|
|
137
|
-
let parent = this.$parent || this.$root
|
|
138
|
-
let name = parent.$options.name
|
|
139
|
-
|
|
140
|
-
while (parent && (!name || name !== componentName)) {
|
|
141
|
-
(parent = parent.$parent) && (name = parent.$options.name)
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
parent && parent.$emit.apply(parent, [eventName].concat(params))
|
|
145
|
-
},
|
|
146
|
-
getIndex () {
|
|
147
|
-
return this.$parent.$children.indexOf(this)
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
render () {
|
|
151
|
-
const { value, label, selfAdaption, divideeQually, margin, marginBottom } = this
|
|
152
|
-
const index = this.getIndex()
|
|
153
|
-
this.checkItem.init({
|
|
154
|
-
value,
|
|
155
|
-
label,
|
|
156
|
-
selfAdaption,
|
|
157
|
-
divideeQually,
|
|
158
|
-
margin,
|
|
159
|
-
marginBottom,
|
|
160
|
-
index
|
|
161
|
-
})
|
|
162
|
-
return <div
|
|
163
|
-
onClick={this.handleChange}
|
|
164
|
-
index={index}
|
|
165
|
-
style={{
|
|
166
|
-
width: this.checkItem.width,
|
|
167
|
-
marginRight: this.checkItem.marginRight,
|
|
168
|
-
marginBottom: this.checkItem.marginBottom,
|
|
169
|
-
}}
|
|
170
|
-
class={[
|
|
171
|
-
'check-item',
|
|
172
|
-
'ellipsis',
|
|
173
|
-
this.isChecked && 'checked',
|
|
174
|
-
]}>
|
|
175
|
-
{label}
|
|
176
|
-
{this.isChecked && <img class="item-icon" src={require('./active-icon.png')} />}
|
|
177
|
-
</div>
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
</script>
|
|
181
|
-
|
|
182
|
-
<style scoped lang="less">
|
|
183
|
-
.ellipsis {
|
|
184
|
-
overflow: hidden;
|
|
185
|
-
white-space: nowrap;
|
|
186
|
-
text-overflow: ellipsis;
|
|
187
|
-
}
|
|
188
|
-
.check-item {
|
|
189
|
-
height: 28px;
|
|
190
|
-
border-radius: 8px;
|
|
191
|
-
box-sizing: border-box;
|
|
192
|
-
background: #f7f8fa;
|
|
193
|
-
text-align: center;
|
|
194
|
-
line-height: 27px;
|
|
195
|
-
color: #03050d;
|
|
196
|
-
font-size: 12px;
|
|
197
|
-
padding: 0 8px;
|
|
198
|
-
position: relative;
|
|
199
|
-
&.checked {
|
|
200
|
-
background: rgba(121, 114, 254, 0.08);
|
|
201
|
-
color: #7972fe;
|
|
202
|
-
&::after {
|
|
203
|
-
content: " ";
|
|
204
|
-
position: absolute;
|
|
205
|
-
left: 0;
|
|
206
|
-
top: 0;
|
|
207
|
-
width: calc(200% - 2px);
|
|
208
|
-
height: calc(200% - 2px);
|
|
209
|
-
border: 1px solid #7972fe;
|
|
210
|
-
border-radius: 16px;
|
|
211
|
-
box-sizing: border-box;
|
|
212
|
-
-webkit-transform-origin: 0 0;
|
|
213
|
-
transform-origin: 0 0;
|
|
214
|
-
-webkit-transform: scale(0.5);
|
|
215
|
-
transform: scale(0.5);
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
.item-icon {
|
|
219
|
-
width: 12px;
|
|
220
|
-
height: 10px;
|
|
221
|
-
position: absolute;
|
|
222
|
-
bottom: 0.5px;
|
|
223
|
-
right: 0.5px;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
</style>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export default class CheckItem {
|
|
2
|
-
constructor() {
|
|
3
|
-
this.value = ''
|
|
4
|
-
this.label = ''
|
|
5
|
-
this.selfAdaption = ''
|
|
6
|
-
this.divideeQually = ''
|
|
7
|
-
this.margin = ''
|
|
8
|
-
this.checkValue = ''
|
|
9
|
-
this.bottom = ''
|
|
10
|
-
this.index = ''
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
init (params = {}) {
|
|
14
|
-
this.initState(params)
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
initState (params) {
|
|
18
|
-
const { value, label, selfAdaption, divideeQually, margin, checkValue, marginBottom, index } = params
|
|
19
|
-
this.value = value
|
|
20
|
-
this.label = label
|
|
21
|
-
this.selfAdaption = selfAdaption
|
|
22
|
-
this.divideeQually = divideeQually
|
|
23
|
-
this.margin = margin
|
|
24
|
-
this.checkValue = checkValue
|
|
25
|
-
this.bottom = marginBottom
|
|
26
|
-
this.index = index
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
get width () {
|
|
30
|
-
return this.selfAdaption ? null : `calc((100% - ${this.margin * (this.divideeQually - 1)}px) / ${this.divideeQually})`
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
get marginRight () {
|
|
34
|
-
return this.selfAdaption ? `${this.margin}px` : `${(this.index + 1) % this.divideeQually === 0 ? 0 : this.margin}px`
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
get marginBottom () {
|
|
38
|
-
return `${this.bottom}px`
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export const CHOOSE_TYPE = {
|
|
44
|
-
SINGLE: 'single', // 单选
|
|
45
|
-
MULTIPLE: 'multiple' // 多选
|
|
46
|
-
}
|
|
File without changes
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { copyCode } from './util.js'
|
|
3
|
-
export default {
|
|
4
|
-
name: 'HrClipboard',
|
|
5
|
-
props: {
|
|
6
|
-
// 标题名字
|
|
7
|
-
title: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: '点击复制'
|
|
10
|
-
},
|
|
11
|
-
// 需要复制的内容
|
|
12
|
-
txt: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: ''
|
|
15
|
-
},
|
|
16
|
-
color: {
|
|
17
|
-
type: String,
|
|
18
|
-
default: '#7972fe'
|
|
19
|
-
},
|
|
20
|
-
size: {
|
|
21
|
-
type: [String, Number],
|
|
22
|
-
default: '14'
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
methods: {
|
|
26
|
-
copy () {
|
|
27
|
-
copyCode(this.txt)
|
|
28
|
-
this.$emit('click', this.txt)
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
render () {
|
|
32
|
-
const style = {
|
|
33
|
-
fontSize: `${this.size}px`,
|
|
34
|
-
color: this.color,
|
|
35
|
-
}
|
|
36
|
-
return (<div style={style} onClick={this.copy.bind(this)} class="clipboard">
|
|
37
|
-
{this.$slots.default ? this.$slots.default : this.title}
|
|
38
|
-
</div>)
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
</script>
|
|
42
|
-
<style lang="less" scoped>
|
|
43
|
-
.clipboard {
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
}
|
|
46
|
-
</style>
|
|
Binary file
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import iconUp from './images/icon_up.png'
|
|
3
|
-
export default {
|
|
4
|
-
name: 'HrCollapseCard',
|
|
5
|
-
props: {
|
|
6
|
-
title: { // 标题名称
|
|
7
|
-
type: String,
|
|
8
|
-
default: '',
|
|
9
|
-
},
|
|
10
|
-
titleBackground: { // 标题背景色
|
|
11
|
-
type: String,
|
|
12
|
-
default: '#fff',
|
|
13
|
-
},
|
|
14
|
-
contentBackground: { // 主题内容背景色
|
|
15
|
-
type: String,
|
|
16
|
-
default: '#fff',
|
|
17
|
-
},
|
|
18
|
-
collapse: { // 是否需要折叠功能
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: true,
|
|
21
|
-
},
|
|
22
|
-
defaultUnfold: { // 是否默认展开
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: true,
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
data () {
|
|
28
|
-
return {
|
|
29
|
-
unfold: true
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
created () {
|
|
33
|
-
this.unfold = this.defaultUnfold
|
|
34
|
-
},
|
|
35
|
-
methods: {
|
|
36
|
-
onCollapse () {
|
|
37
|
-
this.unfold = !this.unfold
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
render () {
|
|
41
|
-
const { default: soltDefault, titleSlot, titleRightSlot } = this.$scopedSlots
|
|
42
|
-
const titleClass = this.unfold ? 'hr-collapse-card-title' : 'hr-collapse-card-title pack-up'
|
|
43
|
-
const collapseImgClass = this.unfold ? 'hr-collapse-card-collapse' : 'hr-collapse-card-collapse down'
|
|
44
|
-
const soltDefaultClass = this.unfold ? 'hr-collapse-card-content' : 'hr-collapse-card-content down'
|
|
45
|
-
return (
|
|
46
|
-
<div class="hr-collapse-card">
|
|
47
|
-
<div class={titleClass} style={{ background: this.titleBackground }}>
|
|
48
|
-
{
|
|
49
|
-
titleSlot ? <div class="hr-collapse-card-title-slot">{titleSlot()}</div> : this.title
|
|
50
|
-
}
|
|
51
|
-
{
|
|
52
|
-
titleRightSlot && <div class="hr-collapse-card-title-right-slot" style={{ right: this.collapse ? '32px' : '16px' }}>{titleRightSlot()}</div>
|
|
53
|
-
}
|
|
54
|
-
{
|
|
55
|
-
this.collapse && <img class={collapseImgClass} src={iconUp} on-click={this.onCollapse} />
|
|
56
|
-
}
|
|
57
|
-
</div>
|
|
58
|
-
{
|
|
59
|
-
soltDefault && <div class={soltDefaultClass} style={{ background: this.contentBackground }}>{soltDefault()}</div>
|
|
60
|
-
}
|
|
61
|
-
</div >
|
|
62
|
-
)
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
</script>
|
|
66
|
-
|
|
67
|
-
<style lang='less' scoped>
|
|
68
|
-
.hr-collapse-card {
|
|
69
|
-
background: #fff;
|
|
70
|
-
border-radius: 6px;
|
|
71
|
-
position: relative;
|
|
72
|
-
.hr-collapse-card-title {
|
|
73
|
-
box-sizing: border-box;
|
|
74
|
-
height: 40px;
|
|
75
|
-
padding: 10px;
|
|
76
|
-
border-radius: 6px 6px 0 0;
|
|
77
|
-
position: relative;
|
|
78
|
-
z-index: 2;
|
|
79
|
-
&::before {
|
|
80
|
-
content: "";
|
|
81
|
-
display: block;
|
|
82
|
-
width: 200%;
|
|
83
|
-
height: 200%;
|
|
84
|
-
position: absolute;
|
|
85
|
-
top: 0;
|
|
86
|
-
left: 0;
|
|
87
|
-
right: 0;
|
|
88
|
-
bottom: 0;
|
|
89
|
-
z-index: 1;
|
|
90
|
-
border: 1px solid #e5e5e5;
|
|
91
|
-
border-radius: 12px 12px 0 0;
|
|
92
|
-
transform: scale(0.5);
|
|
93
|
-
transform-origin: 0 0;
|
|
94
|
-
}
|
|
95
|
-
&.pack-up {
|
|
96
|
-
border-radius: 6px;
|
|
97
|
-
&::before {
|
|
98
|
-
border-radius: 12px;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
.hr-collapse-card-title-slot {
|
|
102
|
-
position: absolute;
|
|
103
|
-
z-index: 2;
|
|
104
|
-
}
|
|
105
|
-
.hr-collapse-card-title-right-slot {
|
|
106
|
-
position: absolute;
|
|
107
|
-
top: 10px;
|
|
108
|
-
z-index: 2;
|
|
109
|
-
}
|
|
110
|
-
.hr-collapse-card-collapse {
|
|
111
|
-
display: inline-block;
|
|
112
|
-
width: 12px;
|
|
113
|
-
height: 12px;
|
|
114
|
-
position: absolute;
|
|
115
|
-
top: 14px;
|
|
116
|
-
right: 16px;
|
|
117
|
-
z-index: 2;
|
|
118
|
-
transition: transform 0.2s ease-in-out;
|
|
119
|
-
&.down {
|
|
120
|
-
transform: rotate(180deg);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
.hr-collapse-card-content {
|
|
125
|
-
position: relative;
|
|
126
|
-
z-index: 1;
|
|
127
|
-
transition: height 0.3s ease-in-out;
|
|
128
|
-
will-change: height;
|
|
129
|
-
&::before {
|
|
130
|
-
content: "";
|
|
131
|
-
display: block;
|
|
132
|
-
width: 200%;
|
|
133
|
-
height: 200%;
|
|
134
|
-
position: absolute;
|
|
135
|
-
top: 0;
|
|
136
|
-
left: 0;
|
|
137
|
-
right: 0;
|
|
138
|
-
bottom: 0;
|
|
139
|
-
z-index: -1;
|
|
140
|
-
border: 1px solid #e5e5e5;
|
|
141
|
-
border-top: none;
|
|
142
|
-
border-radius: 0 0 12px 12px;
|
|
143
|
-
transform: scale(0.5);
|
|
144
|
-
transform-origin: 0 0;
|
|
145
|
-
}
|
|
146
|
-
&.down {
|
|
147
|
-
display: none;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
</style>
|
|
File without changes
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export const DATE_SHORTCUT_TYPE = {
|
|
2
|
-
THREE_DAY: 10,
|
|
3
|
-
SEVEN_DAY: 20,
|
|
4
|
-
ONE_MONTH: 30
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export const DATE_SHORTCUT_PARAMS = {
|
|
8
|
-
[DATE_SHORTCUT_TYPE.THREE_DAY]: { count: 3, type: 'day', text: '近三天' },
|
|
9
|
-
[DATE_SHORTCUT_TYPE.SEVEN_DAY]: { count: 7, type: 'day', text: '近七天' },
|
|
10
|
-
[DATE_SHORTCUT_TYPE.ONE_MONTH]: { count: 1, type: 'month', text: '近一个月' },
|
|
11
|
-
}
|
|
Binary file
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
name: 'EmployeeChoose',
|
|
4
|
-
props: {
|
|
5
|
-
title: {
|
|
6
|
-
type: String,
|
|
7
|
-
default () {
|
|
8
|
-
return '请选择'
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
multiple: {
|
|
12
|
-
type: Boolean,
|
|
13
|
-
default () {
|
|
14
|
-
return true
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
data () {
|
|
19
|
-
return {
|
|
20
|
-
isShowKsEmployeePopup: false,
|
|
21
|
-
employeeList: []
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
methods: {
|
|
25
|
-
confirmEmployee (list) {
|
|
26
|
-
this.employeeList = list
|
|
27
|
-
this.isShowKsEmployeePopup = false
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
render () {
|
|
31
|
-
const { employeeName } = this.employeeList[0] || {}
|
|
32
|
-
return <div class="employee-choose">
|
|
33
|
-
<div class="choose-title">{this.title}</div>
|
|
34
|
-
<div class="choose-input" onClick={() => {
|
|
35
|
-
this.isShowKsEmployeePopup = true
|
|
36
|
-
}}>
|
|
37
|
-
<span class={["input-text", employeeName && 'black']}>{employeeName || '请选择'}</span>
|
|
38
|
-
<img class="input-image" src={require('../../image/arrow-right.png')} />
|
|
39
|
-
</div>
|
|
40
|
-
<div class="choose-popup">
|
|
41
|
-
<ks-employee-popup
|
|
42
|
-
style={{ height: '100%', width: '330px' }}
|
|
43
|
-
placeholder="输入员工姓名/工号"
|
|
44
|
-
value={this.isShowKsEmployeePopup}
|
|
45
|
-
onInput={(value) => { this.isShowKsEmployeePopup = value }}
|
|
46
|
-
multiple={this.multiple}
|
|
47
|
-
menuId='151596034994370809'
|
|
48
|
-
popAttr={{ position: 'right' }}
|
|
49
|
-
onConfirm={this.confirmEmployee}></ks-employee-popup>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
</script>
|
|
55
|
-
|
|
56
|
-
<style scoped lang="less">
|
|
57
|
-
.employee-choose {
|
|
58
|
-
.choose-title {
|
|
59
|
-
line-height: 20px;
|
|
60
|
-
margin-bottom: 12px;
|
|
61
|
-
text-align: left;
|
|
62
|
-
font-size: 14px;
|
|
63
|
-
font-weight: 600;
|
|
64
|
-
color: #03050d;
|
|
65
|
-
.title-black {
|
|
66
|
-
font-size: 14px;
|
|
67
|
-
font-weight: normal;
|
|
68
|
-
color: #6e6d72;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
.choose-input {
|
|
72
|
-
height: 32px;
|
|
73
|
-
border-radius: 8px;
|
|
74
|
-
background: #f7f8fa;
|
|
75
|
-
display: flex;
|
|
76
|
-
padding: 0 17px 0 12px;
|
|
77
|
-
line-height: 32px;
|
|
78
|
-
.input-text {
|
|
79
|
-
font-size: 14px;
|
|
80
|
-
color: #b0b3bf;
|
|
81
|
-
}
|
|
82
|
-
.input-text.black {
|
|
83
|
-
color: #03050d;
|
|
84
|
-
}
|
|
85
|
-
.input-image {
|
|
86
|
-
margin: 12px 0 0 auto;
|
|
87
|
-
width: 4px;
|
|
88
|
-
height: 8px;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
.choose-popup {
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
.van-popup {
|
|
95
|
-
height: 100%;
|
|
96
|
-
.popup-employee {
|
|
97
|
-
width: 330px;
|
|
98
|
-
height: 100%;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
</style>
|