@king-one/antdv 1.1.3 → 1.1.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @king-one/antdv
2
2
 
3
+ ## 1.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: 修复上传组件的图片预览
8
+
9
+ ## 1.1.4
10
+
11
+ ### Patch Changes
12
+
13
+ - feat: 优化上传组件细节
14
+
3
15
  ## 1.1.3
4
16
 
5
17
  ### Patch Changes
@@ -1,15 +1,15 @@
1
- import { defineComponent as R, ref as y, computed as U, useModel as j, createElementBlock as P, openBlock as r, normalizeClass as o, unref as t, createVNode as p, renderSlot as A, createElementVNode as V, withCtx as d, createCommentVNode as h, createBlock as m, mergeModels as K } from "vue";
2
- import { message as L, Upload as G, Spin as O, Image as T, ImagePreviewGroup as D } from "ant-design-vue";
3
- import { useNamespace as H } from "../../../hooks/use-namespace/index.mjs";
1
+ import { defineComponent as j, ref as y, computed as U, useModel as A, createElementBlock as P, openBlock as o, normalizeClass as u, unref as t, createVNode as c, renderSlot as K, createElementVNode as V, withCtx as p, createCommentVNode as h, createBlock as m, mergeModels as G } from "vue";
2
+ import { message as L, Upload as O, Spin as D, Image as _, ImagePreviewGroup as H } from "ant-design-vue";
3
+ import { useNamespace as T } from "../../../hooks/use-namespace/index.mjs";
4
4
  import "../../index.mjs";
5
5
  import { useExtractPlusUpload as J } from "../hook/useExtractPlusUpload.mjs";
6
6
  import { usePlusUpload as Q } from "../hook/usePlusUpload.mjs";
7
7
  import { PlusUpLoadProps as W } from "./types.mjs";
8
- import { KIcon as w } from "../../icon/index.mjs";
8
+ import { KIcon as b } from "../../icon/index.mjs";
9
9
  import { KProOverlay as X } from "../../pro-overlay/index.mjs";
