cc1-ui 1.0.4 → 1.0.6
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/cc1-ui.js
CHANGED
|
@@ -8,7 +8,7 @@ const VMask = () => defineAsyncComponent(() => import('./index-ycYY--mh.js'));
|
|
|
8
8
|
const VCircle = () => defineAsyncComponent(() => import('./index-ti4E-Nv5.js'));
|
|
9
9
|
const VIcon = () => defineAsyncComponent(() => import('./index-BGzY32VF.js'));
|
|
10
10
|
const VSelect = () => defineAsyncComponent(() => import('./index-ClZ7RWBn.js'));
|
|
11
|
-
const VSIcon = () => defineAsyncComponent(() => import('./index-
|
|
11
|
+
const VSIcon = () => defineAsyncComponent(() => import('./index-ByeyVMq5.js'));
|
|
12
12
|
const installDR = (fun, app) => {
|
|
13
13
|
fun().then((module) => module.install(app));
|
|
14
14
|
};
|
|
@@ -83,6 +83,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
83
83
|
conf.props[key] = props[key];
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
+
viconConf.setPropsAfter?.(conf.props);
|
|
86
87
|
},
|
|
87
88
|
dom: null,
|
|
88
89
|
domHover: false,
|
|
@@ -121,14 +122,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
121
122
|
init: async () => {
|
|
122
123
|
const suffix = conf.props.name.split(".")[1];
|
|
123
124
|
if (suffix && suffix !== "svg") {
|
|
124
|
-
|
|
125
|
+
const content = `${conf.props.url?.length ? conf.props.url : ""}/${conf.props.lib?.length ? conf.props.lib + "/" : ""}${conf.props.name}`;
|
|
126
|
+
conf.content = content.replace(/\/+/g, "/");
|
|
125
127
|
return;
|
|
126
128
|
}
|
|
127
129
|
const sourceColor = Array.isArray(conf.props.color) ? conf.props.color : [conf.props.color];
|
|
128
130
|
const sourceHoverColor = Array.isArray(conf.props.hoverColor) ? conf.props.hoverColor : [conf.props.hoverColor];
|
|
129
131
|
let color = conf.domHover ? sourceHoverColor : sourceColor;
|
|
130
132
|
if (StrUtil.isNull(conf.props.name)) return;
|
|
131
|
-
|
|
133
|
+
let _url = `${conf.props.url?.length ? conf.props.url : ""}/${conf.props.lib?.length ? conf.props.lib + "/" : ""}${conf.props.name.endsWith(".svg") ? conf.props.name : conf.props.name + ".svg"}`;
|
|
134
|
+
_url = _url.replace(/\/+/g, "/");
|
|
132
135
|
let filestr;
|
|
133
136
|
let _icon_resource = await viconConf.fun.getRes(_url);
|
|
134
137
|
if (_icon_resource) {
|
|
@@ -151,7 +154,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
151
154
|
}
|
|
152
155
|
for (let i = 0; i < colors.length; i++) {
|
|
153
156
|
const colorStr = colors[i];
|
|
154
|
-
const _color = color[i];
|
|
157
|
+
const _color = color[i] ?? color[color.length - 1];
|
|
155
158
|
if (_color) {
|
|
156
159
|
filestr = replaceColor(filestr, colorStr, _color);
|
|
157
160
|
}
|
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
|
-
VCircle:typeof import('./components/Circle/index.vue')['default']
|
|
16
15
|
VButton:typeof import('./components/Button/index.vue')['default']
|
|
17
|
-
VMask:typeof import('./components/Mask/index.vue')['default']
|
|
18
16
|
VIcon:typeof import('./components/Icon/index.vue')['default']
|
|
17
|
+
VCircle:typeof import('./components/Circle/index.vue')['default']
|
|
19
18
|
VSIcon:typeof import('./components/SIcon/index.vue')['default']
|
|
20
|
-
VSwitch:typeof import('./components/Switch/index.vue')['default']
|
|
21
|
-
VSelect:typeof import('./components/Select/index.vue')['default']
|
|
22
19
|
VScale:typeof import('./components/Scale/index.vue')['default']
|
|
20
|
+
VMask:typeof import('./components/Mask/index.vue')['default']
|
|
21
|
+
VSelect:typeof import('./components/Select/index.vue')['default']
|
|
22
|
+
VSwitch:typeof import('./components/Switch/index.vue')['default']
|
|
23
23
|
}
|
|
24
24
|
export interface ComponentCustomProperties {
|
|
25
25
|
}
|
package/dist/vconf.d.ts
CHANGED