@qin-ui/antd-vue-pro 1.1.13 → 1.1.14
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/form/{index-c1a5e7f6.js → index-297bff03.js} +10 -1
- package/es/form/index.js +1 -1
- package/es/index.d.ts +3879 -3649
- package/es/index.js +2 -2
- package/es/style.css +4 -4
- package/es/table/index.js +6 -6
- package/package.json +1 -4
|
@@ -16047,7 +16047,10 @@ const useFormData = (initFormData) => {
|
|
|
16047
16047
|
};
|
|
16048
16048
|
const useFormRef = () => {
|
|
16049
16049
|
const formRef = ref();
|
|
16050
|
-
|
|
16050
|
+
const setFormRef = (val) => {
|
|
16051
|
+
formRef.value = val;
|
|
16052
|
+
};
|
|
16053
|
+
return { formRef, setFormRef };
|
|
16051
16054
|
};
|
|
16052
16055
|
const useForm = (initFormData = {}, initFields = []) => {
|
|
16053
16056
|
return {
|
|
@@ -16614,7 +16617,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16614
16617
|
});
|
|
16615
16618
|
const formInstanceRef = ref(null);
|
|
16616
16619
|
onMounted(() => {
|
|
16620
|
+
var _a;
|
|
16617
16621
|
Object.assign(exposed, formInstanceRef.value);
|
|
16622
|
+
if (props.form) {
|
|
16623
|
+
if (props.form.setFormRef && !((_a = props.form.formRef) == null ? void 0 : _a.value)) {
|
|
16624
|
+
props.form.setFormRef(exposed);
|
|
16625
|
+
}
|
|
16626
|
+
}
|
|
16618
16627
|
});
|
|
16619
16628
|
provide(FORM_DATA, _formData);
|
|
16620
16629
|
provide(UPDATE_FORM_DATA, updateFormData);
|
package/es/form/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l, B, d, i, C, b, f, F, k, G, R, e, j, U, h, _, m, p, n, s, q, u, r, t } from "./index-
|
|
1
|
+
import { l, B, d, i, C, b, f, F, k, G, R, e, j, U, h, _, m, p, n, s, q, u, r, t } from "./index-297bff03.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "ant-design-vue";
|
|
4
4
|
import "../component-provider/index.js";
|