el-plus-crud 0.1.34 → 0.1.35

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.35](https://github.com/KDJack/el-plus-crud/compare/v0.1.34...v0.1.35) (2024-04-23)
6
+
5
7
  ### [0.1.34](https://github.com/KDJack/el-plus-crud/compare/v0.1.33...v0.1.34) (2024-04-23)
6
8
 
7
9
  ### [0.1.33](https://github.com/KDJack/el-plus-crud/compare/v0.1.32...v0.1.33) (2024-04-23)
@@ -5991,7 +5991,7 @@ const pi = /* @__PURE__ */ lt(Kz, [["__scopeId", "data-v-45863775"]]), Hz = /* @
5991
5991
  }
5992
5992
  function L() {
5993
5993
  var b, E, C, U;
5994
- A.value = !0, (E = (b = c.desc) == null ? void 0 : b.on) != null && E.clear && typeof ((U = (C = c.desc) == null ? void 0 : C.on) == null ? void 0 : U.clear) == "function" && c.desc.on.clear(), d.value = null, M.splice(0, M.length);
5994
+ A.value = !0, (E = (b = c.desc) == null ? void 0 : b.on) != null && E.clear && typeof ((U = (C = c.desc) == null ? void 0 : C.on) == null ? void 0 : U.clear) == "function" && c.desc.on.clear(), d.value = null, c.desc.remote && M.splice(0, M.length);
5995
5995
  }
5996
5996
  return Qe(async () => {
5997
5997
  _.remote = !!c.desc.remote, p.value = await Fe(c, _), p.value.remote = !!c.desc.remote, delete p.value.disabled, v.value = !0;
@@ -135,7 +135,10 @@ function clear() {
135
135
  isClear.value = true
136
136
  props.desc?.on?.clear && typeof props.desc?.on?.clear === 'function' && props.desc.on.clear()
137
137
  oldQuery.value = null
138
- options.splice(0, options.length)
138
+ // 只有远程查询的才清空
139
+ if (props.desc.remote) {
140
+ options.splice(0, options.length)
141
+ }
139
142
  }
140
143
 
141
144
  onBeforeMount(async () => {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "el-plus-crud",
3
3
  "description": "采用Vue3 + TS,封装的element-plus数据驱动表单、列表组件",
4
4
  "author": "K.D.Jack",
5
- "version": "0.1.34",
5
+ "version": "0.1.35",
6
6
  "license": "MIT",
7
7
  "private": false,
8
8
  "main": "dist/el-plus-crud.mjs",