vue-cropper
10 | 11 |install
13 |example1 基本例子 无限制
19 |截图框大小
57 |中等大小
67 |迷你大小
76 |固定为100宽度
85 |固定为100高度
95 |输出图片格式
198 |├── .npmrc
├── next
├── src
│ ├── vite-env.d.ts
│ ├── assets
│ │ └── logo.png
│ ├── main.ts
│ ├── code.vue
│ └── App.vue
├── .gitignore
├── dist
│ ├── favicon.ico
│ ├── index.css
│ ├── vue-cropper.umd.js
│ └── vue-cropper.es.js
├── public
│ └── favicon.ico
├── shims-vue.d.ts
├── tsconfig.json
├── lib
│ ├── typings
│ │ └── index.d.ts
│ ├── index.ts
│ └── exif-js-min.js
├── tsconfig.node.json
├── index.html
├── vite.config.ts
├── tsconfig.app.json
├── package.json
├── README.md
└── test
│ └── index.html
├── .gitignore
├── scripts
└── deploy.sh
├── src
├── index.js
└── exif-js-min.js
├── dist
└── index.js.map
├── LICENSE
├── webpack.config.js
├── package.json
├── CHANGELOG.md
├── README.md
├── english.md
└── docs
├── vue2.html
└── vue3.html
/.npmrc:
--------------------------------------------------------------------------------
1 | registry = https://registry.npmjs.org/
--------------------------------------------------------------------------------
/next/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
4 |
5 |
6 | 中等大小
217 |迷你大小
224 |中等大小
217 |迷你大小
224 |例子
163 || name | 77 |Features | 78 |Detail | 79 |value | 80 |
| img | 85 |Picture address | 86 |null | 87 |url address || base64 || blob | 88 |
| outputSize | 91 |Crop the quality of the generated image | 92 |1 | 93 |0.1 - 1 | 94 |
| outputType | 97 |Crop the format of the generated image | 98 |jpg (jpg need jpeg) | 99 |jpeg || png || webp | 100 |
| info | 103 |Crop box size information | 104 |true | 105 |true || false | 106 |
| canScale | 109 |Whether the image allows the wheel to zoom | 110 |true | 111 |true || false | 112 |
| autoCrop | 115 |Whether to generate a screenshot box by default | 116 |false | 117 |true || false | 118 |
| autoCropWidth | 121 |Default generation of screenshot frame width | 122 |parent's 80% | 123 |0~max | 124 |
| autoCropHeight | 127 |Default generation of screenshot frame Height | 128 |parent's 80% | 129 |0~max | 130 |
| fixed | 133 |Whether to open the screenshot frame width and height fixed ratio | 134 |true | 135 |true | false | 136 |
| fixedNumber | 139 |The aspect ratio of the screenshot box | 140 |[1 : 1] | 141 |[width : height] | 142 |
| full | 145 |Screenshot of whether to output the original map scale | 146 |false | 147 |true | false | 148 |
| fixedBox | 151 |Fixed screenshot frame size is not allowed to change | 152 |false | 153 |true | false | 154 |
| canMove | 157 |Whether the uploaded image can be moved | 158 |true | 159 |true | false | 160 |
| canMoveBox | 163 |Can the screenshot box be dragged? | 164 |true | 165 |true | false | 166 |
| original | 169 |Upload images are rendered in raw scale | 170 |false | 171 |true | false | 172 |
| centerBox | 175 |Is the screenshot box restricted to the image? | 176 |false | 177 |true | false | 178 |
| high | 181 |Is it proportional to the dpi output of the device? | 182 |true | 183 |true | false | 184 |
| infoTrue | 187 |True to show the true output image width and height false show the width of the screenshot frame | 188 |false | 189 |true | false | 190 |
| maxImgSize | 193 |Limit the maximum width and height of the image | 194 |2000 | 195 |0-max | 196 |
| enlarge | 199 |Picture output ratio multiplier based on screenshots | 200 |1 | 201 |0-max(Don't be too big.) | 202 |
| mode | 205 |img render mode | 206 |contain | 207 |contain , cover, 100px, 100% auto | 208 |
例子
163 |例子
164 |截图框大小
57 |中等大小
67 |迷你大小
76 |固定为100宽度
85 |固定为100高度
95 |输出图片格式
198 |