Skip to content

Commit

Permalink
chore: revert examples change
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 31, 2021
1 parent 1c9a255 commit 64f175d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 86 deletions.
1 change: 0 additions & 1 deletion examples/vue-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"dependencies": {
"@vue/composition-api": "^1.1.3",
"core-js": "^3.16.3",
"veui": "^2.0.6",
"vue": "^2.6.14"
},
"devDependencies": {
Expand Down
36 changes: 11 additions & 25 deletions examples/vue-cli/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,31 +1,17 @@
<template>
<div id="app">
<veui-input-group>
<veui-input />
<veui-button>OK</veui-button>
</veui-input-group>

<veui-select>
<veui-option value="1">
Option 1
</veui-option>
<veui-option value="2">
Option 2
</veui-option>
</veui-select>

<veui-date-picker />
<div class="block">
<ComponentA msg="a" />
<component-b msg="b" />
<ComponentC msg="c" />
<ComponentD />
</div>
</template>

<script>
export default {
name: 'App',
}
</script>

<style>
#app {
margin-top: 60px;
<style scoped>
.block {
padding: 0px 20px 10px 20px;
margin: 20px 20px;
border: 1px solid #888;
border-radius: 5px;
}
</style>
10 changes: 0 additions & 10 deletions examples/vue-cli/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const Components = require('unplugin-vue-components/webpack')
* @type {import('@vue/cli-service').ProjectOptions}
*/
module.exports = {
transpileDependencies: ['veui'],
configureWebpack: {
plugins: [
ScriptSetup({
Expand All @@ -24,15 +23,6 @@ module.exports = {
IconsResolver({
componentPrefix: '',
}),
(name) => {
console.log(name)
if (name.startsWith('Veui')) {
return {
importName: name.slice(4),
path: 'veui',
}
}
},
],
transformer: 'vue2',
}),
Expand Down
52 changes: 2 additions & 50 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 64f175d

Please sign in to comment.