mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-02-17 13:20:52 +08:00
site: vite build, it works
This commit is contained in:
parent
899b29c48c
commit
5c893ee417
@ -2,3 +2,4 @@ node_modules
|
||||
lib
|
||||
test/unit/coverage
|
||||
src/_deprecated/icons
|
||||
dist
|
||||
|
@ -4,7 +4,7 @@ import { installDemoComponents } from './init'
|
||||
// import debugRouteMixin from './routes/debug-route-mixin'
|
||||
import hljs from './hljs'
|
||||
import DemoRouterView from './DemoRouterView.vue'
|
||||
import naive from '../../src/index'
|
||||
import naive from '../src/index'
|
||||
import './font'
|
||||
import { routes } from './routes/routes'
|
||||
import createDemoRouter from './routes/router'
|
||||
|
@ -1,7 +1,6 @@
|
||||
|
||||
import { createApp } from 'vue'
|
||||
import { installDemoComponents } from './init'
|
||||
// import debugRouteMixin from './routes/debug-route-mixin'
|
||||
import hljs from './hljs'
|
||||
import DemoRouterView from './DemoRouterView.vue'
|
||||
import naive from '../src/index'
|
||||
@ -9,7 +8,6 @@ import './font'
|
||||
import { routes } from './routes/routes'
|
||||
import createDemoRouter from './routes/router'
|
||||
|
||||
// debugRouteMixin(routes, childRoutes)
|
||||
naive.setHljs(hljs)
|
||||
|
||||
const app = createApp(DemoRouterView)
|
||||
|
@ -1,7 +1,7 @@
|
||||
import ComponentDemo from './utils/ComponentDemo.vue'
|
||||
import ComponentDemos from './utils/ComponentDemos.vue'
|
||||
import ComponentDemos from './utils/ComponentDemos.js'
|
||||
import ComponentDocumentation from './utils/ComponentDocumentation.vue'
|
||||
import DocumentationWrapper from './utils/DocumentationWrapper.vue'
|
||||
import DocumentationWrapper from './utils/DocumentationWrapper.js'
|
||||
import EditOnGithubButton from './utils/EditOnGithubButton.vue'
|
||||
import EditOnGithubHeader from './utils/EditOnGithubHeader.vue'
|
||||
import './styles/demo.css'
|
||||
|
@ -1,4 +1,3 @@
|
||||
<script>
|
||||
import { h } from 'vue'
|
||||
import NCol from '../../src/grid/src/Col.vue'
|
||||
import NRow from '../../src/grid/src/Row.vue'
|
||||
@ -43,4 +42,3 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
@ -1,4 +1,3 @@
|
||||
<script>
|
||||
import { i18n } from '../util-composables'
|
||||
|
||||
export default {
|
||||
@ -16,4 +15,3 @@ export default {
|
||||
} else return defaultSlot[0] || null
|
||||
}
|
||||
}
|
||||
</script>
|
@ -118,7 +118,7 @@
|
||||
"vite": "^1.0.0-rc.6",
|
||||
"vue-jest": "^4.0.0-rc.0",
|
||||
"vue-loader": "^16.0.0-beta.8",
|
||||
"vue-router": "^4.0.0-beta.13",
|
||||
"vue-router": "^4.0.0-rc.1",
|
||||
"webpack": "^4.44.2",
|
||||
"webpack-bundle-analyzer": "^3.9.0",
|
||||
"webpack-cli": "^3.3.10",
|
||||
|
@ -1,4 +1,4 @@
|
||||
import NewNimbusServiceLayout from './src/main.vue'
|
||||
import NewNimbusServiceLayout from './src/ServiceLayout.js'
|
||||
|
||||
NewNimbusServiceLayout.install = function (app) {
|
||||
app.component(NewNimbusServiceLayout.name, NewNimbusServiceLayout)
|
||||
|
@ -1,9 +1,8 @@
|
||||
|
||||
<script>
|
||||
import Scrollbar from '../../../scrollbar'
|
||||
import withapp from '../../../_mixins/withapp'
|
||||
import themeable from '../../../_mixins/themeable'
|
||||
import SiderMenu from './SiderMenu.vue'
|
||||
import SiderMenu from './SiderMenu.js'
|
||||
import NLayout from '../../../layout/src/Layout.vue'
|
||||
import NLayoutSider from '../../../layout/src/LayoutSider.vue'
|
||||
import { h } from 'vue'
|
||||
@ -238,4 +237,3 @@ export default {
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
@ -1,4 +1,3 @@
|
||||
<script>
|
||||
import { h, resolveComponent } from 'vue'
|
||||
|
||||
export default {
|
||||
@ -61,4 +60,3 @@ export default {
|
||||
)
|
||||
}
|
||||
}
|
||||
</script>
|
@ -1,4 +1,4 @@
|
||||
import IconTransition from './src/main.vue'
|
||||
import IconTransition from './src/IconSwitchTransition.js'
|
||||
|
||||
IconTransition.install = function (app) {
|
||||
app.component(IconTransition.name, IconTransition)
|
||||
|
@ -1,8 +1,7 @@
|
||||
<script>
|
||||
import { h, nextTick, Transition } from 'vue'
|
||||
|
||||
export default {
|
||||
name: 'NBaseIconTransition',
|
||||
name: 'NBaseIconSwitchTransition',
|
||||
data () {
|
||||
return {
|
||||
appear: false
|
||||
@ -20,4 +19,3 @@ export default {
|
||||
}, this.$slots)
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user