Skip to content

Commit 64f175d

Browse files
committed
chore: revert examples change
1 parent 1c9a255 commit 64f175d

File tree

4 files changed

+13
-86
lines changed

4 files changed

+13
-86
lines changed

examples/vue-cli/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"dependencies": {
1010
"@vue/composition-api": "^1.1.3",
1111
"core-js": "^3.16.3",
12-
"veui": "^2.0.6",
1312
"vue": "^2.6.14"
1413
},
1514
"devDependencies": {

examples/vue-cli/src/App.vue

+11-25
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,17 @@
11
<template>
2-
<div id="app">
3-
<veui-input-group>
4-
<veui-input />
5-
<veui-button>OK</veui-button>
6-
</veui-input-group>
7-
8-
<veui-select>
9-
<veui-option value="1">
10-
Option 1
11-
</veui-option>
12-
<veui-option value="2">
13-
Option 2
14-
</veui-option>
15-
</veui-select>
16-
17-
<veui-date-picker />
2+
<div class="block">
3+
<ComponentA msg="a" />
4+
<component-b msg="b" />
5+
<ComponentC msg="c" />
6+
<ComponentD />
187
</div>
198
</template>
209

21-
<script>
22-
export default {
23-
name: 'App',
24-
}
25-
</script>
26-
27-
<style>
28-
#app {
29-
margin-top: 60px;
10+
<style scoped>
11+
.block {
12+
padding: 0px 20px 10px 20px;
13+
margin: 20px 20px;
14+
border: 1px solid #888;
15+
border-radius: 5px;
3016
}
3117
</style>

examples/vue-cli/vue.config.js

-10
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const Components = require('unplugin-vue-components/webpack')
99
* @type {import('@vue/cli-service').ProjectOptions}
1010
*/
1111
module.exports = {
12-
transpileDependencies: ['veui'],
1312
configureWebpack: {
1413
plugins: [
1514
ScriptSetup({
@@ -24,15 +23,6 @@ module.exports = {
2423
IconsResolver({
2524
componentPrefix: '',
2625
}),
27-
(name) => {
28-
console.log(name)
29-
if (name.startsWith('Veui')) {
30-
return {
31-
importName: name.slice(4),
32-
path: 'veui',
33-
}
34-
}
35-
},
3626
],
3727
transformer: 'vue2',
3828
}),

pnpm-lock.yaml

+2-50
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)