10
- const Y = { key: 0 }, ce = /* @__PURE__ */ R({
10
+ const Y = { key: 0 }, Z = { style: { display: "none" } }, ce = /* @__PURE__ */ j({
11
11
  __name: "plus-upload",
12
- props: /* @__PURE__ */ K(W, {
12
+ props: /* @__PURE__ */ G(W, {
13
13
  fileList: {
14
14
  type: Array,
15
15
  required: !0
@@ -17,26 +17,26 @@ const Y = { key: 0 }, ce = /* @__PURE__ */ R({
17
17
  fileListModifiers: {}
18
18
  }),
19
19
  emits: ["update:fileList"],
20
- setup(g) {
21
- const s = g, { uploadFile: z, removeFile: E } = Q(), b = y(), v = y(!1), { b: I, e: n, em: Z } = H("plus-upload"), { getFileUrl: N, AcceptValidates: S, hasPrivew: _ } = J(), $ = U(
20
+ setup(w) {
21
+ const s = w, { uploadFile: z, removeFile: E } = Q(), g = y(), v = y(!1), { b: I, e: d } = T("plus-upload"), { b: ee } = T("plus-upload-preview"), { getFileUrl: N, AcceptValidates: S, hasPrivew: $ } = J(), q = U(
22
22
  () => s.acceptType ? s.acceptType.map((e) => `.${e}`).join(",") : "*"
23
- ), i = j(g, "fileList"), q = async (e, a) => {
23
+ ), i = A(w, "fileList"), x = async (e, a) => {
24
24
  if (s.beforeUpload) {
25
- const u = s.beforeUpload(e, a);
26
- if (u instanceof Promise) {
27
- if (await u === !1)
25
+ const n = s.beforeUpload(e, a);
26
+ if (n instanceof Promise) {
27
+ if (await n === !1)
28
28
  return !1;
29
- } else if (!u)
29
+ } else if (!n)
30
30
  return !1;
31
31
  }
32
32
  let l = [];
33
- s.acceptType && s.acceptType.forEach((u) => {
34
- const C = S[u];
33
+ s.acceptType && s.acceptType.forEach((n) => {
34
+ const C = S[n];
35
35
  l = [...l, ...C];
36
36
  });
37
- const { type: c, size: M } = e;
38
- return !l.includes(c) && l.length > 0 ? (L.warning("上传格式错误"), !1) : s.maxSize && s.maxSize < M ? (L.warning("文件过大,请选择其他文件上传"), !1) : !0;
39
- }, f = y(!1), x = async (e) => {
37
+ const { type: r, size: R } = e;
38
+ return !l.includes(r) && l.length > 0 ? (L.warning("上传格式错误"), !1) : s.maxSize && s.maxSize < R ? (L.warning("文件过大,请选择其他文件上传"), !1) : !0;
39
+ }, f = y(!1), B = async (e) => {
40
40
  var a;
41
41
  f.value = !0;
42
42
  try {
@@ -46,61 +46,62 @@ const Y = { key: 0 }, ce = /* @__PURE__ */ R({
46
46
  f.value = !1;
47
47
  }
48
48
  }, k = U(() => i.value && i.value.length > 0 ? i.value.map((e) => {
49
- const { id: a, name: l, url: c } = e;
49
+ const { id: a, name: l, url: r } = e;
50
50
  return {
51
51
  uid: a,
52
52
  name: l,
53
- url: N(l, c)
53
+ url: N(l, r)
54
54
  };
55
55
  }) : []);
56
- function B(e) {
57
- b.value = e.url, v.value = !0;
56
+ function F(e) {
57
+ g.value = e.url, v.value = !0;
58
58
  }
59
- async function F(e) {
59
+ async function M(e) {
60
60
  await E(e.uid);
61
61
  const a = i.value.findIndex((l) => l.id === e.uid);
62
62
  i.value.splice(a, 1);
63
63
  }
64
- return (e, a) => (r(), P(
64
+ return (e, a) => (o(), P(
65
65
  "div",
66
66
  {
67
- class: o(t(I)())
67
+ class: u(t(I)())
68
68
  },
69
69
  [
70
- p(t(G), {
70
+ c(t(O), {
71
71
  "file-list": k.value,
72
- accept: $.value,
72
+ accept: q.value,
73
+ disabled: e.disabled,
73
74
  "list-type": "picture-card",
74
- "before-upload": q,
75
- "custom-request": x
75
+ "before-upload": x,
76
+ "custom-request": B
76
77
  }, {
77
- itemRender: d(({ file: l }) => [
78
+ itemRender: p(({ file: l }) => [
78
79
  V(
79
80
  "div",
80
81
  {
81
- class: o(t(n)("file-item"))
82
+ class: u(t(d)("file-item"))
82
83
  },
83
84
  [
84
- p(
85
+ c(
85
86
  t(X),
86
87
  null,
87
88
  {
88
- action: d(() => [
89
- t(_)(l.fileType) ? (r(), m(t(w), {
89
+ action: p(() => [
90
+ t($)(l.fileType) ? (o(), m(t(b), {
90
91
  key: 0,
91
92
  name: "eye",
92
- class: o(t(n)("icon-eye")),
93
- onClick: (c) => B(l)
93
+ class: u(t(d)("icon-eye")),
94
+ onClick: (r) => F(l)
94
95
  }, null, 8, ["class", "onClick"])) : h("v-if", !0),
95
- e.disabled ? h("v-if", !0) : (r(), m(t(w), {
96
+ e.disabled ? h("v-if", !0) : (o(), m(t(b), {
96
97
  key: 1,
97
98
  name: "delete",
98
- class: o(t(n)("icon-delete")),
99
- onClick: (c) => F(l)
99
+ class: u(t(d)("icon-delete")),
100
+ onClick: (r) => M(l)
100
101
  }, null, 8, ["class", "onClick"]))
101
102
  ]),
102
- default: d(() => [
103
- p(t(T), {
103
+ default: p(() => [
104
+ c(t(_), {
104
105
  class: "object-contain",
105
106
  width: 84,
106
107
  height: 84,
@@ -119,41 +120,33 @@ const Y = { key: 0 }, ce = /* @__PURE__ */ R({
119
120
  /* CLASS */
120
121
  )
121
122
  ]),
122
- default: d(() => [
123
- (!e.limit || k.value.length < e.limit) && !e.disabled ? (r(), P("div", Y, [
124
- f.value ? (r(), m(t(O), { key: 0 })) : (r(), m(t(w), {
123
+ default: p(() => [
124
+ !e.limit || k.value.length < e.limit ? (o(), P("div", Y, [
125
+ f.value ? (o(), m(t(D), { key: 0 })) : (o(), m(t(b), {
125
126
  key: 1,
126
127
  name: "plus",
127
- class: o(t(n)("icon-plus"))
128
+ class: u(t(d)("icon-plus"))
128
129
  }, null, 8, ["class"]))
129
130
  ])) : h("v-if", !0)
130
131
  ]),
131
132
  _: 1
132
133
  /* STABLE */
133
- }, 8, ["file-list", "accept"]),
134
- A(e.$slots, "tips"),
135
- V(
136
- "div",
137
- {
138
- class: o(t(n)("preview"))
139
- },
140
- [
141
- p(t(D), {
142
- preview: {
143
- visible: v.value,
144
- onVisibleChange: (l) => v.value = l
145
- }
146
- }, {
147
- default: d(() => [
148
- p(t(T), { src: b.value }, null, 8, ["src"])
149
- ]),
150
- _: 1
151
- /* STABLE */
152
- }, 8, ["preview"])
153
- ],
154
- 2
155
- /* CLASS */
156
- )
134
+ }, 8, ["file-list", "accept", "disabled"]),
135
+ K(e.$slots, "tips"),
136
+ V("div", Z, [
137
+ c(t(H), {
138
+ preview: {
139
+ visible: v.value,
140
+ onVisibleChange: (l) => v.value = l
141
+ }
142
+ }, {
143
+ default: p(() => [
144
+ c(t(_), { src: g.value }, null, 8, ["src"])
145
+ ]),
146
+ _: 1
147
+ /* STABLE */
148
+ }, 8, ["preview"])
149
+ ])
157
150
  ],
158
151
  2
159
152
  /* CLASS */
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("ant-design-vue"),x=require("../../../hooks/use-namespace/index.js");require("../../index.js");const z=require("../hook/useExtractPlusUpload.js"),E=require("../hook/usePlusUpload.js"),I=require("./types.js"),p=require("../../icon/index.js"),L=require("../../pro-overlay/index.js"),S={key:0},T=e.defineComponent({__name:"plus-upload",props:e.mergeModels(I.PlusUpLoadProps,{fileList:{type:Array,required:!0},fileListModifiers:{}}),emits:["update:fileList"],setup(f){const s=f,{uploadFile:k,removeFile:h}=E.usePlusUpload(),m=e.ref(),d=e.ref(!1),{b:C,e:i,em:_}=x.useNamespace("plus-upload"),{getFileUrl:w,AcceptValidates:g,hasPrivew:V}=z.useExtractPlusUpload(),b=e.computed(()=>s.acceptType?s.acceptType.map(l=>`.${l}`).join(","):"*"),n=e.useModel(f,"fileList"),q=async(l,a)=>{if(s.beforeUpload){const u=s.beforeUpload(l,a);if(u instanceof Promise){if(await u===!1)return!1}else if(!u)return!1}let t=[];s.acceptType&&s.acceptType.forEach(u=>{const y=g[u];t=[...t,...y]});const{type:o,size:U}=l;return!t.includes(o)&&t.length>0?(r.message.warning("上传格式错误"),!1):s.maxSize&&s.maxSize<U?(r.message.warning("文件过大,请选择其他文件上传"),!1):!0},c=e.ref(!1),B=async l=>{var a;c.value=!0;try{const t=await k(s.business,l.file);(a=n.value)==null||a.push(t),c.value=!1}catch{c.value=!1}},v=e.computed(()=>n.value&&n.value.length>0?n.value.map(l=>{const{id:a,name:t,url:o}=l;return{uid:a,name:t,url:w(t,o)}}):[]);function N(l){m.value=l.url,d.value=!0}async function P(l){await h(l.uid);const a=n.value.findIndex(t=>t.id===l.uid);n.value.splice(a,1)}return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(C)())},[e.createVNode(e.unref(r.Upload),{"file-list":v.value,accept:b.value,"list-type":"picture-card","before-upload":q,"custom-request":B},{itemRender:e.withCtx(({file:t})=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(i)("file-item"))},[e.createVNode(e.unref(L.KProOverlay),null,{action:e.withCtx(()=>[e.unref(V)(t.fileType)?(e.openBlock(),e.createBlock(e.unref(p.KIcon),{key:0,name:"eye",class:e.normalizeClass(e.unref(i)("icon-eye")),onClick:o=>N(t)},null,8,["class","onClick"])):e.createCommentVNode("v-if",!0),l.disabled?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(e.unref(p.KIcon),{key:1,name:"delete",class:e.normalizeClass(e.unref(i)("icon-delete")),onClick:o=>P(t)},null,8,["class","onClick"]))]),default:e.withCtx(()=>[e.createVNode(e.unref(r.Image),{class:"object-contain",width:84,height:84,preview:!1,src:t.url},null,8,["src"])]),_:2},1024)],2)]),default:e.withCtx(()=>[(!l.limit||v.value.length<l.limit)&&!l.disabled?(e.openBlock(),e.createElementBlock("div",S,[c.value?(e.openBlock(),e.createBlock(e.unref(r.Spin),{key:0})):(e.openBlock(),e.createBlock(e.unref(p.KIcon),{key:1,name:"plus",class:e.normalizeClass(e.unref(i)("icon-plus"))},null,8,["class"]))])):e.createCommentVNode("v-if",!0)]),_:1},8,["file-list","accept"]),e.renderSlot(l.$slots,"tips"),e.createElementVNode("div",{class:e.normalizeClass(e.unref(i)("preview"))},[e.createVNode(e.unref(r.ImagePreviewGroup),{preview:{visible:d.value,onVisibleChange:t=>d.value=t}},{default:e.withCtx(()=>[e.createVNode(e.unref(r.Image),{src:m.value},null,8,["src"])]),_:1},8,["preview"])],2)],2))}});exports.default=T;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("ant-design-vue"),h=require("../../../hooks/use-namespace/index.js");require("../../index.js");const z=require("../hook/useExtractPlusUpload.js"),_=require("../hook/usePlusUpload.js"),E=require("./types.js"),p=require("../../icon/index.js"),I=require("../../pro-overlay/index.js"),L={key:0},S={style:{display:"none"}},T=e.defineComponent({__name:"plus-upload",props:e.mergeModels(E.PlusUpLoadProps,{fileList:{type:Array,required:!0},fileListModifiers:{}}),emits:["update:fileList"],setup(f){const s=f,{uploadFile:k,removeFile:w}=_.usePlusUpload(),m=e.ref(),d=e.ref(!1),{b:C,e:u}=h.useNamespace("plus-upload"),{b:$}=h.useNamespace("plus-upload-preview"),{getFileUrl:g,AcceptValidates:b,hasPrivew:V}=z.useExtractPlusUpload(),q=e.computed(()=>s.acceptType?s.acceptType.map(l=>`.${l}`).join(","):"*"),r=e.useModel(f,"fileList"),B=async(l,a)=>{if(s.beforeUpload){const o=s.beforeUpload(l,a);if(o instanceof Promise){if(await o===!1)return!1}else if(!o)return!1}let t=[];s.acceptType&&s.acceptType.forEach(o=>{const y=b[o];t=[...t,...y]});const{type:i,size:x}=l;return!t.includes(i)&&t.length>0?(n.message.warning("上传格式错误"),!1):s.maxSize&&s.maxSize<x?(n.message.warning("文件过大,请选择其他文件上传"),!1):!0},c=e.ref(!1),N=async l=>{var a;c.value=!0;try{const t=await k(s.business,l.file);(a=r.value)==null||a.push(t),c.value=!1}catch{c.value=!1}},v=e.computed(()=>r.value&&r.value.length>0?r.value.map(l=>{const{id:a,name:t,url:i}=l;return{uid:a,name:t,url:g(t,i)}}):[]);function P(l){m.value=l.url,d.value=!0}async function U(l){await w(l.uid);const a=r.value.findIndex(t=>t.id===l.uid);r.value.splice(a,1)}return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(C)())},[e.createVNode(e.unref(n.Upload),{"file-list":v.value,accept:q.value,disabled:l.disabled,"list-type":"picture-card","before-upload":B,"custom-request":N},{itemRender:e.withCtx(({file:t})=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(u)("file-item"))},[e.createVNode(e.unref(I.KProOverlay),null,{action:e.withCtx(()=>[e.unref(V)(t.fileType)?(e.openBlock(),e.createBlock(e.unref(p.KIcon),{key:0,name:"eye",class:e.normalizeClass(e.unref(u)("icon-eye")),onClick:i=>P(t)},null,8,["class","onClick"])):e.createCommentVNode("v-if",!0),l.disabled?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(e.unref(p.KIcon),{key:1,name:"delete",class:e.normalizeClass(e.unref(u)("icon-delete")),onClick:i=>U(t)},null,8,["class","onClick"]))]),default:e.withCtx(()=>[e.createVNode(e.unref(n.Image),{class:"object-contain",width:84,height:84,preview:!1,src:t.url},null,8,["src"])]),_:2},1024)],2)]),default:e.withCtx(()=>[!l.limit||v.value.length<l.limit?(e.openBlock(),e.createElementBlock("div",L,[c.value?(e.openBlock(),e.createBlock(e.unref(n.Spin),{key:0})):(e.openBlock(),e.createBlock(e.unref(p.KIcon),{key:1,name:"plus",class:e.normalizeClass(e.unref(u)("icon-plus"))},null,8,["class"]))])):e.createCommentVNode("v-if",!0)]),_:1},8,["file-list","accept","disabled"]),e.renderSlot(l.$slots,"tips"),e.createElementVNode("div",S,[e.createVNode(e.unref(n.ImagePreviewGroup),{preview:{visible:d.value,onVisibleChange:t=>d.value=t}},{default:e.withCtx(()=>[e.createVNode(e.unref(n.Image),{src:m.value},null,8,["src"])]),_:1},8,["preview"])])],2))}});exports.default=T;
@@ -1 +1 @@
1
- @font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=10368) format("woff2"),url(fonts/iconfont.woff?t=99963) format("woff"),url(fonts/iconfont.ttf?t=51165) format("truetype")}.king-icon{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-king-plus:before{content:"\e614"}.icon-king-xsl:before{content:"\e602"}.icon-king-word:before{content:"\e622"}.icon-king-eye:before{content:"\e78f"}.icon-king-PDF:before{content:"\e60a"}.icon-king-delete:before{content:"\e63c"}.icon-king-upload-icon:before{content:"\e617"}.icon-king-title-icon:before{content:"\e680"}
1
+ @font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=80970) format("woff2"),url(fonts/iconfont.woff?t=64157) format("woff"),url(fonts/iconfont.ttf?t=21965) format("truetype")}.king-icon{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-king-plus:before{content:"\e614"}.icon-king-xsl:before{content:"\e602"}.icon-king-word:before{content:"\e622"}.icon-king-eye:before{content:"\e78f"}.icon-king-PDF:before{content:"\e60a"}.icon-king-delete:before{content:"\e63c"}.icon-king-upload-icon:before{content:"\e617"}.icon-king-title-icon:before{content:"\e680"}
@@ -1 +1 @@
1
- :root{--king-color-white:#ffffff;--king-color-primary:#409eff;--king-color-success:#67c23a;--king-color-warning:#e6a23c;--king-color-danger:#f56c6c;--king-color-error:#f56c6c;--king-color-info:#909399;--king-transition-duration:0.3s}.king-button--primary{--king-button-text-color:var(--king-color-primary)}.king-button--success{--king-button-text-color:var(--king-color-success)}.king-button--warning{--king-button-text-color:var(--king-color-warning)}.king-button--danger{--king-button-text-color:var(--king-color-danger)}.king-button--error{--king-button-text-color:var(--king-color-error)}.king-button--info{--king-button-text-color:var(--king-color-info)}.king-button{color:var(--king-button-text-color)}.king-scrollbar{overflow:hidden;position:relative;z-index:auto;height:100%;width:100%}.king-scrollbar .king-scrollbar-container{width:100%;overflow:scroll;height:100%;min-height:inherit;max-height:inherit;scrollbar-width:none}.king-scrollbar .king-scrollbar-content{width:-moz-fit-content;width:fit-content}.king-scrollbar .king-scrollbar-rail{position:absolute}.king-scrollbar .king-scrollbar-rail--vertical{right:0;width:5px;top:2px;bottom:2px;right:4px}.king-scrollbar .king-scrollbar-rail--horizontal{bottom:2px;height:5px;left:2px;right:2px}.king-scrollbar .king-scrollbar-rail__scrollbar--vertical{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;width:100%;cursor:pointer}.king-scrollbar .king-scrollbar-rail__scrollbar--horizontal{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;height:100%;cursor:pointer}.v-vl-items{width:-moz-fit-content;width:fit-content}.king-scale-virtual-list{width:100%;height:100%}.king-scale-virtual-list .king-scale-virtual-list-container{margin:0 auto;position:relative}.king-scale-virtual-list .king-scale-vittual-wrapper{width:-moz-fit-content;width:fit-content;margin:0 auto;position:absolute;left:50%}.king-pro-title{border-bottom:1px solid #ccc;font-weight:500;display:flex;align-items:center}.king-pro-title .icon{margin-right:10px}.king-pro-title--unborder{border:none}.king-pro-modal .ant-modal-content{padding:0}.king-pro-modal .ant-modal-header{height:56px;padding-left:32px;padding-right:24px;display:flex;justify-content:space-between;align-items:center;background:#f1f7ff;border-bottom:1px solid #e6e8ea}.king-pro-modal .ant-modal-body{padding:10px 20px;max-height:80vh;overflow:auto}.king-pro-modal .ant-modal-footer{height:56px;display:flex;padding:0 16px;justify-content:flex-end;align-items:center;border-top:1px solid #e6e8ea}.king-pro-modal .ant-modal-title{flex:1}.king-pro-modal .pro-modal-title{cursor:move;width:100%}.king-pro-area-select{width:100%}@font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=74468) format("woff2"),url(fonts/iconfont.woff?t=92395) format("woff"),url(fonts/iconfont.ttf?t=71257) format("truetype")}.king-icon{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-king-plus:before{content:"\e614"}.icon-king-xsl:before{content:"\e602"}.icon-king-word:before{content:"\e622"}.icon-king-eye:before{content:"\e78f"}.icon-king-PDF:before{content:"\e60a"}.icon-king-delete:before{content:"\e63c"}.icon-king-upload-icon:before{content:"\e617"}.icon-king-title-icon:before{content:"\e680"}.king-cover-scrollbar{height:100%;width:100%;overflow:hidden;position:relative}.king-cover-scrollbar .king-cover-scrollbar-container{height:100%;width:100%;overflow:scroll;scrollbar-width:none}.king-cover-scrollbar .king-cover-scrollbar-rail{width:5px;top:2px;bottom:2px;position:absolute}.king-cover-scrollbar .king-cover-scrollbar-rail__scrollbar--vertical{position:absolute;border-radius:5px;width:100%;cursor:pointer}.king-pro-contract-view{position:relative;display:flex}.king-pro-contract-view .king-pro-contract-view__content{flex:1}.king-pro-contract-view .king-pro-contract-view__content-item{border:1px solid #f0f0f0;position:relative;box-shadow:0 2px 10px 0 rgba(0,0,0,.1)}.king-pro-contract-view>.ant-spin{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.king-pro-overlay{position:relative;cursor:pointer;display:inline-block}.king-pro-overlay .king-pro-overlay__content{transition:all .2s linear;opacity:0;position:absolute;display:flex;align-items:center;justify-content:center;inset:0}.king-pro-overlay:hover .king-pro-overlay__content{opacity:1;background:rgba(0,0,0,.5)}.king-plus-upload .king-plus-upload__icon-plus{font-size:32px!important}.king-plus-upload .king-plus-upload__icon-eye{font-size:16px!important;margin-right:5px;color:#fff!important}.king-plus-upload .king-plus-upload__icon-delete{font-size:16px!important;margin-right:5px;color:#fff!important}.king-plus-upload .king-plus-upload__file-item{width:102px;height:102px;display:flex;align-items:center;justify-content:center;border:1px solid #cbcdd3;border-radius:3px}.king-plus-upload .king-plus-upload__preview{overflow:hidden}.king-plus-upload .ant-upload:hover .king-plus-upload__icon-plus{color:#1677ff!important}
1
+ :root{--king-color-white:#ffffff;--king-color-primary:#409eff;--king-color-success:#67c23a;--king-color-warning:#e6a23c;--king-color-danger:#f56c6c;--king-color-error:#f56c6c;--king-color-info:#909399;--king-transition-duration:0.3s}.king-button--primary{--king-button-text-color:var(--king-color-primary)}.king-button--success{--king-button-text-color:var(--king-color-success)}.king-button--warning{--king-button-text-color:var(--king-color-warning)}.king-button--danger{--king-button-text-color:var(--king-color-danger)}.king-button--error{--king-button-text-color:var(--king-color-error)}.king-button--info{--king-button-text-color:var(--king-color-info)}.king-button{color:var(--king-button-text-color)}.king-scrollbar{overflow:hidden;position:relative;z-index:auto;height:100%;width:100%}.king-scrollbar .king-scrollbar-container{width:100%;overflow:scroll;height:100%;min-height:inherit;max-height:inherit;scrollbar-width:none}.king-scrollbar .king-scrollbar-content{width:-moz-fit-content;width:fit-content}.king-scrollbar .king-scrollbar-rail{position:absolute}.king-scrollbar .king-scrollbar-rail--vertical{right:0;width:5px;top:2px;bottom:2px;right:4px}.king-scrollbar .king-scrollbar-rail--horizontal{bottom:2px;height:5px;left:2px;right:2px}.king-scrollbar .king-scrollbar-rail__scrollbar--vertical{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;width:100%;cursor:pointer}.king-scrollbar .king-scrollbar-rail__scrollbar--horizontal{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;height:100%;cursor:pointer}.v-vl-items{width:-moz-fit-content;width:fit-content}.king-scale-virtual-list{width:100%;height:100%}.king-scale-virtual-list .king-scale-virtual-list-container{margin:0 auto;position:relative}.king-scale-virtual-list .king-scale-vittual-wrapper{width:-moz-fit-content;width:fit-content;margin:0 auto;position:absolute;left:50%}.king-pro-title{border-bottom:1px solid #ccc;font-weight:500;display:flex;align-items:center}.king-pro-title .icon{margin-right:10px}.king-pro-title--unborder{border:none}.king-pro-modal .ant-modal-content{padding:0}.king-pro-modal .ant-modal-header{height:56px;padding-left:32px;padding-right:24px;display:flex;justify-content:space-between;align-items:center;background:#f1f7ff;border-bottom:1px solid #e6e8ea}.king-pro-modal .ant-modal-body{padding:10px 20px;max-height:80vh;overflow:auto}.king-pro-modal .ant-modal-footer{height:56px;display:flex;padding:0 16px;justify-content:flex-end;align-items:center;border-top:1px solid #e6e8ea}.king-pro-modal .ant-modal-title{flex:1}.king-pro-modal .pro-modal-title{cursor:move;width:100%}.king-pro-area-select{width:100%}@font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=52822) format("woff2"),url(fonts/iconfont.woff?t=26315) format("woff"),url(fonts/iconfont.ttf?t=66134) format("truetype")}.king-icon{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-king-plus:before{content:"\e614"}.icon-king-xsl:before{content:"\e602"}.icon-king-word:before{content:"\e622"}.icon-king-eye:before{content:"\e78f"}.icon-king-PDF:before{content:"\e60a"}.icon-king-delete:before{content:"\e63c"}.icon-king-upload-icon:before{content:"\e617"}.icon-king-title-icon:before{content:"\e680"}.king-cover-scrollbar{height:100%;width:100%;overflow:hidden;position:relative}.king-cover-scrollbar .king-cover-scrollbar-container{height:100%;width:100%;overflow:scroll;scrollbar-width:none}.king-cover-scrollbar .king-cover-scrollbar-rail{width:5px;top:2px;bottom:2px;position:absolute}.king-cover-scrollbar .king-cover-scrollbar-rail__scrollbar--vertical{position:absolute;border-radius:5px;width:100%;cursor:pointer}.king-pro-contract-view{position:relative;display:flex}.king-pro-contract-view .king-pro-contract-view__content{flex:1}.king-pro-contract-view .king-pro-contract-view__content-item{border:1px solid #f0f0f0;position:relative;box-shadow:0 2px 10px 0 rgba(0,0,0,.1)}.king-pro-contract-view>.ant-spin{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.king-pro-overlay{position:relative;cursor:pointer;display:inline-block}.king-pro-overlay .king-pro-overlay__content{transition:all .2s linear;opacity:0;position:absolute;display:flex;align-items:center;justify-content:center;inset:0}.king-pro-overlay:hover .king-pro-overlay__content{opacity:1;background:rgba(0,0,0,.5)}.king-plus-upload .king-plus-upload__icon-plus{font-size:32px!important}.king-plus-upload .king-plus-upload__icon-eye{font-size:16px!important;margin-right:5px;color:#fff!important}.king-plus-upload .king-plus-upload__icon-delete{font-size:16px!important;margin-right:5px;color:#fff!important}.king-plus-upload .king-plus-upload__file-item{width:102px;height:102px;display:flex;align-items:center;justify-content:center;border:1px solid #cbcdd3;border-radius:3px}
@@ -1 +1 @@
1
- .king-plus-upload .king-plus-upload__icon-plus{font-size:32px!important}.king-plus-upload .king-plus-upload__icon-eye{font-size:16px!important;margin-right:5px;color:#fff!important}.king-plus-upload .king-plus-upload__icon-delete{font-size:16px!important;margin-right:5px;color:#fff!important}.king-plus-upload .king-plus-upload__file-item{width:102px;height:102px;display:flex;align-items:center;justify-content:center;border:1px solid #cbcdd3;border-radius:3px}.king-plus-upload .king-plus-upload__preview{overflow:hidden}.king-plus-upload .ant-upload:hover .king-plus-upload__icon-plus{color:#1677ff!important}
1
+ .king-plus-upload .king-plus-upload__icon-plus{font-size:32px!important}.king-plus-upload .king-plus-upload__icon-eye{font-size:16px!important;margin-right:5px;color:#fff!important}.king-plus-upload .king-plus-upload__icon-delete{font-size:16px!important;margin-right:5px;color:#fff!important}.king-plus-upload .king-plus-upload__file-item{width:102px;height:102px;display:flex;align-items:center;justify-content:center;border:1px solid #cbcdd3;border-radius:3px}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@king-one/antdv",
3
3
  "type": "module",
4
- "version": "1.1.3",
4
+ "version": "1.1.5",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",