bkui-vue 0.0.1-beta.160 → 0.0.1-beta.161
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/dist/index.cjs.js +31 -31
- package/dist/index.esm.js +41 -8
- package/dist/index.umd.js +33 -33
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/date-picker/date-picker.css +15 -0
- package/lib/date-picker/date-picker.less +18 -0
- package/lib/date-picker/date-picker.variable.css +15 -0
- package/lib/date-picker/index.js +1 -1
- package/lib/icon/enlarge-line.d.ts +4 -0
- package/lib/icon/enlarge-line.js +1 -0
- package/lib/icon/filliscreen-line.d.ts +4 -0
- package/lib/icon/filliscreen-line.js +1 -0
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/img-error.d.ts +4 -0
- package/lib/icon/img-error.js +1 -0
- package/lib/icon/img-placehoulder.d.ts +4 -0
- package/lib/icon/img-placehoulder.js +1 -0
- package/lib/icon/index.d.ts +9 -0
- package/lib/icon/index.js +1 -1
- package/lib/icon/left-turn-line.d.ts +4 -0
- package/lib/icon/left-turn-line.js +1 -0
- package/lib/icon/narrow-line.d.ts +4 -0
- package/lib/icon/narrow-line.js +1 -0
- package/lib/icon/original .d.ts +4 -0
- package/lib/icon/original .js +1 -0
- package/lib/icon/right-turn-line.d.ts +4 -0
- package/lib/icon/{help.js → right-turn-line.js} +1 -1
- package/lib/icon/unfull-screen.d.ts +4 -0
- package/lib/icon/unfull-screen.js +1 -0
- package/lib/image/image-viewer.css +142 -0
- package/lib/image/image-viewer.d.ts +73 -0
- package/lib/image/image-viewer.less +168 -0
- package/lib/image/image-viewer.variable.css +142 -0
- package/lib/image/image.css +37 -0
- package/lib/image/image.d.ts +93 -0
- package/lib/image/image.less +44 -0
- package/lib/image/image.variable.css +37 -0
- package/lib/image/index.d.ts +246 -0
- package/lib/image/index.js +1 -0
- package/lib/image/props.d.ts +71 -0
- package/lib/message/messageConstructor.d.ts +1 -1
- package/lib/notify/notifyConstructor.d.ts +2 -2
- package/package.json +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"));else if("function"==typeof define&&define.amd)define(["vue"],t);else{var r="object"==typeof exports?t(require("vue")):t(e.vue);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,(e=>(()=>{"use strict";var t={9430:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(748);function o(e,t,r){return(0,n.h)(e.name,Object.assign(Object.assign({key:t},e.attributes),{style:"".concat(e.attributes.style," ").concat(r||"")}),(e.elements||[]).map((function(r,n){return o(r,"".concat(t,"-").concat(e.name,"-").concat(n))})))}Object.create,Object.create;var a=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),a=r.data,i=r.name,c=r.width,s=r.height,l=r.fill,u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(r,["data","name","width","height","fill"]),f="width: ".concat(c,"; height: ").concat(s,"; fill: ").concat(l);return(0,n.createVNode)("span",u,[o(a,i,f)])};a.inheritAttrs=!1,a.displayName="bkIcon";const i=a},748:t=>{t.exports=e}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{n.r(o),n.d(o,{default:()=>i});var e=n(748),t=n(9430),r=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M192 512a320 320 0 1 0 76.96-208H352v64H160V176h64v82.08A384 384 0 1 1 128 512Z"}}]}'),a=function(n,o){var a=Object.assign(Object.assign({},n),o.attrs);return(0,e.createVNode)(t.Z,(0,e.mergeProps)(a,{data:r,name:"leftTurnLine"}),null)};a.displayName="leftTurnLine",a.inheritAttrs=!1;const i=a})(),o})()));
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"));else if("function"==typeof define&&define.amd)define(["vue"],t);else{var r="object"==typeof exports?t(require("vue")):t(e.vue);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,(e=>(()=>{"use strict";var t={9430:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(748);function a(e,t,r){return(0,n.h)(e.name,Object.assign(Object.assign({key:t},e.attributes),{style:"".concat(e.attributes.style," ").concat(r||"")}),(e.elements||[]).map((function(r,n){return a(r,"".concat(t,"-").concat(e.name,"-").concat(n))})))}Object.create,Object.create;var o=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),o=r.data,i=r.name,c=r.width,s=r.height,l=r.fill,u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(r,["data","name","width","height","fill"]),p="width: ".concat(c,"; height: ").concat(s,"; fill: ").concat(l);return(0,n.createVNode)("span",u,[a(o,i,p)])};o.inheritAttrs=!1,o.displayName="bkIcon";const i=o},748:t=>{t.exports=e}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{n.r(a),n.d(a,{default:()=>i});var e=n(748),t=n(9430),r=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M886.56 841.28l-149.12-149.12a344.64 344.64 0 1 0-45.28 45.28l149.12 149.12A32 32 0 0 0 864 896a32 32 0 0 0 22.56-54.72ZM472.32 752A280.32 280.32 0 1 1 752 472.32 280.64 280.64 0 0 1 472.32 752Z"}},{"type":"element","name":"path","attributes":{"d":"M576 448H352a32 32 0 0 0 0 64H576a32 32 0 0 0 0-64Z"}}]}'),o=function(n,a){var o=Object.assign(Object.assign({},n),a.attrs);return(0,e.createVNode)(t.Z,(0,e.mergeProps)(o,{data:r,name:"narrowLine"}),null)};o.displayName="narrowLine",o.inheritAttrs=!1;const i=o})(),a})()));
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"));else if("function"==typeof define&&define.amd)define(["vue"],t);else{var r="object"==typeof exports?t(require("vue")):t(e.vue);for(var a in r)("object"==typeof exports?exports:e)[a]=r[a]}}(self,(e=>(()=>{"use strict";var t={9430:(e,t,r)=>{r.d(t,{Z:()=>i});var a=r(748);function n(e,t,r){return(0,a.h)(e.name,Object.assign(Object.assign({key:t},e.attributes),{style:"".concat(e.attributes.style," ").concat(r||"")}),(e.elements||[]).map((function(r,a){return n(r,"".concat(t,"-").concat(e.name,"-").concat(a))})))}Object.create,Object.create;var o=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),o=r.data,i=r.name,s=r.width,l=r.height,c=r.fill,p=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]])}return r}(r,["data","name","width","height","fill"]),u="width: ".concat(s,"; height: ").concat(l,"; fill: ").concat(c);return(0,a.createVNode)("span",p,[n(o,i,u)])};o.inheritAttrs=!1,o.displayName="bkIcon";const i=o},748:t=>{t.exports=e}},r={};function a(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,a),o.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{a.r(n),a.d(n,{default:()=>i});var e=a(748),t=a(9430),r=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M896 176H128a64 64 0 0 0-64 64V784a64 64 0 0 0 64 64H896a64 64 0 0 0 64-64V240A64 64 0 0 0 896 176Zm0 608H128V240H896Z"}},{"type":"element","name":"path","attributes":{"d":"M327.84 649.28h52.64V373.28H337.76A97.12 97.12 0 0 1 304 417.28a150.56 150.56 0 0 1-44.8 25.6v48a182.56 182.56 0 0 0 68.16-40Z"}},{"type":"element","name":"path","attributes":{"d":"M480.64 450.24H533.28V502.88H480.64V450.24z"}},{"type":"element","name":"path","attributes":{"d":"M480.64 596.64H533.28V649.28H480.64V596.64z"}},{"type":"element","name":"path","attributes":{"d":"M669.28 649.28h52.64V373.28H679.2a97.12 97.12 0 0 1-33.28 44 150.56 150.56 0 0 1-44.8 25.6v48a182.56 182.56 0 0 0 68.16-40Z"}}]}'),o=function(a,n){var o=Object.assign(Object.assign({},a),n.attrs);return(0,e.createVNode)(t.Z,(0,e.mergeProps)(o,{data:r,name:"original "}),null)};o.displayName="original ",o.inheritAttrs=!1;const i=o})(),n})()));
|
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"));else if("function"==typeof define&&define.amd)define(["vue"],t);else{var r="object"==typeof exports?t(require("vue")):t(e.vue);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,(e=>(()=>{"use strict";var t={9430:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(748);function o(e,t,r){return(0,n.h)(e.name,Object.assign(Object.assign({key:t},e.attributes),{style:"".concat(e.attributes.style," ").concat(r||"")}),(e.elements||[]).map((function(r,n){return o(r,"".concat(t,"-").concat(e.name,"-").concat(n))})))}Object.create,Object.create;var a=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),a=r.data,i=r.name,c=r.width,s=r.height,l=r.fill,
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"));else if("function"==typeof define&&define.amd)define(["vue"],t);else{var r="object"==typeof exports?t(require("vue")):t(e.vue);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,(e=>(()=>{"use strict";var t={9430:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(748);function o(e,t,r){return(0,n.h)(e.name,Object.assign(Object.assign({key:t},e.attributes),{style:"".concat(e.attributes.style," ").concat(r||"")}),(e.elements||[]).map((function(r,n){return o(r,"".concat(t,"-").concat(e.name,"-").concat(n))})))}Object.create,Object.create;var a=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),a=r.data,i=r.name,c=r.width,s=r.height,l=r.fill,u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(r,["data","name","width","height","fill"]),p="width: ".concat(c,"; height: ").concat(s,"; fill: ").concat(l);return(0,n.createVNode)("span",u,[o(a,i,p)])};a.inheritAttrs=!1,a.displayName="bkIcon";const i=a},748:t=>{t.exports=e}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{n.r(o),n.d(o,{default:()=>i});var e=n(748),t=n(9430),r=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M832 512a320 320 0 1 1-76.96-208H672v64H864V176H800v82.08A384 384 0 1 0 896 512Z"}}]}'),a=function(n,o){var a=Object.assign(Object.assign({},n),o.attrs);return(0,e.createVNode)(t.Z,(0,e.mergeProps)(a,{data:r,name:"rightTurnLine"}),null)};a.displayName="rightTurnLine",a.inheritAttrs=!1;const i=a})(),o})()));
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"));else if("function"==typeof define&&define.amd)define(["vue"],t);else{var r="object"==typeof exports?t(require("vue")):t(e.vue);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,(e=>(()=>{"use strict";var t={9430:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(748);function a(e,t,r){return(0,n.h)(e.name,Object.assign(Object.assign({key:t},e.attributes),{style:"".concat(e.attributes.style," ").concat(r||"")}),(e.elements||[]).map((function(r,n){return a(r,"".concat(t,"-").concat(e.name,"-").concat(n))})))}Object.create,Object.create;var o=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),o=r.data,i=r.name,c=r.width,l=r.height,s=r.fill,u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(r,["data","name","width","height","fill"]),p="width: ".concat(c,"; height: ").concat(l,"; fill: ").concat(s);return(0,n.createVNode)("span",u,[a(o,i,p)])};o.inheritAttrs=!1,o.displayName="bkIcon";const i=o},748:t=>{t.exports=e}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{n.r(a),n.d(a,{default:()=>i});var e=n(748),t=n(9430),r=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M384 896L320 896 320 704 128 704 128 640 384 640 384 896Z"}},{"type":"element","name":"path","attributes":{"d":"M896 640L896 704 704 704 704 896 640 896 640 640 896 640Z"}},{"type":"element","name":"path","attributes":{"d":"M320 128L384 128 384 384 128 384 128 320 320 320 320 128Z"}},{"type":"element","name":"path","attributes":{"d":"M704 320L896 320 896 384 640 384 640 128 704 128 704 320Z"}}]}'),o=function(n,a){var o=Object.assign(Object.assign({},n),a.attrs);return(0,e.createVNode)(t.Z,(0,e.mergeProps)(o,{data:r,name:"unfullScreen"}),null)};o.displayName="unfullScreen",o.inheritAttrs=!1;const i=o})(),a})()));
|
@@ -0,0 +1,142 @@
|
|
1
|
+
.bk-image-viewer-wrapper {
|
2
|
+
position: fixed;
|
3
|
+
top: 0;
|
4
|
+
right: 0;
|
5
|
+
bottom: 0;
|
6
|
+
left: 0;
|
7
|
+
display: flex;
|
8
|
+
background: rgba(0, 0, 0, 0.6);
|
9
|
+
flex-direction: column;
|
10
|
+
}
|
11
|
+
.bk-image-viewer-mask {
|
12
|
+
position: absolute;
|
13
|
+
top: 0;
|
14
|
+
right: 0;
|
15
|
+
bottom: 0;
|
16
|
+
left: 0;
|
17
|
+
}
|
18
|
+
.bk-image-viewer-header {
|
19
|
+
position: absolute;
|
20
|
+
top: 0;
|
21
|
+
left: 0;
|
22
|
+
z-index: 9;
|
23
|
+
display: flex;
|
24
|
+
width: 100%;
|
25
|
+
height: 52px;
|
26
|
+
color: #c4c6cc;
|
27
|
+
background: rgba(0, 0, 0, 0.7);
|
28
|
+
justify-content: space-between;
|
29
|
+
align-items: center;
|
30
|
+
}
|
31
|
+
.bk-image-viewer-header > div {
|
32
|
+
padding: 0 25px;
|
33
|
+
overflow: hidden;
|
34
|
+
font-size: 14px;
|
35
|
+
text-overflow: ellipsis;
|
36
|
+
white-space: nowrap;
|
37
|
+
flex: 1;
|
38
|
+
}
|
39
|
+
.bk-image-viewer-header .quit-box {
|
40
|
+
display: flex;
|
41
|
+
align-items: center;
|
42
|
+
justify-content: flex-end;
|
43
|
+
}
|
44
|
+
.bk-image-viewer-header .quit-tips {
|
45
|
+
font-size: 14px;
|
46
|
+
color: #979ba5;
|
47
|
+
}
|
48
|
+
.bk-image-viewer-btn {
|
49
|
+
position: absolute;
|
50
|
+
z-index: 1;
|
51
|
+
display: flex;
|
52
|
+
color: #dcdee5;
|
53
|
+
background-color: rgba(0, 0, 0, 0.3);
|
54
|
+
border-radius: 50%;
|
55
|
+
opacity: 0.8;
|
56
|
+
box-sizing: border-box;
|
57
|
+
user-select: none;
|
58
|
+
align-items: center;
|
59
|
+
justify-content: center;
|
60
|
+
}
|
61
|
+
.bk-image-viewer-btn:hover {
|
62
|
+
color: #fff;
|
63
|
+
background-color: rgba(0, 0, 0, 0.4);
|
64
|
+
}
|
65
|
+
.bk-image-viewer-close {
|
66
|
+
height: 52px;
|
67
|
+
font-size: 32px;
|
68
|
+
line-height: 48px;
|
69
|
+
color: #c4c6cc;
|
70
|
+
text-align: center;
|
71
|
+
cursor: pointer;
|
72
|
+
}
|
73
|
+
.bk-image-viewer-close:hover {
|
74
|
+
color: #fff;
|
75
|
+
}
|
76
|
+
.bk-image-viewer-canvas {
|
77
|
+
display: flex;
|
78
|
+
width: 100%;
|
79
|
+
height: 100%;
|
80
|
+
justify-content: center;
|
81
|
+
align-items: center;
|
82
|
+
}
|
83
|
+
.bk-image-viewer-has-header {
|
84
|
+
padding-top: 52px;
|
85
|
+
}
|
86
|
+
.bk-image-viewer-error {
|
87
|
+
font-size: 14px;
|
88
|
+
color: #313238;
|
89
|
+
text-align: center;
|
90
|
+
}
|
91
|
+
.bk-image-viewer-error .bk-icon {
|
92
|
+
margin-bottom: 15px;
|
93
|
+
font-size: 85px;
|
94
|
+
line-height: 1;
|
95
|
+
}
|
96
|
+
.bk-image-viewer-actions {
|
97
|
+
bottom: 30px;
|
98
|
+
left: 50%;
|
99
|
+
width: 282px;
|
100
|
+
height: 44px;
|
101
|
+
padding: 0 23px;
|
102
|
+
background-color: rgba(0, 0, 0, 0.4);
|
103
|
+
border-color: #fff;
|
104
|
+
border-radius: 22px;
|
105
|
+
transform: translateX(-50%);
|
106
|
+
}
|
107
|
+
.bk-image-viewer-actions:hover {
|
108
|
+
background: rgba(0, 0, 0, 0.5);
|
109
|
+
}
|
110
|
+
.bk-image-viewer-actions-inner {
|
111
|
+
display: flex;
|
112
|
+
width: 100%;
|
113
|
+
height: 100%;
|
114
|
+
font-size: 23px;
|
115
|
+
color: #c4c6cc;
|
116
|
+
text-align: justify;
|
117
|
+
align-items: center;
|
118
|
+
justify-content: space-around;
|
119
|
+
}
|
120
|
+
.bk-image-viewer-actions-inner .bk-icon {
|
121
|
+
cursor: pointer;
|
122
|
+
}
|
123
|
+
.bk-image-viewer-actions-inner .bk-icon:hover {
|
124
|
+
color: #fff;
|
125
|
+
}
|
126
|
+
.bk-image-viewer-next,
|
127
|
+
.bk-image-viewer-prev {
|
128
|
+
top: 50%;
|
129
|
+
width: 80px;
|
130
|
+
height: 80px;
|
131
|
+
font-size: 40px;
|
132
|
+
cursor: pointer;
|
133
|
+
}
|
134
|
+
.bk-image-viewer-prev {
|
135
|
+
left: 40px;
|
136
|
+
transform: translateY(-50%);
|
137
|
+
}
|
138
|
+
.bk-image-viewer-next {
|
139
|
+
right: 40px;
|
140
|
+
text-indent: 2px;
|
141
|
+
transform: translateY(-50%);
|
142
|
+
}
|
@@ -0,0 +1,73 @@
|
|
1
|
+
export declare type ViewerAction = 'zoomIn' | 'zoomOut' | 'clockwise' | 'anticlockwise';
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
3
|
+
urlList: {
|
4
|
+
type: import("vue").PropType<string[]>;
|
5
|
+
default: () => any[];
|
6
|
+
};
|
7
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
8
|
+
default: number;
|
9
|
+
} & {
|
10
|
+
default: number;
|
11
|
+
};
|
12
|
+
initialIndex: import("vue-types").VueTypeValidableDef<number> & {
|
13
|
+
default: number;
|
14
|
+
} & {
|
15
|
+
default: number;
|
16
|
+
};
|
17
|
+
isShowTitle: import("vue-types").VueTypeValidableDef<boolean> & {
|
18
|
+
default: boolean;
|
19
|
+
} & {
|
20
|
+
default: boolean;
|
21
|
+
};
|
22
|
+
loops: import("vue-types").VueTypeValidableDef<boolean> & {
|
23
|
+
default: boolean;
|
24
|
+
} & {
|
25
|
+
default: boolean;
|
26
|
+
};
|
27
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
28
|
+
default: boolean;
|
29
|
+
} & {
|
30
|
+
default: boolean;
|
31
|
+
};
|
32
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close")[], "change" | "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
33
|
+
urlList: {
|
34
|
+
type: import("vue").PropType<string[]>;
|
35
|
+
default: () => any[];
|
36
|
+
};
|
37
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
38
|
+
default: number;
|
39
|
+
} & {
|
40
|
+
default: number;
|
41
|
+
};
|
42
|
+
initialIndex: import("vue-types").VueTypeValidableDef<number> & {
|
43
|
+
default: number;
|
44
|
+
} & {
|
45
|
+
default: number;
|
46
|
+
};
|
47
|
+
isShowTitle: import("vue-types").VueTypeValidableDef<boolean> & {
|
48
|
+
default: boolean;
|
49
|
+
} & {
|
50
|
+
default: boolean;
|
51
|
+
};
|
52
|
+
loops: import("vue-types").VueTypeValidableDef<boolean> & {
|
53
|
+
default: boolean;
|
54
|
+
} & {
|
55
|
+
default: boolean;
|
56
|
+
};
|
57
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
58
|
+
default: boolean;
|
59
|
+
} & {
|
60
|
+
default: boolean;
|
61
|
+
};
|
62
|
+
}>> & {
|
63
|
+
onChange?: (...args: any[]) => any;
|
64
|
+
onClose?: (...args: any[]) => any;
|
65
|
+
}, {
|
66
|
+
zIndex: number;
|
67
|
+
urlList: string[];
|
68
|
+
initialIndex: number;
|
69
|
+
isShowTitle: boolean;
|
70
|
+
loops: boolean;
|
71
|
+
maskClose: boolean;
|
72
|
+
}>;
|
73
|
+
export default _default;
|
@@ -0,0 +1,168 @@
|
|
1
|
+
.bk-image-viewer {
|
2
|
+
&-wrapper {
|
3
|
+
position: fixed;
|
4
|
+
top: 0;
|
5
|
+
right: 0;
|
6
|
+
bottom: 0;
|
7
|
+
left: 0;
|
8
|
+
display: flex;
|
9
|
+
background: rgba(0, 0, 0, .6);
|
10
|
+
flex-direction: column;
|
11
|
+
}
|
12
|
+
|
13
|
+
&-mask {
|
14
|
+
position: absolute;
|
15
|
+
top: 0;
|
16
|
+
right: 0;
|
17
|
+
bottom: 0;
|
18
|
+
left: 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
&-header {
|
22
|
+
position: absolute;
|
23
|
+
top: 0;
|
24
|
+
left: 0;
|
25
|
+
z-index: 9;
|
26
|
+
display: flex;
|
27
|
+
width: 100%;
|
28
|
+
height: 52px;
|
29
|
+
color: #c4c6cc;
|
30
|
+
background: rgba(0, 0, 0, .70);
|
31
|
+
justify-content: space-between;
|
32
|
+
align-items: center;
|
33
|
+
|
34
|
+
> div {
|
35
|
+
padding: 0 25px;
|
36
|
+
overflow: hidden;
|
37
|
+
font-size: 14px;
|
38
|
+
text-overflow: ellipsis;
|
39
|
+
white-space: nowrap;
|
40
|
+
flex: 1;
|
41
|
+
}
|
42
|
+
|
43
|
+
.quit-box {
|
44
|
+
display: flex;
|
45
|
+
align-items: center;
|
46
|
+
justify-content: flex-end;
|
47
|
+
}
|
48
|
+
|
49
|
+
.quit-tips {
|
50
|
+
font-size: 14px;
|
51
|
+
color: #979ba5;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
&-btn {
|
56
|
+
position: absolute;
|
57
|
+
z-index: 1;
|
58
|
+
display: flex;
|
59
|
+
color: #dcdee5;
|
60
|
+
background-color: rgba(0, 0, 0, .3);
|
61
|
+
border-radius: 50%;
|
62
|
+
opacity: .8;
|
63
|
+
box-sizing: border-box;
|
64
|
+
user-select: none;
|
65
|
+
align-items: center;
|
66
|
+
justify-content: center;
|
67
|
+
|
68
|
+
&:hover {
|
69
|
+
color: #fff;
|
70
|
+
background-color: rgba(0, 0, 0, .4);
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
&-close {
|
75
|
+
height: 52px;
|
76
|
+
font-size: 32px;
|
77
|
+
line-height: 48px;
|
78
|
+
color: #c4c6cc;
|
79
|
+
text-align: center;
|
80
|
+
cursor: pointer;
|
81
|
+
|
82
|
+
&:hover {
|
83
|
+
color: #fff;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
&-canvas {
|
88
|
+
display: flex;
|
89
|
+
width: 100%;
|
90
|
+
height: 100%;
|
91
|
+
justify-content: center;
|
92
|
+
align-items: center
|
93
|
+
}
|
94
|
+
|
95
|
+
&-has-header {
|
96
|
+
padding-top: 52px;
|
97
|
+
}
|
98
|
+
|
99
|
+
&-error {
|
100
|
+
font-size: 14px;
|
101
|
+
color: #313238;
|
102
|
+
text-align: center;
|
103
|
+
|
104
|
+
.bk-icon {
|
105
|
+
margin-bottom: 15px;
|
106
|
+
font-size: 85px;
|
107
|
+
line-height: 1;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
&-actions {
|
112
|
+
bottom: 30px;
|
113
|
+
left: 50%;
|
114
|
+
width: 282px;
|
115
|
+
height: 44px;
|
116
|
+
padding: 0 23px;
|
117
|
+
background-color: rgba(0, 0, 0, .4);;
|
118
|
+
border-color: #fff;
|
119
|
+
border-radius: 22px;
|
120
|
+
transform: translateX(-50%);
|
121
|
+
|
122
|
+
&:hover {
|
123
|
+
background: rgba(0, 0, 0, .5);
|
124
|
+
}
|
125
|
+
|
126
|
+
&-inner {
|
127
|
+
display: flex;
|
128
|
+
width: 100%;
|
129
|
+
height: 100%;
|
130
|
+
font-size: 23px;
|
131
|
+
color: #c4c6cc;
|
132
|
+
text-align: justify;
|
133
|
+
align-items: center;
|
134
|
+
justify-content: space-around;
|
135
|
+
|
136
|
+
.bk-icon {
|
137
|
+
cursor: pointer;
|
138
|
+
|
139
|
+
&:hover {
|
140
|
+
color: #fff;
|
141
|
+
}
|
142
|
+
}
|
143
|
+
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
&-next,
|
148
|
+
&-prev {
|
149
|
+
top: 50%;
|
150
|
+
width: 80px;
|
151
|
+
height: 80px;
|
152
|
+
font-size: 40px;
|
153
|
+
cursor: pointer;
|
154
|
+
}
|
155
|
+
|
156
|
+
&-prev {
|
157
|
+
left: 40px;
|
158
|
+
transform: translateY(-50%);
|
159
|
+
transform: translateY(-50%)
|
160
|
+
}
|
161
|
+
|
162
|
+
&-next {
|
163
|
+
right: 40px;
|
164
|
+
text-indent: 2px;
|
165
|
+
transform: translateY(-50%);
|
166
|
+
transform: translateY(-50%)
|
167
|
+
}
|
168
|
+
}
|
@@ -0,0 +1,142 @@
|
|
1
|
+
.bk-image-viewer-wrapper {
|
2
|
+
position: fixed;
|
3
|
+
top: 0;
|
4
|
+
right: 0;
|
5
|
+
bottom: 0;
|
6
|
+
left: 0;
|
7
|
+
display: flex;
|
8
|
+
background: rgba(0, 0, 0, 0.6);
|
9
|
+
flex-direction: column;
|
10
|
+
}
|
11
|
+
.bk-image-viewer-mask {
|
12
|
+
position: absolute;
|
13
|
+
top: 0;
|
14
|
+
right: 0;
|
15
|
+
bottom: 0;
|
16
|
+
left: 0;
|
17
|
+
}
|
18
|
+
.bk-image-viewer-header {
|
19
|
+
position: absolute;
|
20
|
+
top: 0;
|
21
|
+
left: 0;
|
22
|
+
z-index: 9;
|
23
|
+
display: flex;
|
24
|
+
width: 100%;
|
25
|
+
height: 52px;
|
26
|
+
color: #c4c6cc;
|
27
|
+
background: rgba(0, 0, 0, 0.7);
|
28
|
+
justify-content: space-between;
|
29
|
+
align-items: center;
|
30
|
+
}
|
31
|
+
.bk-image-viewer-header > div {
|
32
|
+
padding: 0 25px;
|
33
|
+
overflow: hidden;
|
34
|
+
font-size: 14px;
|
35
|
+
text-overflow: ellipsis;
|
36
|
+
white-space: nowrap;
|
37
|
+
flex: 1;
|
38
|
+
}
|
39
|
+
.bk-image-viewer-header .quit-box {
|
40
|
+
display: flex;
|
41
|
+
align-items: center;
|
42
|
+
justify-content: flex-end;
|
43
|
+
}
|
44
|
+
.bk-image-viewer-header .quit-tips {
|
45
|
+
font-size: 14px;
|
46
|
+
color: #979ba5;
|
47
|
+
}
|
48
|
+
.bk-image-viewer-btn {
|
49
|
+
position: absolute;
|
50
|
+
z-index: 1;
|
51
|
+
display: flex;
|
52
|
+
color: #dcdee5;
|
53
|
+
background-color: rgba(0, 0, 0, 0.3);
|
54
|
+
border-radius: 50%;
|
55
|
+
opacity: 0.8;
|
56
|
+
box-sizing: border-box;
|
57
|
+
user-select: none;
|
58
|
+
align-items: center;
|
59
|
+
justify-content: center;
|
60
|
+
}
|
61
|
+
.bk-image-viewer-btn:hover {
|
62
|
+
color: #fff;
|
63
|
+
background-color: rgba(0, 0, 0, 0.4);
|
64
|
+
}
|
65
|
+
.bk-image-viewer-close {
|
66
|
+
height: 52px;
|
67
|
+
font-size: 32px;
|
68
|
+
line-height: 48px;
|
69
|
+
color: #c4c6cc;
|
70
|
+
text-align: center;
|
71
|
+
cursor: pointer;
|
72
|
+
}
|
73
|
+
.bk-image-viewer-close:hover {
|
74
|
+
color: #fff;
|
75
|
+
}
|
76
|
+
.bk-image-viewer-canvas {
|
77
|
+
display: flex;
|
78
|
+
width: 100%;
|
79
|
+
height: 100%;
|
80
|
+
justify-content: center;
|
81
|
+
align-items: center;
|
82
|
+
}
|
83
|
+
.bk-image-viewer-has-header {
|
84
|
+
padding-top: 52px;
|
85
|
+
}
|
86
|
+
.bk-image-viewer-error {
|
87
|
+
font-size: 14px;
|
88
|
+
color: #313238;
|
89
|
+
text-align: center;
|
90
|
+
}
|
91
|
+
.bk-image-viewer-error .bk-icon {
|
92
|
+
margin-bottom: 15px;
|
93
|
+
font-size: 85px;
|
94
|
+
line-height: 1;
|
95
|
+
}
|
96
|
+
.bk-image-viewer-actions {
|
97
|
+
bottom: 30px;
|
98
|
+
left: 50%;
|
99
|
+
width: 282px;
|
100
|
+
height: 44px;
|
101
|
+
padding: 0 23px;
|
102
|
+
background-color: rgba(0, 0, 0, 0.4);
|
103
|
+
border-color: #fff;
|
104
|
+
border-radius: 22px;
|
105
|
+
transform: translateX(-50%);
|
106
|
+
}
|
107
|
+
.bk-image-viewer-actions:hover {
|
108
|
+
background: rgba(0, 0, 0, 0.5);
|
109
|
+
}
|
110
|
+
.bk-image-viewer-actions-inner {
|
111
|
+
display: flex;
|
112
|
+
width: 100%;
|
113
|
+
height: 100%;
|
114
|
+
font-size: 23px;
|
115
|
+
color: #c4c6cc;
|
116
|
+
text-align: justify;
|
117
|
+
align-items: center;
|
118
|
+
justify-content: space-around;
|
119
|
+
}
|
120
|
+
.bk-image-viewer-actions-inner .bk-icon {
|
121
|
+
cursor: pointer;
|
122
|
+
}
|
123
|
+
.bk-image-viewer-actions-inner .bk-icon:hover {
|
124
|
+
color: #fff;
|
125
|
+
}
|
126
|
+
.bk-image-viewer-next,
|
127
|
+
.bk-image-viewer-prev {
|
128
|
+
top: 50%;
|
129
|
+
width: 80px;
|
130
|
+
height: 80px;
|
131
|
+
font-size: 40px;
|
132
|
+
cursor: pointer;
|
133
|
+
}
|
134
|
+
.bk-image-viewer-prev {
|
135
|
+
left: 40px;
|
136
|
+
transform: translateY(-50%);
|
137
|
+
}
|
138
|
+
.bk-image-viewer-next {
|
139
|
+
right: 40px;
|
140
|
+
text-indent: 2px;
|
141
|
+
transform: translateY(-50%);
|
142
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
.bk-image {
|
2
|
+
position: relative;
|
3
|
+
display: inline-block;
|
4
|
+
overflow: hidden;
|
5
|
+
}
|
6
|
+
.bk-image-inner {
|
7
|
+
width: 100%;
|
8
|
+
height: 100%;
|
9
|
+
vertical-align: top;
|
10
|
+
}
|
11
|
+
.bk-image-inner-center {
|
12
|
+
position: relative;
|
13
|
+
top: 50%;
|
14
|
+
left: 50%;
|
15
|
+
display: block;
|
16
|
+
transform: translate(-50%, -50%);
|
17
|
+
}
|
18
|
+
.bk-image-placeholder {
|
19
|
+
position: absolute;
|
20
|
+
top: 0;
|
21
|
+
left: 0;
|
22
|
+
display: flex;
|
23
|
+
width: 100%;
|
24
|
+
height: 100%;
|
25
|
+
font-size: 24px;
|
26
|
+
color: #c4c6cc;
|
27
|
+
vertical-align: middle;
|
28
|
+
background: #f0f1f5;
|
29
|
+
justify-content: center;
|
30
|
+
align-items: center;
|
31
|
+
}
|
32
|
+
.bk-image-placeholder img {
|
33
|
+
width: 100%;
|
34
|
+
}
|
35
|
+
.bk-image-preview {
|
36
|
+
cursor: pointer;
|
37
|
+
}
|