@qin-ui/vant-pro 1.0.0 → 1.0.1
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/README.md +5 -5
- package/es/index.js +0 -1
- package/package.json +2 -4
package/README.md
CHANGED
|
@@ -100,7 +100,7 @@ import { ProComponentProvider } from '@qin-ui/vant-pro';
|
|
|
100
100
|
<ProComponentProvider
|
|
101
101
|
:component-vars="{
|
|
102
102
|
field: { clearable: true, placeholder: '请选择' },
|
|
103
|
-
'pro-form': { inputAlign: '
|
|
103
|
+
'pro-form': { inputAlign: 'center', required: 'auto' },
|
|
104
104
|
}"
|
|
105
105
|
>
|
|
106
106
|
<ProForm :form="form" />
|
|
@@ -186,7 +186,7 @@ import { useFormPopup } from '@qin-ui/vant-pro';
|
|
|
186
186
|
const formPopup = useFormPopup();
|
|
187
187
|
formPopup.open('fieldName'); // 打开弹窗
|
|
188
188
|
formPopup.close(); // 关闭弹窗
|
|
189
|
-
formPopup.updateProps({
|
|
189
|
+
formPopup.updateProps({ closeable: true }); // 更新弹窗属性
|
|
190
190
|
```
|
|
191
191
|
|
|
192
192
|
| 属性/方法 | 说明 |
|
|
@@ -276,7 +276,8 @@ const form = useForm({ date: '' }, [
|
|
|
276
276
|
path: 'area',
|
|
277
277
|
label: '地区',
|
|
278
278
|
component: 'area',
|
|
279
|
-
popup:
|
|
279
|
+
popup: true,
|
|
280
|
+
title: '请选择所在地区'
|
|
280
281
|
displayFormatter: (val: string[]) => val?.join(' ') || '请选择地区',
|
|
281
282
|
},
|
|
282
283
|
]);
|
|
@@ -310,7 +311,7 @@ const form = useForm({}, [
|
|
|
310
311
|
|
|
311
312
|
#### 自定义组件
|
|
312
313
|
|
|
313
|
-
|
|
314
|
+
通过使用 `component` 属性传入自定义组件:
|
|
314
315
|
|
|
315
316
|
```vue
|
|
316
317
|
<script setup lang="ts">
|
|
@@ -321,7 +322,6 @@ const form = useForm({ custom: '' }, [
|
|
|
321
322
|
{
|
|
322
323
|
path: 'custom',
|
|
323
324
|
label: '自定义',
|
|
324
|
-
component: 'custom',
|
|
325
325
|
component: MyCustomInput,
|
|
326
326
|
placeholder: '请输入',
|
|
327
327
|
},
|
package/es/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "./vant-pro.css";
|
|
2
1
|
import _sfc_main from "./form/index.js";
|
|
3
2
|
import { BaseField, BaseFormItem, ContainerFragment, GroupedFieldAttrs, InjectionPopupKey, PathProvider, SlotComponent, TeleportComponentNamePrefix, componentMap, getInitProps, useFields, useForm, useFormPopup, useFormRef } from "./form/index.js";
|
|
4
3
|
import _sfc_main$1 from "./component-provider/index.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qin-ui/vant-pro",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "基于 vant 和 @qin-ui/core 封装的高级表单和列表组件库",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -59,8 +59,6 @@
|
|
|
59
59
|
"pro-components",
|
|
60
60
|
"ui",
|
|
61
61
|
"form",
|
|
62
|
-
"
|
|
63
|
-
"pro-form",
|
|
64
|
-
"pro-table"
|
|
62
|
+
"pro-form"
|
|
65
63
|
]
|
|
66
64
|
}
|