Skip to content

Commit

Permalink
Merge pull request #836 from xyxiao001/fix_xxy_build_type
Browse files Browse the repository at this point in the history
fix: 修复编译问题
  • Loading branch information
xyxiao001 authored Jul 12, 2024
2 parents 3abbdeb + 7401bcd commit 5995874
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 29 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 更新日志
## vue3.x组件更新日志
### v1.1.4
- 修复ts编译问题


### v1.1.3
- 修复长图缩放问题
- 修复full场景 fillColor不生效问题
Expand Down
2 changes: 1 addition & 1 deletion next/dist/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions next/dist/vue-cropper.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ const $ = (t, e) => {
i.restore();
} else {
let p = o * this.scale, d = h * this.scale;
switch (i.save(), this.fillColor && (i.fillStyle = this.fillColor, i.fillRect(0, 0, e.width, e.height)), r) {
switch (i.save(), r) {
case 0:
f(p, d), i.drawImage(s, 0, 0, p, d);
break;
Expand Down Expand Up @@ -1085,10 +1085,10 @@ function U(t, e, i, s, r, o) {
])
], 544);
}
const M = /* @__PURE__ */ $(z, [["render", U], ["__scopeId", "data-v-c21c565e"]]), F = function(t) {
const M = /* @__PURE__ */ $(z, [["render", U], ["__scopeId", "data-v-a742df44"]]), F = function(t) {
t.component("VueCropper", M);
}, V = {
version: "1.1.3",
version: "1.1.4",
install: F,
VueCropper: M
};
Expand Down
6 changes: 3 additions & 3 deletions next/dist/vue-cropper.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion next/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const install = function(app: App) {
}

export const globalCropper: vueCropperGlobal = {
version: '1.1.3',
version: '1.1.4',
install,
VueCropper,
}
Expand Down
13 changes: 6 additions & 7 deletions next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-cropper",
"version": "1.1.3",
"version": "1.1.4",
"description": "A simple Vue picture clipping plugin",
"keywords": [
"vue",
Expand All @@ -24,18 +24,17 @@
"homepage": "https://github.com/xyxiao001/vue-cropper#readme",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"serve": "vite preview",
"check": "vue-tsc --noEmit"
"build": "vue-tsc && vite build",
"serve": "vite preview"
},
"devDependencies": {
"@types/babel__core": "^7.1.19",
"@types/node": "^18.15.0",
"@vitejs/plugin-vue": "^4.0.0",
"typescript": "^4.9.3",
"vite": "^4.1.0",
"vue": "^3.3.4",
"vue-cropper": "^1.0.3",
"vue-tsc": "^1.0.24",
"vue": "^3.3.4"
"typescript": "^5.5.3",
"vue-tsc": "^2.0.26"
}
}
27 changes: 27 additions & 0 deletions next/tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"target": "ES2020",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"moduleDetection": "force",
"noEmit": true,
"jsx": "preserve",

/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "lib/**/*.vue", "lib/**/*.ts"]
}
23 changes: 9 additions & 14 deletions next/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"strict": true,
"allowJs": true,
"jsx": "preserve",
"sourceMap": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"importsNotUsedAsValues": "error",
"lib": ["esnext", "dom"]
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue", "lib/*", "shims-vue.d.ts"]
"files": [],
"references": [
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.node.json"
}
]
}
13 changes: 13 additions & 0 deletions next/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"skipLibCheck": true,
"module": "ESNext",
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true,
"strict": true,
"noEmit": true
},
"include": ["vite.config.ts"]
}

0 comments on commit 5995874

Please sign in to comment.