@kyfe/hroa-ui 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hroa-ui.common.js +2927 -2545
- package/dist/hroa-ui.css +1 -1
- package/dist/hroa-ui.umd.js +2927 -2545
- package/dist/hroa-ui.umd.min.js +2 -2
- package/dist/img/header.7e31b1d5.png +0 -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 +1 -1
- package/lib/hr-button/index.js +1 -1
- package/lib/hr-checkbox/index.css +1 -0
- package/lib/hr-checkbox/index.js +1 -0
- package/lib/hr-checkbox-group/index.css +1 -0
- package/lib/hr-checkbox-group/index.js +1 -0
- 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 -0
- package/lib/hr-date-filter/index.js +1 -0
- 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.css +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.css +1 -0
- package/lib/hr-notification-dialog/index.js +1 -0
- package/lib/hr-open-ks/index.js +1 -1
- package/lib/hr-pager/index.css +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.css +1 -0
- package/lib/hr-radiobox/index.js +1 -0
- package/lib/hr-radiobox-group/index.css +1 -0
- package/lib/hr-radiobox-group/index.js +1 -0
- 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.css +1 -0
- package/lib/hr-search-tips/index.js +9 -0
- package/lib/hr-select/index.js +1 -1
- package/lib/hr-select-list/index.js +1 -1
- package/lib/hr-single-choose/index.css +1 -1
- package/lib/hr-single-choose/index.js +1 -1
- package/lib/hr-slide-pager/index.css +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.css +1 -0
- package/lib/hr-time-picker/index.js +1 -0
- package/lib/hr-view-item/index.js +1 -1
- package/lib/hr-virtual-list/index.css +1 -0
- package/lib/hr-virtual-list/index.js +1 -0
- package/lib/img/header.7e31b1d5.png +0 -0
- package/lib/index/index.css +1 -1
- package/lib/index/index.js +2 -2
- package/lib/utils/index.js +1 -1
- package/package.json +17 -10
- 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-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-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 -225
- 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-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 -96
- 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-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-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 -196
- 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 -381
- 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-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/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
package/packages/getJsModule.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const jsModulefiles = require.context('./', true, /\.js$/)
|
|
2
|
-
|
|
3
|
-
export const getJsModuleList = () => {
|
|
4
|
-
const moduleMap = {}
|
|
5
|
-
jsModulefiles.keys().forEach((file) => {
|
|
6
|
-
if (file.indexOf('hr') === -1 && file.indexOf('src/index.js') === -1) return
|
|
7
|
-
const component = jsModulefiles(file).default || jsModulefiles(file)
|
|
8
|
-
moduleMap[component.name] = component
|
|
9
|
-
})
|
|
10
|
-
return moduleMap
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><g><path d="M8,0L6,0L6,6L0,6L0,8L6,8L6,14L8,14L8,8L14,8L14,6L8,6L8,0Z" fill-rule="evenodd" fill="#7972FE" fill-opacity="1"/></g></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="16" height="16" viewBox="0 0 16 16"><g><g transform="matrix(-1,0,0,1,32,0)"><path d="M16 6C16 2.686291501015239 18.68629150101524 0 22 0L32 0C32 0 32 0 32 0L32 8C32 12.418277998646346 28.418277998646346 16 24 16L16 16C16 16 16 16 16 16Z" fill="#C6C6D0" fill-opacity="1"/></g><g><path d="M8.994630292510987,6.37497901397705L11.194520292510987,4.175094013977051C11.368090292510987,4.001527413977051,11.649490292510986,4.001527413977051,11.823060292510986,4.175094013977051C11.996630292510986,4.34866001397705,11.996630292510986,4.630067013977051,11.823060292510986,4.803633013977051L9.623170292510986,7.003519013977051L11.823060292510986,9.203409013977051C11.996630292510986,9.376979013977051,11.996630292510986,9.65837901397705,11.823060292510986,9.83194901397705C11.649490292510986,10.00551901397705,11.368090292510987,10.00551901397705,11.194520292510987,9.83194901397705L8.994630292510987,7.6320590139770506L6.794744292510987,9.83194901397705C6.6211782925109866,10.00551901397705,6.339771292510986,10.00551901397705,6.166205292510987,9.83194901397705C5.992638692510987,9.65837901397705,5.992638692510987,9.376979013977051,6.166205292510987,9.203409013977051L8.366090292510986,7.003519013977051L6.166205292510987,4.803633013977051C5.992638692510987,4.630067013977051,5.992638692510987,4.34866001397705,6.166205292510987,4.175094013977051C6.339771292510986,4.001527413977051,6.6211782925109866,4.001527413977051,6.794744292510987,4.175094013977051L8.994630292510987,6.37497901397705Z" fill-rule="evenodd" fill="#FFFFFF" fill-opacity="1"/></g></g></svg>
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="hr-data-list">
|
|
3
|
-
<div class="data-list-card"
|
|
4
|
-
v-for="(item, index) in data"
|
|
5
|
-
:key="index">
|
|
6
|
-
<div class="data-list-card-title">
|
|
7
|
-
<slot name="title"
|
|
8
|
-
:index="index + 1">
|
|
9
|
-
<template>
|
|
10
|
-
<img class="icon-image"
|
|
11
|
-
:src="titleImageUrl"
|
|
12
|
-
v-if="titleImageUrl"
|
|
13
|
-
alt="">
|
|
14
|
-
{{`${title}${showTitleIndex ? index + 1 : ''}`}}
|
|
15
|
-
</template>
|
|
16
|
-
</slot>
|
|
17
|
-
<div class="close-btn"
|
|
18
|
-
@click="deleteData(index)">
|
|
19
|
-
<img src="../image/close.svg"
|
|
20
|
-
alt="">
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
<slot :row="item"></slot>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="add-data-btn"
|
|
26
|
-
@click="addData"> <img class="icon-add"
|
|
27
|
-
src="../image/add.svg"
|
|
28
|
-
alt="">{{addText}}</div>
|
|
29
|
-
</div>
|
|
30
|
-
</template>
|
|
31
|
-
|
|
32
|
-
<script>
|
|
33
|
-
export default {
|
|
34
|
-
name: 'HrAddList',
|
|
35
|
-
props: {
|
|
36
|
-
data: {
|
|
37
|
-
type: Array,
|
|
38
|
-
default: () => []
|
|
39
|
-
},
|
|
40
|
-
title: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: ''
|
|
43
|
-
},
|
|
44
|
-
showTitleIndex: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: true
|
|
47
|
-
},
|
|
48
|
-
titleImageUrl: {
|
|
49
|
-
type: String,
|
|
50
|
-
default: ''
|
|
51
|
-
},
|
|
52
|
-
addText: {
|
|
53
|
-
type: String,
|
|
54
|
-
default: '添加'
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
data () {
|
|
58
|
-
return {
|
|
59
|
-
list: []
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
methods: {
|
|
63
|
-
addData () {
|
|
64
|
-
this.$emit('add')
|
|
65
|
-
},
|
|
66
|
-
deleteData (index) {
|
|
67
|
-
this.$emit('delete', index)
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
</script>
|
|
72
|
-
|
|
73
|
-
<style scoped lang="less">
|
|
74
|
-
.hr-data-list {
|
|
75
|
-
.data-list-card {
|
|
76
|
-
position: relative;
|
|
77
|
-
margin-top: 10px;
|
|
78
|
-
background-color: #fff;
|
|
79
|
-
border-radius: 6px;
|
|
80
|
-
overflow: hidden;
|
|
81
|
-
.data-list-card-title {
|
|
82
|
-
display: flex;
|
|
83
|
-
align-items: center;
|
|
84
|
-
padding: 12px 16px;
|
|
85
|
-
box-shadow: inset 0px -0.5px 0px 0px #ebedf5;
|
|
86
|
-
font-size: 15px;
|
|
87
|
-
font-weight: 500;
|
|
88
|
-
> .icon-image {
|
|
89
|
-
height: 18px;
|
|
90
|
-
width: 18px;
|
|
91
|
-
margin-right: 6px;
|
|
92
|
-
}
|
|
93
|
-
.close-btn {
|
|
94
|
-
position: absolute;
|
|
95
|
-
right: 0;
|
|
96
|
-
top: 0;
|
|
97
|
-
padding: 0 0 3px 6px;
|
|
98
|
-
img {
|
|
99
|
-
height: 16px;
|
|
100
|
-
width: 16px;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
.add-data-btn {
|
|
106
|
-
display: flex;
|
|
107
|
-
align-items: center;
|
|
108
|
-
justify-content: center;
|
|
109
|
-
margin: 10px 0;
|
|
110
|
-
height: 46px;
|
|
111
|
-
background-color: #fff;
|
|
112
|
-
border-radius: 6px;
|
|
113
|
-
color: #7972fe;
|
|
114
|
-
font-size: 14px;
|
|
115
|
-
.icon-add {
|
|
116
|
-
height: 14px;
|
|
117
|
-
width: 14px;
|
|
118
|
-
margin-right: 8px;
|
|
119
|
-
}
|
|
120
|
-
&:active {
|
|
121
|
-
background-color: rgba(0, 0, 0, 0.1);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
</style>
|
|
File without changes
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
name: 'HrBottomButton',
|
|
4
|
-
props: {
|
|
5
|
-
list: {
|
|
6
|
-
type: Array,
|
|
7
|
-
default () {
|
|
8
|
-
return [
|
|
9
|
-
{
|
|
10
|
-
text: '取消',
|
|
11
|
-
icon: '',
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
text: '确定',
|
|
15
|
-
icon: '',
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
isRadius: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default () {
|
|
23
|
-
return false
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
zIndex: {
|
|
27
|
-
type: Number,
|
|
28
|
-
default () {
|
|
29
|
-
return 1
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
isCompatibilityIos: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default () {
|
|
35
|
-
return true
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
data () {
|
|
40
|
-
return {}
|
|
41
|
-
},
|
|
42
|
-
methods: {
|
|
43
|
-
clickButton (index) {
|
|
44
|
-
this.$emit('clickButton', index)
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
render () {
|
|
48
|
-
return <div class={[
|
|
49
|
-
'hr-bottom-button',
|
|
50
|
-
this.isCompatibilityIos && 'hr-bottom-button-ios'
|
|
51
|
-
]} style={{
|
|
52
|
-
zIndex: this.zIndex
|
|
53
|
-
}}>
|
|
54
|
-
<div class="button-list">
|
|
55
|
-
{
|
|
56
|
-
this.list.map((item, index) => {
|
|
57
|
-
const { text } = item
|
|
58
|
-
return <div class="list-item" onClick={this.clickButton.bind(this, index)}>
|
|
59
|
-
<span class="item-text">{text}</span>
|
|
60
|
-
</div>
|
|
61
|
-
})
|
|
62
|
-
}
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
</script>
|
|
68
|
-
|
|
69
|
-
<style scoped lang="less">
|
|
70
|
-
.hr-bottom-button {
|
|
71
|
-
background: #fff;
|
|
72
|
-
.button-list {
|
|
73
|
-
padding: 8px 16px;
|
|
74
|
-
display: flex;
|
|
75
|
-
// justify-content: space-around;
|
|
76
|
-
// gap: 13px;
|
|
77
|
-
.list-item {
|
|
78
|
-
margin-right: 13px;
|
|
79
|
-
flex: 1;
|
|
80
|
-
font-size: 16px;
|
|
81
|
-
color: #7972fe;
|
|
82
|
-
display: flex;
|
|
83
|
-
line-height: 40px;
|
|
84
|
-
border-radius: 8px;
|
|
85
|
-
background: #fff;
|
|
86
|
-
position: relative;
|
|
87
|
-
.item-text {
|
|
88
|
-
text-align: center;
|
|
89
|
-
flex: 1;
|
|
90
|
-
}
|
|
91
|
-
&::after {
|
|
92
|
-
content: "";
|
|
93
|
-
width: 200%;
|
|
94
|
-
height: 200%;
|
|
95
|
-
border: 1px solid #7972fe;
|
|
96
|
-
transform: scale(0.5);
|
|
97
|
-
border-radius: 16px;
|
|
98
|
-
position: absolute;
|
|
99
|
-
left: 0;
|
|
100
|
-
top: 0;
|
|
101
|
-
transform-origin: 0 0;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
.list-item:last-child {
|
|
105
|
-
color: #ffffff;
|
|
106
|
-
background: #7972fe;
|
|
107
|
-
margin-right: 0;
|
|
108
|
-
|
|
109
|
-
&::after {
|
|
110
|
-
content: "";
|
|
111
|
-
width: 200%;
|
|
112
|
-
height: 200%;
|
|
113
|
-
border: 1px solid transparent;
|
|
114
|
-
transform: scale(0.5);
|
|
115
|
-
border-radius: 16px;
|
|
116
|
-
position: absolute;
|
|
117
|
-
left: 0;
|
|
118
|
-
top: 0;
|
|
119
|
-
transform-origin: 0 0;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
.ios .hr-bottom-button-ios,
|
|
125
|
-
.ipx .hr-bottom-button-ios {
|
|
126
|
-
padding-bottom: 28px;
|
|
127
|
-
}
|
|
128
|
-
</style>
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { cloneDeep } from 'lodash'
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
name: 'HrBreadcrumb',
|
|
6
|
-
props: {
|
|
7
|
-
// 分隔符
|
|
8
|
-
separator: {
|
|
9
|
-
type: String,
|
|
10
|
-
default: '/'
|
|
11
|
-
},
|
|
12
|
-
// 节点字号
|
|
13
|
-
nodeSize: {
|
|
14
|
-
type: String,
|
|
15
|
-
default: '12px'
|
|
16
|
-
},
|
|
17
|
-
value: {
|
|
18
|
-
type: Array,
|
|
19
|
-
default: () => ([])
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
data () {
|
|
23
|
-
return {
|
|
24
|
-
listData: []
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
watch: {
|
|
28
|
-
value: {
|
|
29
|
-
handler (val) {
|
|
30
|
-
this.listData = val || []
|
|
31
|
-
},
|
|
32
|
-
immediate: true,
|
|
33
|
-
deep: true
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
render () {
|
|
37
|
-
return (
|
|
38
|
-
<div class="hr-breadcrumb"
|
|
39
|
-
style={`font-size:${this.nodeSize}`}>
|
|
40
|
-
{
|
|
41
|
-
this.listData.map((item, index) => {
|
|
42
|
-
const lastItem = index === this.listData.length - 1
|
|
43
|
-
return (
|
|
44
|
-
<span class={['node-text', lastItem ? 'disabled-text' : 'use-text']}
|
|
45
|
-
onClick={() => this.itemClick(item, index)}>
|
|
46
|
-
{
|
|
47
|
-
index > 0 && this.separator &&
|
|
48
|
-
<span class="separator" domPropsInnerHTML={this.separator}></span>
|
|
49
|
-
}
|
|
50
|
-
{item.name}
|
|
51
|
-
</span>
|
|
52
|
-
)
|
|
53
|
-
})
|
|
54
|
-
}
|
|
55
|
-
</div>
|
|
56
|
-
)
|
|
57
|
-
},
|
|
58
|
-
methods: {
|
|
59
|
-
itemClick (item, index) {
|
|
60
|
-
const result = this.splitArray(this.listData, index)
|
|
61
|
-
this.$emit('itemClick', item, index, result)
|
|
62
|
-
this.$emit('change', result[0])
|
|
63
|
-
},
|
|
64
|
-
// 分割数组
|
|
65
|
-
splitArray (array, index) {
|
|
66
|
-
const arr = cloneDeep(array)
|
|
67
|
-
let part1 = [...arr.slice(0, index + 1)]
|
|
68
|
-
let part2 = [...arr.slice(index + 1)]
|
|
69
|
-
return [part1, part2]
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
</script>
|
|
74
|
-
|
|
75
|
-
<style lang="less" scoped>
|
|
76
|
-
.hr-breadcrumb {
|
|
77
|
-
.disabled-text {
|
|
78
|
-
color: #888ea6;
|
|
79
|
-
}
|
|
80
|
-
.use-text {
|
|
81
|
-
color: #7972fe;
|
|
82
|
-
}
|
|
83
|
-
.separator {
|
|
84
|
-
margin: 0 2px;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
</style>
|
|
File without changes
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author : HR-OA-KTS 黄强 670604@ky-tech.com.cn
|
|
3
|
-
* @Date : 2023-11-07 16:47:26
|
|
4
|
-
* @Description :
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import hrButton from './src/hr-button'
|
|
8
|
-
|
|
9
|
-
hrButton.install = function (Vue) {
|
|
10
|
-
Vue.component(hrButton.name, hrButton);
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export default hrButton;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author : HR-OA-KTS 黄强 670604@ky-tech.com.cn
|
|
3
|
-
* @Date : 2023-11-07 16:47:16
|
|
4
|
-
* @Description :
|
|
5
|
-
-->
|
|
6
|
-
<template>
|
|
7
|
-
<div class="hr-button">
|
|
8
|
-
|
|
9
|
-
<ks-button plain
|
|
10
|
-
type="primary"
|
|
11
|
-
@click="handleBtnClick">
|
|
12
|
-
<slot></slot>
|
|
13
|
-
</ks-button>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script>
|
|
18
|
-
|
|
19
|
-
export default {
|
|
20
|
-
name: "hr-button",
|
|
21
|
-
props: {},
|
|
22
|
-
data () {
|
|
23
|
-
return {
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
methods: {
|
|
28
|
-
handleBtnClick () {
|
|
29
|
-
console.log('别看我长得丑,我有内涵的');
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
</script>
|
|
34
|
-
|
|
35
|
-
<style scoped>
|
|
36
|
-
.button {
|
|
37
|
-
padding: 6px 10px;
|
|
38
|
-
}
|
|
39
|
-
</style>
|
|
@@ -1,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
|