cosey 0.10.3 → 0.10.5

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, watch, computed, createVNode, Fragment, mergeProps, resolveComponent } from 'vue';
1
+ import { defineComponent, ref, watch, computed, createVNode, Fragment, mergeProps } from 'vue';
2
2
  import { SvgIcon as _SvgIcon } from '../svg-icon/index.js';
3
3
  import { IconifyIcon as _IconifyIcon } from '../iconify-icon/index.js';
4
4
  import { iconProps } from './icon.api.js';
@@ -50,7 +50,7 @@ var stdin_default = defineComponent({
50
50
  };
51
51
  });
52
52
  return () => {
53
- return createVNode(Fragment, null, [slots.default ? createVNode("span", mergeProps(attrs, mergedProps.value), [createVNode(resolveComponent("slot"), null, null)]) : prefix.value === "svg" ? createVNode(_SvgIcon, mergeProps(attrs, mergedProps.value), null) : createVNode(_IconifyIcon, mergeProps(attrs, mergedProps.value, {
53
+ return createVNode(Fragment, null, [slots.default ? createVNode("span", mergeProps(attrs, mergedProps.value), [slots.default()]) : prefix.value === "svg" ? createVNode(_SvgIcon, mergeProps(attrs, mergedProps.value), null) : createVNode(_IconifyIcon, mergeProps(attrs, mergedProps.value, {
54
54
  "prefix": prefix.value
55
55
  }), null)]);
56
56
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, resolveComponent, createBlock, createCommentVNode, unref, openBlock, withCtx, createVNode, createElementBlock, Fragment, renderList, createElementVNode, createTextVNode, toDisplayString } from 'vue';
2
- import { Icon } from 'cosey/components';
3
2
  import { useLocaleMessages } from '../../locale/index.js';
4
3
  import { useI18n } from 'vue-i18n';
4
+ import { Icon as _Icon } from '../../components/icon/index.js';
5
5
 
6
6
  const _hoisted_1 = {
7
7
  style: {
@@ -38,7 +38,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
38
38
  key: option.value,
39
39
  command: option.value
40
40
  }, {
41
- default: withCtx(() => [createElementVNode("div", _hoisted_1, [option.value === unref(locale) ? (openBlock(), createBlock(unref(Icon), {
41
+ default: withCtx(() => [createElementVNode("div", _hoisted_1, [option.value === unref(locale) ? (openBlock(), createBlock(unref(_Icon), {
42
42
  key: 0,
43
43
  name: "co:checkmark",
44
44
  size: "lg"
@@ -56,7 +56,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
56
56
  link: "",
57
57
  size: "large"
58
58
  }, {
59
- default: withCtx(() => [createVNode(unref(Icon), {
59
+ default: withCtx(() => [createVNode(unref(_Icon), {
60
60
  name: "co:ibm-watson-language-translator",
61
61
  size: "lg"
62
62
  })]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosey",
3
- "version": "0.10.3",
3
+ "version": "0.10.5",
4
4
  "description": "基于 Vue3 + vite 的后台管理系统框架",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -10,7 +10,6 @@
10
10
  },
11
11
  "devDependencies": {
12
12
  "@casl/ability": "^6.7.3",
13
- "@cosey/icons": "^0.1.8",
14
13
  "@ctrl/tinycolor": "^4.1.0",
15
14
  "@element-plus/icons-vue": "^2.3.1",
16
15
  "@emotion/hash": "^0.9.2",
@@ -47,7 +46,6 @@
47
46
  },
48
47
  "peerDependencies": {
49
48
  "@casl/ability": "^6.7.3",
50
- "@cosey/icons": "^0.1.8",
51
49
  "@ctrl/tinycolor": "^4.1.0",
52
50
  "@element-plus/icons-vue": "^2.3.1",
53
51
  "@emotion/hash": "^0.9.2",
@@ -84,5 +82,8 @@
84
82
  "url": "git+https://github.com/sutras/cosey.git"
85
83
  },
86
84
  "author": "wuzhitao",
87
- "license": "MIT"
85
+ "license": "MIT",
86
+ "dependencies": {
87
+ "@cosey/icons": "^0.1.8"
88
+ }
88
89
  }