uni-oaview 1.0.19 → 1.0.20

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.
@@ -4,6 +4,7 @@
4
4
  <uni-forms-item required label="用户名" name="username">
5
5
  <uni-easyinput type="text" v-model="formData.username" placeholder="请输入用户名" />
6
6
  </uni-forms-item>
7
+ <slot :formData="formData" :updateFormData="updateFormData" />
7
8
  <uni-forms-item name="verificationCode" label="验证码">
8
9
  <uni-easyinput type="text" v-model="formData.verificationCode" placeholder="请输入验证码" />
9
10
  </uni-forms-item>
@@ -27,7 +28,10 @@
27
28
  },
28
29
  });
29
30
  const emit = defineEmits(['loginSuccess']);
30
- const formData = reactive({
31
+ const updateFormData = (key: string, value: any) => {
32
+ formData[key] = value;
33
+ };
34
+ const formData = reactive<Record<string, any>>({
31
35
  username: 'lixd',
32
36
  password: props.password,
33
37
  verificationCode: 88,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uni-oaview",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "uniapp小程序组件库",
5
5
  "main": "dist/index.umd.js",
6
6
  "typings": "dist/index.d.ts",