@kyfe/hroa-ui 0.0.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +77 -77
- package/dist/demo.html +10 -0
- package/dist/hroa-ui.common.js +31775 -0
- package/dist/hroa-ui.css +6 -0
- package/dist/hroa-ui.umd.js +31775 -0
- package/dist/hroa-ui.umd.min.js +9 -0
- package/lib/getJsModule/index.css +6 -0
- package/lib/getJsModule/index.js +9 -0
- package/lib/hr-at-input/index.css +6 -0
- package/lib/hr-at-input/index.js +1 -0
- package/lib/hr-bottom-button/index.css +1 -0
- package/lib/hr-bottom-button/index.js +1 -0
- package/lib/hr-button/index.css +1 -0
- package/lib/hr-button/index.js +1 -0
- package/lib/hr-clipboard/index.css +1 -0
- package/lib/hr-clipboard/index.js +1 -0
- package/lib/hr-condition-filtrate/index.css +1 -0
- package/lib/hr-condition-filtrate/index.js +1 -0
- package/lib/hr-condition-filtrate-popup/index.css +1 -0
- package/lib/hr-condition-filtrate-popup/index.js +1 -0
- package/lib/hr-elasticity-box/index.css +1 -0
- package/lib/hr-elasticity-box/index.js +1 -0
- package/lib/hr-elasticity-box-item/index.css +1 -0
- package/lib/hr-elasticity-box-item/index.js +1 -0
- package/lib/hr-emotional-picture/index.css +1 -0
- package/lib/hr-emotional-picture/index.js +1 -0
- package/lib/hr-employee-choose/index.css +1 -0
- package/lib/hr-employee-choose/index.js +1 -0
- package/lib/hr-img-list/index.css +1 -0
- package/lib/hr-img-list/index.js +1 -0
- package/lib/hr-info-card/index.css +1 -0
- package/lib/hr-info-card/index.js +1 -0
- package/lib/hr-license-plate-number/index.css +1 -0
- package/lib/hr-license-plate-number/index.js +1 -0
- package/lib/hr-module-card/index.css +1 -0
- package/lib/hr-module-card/index.js +1 -0
- package/lib/hr-multiterm-choose/index.css +1 -0
- package/lib/hr-multiterm-choose/index.js +1 -0
- package/lib/hr-no-data/index.css +1 -0
- package/lib/hr-no-data/index.js +1 -0
- package/lib/hr-notice-bar/index.js +1 -0
- package/lib/hr-open-ks/index.css +1 -0
- package/lib/hr-open-ks/index.js +1 -0
- package/lib/hr-pager/index.css +1 -0
- package/lib/hr-pager/index.js +1 -0
- package/lib/hr-popup/index.css +1 -0
- package/lib/hr-popup/index.js +1 -0
- package/lib/hr-preview-file/index.css +1 -0
- package/lib/hr-preview-file/index.js +1 -0
- package/lib/hr-rate/index.css +1 -0
- package/lib/hr-rate/index.js +1 -0
- package/lib/hr-reason-textarea/index.css +1 -0
- package/lib/hr-reason-textarea/index.js +1 -0
- package/lib/hr-search-input/index.css +1 -0
- package/lib/hr-search-input/index.js +1 -0
- package/lib/hr-select/index.js +1 -0
- package/lib/hr-select-list/index.css +1 -0
- package/lib/hr-select-list/index.js +9 -0
- package/lib/hr-single-choose/index.css +1 -0
- package/lib/hr-single-choose/index.js +1 -0
- package/lib/hr-slide-pager/index.css +1 -0
- package/lib/hr-slide-pager/index.js +1 -0
- package/lib/hr-sort/index.css +1 -0
- package/lib/hr-sort/index.js +1 -0
- package/lib/hr-stack-image/index.css +1 -0
- package/lib/hr-stack-image/index.js +1 -0
- package/lib/hr-tab-nav/index.css +1 -0
- package/lib/hr-tab-nav/index.js +1 -0
- package/lib/hr-view-item/index.css +1 -0
- package/lib/hr-view-item/index.js +1 -0
- package/lib/index/index.css +6 -0
- package/lib/index/index.js +9 -0
- package/lib/utils/index.js +1 -0
- package/package.json +7 -6
- package/packages/getJsModule.js +11 -0
- package/packages/hr-at-input/index.js +7 -0
- package/packages/hr-at-input/src/blot/atPerson.js +43 -0
- package/packages/hr-at-input/src/index.vue +472 -0
- package/packages/hr-at-input/src/quill.snow.css +945 -0
- package/packages/hr-at-input/src/utils/index.js +60 -0
- package/packages/hr-at-input//346/224/257/346/214/201@/351/200/211/344/272/272/350/276/223/345/205/245/346/241/206.md +0 -0
- package/packages/hr-bottom-button/index.js +6 -6
- package/packages/hr-bottom-button/src/index.vue +108 -84
- package/packages/hr-button/index.js +12 -12
- package/packages/hr-button/src/hr-button.vue +38 -38
- package/packages/hr-clipboard/index.js +8 -3
- package/packages/hr-clipboard/src/index.vue +46 -0
- package/packages/hr-clipboard/src/util.js +9 -9
- package/packages/hr-condition-filtrate/enum/index.js +10 -10
- package/packages/hr-condition-filtrate/index.js +6 -6
- package/packages/hr-condition-filtrate/src/employee-choose/index.vue +101 -101
- package/packages/hr-condition-filtrate/src/index.vue +245 -245
- package/packages/hr-condition-filtrate/src/multiterm-choose/index.vue +166 -166
- package/packages/hr-condition-filtrate/src/org-tree-choose/index.vue +101 -101
- package/packages/hr-condition-filtrate/src/single-choose/index.vue +143 -143
- package/packages/hr-condition-filtrate/src/text-input/index.vue +60 -60
- package/packages/hr-condition-filtrate/src/time-selector/date-range-select.vue +154 -154
- package/packages/hr-condition-filtrate/src/time-selector/index.vue +380 -380
- package/packages/hr-condition-filtrate/src/time-selector/utils/constant.js +30 -30
- package/packages/hr-condition-filtrate/src/time-selector/utils/tools.js +212 -212
- package/packages/hr-condition-filtrate-popup/index.js +7 -0
- package/packages/hr-condition-filtrate-popup/src/index.vue +236 -0
- package/packages/hr-elasticity-box/index.js +7 -0
- package/packages/hr-elasticity-box/src/elasticity-box-item.vue +61 -0
- package/packages/hr-elasticity-box/src/index.vue +52 -0
- package/packages/hr-elasticity-box-item/index.js +7 -0
- package/packages/hr-emotional-picture/index.js +6 -6
- package/packages/hr-emotional-picture/src/index.vue +66 -66
- package/packages/hr-employee-choose/index.js +7 -0
- package/packages/hr-employee-choose/src/image/arrow-right.png +0 -0
- package/packages/hr-employee-choose/src/index.vue +119 -0
- package/packages/hr-img-list/index.js +3 -3
- package/packages/hr-img-list/src/index.vue +143 -123
- package/packages/hr-info-card/index.js +7 -0
- package/packages/hr-info-card/src/index.vue +67 -0
- package/packages/hr-license-plate-number/index.js +8 -0
- package/packages/hr-license-plate-number/src/enum.js +44 -0
- package/packages/hr-license-plate-number/src/index.vue +164 -0
- package/packages/hr-license-plate-number/src/vnp-keyboard.vue +182 -0
- 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 +12 -12
- package/packages/hr-module-card/src/index.vue +132 -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 +29 -29
- package/packages/hr-multiterm-choose/index.js +8 -0
- package/packages/hr-multiterm-choose/src/active-icon.png +0 -0
- package/packages/hr-multiterm-choose/src/index.vue +212 -0
- package/packages/hr-multiterm-choose//345/244/232/351/200/211/346/241/206.md +0 -0
- package/packages/hr-no-data/index.js +7 -0
- package/packages/hr-no-data/src/index.vue +48 -0
- package/packages/hr-notice-bar/index.js +6 -6
- package/packages/hr-notice-bar/src/bem.js +37 -37
- package/packages/hr-notice-bar/src/index.js +51 -51
- package/packages/hr-notice-bar//351/200/232/347/237/245/346/240/217/347/273/204/344/273/266.md +2 -2
- package/packages/hr-open-ks/index.js +7 -3
- package/packages/hr-open-ks/src/{main.vue → index.vue} +97 -85
- package/packages/hr-open-ks/src/util.js +31 -31
- package/packages/hr-pager/index.js +6 -6
- package/packages/hr-pager/src/index.vue +95 -95
- package/packages/hr-popup/index.js +3 -3
- package/packages/hr-popup/src/index.vue +59 -47
- package/packages/hr-preview-file/index.js +7 -0
- package/packages/hr-preview-file/src/index.vue +58 -0
- package/packages/hr-preview-file/src/util.js +50 -0
- package/packages/hr-rate/index.js +7 -0
- package/packages/hr-rate/src/index.vue +42 -0
- 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 +7 -0
- package/packages/hr-reason-textarea/src/index.vue +128 -0
- package/packages/hr-search-input/index.js +7 -7
- package/packages/hr-search-input/src/index.vue +144 -144
- package/packages/hr-select/index.js +7 -3
- package/packages/hr-select/src/index.vue +41 -0
- package/packages/hr-select-list/index.js +3 -3
- package/packages/hr-select-list/src/index.vue +167 -161
- package/packages/hr-single-choose/index.js +8 -0
- package/packages/hr-single-choose/src/index.vue +178 -0
- 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 +58 -58
- package/packages/hr-slide-pager/index.js +6 -6
- package/packages/hr-slide-pager/src/index.vue +375 -370
- package/packages/hr-sort/index.js +3 -0
- package/packages/hr-sort/src/main.vue +133 -0
- package/packages/hr-sort//346/216/222/345/272/217.md +0 -0
- package/packages/hr-stack-image/index.js +3 -3
- package/packages/hr-stack-image/src/main.vue +76 -76
- package/packages/hr-tab-nav/index.js +7 -7
- package/packages/hr-tab-nav/src/index.vue +114 -96
- package/packages/hr-view-item/index.js +12 -12
- package/packages/hr-view-item/src/index.vue +89 -89
- package/packages/index.js +23 -53
- package/packages/utils/directive/common.js +0 -0
- package/packages/utils/directive/index.js +2 -0
- package/packages/utils/{directive.js → directive/specific.js} +54 -58
- package/packages/utils/index.js +7 -73
- package/packages/utils/tool/common.js +65 -0
- package/packages/utils/tool/index.js +2 -0
- package/packages/utils/tool/specific.js +0 -0
- package/dist/404.html +0 -20
- package/dist/ERP-components/index.html +0 -34
- package/dist/H5-components/custom//346/211/223/345/274/200/350/267/250/345/243/260/350/201/212/345/244/251.html +0 -34
- package/dist/H5-components/index.html +0 -34
- package/dist/H5-components/initial-stage/introduce.html +0 -71
- package/dist/H5-components/initial-stage/updateLog.html +0 -42
- package/dist/H5-components/views/hr-emotional-picture.html +0 -51
- package/dist/H5-components/views/hr-info-card.html +0 -53
- package/dist/H5-components/views/hr-no-data.html +0 -47
- package/dist/H5-components/views/hr-preview-file.html +0 -76
- package/dist/H5-components/views/hr-search-input.html +0 -50
- package/dist/H5-components/views/tic-rich-input.html +0 -95
- package/dist/H5-components/views//345/211/252/345/210/207/346/235/277/345/244/215/345/210/266.html +0 -59
- package/dist/H5-components/views//345/261/202/345/217/240/345/233/276/347/211/207.html +0 -62
- package/dist/H5-components/views//346/211/223/345/274/200/350/267/250/345/243/260/347/224/250/346/210/267.html +0 -66
- package/dist/H5-components/views//346/213/226/346/213/275dom/345/205/203/347/264/240.html +0 -52
- package/dist/H5-components/views//346/214/211/351/222/256/347/277/273/351/241/265/347/273/204/344/273/266.html +0 -48
- package/dist/H5-components/views//346/273/221/345/212/250/347/277/273/351/241/265/347/273/204/344/273/266.html +0 -55
- package/dist/H5-components/views//351/200/211/346/213/251/345/231/250/350/241/250/345/215/225.html +0 -111
- package/dist/assets/css/0.styles.89cafbc9.css +0 -8
- package/dist/assets/img/hr-emotional-picture.e7db80e6.png +0 -0
- package/dist/assets/img/hr-info-card.c50e7c33.png +0 -0
- package/dist/assets/img/hr-pager.34bafc88.png +0 -0
- package/dist/assets/img/hr-preview-file-1.3cb7c6ed.png +0 -0
- package/dist/assets/img/hr-preview-file-2.0fe45ea1.png +0 -0
- package/dist/assets/img/search.83621669.svg +0 -1
- package/dist/assets/img/select.acadd024.png +0 -0
- package/dist/assets/img/slide-pager.8e2433c6.png +0 -0
- package/dist/assets/img/tic-rich-input.8beff81a.png +0 -0
- package/dist/assets/img/v-dragable.b824e34a.png +0 -0
- package/dist/assets/js/1.1b9c091d.js +0 -1
- package/dist/assets/js/12.af649b9d.js +0 -1
- package/dist/assets/js/13.16dba19e.js +0 -1
- package/dist/assets/js/14.73f3c298.js +0 -1
- package/dist/assets/js/15.0a34e390.js +0 -1
- package/dist/assets/js/16.0cb2e2cf.js +0 -1
- package/dist/assets/js/17.ab78de8b.js +0 -1
- package/dist/assets/js/18.267c7007.js +0 -1
- package/dist/assets/js/19.879db5c0.js +0 -1
- package/dist/assets/js/2.c3a8a3e9.js +0 -16
- package/dist/assets/js/20.fe2689df.js +0 -1
- package/dist/assets/js/21.15a9e12c.js +0 -1
- package/dist/assets/js/22.8d5eaba3.js +0 -1
- package/dist/assets/js/23.333c4992.js +0 -1
- package/dist/assets/js/24.543262a0.js +0 -1
- package/dist/assets/js/25.657016f9.js +0 -1
- package/dist/assets/js/26.03bfb23b.js +0 -1
- package/dist/assets/js/27.3faf82a6.js +0 -1
- package/dist/assets/js/28.2bc37274.js +0 -1
- package/dist/assets/js/29.27882fc9.js +0 -1
- package/dist/assets/js/3.b50928b1.js +0 -1
- package/dist/assets/js/30.e682e7b5.js +0 -1
- package/dist/assets/js/31.711223cc.js +0 -1
- package/dist/assets/js/32.65c4dfd4.js +0 -1
- package/dist/assets/js/33.b3a7c2ea.js +0 -1
- package/dist/assets/js/34.159478bb.js +0 -1
- package/dist/assets/js/35.5dead2b1.js +0 -1
- package/dist/assets/js/36.b58af11f.js +0 -1
- package/dist/assets/js/37.86d4ed5a.js +0 -1
- package/dist/assets/js/38.af279c3f.js +0 -1
- package/dist/assets/js/39.89b34b70.js +0 -1
- package/dist/assets/js/4.5d6de21f.js +0 -1
- package/dist/assets/js/40.3e1516da.js +0 -1
- package/dist/assets/js/41.d021ff9e.js +0 -1
- package/dist/assets/js/42.cb50aa1c.js +0 -1
- package/dist/assets/js/43.5fded5c8.js +0 -1
- package/dist/assets/js/44.50f78d19.js +0 -1
- package/dist/assets/js/45.527386eb.js +0 -1
- package/dist/assets/js/46.9f784389.js +0 -1
- package/dist/assets/js/47.7553aa19.js +0 -1
- package/dist/assets/js/48.9fee02f5.js +0 -1
- package/dist/assets/js/49.25c724d7.js +0 -1
- package/dist/assets/js/5.b3e00557.js +0 -1
- package/dist/assets/js/50.aba60d25.js +0 -1
- package/dist/assets/js/51.01a0bacf.js +0 -1
- package/dist/assets/js/52.86012cbb.js +0 -1
- package/dist/assets/js/53.1563eb60.js +0 -1
- package/dist/assets/js/54.7e734114.js +0 -1
- package/dist/assets/js/55.28b96a29.js +0 -1
- package/dist/assets/js/56.81bd12a3.js +0 -1
- package/dist/assets/js/57.70cac198.js +0 -1
- package/dist/assets/js/58.cc1b357e.js +0 -1
- package/dist/assets/js/59.697472ae.js +0 -1
- package/dist/assets/js/6.2c85d2f8.js +0 -1
- package/dist/assets/js/60.36873359.js +0 -1
- package/dist/assets/js/61.0a367a50.js +0 -1
- package/dist/assets/js/62.1aaa7b15.js +0 -1
- package/dist/assets/js/63.52c8de07.js +0 -1
- package/dist/assets/js/64.25b51d76.js +0 -1
- package/dist/assets/js/65.462206d5.js +0 -1
- package/dist/assets/js/66.c336d9fe.js +0 -1
- package/dist/assets/js/67.1b7fa2b9.js +0 -1
- package/dist/assets/js/68.e0ebaf13.js +0 -1
- package/dist/assets/js/69.3e1b6d2e.js +0 -1
- package/dist/assets/js/7.d1b0af72.js +0 -1
- package/dist/assets/js/70.40431d36.js +0 -1
- package/dist/assets/js/71.64f24577.js +0 -1
- package/dist/assets/js/72.2cf8371b.js +0 -1
- package/dist/assets/js/73.88f7feb5.js +0 -1
- package/dist/assets/js/74.2d5471c0.js +0 -1
- package/dist/assets/js/8.9ab5ee55.js +0 -1
- package/dist/assets/js/9.aaca0f9d.js +0 -9
- package/dist/assets/js/app.7efea3c2.js +0 -16
- package/dist/assets/js/vendors~docsearch.6f3b450f.js +0 -3
- package/dist/guide/about//346/255/244/346/226/207/346/241/243/351/241/271/347/233/256.html +0 -41
- package/dist/guide/index.html +0 -34
- package/dist/index.html +0 -40
- package/dist/local-js/axios@0.19.0.min.js +0 -9
- package/dist/local-js/ks@3.0.7.umd.min.js +0 -1
- package/dist/local-js/ksui@3.0.37.umd.min.js +0 -10
- package/dist/local-js/quill.js +0 -3
- package/dist/local-js/vant@2.5.6.min.js +0 -7
- package/dist/local-js/vconsole.min.js +0 -10
- package/dist/local-js/vue-router@3.1.3.min.js +0 -6
- package/dist/local-js/vue@2.6.10.runtime.min.js +0 -6
- package/dist/local-js/vue@2.7.16.min.js +0 -11932
- package/dist/local-js/vuex@3.1.1.min.js +0 -6
- package/dist/utils/ERP/ERP/345/267/245/345/205/267/346/226/271/346/263/225.html +0 -38
- package/dist/utils/H5/H5/345/267/245/345/205/267/346/226/271/346/263/225.html +0 -55
- package/dist/utils/H5/copyText /345/244/215/345/210/266.html" +0 -45
- package/dist/utils/index.html +0 -34
- package/dist//346/226/207/346/241/243/345/272/223/346/226/207/344/273/266/345/244/271.html +0 -46
- package/lib/demo.html +0 -10
- package/lib/hrui@1.0.1.common.js +0 -7411
- package/lib/hrui@1.0.1.css +0 -1
- package/lib/hrui@1.0.1.umd.js +0 -7411
- package/lib/hrui@1.0.1.umd.min.js +0 -1
- package/packages/hr-clipboard/src/icon.png +0 -0
- package/packages/hr-clipboard/src/main.vue +0 -64
- package/packages/hr-select/src/main.vue +0 -62
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description at标签转化为自定义标识文本
|
|
3
|
+
* @param {String} content
|
|
4
|
+
* @returns {String}
|
|
5
|
+
*/
|
|
6
|
+
export function atTranslateStr (content) {
|
|
7
|
+
try {
|
|
8
|
+
let reg = /<at\b[^>][^>]*>([\s\S]*?)<\/at>/g
|
|
9
|
+
const ats = content.match(reg)
|
|
10
|
+
if (ats && ats.length > 0) {
|
|
11
|
+
ats.forEach(item => {
|
|
12
|
+
let alts = item.matchAll(/alt="(\S+, \S+)"/g)
|
|
13
|
+
alts = [...alts]
|
|
14
|
+
console.log('alts', alts)
|
|
15
|
+
if (alts && alts.length > 0) {
|
|
16
|
+
const alt = alts[0][1]
|
|
17
|
+
const str = '$_hl{' + alt + '}'
|
|
18
|
+
content = content.replace(item, str)
|
|
19
|
+
}
|
|
20
|
+
})
|
|
21
|
+
}
|
|
22
|
+
return content
|
|
23
|
+
} catch (err) {
|
|
24
|
+
return content
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const IsIOS = window.navigator.userAgent.indexOf('iPhone') > -1
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @description 将自定义标记文本转为at标签
|
|
32
|
+
* @param {String} content
|
|
33
|
+
* @param {Boolean} isQuillUse 是否在quill富文本使用(默认是)
|
|
34
|
+
* @returns {String}
|
|
35
|
+
*/
|
|
36
|
+
export function strTranslateAt (content, isQuillUse = true) {
|
|
37
|
+
try {
|
|
38
|
+
let reg = /\$_hl{(\S+, \S+)}/g
|
|
39
|
+
let alts = content.matchAll(reg)
|
|
40
|
+
alts = [...alts]
|
|
41
|
+
|
|
42
|
+
if (alts && alts.length > 0) {
|
|
43
|
+
alts.forEach(item => {
|
|
44
|
+
let tag = item[0] // '$_hl{130338, @余达睿}'
|
|
45
|
+
let alt = item[1] // '130338, @余达睿'
|
|
46
|
+
let employeeNumber = alt.split(',')[0]
|
|
47
|
+
let employeeName = alt.split(',')[1].slice(1)
|
|
48
|
+
let html = `<at>${employeeName}/${employeeNumber}</at>`
|
|
49
|
+
// 不在quill使用时需转成完整的html
|
|
50
|
+
if (!isQuillUse) {
|
|
51
|
+
html = `<at class="at" alt="${employeeNumber}, ${employeeName}" style="color: rgb(121, 114, 254); display: ${ IsIOS ? 'inline-flex' : 'inline-block' };"><span contenteditable="false">@${employeeName} </span></at>`
|
|
52
|
+
}
|
|
53
|
+
content = content.replaceAll(tag, html)
|
|
54
|
+
})
|
|
55
|
+
}
|
|
56
|
+
return content
|
|
57
|
+
} catch (err) {
|
|
58
|
+
return content
|
|
59
|
+
}
|
|
60
|
+
}
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import HrBottomButton from './src/index.vue'
|
|
2
|
-
|
|
3
|
-
HrBottomButton.install = function (Vue) {
|
|
4
|
-
Vue.component(HrBottomButton.name, HrBottomButton)
|
|
5
|
-
}
|
|
6
|
-
|
|
1
|
+
import HrBottomButton from './src/index.vue'
|
|
2
|
+
|
|
3
|
+
HrBottomButton.install = function (Vue) {
|
|
4
|
+
Vue.component(HrBottomButton.name, HrBottomButton)
|
|
5
|
+
}
|
|
6
|
+
|
|
7
7
|
export default HrBottomButton
|
|
@@ -1,85 +1,109 @@
|
|
|
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
|
-
},
|
|
27
|
-
data () {
|
|
28
|
-
return {}
|
|
29
|
-
},
|
|
30
|
-
methods: {
|
|
31
|
-
clickButton (index) {
|
|
32
|
-
this.$emit('clickButton', index)
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
render () {
|
|
36
|
-
return <div class="hr-bottom-button">
|
|
37
|
-
<div class="button-list">
|
|
38
|
-
{
|
|
39
|
-
this.list.map((item, index) => {
|
|
40
|
-
const { text } = item
|
|
41
|
-
return <div class="list-item" onClick={this.clickButton.bind(this, index)}>
|
|
42
|
-
<span class="item-text">{text}</span>
|
|
43
|
-
</div>
|
|
44
|
-
})
|
|
45
|
-
}
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
</script>
|
|
51
|
-
|
|
52
|
-
<style scoped lang="less">
|
|
53
|
-
.hr-bottom-button {
|
|
54
|
-
background: #fff;
|
|
55
|
-
z-index: 111;
|
|
56
|
-
.button-list {
|
|
57
|
-
padding: 8px 16px;
|
|
58
|
-
display: flex;
|
|
59
|
-
justify-content: space-around;
|
|
60
|
-
gap: 13px;
|
|
61
|
-
.list-item {
|
|
62
|
-
flex: 1;
|
|
63
|
-
font-size: 16px;
|
|
64
|
-
color: #7972fe;
|
|
65
|
-
display: flex;
|
|
66
|
-
line-height: 40px;
|
|
67
|
-
border-radius: 8px;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
.item-text {
|
|
71
|
-
text-align: center;
|
|
72
|
-
flex: 1;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
+
},
|
|
27
|
+
data () {
|
|
28
|
+
return {}
|
|
29
|
+
},
|
|
30
|
+
methods: {
|
|
31
|
+
clickButton (index) {
|
|
32
|
+
this.$emit('clickButton', index)
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
render () {
|
|
36
|
+
return <div class="hr-bottom-button">
|
|
37
|
+
<div class="button-list">
|
|
38
|
+
{
|
|
39
|
+
this.list.map((item, index) => {
|
|
40
|
+
const { text } = item
|
|
41
|
+
return <div class="list-item" onClick={this.clickButton.bind(this, index)}>
|
|
42
|
+
<span class="item-text">{text}</span>
|
|
43
|
+
</div>
|
|
44
|
+
})
|
|
45
|
+
}
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
</script>
|
|
51
|
+
|
|
52
|
+
<style scoped lang="less">
|
|
53
|
+
.hr-bottom-button {
|
|
54
|
+
background: #fff;
|
|
55
|
+
z-index: 111;
|
|
56
|
+
.button-list {
|
|
57
|
+
padding: 8px 16px;
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: space-around;
|
|
60
|
+
gap: 13px;
|
|
61
|
+
.list-item {
|
|
62
|
+
flex: 1;
|
|
63
|
+
font-size: 16px;
|
|
64
|
+
color: #7972fe;
|
|
65
|
+
display: flex;
|
|
66
|
+
line-height: 40px;
|
|
67
|
+
border-radius: 8px;
|
|
68
|
+
background: #fff;
|
|
69
|
+
position: relative;
|
|
70
|
+
.item-text {
|
|
71
|
+
text-align: center;
|
|
72
|
+
flex: 1;
|
|
73
|
+
}
|
|
74
|
+
&::after {
|
|
75
|
+
content: '';
|
|
76
|
+
width: 200%;
|
|
77
|
+
height: 200%;
|
|
78
|
+
border: 1px solid #7972fe;
|
|
79
|
+
transform: scale(50%);
|
|
80
|
+
border-radius: 16px;
|
|
81
|
+
position: absolute;
|
|
82
|
+
left: 0;
|
|
83
|
+
top: 0;
|
|
84
|
+
transform-origin: 0% 0%;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
.list-item:last-child {
|
|
88
|
+
color: #ffffff;
|
|
89
|
+
background: #7972fe;
|
|
90
|
+
&::after {
|
|
91
|
+
content: '';
|
|
92
|
+
width: 200%;
|
|
93
|
+
height: 200%;
|
|
94
|
+
border: 1px solid transparent;
|
|
95
|
+
transform: scale(50%);
|
|
96
|
+
border-radius: 16px;
|
|
97
|
+
position: absolute;
|
|
98
|
+
left: 0;
|
|
99
|
+
top: 0;
|
|
100
|
+
transform-origin: 0% 0%;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
.ios .hr-bottom-button,
|
|
106
|
+
.ipx .hr-bottom-button {
|
|
107
|
+
padding-bottom: 28px;
|
|
108
|
+
}
|
|
85
109
|
</style>
|
|
@@ -1,13 +1,13 @@
|
|
|
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
|
-
|
|
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
13
|
export default hrButton;
|
|
@@ -1,39 +1,39 @@
|
|
|
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
|
-
}
|
|
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
39
|
</style>
|
|
@@ -0,0 +1,46 @@
|
|
|
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>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export function copyCode (value) {
|
|
2
|
-
window.ks.callFunc({
|
|
3
|
-
method: 'paste',
|
|
4
|
-
params: { str: value }
|
|
5
|
-
})
|
|
6
|
-
if (navigator.userAgent.includes('iPhone') || navigator.userAgent.includes('kuasheng_work')) {
|
|
7
|
-
window.vant.Toast('已复制到剪贴板')
|
|
8
|
-
}
|
|
9
|
-
}
|
|
1
|
+
export function copyCode (value) {
|
|
2
|
+
window.ks.callFunc({
|
|
3
|
+
method: 'paste',
|
|
4
|
+
params: { str: value }
|
|
5
|
+
})
|
|
6
|
+
if (navigator.userAgent.includes('iPhone') || navigator.userAgent.includes('kuasheng_work')) {
|
|
7
|
+
window.vant.Toast('已复制到剪贴板')
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
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: '近一个月' },
|
|
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
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import HrConditionFiltrate from './src/index.vue'
|
|
2
|
-
|
|
3
|
-
HrConditionFiltrate.install = function (Vue) {
|
|
4
|
-
Vue.component(HrConditionFiltrate.name, HrConditionFiltrate)
|
|
5
|
-
}
|
|
6
|
-
|
|
1
|
+
import HrConditionFiltrate from './src/index.vue'
|
|
2
|
+
|
|
3
|
+
HrConditionFiltrate.install = function (Vue) {
|
|
4
|
+
Vue.component(HrConditionFiltrate.name, HrConditionFiltrate)
|
|
5
|
+
}
|
|
6
|
+
|
|
7
7
|
export default HrConditionFiltrate
|