@ebiz/designer-components 0.1.41 → 0.1.42
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/dist/index.mjs
CHANGED
|
@@ -59876,7 +59876,7 @@ const GG = /* @__PURE__ */ Ge(O9, [["render", x9], ["__scopeId", "data-v-d22af56
|
|
|
59876
59876
|
},
|
|
59877
59877
|
emits: ["scroll", "load-more", "update:formData"],
|
|
59878
59878
|
setup(t, { expose: e, emit: n }) {
|
|
59879
|
-
const a = z(1), r = z(10), l = z(!0), o = z(!1), i = z(0), u = z([10, 20, 50, 100]), c = z(), s = t, d = F(() => localStorage.getItem("ebiz-develop-mode") === "designer" ? s.showDemoData ? s.demoData : [] : c.value), v = z({ ...JSON.parse(JSON.stringify(s.formData)) }), f = z(""), g = async () => {
|
|
59879
|
+
const a = z(1), r = z(10), l = z(!0), o = z(!1), i = z(0), u = z([10, 20, 50, 100]), c = z(), s = t, d = F(() => localStorage.getItem("ebiz-develop-mode") === "designer" ? s.showDemoData ? s.demoData : [] : c.value), v = z({ ...JSON.parse(JSON.stringify((s == null ? void 0 : s.formData) || {})) }), f = z(""), g = async () => {
|
|
59880
59880
|
const x = {
|
|
59881
59881
|
keyword: f.value
|
|
59882
59882
|
}, b = await It.fetch({
|
|
@@ -59896,9 +59896,9 @@ const GG = /* @__PURE__ */ Ge(O9, [["render", x9], ["__scopeId", "data-v-d22af56
|
|
|
59896
59896
|
const p = (x) => {
|
|
59897
59897
|
m("search", x) !== !1 && (a.value = 1, g());
|
|
59898
59898
|
}, y = (x) => {
|
|
59899
|
-
|
|
59899
|
+
console.log("handleReset", x), console.log("handleReset", v.value), S.value = { ...v.value }, a.value = 1, setTimeout(() => {
|
|
59900
59900
|
g();
|
|
59901
|
-
}, 10)
|
|
59901
|
+
}, 10);
|
|
59902
59902
|
}, C = () => {
|
|
59903
59903
|
g();
|
|
59904
59904
|
}, w = z({ ...s.formData }), S = F({
|
package/package.json
CHANGED
|
@@ -191,7 +191,7 @@ const computedData = computed(() => {
|
|
|
191
191
|
})
|
|
192
192
|
|
|
193
193
|
|
|
194
|
-
const defaultFormData = ref({ ...JSON.parse(JSON.stringify(props
|
|
194
|
+
const defaultFormData = ref({ ...JSON.parse(JSON.stringify(props?.formData || {})) })
|
|
195
195
|
const searchValue = ref('')
|
|
196
196
|
|
|
197
197
|
const loadData = async () => {
|
|
@@ -236,13 +236,10 @@ const handleSearch = (context) => {
|
|
|
236
236
|
|
|
237
237
|
// 重置
|
|
238
238
|
const handleReset = (context) => {
|
|
239
|
-
|
|
240
|
-
if (result === false) {
|
|
241
|
-
return
|
|
242
|
-
}
|
|
239
|
+
console.log("handleReset", context)
|
|
243
240
|
|
|
244
241
|
console.log("handleReset", defaultFormData.value)
|
|
245
|
-
|
|
242
|
+
formDataValue.value = { ...defaultFormData.value }
|
|
246
243
|
currentPage.value = 1
|
|
247
244
|
setTimeout(() => {
|
|
248
245
|
loadData()
|
|
@@ -259,7 +256,7 @@ const innerFormData = ref({ ...props.formData })
|
|
|
259
256
|
|
|
260
257
|
const formDataValue = computed({
|
|
261
258
|
get: () => {
|
|
262
|
-
if(
|
|
259
|
+
if (props.formData == undefined) {
|
|
263
260
|
return innerFormData.value
|
|
264
261
|
}
|
|
265
262
|
return props.formData
|