@10yun/cv-pc-ui 0.4.5 → 0.4.6

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/cv-ui.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! cvPcUI v0.4.5 */
1
+ /*! cvPcUI v0.4.6 */
2
2
  import { ClickOutside as e, ElAutocomplete as t, ElAvatar as n, ElBadge as r, ElButton as i, ElButton as a, ElCascader as o, ElCheckbox as s, ElCheckboxButton as c, ElCheckboxGroup as l, ElDatePicker as u, ElDialog as d, ElDrawer as f, ElForm as p, ElFormItem as m, ElIcon as ee, ElImage as te, ElInput as ne, ElInput as h, ElInputNumber as re, ElMessage as ie, ElMessage as g, ElMessageBox as ae, ElMessageBox as oe, ElOption as se, ElPagination as ce, ElPopover as le, ElScrollbar as ue, ElSelect as de, ElSwitch as fe, ElTable as pe, ElTableColumn as _, ElTag as me, ElTimePicker as he } from "element-plus";
3
3
  import { Fragment as v, Transition as ge, TransitionGroup as _e, computed as ve, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as ye, createTextVNode as C, createVNode as w, defineComponent as be, getCurrentInstance as xe, getCurrentScope as Se, guardReactiveProps as T, h as Ce, inject as we, markRaw as Te, mergeProps as E, nextTick as Ee, normalizeClass as D, normalizeProps as O, normalizeStyle as k, onBeforeUnmount as De, onMounted as Oe, onScopeDispose as ke, onUnmounted as Ae, openBlock as A, provide as je, reactive as Me, ref as j, render as Ne, renderList as M, renderSlot as N, resolveComponent as P, resolveDirective as Pe, resolveDynamicComponent as Fe, shallowReadonly as Ie, shallowRef as Le, toDisplayString as F, toHandlers as Re, toRaw as ze, toRefs as Be, toValue as Ve, unref as I, useCssVars as He, useSlots as Ue, vModelText as We, vShow as L, watch as Ge, withCtx as R, withDirectives as z, withKeys as Ke, withModifiers as qe } from "vue";
4
4
  import { basicSetup as Je } from "codemirror";
@@ -1777,6 +1777,7 @@ function qr(e) {
1777
1777
  "jpeg",
1778
1778
  "gif",
1779
1779
  "webp",
1780
+ "bmp",
1780
1781
  "svg"
1781
1782
  ], n = e.lastIndexOf("."), r = e.substring(n + 1);
1782
1783
  return t.indexOf(r.toLowerCase()) != -1;
@@ -4442,7 +4443,10 @@ var Fa = {
4442
4443
  "png",
4443
4444
  "jpg",
4444
4445
  "jpeg",
4445
- "gif"
4446
+ "gif",
4447
+ "webp",
4448
+ "bmp",
4449
+ "svg"
4446
4450
  ]
4447
4451
  },
4448
4452
  showSize: {
@@ -4914,13 +4918,7 @@ var to = {
4914
4918
  },
4915
4919
  allowFileType: {
4916
4920
  type: [Array],
4917
- default: [
4918
- "txt",
4919
- "png",
4920
- "jpg",
4921
- "xlsx",
4922
- "xls"
4923
- ]
4921
+ default: /* @__PURE__ */ "png.jpg.jpeg.gif.webp.bmp.svg.ai.psd.eps.mp4.mp3.txt.md.rtf.odt.pdf.doc.docx.xls.xlsx.csv.ppt.pptx.zip.rar.7z".split(".")
4924
4922
  },
4925
4923
  allowFileNum: {
4926
4924
  type: [Number],
@@ -5820,7 +5818,10 @@ var Ro = /*#__PURE__*/ H(bo, [["render", Lo], ["__scopeId", "data-v-ae9dfc45"]])
5820
5818
  "png",
5821
5819
  "jpg",
5822
5820
  "jpeg",
5823
- "gif"
5821
+ "gif",
5822
+ "webp",
5823
+ "bmp",
5824
+ "svg"
5824
5825
  ]
5825
5826
  },
5826
5827
  btnText: {
@@ -5884,26 +5885,7 @@ var Uo = /*#__PURE__*/ H(Bo, [["render", Ho]]), Wo = {
5884
5885
  },
5885
5886
  allowFileType: {
5886
5887
  type: [Array],
5887
- default: () => [
5888
- "txt",
5889
- "csv",
5890
- "pdf",
5891
- "doc",
5892
- "docx",
5893
- "xls",
5894
- "xlsx",
5895
- "ppt",
5896
- "pptx",
5897
- "zip",
5898
- "rar",
5899
- "7z",
5900
- "png",
5901
- "jpg",
5902
- "jpeg",
5903
- "gif",
5904
- "mp4",
5905
- "mp3"
5906
- ]
5888
+ default: () => /* @__PURE__ */ "png.jpg.jpeg.gif.webp.bmp.svg.ai.psd.eps.mp4.mp3.txt.md.rtf.odt.pdf.doc.docx.xls.xlsx.csv.ppt.pptx.zip.rar.7z".split(".")
5907
5889
  },
5908
5890
  btnText: {
5909
5891
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@10yun/cv-pc-ui",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "private": false,
5
5
  "description": "cvjs-pc-ui组件",
6
6
  "homepage": "http://cvjs.cn/cv-pc-ui",
@@ -108,7 +108,7 @@ export function checkIsUndefined(val) {
108
108
  * @returns
109
109
  */
110
110
  export function checkIsImage(filePath) {
111
- let type = ['png', 'jpg', 'jpeg', 'gif', 'webp', 'svg'];
111
+ let type = ['png', 'jpg', 'jpeg', 'gif', 'webp', 'bmp', 'svg'];
112
112
  // 获取最后一个.的位置
113
113
  let index = filePath.lastIndexOf('.');
114
114
  // 获取后缀