n20-common-lib 3.0.55 → 3.0.56

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "3.0.55",
3
+ "version": "3.0.56",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,11 +1,6 @@
1
1
  <template>
2
2
  <div :class="prefixCls">
3
- <el-form
4
- v-show="visible"
5
- ref="advancedFilter"
6
- :class="prefixCls + '-body'"
7
- @submit.native.prevent="() => {}"
8
- >
3
+ <el-form v-show="visible" ref="advancedFilter" :class="prefixCls + '-body'" @submit.native.prevent="() => {}">
9
4
  <slot name="prefix"></slot>
10
5
  <el-form-item
11
6
  v-for="item in GroupData"
@@ -533,6 +528,13 @@ export default {
533
528
  }
534
529
  return item
535
530
  })
531
+
532
+ // ✨ 强制将 static: true 的项目移到最前面
533
+ if (this.GroupData && this.GroupData.length > 0) {
534
+ const staticItems = this.GroupData.filter((item) => item.static)
535
+ const otherItems = this.GroupData.filter((item) => !item.static)
536
+ this.GroupData = [...staticItems, ...otherItems]
537
+ }
536
538
  } else {
537
539
  if (this.removeLoad) {
538
540
  this.GroupData = this.filterList.filter((item) => {