@fecp/mobile 1.0.15 → 1.0.16
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.
|
@@ -3,17 +3,19 @@
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
|
-
import { useAttrs, createBlock, openBlock, mergeProps,
|
|
6
|
+
import { useAttrs, computed, createBlock, openBlock, mergeProps, createSlots, renderList, withCtx, renderSlot } from "vue";
|
|
7
7
|
import { parseRule } from "../../../utils/formRule.mjs";
|
|
8
8
|
import { Field } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/field/index.mjs";
|
|
9
9
|
const _sfc_main = {
|
|
10
10
|
__name: "Field",
|
|
11
11
|
setup(__props) {
|
|
12
12
|
const attrs = useAttrs();
|
|
13
|
-
const
|
|
13
|
+
const rules = computed(() => {
|
|
14
|
+
return parseRule(attrs);
|
|
15
|
+
});
|
|
14
16
|
return (_ctx, _cache) => {
|
|
15
17
|
const _component_van_field = Field;
|
|
16
|
-
return openBlock(), createBlock(_component_van_field, mergeProps(_ctx.$attrs, { rules:
|
|
18
|
+
return openBlock(), createBlock(_component_van_field, mergeProps(_ctx.$attrs, { rules: rules.value }), createSlots({ _: 2 }, [
|
|
17
19
|
renderList(_ctx.$slots, (item, key) => {
|
|
18
20
|
return {
|
|
19
21
|
name: key,
|
|
@@ -12,10 +12,12 @@ const _sfc_main = {
|
|
|
12
12
|
__name: "Field",
|
|
13
13
|
setup(__props) {
|
|
14
14
|
const attrs = vue.useAttrs();
|
|
15
|
-
const
|
|
15
|
+
const rules = vue.computed(() => {
|
|
16
|
+
return formRule.parseRule(attrs);
|
|
17
|
+
});
|
|
16
18
|
return (_ctx, _cache) => {
|
|
17
19
|
const _component_van_field = index.Field;
|
|
18
|
-
return vue.openBlock(), vue.createBlock(_component_van_field, vue.mergeProps(_ctx.$attrs, { rules:
|
|
20
|
+
return vue.openBlock(), vue.createBlock(_component_van_field, vue.mergeProps(_ctx.$attrs, { rules: rules.value }), vue.createSlots({ _: 2 }, [
|
|
19
21
|
vue.renderList(_ctx.$slots, (item, key) => {
|
|
20
22
|
return {
|
|
21
23
|
name: key,
|