@weitutech/by-components-v3 1.1.16 → 1.1.17
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/by-component-v3.js
CHANGED
|
@@ -28495,6 +28495,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
28495
28495
|
pagination: { type: Boolean, default: false },
|
|
28496
28496
|
pageSize: { default: 50 },
|
|
28497
28497
|
needShowLoading: { type: Boolean, default: false },
|
|
28498
|
+
forceNoExpand: { type: Boolean, default: false },
|
|
28498
28499
|
showSuffixInput: { type: Boolean, default: false },
|
|
28499
28500
|
suffixInputPlaceholder: { default: "请输入" },
|
|
28500
28501
|
suffixInputValue: { default: "" },
|
|
@@ -28564,7 +28565,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
28564
28565
|
};
|
|
28565
28566
|
const checkNeedExpand = () => {
|
|
28566
28567
|
var _a2;
|
|
28567
|
-
if (props.type === "select") {
|
|
28568
|
+
if (props.type === "select" || props.forceNoExpand) {
|
|
28568
28569
|
needExpand.value = false;
|
|
28569
28570
|
return;
|
|
28570
28571
|
}
|
|
@@ -29080,7 +29081,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
29080
29081
|
], 2)
|
|
29081
29082
|
], 2)
|
|
29082
29083
|
], 64)),
|
|
29083
|
-
_ctx.type !== "select" && needExpand.value ? (openBlock(), createBlock(_component_el_button, {
|
|
29084
|
+
_ctx.type !== "select" && needExpand.value && !_ctx.forceNoExpand ? (openBlock(), createBlock(_component_el_button, {
|
|
29084
29085
|
key: 2,
|
|
29085
29086
|
type: "text",
|
|
29086
29087
|
class: "by_openShrink",
|
|
@@ -29092,7 +29093,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
29092
29093
|
]),
|
|
29093
29094
|
_: 1
|
|
29094
29095
|
}, 8, ["disabled"])) : createCommentVNode("", true),
|
|
29095
|
-
_ctx.type !== "select" && !needExpand.value && _ctx.needShowLoading && loading2.value ? (openBlock(), createBlock(_component_el_button, {
|
|
29096
|
+
_ctx.type !== "select" && !needExpand.value && _ctx.needShowLoading && loading2.value && !_ctx.forceNoExpand ? (openBlock(), createBlock(_component_el_button, {
|
|
29096
29097
|
key: 3,
|
|
29097
29098
|
type: "text",
|
|
29098
29099
|
class: "by_openShrink",
|