@toolspack/ttd-pdfjs 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +6 -0
- package/.eslintrc.js +52 -0
- package/README.md +20 -0
- package/lib/demo.html +8 -0
- package/lib/ttd-pdfjs.common.js +12281 -0
- package/lib/ttd-pdfjs.umd.js +12291 -0
- package/lib/ttd-pdfjs.umd.min.js +63 -0
- package/package.json +37 -0
- package/postcss.config.js +1 -0
- package/src/App.vue +56 -0
- package/src/main.js +8 -0
- package/src/packages/index.js +5 -0
- package/src/packages/pdfjs/PdfView216.vue +331 -0
- package/src/packages/utils/index.js +16 -0
- package/src/styles/base.scss +3 -0
- package/src/styles/common.less +729 -0
- package/src/styles/common.scss +22 -0
- package/src/styles/components/atomic.less +430 -0
- package/src/styles/components/button.scss +62 -0
- package/src/styles/components/el-pagination.scss +21 -0
- package/src/styles/components/file-group.scss +4 -0
- package/src/styles/components/input.scss +19 -0
- package/src/styles/components/message.scss +54 -0
- package/src/styles/components/reset.scss +8 -0
- package/src/styles/components/table.scss +35 -0
- package/src/styles/element-variables.scss +220 -0
- package/src/styles/input.less +59 -0
package/.eslintignore
ADDED
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: {
|
|
4
|
+
node: true,
|
|
5
|
+
},
|
|
6
|
+
extends: [
|
|
7
|
+
'plugin:vue/essential',
|
|
8
|
+
'@vue/airbnb',
|
|
9
|
+
],
|
|
10
|
+
rules: {
|
|
11
|
+
'template-curly-spacing': 'off',
|
|
12
|
+
semi: 0,
|
|
13
|
+
'no-unused-vars': 0,
|
|
14
|
+
'consistent-return': 0,
|
|
15
|
+
'max-len': 0,
|
|
16
|
+
'func-names': 0,
|
|
17
|
+
'no-console': 'off',
|
|
18
|
+
'no-control-regex': 'off',
|
|
19
|
+
'comma-dangle': ['error', 'always-multiline'],
|
|
20
|
+
'no-mixed-spaces-and-tabs': 'off',
|
|
21
|
+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
22
|
+
'no-alert': 0,
|
|
23
|
+
'no-underscore-dangle': 0,
|
|
24
|
+
'no-await-in-loop': 0,
|
|
25
|
+
'no-restricted-syntax': 0,
|
|
26
|
+
'prefer-destructuring': 0,
|
|
27
|
+
'import/no-cycle': 0,
|
|
28
|
+
'import/prefer-default-export': 0,
|
|
29
|
+
camelcase: 'off',
|
|
30
|
+
'guard-for-in': 0,
|
|
31
|
+
'no-param-reassign': 0,
|
|
32
|
+
'no-plusplus': 0,
|
|
33
|
+
'no-unused-expressions': 0,
|
|
34
|
+
"linebreak-styleL": 0,
|
|
35
|
+
'react/jsx-filename-extension': [0, { extensions: ['.js', '.jsx'] }],
|
|
36
|
+
},
|
|
37
|
+
settings: {
|
|
38
|
+
'import/resolver': {
|
|
39
|
+
node: {
|
|
40
|
+
paths: ['src'],
|
|
41
|
+
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
globals: {
|
|
46
|
+
PDFCtrl: true,
|
|
47
|
+
require: true,
|
|
48
|
+
},
|
|
49
|
+
parserOptions: {
|
|
50
|
+
parser: 'babel-eslint',
|
|
51
|
+
},
|
|
52
|
+
}
|
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ttd-pdfjs
|
|
2
|
+
|
|
3
|
+
--target: 构建目标,默认为应用模式。这里修改为 lib 启用库模式。
|
|
4
|
+
|
|
5
|
+
--dest : 输出目录,默认 dist。这里我们改成 lib
|
|
6
|
+
|
|
7
|
+
[entry]: 最后一个参数为入口文件,默认为 src/App.vue。这里我们指定编译 packages/ 组件库目录。
|
|
8
|
+
|
|
9
|
+
# 调试方法
|
|
10
|
+
修改 package.json的main
|
|
11
|
+
"main": "lib/ttd-common.umd.min.js",
|
|
12
|
+
"main": "src/packages/index.js",
|
|
13
|
+
执行 npm link ,
|
|
14
|
+
然后在开发项目就可以用 npm link @toolspack/ttd-common(项目名或文件夹名称) 来使用 本组件
|
|
15
|
+
|
|
16
|
+
# 发布项目
|
|
17
|
+
(不能和上次版本一样) npm run lib (打包), 打包完成后,执行npm publish
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
0.0.0: pdfjs-dist2.16.105 单独打包
|