@witlink/usercenter 1.2.38 → 1.2.40
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/usercenter.es.js +15 -9
- package/dist/usercenter.umd.js +1 -1
- package/package.json +1 -1
- package/version.md +4 -0
package/dist/usercenter.es.js
CHANGED
@@ -2564,6 +2564,9 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
2564
2564
|
expandedRowKeys.value.push(record.id);
|
2565
2565
|
}
|
2566
2566
|
};
|
2567
|
+
const showMoreOperation = (record) => {
|
2568
|
+
return [0, 1].includes(record.type) && (addShow.value || removeShow.value && record.deleteStatus == 0);
|
2569
|
+
};
|
2567
2570
|
function buildTree(data) {
|
2568
2571
|
const tree = [];
|
2569
2572
|
const map = {};
|
@@ -2864,7 +2867,10 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
2864
2867
|
[vShow, editShow.value]
|
2865
2868
|
]),
|
2866
2869
|
withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
|
2867
|
-
[
|
2870
|
+
[
|
2871
|
+
vShow,
|
2872
|
+
(record.type == 2 || record.type == 3) && addShow.value && editShow.value
|
2873
|
+
]
|
2868
2874
|
]),
|
2869
2875
|
withDirectives(createVNode(_component_a_button, {
|
2870
2876
|
type: "link",
|
@@ -2900,7 +2906,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
2900
2906
|
]
|
2901
2907
|
]),
|
2902
2908
|
withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
|
2903
|
-
[vShow, record
|
2909
|
+
[vShow, showMoreOperation(record)]
|
2904
2910
|
]),
|
2905
2911
|
withDirectives(createElementVNode("span", null, [
|
2906
2912
|
createVNode(_component_a_dropdown, null, {
|
@@ -2924,7 +2930,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
2924
2930
|
_: 2
|
2925
2931
|
}, 1024)
|
2926
2932
|
], 512), [
|
2927
|
-
[vShow, record.branchUpdateFlag == 0]
|
2933
|
+
[vShow, record.branchUpdateFlag == 0 && addShow.value]
|
2928
2934
|
]),
|
2929
2935
|
withDirectives(createElementVNode("div", null, [
|
2930
2936
|
createVNode(_component_a_menu_item, { key: "2" }, {
|
@@ -3005,7 +3011,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
3005
3011
|
_: 2
|
3006
3012
|
}, 1024)
|
3007
3013
|
], 512), [
|
3008
|
-
[vShow, record
|
3014
|
+
[vShow, showMoreOperation(record)]
|
3009
3015
|
])
|
3010
3016
|
], 512), [
|
3011
3017
|
[vShow, !record.operationPermissions]
|
@@ -3033,7 +3039,10 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
3033
3039
|
_: 2
|
3034
3040
|
}, 1024),
|
3035
3041
|
withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
|
3036
|
-
[
|
3042
|
+
[
|
3043
|
+
vShow,
|
3044
|
+
(record.type == 2 || record.type == 3) && addShow.value && editShow.value
|
3045
|
+
]
|
3037
3046
|
]),
|
3038
3047
|
createVNode(_component_a_tooltip, { placement: "top" }, {
|
3039
3048
|
title: withCtx(() => [
|
@@ -4223,12 +4232,10 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
4223
4232
|
}
|
4224
4233
|
};
|
4225
4234
|
const changeVisible = () => {
|
4226
|
-
isopen.value = false;
|
4227
4235
|
emit("click");
|
4228
4236
|
};
|
4229
4237
|
const focus = () => {
|
4230
4238
|
acascaderRef.value && acascaderRef.value.focus();
|
4231
|
-
isopen.value = true;
|
4232
4239
|
};
|
4233
4240
|
const autofocus = () => {
|
4234
4241
|
focusFlag.value = true;
|
@@ -4314,7 +4321,6 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
4314
4321
|
key: 0,
|
4315
4322
|
ref_key: "acascaderRef",
|
4316
4323
|
ref: acascaderRef,
|
4317
|
-
open: isopen.value,
|
4318
4324
|
options: options.value,
|
4319
4325
|
loadData,
|
4320
4326
|
showSearch: true,
|
@@ -4332,7 +4338,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
4332
4338
|
onChange,
|
4333
4339
|
onFocus: _cache[1] || (_cache[1] = () => isopen.value = true),
|
4334
4340
|
onBlur: _cache[2] || (_cache[2] = () => isopen.value = false)
|
4335
|
-
}, null, 8, ["
|
4341
|
+
}, null, 8, ["options", "value", "style", "placeholder", "disabled"])) : createCommentVNode("v-if", true),
|
4336
4342
|
__props.kind == "text" ? (openBlock(), createElementBlock("span", _hoisted_1$t, toDisplayString(getLabel(__props.value)), 1)) : createCommentVNode("v-if", true)
|
4337
4343
|
]);
|
4338
4344
|
};
|