upload.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723
  1. <template>
  2. <view class="u-upload" v-if="!disabled">
  3. <view v-if="showUploadList" class="u-list-item u-preview-wrap" :class="{'customPreviewStyle':custom}"
  4. v-for="(item, index) in lists" :key="index" :style="{
  5. width: width + 'rpx',
  6. height: width + 'rpx'
  7. }">
  8. <view v-if="deletable" class="u-delete-icon" @tap.stop="deleteItem(index)" :style="{
  9. background: delBgColor
  10. }">
  11. <u-icon class="u-icon" :name="delIcon" size="20" :color="delColor"></u-icon>
  12. </view>
  13. <u-line-progress v-if="showProgress && item.progress > 0 && !item.error" :show-percent="false" height="16"
  14. class="u-progress" :percent="item.progress"></u-line-progress>
  15. <view @tap.stop="retry(index)" v-if="item.error" class="u-error-btn">点击重试</view>
  16. <image @tap.stop="doPreviewImage(item.url || item.path, index)" class="u-preview-image" v-if="!item.isImage"
  17. :src="item.url || item.path" :mode="imageMode"></image>
  18. </view>
  19. <slot name="file" :file="lists"></slot>
  20. <view style="display: inline-block;" :class="custom&&options.bgc==''?'customStyle':'customStyleBgc'"
  21. @tap="selectFile" v-if="maxCount > lists.length">
  22. <slot name="addBtn"></slot>
  23. <img v-if="custom&&options.bgc!=''" :src="options.bgc" alt="" class="imgstyle">
  24. <view class="u-list-item u-add-wrap" hover-class="u-add-wrap__hover" hover-stay-time="150" :style="{
  25. width: width + 'rpx',
  26. height: width + 'rpx'
  27. }">
  28. <u-icon v-if="custom" name="camera-fill" class="" size="100" color="#617E8B"></u-icon>
  29. <u-icon v-if="!custom" name="plus" class="u-add-btn" size="40"></u-icon>
  30. <view v-if="!custom" class="u-add-tips">{{ uploadText }}</view>
  31. <view v-if="custom" class="u-add-tips">{{ options.text }}</view>
  32. </view>
  33. </view>
  34. <!-- <view class="custom-style" v-if="custom"
  35. :style="{backgroundImage: 'url(' + options.bgc + ')', backgroundSize:'100% 100%'}">
  36. </view> -->
  37. </view>
  38. </template>
  39. <script>
  40. /**
  41. * upload 图片上传
  42. * @description 该组件用于上传图片场景
  43. * @tutorial https://www.uviewui.com/components/upload.html
  44. * @property {String} action 服务器上传地址
  45. * @property {String Number} max-count 最大选择图片的数量(默认99)
  46. * @property {Boolean} custom-btn 如果需要自定义选择图片的按钮,设置为true(默认false)
  47. * @property {Boolean} show-progress 是否显示进度条(默认true)
  48. * @property {Boolean} disabled 是否启用(显示/移仓)组件(默认false)
  49. * @property {String} image-mode 预览图片等显示模式,可选值为uni的image的mode属性值(默认aspectFill)
  50. * @property {String} del-icon 右上角删除图标名称,只能为uView内置图标
  51. * @property {String} del-bg-color 右上角关闭按钮的背景颜色
  52. * @property {String} del-color 右上角关闭按钮图标的颜色
  53. * @property {Object} header 上传携带的头信息,对象形式
  54. * @property {Object} form-data 上传额外携带的参数
  55. * @property {String} name 上传文件的字段名,供后端获取使用(默认file)
  56. * @property {Array<String>} size-type original 原图,compressed 压缩图,默认二者都有(默认['original', 'compressed'])
  57. * @property {Array<String>} source-type 选择图片的来源,album-从相册选图,camera-使用相机,默认二者都有(默认['album', 'camera'])
  58. * @property {Boolean} preview-full-image 是否可以通过uni.previewImage预览已选择的图片(默认true)
  59. * @property {Boolean} multiple 是否开启图片多选,部分安卓机型不支持(默认true)
  60. * @property {Boolean} deletable 是否显示删除图片的按钮(默认true)
  61. * @property {String Number} max-size 选择单个文件的最大大小,单位B(byte),默认不限制(默认Number.MAX_VALUE)
  62. * @property {Array<Object>} file-list 默认显示的图片列表,数组元素为对象,必须提供url属性
  63. * @property {Boolean} upload-text 选择图片按钮的提示文字(默认“选择图片”)
  64. * @property {Boolean} auto-upload 选择完图片是否自动上传,见上方说明(默认true)
  65. * @property {Boolean} show-tips 特殊情况下是否自动提示toast,见上方说明(默认true)
  66. * @property {Boolean} show-upload-list 是否显示组件内部的图片预览(默认true)
  67. * @event {Function} on-oversize 图片大小超出最大允许大小
  68. * @event {Function} on-preview 全屏预览图片时触发
  69. * @event {Function} on-remove 移除图片时触发
  70. * @event {Function} on-success 图片上传成功时触发
  71. * @event {Function} on-change 图片上传后,无论成功或者失败都会触发
  72. * @event {Function} on-error 图片上传失败时触发
  73. * @event {Function} on-progress 图片上传过程中的进度变化过程触发
  74. * @event {Function} on-uploaded 所有图片上传完毕触发
  75. * @event {Function} on-choose-complete 每次选择图片后触发,只是让外部可以得知每次选择后,内部的文件列表
  76. * @example <u-upload :action="action" :file-list="fileList" ></u-upload>
  77. */
  78. import uploadImage from '@/components/ossutil/uploadFile.js';
  79. export default {
  80. name: 'upload',
  81. props: {
  82. //是否显示组件自带的图片预览功能
  83. showUploadList: {
  84. type: Boolean,
  85. default: true
  86. },
  87. // 后端地址
  88. action: {
  89. type: String,
  90. default: ''
  91. },
  92. // 最大上传数量
  93. maxCount: {
  94. type: [String, Number],
  95. default: 52
  96. },
  97. // 是否显示进度条
  98. showProgress: {
  99. type: Boolean,
  100. default: true
  101. },
  102. // 是否启用
  103. disabled: {
  104. type: Boolean,
  105. default: false
  106. },
  107. // 预览上传的图片时的裁剪模式,和image组件mode属性一致
  108. imageMode: {
  109. type: String,
  110. default: 'aspectFill'
  111. },
  112. // 头部信息
  113. header: {
  114. type: Object,
  115. default () {
  116. return {};
  117. }
  118. },
  119. // 额外携带的参数
  120. formData: {
  121. type: Object,
  122. default () {
  123. return {};
  124. }
  125. },
  126. // 上传的文件字段名
  127. name: {
  128. type: String,
  129. default: 'file'
  130. },
  131. // 所选的图片的尺寸, 可选值为original compressed
  132. sizeType: {
  133. type: Array,
  134. default () {
  135. return ['original', 'compressed'];
  136. }
  137. },
  138. sourceType: {
  139. type: Array,
  140. default () {
  141. return ['album', 'camera'];
  142. }
  143. },
  144. // 是否在点击预览图后展示全屏图片预览
  145. previewFullImage: {
  146. type: Boolean,
  147. default: true
  148. },
  149. // 是否开启图片多选,部分安卓机型不支持
  150. multiple: {
  151. type: Boolean,
  152. default: true
  153. },
  154. // 是否展示删除按钮
  155. deletable: {
  156. type: Boolean,
  157. default: true
  158. },
  159. // 文件大小限制,单位为byte
  160. maxSize: {
  161. type: [String, Number],
  162. default: Number.MAX_VALUE
  163. },
  164. // 显示已上传的文件列表
  165. fileList: {
  166. type: Array,
  167. default () {
  168. return [];
  169. }
  170. },
  171. // 上传区域的提示文字
  172. uploadText: {
  173. type: String,
  174. default: '选择图片'
  175. },
  176. // 是否自动上传
  177. autoUpload: {
  178. type: Boolean,
  179. default: true
  180. },
  181. // 是否显示toast消息提示
  182. showTips: {
  183. type: Boolean,
  184. default: true
  185. },
  186. // 是否通过slot自定义传入选择图标的按钮
  187. customBtn: {
  188. type: Boolean,
  189. default: false
  190. },
  191. // 内部预览图片区域和选择图片按钮的区域宽度,高等于宽
  192. width: {
  193. type: [String, Number],
  194. default: 200
  195. },
  196. // 右上角关闭按钮的背景颜色
  197. delBgColor: {
  198. type: String,
  199. default: '#fa3534'
  200. },
  201. // 右上角关闭按钮的叉号图标的颜色
  202. delColor: {
  203. type: String,
  204. default: '#ffffff'
  205. },
  206. // 右上角删除图标名称,只能为uView内置图标
  207. delIcon: {
  208. type: String,
  209. default: 'close'
  210. },
  211. // 如果上传后的返回值为json字符串,是否自动转json
  212. toJson: {
  213. type: Boolean,
  214. default: true
  215. },
  216. // 上传前的钩子,每个文件上传前都会执行
  217. beforeUpload: {
  218. type: Function,
  219. default: null
  220. },
  221. options: {
  222. type: Object,
  223. default: null
  224. },
  225. custom: {
  226. type: Boolean,
  227. default: false
  228. }
  229. },
  230. mounted() {},
  231. data() {
  232. return {
  233. lists: [],
  234. isInCount: true,
  235. uploading: false,
  236. isSelectFile: false
  237. };
  238. },
  239. watch: {
  240. fileList: {
  241. immediate: true,
  242. handler(val) {
  243. val.map(value => {
  244. this.lists.push({
  245. url: value.url,
  246. error: false,
  247. progress: 100
  248. });
  249. });
  250. }
  251. }
  252. },
  253. methods: {
  254. // 清除列表
  255. clear() {
  256. this.lists = [];
  257. // 如果是清空形式的话,发出"on-list-change"事件
  258. this.$emit('on-list-change', this.lists);
  259. },
  260. // 重新上传队列中上传失败的所有文件
  261. reUpload() {
  262. this.uploadFile();
  263. },
  264. // 选择图片
  265. selectFile() {
  266. if (this.disabled) return;
  267. const {
  268. name = '', maxCount, multiple, maxSize, sizeType, lists, camera, compressed, maxDuration, sourceType
  269. } = this;
  270. let chooseFile = null;
  271. const newMaxCount = maxCount - lists.length;
  272. // 设置为只选择图片的时候使用 chooseImage 来实现
  273. chooseFile = new Promise((resolve, reject) => {
  274. uni.chooseImage({
  275. count: multiple ? (newMaxCount > 9 ? 9 : newMaxCount) : 1,
  276. sourceType: sourceType,
  277. sizeType,
  278. success: resolve,
  279. fail: reject
  280. });
  281. });
  282. chooseFile
  283. .then(res => {
  284. let file = null;
  285. let listOldLength = this.lists.length;
  286. res.tempFiles.map((val, index) => {
  287. // 如果是非多选,index大于等于1或者超出最大限制数量时,不处理
  288. if (!multiple && index >= 1) return;
  289. if (val.size > maxSize) {
  290. this.$emit('on-oversize', val, this.lists);
  291. this.showToast('超出允许的文件大小');
  292. } else {
  293. if (maxCount <= lists.length) {
  294. this.$emit('on-exceed', val, this.lists);
  295. this.showToast('超出最大允许的文件个数');
  296. return;
  297. }
  298. let fileName = '';
  299. let fileNameLength = '';
  300. let fileFormat = '';
  301. //#ifdef H5
  302. fileName = val.name.lastIndexOf(".");
  303. fileNameLength = val.name.length;
  304. fileFormat = val.name.substring(fileName + 1, fileNameLength).toLowerCase();
  305. //#endif
  306. //#ifndef H5
  307. fileName = val.path.lastIndexOf(".");
  308. fileNameLength = val.path.length;
  309. fileFormat = val.path.substring(fileName + 1, fileNameLength).toLowerCase();
  310. //#endif
  311. lists.push({
  312. url: val.path,
  313. fileType: fileFormat,
  314. progress: 0,
  315. error: false
  316. });
  317. // 列表发生改变,发出事件,第二个参数为当前发生变化的项的索引
  318. this.$emit('on-list-change', this.lists);
  319. }
  320. });
  321. // 每次图片选择完,抛出一个事件,并将当前内部选择的图片数组抛出去
  322. this.$emit('on-choose-complete', this.lists);
  323. if (this.autoUpload) this.uploadFile(listOldLength);
  324. })
  325. .catch(error => {
  326. this.$emit('on-error', error);
  327. });
  328. },
  329. // 提示用户消息
  330. showToast(message, force = false) {
  331. if (this.showTips || force) {
  332. uni.showToast({
  333. title: message,
  334. icon: 'none'
  335. });
  336. }
  337. },
  338. // 该方法供用户通过ref调用,手动上传
  339. upload() {
  340. this.uploadFile();
  341. },
  342. // 对失败的图片重新上传
  343. retry(index) {
  344. this.lists[index].progress = 0;
  345. this.lists[index].error = false;
  346. this.lists[index].response = null;
  347. uni.showLoading({
  348. title: '重新上传'
  349. });
  350. this.uploadFile(index);
  351. },
  352. // 上传图片
  353. async uploadFile(index = 0) {
  354. if (this.disabled) return;
  355. if (this.uploading) return;
  356. // 全部上传完成
  357. if (index >= this.lists.length) {
  358. this.isSelectFile = true
  359. this.$emit('on-uploaded', this.lists);
  360. return;
  361. }
  362. // 检查上传地址
  363. if (!this.action) {
  364. this.showToast('请配置上传地址', true);
  365. return;
  366. }
  367. // 检查是否是已上传或者正在上传中
  368. if (this.lists[index].progress == 100) {
  369. if (this.autoUpload == false) this.uploadFile(index + 1);
  370. return;
  371. }
  372. // 执行before-upload钩子
  373. if (this.beforeUpload && typeof(this.beforeUpload) === 'function') {
  374. // 执行回调,同时传入索引和文件列表当作参数
  375. let beforeResponse = this.beforeUpload(index, this.lists);
  376. // 判断是否返回了promise
  377. if (!!beforeResponse && typeof beforeResponse.then === 'function') {
  378. await beforeResponse.then(res => {
  379. // promise返回成功,不进行动作,继续上传
  380. }).catch(err => {
  381. // 进入catch回调的话,继续下一张
  382. return this.uploadFile(index + 1);
  383. })
  384. } else if (beforeResponse === false) {
  385. // 如果返回false,继续下一张图片的上传
  386. return this.uploadFile(index + 1);
  387. }
  388. }
  389. this.lists[index].error = false;
  390. this.uploading = true;
  391. uploadImage(this.lists[index].url, 'appData/',
  392. result => {
  393. // 上传成功
  394. this.lists[index].response = result;
  395. this.lists[index].progress = 100;
  396. this.lists[index].error = false;
  397. let data = result
  398. this.$emit('on-success', data, index, this.lists);
  399. uni.hideLoading();
  400. this.uploading = false;
  401. this.uploadFile(index + 1);
  402. this.$emit('on-change', data, index, this.lists);
  403. }
  404. )
  405. // 创建上传对象
  406. const task = uni.uploadFile({
  407. url: this.action,
  408. filePath: this.lists[index].url,
  409. name: this.name,
  410. formData: this.formData,
  411. header: this.header,
  412. success: res => {
  413. // 判断是否json字符串,将其转为json格式
  414. let data = this.toJson && this.checkIsJSON(res.data) ? JSON.parse(res.data) : res
  415. .data;
  416. if (![200, 201].includes(res.statusCode)) {
  417. this.uploadError(index, data);
  418. } else {
  419. // 上传成功
  420. this.lists[index].response = data;
  421. this.lists[index].progress = 100;
  422. this.lists[index].error = false;
  423. this.$emit('on-success', data, index, this.lists);
  424. }
  425. },
  426. fail: e => {
  427. this.uploadError(index, e);
  428. },
  429. complete: res => {
  430. uni.hideLoading();
  431. this.uploading = false;
  432. this.uploadFile(index + 1);
  433. this.$emit('on-change', res, index, this.lists);
  434. }
  435. });
  436. task.onProgressUpdate(res => {
  437. if (res.progress > 0) {
  438. this.lists[index].progress = res.progress;
  439. this.$emit('on-progress', res, index, this.lists);
  440. }
  441. });
  442. },
  443. // 上传失败
  444. uploadError(index, err) {
  445. this.lists[index].progress = 0;
  446. this.lists[index].error = true;
  447. this.lists[index].response = null;
  448. this.$emit('on-error', err, index, this.lists);
  449. this.showToast('上传失败,请重试');
  450. },
  451. // 删除一个图片
  452. deleteItem(index) {
  453. uni.showModal({
  454. title: '提示',
  455. content: '您确定要删除此项吗?',
  456. success: res => {
  457. if (res.confirm) {
  458. this.isSelectFile = false
  459. if (this.lists[index].process < 100 && this.lists[index].process > 0) {
  460. typeof this.lists[index].uploadTask != 'undefined' && this.lists[index]
  461. .uploadTask.abort();
  462. }
  463. this.lists.splice(index, 1);
  464. this.$forceUpdate();
  465. this.$emit('on-remove', index, this.lists);
  466. this.showToast('移除成功');
  467. // 列表发生改变,发出事件
  468. this.$emit('on-list-change', this.lists);
  469. }
  470. }
  471. });
  472. },
  473. // 用户通过ref手动的形式,移除一张图片
  474. remove(index) {
  475. // 判断索引的合法范围
  476. if (index >= 0 && index < this.lists.length) {
  477. this.lists.splice(index, 1);
  478. this.$emit('on-list-change', this.lists);
  479. }
  480. },
  481. // 预览图片
  482. doPreviewImage(url, index) {
  483. if (!this.previewFullImage) return;
  484. const images = this.lists.map(item => item.url || item.path);
  485. uni.previewImage({
  486. urls: images,
  487. current: url,
  488. success: () => {
  489. this.$emit('on-preview', url, this.lists);
  490. },
  491. fail: () => {
  492. uni.showToast({
  493. title: '预览图片失败',
  494. icon: 'none'
  495. });
  496. }
  497. });
  498. },
  499. // 判断是否json字符串
  500. checkIsJSON(str) {
  501. if (typeof str == 'string') {
  502. try {
  503. var obj = JSON.parse(str);
  504. if (typeof obj == 'object' && obj) {
  505. return true;
  506. } else {
  507. return false;
  508. }
  509. } catch (e) {
  510. return false;
  511. }
  512. }
  513. return false;
  514. }
  515. }
  516. };
  517. </script>
  518. <style lang="scss" scoped>
  519. // nvue不能用标签命名样式
  520. /* #ifndef APP-NVUE */
  521. image {
  522. display: inline-block;
  523. // 解决图片加载时可能会瞬间变形的问题
  524. will-change: transform;
  525. }
  526. view,
  527. text {
  528. box-sizing: border-box;
  529. flex-direction: row;
  530. }
  531. /* #endif */
  532. .u-upload {
  533. display: flex;
  534. flex-wrap: wrap;
  535. align-items: center;
  536. }
  537. .u-list-item {
  538. width: 200rpx;
  539. height: 200rpx;
  540. overflow: hidden;
  541. margin: 10rpx;
  542. background: rgb(244, 245, 246);
  543. position: relative;
  544. border-radius: 10rpx;
  545. display: inline-flex;
  546. align-items: center;
  547. justify-content: center;
  548. }
  549. .u-preview-wrap {
  550. border: 1px solid rgb(235, 236, 238);
  551. }
  552. .u-add-wrap {
  553. flex-direction: column;
  554. color: $u-content-color;
  555. font-size: 28rpx;
  556. }
  557. .u-add-tips {
  558. margin-top: 20rpx;
  559. }
  560. .u-add-wrap__hover {
  561. background-color: rgb(235, 236, 238);
  562. }
  563. .u-preview-image {
  564. display: block;
  565. width: 100%;
  566. height: 100%;
  567. border-radius: 10rpx;
  568. }
  569. .u-delete-icon {
  570. position: absolute;
  571. top: 10rpx;
  572. right: 10rpx;
  573. z-index: 10;
  574. background-color: $u-type-error;
  575. border-radius: 100rpx;
  576. width: 44rpx;
  577. height: 44rpx;
  578. display: flex;
  579. align-items: center;
  580. justify-content: center;
  581. }
  582. .u-icon {
  583. display: flex;
  584. align-items: center;
  585. justify-content: center;
  586. }
  587. .u-progress {
  588. position: absolute;
  589. bottom: 10rpx;
  590. left: 8rpx;
  591. right: 8rpx;
  592. z-index: 9;
  593. width: auto;
  594. }
  595. .u-error-btn {
  596. color: #ffffff;
  597. background-color: $u-type-error;
  598. font-size: 20rpx;
  599. padding: 4px 0;
  600. text-align: center;
  601. position: absolute;
  602. bottom: 0;
  603. left: 0;
  604. right: 0;
  605. z-index: 9;
  606. line-height: 1;
  607. }
  608. // .custom-style {
  609. // background: #F5F6FA;
  610. // width: 100%;
  611. // height: 480rpx;
  612. // display: flex;
  613. // justify-content: center;
  614. // align-items: center;
  615. // background: #F2F5FA;
  616. // border-radius: 20rpx;
  617. // border: 2px dashed #C6CBCE;
  618. // }
  619. // .custom-img {
  620. // width: 120rpx;
  621. // height: 100rpx;
  622. // }
  623. // .text {
  624. // font-size: 18px;
  625. // font-weight: 600;
  626. // color: #617E8B;
  627. // }
  628. // .content {
  629. // display: flex;
  630. // justify-content: center;
  631. // flex-direction: column;
  632. // align-items: center;
  633. // }
  634. // .u-preview {
  635. // width: 100%;
  636. // height: 100%;
  637. // // position: absolute;
  638. // background: #F5F6FA;
  639. // }
  640. // .u-list-item-custom {
  641. // margin: 0 !important;
  642. // width: 100% !important;
  643. // height: 100% !important;
  644. // }
  645. .customStyleBgc {
  646. width: 100% !important;
  647. height: 440rpx !important;
  648. display: flex !important;
  649. justify-content: center;
  650. align-items: center;
  651. position: relative;
  652. .u-add-wrap {
  653. width: 100% !important;
  654. height: 100% !important;
  655. background: transparent;
  656. }
  657. .u-add-tips {
  658. font-size: 18px;
  659. font-weight: 600;
  660. color: #617E8B;
  661. }
  662. }
  663. .customStyle {
  664. width: 100% !important;
  665. height: 440rpx !important;
  666. background: #F5F6FA;
  667. border-radius: 20rpx;
  668. border: 2px dashed #C6CBCE;
  669. display: flex !important;
  670. justify-content: center;
  671. align-items: center;
  672. position: relative;
  673. .u-add-wrap {
  674. width: 100% !important;
  675. height: 100% !important;
  676. background: transparent;
  677. }
  678. .u-add-tips {
  679. font-size: 18px;
  680. font-weight: 600;
  681. color: #617E8B;
  682. }
  683. }
  684. .customPreviewStyle {
  685. width: 100% !important;
  686. height: 440rpx !important;
  687. }
  688. .imgstyle {
  689. width: 100% !important;
  690. height: 440rpx !important;
  691. position: absolute;
  692. }
  693. </style>