mirror of
https://github.com/501351981/vue-office.git
synced 2025-07-15 07:32:19 +08:00
使用lerna改造单独发包
This commit is contained in:
parent
0c0fcfe1d8
commit
aaff79c5cd
1
.gitignore
vendored
1
.gitignore
vendored
@ -21,3 +21,4 @@ pnpm-debug.log*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
packages/**/lib
|
||||
|
@ -3,7 +3,10 @@ const path = require('path');
|
||||
const libPath = path.resolve(__dirname, '../../lib');
|
||||
const docxPath = path.resolve(libPath, 'docx');
|
||||
const pdfPath = path.resolve(libPath, 'pdf');
|
||||
const excelPath = path.resolve(libPath, 'excel');
|
||||
|
||||
fs.copyFileSync(path.resolve(libPath, 'vue-office.umd.min.js'), path.resolve(libPath, 'index.js'));
|
||||
fs.copyFileSync(path.resolve(docxPath, 'vue-office-docx.umd.min.js'), path.resolve(docxPath, 'index.js'));
|
||||
fs.copyFileSync(path.resolve(pdfPath, 'vue-office-pdf.umd.js'), path.resolve(pdfPath, 'index.js'));
|
||||
fs.copyFileSync(path.resolve(pdfPath, 'vue-office-pdf.umd.js'), path.resolve(pdfPath, 'index.js'));
|
||||
fs.copyFileSync(path.resolve(excelPath, 'vue-office-excel.umd.min.js'), path.resolve(excelPath, 'index.js'));
|
||||
fs.copyFileSync(path.resolve(excelPath, 'vue-office-excel.css'), path.resolve(excelPath, 'index.css'));
|
@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<pdf-demo />
|
||||
<excel-demo />
|
||||
<!-- <pdf-demo />-->
|
||||
<!-- <docx-demo />-->
|
||||
</div>
|
||||
</template>
|
||||
@ -9,11 +10,13 @@
|
||||
/* eslint-disable */
|
||||
import DocxDemo from "./components/DocxDemo";
|
||||
import PdfDemo from "./components/PdfDemo";
|
||||
import ExcelDemo from "./components/ExcelDemo";
|
||||
export default {
|
||||
name: 'App',
|
||||
components: {
|
||||
DocxDemo,
|
||||
PdfDemo
|
||||
PdfDemo,
|
||||
ExcelDemo
|
||||
},
|
||||
data(){
|
||||
return {
|
||||
|
19
examples/components/ExcelDemo.vue
Normal file
19
examples/components/ExcelDemo.vue
Normal file
@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<vue-office-excel :src="src"/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
/* eslint-disable */
|
||||
export default {
|
||||
name: "ExcelDemo",
|
||||
data(){
|
||||
return{
|
||||
src: 'http://static.shanhuxueyuan.com/demo/excel.xlsx'
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
5
lerna.json
Normal file
5
lerna.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
|
||||
"useWorkspaces": true,
|
||||
"version": "0.0.0"
|
||||
}
|
@ -1 +0,0 @@
|
||||
<!doctype html><meta charset="utf-8"><title>vue-office demo</title><script src="./vue-office.umd.js"></script><link rel="stylesheet" href="./vue-office.css"><script>console.log(vue-office)</script>
|
@ -1 +0,0 @@
|
||||
<!doctype html><meta charset="utf-8"><title>vue-office-docx demo</title><script src="./vue-office-docx.umd.js"></script><link rel="stylesheet" href="./vue-office-docx.css"><script>console.log(vue-office-docx)</script>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
14
lib/docx/vue-office-docx.umd.min.js
vendored
14
lib/docx/vue-office-docx.umd.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
14
lib/index.js
14
lib/index.js
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
<!doctype html><meta charset="utf-8"><title>vue-office-pdf demo</title><script src="./vue-office-pdf.umd.js"></script><link rel="stylesheet" href="./vue-office-pdf.css"><script>console.log(vue-office-pdf)</script>
|
334
lib/pdf/index.js
334
lib/pdf/index.js
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
lib/pdf/vue-office-pdf.umd.min.js
vendored
2
lib/pdf/vue-office-pdf.umd.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,3 +0,0 @@
|
||||
àRCopyright 1990-2009 Adobe Systems Incorporated.
|
||||
All rights reserved.
|
||||
See ./LICENSEáCNS2-H
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,3 +0,0 @@
|
||||
àRCopyright 1990-2009 Adobe Systems Incorporated.
|
||||
All rights reserved.
|
||||
See ./LICENSEá ETen-B5-H` ^
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,4 +0,0 @@
|
||||
àRCopyright 1990-2009 Adobe Systems Incorporated.
|
||||
All rights reserved.
|
||||
See ./LICENSE!!<21>º]aX!!]`<60>21<32>> <09>p<0B>z<EFBFBD>$]‚<06>"R‚d<E2809A>-Uƒ7<C692>*„
4„%<25>+ „Z „{<7B>/…%…<<3C>9K…b<E280A6>1]†.<2E>"‡‰`]‡,<2C>"]ˆ
|
||||
<EFBFBD>"]ˆh<CB86>"]‰F<E280B0>"]Š$<24>"]‹<02>"]‹`<60>"]Œ><3E>"]<5D><1C>"]<5D>z<EFBFBD>"]ŽX<C5BD>"]<5D>6<EFBFBD>"]<5D><14>"]<5D>r<EFBFBD>"]‘P<E28098>"]’.<2E>"]“<0C>"]“j<E2809C>"]”H<E2809D>"]•&<26>"]–<04>"]–b<E28093>"]—@<40>"]˜<1E>"]˜|<7C>"]™Z<E284A2>"]š8<C5A1>"]›<16>"]›t<E280BA>"]œR<C593>"]<5D>0<EFBFBD>"]ž<0E>"]žl<C5BE>"]ŸJ<C5B8>"] (<28>"]¡<06>"]¡d<C2A1>"]¢B<C2A2>"]£ <20>"X£~<7E>']¤W<C2A4>"]¥5<C2A5>"]¦<13>"]¦q<C2A6>"]§O<C2A7>"]¨-<2D>"]©<0B>"]©i<C2A9>"]ªG<C2AA>"]«%<25>"]¬<03>"]¬a<C2AC>"]?<3F>"]®<1D>"]®{<7B>"]¯Y<C2AF>"]°7<C2B0>"]±<15>"]±s<C2B1>"]²Q<C2B2>"]³/<2F>"]´
<0A>"]´k<C2B4>"]µI<C2B5>"]¶'<27>"]·<05>"]·c<C2B7>"]¸A<C2B8>"]¹<1F>"]¹}<7D>"]º[<5B>"]»9
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user