hrsass-components 2.2.6 → 2.2.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/lib/hrsass-components.js +52 -17
- package/lib/hrsass-components.min.js +1 -1
- package/package.json +1 -1
- package/rollup.build.css +5240 -15720
package/lib/hrsass-components.js
CHANGED
|
@@ -65,7 +65,7 @@ var contentStyle = _interopDefault(require('!!raw-loader!tinymce/skins/content/d
|
|
|
65
65
|
var SvgPanZoom = _interopDefault(require('svg-pan-zoom'));
|
|
66
66
|
var saveSvgAsPng = require('save-svg-as-png');
|
|
67
67
|
|
|
68
|
-
var version = "2.2.
|
|
68
|
+
var version = "2.2.7";
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* 版本号
|
|
@@ -12922,7 +12922,8 @@ var HrAddrBookCard = {
|
|
|
12922
12922
|
absolute: VuePropTypes.bool,
|
|
12923
12923
|
bordered: VuePropTypes.bool,
|
|
12924
12924
|
hoverable: VuePropTypes.bool,
|
|
12925
|
-
leftLine: VuePropTypes.bool
|
|
12925
|
+
leftLine: VuePropTypes.bool,
|
|
12926
|
+
sort: VuePropTypes.array
|
|
12926
12927
|
}, {
|
|
12927
12928
|
prefixCls: "hr-add-book-card",
|
|
12928
12929
|
hoverable: true,
|
|
@@ -13093,11 +13094,12 @@ var HrAddrBookCard = {
|
|
|
13093
13094
|
color: "orange",
|
|
13094
13095
|
title: sub_status
|
|
13095
13096
|
}
|
|
13096
|
-
}, [sub_status])])]), !data.hide ? h("ul", {
|
|
13097
|
+
}, [sub_status])])]), !data.hide ? this.sortList(h("ul", {
|
|
13097
13098
|
"class": prefixCls + "-other-info"
|
|
13098
13099
|
}, [this.isShow("dept_name") && h("li", {
|
|
13099
13100
|
attrs: {
|
|
13100
|
-
title: data.dept_name
|
|
13101
|
+
title: data.dept_name,
|
|
13102
|
+
fieldKey: "dept_name"
|
|
13101
13103
|
}
|
|
13102
13104
|
}, [h(antDesignVue.Icon, {
|
|
13103
13105
|
attrs: {
|
|
@@ -13107,7 +13109,8 @@ var HrAddrBookCard = {
|
|
|
13107
13109
|
"class": "item-info"
|
|
13108
13110
|
}, [data.dept_name || "-"])]), this.isShow("mobile_phone_number") && h("li", {
|
|
13109
13111
|
attrs: {
|
|
13110
|
-
title: data.mobile_phone_number
|
|
13112
|
+
title: data.mobile_phone_number,
|
|
13113
|
+
fieldKey: "mobile_phone_number"
|
|
13111
13114
|
}
|
|
13112
13115
|
}, [h(antDesignVue.Icon, {
|
|
13113
13116
|
attrs: {
|
|
@@ -13117,7 +13120,8 @@ var HrAddrBookCard = {
|
|
|
13117
13120
|
"class": "item-info"
|
|
13118
13121
|
}, [data.mobile_phone_number || "-"])]), this.isShow("personal_mailbox") && h("li", {
|
|
13119
13122
|
attrs: {
|
|
13120
|
-
title: data.personal_mailbox
|
|
13123
|
+
title: data.personal_mailbox,
|
|
13124
|
+
fieldKey: "personal_mailbox"
|
|
13121
13125
|
}
|
|
13122
13126
|
}, [h(antDesignVue.Icon, {
|
|
13123
13127
|
attrs: {
|
|
@@ -13127,7 +13131,8 @@ var HrAddrBookCard = {
|
|
|
13127
13131
|
"class": "item-info"
|
|
13128
13132
|
}, [this.showEmailLink(data.personal_mailbox)])]), this.isShow("company_mailbox") && h("li", {
|
|
13129
13133
|
attrs: {
|
|
13130
|
-
title: data.company_mailbox
|
|
13134
|
+
title: data.company_mailbox,
|
|
13135
|
+
fieldKey: "company_mailbox"
|
|
13131
13136
|
}
|
|
13132
13137
|
}, [h(antDesignVue.Icon, {
|
|
13133
13138
|
attrs: {
|
|
@@ -13137,7 +13142,8 @@ var HrAddrBookCard = {
|
|
|
13137
13142
|
"class": "item-info"
|
|
13138
13143
|
}, [this.showEmailLink(data.company_mailbox)])]), this.isShow("qq") && h("li", {
|
|
13139
13144
|
attrs: {
|
|
13140
|
-
title: data.qq
|
|
13145
|
+
title: data.qq,
|
|
13146
|
+
fieldKey: "qq"
|
|
13141
13147
|
}
|
|
13142
13148
|
}, [h(antDesignVue.Icon, {
|
|
13143
13149
|
attrs: {
|
|
@@ -13147,7 +13153,8 @@ var HrAddrBookCard = {
|
|
|
13147
13153
|
"class": "item-info"
|
|
13148
13154
|
}, [data.qq || "-"])]), this.isShow("wechat") && h("li", {
|
|
13149
13155
|
attrs: {
|
|
13150
|
-
title: data.wechat
|
|
13156
|
+
title: data.wechat,
|
|
13157
|
+
fieldKey: "wechat"
|
|
13151
13158
|
}
|
|
13152
13159
|
}, [h(antDesignVue.Icon, {
|
|
13153
13160
|
attrs: {
|
|
@@ -13157,7 +13164,8 @@ var HrAddrBookCard = {
|
|
|
13157
13164
|
"class": "item-info"
|
|
13158
13165
|
}, [data.wechat || "-"])]), this.isShow("hobbies_interests") && h("li", {
|
|
13159
13166
|
attrs: {
|
|
13160
|
-
title: data.hobbies_interests
|
|
13167
|
+
title: data.hobbies_interests,
|
|
13168
|
+
fieldKey: "hobbies_interests"
|
|
13161
13169
|
}
|
|
13162
13170
|
}, [h(antDesignVue.Icon, {
|
|
13163
13171
|
attrs: {
|
|
@@ -13167,7 +13175,8 @@ var HrAddrBookCard = {
|
|
|
13167
13175
|
"class": "item-info"
|
|
13168
13176
|
}, [data.hobbies_interests || "-"])]), this.isShow("political_status") && h("li", {
|
|
13169
13177
|
attrs: {
|
|
13170
|
-
title: data.political_status
|
|
13178
|
+
title: data.political_status,
|
|
13179
|
+
fieldKey: "political_status"
|
|
13171
13180
|
}
|
|
13172
13181
|
}, [h(antDesignVue.Icon, {
|
|
13173
13182
|
attrs: {
|
|
@@ -13177,7 +13186,8 @@ var HrAddrBookCard = {
|
|
|
13177
13186
|
"class": "item-info"
|
|
13178
13187
|
}, [data.political_status || "-"])]), this.isShow("work_place") && h("li", {
|
|
13179
13188
|
attrs: {
|
|
13180
|
-
title: data.work_place
|
|
13189
|
+
title: data.work_place,
|
|
13190
|
+
fieldKey: "work_place"
|
|
13181
13191
|
}
|
|
13182
13192
|
}, [h(antDesignVue.Icon, {
|
|
13183
13193
|
attrs: {
|
|
@@ -13187,7 +13197,8 @@ var HrAddrBookCard = {
|
|
|
13187
13197
|
"class": "item-info"
|
|
13188
13198
|
}, [data.work_place || "-"])]), this.isShow("highest_education") && h("li", {
|
|
13189
13199
|
attrs: {
|
|
13190
|
-
title: data.highest_education
|
|
13200
|
+
title: data.highest_education,
|
|
13201
|
+
fieldKey: "highest_education"
|
|
13191
13202
|
}
|
|
13192
13203
|
}, [h(antDesignVue.Icon, {
|
|
13193
13204
|
attrs: {
|
|
@@ -13207,7 +13218,7 @@ var HrAddrBookCard = {
|
|
|
13207
13218
|
attrs: {
|
|
13208
13219
|
href: "#"
|
|
13209
13220
|
}
|
|
13210
|
-
}, [locale.viewReportRelate])])])]) : h("p", {
|
|
13221
|
+
}, [locale.viewReportRelate])])])])) : h("p", {
|
|
13211
13222
|
"class": "info-hide"
|
|
13212
13223
|
}, [locale.infoHidden]), !data.hide && h(antDesignVue.Icon, {
|
|
13213
13224
|
"class": "arrow",
|
|
@@ -13215,13 +13226,37 @@ var HrAddrBookCard = {
|
|
|
13215
13226
|
type: "down"
|
|
13216
13227
|
}
|
|
13217
13228
|
})])])]);
|
|
13229
|
+
},
|
|
13230
|
+
sortList: function sortList(list) {
|
|
13231
|
+
var _getOptionProps2 = getOptionProps(this),
|
|
13232
|
+
_getOptionProps2$sort = _getOptionProps2.sort,
|
|
13233
|
+
sort = _getOptionProps2$sort === void 0 ? [] : _getOptionProps2$sort;
|
|
13234
|
+
console.log(list, sort);
|
|
13235
|
+
if (sort.length > 0) {
|
|
13236
|
+
list.children.sort(function (a, b) {
|
|
13237
|
+
var fieldKeyA = a.data.attrs.fieldKey;
|
|
13238
|
+
var fieldKeyB = b.data.attrs.fieldKey;
|
|
13239
|
+
var indexA = sort.indexOf(fieldKeyA);
|
|
13240
|
+
var indexB = sort.indexOf(fieldKeyB);
|
|
13241
|
+
if (indexA === -1 && indexB === -1) {
|
|
13242
|
+
return 0;
|
|
13243
|
+
} else if (indexA === -1) {
|
|
13244
|
+
return 1;
|
|
13245
|
+
} else if (indexB === -1) {
|
|
13246
|
+
return -1;
|
|
13247
|
+
} else {
|
|
13248
|
+
return indexA - indexB;
|
|
13249
|
+
}
|
|
13250
|
+
});
|
|
13251
|
+
}
|
|
13252
|
+
return list;
|
|
13218
13253
|
}
|
|
13219
13254
|
},
|
|
13220
13255
|
render: function render() {
|
|
13221
13256
|
var h = arguments[0];
|
|
13222
|
-
var
|
|
13223
|
-
|
|
13224
|
-
data =
|
|
13257
|
+
var _getOptionProps3 = getOptionProps(this),
|
|
13258
|
+
_getOptionProps3$data = _getOptionProps3.data,
|
|
13259
|
+
data = _getOptionProps3$data === void 0 ? {} : _getOptionProps3$data;
|
|
13225
13260
|
return data.name ? h(HrLocaleReceiver, {
|
|
13226
13261
|
attrs: {
|
|
13227
13262
|
componentName: "HrAddrBookCard",
|