Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
chore: updated play test example
Browse files Browse the repository at this point in the history
  • Loading branch information
baiwusanyu-c committed Aug 9, 2023
1 parent af897b2 commit 1528cf1
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 12 deletions.
1 change: 0 additions & 1 deletion build/publish.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { series } from 'gulp'
import { runTask } from './utils'
export default series(
Expand Down
1 change: 0 additions & 1 deletion play/ce-app/uno.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { defineConfig, presetUno } from 'unocss'
export default defineConfig({
content: ['./src/**/*.{vue,js,ts,jsx,tsx}'],
Expand Down
1 change: 1 addition & 0 deletions play/sub-style/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<body>
<div id="app"></div>
<vue-app></vue-app>
<vue-app></vue-app>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
1 change: 0 additions & 1 deletion play/sub-style/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<template>
<bwsy-ce-foo />
</template>
1 change: 0 additions & 1 deletion play/sub-style/src/deep/GreatGrandChild.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<template>
<p class="my-grey">
This should be grey
Expand Down
1 change: 0 additions & 1 deletion play/sub-style/src/deep/adwd.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<template>
<p class="my-green">
This should be green
Expand Down
13 changes: 8 additions & 5 deletions play/sub-style/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
defineCustomElement,
} from '../patches/vue.esm-browser.js'; */

import {
defineCustomElement,
} from 'vue'
import { defineCustomElement } from 'vue'

/* import App from './App.vue';
import Foo from './bwsy-ce-foo.ce.vue';
Expand Down Expand Up @@ -35,12 +33,17 @@ app.config.compilerOptions.isCustomElement = (tag) => {
return tag === 'vue-app';
}; */

import App from './scoped/my-component.vue'
/* import App from './scoped/my-component.vue'
// const app = createApp(App);
const ceApp = defineCustomElement(App)
customElements.define('vue-app', ceApp)
customElements.define('vue-app', ceApp) */

/*
app.config.compilerOptions.isCustomElement = (tag) => {
return tag === 'vue-app';
}; */

import App from './nested-same-component/same.vue'
const ceApp = defineCustomElement(App)
customElements.define('vue-app', ceApp)
17 changes: 17 additions & 0 deletions play/sub-style/src/nested-same-component/foo.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<script setup>
</script>

<template>
<div>
<p class="foo">
should be red -- foo
</p>
</div>
</template>

<style scoped>
.foo {
color: red;
}
</style>
16 changes: 16 additions & 0 deletions play/sub-style/src/nested-same-component/same.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<script setup lang="ts">
import Foo from './foo.vue'
</script>

<template>
<div class="same">
same
</div>
<Foo />
</template>

<style scoped>
.same{
color: red
}
</style>
1 change: 0 additions & 1 deletion play/sub-style/src/scoped/InNestedCE.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<template>
<p
class="my-red"
Expand Down
1 change: 0 additions & 1 deletion vertify-commit.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { readFileSync } from 'fs'
import path from 'path'
import color from 'ansi-colors'
Expand Down

0 comments on commit 1528cf1

Please sign in to comment.