w-ui-v1 1.0.93 → 1.0.95

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/w-table/w-table.vue +22 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "w-ui-v1",
3
- "version": "1.0.93",
3
+ "version": "1.0.95",
4
4
  "description": "w-ui",
5
5
  "author": "wgxshh",
6
6
  "license": "ISC",
@@ -30,6 +30,10 @@ const props = defineProps({
30
30
  query:{
31
31
  type: String,
32
32
  default: ''
33
+ },
34
+ showSearch:{
35
+ type:Boolean,
36
+ default:true
33
37
  }
34
38
  })
35
39
  const query = ref('')
@@ -120,24 +124,30 @@ function add() {
120
124
  <template>
121
125
  <z-paging ref="paging" v-model="dataList" :show-loading-more-when-reload="true" @query="queryList">
122
126
  <template #top>
123
- <view >
124
- <!-- 搜索 -->
125
- <wSearch :primaryCriteria="pageData.primaryCriteria" :criterias="pageData.criterias" @search="search" v-if="pageData.buttons.includes('query')">
126
- </wSearch>
127
-
128
- </view>
129
- <view style="display: flex;justify-content: flex-end;">
130
- <slot name="buttons"></slot>
131
- <!-- 添加按钮 -->
132
- <wd-button v-if="pageData.buttons.includes('dtmplAdd')" type="icon" icon="add" @click="add" />
133
- </view>
127
+ <slot name="top"></slot>
128
+ <view v-if="props.showSearch">
129
+ <view >
130
+ <!-- 搜索 -->
131
+ <wSearch :primaryCriteria="pageData.primaryCriteria" :criterias="pageData.criterias" @search="search" v-if="pageData.buttons.includes('query')">
132
+ </wSearch>
133
+
134
+ </view>
135
+ <view style="display: flex;justify-content: flex-end;">
136
+ <slot name="buttons"></slot>
137
+ <!-- 添加按钮 -->
138
+ <wd-button v-if="pageData.buttons.includes('dtmplAdd')" type="icon" icon="add" @click="add" />
139
+ </view>
140
+ </view>
141
+
134
142
  </template>
135
143
  <!-- 卡片 -->
136
144
  <view class="card-list" v-if="dataList.length > 0">
137
145
  <w-card :enumMap="Enumcolumn" v-for="(item, index) in dataList" :key="index" :car-index="index" :page="pageData" :item-data="item"
138
146
  :source-id="sourceId" @refresh="paging.reload()"/>
139
147
  </view>
140
-
148
+ <template #bottom>
149
+ <slot name="bottom"></slot>
150
+ </template>
141
151
  </z-paging>
142
152
  </template>
143
153