@oinone/kunlun-vue-admin-base 6.3.1 → 6.3.2

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.
@@ -70814,32 +70814,38 @@ var script$1h = defineComponent({
70814
70814
  }
70815
70815
  const finalExpandSize = props.invisibleSearch ? props.foldSize + 1 : props.foldSize;
70816
70816
  appendFieldDslDefinition(fields, widgets, finalExpandSize, props.foldSize, props.cateFields);
70817
- hasExpandButton = fields.length > finalExpandSize;
70818
- if (hasExpandButton) {
70819
- fields = fields.slice(0, finalExpandSize);
70817
+ if (fields.length) {
70818
+ hasExpandButton = fields.length > finalExpandSize;
70819
+ if (hasExpandButton) {
70820
+ fields = fields.slice(0, finalExpandSize);
70821
+ }
70822
+ if (!props.invisibleSearch) {
70823
+ const searchActionBar = createSearchBar(false, {
70824
+ hasExpandButton,
70825
+ showSearchPrefer: props.showSearchPrefer,
70826
+ onSearch,
70827
+ onReset,
70828
+ onExpand,
70829
+ translate: props.translate,
70830
+ preferProps: {
70831
+ selected: props.selectedPrefer,
70832
+ options: props.searchPreferOptions,
70833
+ onLoad: props.onLoadSearchPreferOptions,
70834
+ onCreate: props.onCreateSearchPrefer,
70835
+ onUpdate: props.onUpdateSearchPrefer,
70836
+ onRemove: props.onRemoveSearchPrefer,
70837
+ onSelect: props.onSelectSearchPrefer,
70838
+ onUnselect: props.onUnselectSearchPrefer
70839
+ }
70840
+ });
70841
+ invisible = !fields.length;
70842
+ const searchBarCol = createSearchBarCol(searchActionBar, (props.foldSize - fields.length) * (DEFAULT_COLS$1 / (props.foldSize + 1)), invisible, props.foldSize);
70843
+ fields.push(searchBarCol);
70844
+ }
70820
70845
  }
70821
- if (!props.invisibleSearch) {
70822
- const searchActionBar = createSearchBar(false, {
70823
- hasExpandButton,
70824
- showSearchPrefer: props.showSearchPrefer,
70825
- onSearch,
70826
- onReset,
70827
- onExpand,
70828
- translate: props.translate,
70829
- preferProps: {
70830
- selected: props.selectedPrefer,
70831
- options: props.searchPreferOptions,
70832
- onLoad: props.onLoadSearchPreferOptions,
70833
- onCreate: props.onCreateSearchPrefer,
70834
- onUpdate: props.onUpdateSearchPrefer,
70835
- onRemove: props.onRemoveSearchPrefer,
70836
- onSelect: props.onSelectSearchPrefer,
70837
- onUnselect: props.onUnselectSearchPrefer
70838
- }
70839
- });
70840
- invisible = !fields.length;
70841
- const searchBarCol = createSearchBarCol(searchActionBar, (props.foldSize - fields.length) * (DEFAULT_COLS$1 / (props.foldSize + 1)), invisible, props.foldSize);
70842
- fields.push(searchBarCol);
70846
+ else {
70847
+ hasExpandButton = false;
70848
+ fields = widgets;
70843
70849
  }
70844
70850
  defaultChildren.push(withDirectives(DslRender.render({
70845
70851
  internal: true,
@@ -71118,6 +71124,17 @@ let SearchWidget = class SearchWidget extends BaseSearchWidget {
71118
71124
  super.$$mounted();
71119
71125
  this.isExpand = BooleanHelper.toBoolean(this.urlParameters.expand) || false;
71120
71126
  }
71127
+ childrenInvisibleProcess() {
71128
+ if (this.disabledExpand && !this.invisibleSearch) {
71129
+ const children = this.getChildren();
71130
+ const lastChild = children[children.length - 1];
71131
+ if (children.length === 2 && lastChild instanceof DefaultRowWidget) {
71132
+ return isAllInvisible(children.slice(0, children.length - 1));
71133
+ }
71134
+ return isAllInvisible(children);
71135
+ }
71136
+ return super.childrenInvisibleProcess();
71137
+ }
71121
71138
  };
71122
71139
  __decorate([
71123
71140
  Widget.Reactive(),