joy-admin-components 0.1.20 → 0.1.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joy-admin-components",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "main": "./src/index.js",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -0,0 +1,10 @@
1
+ import LayOutForm from './index.vue';
2
+
3
+ export { LayOutForm };
4
+
5
+ // 导出Vue插件
6
+ export default {
7
+ install(app) {
8
+ app.component(LayOutForm.name, LayOutForm);
9
+ },
10
+ };
@@ -4,7 +4,7 @@
4
4
  import { defineComponent, h, onMounted, ref } from 'vue';
5
5
 
6
6
  export default defineComponent({
7
- name: 'JoyForm',
7
+ name: 'LayOutForm',
8
8
  setup(props, { slots, attrs, emit }) {
9
9
  const formRef = ref(null);
10
10
  // 给表单项添加栅格 方便多列表单布局
package/src/index.js CHANGED
@@ -1,11 +1,11 @@
1
- import {JoyForm} from './components/JoyForm/index.js';
1
+ import {LayOutForm} from './components/LayOutForm/index.js';
2
2
 
3
3
  // 导出组件
4
- export { JoyForm }
4
+ export { LayOutForm }
5
5
 
6
6
  // 默认导出所有组件
7
7
  export default {
8
8
  install: (app) => {
9
- app.component(JoyForm.name, JoyForm);
9
+ app.component(LayOutForm.name, LayOutForm);
10
10
  }
11
11
  };
@@ -1,10 +0,0 @@
1
- import JoyForm from './index.vue';
2
-
3
- export { JoyForm };
4
-
5
- // 导出Vue插件
6
- export default {
7
- install(app) {
8
- app.component(JoyForm.name, JoyForm);
9
- },
10
- };