cc1-ui 0.0.9 → 0.0.10
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/dist/autoimport.js +1 -1
- package/dist/cc1-ui.js +5 -2
- package/dist/index.d.ts +4 -4
- package/package.json +1 -1
package/dist/autoimport.js
CHANGED
|
@@ -176,7 +176,7 @@ export function UIAuto(config) {
|
|
|
176
176
|
res[i] = '';
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
else if (res[i].includes('const DR') || res[i].includes('
|
|
179
|
+
else if (res[i].includes('const DR') || res[i].includes('installDR(')) {
|
|
180
180
|
if (!conf.useDR.some((tag) => res[i].includes('DR' + tag))) {
|
|
181
181
|
res[i] = '';
|
|
182
182
|
}
|
package/dist/cc1-ui.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent } from 'vue';
|
|
2
2
|
|
|
3
|
-
const DRdominfo =
|
|
3
|
+
const DRdominfo = () => import('./dominfo-FpTvKs8K.js');
|
|
4
4
|
const VButton = () => defineAsyncComponent(() => import('./index-lDlR9NjA.js'));
|
|
5
5
|
const VSwitch = () => defineAsyncComponent(() => import('./index-BvvdDtUd.js'));
|
|
6
6
|
const VScale = () => defineAsyncComponent(() => import('./index-l4J1-e0K.js'));
|
|
@@ -9,6 +9,9 @@ const VCircle = () => defineAsyncComponent(() => import('./index-ti4E-Nv5.js'));
|
|
|
9
9
|
const VIcon = () => defineAsyncComponent(() => import('./index-BGzY32VF.js'));
|
|
10
10
|
const VSelect = () => defineAsyncComponent(() => import('./index-CpyM3z5X.js'));
|
|
11
11
|
const VSIcon = () => defineAsyncComponent(() => import('./index-mrAwG3J3.js'));
|
|
12
|
+
const installDR = (fun, app) => {
|
|
13
|
+
fun().then((module) => module.install(app));
|
|
14
|
+
};
|
|
12
15
|
const install = async (app) => {
|
|
13
16
|
app.component("VButton", VButton());
|
|
14
17
|
app.component("VSwitch", VSwitch());
|
|
@@ -18,7 +21,7 @@ const install = async (app) => {
|
|
|
18
21
|
app.component("VIcon", VIcon());
|
|
19
22
|
app.component("VSelect", VSelect());
|
|
20
23
|
app.component("VSIcon", VSIcon());
|
|
21
|
-
DRdominfo
|
|
24
|
+
installDR(DRdominfo, app);
|
|
22
25
|
};
|
|
23
26
|
if (!window.VConf) {
|
|
24
27
|
const getLoad = (obj) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -12,14 +12,14 @@ export {}
|
|
|
12
12
|
/* prettier-ignore */
|
|
13
13
|
declare module 'vue' {
|
|
14
14
|
export interface GlobalComponents {
|
|
15
|
+
VButton:typeof import('./components/Button/index.vue')['default']
|
|
15
16
|
VCircle:typeof import('./components/Circle/index.vue')['default']
|
|
16
17
|
VMask:typeof import('./components/Mask/index.vue')['default']
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
VSIcon:typeof import('./components/SIcon/index.vue')['default']
|
|
19
|
+
VSwitch:typeof import('./components/Switch/index.vue')['default']
|
|
19
20
|
VScale:typeof import('./components/Scale/index.vue')['default']
|
|
21
|
+
VIcon:typeof import('./components/Icon/index.vue')['default']
|
|
20
22
|
VSelect:typeof import('./components/Select/index.vue')['default']
|
|
21
|
-
VSwitch:typeof import('./components/Switch/index.vue')['default']
|
|
22
|
-
VSIcon:typeof import('./components/SIcon/index.vue')['default']
|
|
23
23
|
}
|
|
24
24
|
export interface ComponentCustomProperties {
|
|
25
25
|
}
|