Skip to content

Commit c88bcb0

Browse files
Using component-fixture sandbox
1 parent a1b1609 commit c88bcb0

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

generator/componentFixtureHelper.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
1-
const templateUpdater = (m) => `<component-fixture>
1+
const templateUpdater = (m) => `<sandbox>
22
33
${m}
44
5-
<Editor slot="control" slot-scope="scope" v-bind="scope"/>
6-
7-
</component-fixture>`;
5+
</sandbox>`;
86

97
const script = '<script>';
108
const scriptUpdater = `<script>
11-
import { ComponentFixture, Editor } from 'component-fixture'
9+
import { Sandbox } from 'component-fixture'
1210
import "component-fixture/dist/ComponentFixture.css";`;
1311

1412
const exportComponents = ' components: {';
1513
const exportUpdater = ` components: {
16-
ComponentFixture,
17-
Editor,`;
14+
Sandbox,`;
1815

1916
function updateExample(content, componentName) {
2017
const componentTemplateRegex = new RegExp(`<${componentName} (.)*\/>`, 'g');

generator/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ module.exports = (api, context) => {
8686
if (useComponentFixture) {
8787
api.extendPackage({
8888
devDependencies: {
89-
'component-fixture': "^1.0.3"
89+
'component-fixture': "^1.0.7"
9090
}
9191
})
9292
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-cli-plugin-component",
3-
"version": "1.11.2",
3+
"version": "1.12.0",
44
"description": "vue-cli 3 plugin to develop component",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)