af-mobile-client-vue3 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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "af-mobile-client-vue3",
3
3
  "type": "module",
4
- "version": "1.2.38",
4
+ "version": "1.2.40",
5
5
  "packageManager": "pnpm@10.12.3",
6
6
  "description": "Vue + Vite component lib",
7
7
  "engines": {
@@ -141,6 +141,9 @@ const title = ref('')
141
141
  // 按钮权限
142
142
  const buttonPermissions = ref([])
143
143
 
144
+ // 默认参数
145
+ const defaultParams = {}
146
+
144
147
  const slots = useSlots()
145
148
 
146
149
  // 当前组件实例(不推荐使用,可能会在后续的版本更迭中调整,暂时用来绑定函数的上下文)
@@ -235,7 +238,6 @@ function initComponent() {
235
238
 
236
239
  // 初始化条件参数
237
240
  function initConditionParams(formItems, isQuery) {
238
- const defaultParams = {}
239
241
  let hasDefaults: boolean
240
242
 
241
243
  // 从表单配置中获取所有默认值
@@ -287,7 +289,7 @@ function onRefresh() {
287
289
  finishedText.value = '加载完成'
288
290
  finished.value = false
289
291
  loading.value = true
290
- onLoad()
292
+ onLoad(defaultParams)
291
293
  }, 100)
292
294
  }
293
295
 
@@ -553,7 +555,7 @@ defineExpose({
553
555
  <!-- 新增按钮,放在查询框后、查询条件下拉按钮前 -->
554
556
  <VanCol v-if="buttonState?.add && buttonState.add === true && (filterButtonPermissions('add').state === false || ((filterButtonPermissions('add').state === true && userState.f.resources.f_role_name.includes((filterButtonPermissions('add').roleStr)))))" class="add-col">
555
557
  <VanButton
556
- icon="plus"
558
+ icon="add"
557
559
  type="primary"
558
560
  size="small"
559
561
  class="add-action-btn"
@@ -964,8 +966,9 @@ defineExpose({
964
966
  }
965
967
  }
966
968
 
967
- .title-search {
969
+ :deep(.van-search__field) {
968
970
  padding: 0 !important;
971
+ height: 100%;
969
972
  }
970
973
 
971
974
  .filter-condition {
@@ -987,12 +990,12 @@ defineExpose({
987
990
  height: 40px;
988
991
  border-radius: 10px;
989
992
  background-color: var(--van-background);
990
- color: #888;
993
+ color: #323233;
991
994
  border: 1px solid rgba(0, 0, 0, 0.06);
992
995
  display: flex;
993
996
  align-items: center;
994
997
  justify-content: center;
995
- font-size: 22px;
998
+ font-size: 16px;
996
999
  padding: 0;
997
1000
  transition: all 0.2s;
998
1001
  &:hover,