@opentinyvue/vue-crop 3.21.0 → 3.22.1

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/lib/index.js CHANGED
@@ -238,7 +238,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
238
238
  /* NEED_HYDRATION, NEED_PATCH */
239
239
  ), createElementVNode("div", _hoisted_4, [createElementVNode("img", {
240
240
  src: _ctx.state.src,
241
- ref: "cropImage",
241
+ ref: "cropImageRef",
242
242
  id: "crops",
243
243
  alt: _ctx.alt
244
244
  }, null, 8, _hoisted_5)]), createElementVNode("div", _hoisted_6, [createElementVNode("div", _hoisted_7, [(openBlock(true), createElementBlock(
@@ -264,7 +264,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
264
264
  ), [[vShow, _ctx.state.cropvisible]])]);
265
265
  }
266
266
  var Crop = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
267
- var version = "3.21.0";
267
+ var version = "3.undefined";
268
268
  Crop.install = function(Vue) {
269
269
  Vue.component(Crop.name, Crop);
270
270
  };
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-crop",
3
- "version": "3.21.0",
3
+ "type": "module",
4
+ "version": "3.22.1",
4
5
  "description": "",
6
+ "license": "MIT",
7
+ "sideEffects": false,
5
8
  "main": "./lib/index.js",
6
9
  "module": "./lib/index.js",
7
- "sideEffects": false,
8
- "type": "module",
9
10
  "dependencies": {
10
- "@opentinyvue/vue-common": "~3.21.0",
11
- "@opentinyvue/vue-renderless": "~3.21.0",
12
- "@opentinyvue/vue-icon": "~3.21.0",
13
- "cropperjs": "1.5.7",
14
- "@opentinyvue/vue-theme": "~3.21.0"
11
+ "@opentinyvue/vue-common": "~3.22.0",
12
+ "@opentinyvue/vue-icon": "~3.22.0",
13
+ "@opentinyvue/vue-renderless": "~3.22.0",
14
+ "@opentinyvue/vue-theme": "~3.22.0",
15
+ "cropperjs": "~1.6.2"
15
16
  },
16
- "license": "MIT",
17
17
  "types": "index.d.ts",
18
18
  "scripts": {
19
19
  "build": "pnpm -w build:ui $npm_package_name",
package/src/pc.vue.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /// <reference types="node_modules/.pnpm/cropperjs@1.5.12/node_modules/cropperjs/types" />
1
+ /// <reference types="node_modules/.pnpm/cropperjs@1.6.2/node_modules/cropperjs/types" />
2
2
  import Cropper from 'cropperjs';
3
3
  declare const _default: import("@vue/runtime-core").DefineComponent<{
4
4
  /** 设置图片上的alt属性 */
@@ -135,7 +135,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
135
135
  dp: (props: any) => void;
136
136
  gcls: (key: any) => any;
137
137
  m: (...cssClasses: any[]) => string;
138
- }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("update:visible" | "ready" | "update:cropvisible" | "cropdata" | "cropstart" | "cropmove" | "cropend" | "crop")[], "update:visible" | "ready" | "update:cropvisible" | "cropdata" | "cropstart" | "cropmove" | "cropend" | "crop", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
138
+ }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("ready" | "update:visible" | "update:cropvisible" | "cropdata" | "cropstart" | "cropmove" | "cropend" | "crop")[], "ready" | "update:visible" | "update:cropvisible" | "cropdata" | "cropstart" | "cropmove" | "cropend" | "crop", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
139
139
  /** 设置图片上的alt属性 */
140
140
  alt: {
141
141
  type: StringConstructor;
@@ -271,11 +271,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
271
271
  onCropmove?: ((...args: any[]) => any) | undefined;
272
272
  onCropend?: ((...args: any[]) => any) | undefined;
273
273
  }, {
274
+ src: string;
274
275
  center: boolean;
275
276
  plugin: Function | Record<string, any>;
276
277
  background: boolean;
277
278
  aspectRatio: number;
278
- src: string;
279
279
  modal: boolean;
280
280
  alt: string;
281
281
  autoCrop: boolean;