@kyfe/hroa-ui 0.0.1 → 0.0.3
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 +49 -22
- package/dist/404.html +20 -0
- package/dist/ERP-components/index.html +34 -0
- package/dist/H5-components/custom//346/211/223/345/274/200/350/267/250/345/243/260/350/201/212/345/244/251.html +34 -0
- package/dist/H5-components/index.html +34 -0
- package/dist/H5-components/initial-stage/introduce.html +71 -0
- package/dist/H5-components/initial-stage/updateLog.html +42 -0
- package/dist/H5-components/views/tic-rich-input.html +95 -0
- package/dist/H5-components/views//346/213/226/346/213/275dom/345/205/203/347/264/240.html +52 -0
- package/dist/H5-components/views//346/214/211/351/222/256/347/277/273/351/241/265/347/273/204/344/273/266.html +48 -0
- package/dist/H5-components/views//346/273/221/345/212/250/347/277/273/351/241/265/347/273/204/344/273/266.html +51 -0
- package/dist/assets/css/0.styles.df919f3e.css +8 -0
- package/dist/assets/img/hr-pager.34bafc88.png +0 -0
- package/dist/assets/img/search.83621669.svg +1 -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.b735a6b9.js +1 -0
- package/dist/assets/js/12.23c4fee9.js +1 -0
- package/dist/assets/js/13.3da0c9aa.js +1 -0
- package/dist/assets/js/14.3356e8f7.js +1 -0
- package/dist/assets/js/15.d6eecfd8.js +1 -0
- package/dist/assets/js/16.4ffe823f.js +1 -0
- package/dist/assets/js/17.7b93bad9.js +1 -0
- package/dist/assets/js/18.11371dfb.js +1 -0
- package/dist/assets/js/19.416e5407.js +1 -0
- package/dist/assets/js/2.dc0cacdb.js +1 -0
- package/dist/assets/js/20.74e92b24.js +1 -0
- package/dist/assets/js/21.a60b56ab.js +1 -0
- package/dist/assets/js/22.2fae118b.js +1 -0
- package/dist/assets/js/23.6e3d1710.js +1 -0
- package/dist/assets/js/24.4160ee24.js +1 -0
- package/dist/assets/js/25.0ffd750f.js +1 -0
- package/dist/assets/js/26.32cd369d.js +1 -0
- package/dist/assets/js/27.8fcb6434.js +1 -0
- package/dist/assets/js/28.359c258c.js +1 -0
- package/dist/assets/js/29.739e5995.js +1 -0
- package/dist/assets/js/3.cca146d6.js +1 -0
- package/dist/assets/js/30.6a338bb7.js +1 -0
- package/dist/assets/js/31.f29dd7e6.js +1 -0
- package/dist/assets/js/32.39b11d5d.js +1 -0
- package/dist/assets/js/33.8a822667.js +1 -0
- package/dist/assets/js/34.9e1e9fdb.js +1 -0
- package/dist/assets/js/35.00b584d6.js +1 -0
- package/dist/assets/js/36.4005f115.js +1 -0
- package/dist/assets/js/37.a76ba098.js +1 -0
- package/dist/assets/js/38.b2331905.js +1 -0
- package/dist/assets/js/39.d1ef70eb.js +1 -0
- package/dist/assets/js/4.2e3cdcda.js +1 -0
- package/dist/assets/js/40.80762a79.js +1 -0
- package/dist/assets/js/41.b30a6572.js +1 -0
- package/dist/assets/js/42.2abb93f1.js +1 -0
- package/dist/assets/js/43.3060afbe.js +1 -0
- package/dist/assets/js/44.4ca5cdaa.js +1 -0
- package/dist/assets/js/45.2aefab82.js +1 -0
- package/dist/assets/js/46.94373d07.js +1 -0
- package/dist/assets/js/47.1a325aa2.js +1 -0
- package/dist/assets/js/48.63967e1a.js +1 -0
- package/dist/assets/js/49.632d6f06.js +1 -0
- package/dist/assets/js/5.84ceb550.js +1 -0
- package/dist/assets/js/50.122dcadf.js +1 -0
- package/dist/assets/js/51.de943550.js +1 -0
- package/dist/assets/js/52.70b10851.js +1 -0
- package/dist/assets/js/53.8852d650.js +1 -0
- package/dist/assets/js/54.2a74d28d.js +1 -0
- package/dist/assets/js/55.e48fe797.js +1 -0
- package/dist/assets/js/56.ebdbcffb.js +1 -0
- package/dist/assets/js/57.e087b0fe.js +1 -0
- package/dist/assets/js/58.3801ee85.js +1 -0
- package/dist/assets/js/59.7b5d18c0.js +1 -0
- package/dist/assets/js/6.61f28a2c.js +1 -0
- package/dist/assets/js/60.69f85710.js +1 -0
- package/dist/assets/js/61.ccded94e.js +1 -0
- package/dist/assets/js/62.49aaec93.js +1 -0
- package/dist/assets/js/63.ed0dd65b.js +1 -0
- package/dist/assets/js/64.50827258.js +1 -0
- package/dist/assets/js/65.fb0e39c2.js +1 -0
- package/dist/assets/js/66.0f253a81.js +1 -0
- package/dist/assets/js/67.871e932d.js +1 -0
- package/dist/assets/js/68.daa5a202.js +1 -0
- package/dist/assets/js/69.b097197f.js +1 -0
- package/dist/assets/js/7.49cc9ae9.js +1 -0
- package/dist/assets/js/70.765eda7b.js +1 -0
- package/dist/assets/js/71.63871fac.js +1 -0
- package/dist/assets/js/72.8b18b0c9.js +1 -0
- package/dist/assets/js/73.19e03de2.js +1 -0
- package/dist/assets/js/74.d53dccaa.js +1 -0
- package/dist/assets/js/75.acd6fc61.js +1 -0
- package/dist/assets/js/76.078ca037.js +1 -0
- package/dist/assets/js/77.d841f01e.js +1 -0
- package/dist/assets/js/78.a7365451.js +1 -0
- package/dist/assets/js/79.dd3a87ea.js +1 -0
- package/dist/assets/js/8.9cb30c6d.js +1 -0
- package/dist/assets/js/80.fb936b5b.js +1 -0
- package/dist/assets/js/81.2e26e94f.js +1 -0
- package/dist/assets/js/82.2a3a6e2c.js +1 -0
- package/dist/assets/js/83.db18cd89.js +1 -0
- package/dist/assets/js/84.1b4f6da9.js +1 -0
- package/dist/assets/js/85.7ad98dbe.js +1 -0
- package/dist/assets/js/86.4cc432c1.js +1 -0
- package/dist/assets/js/87.73d3f488.js +1 -0
- package/dist/assets/js/88.912a9f32.js +1 -0
- package/dist/assets/js/89.9177aadb.js +1 -0
- package/dist/assets/js/9.5eb3dd52.js +9 -0
- package/dist/assets/js/90.d7d98ef8.js +1 -0
- package/dist/assets/js/91.41d2835a.js +1 -0
- package/dist/assets/js/92.2e7bac23.js +1 -0
- package/dist/assets/js/app.9bfd80ac.js +16 -0
- package/dist/assets/js/vendors~docsearch.c220fc7a.js +3 -0
- package/dist/guide/about//346/255/244/346/226/207/346/241/243/351/241/271/347/233/256.html +41 -0
- package/dist/guide/index.html +34 -0
- package/dist/index.html +40 -0
- package/dist/local-js/axios@0.19.0.min.js +9 -0
- package/dist/local-js/ks@3.0.7.umd.min.js +1 -0
- package/dist/local-js/ksui@3.0.37.umd.min.js +10 -0
- package/dist/local-js/ksui@3.0.41.umd.min.js +10 -0
- package/dist/local-js/quill.js +3 -0
- package/dist/local-js/vant@2.5.6.min.js +7 -0
- package/dist/local-js/vconsole.min.js +10 -0
- package/dist/local-js/vue-router@3.1.3.min.js +6 -0
- package/dist/local-js/vue@2.6.10.runtime.min.js +6 -0
- package/dist/local-js/vue@2.7.16.min.js +11932 -0
- package/dist/local-js/vuex@3.1.1.min.js +6 -0
- package/dist/utils/ERP/ERP/345/267/245/345/205/267/346/226/271/346/263/225.html +38 -0
- package/dist/utils/H5/H5/345/267/245/345/205/267/346/226/271/346/263/225.html +55 -0
- package/dist/utils/H5/copyText /345/244/215/345/210/266.html" +45 -0
- package/dist/utils/index.html +34 -0
- package/dist//346/226/207/346/241/243/345/272/223/346/226/207/344/273/266/345/244/271.html +46 -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 -1
- package/lib/hr-bottom-button/index.js +1 -1
- package/lib/hr-clipboard/index.css +1 -1
- package/lib/hr-clipboard/index.js +1 -1
- package/lib/hr-condition-filtrate/index.js +1 -1
- 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-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-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-open-ks/index.css +1 -1
- package/lib/hr-open-ks/index.js +1 -1
- 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-select/index.js +1 -1
- 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.js +1 -1
- package/lib/hr-sort/index.css +1 -0
- package/lib/hr-sort/index.js +1 -0
- package/lib/hr-stack-image/index.js +1 -1
- package/lib/hr-tab-nav/index.css +1 -1
- package/lib/hr-tab-nav/index.js +1 -1
- package/lib/index/index.css +8 -1
- package/lib/index/index.js +9 -1
- package/package.json +67 -66
- 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 +53 -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 -0
- package/packages/hr-img-list/src/index.vue +144 -0
- 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 +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/index.vue +169 -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 -0
- package/packages/hr-popup/src/index.vue +60 -0
- package/packages/hr-popup//345/274/271/345/207/272/345/261/202.md +0 -0
- 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 -0
- package/packages/hr-select-list/src/index.vue +168 -0
- 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 +8 -0
- package/packages/hr-single-choose/src/index.vue +143 -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 +54 -53
- package/packages/utils/directive.js +58 -58
- package/packages/utils/index.js +73 -73
- package/dist/demo.html +0 -8
- package/dist/hrui.common.js +0 -3892
- package/dist/hrui.common.js.map +0 -1
- package/dist/hrui.umd.js +0 -3902
- package/dist/hrui.umd.js.map +0 -1
- package/dist/hrui.umd.min.js +0 -2
- package/dist/hrui.umd.min.js.map +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,168 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { cloneDeep } from 'lodash'
|
|
3
|
+
import HrPopup from '../../hr-popup'
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
name: 'HrSelectList',
|
|
7
|
+
components: {
|
|
8
|
+
HrPopup
|
|
9
|
+
},
|
|
10
|
+
props: {
|
|
11
|
+
show: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: false
|
|
14
|
+
},
|
|
15
|
+
// 标题
|
|
16
|
+
title: String,
|
|
17
|
+
// 默认值
|
|
18
|
+
defaultValue: {
|
|
19
|
+
type: [String, Array],
|
|
20
|
+
default: ''
|
|
21
|
+
},
|
|
22
|
+
// 选项value用到的字段
|
|
23
|
+
valKey: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: 'code'
|
|
26
|
+
},
|
|
27
|
+
// 选项显示值用到的字段
|
|
28
|
+
labelKey: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: 'text'
|
|
31
|
+
},
|
|
32
|
+
// 是否多选
|
|
33
|
+
multiple: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: false
|
|
36
|
+
},
|
|
37
|
+
// 选项列
|
|
38
|
+
columns: {
|
|
39
|
+
type: Array,
|
|
40
|
+
default: () => ([])
|
|
41
|
+
},
|
|
42
|
+
// 挂载位置
|
|
43
|
+
getContainer: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: 'body'
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
data () {
|
|
49
|
+
return {
|
|
50
|
+
isShowPopup: false,
|
|
51
|
+
selectValue: []
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
watch: {
|
|
55
|
+
show: {
|
|
56
|
+
handler (val) {
|
|
57
|
+
this.isShowPopup = val
|
|
58
|
+
if (val) {
|
|
59
|
+
this.loadValue()
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
immediate: true
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
render () {
|
|
66
|
+
return (
|
|
67
|
+
// get-container挂载在body的原因:防止被外部组件内容遮挡
|
|
68
|
+
<HrPopup show={this.isShowPopup}
|
|
69
|
+
closeable
|
|
70
|
+
get-container={this.getContainer}
|
|
71
|
+
position="bottom"
|
|
72
|
+
safe-area-inset-bottom
|
|
73
|
+
title={this.title}
|
|
74
|
+
onClose={this.close}>
|
|
75
|
+
<div class="hr-select-list">
|
|
76
|
+
<div class="list-box">
|
|
77
|
+
{
|
|
78
|
+
this.columns.map((item) => {
|
|
79
|
+
return <div class={['option-item', this.isSelectedOption(item[this.valKey]) ? 'active' : '']}
|
|
80
|
+
onClick={() => this.optionClick(item[this.valKey])}>
|
|
81
|
+
{item[this.labelKey]}
|
|
82
|
+
{
|
|
83
|
+
this.isSelectedOption(item[this.valKey]) && <div class="check-box"><ks-icon name="success" class="icon-cls" /></div>
|
|
84
|
+
}
|
|
85
|
+
</div>
|
|
86
|
+
})
|
|
87
|
+
}
|
|
88
|
+
</div>
|
|
89
|
+
<div class="submit-btn" onClick={this.submit}>确认</div>
|
|
90
|
+
</div>
|
|
91
|
+
</HrPopup>
|
|
92
|
+
)
|
|
93
|
+
},
|
|
94
|
+
methods: {
|
|
95
|
+
loadValue () {
|
|
96
|
+
const val = cloneDeep(this.defaultValue)
|
|
97
|
+
if (Object.prototype.toString.call(val) === '[object String]') {
|
|
98
|
+
this.selectValue = val ? [val] : []
|
|
99
|
+
} else {
|
|
100
|
+
this.selectValue = val || []
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
isSelectedOption (key) {
|
|
104
|
+
return this.selectValue.some(i => i === key)
|
|
105
|
+
},
|
|
106
|
+
// 当前值
|
|
107
|
+
optionClick (key) {
|
|
108
|
+
const selectedOptions = this.selectValue || []
|
|
109
|
+
if (this.multiple) {
|
|
110
|
+
const hasSelected = selectedOptions.some(i => i === key)
|
|
111
|
+
if (hasSelected) {
|
|
112
|
+
this.selectValue = selectedOptions.filter(i => i !== key)
|
|
113
|
+
} else {
|
|
114
|
+
this.selectValue.push(key)
|
|
115
|
+
}
|
|
116
|
+
} else {
|
|
117
|
+
this.selectValue = [key]
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
close () {
|
|
121
|
+
this.isShowPopup = false
|
|
122
|
+
this.$emit('close')
|
|
123
|
+
},
|
|
124
|
+
submit () {
|
|
125
|
+
const selectOptions = this.columns.filter(i => this.selectValue.includes(i[this.valKey]))
|
|
126
|
+
this.$emit('change', this.selectValue, selectOptions)
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
</script>
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
<style lang="less" scoped>
|
|
134
|
+
.hr-select-list {
|
|
135
|
+
min-height: 30vh;
|
|
136
|
+
max-height: 70vh;
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
.list-box {
|
|
140
|
+
flex: 1;
|
|
141
|
+
overflow: auto;
|
|
142
|
+
.option-item {
|
|
143
|
+
height: 48px;
|
|
144
|
+
padding: 0 16px;
|
|
145
|
+
font-size: 14px;
|
|
146
|
+
color: #03050d;
|
|
147
|
+
display: flex;
|
|
148
|
+
justify-content: space-between;
|
|
149
|
+
align-items: center;
|
|
150
|
+
&.active {
|
|
151
|
+
color: #7972fe;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
.submit-btn {
|
|
156
|
+
min-height: 40px;
|
|
157
|
+
max-height: 40px;
|
|
158
|
+
margin: 24px 16px 8px 16px;
|
|
159
|
+
font-size: 16px;
|
|
160
|
+
color: #ffffff;
|
|
161
|
+
border-radius: 8px;
|
|
162
|
+
background: #7972fe;
|
|
163
|
+
display: flex;
|
|
164
|
+
justify-content: center;
|
|
165
|
+
align-items: center;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
</style>
|
|
File without changes
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
export default {
|
|
3
|
+
name: 'HrSingleChoose',
|
|
4
|
+
props: {
|
|
5
|
+
list: {
|
|
6
|
+
type: Array,
|
|
7
|
+
default () {
|
|
8
|
+
return [
|
|
9
|
+
{
|
|
10
|
+
label: '课程类型',
|
|
11
|
+
value: 10
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
label: '课程类型2',
|
|
15
|
+
value: 20
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
label: '课程类型3',
|
|
19
|
+
value: 30
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: '课程类型4',
|
|
23
|
+
value: 40
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
title: {
|
|
29
|
+
type: String,
|
|
30
|
+
default () {
|
|
31
|
+
return '请选择'
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
isShowAll: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default () {
|
|
37
|
+
return false
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
divideeQually: {
|
|
41
|
+
type: Number,
|
|
42
|
+
default () {
|
|
43
|
+
return 3
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
data () {
|
|
48
|
+
return {
|
|
49
|
+
active: 0
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
created () {
|
|
53
|
+
this.init()
|
|
54
|
+
},
|
|
55
|
+
computed: {
|
|
56
|
+
filterList () {
|
|
57
|
+
return this.isShowAll ? [{ label: '全部', value: 0 }].concat(this.list) : this.list
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
methods: {
|
|
61
|
+
init () {
|
|
62
|
+
this.initState()
|
|
63
|
+
},
|
|
64
|
+
initState () {
|
|
65
|
+
},
|
|
66
|
+
select (index) {
|
|
67
|
+
this.active = index
|
|
68
|
+
this.$emit('select', this.filterList[index])
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
render () {
|
|
72
|
+
return <div class="single-choose">
|
|
73
|
+
<div class="choose-title">{this.title}</div>
|
|
74
|
+
<div class="choose-condition">
|
|
75
|
+
{
|
|
76
|
+
this.filterList.map((item, index) => <div
|
|
77
|
+
onClick={this.select.bind(this, index)}
|
|
78
|
+
style={{ width: `calc((100% - 16px) / ${this.divideeQually})`, marginRight: (index + 1) % this.divideeQually === 0 ? 0 : '8px' }}
|
|
79
|
+
class={['condition-item', this.active === index && 'active']}>
|
|
80
|
+
{item.label}
|
|
81
|
+
</div>)
|
|
82
|
+
}
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
</script>
|
|
88
|
+
|
|
89
|
+
<style scoped lang="less">
|
|
90
|
+
.single-choose {
|
|
91
|
+
.choose-title {
|
|
92
|
+
line-height: 20px;
|
|
93
|
+
margin-bottom: 12px;
|
|
94
|
+
text-align: left;
|
|
95
|
+
font-size: 14px;
|
|
96
|
+
font-weight: 600;
|
|
97
|
+
color: #03050d;
|
|
98
|
+
.title-black {
|
|
99
|
+
font-size: 14px;
|
|
100
|
+
font-weight: normal;
|
|
101
|
+
color: #6e6d72;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
.choose-condition {
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-wrap: wrap;
|
|
107
|
+
justify-content: flex-start;
|
|
108
|
+
.condition-item {
|
|
109
|
+
// width: calc((100% - 16px) / 3);
|
|
110
|
+
height: 28px;
|
|
111
|
+
border-radius: 8px;
|
|
112
|
+
box-sizing: border-box;
|
|
113
|
+
background: #f7f8fa;
|
|
114
|
+
text-align: center;
|
|
115
|
+
line-height: 28px;
|
|
116
|
+
margin-bottom: 12px;
|
|
117
|
+
color: #03050d;
|
|
118
|
+
font-size: 12px;
|
|
119
|
+
position: relative;
|
|
120
|
+
}
|
|
121
|
+
.condition-item.active {
|
|
122
|
+
// border: 1px solid rgba(121, 114, 254, 0.8);
|
|
123
|
+
background: rgba(121, 114, 254, 0.08);
|
|
124
|
+
color: #7972fe;
|
|
125
|
+
&::after {
|
|
126
|
+
content: " ";
|
|
127
|
+
position: absolute;
|
|
128
|
+
left: 0;
|
|
129
|
+
top: 0;
|
|
130
|
+
width: 200%;
|
|
131
|
+
height: 200%;
|
|
132
|
+
border: 1px solid #7972fe;
|
|
133
|
+
border-radius: 16px;
|
|
134
|
+
box-sizing: border-box;
|
|
135
|
+
-webkit-transform-origin: 0 0;
|
|
136
|
+
transform-origin: 0 0;
|
|
137
|
+
-webkit-transform: scale(0.5);
|
|
138
|
+
transform: scale(0.5);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
</style>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="slide-pager-guide">
|
|
3
|
-
<div class="content-box">
|
|
4
|
-
<div class="arrow-img">
|
|
5
|
-
<img src="./image/turn-left.png">
|
|
6
|
-
<img src="./image/turn-right.png">
|
|
7
|
-
</div>
|
|
8
|
-
|
|
9
|
-
<div class="tips">左右滑动可切换上下篇</div>
|
|
10
|
-
|
|
11
|
-
<van-button type="primary"
|
|
12
|
-
style="width: 128px; height: 40px;"
|
|
13
|
-
@click="$emit('markRead')">知道了</van-button>
|
|
14
|
-
</div>
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
17
|
-
|
|
18
|
-
<script>
|
|
19
|
-
export default {
|
|
20
|
-
}
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
<style lang="less" scoped>
|
|
24
|
-
.slide-pager-guide {
|
|
25
|
-
position: fixed;
|
|
26
|
-
left: 0;
|
|
27
|
-
top: 0;
|
|
28
|
-
height: 100%;
|
|
29
|
-
width: 100%;
|
|
30
|
-
z-index: 999;
|
|
31
|
-
// opacity: 1;
|
|
32
|
-
/* 中性色/蒙层#000000-70% */
|
|
33
|
-
background: rgba(0, 0, 0, 0.7);
|
|
34
|
-
display: flex;
|
|
35
|
-
align-items: center;
|
|
36
|
-
justify-content: center;
|
|
37
|
-
|
|
38
|
-
.content-box {
|
|
39
|
-
display: flex;
|
|
40
|
-
flex-direction: column;
|
|
41
|
-
align-items: center;
|
|
42
|
-
justify-content: center;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.arrow-img {
|
|
46
|
-
display: flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
justify-content: space-around;
|
|
49
|
-
> img {
|
|
50
|
-
width: 28%;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
.tips {
|
|
54
|
-
margin: 60px 0;
|
|
55
|
-
font-size: 32px;
|
|
56
|
-
color: #ffffff;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<div class="slide-pager-guide">
|
|
3
|
+
<div class="content-box">
|
|
4
|
+
<div class="arrow-img">
|
|
5
|
+
<img src="./image/turn-left.png">
|
|
6
|
+
<img src="./image/turn-right.png">
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<div class="tips">左右滑动可切换上下篇</div>
|
|
10
|
+
|
|
11
|
+
<van-button type="primary"
|
|
12
|
+
style="width: 128px; height: 40px;"
|
|
13
|
+
@click="$emit('markRead')">知道了</van-button>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
export default {
|
|
20
|
+
}
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<style lang="less" scoped>
|
|
24
|
+
.slide-pager-guide {
|
|
25
|
+
position: fixed;
|
|
26
|
+
left: 0;
|
|
27
|
+
top: 0;
|
|
28
|
+
height: 100%;
|
|
29
|
+
width: 100%;
|
|
30
|
+
z-index: 999;
|
|
31
|
+
// opacity: 1;
|
|
32
|
+
/* 中性色/蒙层#000000-70% */
|
|
33
|
+
background: rgba(0, 0, 0, 0.7);
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
|
|
38
|
+
.content-box {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.arrow-img {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: space-around;
|
|
49
|
+
> img {
|
|
50
|
+
width: 28%;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
.tips {
|
|
54
|
+
margin: 60px 0;
|
|
55
|
+
font-size: 32px;
|
|
56
|
+
color: #ffffff;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
59
|
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import hrSlidePager from './src/index.vue'
|
|
2
|
-
|
|
3
|
-
hrSlidePager.install = function (Vue) {
|
|
4
|
-
Vue.component(hrSlidePager.name, hrSlidePager);
|
|
5
|
-
};
|
|
6
|
-
|
|
1
|
+
import hrSlidePager from './src/index.vue'
|
|
2
|
+
|
|
3
|
+
hrSlidePager.install = function (Vue) {
|
|
4
|
+
Vue.component(hrSlidePager.name, hrSlidePager);
|
|
5
|
+
};
|
|
6
|
+
|
|
7
7
|
export default hrSlidePager;
|