yc-pro-components 0.0.16 → 0.0.18
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/es/components/dialog/src/index.vue2.mjs +6 -3
- package/es/components/dialog-form/index.d.ts +1154 -0
- package/es/components/dialog-form/src/index.vue.d.ts +493 -0
- package/es/components/dialog-form/src/index.vue2.mjs +7 -4
- package/es/components/drawer-form/index.d.ts +3467 -0
- package/es/components/drawer-form/src/index.vue.d.ts +1254 -0
- package/es/components/drawer-form/src/index.vue2.mjs +7 -4
- package/es/components/form/index.d.ts +1669 -0
- package/es/components/form/src/index.vue.d.ts +652 -0
- package/es/components/form/src/index.vue2.mjs +7 -4
- package/es/components/page/index.d.ts +15386 -0
- package/es/components/page/src/index.vue.d.ts +5306 -0
- package/es/components/popover/src/index.vue2.mjs +6 -3
- package/es/components/search/index.d.ts +4514 -0
- package/es/components/search/src/index.vue.d.ts +1539 -0
- package/es/components/yc-plus-page/src/index.vue.d.ts +12804 -0
- package/es/components/yc-status-dialog/src/index.vue.mjs +1 -1
- package/es/components/yc-status-dialog/src/index.vue2.mjs +6 -3
- package/es/hooks/usePlusFormReset.d.ts +9925 -0
- package/es/index.css +1 -1
- package/index.css +7 -7
- package/index.js +52 -36
- package/index.min.css +1 -1
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +52 -36
- package/lib/components/dialog/src/index.vue2.js +6 -3
- package/lib/components/dialog-form/index.d.ts +1154 -0
- package/lib/components/dialog-form/src/index.vue.d.ts +493 -0
- package/lib/components/dialog-form/src/index.vue2.js +7 -4
- package/lib/components/drawer-form/index.d.ts +3467 -0
- package/lib/components/drawer-form/src/index.vue.d.ts +1254 -0
- package/lib/components/drawer-form/src/index.vue2.js +7 -4
- package/lib/components/form/index.d.ts +1669 -0
- package/lib/components/form/src/index.vue.d.ts +652 -0
- package/lib/components/form/src/index.vue2.js +7 -4
- package/lib/components/page/index.d.ts +15386 -0
- package/lib/components/page/src/index.vue.d.ts +5306 -0
- package/lib/components/popover/src/index.vue2.js +6 -3
- package/lib/components/search/index.d.ts +4514 -0
- package/lib/components/search/src/index.vue.d.ts +1539 -0
- package/lib/components/yc-plus-page/src/index.vue.d.ts +12804 -0
- package/lib/components/yc-status-dialog/src/index.vue.js +1 -1
- package/lib/components/yc-status-dialog/src/index.vue2.js +6 -3
- package/lib/hooks/usePlusFormReset.d.ts +9925 -0
- package/lib/index.css +1 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +3 -3
|
@@ -113,12 +113,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
113
113
|
}
|
|
114
114
|
return false;
|
|
115
115
|
};
|
|
116
|
-
const
|
|
116
|
+
const debouncedSubmit = debounce(doSubmit, 300, {
|
|
117
117
|
leading: true,
|
|
118
118
|
// 立即执行第一次
|
|
119
119
|
trailing: false
|
|
120
120
|
// 不执行最后一次
|
|
121
121
|
});
|
|
122
|
+
const handleSubmit = () => {
|
|
123
|
+
debouncedSubmit();
|
|
124
|
+
};
|
|
122
125
|
const handleReset = () => {
|
|
123
126
|
clearValidate();
|
|
124
127
|
values.value = { ...props.defaultValues };
|
|
@@ -267,7 +270,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
267
270
|
style: normalizeStyle(style.value)
|
|
268
271
|
},
|
|
269
272
|
[
|
|
270
|
-
renderSlot(_ctx.$slots, "footer", normalizeProps(guardReactiveProps({ handleReset, handleSubmit
|
|
273
|
+
renderSlot(_ctx.$slots, "footer", normalizeProps(guardReactiveProps({ handleReset, handleSubmit })), () => [
|
|
271
274
|
_ctx.hasReset ? (openBlock(), createBlock(unref(ElButton), {
|
|
272
275
|
key: 0,
|
|
273
276
|
onClick: handleReset
|
|
@@ -286,7 +289,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
286
289
|
createVNode(unref(ElButton), {
|
|
287
290
|
type: "primary",
|
|
288
291
|
loading: computedLoading.value,
|
|
289
|
-
onClick:
|
|
292
|
+
onClick: handleSubmit
|
|
290
293
|
}, {
|
|
291
294
|
default: withCtx(() => [
|
|
292
295
|
createCommentVNode(" \u63D0\u4EA4 "),
|
|
@@ -298,7 +301,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
298
301
|
]),
|
|
299
302
|
_: 1
|
|
300
303
|
/* STABLE */
|
|
301
|
-
}, 8, ["loading"
|
|
304
|
+
}, 8, ["loading"])
|
|
302
305
|
])
|
|
303
306
|
],
|
|
304
307
|
4
|