File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 33 :style =" {
44 border: '3px solid tomato',
55 }"
6- v-if =" prism && supported"
76 :class =" ['notion-code', langClass]"
8- ><PrismComponent :language =" lang" >{{ properties.title[0][0] }}</PrismComponent ></pre >
9- <pre
10- v-else
11- :class =" ['notion-code', langClass]"
12- ><code :class =" langClass" >{{ properties.title[0][0] }}</code ></pre >
7+ >
8+ <PrismComponent v-if =" prism && supported" :language =" lang" >{{ properties.title[0][0] }}</PrismComponent >
9+ <code v-else :class =" langClass" >{{ properties.title[0][0] }}</code >
10+ </pre >
1311</template >
1412
1513<script >
1614import Prism from " prismjs" ;
1715import PrismComponent from " vue-prism-component" ;
16+
1817import { Blockable , blockComputed , blockProps } from " vue-notion" ;
1918
2019export default {
Original file line number Diff line number Diff line change 1515 ],
1616 "scripts" : {
1717 "serve" : " vue-cli-service serve dev/serve.js" ,
18- "example" : " nuxt example" ,
19- "example:pack" : " npm pack && cd example && npm install && npm install ../*.tgz && npm run build && npm run generate" ,
18+ "example" : " npm run example:pack && cd example && npm run build && npm start" ,
19+ "example:pack" : " npm run build && npm pack && cd example && npm install && npm install ../*.tgz" ,
20+ "example:generate" : " npm run example:pack && cd example && npm run build && npm run generate" ,
2021 "build" : " cross-env NODE_ENV=production rollup --config build/rollup.config.js" ,
2122 "build:ssr" : " cross-env NODE_ENV=production rollup --config build/rollup.config.js --format cjs" ,
2223 "build:es" : " cross-env NODE_ENV=production rollup --config build/rollup.config.js --format es" ,
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ if ("false" === process.env.ES_BUILD) {
2929 GlobalVue . use ( plugin ) ;
3030 }
3131}
32+ // Default export is library as a whole, registered via Vue.use()
33+ export default plugin ;
3234
3335// To allow individual component use, export components
3436// each can be registered via Vue.component()
@@ -39,7 +41,4 @@ export * from "@/lib/api";
3941export * from "@/lib/blockable" ;
4042export * from "@/lib/utils" ;
4143
42- // Default export is library as a whole, registered via Vue.use()
43- export default plugin ;
44-
4544// todo: remove .esm from default packaging for cleaner imports
You can’t perform that action at this time.
0 commit comments