@xilonglab/vue-main 0.8.15 → 0.8.17
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
package/packages/index.js
CHANGED
|
@@ -1,143 +1,127 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import XlSideBar from './XlSideBar.vue'
|
|
2
|
+
import XlControlBar from './XlControlBar.vue'
|
|
3
|
+
import XlBreadcrumb from './XlBreadcrumb.vue'
|
|
4
4
|
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
// Button Components
|
|
6
|
+
import XlAsyncButton from './button/XlAsyncButton.vue'
|
|
7
|
+
import XlButton from './button/XlButton.vue'
|
|
8
|
+
import XlDeleteButton from './button/XlDeleteButton.vue'
|
|
9
|
+
import XlEditButton from './button/XlEditButton.vue'
|
|
10
|
+
import XlIconButton from './button/XlIconButton.vue'
|
|
11
|
+
import XlUploadButton from './button/XlUploadButton.vue'
|
|
12
12
|
|
|
13
|
-
//
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
13
|
+
// Form Components
|
|
14
|
+
import XlCascader from './form/XlCascader.vue'
|
|
15
|
+
import XlCheckbox from './form/XlCheckbox.vue'
|
|
16
|
+
import XlDate from './form/XlDate.vue'
|
|
17
|
+
import XlFormCol from './form/XlFormCol.vue'
|
|
18
|
+
import XlFormRow from './form/XlFormRow.vue'
|
|
19
|
+
import XlImageInput from './form/XlImageInput.vue'
|
|
20
|
+
import XlInput from './form/XlInput.vue'
|
|
21
|
+
import XlMapSelect from './form/XlMapSelect.vue'
|
|
22
|
+
import XlNumber from './form/XlNumber.vue'
|
|
23
|
+
import XlRadio from './form/XlRadio.vue'
|
|
24
|
+
import XlRawSelect from './form/XlRawSelect.vue'
|
|
25
|
+
import XlRegion from './form/XlRegion.vue'
|
|
26
|
+
import XlSearchSelect from './form/XlSearchSelect.vue'
|
|
27
|
+
import XlSelect from './form/XlSelect.vue'
|
|
28
|
+
import XlSwitch from './form/XlSwitch.vue'
|
|
29
|
+
import XlTabRadio from './form/XlTabRadio.vue'
|
|
30
|
+
import XlTags from './form/XlTags.vue'
|
|
31
|
+
import XlTextarea from './form/XlTextarea.vue'
|
|
32
|
+
import XlTime from './form/XlTime.vue'
|
|
33
33
|
|
|
34
34
|
// Dialog Components
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
// import XlReviewDialog from './dialog/XlReviewDialog.vue'
|
|
35
|
+
import XlDialog from './dialog/XlDialog.vue'
|
|
36
|
+
import XlFormDialog from './dialog/XlFormDialog.vue'
|
|
37
|
+
import XlStateDialog from './dialog/XlStateDialog.vue'
|
|
38
|
+
import XlImagePreviewDialog from './dialog/XlImagePreviewDialog.vue'
|
|
39
|
+
import XlMessageDialog from './dialog/XlMessageDialog.vue'
|
|
40
|
+
import XlReviewDialog from './dialog/XlReviewDialog.vue'
|
|
42
41
|
|
|
43
42
|
// Main Components
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
43
|
+
import XlDataView from './main/XlDataView.vue'
|
|
44
|
+
import XlDataReview from './main/XlDataReview.vue'
|
|
45
|
+
import XlDataFormDialog from './main/XlDataFormDialog.vue'
|
|
46
|
+
import XlDataReviewDialog from './main/XlDataReviewDialog.vue'
|
|
47
|
+
import XlNavBar from './main/XlNavBar.vue'
|
|
48
|
+
import XlTabView from './main/XlTabView.vue'
|
|
49
|
+
import XlToolBar from './main/XlToolBar.vue'
|
|
50
|
+
import XlVerticalMenu from './main/XlVerticalMenu.vue'
|
|
51
|
+
import XlStatusIndicator from './main/XlStatusIndicator.vue'
|
|
52
|
+
import XlUpdateIndicator from './main/XlUpdateIndicator.vue'
|
|
53
|
+
import XlAutoSaver from './main/XlAutoSaver.vue'
|
|
54
|
+
import XlLoginForm from './main/XlLoginForm.vue'
|
|
54
55
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
//
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
//
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
//
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
//
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
56
|
+
const components = [
|
|
57
|
+
XlSideBar,
|
|
58
|
+
XlControlBar,
|
|
59
|
+
XlBreadcrumb,
|
|
60
|
+
// Buttons
|
|
61
|
+
XlAsyncButton,
|
|
62
|
+
XlButton,
|
|
63
|
+
XlDeleteButton,
|
|
64
|
+
XlEditButton,
|
|
65
|
+
XlIconButton,
|
|
66
|
+
XlUploadButton,
|
|
67
|
+
// Forms
|
|
68
|
+
XlCascader,
|
|
69
|
+
XlCheckbox,
|
|
70
|
+
XlDate,
|
|
71
|
+
XlFormCol,
|
|
72
|
+
XlFormRow,
|
|
73
|
+
XlImageInput,
|
|
74
|
+
XlInput,
|
|
75
|
+
XlMapSelect,
|
|
76
|
+
XlNumber,
|
|
77
|
+
XlRadio,
|
|
78
|
+
XlRawSelect,
|
|
79
|
+
XlRegion,
|
|
80
|
+
XlSearchSelect,
|
|
81
|
+
XlSelect,
|
|
82
|
+
XlSwitch,
|
|
83
|
+
XlTabRadio,
|
|
84
|
+
XlTags,
|
|
85
|
+
XlTextarea,
|
|
86
|
+
XlTime,
|
|
87
|
+
// Dialogs
|
|
88
|
+
XlDialog,
|
|
89
|
+
XlFormDialog,
|
|
90
|
+
XlStateDialog,
|
|
91
|
+
XlImagePreviewDialog,
|
|
92
|
+
XlMessageDialog,
|
|
93
|
+
XlReviewDialog,
|
|
94
|
+
// Main Components
|
|
95
|
+
XlDataView,
|
|
96
|
+
XlDataReview,
|
|
97
|
+
XlDataFormDialog,
|
|
98
|
+
XlDataReviewDialog,
|
|
99
|
+
XlNavBar,
|
|
100
|
+
XlTabView,
|
|
101
|
+
XlToolBar,
|
|
102
|
+
XlVerticalMenu,
|
|
103
|
+
XlStatusIndicator,
|
|
104
|
+
XlUpdateIndicator,
|
|
105
|
+
XlAutoSaver,
|
|
106
|
+
XlLoginForm
|
|
107
|
+
];
|
|
106
108
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
// };
|
|
112
|
-
|
|
113
|
-
const imports = import.meta.globEager('./**/*.vue');
|
|
114
|
-
export default {
|
|
115
|
-
install(app) {
|
|
116
|
-
for (const path in imports) {
|
|
117
|
-
const component = imports[path];
|
|
118
|
-
const regex = /\.\/\w+\/(\w+)\.vue$/;
|
|
119
|
-
const match = path.match(regex);
|
|
120
|
-
const name = match ? match[1] : null;
|
|
121
|
-
app.component(name, component.default);
|
|
122
|
-
}
|
|
123
|
-
},
|
|
109
|
+
const install = (app) => {
|
|
110
|
+
components.forEach((component) => {
|
|
111
|
+
app.component(component.name, component);
|
|
112
|
+
});
|
|
124
113
|
};
|
|
125
114
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
if (typeof window !== 'undefined' && window.Vue) {
|
|
137
|
-
install(window.Vue)
|
|
138
|
-
}
|
|
115
|
+
let componentsJson = {}
|
|
116
|
+
components.forEach(component => {
|
|
117
|
+
const componentName = component.name
|
|
118
|
+
component.install = function (app) {
|
|
119
|
+
app.component(componentName, component)
|
|
120
|
+
}
|
|
121
|
+
componentsJson[componentName] = component
|
|
122
|
+
})
|
|
139
123
|
|
|
140
124
|
export default {
|
|
141
125
|
install,
|
|
142
|
-
|
|
126
|
+
...componentsJson
|
|
143
127
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|