cc1-ui 1.0.1 → 1.0.3
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-DDcr68UP.js'));
|
|
12
12
|
const installDR = (fun, app) => {
|
|
13
13
|
fun().then((module) => module.install(app));
|
|
14
14
|
};
|
|
@@ -77,7 +77,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
77
77
|
getProps: () => {
|
|
78
78
|
Object.keys(conf.props).forEach((key) => {
|
|
79
79
|
if (!StrUtil.isNull(viconConf[key])) {
|
|
80
|
-
conf.props[key] = viconConf[key];
|
|
80
|
+
conf.props[key] = typeof viconConf[key] === "function" ? viconConf[key]() : viconConf[key];
|
|
81
81
|
}
|
|
82
82
|
if (!StrUtil.isNull(props[key])) {
|
|
83
83
|
conf.props[key] = props[key];
|
|
@@ -119,6 +119,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
119
119
|
* 渲染图标
|
|
120
120
|
*/
|
|
121
121
|
init: async () => {
|
|
122
|
+
const suffix = conf.props.name.split(".")[1];
|
|
123
|
+
if (suffix && suffix !== "svg") {
|
|
124
|
+
conf.content = `${conf.props.url?.length ? conf.props.url : ""}/${conf.props.lib?.length ? conf.props.lib + "/" : ""}${conf.props.name}`;
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
122
127
|
const sourceColor = Array.isArray(conf.props.color) ? conf.props.color : [conf.props.color];
|
|
123
128
|
const sourceHoverColor = Array.isArray(conf.props.hoverColor) ? conf.props.hoverColor : [conf.props.hoverColor];
|
|
124
129
|
let color = conf.domHover ? sourceHoverColor : sourceColor;
|
package/dist/index.d.ts
CHANGED
|
@@ -14,12 +14,12 @@ declare module 'vue' {
|
|
|
14
14
|
export interface GlobalComponents {
|
|
15
15
|
VButton:typeof import('./components/Button/index.vue')['default']
|
|
16
16
|
VCircle:typeof import('./components/Circle/index.vue')['default']
|
|
17
|
-
VMask:typeof import('./components/Mask/index.vue')['default']
|
|
18
|
-
VIcon:typeof import('./components/Icon/index.vue')['default']
|
|
19
17
|
VSIcon:typeof import('./components/SIcon/index.vue')['default']
|
|
20
18
|
VScale:typeof import('./components/Scale/index.vue')['default']
|
|
21
19
|
VSelect:typeof import('./components/Select/index.vue')['default']
|
|
22
20
|
VSwitch:typeof import('./components/Switch/index.vue')['default']
|
|
21
|
+
VIcon:typeof import('./components/Icon/index.vue')['default']
|
|
22
|
+
VMask:typeof import('./components/Mask/index.vue')['default']
|
|
23
23
|
}
|
|
24
24
|
export interface ComponentCustomProperties {
|
|
25
25
|
}
|
package/dist/vconf.d.ts
CHANGED