bkui-vue 0.0.2-table-refactor.6 → 0.0.2-table-refactor.8
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 +20 -20
- package/dist/index.esm.js +1176 -1170
- package/dist/index.umd.js +20 -20
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.js +1 -1
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.css +8 -8
- package/lib/backtop/backtop.less +3 -1
- package/lib/backtop/backtop.variable.css +11 -11
- package/lib/backtop/index.js +1 -1
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.css +4 -4
- package/lib/breadcrumb/breadcrumb.variable.css +4 -4
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +4 -4
- package/lib/card/card.variable.css +4 -4
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader.css +4 -4
- package/lib/cascader/cascader.variable.css +4 -4
- package/lib/cascader/index.js +1 -1
- package/lib/checkbox/index.js +1 -1
- package/lib/code-diff/index.js +1 -1
- package/lib/collapse/index.js +1 -1
- package/lib/collapse-transition/index.js +1 -1
- package/lib/color-picker/index.js +1 -1
- package/lib/components.js +1 -1
- package/lib/config-provider/index.js +1 -1
- package/lib/container/container.css +4 -4
- package/lib/container/container.variable.css +4 -4
- package/lib/container/index.js +1 -1
- package/lib/date-picker/index.js +1 -1
- package/lib/dialog/index.js +1 -1
- package/lib/directives/index.js +1 -1
- package/lib/dist.index.js +1 -1
- package/lib/divider/index.js +1 -1
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/index.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.js +1 -1
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/assistant.js +1 -1
- package/lib/icon/audio-fill.js +1 -1
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.js +1 -1
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy-shape.js +1 -1
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.js +1 -1
- package/lib/icon/del.js +1 -1
- package/lib/icon/doc-fill.js +1 -1
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.js +1 -1
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/enlarge-line.js +1 -1
- package/lib/icon/error.js +1 -1
- package/lib/icon/excel-fill.js +1 -1
- package/lib/icon/exclamation-circle-shape.js +1 -1
- package/lib/icon/eye.js +1 -1
- package/lib/icon/filliscreen-line.js +1 -1
- package/lib/icon/fix-line.js +1 -1
- package/lib/icon/fix-shape.js +1 -1
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/folder.js +1 -1
- package/lib/icon/funnel.js +1 -1
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/help.js +1 -1
- package/lib/icon/image-fill.js +1 -1
- package/lib/icon/img-error.js +1 -1
- package/lib/icon/img-placehoulder.js +1 -1
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/left-shape.js +1 -1
- package/lib/icon/left-turn-line.js +1 -1
- package/lib/icon/narrow-line.js +1 -1
- package/lib/icon/original.js +1 -1
- package/lib/icon/pdf-fill.js +1 -1
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.js +1 -1
- package/lib/icon/qq.js +1 -1
- package/lib/icon/right-shape.js +1 -1
- package/lib/icon/right-turn-line.js +1 -1
- package/lib/icon/search.js +1 -1
- package/lib/icon/share.js +1 -1
- package/lib/icon/spinner.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/switcher-loading.js +1 -1
- package/lib/icon/text-file.js +1 -1
- package/lib/icon/text-fill.js +1 -1
- package/lib/icon/transfer.js +1 -1
- package/lib/icon/tree-application-shape.js +1 -1
- package/lib/icon/unfull-screen.js +1 -1
- package/lib/icon/unvisible.js +1 -1
- package/lib/icon/up-shape.js +1 -1
- package/lib/icon/upload.js +1 -1
- package/lib/icon/video-fill.js +1 -1
- package/lib/icon/warn.js +1 -1
- package/lib/icon/weixin-pro.js +1 -1
- package/lib/icon/weixin.js +1 -1
- package/lib/image/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +1 -1
- package/lib/input/index.js +1 -1
- package/lib/input/input.css +4 -4
- package/lib/input/input.variable.css +4 -4
- package/lib/link/index.js +1 -1
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +4 -4
- package/lib/loading/loading.variable.css +4 -4
- package/lib/locale/index.js +1 -1
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu.css +4 -4
- package/lib/menu/menu.variable.css +4 -4
- package/lib/message/index.js +1 -1
- package/lib/modal/index.js +1 -1
- package/lib/navigation/index.js +1 -1
- package/lib/notify/index.js +1 -1
- package/lib/overflow-title/index.js +1 -1
- package/lib/pagination/index.js +1 -1
- package/lib/plugin-popover/index.js +1 -1
- package/lib/plugins/index.js +1 -1
- package/lib/pop-confirm/index.js +1 -1
- package/lib/popover/index.js +1 -1
- package/lib/popover2/index.js +1 -1
- package/lib/preset.js +1 -1
- package/lib/process/index.js +1 -1
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +4 -4
- package/lib/progress/progress.variable.css +4 -4
- package/lib/radio/index.js +1 -1
- package/lib/rate/index.js +1 -1
- package/lib/resize-layout/index.js +1 -1
- package/lib/search-select/index.js +1 -1
- package/lib/search-select/search-select.css +11 -11
- package/lib/search-select/search-select.less +13 -9
- package/lib/search-select/search-select.variable.css +11 -11
- package/lib/select/index.js +1 -1
- package/lib/select/select.css +4 -4
- package/lib/select/select.variable.css +28 -28
- package/lib/shared/index.js +1 -1
- package/lib/sideslider/index.js +1 -1
- package/lib/slider/index.js +1 -1
- package/lib/steps/index.js +1 -1
- package/lib/styles/mixins/animate.css +4 -4
- package/lib/styles/mixins/animate.less +10 -6
- package/lib/styles/mixins/animate.variable.css +126 -4
- package/lib/styles/mixins/mixins.css +4 -4
- package/lib/styles/mixins/mixins.variable.css +4 -4
- package/lib/swiper/index.js +1 -1
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +4 -4
- package/lib/switcher/switcher.variable.css +4 -4
- package/lib/tab/index.js +1 -1
- package/lib/table/components/table-column.d.ts +1 -0
- package/lib/table/index.d.ts +1 -0
- package/lib/table/index.js +1 -1
- package/lib/table/props.d.ts +1 -0
- package/lib/table/table.css +3 -1
- package/lib/table/table.less +3 -1
- package/lib/table/table.variable.css +3 -1
- package/lib/table/use-column.d.ts +2 -0
- package/lib/table-column/index.d.ts +3 -0
- package/lib/table-column/index.js +1 -1
- package/lib/tag/index.js +1 -1
- package/lib/tag-input/index.js +1 -1
- package/lib/time-picker/index.js +1 -1
- package/lib/timeline/index.js +1 -1
- package/lib/transfer/index.js +1 -1
- package/lib/tree/index.js +1 -1
- package/lib/upload/index.js +1 -1
- package/lib/upload/upload.css +4 -4
- package/lib/upload/upload.variable.css +4 -4
- package/lib/virtual-render/index.js +1 -1
- package/package.json +1 -1
package/lib/icon/text-fill.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"vue";var t={2439:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(6609);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,"function"==typeof SuppressedError&&SuppressedError;var o=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),o=r.data,i=r.name,s=r.width,c=r.height,l=r.fill,p=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"]),d="width: ".concat(s,"; height: ").concat(c,"; fill: ").concat(l);return(0,n.createVNode)("span",(0,n.mergeProps)({style:{display:"inline-flex","align-items":"center","justify-content":"center"}},p),[a(o,i,d)])};o.inheritAttrs=!1,o.displayName="bkIcon";const i=o},6609:(t,r,n)=>{var a,o;t.exports=(a={createVNode:()=>e.createVNode,h:()=>e.h,mergeProps:()=>e.mergeProps},o={},n.d(o,a),o)}},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.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);var a={};(()=>{n.d(a,{Z:()=>i});var e=n(6609),t=n(2439),r=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1303.273","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M664.4363636363637 0C676.8000000000001 0 688.5818181818182 4.945454545454545 697.3090909090909 13.672727272727274L697.3090909090909 13.672727272727274 1010.3272727272728 326.6909090909091C1019.0545454545455 335.41818181818184 1024 347.3454545454546 1024 359.70909090909095L1024 359.70909090909095 1024 1256.7272727272727C1024 1282.4727272727273 1003.2 1303.2727272727273 977.4545454545455 1303.2727272727273L977.4545454545455 1303.2727272727273 46.54545454545455 1303.2727272727273C20.8 1303.2727272727273 0 1282.4727272727273 0 1256.7272727272727L0 1256.7272727272727 0 46.54545454545455C0 20.8 20.8 0 46.54545454545455 0L46.54545454545455 0ZM721.4545454545455 930.909090909091L302.54545454545456 930.909090909091C289.6922824145455 930.909090909091 279.27272727272725 941.3286446545454 279.27272727272725 954.1818181818182L279.27272727272725 954.1818181818182 279.27272727272725 1000.7272727272727C279.27272727272725 1013.5804462545456 289.6922824145455 1024 302.54545454545456 1024L302.54545454545456 1024 721.4545454545455 1024C734.3077189818182 1024 744.7272727272727 1013.5804462545456 744.7272727272727 1000.7272727272727L744.7272727272727 1000.7272727272727 744.7272727272727 954.1818181818182C744.7272727272727 941.3286446545454 734.3077189818182 930.909090909091 721.4545454545455 930.909090909091L721.4545454545455 930.909090909091ZM628.3636363636364 744.7272727272727L302.54545454545456 744.7272727272727C289.6922824145455 744.7272727272727 279.27272727272725 755.1468264727272 279.27272727272725 768L279.27272727272725 768 279.27272727272725 814.5454545454546C279.27272727272725 827.3986280727273 289.6922824145455 837.8181818181819 302.54545454545456 837.8181818181819L302.54545454545456 837.8181818181819 628.3636363636364 837.8181818181819C641.2168098909091 837.8181818181819 651.6363636363636 827.3986280727273 651.6363636363636 814.5454545454546L651.6363636363636 814.5454545454546 651.6363636363636 768C651.6363636363636 755.1468264727272 641.2168098909091 744.7272727272727 628.3636363636364 744.7272727272727L628.3636363636364 744.7272727272727ZM442.1818181818182 558.5454545454545L302.54545454545456 558.5454545454545C289.6922824145455 558.5454545454545 279.27272727272725 568.9650082909092 279.27272727272725 581.8181818181819L279.27272727272725 581.8181818181819 279.27272727272725 628.3636363636364C279.27272727272725 641.2168098909091 289.6922824145455 651.6363636363636 302.54545454545456 651.6363636363636L302.54545454545456 651.6363636363636 442.1818181818182 651.6363636363636C455.0349903127273 651.6363636363636 465.4545454545455 641.2168098909091 465.4545454545455 628.3636363636364L465.4545454545455 628.3636363636364 465.4545454545455 581.8181818181819C465.4545454545455 568.9650082909092 455.0349903127273 558.5454545454545 442.1818181818182 558.5454545454545L442.1818181818182 558.5454545454545ZM642.9090909090909 107.34545454545454L642.9090909090909 381.0909090909091 916.6545454545455 381.0909090909091 642.9090909090909 107.34545454545454Z"}}]}'),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:"textFill"}),null)};o.displayName="textFill",o.inheritAttrs=!1;const i=o})();var o=a.Z;export{o as default};
|
package/lib/icon/transfer.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"vue";var t={2439:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(6609);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,"function"==typeof SuppressedError&&SuppressedError;var o=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),o=r.data,s=r.name,i=r.width,c=r.height,l=r.fill,p=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"]),d="width: ".concat(i,"; height: ").concat(c,"; fill: ").concat(l);return(0,n.createVNode)("span",(0,n.mergeProps)({style:{display:"inline-flex","align-items":"center","justify-content":"center"}},p),[a(o,s,d)])};o.inheritAttrs=!1,o.displayName="bkIcon";const s=o},6609:(t,r,n)=>{var a,o;t.exports=(a={createVNode:()=>e.createVNode,h:()=>e.h,mergeProps:()=>e.mergeProps},o={},n.d(o,a),o)}},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.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);var a={};(()=>{n.d(a,{Z:()=>s});var e=n(6609),t=n(2439),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":{"fill-rule":"evenodd","d":"M832 448L618.6800000000001 224.00000000000003 617.0133344000001 368.9411776 192 368.94117760000006 192 448.00000000000006 832 448ZM832 576L192 576 405.34666560000005 800 407.01333439999996 655.0588224 832 655.0588224 832 576Z"}}]}'),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:"transfer"}),null)};o.displayName="transfer",o.inheritAttrs=!1;const s=o})();var o=a.Z;export{o as default};
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"vue";var t={2439:(e,t,r)=>{r.d(t,{Z:()=>c});var a=r(6609);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,"function"==typeof SuppressedError&&SuppressedError;var o=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),o=r.data,c=r.name,i=r.width,s=r.height,l=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"]),d="width: ".concat(i,"; height: ").concat(s,"; fill: ").concat(l);return(0,a.createVNode)("span",(0,a.mergeProps)({style:{display:"inline-flex","align-items":"center","justify-content":"center"}},p),[n(o,c,d)])};o.inheritAttrs=!1,o.displayName="bkIcon";const c=o},6609:(t,r,a)=>{var n,o;t.exports=(n={createVNode:()=>e.createVNode,h:()=>e.h,mergeProps:()=>e.mergeProps},o={},a.d(o,n),o)}},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.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);var n={};(()=>{a.d(n,{Z:()=>c});var e=a(6609),t=a(2439),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":"M432.64 576h156.79999999999998l-79.36-260.48-77.44 260.48z"}},{"type":"element","name":"path","attributes":{"d":"M512 0c-282.75199999999995 0-512 229.248-512 512s229.248 512 512 512c282.75199999999995 0 512-229.248 512-512s-229.248-512-512-512zM681.5999999999999 768h-9.6c-0.042666666666666665 0-0.128 0-0.21333333333333332 0-14.250666666666667 0-26.325333333333333-9.301333333333332-30.464-22.186666666666667l-32.04266666666666-105.81333333333333h-192l-33.28 105.6c-4.1386666666666665 13.994666666666667-16.896 24.02133333333333-32 24.02133333333333-18.389333333333333 0-33.32266666666666-14.933333333333332-33.32266666666666-33.32266666666666 0-3.328 0.46933333333333327-6.485333333333333 1.3653333333333333-9.514666666666667l133.07733333333334-429.82399999999996c9.813333333333333-23.552 32.64-39.808 59.263999999999996-39.808 24.917333333333332 0 46.464 14.208 57.04533333333333 34.986666666666665l134.57066666666665 434.304c1.152 3.157333333333333 1.792 6.784 1.792 10.581333333333333 0 14.890666666666664-10.197333333333333 27.434666666666665-23.97866666666667 30.976z"}}]}'),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:"treeApplicationShape"}),null)};o.displayName="treeApplicationShape",o.inheritAttrs=!1;const c=o})();var o=n.Z;export{o as default};
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"vue";var t={2439:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(6609);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,"function"==typeof SuppressedError&&SuppressedError;var o=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),o=r.data,s=r.name,i=r.width,c=r.height,l=r.fill,p=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"]),u="width: ".concat(i,"; height: ").concat(c,"; fill: ").concat(l);return(0,n.createVNode)("span",(0,n.mergeProps)({style:{display:"inline-flex","align-items":"center","justify-content":"center"}},p),[a(o,s,u)])};o.inheritAttrs=!1,o.displayName="bkIcon";const s=o},6609:(t,r,n)=>{var a,o;t.exports=(a={createVNode:()=>e.createVNode,h:()=>e.h,mergeProps:()=>e.mergeProps},o={},n.d(o,a),o)}},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.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);var a={};(()=>{n.d(a,{Z:()=>s});var e=n(6609),t=n(2439),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 s=o})();var o=a.Z;export{o as default};
|
package/lib/icon/unvisible.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"vue";var t={2439:(e,t,r)=>{r.d(t,{Z:()=>i});var a=r(6609);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,"function"==typeof SuppressedError&&SuppressedError;var o=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),o=r.data,i=r.name,s=r.width,c=r.height,l=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"]),m="width: ".concat(s,"; height: ").concat(c,"; fill: ").concat(l);return(0,a.createVNode)("span",(0,a.mergeProps)({style:{display:"inline-flex","align-items":"center","justify-content":"center"}},p),[n(o,i,m)])};o.inheritAttrs=!1,o.displayName="bkIcon";const i=o},6609:(t,r,a)=>{var n,o;t.exports=(n={createVNode:()=>e.createVNode,h:()=>e.h,mergeProps:()=>e.mergeProps},o={},a.d(o,n),o)}},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.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);var n={};(()=>{a.d(n,{Z:()=>i});var e=a(6609),t=a(2439),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":"M500.16 304a355.04 355.04 0 0 1 128 24.8l48-48.96a426.08 426.08 0 0 0-176-39.84v64Z"}},{"type":"element","name":"path","attributes":{"d":"M763.2 328.8l-46.08 46.08a822.24 822.24 0 0 1 160 138.88 807.52 807.52 0 0 1-86.88 85.12C723.84 654.24 620.48 720 502.56 720a331.52 331.52 0 0 1-111.04-19.52l-49.44 49.28a402.4 402.4 0 0 0 160 34.24C768 784 960 512 960 512A962.56 962.56 0 0 0 763.2 328.8Z"}},{"type":"element","name":"path","attributes":{"d":"M254.88 701.12l46.08-46.08a706.56 706.56 0 0 1-156.64-144C197.44 442.88 328.16 304 500.16 304V240h0C234.72 240 64 512 64 512A838.72 838.72 0 0 0 254.88 701.12Z"}},{"type":"element","name":"path","attributes":{"d":"M512 640a128 128 0 0 0 110.24-192.96L888 181.28A32 32 0 1 0 842.72 136L576.96 401.76a128 128 0 0 0-176 176L136 842.72a32 32 0 1 0 45.28 45.28L447.04 622.24A128 128 0 0 0 512 640Zm64-128a64 64 0 0 1-64 64 60.96 60.96 0 0 1-16-2.4L573.6 496A60.96 60.96 0 0 1 576 512Zm-64-64a60.96 60.96 0 0 1 16 2.4L450.4 528A60.96 60.96 0 0 1 448 512 64 64 0 0 1 512 448Z"}}]}'),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:"unvisible"}),null)};o.displayName="unvisible",o.inheritAttrs=!1;const i=o})();var o=n.Z;export{o as default};
|
package/lib/icon/up-shape.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"vue";var t={2439:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(6609);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,"function"==typeof SuppressedError&&SuppressedError;var o=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),o=r.data,c=r.name,s=r.width,i=r.height,l=r.fill,p=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"]),u="width: ".concat(s,"; height: ").concat(i,"; fill: ").concat(l);return(0,n.createVNode)("span",(0,n.mergeProps)({style:{display:"inline-flex","align-items":"center","justify-content":"center"}},p),[a(o,c,u)])};o.inheritAttrs=!1,o.displayName="bkIcon";const c=o},6609:(t,r,n)=>{var a,o;t.exports=(a={createVNode:()=>e.createVNode,h:()=>e.h,mergeProps:()=>e.mergeProps},o={},n.d(o,a),o)}},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.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);var a={};(()=>{n.d(a,{Z:()=>c});var e=n(6609),t=n(2439),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 671.3599999999999c0-2.5599999999999996-0.6399999999999999-4.4799999999999995-1.2799999999999998-7.04-0.6399999999999999-1.92-0.6399999999999999-3.84-1.2799999999999998-5.119999999999999s-1.2799999999999998-2.5599999999999996-1.92-3.1999999999999997c-1.2799999999999998-2.5599999999999996-2.5599999999999996-4.4799999999999995-4.4799999999999995-6.3999999999999995 0 0 0 0 0-0.6399999999999999l-356.48-384c-10.239999999999998-11.52-26.88-11.52-37.12 0l-356.48 384c0 0 0 0.6399999999999999 0 0.6399999999999999-1.92 1.92-2.5599999999999996 3.84-3.84 6.3999999999999995-0.6399999999999999 1.2799999999999998-1.92 2.5599999999999996-2.5599999999999996 3.84s-0.6399999999999999 3.1999999999999997-1.2799999999999998 5.119999999999999c-0.6399999999999999 1.2799999999999998-1.2799999999999998 3.84-1.2799999999999998 6.3999999999999995 0 0 0 0.6399999999999999 0 0.6399999999999999 0 1.92 0.6399999999999999 3.1999999999999997 0.6399999999999999 4.4799999999999995 0 2.5599999999999996 0.6399999999999999 4.4799999999999995 1.2799999999999998 7.04s1.92 4.4799999999999995 3.1999999999999997 6.3999999999999995c0.6399999999999999 1.2799999999999998 1.2799999999999998 2.5599999999999996 1.92 3.84 0 0 0 0 0.6399999999999999 0.6399999999999999 1.2799999999999998 1.92 3.1999999999999997 3.1999999999999997 5.119999999999999 4.4799999999999995 1.2799999999999998 0.6399999999999999 2.5599999999999996 1.92 3.84 2.5599999999999996s2.5599999999999996 0.6399999999999999 3.84 1.2799999999999998c1.92 0 3.84 1.2799999999999998 6.3999999999999995 1.2799999999999998 0 0 0.6399999999999999 0 0.6399999999999999 0h712.96c3.84 0 7.68-0.6399999999999999 10.879999999999999-2.5599999999999996 0.6399999999999999 0 0.6399999999999999-0.6399999999999999 1.2799999999999998-0.6399999999999999 3.1999999999999997-1.92 5.76-3.84 8.32-6.3999999999999995 0 0 0 0 0.6399999999999999 0 0.6399999999999999-1.2799999999999998 1.2799999999999998-2.5599999999999996 1.92-3.84 1.2799999999999998-1.92 2.5599999999999996-3.84 3.1999999999999997-6.3999999999999995 0.6399999999999999-1.92 0.6399999999999999-4.4799999999999995 1.2799999999999998-7.04 0-1.92 0.6399999999999999-3.1999999999999997 0.6399999999999999-4.4799999999999995-0.6399999999999999-0.6399999999999999-0.6399999999999999-1.2799999999999998-0.6399999999999999-1.2799999999999998z"}}]}'),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:"upShape"}),null)};o.displayName="upShape",o.inheritAttrs=!1;const c=o})();var o=a.Z;export{o as default};
|
package/lib/icon/upload.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"vue";var t={2439:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(6609);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,"function"==typeof SuppressedError&&SuppressedError;var c=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),c=r.data,o=r.name,s=r.width,i=r.height,l=r.fill,p=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"]),d="width: ".concat(s,"; height: ").concat(i,"; fill: ").concat(l);return(0,n.createVNode)("span",(0,n.mergeProps)({style:{display:"inline-flex","align-items":"center","justify-content":"center"}},p),[a(c,o,d)])};c.inheritAttrs=!1,c.displayName="bkIcon";const o=c},6609:(t,r,n)=>{var a,c;t.exports=(a={createVNode:()=>e.createVNode,h:()=>e.h,mergeProps:()=>e.mergeProps},c={},n.d(c,a),c)}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var c=r[e]={exports:{}};return t[e](c,c.exports,n),c.exports}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);var a={};(()=>{n.d(a,{Z:()=>o});var e=n(6609),t=n(2439),r=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M897.6 422.4c-27.2-27.2-62.4-48-100.8-57.6C768 209.6 619.2 104 462.4 131.2c-120 20.8-212.8 115.2-233.6 233.6C131.2 388.8 64 475.2 64 574.4v9.6C64 704 160 800 278.4 800H320v-64h-41.6C195.2 736 128 668.8 128 585.6v-9.6c0-83.2 67.2-150.4 150.4-150.4H288c0-3.2 0-4.8 0-8l0 0c0-1.6 0-3.2 0-4.8v-1.6c0-1.6 0-3.2 0-4.8 0 0 0 0 0-1.6 0-1.6 0-3.2 0-4.8v-1.6c0-1.6 0-3.2 0-3.2 0-1.6 0-1.6 0-3.2 0 0 0-1.6 0-1.6 1.6-9.6 3.2-20.8 6.4-30.4l0 0c30.4-120 153.6-192 272-161.6 78.4 20.8 140.8 81.6 161.6 161.6l0 0c3.2 9.6 4.8 20.8 4.8 30.4 0 0 0 1.6 0 1.6 0 0 0 1.6 0 3.2 0 1.6 0 3.2 0 3.2V400c0 1.6 0 3.2 0 3.2v1.6c0 1.6 0 3.2 0 4.8v1.6c0 1.6 0 3.2 0 4.8l0 0c0 3.2 0 4.8 0 8h9.6c83.2-1.6 152 65.6 153.6 148.8 0 1.6 0 1.6 0 3.2v9.6c0 83.2-67.2 150.4-150.4 150.4l0 0H704v64h41.6C864 800 960 704 960 585.6v-9.6C960 518.4 937.6 464 897.6 422.4z"}},{"type":"element","name":"path","attributes":{"d":"M376 603.2L420.8 648 480 588.8 480 896 544 896 544 588.8 603.2 648 648 603.2 512 467.2z"}}]}'),c=function(n,a){var c=Object.assign(Object.assign({},n),a.attrs);return(0,e.createVNode)(t.Z,(0,e.mergeProps)(c,{data:r,name:"upload"}),null)};c.displayName="upload",c.inheritAttrs=!1;const o=c})();var c=a.Z;export{c as default};
|
package/lib/icon/video-fill.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"vue";var t={2439:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(6609);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,"function"==typeof SuppressedError&&SuppressedError;var o=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),o=r.data,i=r.name,s=r.width,c=r.height,l=r.fill,p=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"]),d="width: ".concat(s,"; height: ").concat(c,"; fill: ").concat(l);return(0,n.createVNode)("span",(0,n.mergeProps)({style:{display:"inline-flex","align-items":"center","justify-content":"center"}},p),[a(o,i,d)])};o.inheritAttrs=!1,o.displayName="bkIcon";const i=o},6609:(t,r,n)=>{var a,o;t.exports=(a={createVNode:()=>e.createVNode,h:()=>e.h,mergeProps:()=>e.mergeProps},o={},n.d(o,a),o)}},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.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);var a={};(()=>{n.d(a,{Z:()=>i});var e=n(6609),t=n(2439),r=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1303.273","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M664.4363636363636 0C676.8 0 688.5818181818182 4.945454545454554 697.3090909090909 13.67272727272728L697.3090909090909 13.67272727272728 1010.3272727272728 326.69090909090914C1019.0545454545455 335.41818181818184 1024 347.3454545454546 1024 359.70909090909095L1024 359.70909090909095 1024 1256.7272727272727C1024 1282.4727272727273 1003.2 1303.2727272727273 977.4545454545455 1303.2727272727273L977.4545454545455 1303.2727272727273 46.54545454545455 1303.2727272727273C20.80000000000002 1303.2727272727273 0 1282.4727272727273 0 1256.7272727272727L0 1256.7272727272727 0 46.54545454545455C0 20.799999999999997 20.80000000000002 0 46.54545454545455 0L46.54545454545455 0ZM397.1878772363637 614.0514816000001L397.1878772363637 848.3380922181818C397.1878772363637 912.7669108363636 440.14042298181823 936.1955746909091 494.8073006545455 901.0525835636363L650.9983744 797.5759965090909C703.7128610909091 758.5282280727272 703.7128610909091 699.9565730909092 650.9983744 664.8135819636365L494.8073006545455 561.3369949090909C442.0928139636364 526.1940037818182 397.1878772363637 549.6226676363636 397.1878772363637 614.0514816000001ZM642.9090909090909 107.34545454545456L642.9090909090909 381.0909090909091 916.6545454545455 381.0909090909091 642.9090909090909 107.34545454545456Z"}}]}'),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:"videoFill"}),null)};o.displayName="videoFill",o.inheritAttrs=!1;const i=o})();var o=a.Z;export{o as default};
|
package/lib/icon/warn.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"vue";var t={2439:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(6609);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,"function"==typeof SuppressedError&&SuppressedError;var o=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),o=r.data,s=r.name,i=r.width,c=r.height,l=r.fill,p=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"]),d="width: ".concat(i,"; height: ").concat(c,"; fill: ").concat(l);return(0,n.createVNode)("span",(0,n.mergeProps)({style:{display:"inline-flex","align-items":"center","justify-content":"center"}},p),[a(o,s,d)])};o.inheritAttrs=!1,o.displayName="bkIcon";const s=o},6609:(t,r,n)=>{var a,o;t.exports=(a={createVNode:()=>e.createVNode,h:()=>e.h,mergeProps:()=>e.mergeProps},o={},n.d(o,a),o)}},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.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);var a={};(()=>{n.d(a,{Z:()=>s});var e=n(6609),t=n(2439),r=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM544 704h-64v-64h64V704zM544 576h-64V320h64V576z"}}]}'),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:"warn"}),null)};o.displayName="warn",o.inheritAttrs=!1;const s=o})();var o=a.Z;export{o as default};
|
package/lib/icon/weixin-pro.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"vue";var t={2439:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(6609);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,"function"==typeof SuppressedError&&SuppressedError;var o=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),o=r.data,i=r.name,s=r.width,c=r.height,l=r.fill,p=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"]),d="width: ".concat(s,"; height: ").concat(c,"; fill: ").concat(l);return(0,n.createVNode)("span",(0,n.mergeProps)({style:{display:"inline-flex","align-items":"center","justify-content":"center"}},p),[a(o,i,d)])};o.inheritAttrs=!1,o.displayName="bkIcon";const i=o},6609:(t,r,n)=>{var a,o;t.exports=(a={createVNode:()=>e.createVNode,h:()=>e.h,mergeProps:()=>e.mergeProps},o={},n.d(o,a),o)}},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.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);var a={};(()=>{n.d(a,{Z:()=>i});var e=n(6609),t=n(2439),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":{"fill-rule":"evenodd","d":"M938.7497408 751.2461728C920.8062784 754.82336 903.6971584 761.7483104 888.3171424 771.6588704 873.2444672 787.4767936 854.2148288 798.974768 833.2014368 804.9605504 836.0031424 786.1484224 845.3295104 768.9776576 859.4186848 756.288864 871.2167136 738.281152 879.7148672 718.3169824 884.5154368 697.3306592 884.4496448 667.4985536 908.5720768 643.2573504 938.404144 643.1764192 968.2362112 643.0958944 992.489488 667.2061888 992.5854336 697.0382144 992.6808128 726.8702368 968.5826592 751.1355776 938.750688 751.2461728L938.7497408 751.2461728ZM839.887392 621.8411552C821.9636704 609.9596288 802.0664544 601.3664832 781.1284256 596.4645152 751.2856864 596.4645152 727.0933632 572.2721952 727.0933632 542.429456 727.0933632 512.5867168 751.2856864 488.3943936 781.1284256 488.3943936 810.9711648 488.3943936 835.1634848 512.5867168 835.1634848 542.429456 838.6847584 560.4011296 845.5262144 577.5586592 855.3370944 593.0223936 871.0537888 608.2166208 882.4379744 627.3243168 888.3180928 648.3790848 869.6373984 645.3981472 852.5734656 636.017312 840.046784 621.8421056L839.8475424 621.8421056 839.887392 621.8411552ZM750.8684864 431.3972864C734.5781792 294.94863136 593.2860736 188.03885088 422.3355456 188.03885088 240.21615008 188.03885088 92.03979968 309.2379936 92.03979936 458.2948 94.95593632 541.9888 139.14855232 618.8011392 210.0368576 663.38856 221.5372432 671.8631712 233.5698912 679.5906336 246.06054752 686.5232672L231.41160288 745.0013984C236.6943312 747.4833696 241.81766656 750.1247328 247.220888 752.4065152L321.18952 715.4226752C331.9959616 718.2243776 343.3640736 720.025136 354.650592 721.9463872 361.85552 723.2272224 369.060448 724.547904 376.4655648 725.4283584 422.593232 731.2438688 469.3960992 728.5578336 514.5555872 717.5033184 515.9529792 737.516592 519.6048064 757.3082016 525.4417248 776.50232 491.6425696 784.4255424 457.0499232 788.4674784 422.3345984 788.5497504 391.1907104 788.3740096 360.1499136 784.9532608 329.7151296 778.3429248L195.50556 845.347616C185.07039904 850.6853344 172.46917184 849.3674432 163.36421984 841.9861376 154.22346368 834.663392 150.17630784 822.6930592 152.99800448 811.3258208L177.01316512 714.622864C89.00876864 658.6573248 34.6398832 562.5538336 32 458.2948 32 275.85661632 206.75317888 128 422.3345984 128 627.0270304 128 794.6568768 261.44676096 810.9870336 431.077552 801.5855328 429.6306336 792.1123872 428.6953568 782.6094496 428.2758464 772.0022464 428.6762272 761.3950432 429.6762272 750.8675392 431.35744L750.8684864 431.3972864ZM626.1873728 644.4559392C644.1598464 640.8534752 661.250912 633.9692288 676.6209184 624.0432416 691.71416 608.248368 710.757408 596.778 731.7764736 590.8212576 728.9118528 609.5693568 719.631904 626.7430496 705.5193792 639.413248 693.7119872 657.4246176 685.2262272 677.4378848 680.4235744 698.4113024 680.4673568 728.2381472 656.3353184 752.4593408 626.5085184 752.5256864 596.6817152 752.59176 572.442384 728.4779392 572.353504 698.6511968 572.2651136 668.8244512 596.360704 644.5669952 626.1873728 644.4559392L626.1873728 644.4559392ZM723.5307488 774.460576C741.3827264 786.4283072 761.2356512 795.0744128 782.1293728 800.0772544 803.9845152 800.0772544 823.6876576 813.2424736 832.0512608 833.4339936 840.4148608 853.6255104 835.7918496 876.8669536 820.3379296 892.3208736 804.8840128 907.7747904 781.6425696 912.3978016 761.4510496 904.0342016 741.2595328 895.6706016 728.0943136 875.967456 728.0943136 854.1123136 724.6504032 836.118624 717.8619424 818.9305632 708.0810464 803.43968 692.4234336 788.1759744 681.1209152 769.0118048 675.339136 747.9235968 694.0371744 751.0004768 711.0783168 760.4976768 723.5307488 774.7812608L723.5307488 774.460576Z"}}]}'),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:"weixinPro"}),null)};o.displayName="weixinPro",o.inheritAttrs=!1;const i=o})();var o=a.Z;export{o as default};
|
package/lib/icon/weixin.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"vue";var t={2439:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(6609);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,"function"==typeof SuppressedError&&SuppressedError;var c=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),c=r.data,s=r.name,o=r.width,i=r.height,l=r.fill,p=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"]),m="width: ".concat(o,"; height: ").concat(i,"; fill: ").concat(l);return(0,n.createVNode)("span",(0,n.mergeProps)({style:{display:"inline-flex","align-items":"center","justify-content":"center"}},p),[a(c,s,m)])};c.inheritAttrs=!1,c.displayName="bkIcon";const s=c},6609:(t,r,n)=>{var a,c;t.exports=(a={createVNode:()=>e.createVNode,h:()=>e.h,mergeProps:()=>e.mergeProps},c={},n.d(c,a),c)}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var c=r[e]={exports:{}};return t[e](c,c.exports,n),c.exports}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);var a={};(()=>{n.d(a,{Z:()=>s});var e=n(6609),t=n(2439),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":"M603.52 348.8c0 26.496-22.357333333333333 48-49.919999999999995 48s-49.919999999999995-21.503999999999998-49.919999999999995-48c0-26.496 22.357333333333333-48 49.919999999999995-48s49.919999999999995 21.503999999999998 49.919999999999995 48z"}},{"type":"element","name":"path","attributes":{"d":"M357.11999999999995 348.8c0 26.496-22.357333333333333 48-49.919999999999995 48s-49.919999999999995-21.503999999999998-49.919999999999995-48c0-26.496 22.357333333333333-48 49.919999999999995-48s49.919999999999995 21.503999999999998 49.919999999999995 48z"}},{"type":"element","name":"path","attributes":{"d":"M693.12 604.16c0 15.914666666666665-13.184 28.8-29.439999999999998 28.8s-29.439999999999998-12.885333333333332-29.439999999999998-28.8c0-15.914666666666665 13.184-28.8 29.439999999999998-28.8s29.439999999999998 12.885333333333332 29.439999999999998 28.8z"}},{"type":"element","name":"path","attributes":{"d":"M951.68 832c43.775999999999996-42.410666666666664 71.29599999999999-101.41866666666665 72.32-166.86933333333332-4.608-109.696-77.35466666666666-201.0453333333333-176.72533333333334-233.30133333333333 5.674666666666667-12.117333333333331 10.154666666666666-26.282666666666664 10.154666666666666-41.471999999999994 0-4.522666666666666-0.38399999999999995-8.959999999999999-1.152-13.226666666666667-33.834666666666664-181.29066666666665-212.39466666666664-313.1306666666667-425.5146666666667-313.1306666666667-238.71999999999997 0-430.72 167.04-430.72 372.48 1.2799999999999998 107.56266666666666 50.56 203.30666666666664 127.40266666666668 267.05066666666664l-16.682666666666666 55.50933333333333c-2.1759999999999997 6.784-3.456 14.634666666666668-3.456 22.741333333333333 0 42.410666666666664 34.38933333333333 76.8 76.8 76.8 12.458666666666666 0 24.191999999999997-2.944 34.602666666666664-8.234666666666666l101.33333333333333-52.906666666666666c32.81066666666666 7.722666666666666 70.52799999999999 12.159999999999998 109.22666666666666 12.159999999999998 0.08533333333333333 0 0.17066666666666666 0 0.21333333333333332 0h28.16c13.098666666666666-0.7679999999999999 25.130666666666663-4.693333333333333 35.54133333333333-11.050666666666666 54.22933333333333 73.55733333333333 140.672 120.53333333333333 238.07999999999998 120.53333333333333 1.664 0 3.3706666666666667 0 5.034666666666666-0.042666666666666665 21.077333333333332-0.08533333333333333 41.855999999999995-2.1759999999999997 61.99466666666667-6.101333333333333l49.10933333333333 26.581333333333333c9.941333333333333 5.034666666666666 21.717333333333332 8.021333333333333 34.176 8.021333333333333 42.410666666666664 0 76.8-34.38933333333333 76.8-76.8 0-8.106666666666666-1.2799999999999998-15.957333333333333-3.584-23.296zM430.72 752.64c-0.17066666666666666 0-0.38399999999999995 0-0.5973333333333333 0-40.831999999999994 0-80.29866666666666-5.8453333333333335-117.58933333333331-16.72533333333333l-3.456 0.7253333333333334-131.2 67.19999999999999 35.199999999999996-113.27999999999999h-3.1999999999999997c-86.10133333333332-52.05333333333333-143.40266666666668-144.17066666666665-145.92-249.89866666666666 0-172.50133333333332 165.76-312.66133333333335 366.72-312.66133333333335 5.717333333333333-0.3413333333333333 12.415999999999999-0.512 19.157333333333334-0.512 163.32799999999997 0 300.58666666666664 111.40266666666668 340.0106666666667 262.4l-14.805333333333332 2.432c-183.04 0-327.03999999999996 112-327.03999999999996 285.44 0.512 26.709333333333333 5.1626666666666665 52.181333333333335 13.312 75.98933333333332zM872.96 812.8v0l21.759999999999998 67.84-81.28-40.959999999999994h-3.84c-21.119999999999997 6.101333333333333-45.397333333333336 9.6-70.48533333333333 9.6-0.17066666666666666 0-0.38399999999999995 0-0.5546666666666666 0-5.888 0.5973333333333333-12.757333333333332 0.9386666666666665-19.712 0.9386666666666665-107.09333333333332 0-195.2853333333333-80.93866666666666-206.71999999999997-184.95999999999998 10.367999999999999-106.96533333333333 99.072-189.1413333333333 206.976-189.1413333333333 5.973333333333334 0 11.861333333333334 0.256 17.706666666666663 0.7253333333333334 4.309333333333333-0.512 10.197333333333333-0.7253333333333334 16.170666666666666-0.7253333333333334 107.904 0 196.60799999999998 82.17599999999999 206.976 187.34933333333333-1.7066666666666666 63.82933333333333-35.79733333333333 118.44266666666665-86.18666666666667 148.90666666666667z"}},{"type":"element","name":"path","attributes":{"d":"M839.68 604.16c0 15.914666666666665-13.184 28.8-29.439999999999998 28.8s-29.439999999999998-12.885333333333332-29.439999999999998-28.8c0-15.914666666666665 13.184-28.8 29.439999999999998-28.8s29.439999999999998 12.885333333333332 29.439999999999998 28.8z"}}]}'),c=function(n,a){var c=Object.assign(Object.assign({},n),a.attrs);return(0,e.createVNode)(t.Z,(0,e.mergeProps)(c,{data:r,name:"weixin"}),null)};c.displayName="weixin",c.inheritAttrs=!1;const s=c})();var c=a.Z;export{c as default};
|
package/lib/image/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as t from"vue";import*as o from"../config-provider";import*as a from"../icon";import*as r from"vue-types";import*as n from"lodash";import*as l from"../directives";var i={d:(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},c={};i.d(c,{Ee:()=>w,OO:()=>V,ZP:()=>k});const s=(u={PropTypes:()=>e.PropTypes,bkZIndexManager:()=>e.bkZIndexManager,withInstall:()=>e.withInstall},d={},i.d(d,u),d);var u,d;const v=(e=>{var t={};return i.d(t,e),t})({Fragment:()=>t.Fragment,Teleport:()=>t.Teleport,Transition:()=>t.Transition,computed:()=>t.computed,createTextVNode:()=>t.createTextVNode,createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,effectScope:()=>t.effectScope,ref:()=>t.ref,resolveDirective:()=>t.resolveDirective,shallowRef:()=>t.shallowRef,watch:()=>t.watch,withDirectives:()=>t.withDirectives}),f=(e=>{var t={};return i.d(t,e),t})({usePrefix:()=>o.usePrefix}),m=(e=>{var t={};return i.d(t,e),t})({AngleLeft:()=>a.AngleLeft,AngleRight:()=>a.AngleRight,Close:()=>a.Close,Spinner:()=>a.Spinner}),p=(e=>{var t={};return i.d(t,e),t})({toType:()=>r.toType});var g;!function(e){e.FILL="fill",e.CONTAIN="contain",e.COVER="cover",e.NONE="none",e.SCALE_DOWN="scale-down"}(g||(g={}));var h={src:s.PropTypes.string.def(""),fallback:s.PropTypes.string.def(""),placeholder:s.PropTypes.any,fit:(0,p.toType)("fit",{}).def(g.FILL),lazy:s.PropTypes.bool,urlList:s.PropTypes.array.def([]),isShowPreviewTitle:s.PropTypes.bool.def(!0),maskClose:s.PropTypes.bool.def(!0),zIndex:s.PropTypes.number.def(2e3)},b={urlList:{type:Array,default:function(){return[]}},zIndex:s.PropTypes.number.def(2e3),initialIndex:s.PropTypes.number.def(0),isShowTitle:s.PropTypes.bool.def(!0),loops:s.PropTypes.bool.def(!0),maskClose:s.PropTypes.bool.def(!0)};const w=(0,v.defineComponent)({name:"Image",props:h,emits:["loaded","error","close","change"],setup:function(e,t){var o=t.emit,a=t.slots,r=(0,v.ref)(!0),n=(0,v.ref)(!0),l=(0,v.ref)(!1),i=(0,v.ref)(""),c=(0,v.ref)("");function s(){}(0,v.watch)((function(){return e.src}),(function(){r.value=!0,n.value=!1,c.value=e.src}));var u=(0,v.computed)((function(){var t;return(null===(t=null==e?void 0:e.urlList)||void 0===t?void 0:t.length)>0}));function d(){document.body.style.overflow=i.value,l.value=!1,o("close")}function p(e){o("change",e)}var g=(0,f.usePrefix)().resolveClassName;return function(){return(0,v.createVNode)("div",{class:"".concat(g("image"))},[r.value?(0,v.createVNode)("div",{class:"".concat(g("image-placeholder"))},[(0,v.createVNode)(m.Spinner,null,null)]):n.value?a.error?"function"==typeof a.error?a.error():a.error:(0,v.createVNode)("div",{class:"".concat(g("image-placeholder"))},[e.fallback?(0,v.createVNode)("img",{src:e.fallback,alt:"图片加载错误"},null):"",(0,v.withDirectives)((0,v.createVNode)("i",{class:"".concat(g("icon")," icon-image-fail")},null),[[(0,v.resolveDirective)("else")]])]):(0,v.createVNode)("img",{src:e.src,onClick:s},null),u.value&&l.value?(0,v.createVNode)(V,{zIndex:e.zIndex,maskClose:e.maskClose,"is-show-title":e.isShowPreviewTitle,"url-list":e.urlList,onClose:d,onChange:p},null):""])}}}),N=(e=>{var t={};return i.d(t,e),t})({throttle:()=>n.throttle}),T=(e=>{var t={};return i.d(t,e),t})({bkTooltips:()=>l.bkTooltips}),V=(0,v.defineComponent)({name:"ImageViewer",directives:{bkTooltips:T.bkTooltips},props:b,emits:["close","change"],setup:function(e,t){var o=t.emit,a=(0,v.effectScope)(),r=(0,v.ref)(),n=(0,v.ref)([]),l=(0,v.ref)(""),i=(0,v.ref)(e.initialIndex),c=(0,v.ref)(!1),u=(0,v.ref)(!1),d=(0,v.shallowRef)({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),p=(0,v.computed)((function(){var t;return(null===(t=null==e?void 0:e.urlList)||void 0===t?void 0:t.length)<2})),g=(0,v.computed)((function(){return 0===i.value})),h=(0,v.computed)((function(){return i.value===e.urlList.length-1})),b=(0,v.computed)((function(){return e.urlList[i.value]})),w=(0,v.computed)((function(){var e=b.value.split("/");return e[e.length-1]})),T=(0,v.computed)((function(){var e=d.value,t=e.scale,o=e.deg,a=e.offsetX,r=e.offsetY,n=e.enableTransition,i=a/t,c=r/t;switch(o%360){case 90:case-270:var s=[c,-i];i=s[0],c=s[1];break;case 180:case-180:var u=[-i,-c];i=u[0],c=u[1];break;case 270:case-90:var v=[-c,i];i=v[0],c=v[1]}var f={transform:"scale(".concat(t,") rotate(").concat(o,"deg) translate(").concat(i,"px, ").concat(c,"px)"),transition:n?"transform .3s":""};return"contain"===l.value&&(f.maxWidth="100%",f.maxHeight="100%"),f})),V=(0,v.computed)((function(){var t=2e3;return e.zIndex?t=e.zIndex:t+=s.bkZIndexManager.getModalNextIndex()||1,{zIndex:t}})),k=(0,N.throttle)((function(e){switch(Number(e.code)){case 27:x();break;case 32:c.value||(l.value="original",d.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1});break;case 37:L();break;case 38:I("zoomIn");break;case 39:C();break;case 40:I("zoomOut")}})),y=(0,N.throttle)((function(e){I((e.wheelDelta?e.wheelDelta:-e.detail)>0?"zoomIn":"zoomOut",{zoomRate:1.2,enableTransition:!1})}));function x(){document.removeEventListener("keydown",k),document.removeEventListener("mousewheel",y),a.stop(),o("close")}function L(){if(!g.value||e.loops){var t=e.urlList.length;i.value=(i.value-1+t)%t}}function C(){if(!h.value||e.loops){var t=e.urlList.length;i.value=(i.value+1)%t}}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!c.value){var o=Object.assign({zoomRate:.2,rotateDeg:90,enableTransition:!0},t),a=o.zoomRate,r=o.rotateDeg,n=o.enableTransition;switch(e){case"zoomOut":d.value.scale>.2&&(d.value.scale=Number.parseFloat((d.value.scale-a).toFixed(3)));break;case"zoomIn":d.value.scale<7&&(d.value.scale=Number.parseFloat((d.value.scale+a).toFixed(3)));break;case"clockwise":d.value.deg+=r;break;case"anticlockwise":d.value.deg-=r}d.value.enableTransition=n}}function P(){u.value=!1,c.value=!1}function z(e){u.value=!0,c.value=!1,e.target.alt="加载失败"}function O(e){if(!c.value&&0===e.button&&r.value){d.value.enableTransition=!1;var t=d.value,o=t.offsetX,a=t.offsetY,n=e.pageX,l=e.pageY,i=(0,N.throttle)((function(e){d.value=Object.assign(Object.assign({},d.value),{offsetX:o+e.pageX-n,offsetY:a+e.pageY-l})}));document.addEventListener("mousemove",i),document.addEventListener("mouseup",(function e(){document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",e)})),e.preventDefault()}}a.run((function(){document.addEventListener("keydown",k),document.addEventListener("mousewheel",y)}));var D=(0,f.usePrefix)().resolveClassName;return function(){return(0,v.createVNode)(v.Teleport,{to:"body"},{default:function(){return[(0,v.createVNode)(v.Transition,null,{default:function(){return[(0,v.createVNode)("div",{tabindex:"-1",ref:"wrapper",class:"".concat(D("image-viewer-wrapper")),style:V.value},[(0,v.createVNode)("div",{class:"".concat(D("image-viewer-mask")),onClick:function(){e.maskClose&&x()}},null),e.isShowTitle&&e.urlList.length?(0,v.createVNode)("div",{class:"".concat(D("image-viewer-header"))},[(0,v.createVNode)("div",null,[w]),(0,v.createVNode)("div",{class:"tc "},[i.value+1,(0,v.createTextVNode)("/"),e.urlList.length]),(0,v.createVNode)("div",{class:"quit-box tr"},[(0,v.createVNode)("div",{class:"quit-tips mr10"},[(0,v.createTextVNode)("ESC 可以退出全屏")]),(0,v.createVNode)("div",{class:"".concat(D("image-viewer-close")),onClick:x},[(0,v.createVNode)(m.Close,null,null)])])]):"",p.value?"":(0,v.createVNode)(v.Fragment,null,[(0,v.createVNode)("div",{onClick:L,class:"".concat(D("image-viewer-btn")," ").concat(D("image-viewer-prev")," ").concat(!e.loops&&g?"is-disabled":"")},[(0,v.createVNode)(m.AngleLeft,null,null)]),(0,v.createVNode)("div",{onClick:C,class:"".concat(D("image-viewer-btn")," ").concat(D("image-viewer-prev")," ").concat(!e.loops&&h?"is-disabled":"")},[(0,v.createVNode)(m.AngleRight,null,null)]),(0,v.createVNode)("div",{class:"".concat(D("image-viewer-actions-inner"))},[(0,v.withDirectives)((0,v.createVNode)(m.AngleLeft,{onClick:function(){return I("zoomOut")}},null),[[(0,v.resolveDirective)("bk-tooltips"),"{content: '提示信息', placement: 'top'}"]]),(0,v.withDirectives)((0,v.createVNode)("i",{class:"",onClick:function(){return I("zoomOut")}},null),[[(0,v.resolveDirective)("bk-tooltips"),"{content: '提示信息', placement: 'top'}"]]),(0,v.withDirectives)((0,v.createVNode)("i",{class:"".concat(D("icon")," icon-narrow-line"),onClick:function(){return I("zoomOut")}},null),[[(0,v.resolveDirective)("bk-tooltips"),"{content: '提示信息', placement: 'top'}"]])])]),(0,v.createVNode)("div",{class:"".concat(D("image-viewer-canvas")," ").concat(e.isShowTitle?D("image-viewer-has-header"):"")},[u.value?(0,v.createVNode)("div",{class:"".concat(D("image-viewer-error"))},[(0,v.createVNode)("div",null,[(0,v.createVNode)("i",{class:"".concat(D("icon")," icon-image-fail")},null)]),(0,v.createVNode)("div",null,[(0,v.createTextVNode)("抱歉,图片加载失败")])]):e.urlList.map((function(e,t){return t===i.value?"":(0,v.createVNode)("img",{key:t,ref:function(e){return n[t]=e},class:"".concat(D("image-viewer-img")),style:T.value,src:e,onLoad:P,onError:z,onMousedown:O},null)}))])])]}})]}})}}}),k=(0,s.withInstall)(w);var y=c.Ee,x=c.OO,L=c.ZP;export{y as Image,x as ImageViewer,L as default};
|
package/lib/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as o from"./preset";import*as r from"./components";import*as t from"./directives";import*as e from"./plugins";import*as a from"./config-provider";import*as s from"./hooks";var p={d:(o,r)=>{for(var t in r)p.o(r,t)&&!p.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:r[t]})},o:(o,r)=>Object.prototype.hasOwnProperty.call(o,r)},d={};p.d(d,{default:()=>i.default,plugins:()=>l});const i=(f={default:()=>o.default},m={},p.d(m,f),m);var f,m;p.d({},{}),p.d({},{});const l=e;p.d({},{}),p.d({},{});var n=d.default,u=d.plugins;export{n as default,u as plugins};
|
package/lib/info-box/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
2
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../config-provider"),require("../button"),require("../icon"),require("../modal"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../button","../icon","../modal"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider"),require("../button"),require("../icon"),require("../modal")):t(e["../shared"],e.vue,e["../config-provider"],e["../button"],e["../icon"],e["../modal"]);for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,((e,t,o,n,r,i)=>(()=>{var a={4976:e=>{"use strict";e.exports=n},2717:e=>{"use strict";e.exports=o},6870:e=>{"use strict";e.exports=r},8014:e=>{"use strict";e.exports=i},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t},7609:(e,t,o)=>{var n=o(7425).default;function r(){"use strict";e.exports=r=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,o){e[t]=o.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",s=l.toStringTag||"@@toStringTag";function f(e,t,o){return Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,o){return e[t]=o}}function d(e,t,o,n){var r=t&&t.prototype instanceof h?t:h,i=Object.create(r.prototype),l=new E(n||[]);return a(i,"_invoke",{value:C(e,o,l)}),i}function p(e,t,o){try{return{type:"normal",arg:e.call(t,o)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var v={};function h(){}function m(){}function y(){}var g={};f(g,c,(function(){return this}));var x=Object.getPrototypeOf,b=x&&x(x(O([])));b&&b!==o&&i.call(b,c)&&(g=b);var w=y.prototype=h.prototype=Object.create(g);function T(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function o(r,a,l,c){var u=p(e[r],e,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==n(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,l,c)}),(function(e){o("throw",e,l,c)})):t.resolve(f).then((function(e){s.value=e,l(s)}),(function(e){return o("throw",e,l,c)}))}c(u.arg)}var r;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,r){o(e,n,t,r)}))}return r=r?r.then(i,i):i()}})}function C(e,t,o){var n="suspendedStart";return function(r,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw i;return{value:void 0,done:!0}}for(o.method=r,o.arg=i;;){var a=o.delegate;if(a){var l=S(a,o);if(l){if(l===v)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===n)throw n="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);n="executing";var c=p(e,t,o);if("normal"===c.type){if(n=o.done?"completed":"suspendedYield",c.arg===v)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(n="completed",o.method="throw",o.arg=c.arg)}}}function S(e,t){var o=t.method,n=e.iterator[o];if(void 0===n)return t.delegate=null,"throw"===o&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==o&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+o+"' method")),v;var r=p(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,v;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,v):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function O(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,n=function t(){for(;++o<e.length;)if(i.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:P}}function P(){return{value:void 0,done:!0}}return m.prototype=y,a(w,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:m,configurable:!0}),m.displayName=f(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,f(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},T(N.prototype),f(N.prototype,u,(function(){return this})),t.AsyncIterator=N,t.async=function(e,o,n,r,i){void 0===i&&(i=Promise);var a=new N(d(e,o,n,r),i);return t.isGeneratorFunction(o)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},T(w),f(w,s,"Generator"),f(w,c,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),o=[];for(var n in t)o.push(n);return o.reverse(),function e(){for(;o.length;){var n=o.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(o,n){return a.type="throw",a.arg=e,t.next=o,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n],a=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=i.call(r,"catchLoc"),c=i.call(r,"finallyLoc");if(l&&c){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var r=n;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.finallyLoc===e)return this.complete(o.completion,o.afterLoc),j(o),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc===e){var n=o.completion;if("throw"===n.type){var r=n.arg;j(o)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:O(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=void 0),v}},t}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(o){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2841:(e,t,o)=>{var n=o(7609)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},l={};function c(e){var t=l[e];if(void 0!==t)return t.exports;var o=l[e]={exports:{}};return a[e](o,o.exports,c),o.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var o in t)c.o(t,o)&&!c.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{"use strict";c.r(u),c.d(u,{default:()=>m});var e=c(4212);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}var o=c(2841),n=c.n(o);function r(e,t,o,n){return new(o||(o=Promise))((function(r,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function l(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,l)}c((n=n.apply(e,t||[])).next())}))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var i=c(748),a=c(2717),l=c(4976),s=c.n(l),f=c(6870),d=c(8014),p=c.n(d);const v=Object.assign(Object.assign({},d.propsMixin),{width:e.PropTypes.oneOfType([String,Number]).def(""),height:e.PropTypes.oneOfType([String,Number]).def(""),confirmText:e.PropTypes.string,cancelText:e.PropTypes.string,prevText:e.PropTypes.string,nextText:e.PropTypes.string,current:e.PropTypes.number.def(1),totalStep:e.PropTypes.number,title:e.PropTypes.string.def("title"),headerAlign:(0,e.alignType)().def(e.AlignEnum.LEFT),footerAlign:(0,e.alignType)().def(e.AlignEnum.RIGHT),theme:e.PropTypes.theme().def(e.ThemeEnum.PRIMARY),dialogType:(0,e.dialogTypeUnion)(),isLoading:e.PropTypes.bool.def(!1)}),h=(0,i.defineComponent)({name:"Dialog",components:{BkModal:p(),BkButton:s()},props:v,emits:["closed","update:isShow","confirm","prev","next","value-change"],setup:function(e,t){var o=this,l=t.emit,c=(0,a.useLocale)("dialog"),u=(0,i.computed)((function(){return void 0===e.confirmText?c.value.ok:e.confirmText})),s=(0,i.computed)((function(){return void 0===e.cancelText?c.value.cancel:e.cancelText})),f=(0,i.computed)((function(){return void 0===e.prevText?c.value.prev:e.prevText})),d=(0,i.computed)((function(){return void 0===e.nextText?c.value.next:e.nextText})),p=(0,i.reactive)({positionX:0,positionY:0,moveStyle:{top:"",left:""}}),v=(0,i.ref)(e.isShow);(0,i.onMounted)((function(){e.escClose&&addEventListener("keydown",y)})),(0,i.onBeforeUnmount)((function(){e.escClose&&removeEventListener("keydown",y)})),(0,i.watch)((function(){return e.isShow}),(function(e){e?v.value=!0:setTimeout((function(){p.moveStyle={top:"50%",left:"50%"},p.positionX=0,p.positionY=0,v.value=!1}),250),l("value-change",e)}));var h=function(){return r(o,void 0,void 0,n().mark((function t(){var o;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=!0,"function"!=typeof e.beforeClose){t.next=5;break}return t.next=4,e.beforeClose();case 4:o=t.sent;case 5:o&&(l("update:isShow",!1),l("closed"),v.value=!1);case 6:case"end":return t.stop()}}),t)})))},m=(0,i.computed)((function(){return["process","operation","confirm"].includes(e.dialogType)})),y=function(t){e.isShow&&e.closeIcon&&27===t.keyCode&&h()},g=(0,a.usePrefix)().resolveClassName;return{data:p,handleClose:h,handleConfirm:function(){l("update:isShow",!1),l("confirm")},escCloseHandler:y,moveHandler:function(t){if(e.fullscreen)return!1;if(!e.draggable)return!1;var o,n,r=t.target,i=t.currentTarget.parentNode.parentNode.offsetHeight,a=t.currentTarget.parentNode.parentNode.offsetWidth;0!==p.positionX&&0!==p.positionY?(o=t.clientX-p.positionX,n=t.clientY-p.positionY):(o=t.clientX-r.offsetLeft,n=t.clientY-r.offsetTop),document.onmousemove=function(e){var t=window.innerWidth-a,r=window.innerHeight-i,l=e.clientX-o,c=e.clientY-n;t/2-l<=0?l=t/2:t/2+l<=0&&(l=-t/2),r/2-c<=0?c=r/2:r/2+c<=0&&(c=-r/2),p.positionX=l,p.positionY=c,p.moveStyle.left="calc(50% + ".concat(l,"px)"),p.moveStyle.top="calc(50% + ".concat(c,"px)")},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}},handlePrevStep:function(){l("prev")},handleNextStep:function(){l("next")},hasFooter:m,isModalShow:v,localConfirmText:u,localCancelText:s,localPrevText:f,localNextText:d,resolveClassName:g}},render:function(){var e,t=this,o={header:function(){var e,o,n,r,a,l;return[(0,i.createVNode)("div",{class:[t.resolveClassName("dialog-tool"),t.fullscreen||!t.draggable?"":"move",t.draggable?"content-dragging":""],onMousedown:t.moveHandler},[null!==(n=null===(o=(e=t.$slots).tools)||void 0===o?void 0:o.call(e))&&void 0!==n?n:""]),(0,i.createVNode)("div",{class:t.resolveClassName("dialog-header")},[(0,i.createVNode)("div",{class:t.resolveClassName("header-icon")},[t.infoType?{loading:(0,i.createVNode)(f.Spinner,{class:[t.resolveClassName("info-icon"),"primary"]},null),warning:(0,i.createVNode)(f.Warn,{class:[t.resolveClassName("info-icon"),"warning"]},null),success:(0,i.createVNode)(f.Success,{class:[t.resolveClassName("info-icon"),"success"]},null),danger:(0,i.createVNode)(f.Close,{class:[t.resolveClassName("info-icon"),"danger"]},null)}[t.infoType]:(0,i.createVNode)("slot",{name:"info-icon"},null)]),(0,i.createVNode)("span",{class:t.resolveClassName("dialog-title"),style:"text-align: ".concat(t.headerAlign)},[null!==(l=null===(a=(r=t.$slots).header)||void 0===a?void 0:a.call(r))&&void 0!==l?l:t.title])])]},default:function(){var e,o,n;return null!==(n=null===(o=(e=t.$slots).default)||void 0===o?void 0:o.call(e))&&void 0!==n?n:"default"},footer:function(){var e,o,n,r,a,l,c,u,f;return(0,i.createVNode)("div",{class:t.resolveClassName("dialog-footer"),style:"text-align: ".concat(t.footerAlign)},["process"===t.dialogType?null!==(n=null===(o=(e=t.$slots).footer)||void 0===o?void 0:o.call(e))&&void 0!==n?n:(0,i.createVNode)(i.Fragment,null,[1===t.current?"":(0,i.createVNode)(s(),{class:t.resolveClassName("dialog-perv"),onClick:t.handlePrevStep},{default:function(){return[t.localPrevText]}}),t.current===t.totalStep?"":(0,i.createVNode)(s(),{class:t.resolveClassName("dialog-next"),onClick:t.handleNextStep},{default:function(){return[t.localNextText]}}),t.current===t.totalStep?(0,i.createVNode)(s(),{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.localConfirmText]}}):"",(0,i.createVNode)(s(),{class:t.resolveClassName("dialog-cancel"),onClick:t.handleClose,disabled:t.isLoading},{default:function(){return[t.localCancelText]}})]):"","operation"===t.dialogType?null!==(l=null===(a=(r=t.$slots).footer)||void 0===a?void 0:a.call(r))&&void 0!==l?l:(0,i.createVNode)(i.Fragment,null,[(0,i.createVNode)(s(),{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.localConfirmText]}}),(0,i.createVNode)(s(),{class:t.resolveClassName("dialog-cancel"),onClick:t.handleClose,disabled:t.isLoading},{default:function(){return[t.localCancelText]}})]):"","confirm"===t.dialogType?null!==(f=null===(u=(c=t.$slots).footer)||void 0===u?void 0:u.call(c))&&void 0!==f?f:(0,i.createVNode)(i.Fragment,null,[(0,i.createVNode)(s(),{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.localConfirmText]}})]):""])},close:function(){return(0,i.createVNode)(f.Error,{onClick:t.handleClose},null)}},n="".concat(this.resolveClassName("dialog-wrapper ")," ").concat(this.scrollable?"scroll-able":""," ").concat(this.multiInstance?"multi-instance":""," ").concat(this.hasFooter?"has-footer":"no-footer");return(0,i.createVNode)(p(),(0,i.mergeProps)(this.$props,{class:n,onClose:this.handleClose,isShow:this.isModalShow,style:this.data.moveStyle}),"function"==typeof(e=o)||"[object Object]"===Object.prototype.toString.call(e)&&!(0,i.isVNode)(e)?o:{default:function(){return[o]}})}}),m=(0,e.withInstall)((function(e){var o=document.createElement("div"),l=(0,i.ref)(!1),c=(0,i.shallowRef)(e),u=(0,i.defineComponent)({name:"DialogConfirm",setup:function(e,o){var u=this,s=o.expose;(0,i.onMounted)((function(){(document.activeElement||document.body).blur(),!1!==c.value.isShow&&(l.value=!0)}));var f=function(){return r(u,void 0,void 0,n().mark((function e(){var t,o;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(null===(t=c.value)||void 0===t?void 0:t.onClosed)){e.next=3;break}return e.next=3,null===(o=c.value)||void 0===o?void 0:o.onClosed();case 3:l.value=!1;case 4:case"end":return e.stop()}}),e)})))},d=function(){return r(u,void 0,void 0,n().mark((function e(){var t,o;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(null===(t=c.value)||void 0===t?void 0:t.onConfirm)){e.next=3;break}return e.next=3,null===(o=c.value)||void 0===o?void 0:o.onConfirm();case 3:l.value=!1;case 4:case"end":return e.stop()}}),e)})))};s({update:function(e){c.value=Object.assign(Object.assign({},c.value),e)}});var p=(0,a.usePrefix)().resolveClassName;return function(){return(0,i.createVNode)(h,Object.assign(Object.assign({class:p("info-wrapper"),headerAlign:"center",footerAlign:"center",transfer:!0,fullscreen:!1},c.value),{isShow:l.value,onClosed:f,onConfirm:d}),function(){var e=[],o=[];if(c.value.subTitle)switch(t(c.value.subTitle)){case"string":default:e.push(c.value.subTitle);break;case"function":e.push(c.value.subTitle())}return e.length&&o.push((0,i.h)("div",{class:p("info-sub-title"),style:"text-Align:".concat(c.value.contentAlign||"center")},e)),o}())}}}),s=(0,i.createApp)(u).mount(o);return{show:function(){l.value=!0},hide:function(){l.value=!1},update:function(e){s.update(e)},destroy:function(){s.unmount(),s=null}}}))})(),u})()));
|
2
|
+
import*as e from"../shared";import*as t from"vue";import*as o from"../config-provider";import*as n from"../button";import*as r from"../icon";import*as i from"../modal";var a={7609:(e,t,o)=>{var n=o(7425).default;function r(){e.exports=r=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,o){e[t]=o.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",s=l.toStringTag||"@@toStringTag";function f(e,t,o){return Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,o){return e[t]=o}}function d(e,t,o,n){var r=t&&t.prototype instanceof h?t:h,i=Object.create(r.prototype),l=new P(n||[]);return a(i,"_invoke",{value:C(e,o,l)}),i}function p(e,t,o){try{return{type:"normal",arg:e.call(t,o)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var v={};function h(){}function m(){}function y(){}var g={};f(g,c,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(k([])));w&&w!==o&&i.call(w,c)&&(g=w);var b=y.prototype=h.prototype=Object.create(g);function T(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function o(r,a,l,c){var u=p(e[r],e,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==n(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,l,c)}),(function(e){o("throw",e,l,c)})):t.resolve(f).then((function(e){s.value=e,l(s)}),(function(e){return o("throw",e,l,c)}))}c(u.arg)}var r;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,r){o(e,n,t,r)}))}return r=r?r.then(i,i):i()}})}function C(e,t,o){var n="suspendedStart";return function(r,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw i;return{value:void 0,done:!0}}for(o.method=r,o.arg=i;;){var a=o.delegate;if(a){var l=S(a,o);if(l){if(l===v)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===n)throw n="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);n="executing";var c=p(e,t,o);if("normal"===c.type){if(n=o.done?"completed":"suspendedYield",c.arg===v)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(n="completed",o.method="throw",o.arg=c.arg)}}}function S(e,t){var o=t.method,n=e.iterator[o];if(void 0===n)return t.delegate=null,"throw"===o&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==o&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+o+"' method")),v;var r=p(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,v;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,v):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function k(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,n=function t(){for(;++o<e.length;)if(i.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:O}}function O(){return{value:void 0,done:!0}}return m.prototype=y,a(b,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:m,configurable:!0}),m.displayName=f(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,f(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},T(N.prototype),f(N.prototype,u,(function(){return this})),t.AsyncIterator=N,t.async=function(e,o,n,r,i){void 0===i&&(i=Promise);var a=new N(d(e,o,n,r),i);return t.isGeneratorFunction(o)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},T(b),f(b,s,"Generator"),f(b,c,(function(){return this})),f(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),o=[];for(var n in t)o.push(n);return o.reverse(),function e(){for(;o.length;){var n=o.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=k,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(o,n){return a.type="throw",a.arg=e,t.next=o,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n],a=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=i.call(r,"catchLoc"),c=i.call(r,"finallyLoc");if(l&&c){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var r=n;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.finallyLoc===e)return this.complete(o.completion,o.afterLoc),E(o),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc===e){var n=o.completion;if("throw"===n.type){var r=n.arg;E(o)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:k(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=void 0),v}},t}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(o){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2841:(e,t,o)=>{var n=o(7609)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},l={};function c(e){var t=l[e];if(void 0!==t)return t.exports;var o=l[e]={exports:{}};return a[e](o,o.exports,c),o.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var o in t)c.o(t,o)&&!c.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var u={};(()=>{c.d(u,{Z:()=>T});const a=(l={AlignEnum:()=>e.AlignEnum,PropTypes:()=>e.PropTypes,ThemeEnum:()=>e.ThemeEnum,alignType:()=>e.alignType,dialogTypeUnion:()=>e.dialogTypeUnion,withInstall:()=>e.withInstall},s={},c.d(s,l),s);var l,s;function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}var d=c(2841),p=c.n(d);function v(e,t,o,n){return new(o||(o=Promise))((function(r,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function l(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,l)}c((n=n.apply(e,t||[])).next())}))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;const h=(e=>{var t={};return c.d(t,e),t})({Fragment:()=>t.Fragment,computed:()=>t.computed,createApp:()=>t.createApp,createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,h:()=>t.h,isVNode:()=>t.isVNode,mergeProps:()=>t.mergeProps,onBeforeUnmount:()=>t.onBeforeUnmount,onMounted:()=>t.onMounted,reactive:()=>t.reactive,ref:()=>t.ref,shallowRef:()=>t.shallowRef,watch:()=>t.watch}),m=(e=>{var t={};return c.d(t,e),t})({useLocale:()=>o.useLocale,usePrefix:()=>o.usePrefix}),y=(e=>{var t={};return c.d(t,e),t})({default:()=>n.default}),g=(e=>{var t={};return c.d(t,e),t})({Close:()=>r.Close,Error:()=>r.Error,Spinner:()=>r.Spinner,Success:()=>r.Success,Warn:()=>r.Warn}),x=(e=>{var t={};return c.d(t,e),t})({default:()=>i.default,propsMixin:()=>i.propsMixin}),w=Object.assign(Object.assign({},x.propsMixin),{width:a.PropTypes.oneOfType([String,Number]).def(""),height:a.PropTypes.oneOfType([String,Number]).def(""),confirmText:a.PropTypes.string,cancelText:a.PropTypes.string,prevText:a.PropTypes.string,nextText:a.PropTypes.string,current:a.PropTypes.number.def(1),totalStep:a.PropTypes.number,title:a.PropTypes.string.def("title"),headerAlign:(0,a.alignType)().def(a.AlignEnum.LEFT),footerAlign:(0,a.alignType)().def(a.AlignEnum.RIGHT),theme:a.PropTypes.theme().def(a.ThemeEnum.PRIMARY),dialogType:(0,a.dialogTypeUnion)(),isLoading:a.PropTypes.bool.def(!1)}),b=(0,h.defineComponent)({name:"Dialog",components:{BkModal:x.default,BkButton:y.default},props:w,emits:["closed","update:isShow","confirm","prev","next","value-change"],setup:function(e,t){var o=this,n=t.emit,r=(0,m.useLocale)("dialog"),i=(0,h.computed)((function(){return void 0===e.confirmText?r.value.ok:e.confirmText})),a=(0,h.computed)((function(){return void 0===e.cancelText?r.value.cancel:e.cancelText})),l=(0,h.computed)((function(){return void 0===e.prevText?r.value.prev:e.prevText})),c=(0,h.computed)((function(){return void 0===e.nextText?r.value.next:e.nextText})),u=(0,h.reactive)({positionX:0,positionY:0,moveStyle:{top:"",left:""}}),s=(0,h.ref)(e.isShow);(0,h.onMounted)((function(){e.escClose&&addEventListener("keydown",y)})),(0,h.onBeforeUnmount)((function(){e.escClose&&removeEventListener("keydown",y)})),(0,h.watch)((function(){return e.isShow}),(function(e){e?s.value=!0:setTimeout((function(){u.moveStyle={top:"50%",left:"50%"},u.positionX=0,u.positionY=0,s.value=!1}),250),n("value-change",e)}));var f=function(){return v(o,void 0,void 0,p().mark((function t(){var o;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=!0,"function"!=typeof e.beforeClose){t.next=5;break}return t.next=4,e.beforeClose();case 4:o=t.sent;case 5:o&&(n("update:isShow",!1),n("closed"),s.value=!1);case 6:case"end":return t.stop()}}),t)})))},d=(0,h.computed)((function(){return["process","operation","confirm"].includes(e.dialogType)})),y=function(t){e.isShow&&e.closeIcon&&27===t.keyCode&&f()},g=(0,m.usePrefix)().resolveClassName;return{data:u,handleClose:f,handleConfirm:function(){n("update:isShow",!1),n("confirm")},escCloseHandler:y,moveHandler:function(t){if(e.fullscreen)return!1;if(!e.draggable)return!1;var o,n,r=t.target,i=t.currentTarget.parentNode.parentNode.offsetHeight,a=t.currentTarget.parentNode.parentNode.offsetWidth;0!==u.positionX&&0!==u.positionY?(o=t.clientX-u.positionX,n=t.clientY-u.positionY):(o=t.clientX-r.offsetLeft,n=t.clientY-r.offsetTop),document.onmousemove=function(e){var t=window.innerWidth-a,r=window.innerHeight-i,l=e.clientX-o,c=e.clientY-n;t/2-l<=0?l=t/2:t/2+l<=0&&(l=-t/2),r/2-c<=0?c=r/2:r/2+c<=0&&(c=-r/2),u.positionX=l,u.positionY=c,u.moveStyle.left="calc(50% + ".concat(l,"px)"),u.moveStyle.top="calc(50% + ".concat(c,"px)")},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}},handlePrevStep:function(){n("prev")},handleNextStep:function(){n("next")},hasFooter:d,isModalShow:s,localConfirmText:i,localCancelText:a,localPrevText:l,localNextText:c,resolveClassName:g}},render:function(){var e,t=this,o={header:function(){var e,o,n,r,i,a;return[(0,h.createVNode)("div",{class:[t.resolveClassName("dialog-tool"),t.fullscreen||!t.draggable?"":"move",t.draggable?"content-dragging":""],onMousedown:t.moveHandler},[null!==(n=null===(o=(e=t.$slots).tools)||void 0===o?void 0:o.call(e))&&void 0!==n?n:""]),(0,h.createVNode)("div",{class:t.resolveClassName("dialog-header")},[(0,h.createVNode)("div",{class:t.resolveClassName("header-icon")},[t.infoType?{loading:(0,h.createVNode)(g.Spinner,{class:[t.resolveClassName("info-icon"),"primary"]},null),warning:(0,h.createVNode)(g.Warn,{class:[t.resolveClassName("info-icon"),"warning"]},null),success:(0,h.createVNode)(g.Success,{class:[t.resolveClassName("info-icon"),"success"]},null),danger:(0,h.createVNode)(g.Close,{class:[t.resolveClassName("info-icon"),"danger"]},null)}[t.infoType]:(0,h.createVNode)("slot",{name:"info-icon"},null)]),(0,h.createVNode)("span",{class:t.resolveClassName("dialog-title"),style:"text-align: ".concat(t.headerAlign)},[null!==(a=null===(i=(r=t.$slots).header)||void 0===i?void 0:i.call(r))&&void 0!==a?a:t.title])])]},default:function(){var e,o,n;return null!==(n=null===(o=(e=t.$slots).default)||void 0===o?void 0:o.call(e))&&void 0!==n?n:"default"},footer:function(){var e,o,n,r,i,a,l,c,u;return(0,h.createVNode)("div",{class:t.resolveClassName("dialog-footer"),style:"text-align: ".concat(t.footerAlign)},["process"===t.dialogType?null!==(n=null===(o=(e=t.$slots).footer)||void 0===o?void 0:o.call(e))&&void 0!==n?n:(0,h.createVNode)(h.Fragment,null,[1===t.current?"":(0,h.createVNode)(y.default,{class:t.resolveClassName("dialog-perv"),onClick:t.handlePrevStep},{default:function(){return[t.localPrevText]}}),t.current===t.totalStep?"":(0,h.createVNode)(y.default,{class:t.resolveClassName("dialog-next"),onClick:t.handleNextStep},{default:function(){return[t.localNextText]}}),t.current===t.totalStep?(0,h.createVNode)(y.default,{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.localConfirmText]}}):"",(0,h.createVNode)(y.default,{class:t.resolveClassName("dialog-cancel"),onClick:t.handleClose,disabled:t.isLoading},{default:function(){return[t.localCancelText]}})]):"","operation"===t.dialogType?null!==(a=null===(i=(r=t.$slots).footer)||void 0===i?void 0:i.call(r))&&void 0!==a?a:(0,h.createVNode)(h.Fragment,null,[(0,h.createVNode)(y.default,{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.localConfirmText]}}),(0,h.createVNode)(y.default,{class:t.resolveClassName("dialog-cancel"),onClick:t.handleClose,disabled:t.isLoading},{default:function(){return[t.localCancelText]}})]):"","confirm"===t.dialogType?null!==(u=null===(c=(l=t.$slots).footer)||void 0===c?void 0:c.call(l))&&void 0!==u?u:(0,h.createVNode)(h.Fragment,null,[(0,h.createVNode)(y.default,{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.localConfirmText]}})]):""])},close:function(){return(0,h.createVNode)(g.Error,{onClick:t.handleClose},null)}},n="".concat(this.resolveClassName("dialog-wrapper ")," ").concat(this.scrollable?"scroll-able":""," ").concat(this.multiInstance?"multi-instance":""," ").concat(this.hasFooter?"has-footer":"no-footer");return(0,h.createVNode)(x.default,(0,h.mergeProps)(this.$props,{class:n,onClose:this.handleClose,isShow:this.isModalShow,style:this.data.moveStyle}),"function"==typeof(e=o)||"[object Object]"===Object.prototype.toString.call(e)&&!(0,h.isVNode)(e)?o:{default:function(){return[o]}})}}),T=(0,a.withInstall)((function(e){var t=document.createElement("div"),o=(0,h.ref)(!1),n=(0,h.shallowRef)(e),r=(0,h.defineComponent)({name:"DialogConfirm",setup:function(e,t){var r=this,i=t.expose;(0,h.onMounted)((function(){(document.activeElement||document.body).blur(),!1!==n.value.isShow&&(o.value=!0)}));var a=function(){return v(r,void 0,void 0,p().mark((function e(){var t,r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(null===(t=n.value)||void 0===t?void 0:t.onClosed)){e.next=3;break}return e.next=3,null===(r=n.value)||void 0===r?void 0:r.onClosed();case 3:o.value=!1;case 4:case"end":return e.stop()}}),e)})))},l=function(){return v(r,void 0,void 0,p().mark((function e(){var t,r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(null===(t=n.value)||void 0===t?void 0:t.onConfirm)){e.next=3;break}return e.next=3,null===(r=n.value)||void 0===r?void 0:r.onConfirm();case 3:o.value=!1;case 4:case"end":return e.stop()}}),e)})))};i({update:function(e){n.value=Object.assign(Object.assign({},n.value),e)}});var c=(0,m.usePrefix)().resolveClassName;return function(){return(0,h.createVNode)(b,Object.assign(Object.assign({class:c("info-wrapper"),headerAlign:"center",footerAlign:"center",transfer:!0,fullscreen:!1},n.value),{isShow:o.value,onClosed:a,onConfirm:l}),function(){var e=[],t=[];if(n.value.subTitle)switch(f(n.value.subTitle)){case"string":default:e.push(n.value.subTitle);break;case"function":e.push(n.value.subTitle())}return e.length&&t.push((0,h.h)("div",{class:c("info-sub-title"),style:"text-Align:".concat(n.value.contentAlign||"center")},e)),t}())}}}),i=(0,h.createApp)(r).mount(t);return{show:function(){o.value=!0},hide:function(){o.value=!1},update:function(e){i.update(e)},destroy:function(){i.unmount(),i=null}}}))})();var s=u.Z;export{s as default};
|