Skip to content

Commit 885b010

Browse files
committed
chore: add CIcon component import
1 parent 7998d31 commit 885b010

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"dependencies": {
6060
"@coreui/coreui": "3.0.0-beta.0",
6161
"@coreui/icons": "coreui/coreui-icons#v1-alpha",
62+
"@coreui/icons-vue": "coreui/coreui-icons-vue#1.0.0-alpha.0",
6263
"clone": "^2.1.2",
6364
"perfect-scrollbar": "^1.4.0",
6465
"popper.js": "^1.16.0",

rollup.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { camelCase } from 'lodash';
22
import path from 'path';
33
import babel from 'rollup-plugin-babel';
44
import commonjs from 'rollup-plugin-commonjs';
5-
import filesize from 'rollup-plugin-filesize';
5+
// import filesize from 'rollup-plugin-filesize';
66
import json from 'rollup-plugin-json';
77
import license from 'rollup-plugin-license';
88
import postcss from 'rollup-plugin-postcss'
@@ -76,7 +76,7 @@ function genConfig(name) {
7676
commonjs({
7777
namedExports: {
7878
'@coreui/coreui/dist/js/coreui-utilities.js': ['deepObjectsMerge', 'getStyle'],
79-
'@coreui/icons/vue': ['CIcon']
79+
// '@coreui/icons/vue': ['CIcon']
8080
}
8181
}),
8282
postcss(),
@@ -99,7 +99,7 @@ function genConfig(name) {
9999
['@vue/app', { modules: false }]
100100
]
101101
}),
102-
filesize()
102+
// filesize()
103103
].concat(opts.plugins || []),
104104
output: {
105105
exports: 'named',

src/components/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ export * from './tabs'
3232
export * from './toast'
3333
export * from './toggler'
3434
export * from './widgets'
35+
36+
import { CIcon } from '@coreui/icons-vue/index.js'
37+
export { CIcon }

src/components/table/CDataTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
<script>
211211
import CSpinner from '../spinner/CSpinner'
212212
import CPagination from '../pagination/CPagination'
213-
import { CIcon as CIconRaw} from '@coreui/icons/vue'
213+
import { CIcon as CIconRaw } from '@coreui/icons-vue/index.js'
214214
import { arrowTop, ban } from '@coreui/icons'
215215
const CIcon = Object.assign({}, CIconRaw, { icons : { arrowTop, ban }})
216216

0 commit comments

Comments
 (0)