xdc-ui-lib 1.0.1 → 1.0.2
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 +8 -8
- package/package.json +1 -1
- package/xdc-ui-lib.js +990 -965
- package/xdc-ui-lib.umd.cjs +4 -4
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# xdc-
|
|
1
|
+
# xdc-ui-lib
|
|
2
2
|
|
|
3
3
|
Vue 3 组件库,包含常用的业务组件。
|
|
4
4
|
|
|
@@ -26,7 +26,7 @@ Vue 3 组件库,包含常用的业务组件。
|
|
|
26
26
|
</template>
|
|
27
27
|
|
|
28
28
|
<script setup>
|
|
29
|
-
import { CategorySearch } from 'xdc-
|
|
29
|
+
import { CategorySearch } from 'xdc-ui-lib';
|
|
30
30
|
|
|
31
31
|
const filterTypes = [
|
|
32
32
|
{
|
|
@@ -242,7 +242,7 @@ const filterTypes = [
|
|
|
242
242
|
</template>
|
|
243
243
|
|
|
244
244
|
<script setup>
|
|
245
|
-
import { BaseForm } from 'xdc-
|
|
245
|
+
import { BaseForm } from 'xdc-ui-lib';
|
|
246
246
|
|
|
247
247
|
const formData = reactive({
|
|
248
248
|
username: '',
|
|
@@ -944,7 +944,7 @@ const specificValues = formRef.value?.getFieldsValue(['username', 'email']);
|
|
|
944
944
|
</template>
|
|
945
945
|
|
|
946
946
|
<script setup>
|
|
947
|
-
import { BaseModal } from 'xdc-
|
|
947
|
+
import { BaseModal } from 'xdc-ui-lib';
|
|
948
948
|
|
|
949
949
|
const visible = ref(false);
|
|
950
950
|
|
|
@@ -974,7 +974,7 @@ const handleCancel = () => {
|
|
|
974
974
|
</template>
|
|
975
975
|
|
|
976
976
|
<script setup>
|
|
977
|
-
import { BaseModal, useModalManager } from 'xdc-
|
|
977
|
+
import { BaseModal, useModalManager } from 'xdc-ui-lib';
|
|
978
978
|
|
|
979
979
|
const { closeAllModals } = useModalManager();
|
|
980
980
|
|
|
@@ -1019,7 +1019,7 @@ const closeAll = () => {
|
|
|
1019
1019
|
提供模态框管理功能。
|
|
1020
1020
|
|
|
1021
1021
|
```typescript
|
|
1022
|
-
import { useModalManager } from 'xdc-
|
|
1022
|
+
import { useModalManager } from 'xdc-ui-lib';
|
|
1023
1023
|
|
|
1024
1024
|
const { registerModal, unregisterModal, closeAllModals } = useModalManager();
|
|
1025
1025
|
```
|
|
@@ -1046,7 +1046,7 @@ window.dispatchEvent(new Event('close-all-modals'));
|
|
|
1046
1046
|
## 安装
|
|
1047
1047
|
|
|
1048
1048
|
```bash
|
|
1049
|
-
npm install xdc-
|
|
1049
|
+
npm install xdc-ui-lib ant-design-vue
|
|
1050
1050
|
```
|
|
1051
1051
|
|
|
1052
1052
|
## 使用
|
|
@@ -1063,7 +1063,7 @@ npm install xdc-components ant-design-vue
|
|
|
1063
1063
|
</template>
|
|
1064
1064
|
|
|
1065
1065
|
<script setup>
|
|
1066
|
-
import { FileUpload } from 'xdc-
|
|
1066
|
+
import { FileUpload } from 'xdc-ui-lib';
|
|
1067
1067
|
|
|
1068
1068
|
function onSelect(files) {
|
|
1069
1069
|
console.log('已选文件:', files);
|