bkui-vue 0.0.1-beta.119 → 0.0.1-beta.121
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 +8 -8
- package/dist/index.esm.js +14 -0
- package/dist/index.umd.js +8 -8
- package/dist/style.css +1 -1
- package/lib/affix/affix.variable.css +4 -1
- package/lib/affix/index.js +1 -1
- package/lib/alert/alert.variable.css +4 -1
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.variable.css +4 -1
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.variable.css +4 -1
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.variable.css +4 -1
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button.css +9 -0
- package/lib/button/button.d.ts +10 -0
- package/lib/button/button.less +12 -1
- package/lib/button/button.variable.css +13 -1
- package/lib/button/index.d.ts +16 -1
- package/lib/button/index.js +1 -1
- package/lib/card/card.variable.css +4 -1
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader.variable.css +4 -1
- package/lib/cascader/index.js +1 -1
- package/lib/checkbox/checkbox.variable.css +4 -1
- package/lib/checkbox/index.js +1 -1
- package/lib/code-diff/code-diff.variable.css +4 -1
- package/lib/code-diff/index.js +1 -1
- package/lib/collapse/collapse.variable.css +4 -1
- package/lib/collapse/index.js +1 -1
- package/lib/components.js +1 -1
- package/lib/container/container.variable.css +4 -1
- package/lib/container/index.js +1 -1
- package/lib/date-picker/date-picker.variable.css +4 -1
- package/lib/date-picker/index.js +1 -1
- package/lib/dialog/dialog.css +5 -1
- package/lib/dialog/dialog.less +6 -1
- package/lib/dialog/dialog.variable.css +5 -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/divider.variable.css +4 -1
- package/lib/divider/index.js +1 -1
- package/lib/dropdown/dropdown.variable.css +4 -1
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.variable.css +4 -1
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +4 -1
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/form.variable.css +4 -1
- package/lib/form/index.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/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.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/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/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/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/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/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/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/tree-application-shape.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.js +1 -1
- package/lib/index.js +1 -1
- package/lib/input/index.js +1 -1
- package/lib/input/input.css +99 -15
- package/lib/input/input.less +83 -18
- package/lib/input/input.variable.css +102 -15
- package/lib/link/index.js +1 -1
- package/lib/link/link.variable.css +4 -1
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.variable.css +4 -1
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu.variable.css +4 -1
- package/lib/menu/submenu.variable.css +4 -1
- package/lib/message/index.js +1 -1
- package/lib/message/message.variable.css +4 -1
- package/lib/modal/index.js +1 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation.variable.css +4 -1
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.variable.css +4 -1
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.variable.css +4 -1
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.variable.css +4 -1
- package/lib/popover2/index.js +1 -1
- package/lib/popover2/popover2.variable.css +4 -1
- package/lib/preset.js +1 -1
- package/lib/process/index.js +1 -1
- package/lib/process/process.variable.css +4 -1
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.variable.css +4 -1
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio.variable.css +4 -1
- package/lib/rate/index.js +1 -1
- package/lib/resize-layout/index.js +1 -1
- package/lib/resize-layout/resize-layout.variable.css +4 -1
- package/lib/select/index.js +1 -1
- package/lib/select/select.variable.css +4 -1
- package/lib/shared/index.js +1 -1
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.variable.css +4 -1
- package/lib/slider/index.js +1 -1
- package/lib/slider/slider.variable.css +4 -1
- package/lib/steps/index.js +1 -1
- package/lib/steps/steps.variable.css +4 -1
- package/lib/styles/themes/themes.less +6 -1
- package/lib/swiper/index.js +1 -1
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.variable.css +4 -1
- package/lib/tab/index.js +1 -1
- package/lib/tab/tab.variable.css +4 -1
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.variable.css +4 -1
- package/lib/table/plugins/head-sort.variable.css +4 -1
- package/lib/table/plugins/settings.variable.css +4 -1
- package/lib/table/table.variable.css +4 -1
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.variable.css +4 -1
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/tag-input.variable.css +4 -1
- package/lib/timeline/index.js +1 -1
- package/lib/timeline/timeline.variable.css +4 -1
- package/lib/transfer/index.js +1 -1
- package/lib/transfer/transfer.variable.css +4 -1
- package/lib/tree/index.d.ts +4 -4
- package/lib/tree/index.js +1 -1
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/tree.variable.css +4 -1
- package/lib/upload/index.js +1 -1
- package/lib/upload/upload.variable.css +4 -1
- package/lib/virtual-render/index.js +1 -1
- package/package.json +1 -1
package/lib/pagination/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../select"),require("../icon"),require("../popover"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../select","../icon","../popover"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../select"),require("../icon"),require("../popover")):t(e["../shared"],e.vue,e["../select"],e["../icon"],e["../popover"]);for(var a in n)("object"==typeof exports?exports:e)[a]=n[a]}}(self,((e,t,n,a,r)=>(()=>{"use strict";var i={6870:e=>{e.exports=a},5537:e=>{e.exports=r},6422:e=>{e.exports=n},4212:t=>{t.exports=e},748:e=>{e.exports=t}},o={};function l(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e](n,n.exports,l),n.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{l.r(u),l.d(u,{BkPagination:()=>v,default:()=>m});var e=l(4212);function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var r=l(748),i=l(6422),o=l.n(i),c=l(6870),s=l(5537),d=l.n(s);var f={modelValue:e.PropTypes.number.def(1),count:e.PropTypes.number.def(0).isRequired,limit:e.PropTypes.number.def(10),limitList:e.PropTypes.arrayOf(Number).def([10,20,50,100]),showLimit:e.PropTypes.bool.def(!0),type:e.PropTypes.oneOf(["default","compact"]).def("default"),location:e.PropTypes.oneOf(["left","right"]).def("right"),align:e.PropTypes.oneOf(["left","center","right"]).def("left"),size:e.PropTypes.size(),small:e.PropTypes.bool.def(!1),showTotalCount:e.PropTypes.bool.def(!0),prevText:e.PropTypes.string,nextText:e.PropTypes.string,disabled:e.PropTypes.bool.def(!1),layout:e.PropTypes.custom((function(e){var t={total:!0,list:!0,limit:!0};return e.some((function(e){return t[e]}))}),"layout 的值只支持 * total、list、limit *").def(["total","list","limit"])};const p=(0,r.defineComponent)({name:"Pagination",props:f,emits:["update:modelValue","change","update:limit","limitChange"],setup:function(e,t){var n=(0,r.ref)(0),l=(0,r.toRefs)(e),u=l.count,s=l.limit,f=function(){var e=(0,r.getCurrentInstance)().proxy,t=(0,r.ref)(1),n=(0,r.computed)((function(){return 1===t.value})),a=(0,r.computed)((function(){return t.value===e.totalPageNum})),i=(0,r.ref)(!1),o=(0,r.ref)(!1),l=(0,r.computed)((function(){i.value=!1,o.value=!1;var n=[];if(e.totalPageNum<=7){for(var a=2;a<=e.totalPageNum-1;a++)n.push(a);return n}var r=Math.floor(2.5);e.totalPageNum>5&&(i.value=t.value-r>2,o.value=t.value+r<e.totalPageNum-1);for(var l=Math.min(e.totalPageNum-5,Math.max(2,t.value-r)),u=l;u<l+5;u++)n.push(u);return n}));(0,r.watch)((function(){return e.modelValue}),(function(n){(0,r.nextTick)((function(){n>=1&&n<=e.totalPageNum?t.value=n:t.value=n<1?1:e.totalPageNum}))}),{immediate:!0}),(0,r.nextTick)((function(){(0,r.watch)((function(){return e.totalPageNum}),(function(e){t.value>e&&(t.value=e)}))}));var u=function(){n.value||(t.value=t.value-1)},s=function(){a.value||(t.value=t.value+1)},d=function(e){e!==t.value&&(t.value=e)},f=function(){t.value=Math.max(1,t.value-5)},p=function(){t.value=Math.min(e.totalPageNum,t.value+5)};return{current:t,render:function(v){var m=v.isFirst,g=v.isLast;return(0,r.createVNode)("div",{class:{"bk-pagination-list":!0,"is-first":m,"is-last":g}},[(0,r.createVNode)("div",{class:{"bk-pagination-list-pre":!0,"is-disabled":n.value},onClick:u},[e.prevText||(0,r.createVNode)(c.AngleLeft,null,null)]),(0,r.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":1===t.value},key:"1",onClick:function(){return d(1)}},[(0,r.createTextVNode)("1")]),i.value&&(0,r.createVNode)("div",{key:"pre-batch",class:"bk-pagination-list-pre-batch",onClick:f},[(0,r.createVNode)(c.Ellipsis,null,null)]),l.value.map((function(e){return(0,r.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":t.value===e},key:e,onClick:function(){return d(e)}},[e])})),o.value&&(0,r.createVNode)("div",{key:"next-batch",class:"bk-pagination-list-next-batch",onClick:p},[(0,r.createVNode)(c.Ellipsis,null,null)]),e.totalPageNum>1&&(0,r.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":t.value===e.totalPageNum},key:"last",onClick:function(){return d(e.totalPageNum)}},[e.totalPageNum]),(0,r.createVNode)("div",{class:{"bk-pagination-list-pre":!0,"is-disabled":a.value},onClick:s},[e.nextText||(0,r.createVNode)(c.AngleRight,null,null)])])}}}(),p=f.current,v=f.render,m=function(){var e=(0,r.getCurrentInstance)().proxy,t=(0,r.ref)(null),n=(0,r.ref)(!1),a=(0,r.ref)(1),i=(0,r.computed)((function(){return 1===a.value})),o=(0,r.computed)((function(){return a.value===e.totalPageNum})),l=0,u=(0,r.computed)((function(){for(var t=[],n=1;n<=e.totalPageNum;n++)t.push(n);return t}));(0,r.watch)((function(){return e.modelValue}),(function(t){(0,r.nextTick)((function(){t>=1&&t<=e.totalPageNum?a.value=t:a.value=t<1?1:e.totalPageNum,l=a.value}))}),{immediate:!0}),(0,r.nextTick)((function(){(0,r.watch)((function(){return e.totalPageNum}),(function(e){a.value>e&&(a.value=e)}))}));var s=function(){i.value||(a.value=a.value-1)},f=function(){o.value||(a.value=a.value+1)},p=function(){n.value=!0},v=function(){n.value=!1,t.value.textContent="".concat(l),l!==a.value&&(a.value=l)},m=function(t){var n=t.target,r=Number(n.textContent);!r||r<1||r>e.totalPageNum||r===a.value||(l=r)},g=function(e){["Enter","NumpadEnter"].includes(e.code)&&(e.preventDefault(),v())};return{current:a,render:function(){return(0,r.createVNode)("div",{class:"bk-pagination-small-list"},[(0,r.createVNode)("div",{class:{"bk-pagination-btn-pre":!0,"is-disabled":i.value},onClick:s},[(0,r.createVNode)(c.LeftShape,null,null)]),(0,r.createVNode)(d(),{theme:"light",trigger:"click",arrow:!1,boundary:"body",placement:"bottom"},{default:function(){return(0,r.createVNode)("div",{class:{"bk-pagination-picker":!0,"is-focused":n.value}},[(0,r.createVNode)("span",{ref:t,class:"bk-pagination-editor",contenteditable:!0,spellcheck:"false",onFocus:p,onBlur:v,onInput:m,onKeydown:g},[a.value]),(0,r.createVNode)("span",null,[(0,r.createTextVNode)("/")]),(0,r.createVNode)("span",{class:"bk-pagination-small-list-total"},[e.totalPageNum])])},content:function(){return(0,r.createVNode)("div",{class:"bk-pagination-picker-list"},[u.value.map((function(e){return(0,r.createVNode)("div",{class:{item:!0,"is-actived":e===a.value},key:e,onClick:function(){return function(e){l=e,v()}(e)}},[e])}))])}}),(0,r.createVNode)("div",{class:{"bk-pagination-btn-next":!0,"is-disabled":o.value},onClick:f},[(0,r.createVNode)(c.RightShape,null,null)])])}}}(),g=m.current,b=m.render,h=function(){var e=(0,r.getCurrentInstance)().proxy,t=(0,r.ref)(e.limit);(0,r.watch)((function(){return e.limit}),(function(e){t.value=e})),(0,r.watch)((function(){return e.limitList}),(function(e){(0,r.nextTick)((function(){if(!e.includes(t.value)){var n=a(e,1);t.value=n[0]}}))}),{immediate:!0});var n=function(e){t.value=e};return{limit:t,render:function(a){var l,u,c=a.isFirst,s=a.isLast;return e.showLimit?(0,r.createVNode)("div",(0,r.mergeProps)({class:{"bk-pagination-limit":!0,"is-first":c,"is-last":s}},{disabled:e.disabled}),[(0,r.createVNode)("div",null,[(0,r.createTextVNode)("每页")]),(0,r.createVNode)(o(),{class:"bk-pagination-limit-select",clearable:!1,modelValue:t.value,onChange:n,disabled:e.disabled},(u=l=e.limitList.map((function(e,t){return(0,r.createVNode)(i.BkOption,{value:e,label:"".concat(e),key:"".concat(t,"_").concat(e)},null)})),"function"==typeof u||"[object Object]"===Object.prototype.toString.call(u)&&!(0,r.isVNode)(u)?l:{default:function(){return[l]}})),(0,r.createVNode)("div",null,[(0,r.createTextVNode)("条")])]):null}}}(),y=h.limit,N=h.render;return(0,r.watch)([u,y,s],(function(e){var t=a(e,2),r=t[0],i=t[1],o=Math.ceil(r/i);n.value=o<1?1:o}),{immediate:!0}),(0,r.watch)(p,(function(e){t.emit("update:modelValue",e),t.emit("change",e)})),(0,r.watch)(g,(function(e){t.emit("update:modelValue",e),t.emit("change",e)})),(0,r.watch)(y,(function(e){t.emit("limitChange",e)})),{totalPageNum:n,renderTotal:function(e){var t=e.isFirst,n=e.isLast,a=(0,r.getCurrentInstance)().props;return a.showTotalCount?(0,r.createVNode)("div",(0,r.mergeProps)({class:{"bk-pagination-total":!0,"is-first":t,"is-last":n}},{disabled:a.disabled}),[(0,r.createTextVNode)("共计"),(0,r.createVNode)("div",{class:"bk-pagination-total-num"},[a.count]),(0,r.createTextVNode)("条")]):null},renderList:v,renderLimit:N,renderSmallList:b}},render:function(){var n,a=this,i=(0,e.classes)((t(n={"bk-pagination":!0},"bk-pagination--".concat(this.size),!0),t(n,"is-align-".concat(this.align),!0),n)),o={total:this.renderTotal,list:this.small?this.renderSmallList:this.renderList,limit:this.renderLimit};return(0,r.createVNode)("div",{class:i},[this.layout.map((function(e,t){return o[e]({isFirst:0===t,isLast:t===a.layout.length-1})}))])}});var v=(0,e.withInstall)(p);const m=v})(),u})()));
|
1
|
+
import*as e from"../shared";import*as t from"vue";import*as a from"../select";import*as n from"../icon";import*as i from"../popover";var r={d:(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},o={};r.d(o,{h:()=>N,Z:()=>y});const l=(u={PropTypes:()=>e.PropTypes,classes:()=>e.classes,withInstall:()=>e.withInstall},c={},r.d(c,u),c);var u,c;function s(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,i,r=[],o=!0,l=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(r.push(n.value),!t||r.length!==t);o=!0);}catch(e){l=!0,i=e}finally{try{o||null==a.return||a.return()}finally{if(l)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const p=(e=>{var t={};return r.d(t,e),t})({computed:()=>t.computed,createTextVNode:()=>t.createTextVNode,createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,getCurrentInstance:()=>t.getCurrentInstance,isVNode:()=>t.isVNode,mergeProps:()=>t.mergeProps,nextTick:()=>t.nextTick,ref:()=>t.ref,toRefs:()=>t.toRefs,watch:()=>t.watch}),m=(e=>{var t={};return r.d(t,e),t})({BkOption:()=>a.BkOption,default:()=>a.default}),v=(e=>{var t={};return r.d(t,e),t})({AngleLeft:()=>n.AngleLeft,AngleRight:()=>n.AngleRight,Ellipsis:()=>n.Ellipsis,LeftShape:()=>n.LeftShape,RightShape:()=>n.RightShape}),g=(e=>{var t={};return r.d(t,e),t})({default:()=>i.default});var h={modelValue:l.PropTypes.number.def(1),count:l.PropTypes.number.def(0).isRequired,limit:l.PropTypes.number.def(10),limitList:l.PropTypes.arrayOf(Number).def([10,20,50,100]),showLimit:l.PropTypes.bool.def(!0),type:l.PropTypes.oneOf(["default","compact"]).def("default"),location:l.PropTypes.oneOf(["left","right"]).def("right"),align:l.PropTypes.oneOf(["left","center","right"]).def("left"),size:l.PropTypes.size(),small:l.PropTypes.bool.def(!1),showTotalCount:l.PropTypes.bool.def(!0),prevText:l.PropTypes.string,nextText:l.PropTypes.string,disabled:l.PropTypes.bool.def(!1),layout:l.PropTypes.custom((function(e){var t={total:!0,list:!0,limit:!0};return e.some((function(e){return t[e]}))}),"layout 的值只支持 * total、list、limit *").def(["total","list","limit"])};const b=(0,p.defineComponent)({name:"Pagination",props:h,emits:["update:modelValue","change","update:limit","limitChange"],setup:function(e,t){var a=(0,p.ref)(0),n=(0,p.toRefs)(e),i=n.count,r=n.limit,o=function(){var e=(0,p.getCurrentInstance)().proxy,t=(0,p.ref)(1),a=(0,p.computed)((function(){return 1===t.value})),n=(0,p.computed)((function(){return t.value===e.totalPageNum})),i=(0,p.ref)(!1),r=(0,p.ref)(!1),o=(0,p.computed)((function(){i.value=!1,r.value=!1;var a=[];if(e.totalPageNum<=7){for(var n=2;n<=e.totalPageNum-1;n++)a.push(n);return a}var o=Math.floor(2.5);e.totalPageNum>5&&(i.value=t.value-o>2,r.value=t.value+o<e.totalPageNum-1);for(var l=Math.min(e.totalPageNum-5,Math.max(2,t.value-o)),u=l;u<l+5;u++)a.push(u);return a}));(0,p.watch)((function(){return e.modelValue}),(function(a){(0,p.nextTick)((function(){a>=1&&a<=e.totalPageNum?t.value=a:t.value=a<1?1:e.totalPageNum}))}),{immediate:!0}),(0,p.nextTick)((function(){(0,p.watch)((function(){return e.totalPageNum}),(function(e){t.value>e&&(t.value=e)}))}));var l=function(){a.value||(t.value=t.value-1)},u=function(){n.value||(t.value=t.value+1)},c=function(e){e!==t.value&&(t.value=e)},s=function(){t.value=Math.max(1,t.value-5)},d=function(){t.value=Math.min(e.totalPageNum,t.value+5)};return{current:t,render:function(f){var m=f.isFirst,g=f.isLast;return(0,p.createVNode)("div",{class:{"bk-pagination-list":!0,"is-first":m,"is-last":g}},[(0,p.createVNode)("div",{class:{"bk-pagination-list-pre":!0,"is-disabled":a.value},onClick:l},[e.prevText||(0,p.createVNode)(v.AngleLeft,null,null)]),(0,p.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":1===t.value},key:"1",onClick:function(){return c(1)}},[(0,p.createTextVNode)("1")]),i.value&&(0,p.createVNode)("div",{key:"pre-batch",class:"bk-pagination-list-pre-batch",onClick:s},[(0,p.createVNode)(v.Ellipsis,null,null)]),o.value.map((function(e){return(0,p.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":t.value===e},key:e,onClick:function(){return c(e)}},[e])})),r.value&&(0,p.createVNode)("div",{key:"next-batch",class:"bk-pagination-list-next-batch",onClick:d},[(0,p.createVNode)(v.Ellipsis,null,null)]),e.totalPageNum>1&&(0,p.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":t.value===e.totalPageNum},key:"last",onClick:function(){return c(e.totalPageNum)}},[e.totalPageNum]),(0,p.createVNode)("div",{class:{"bk-pagination-list-pre":!0,"is-disabled":n.value},onClick:u},[e.nextText||(0,p.createVNode)(v.AngleRight,null,null)])])}}}(),l=o.current,u=o.render,c=function(){var e=(0,p.getCurrentInstance)().proxy,t=(0,p.ref)(null),a=(0,p.ref)(!1),n=(0,p.ref)(1),i=(0,p.computed)((function(){return 1===n.value})),r=(0,p.computed)((function(){return n.value===e.totalPageNum})),o=0,l=(0,p.computed)((function(){for(var t=[],a=1;a<=e.totalPageNum;a++)t.push(a);return t}));(0,p.watch)((function(){return e.modelValue}),(function(t){(0,p.nextTick)((function(){t>=1&&t<=e.totalPageNum?n.value=t:n.value=t<1?1:e.totalPageNum,o=n.value}))}),{immediate:!0}),(0,p.nextTick)((function(){(0,p.watch)((function(){return e.totalPageNum}),(function(e){n.value>e&&(n.value=e)}))}));var u=function(){i.value||(n.value=n.value-1)},c=function(){r.value||(n.value=n.value+1)},s=function(){a.value=!0},d=function(){a.value=!1,t.value.textContent="".concat(o),o!==n.value&&(n.value=o)},f=function(t){var a=t.target,i=Number(a.textContent);!i||i<1||i>e.totalPageNum||i===n.value||(o=i)},m=function(e){["Enter","NumpadEnter"].includes(e.code)&&(e.preventDefault(),d())};return{current:n,render:function(){return(0,p.createVNode)("div",{class:"bk-pagination-small-list"},[(0,p.createVNode)("div",{class:{"bk-pagination-btn-pre":!0,"is-disabled":i.value},onClick:u},[(0,p.createVNode)(v.LeftShape,null,null)]),(0,p.createVNode)(g.default,{theme:"light",trigger:"click",arrow:!1,boundary:"body",placement:"bottom"},{default:function(){return(0,p.createVNode)("div",{class:{"bk-pagination-picker":!0,"is-focused":a.value}},[(0,p.createVNode)("span",{ref:t,class:"bk-pagination-editor",contenteditable:!0,spellcheck:"false",onFocus:s,onBlur:d,onInput:f,onKeydown:m},[n.value]),(0,p.createVNode)("span",null,[(0,p.createTextVNode)("/")]),(0,p.createVNode)("span",{class:"bk-pagination-small-list-total"},[e.totalPageNum])])},content:function(){return(0,p.createVNode)("div",{class:"bk-pagination-picker-list"},[l.value.map((function(e){return(0,p.createVNode)("div",{class:{item:!0,"is-actived":e===n.value},key:e,onClick:function(){return function(e){o=e,d()}(e)}},[e])}))])}}),(0,p.createVNode)("div",{class:{"bk-pagination-btn-next":!0,"is-disabled":r.value},onClick:c},[(0,p.createVNode)(v.RightShape,null,null)])])}}}(),s=c.current,d=c.render,h=function(){var e=(0,p.getCurrentInstance)().proxy,t=(0,p.ref)(e.limit);(0,p.watch)((function(){return e.limit}),(function(e){t.value=e})),(0,p.watch)((function(){return e.limitList}),(function(e){(0,p.nextTick)((function(){if(!e.includes(t.value)){var a=f(e,1);t.value=a[0]}}))}),{immediate:!0});var a=function(e){t.value=e};return{limit:t,render:function(n){var i,r,o=n.isFirst,l=n.isLast;return e.showLimit?(0,p.createVNode)("div",(0,p.mergeProps)({class:{"bk-pagination-limit":!0,"is-first":o,"is-last":l}},{disabled:e.disabled}),[(0,p.createVNode)("div",null,[(0,p.createTextVNode)("每页")]),(0,p.createVNode)(m.default,{class:"bk-pagination-limit-select",clearable:!1,modelValue:t.value,onChange:a,disabled:e.disabled},(r=i=e.limitList.map((function(e,t){return(0,p.createVNode)(m.BkOption,{value:e,label:"".concat(e),key:"".concat(t,"_").concat(e)},null)})),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!(0,p.isVNode)(r)?i:{default:function(){return[i]}})),(0,p.createVNode)("div",null,[(0,p.createTextVNode)("条")])]):null}}}(),b=h.limit,N=h.render;return(0,p.watch)([i,b,r],(function(e){var t=f(e,2),n=t[0],i=t[1],r=Math.ceil(n/i);a.value=r<1?1:r}),{immediate:!0}),(0,p.watch)(l,(function(e){t.emit("update:modelValue",e),t.emit("change",e)})),(0,p.watch)(s,(function(e){t.emit("update:modelValue",e),t.emit("change",e)})),(0,p.watch)(b,(function(e){t.emit("limitChange",e)})),{totalPageNum:a,renderTotal:function(e){var t=e.isFirst,a=e.isLast,n=(0,p.getCurrentInstance)().props;return n.showTotalCount?(0,p.createVNode)("div",(0,p.mergeProps)({class:{"bk-pagination-total":!0,"is-first":t,"is-last":a}},{disabled:n.disabled}),[(0,p.createTextVNode)("共计"),(0,p.createVNode)("div",{class:"bk-pagination-total-num"},[n.count]),(0,p.createTextVNode)("条")]):null},renderList:u,renderLimit:N,renderSmallList:d}},render:function(){var e,t=this,a=(0,l.classes)((s(e={"bk-pagination":!0},"bk-pagination--".concat(this.size),!0),s(e,"is-align-".concat(this.align),!0),e)),n={total:this.renderTotal,list:this.small?this.renderSmallList:this.renderList,limit:this.renderLimit};return(0,p.createVNode)("div",{class:a},[this.layout.map((function(e,a){return n[e]({isFirst:0===a,isLast:a===t.layout.length-1})}))])}});var N=(0,l.withInstall)(b);const y=N;var k=o.h,V=o.Z;export{k as BkPagination,V as default};
|
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|
package/lib/popover/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as t from"vue";var o={d:(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},r={};o.d(r,{Z:()=>f});const n=(a={BKPopover:()=>e.BKPopover,PropTypes:()=>e.PropTypes,bkZIndexManager:()=>e.bkZIndexManager,withInstall:()=>e.withInstall},i={},o.d(i,a),i);var a,i;const s=(e=>{var t={};return o.d(t,e),t})({Transition:()=>t.Transition,computed:()=>t.computed,createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,mergeProps:()=>t.mergeProps,nextTick:()=>t.nextTick,onBeforeUnmount:()=>t.onBeforeUnmount,onMounted:()=>t.onMounted,ref:()=>t.ref,toRefs:()=>t.toRefs,watch:()=>t.watch});var p={onAfterHidden:Function,onAfterShow:Function},d=Object.assign({isShow:n.PropTypes.bool.def(!1),always:n.PropTypes.bool.def(!1),disabled:n.PropTypes.bool.def(!1),width:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.number]).def("auto"),height:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.number]).def("auto"),content:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.number]).def(""),transition:n.PropTypes.string.def("fade-in"),placement:n.PropTypes.placement(["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"]).def("top"),theme:n.PropTypes.string.def("dark"),handleFirstUpdate:{type:Function,default:function(){}},trigger:n.PropTypes.string.def("hover"),arrow:n.PropTypes.bool.def(!0),modifiers:n.PropTypes.array.def([{name:"offset",options:{offset:[0,8]}}]),boundary:n.PropTypes.oneOfType([n.PropTypes.string.def("parent"),n.PropTypes.instanceOf(HTMLElement)]),fixOnBoundary:n.PropTypes.bool.def(!1),zIndex:n.PropTypes.number.def(void 0),stopBehaviors:n.PropTypes.oneOfType([n.PropTypes.arrayOf(n.PropTypes.commonType(["stopPropagation","stopImmediatePropagation","preventDefault"],"stopBehaviors")),n.PropTypes.string]).def([])},p);const u=(0,s.defineComponent)({name:"Popover",props:d,emits:["afterHidden","afterShow","update:isShow"],setup:function(e,t){var o=!1,r=Object.create(null),a=(0,s.ref)(0),i=(0,s.toRefs)(e),p=i.width,d=i.height,u=i.theme,f=i.trigger,l=i.isShow,c=i.placement,v=i.modifiers,m=i.arrow,y=i.content,h=(0,s.ref)(),T=(0,s.ref)(),P=(0,s.computed)((function(){return{width:/^\d+$/.test(String(p.value))?"".concat(p.value,"px"):p.value,height:/^\d+$/.test(String(d.value))?"".concat(d.value,"px"):d.value,zIndex:a.value}})),b=["dark","light"],g=(0,s.computed)((function(){var e=u.value.split(/\s+/);return e.sort((function(e,t){return Number(b.includes(t))-Number(b.includes(e))})),{systemThemes:e,customThemes:e.filter((function(e){return!b.includes(e)}))}})),w=function(t){var i,s;if(o){if(t)return a.value="number"==typeof e.zIndex?e.zIndex:n.bkZIndexManager.getModalNextIndex(),void(null===(i=r.show)||void 0===i||i.call(r));null===(s=r.hide)||void 0===s||s.call(r)}};(0,s.watch)((function(){return e.isShow}),(function(e){w(e)}),{immediate:!0});var x=function(){t.emit("update:isShow",!1),t.emit("afterHidden",!1)},O=function(){t.emit("update:isShow",!0),t.emit("afterShow",!1)},B=function(){var e=r;e.constructor&&(e.isShow&&e.hide(),e.destroy(),r=Object.create(null))},k=function(){r=new n.BKPopover(h.value,T.value,{theme:g.value.systemThemes.join(" "),placement:c.value,trigger:f.value,modifiers:v.value,onFirstUpdate:e.handleFirstUpdate,afterShow:O,afterHidden:x,appendTo:e.boundary,always:e.always,disabled:e.disabled,fixOnBoundary:e.fixOnBoundary}),o=!0,l.value&&w(l.value)},S=function(){B(),(0,s.nextTick)(k)};t.expose({update:S}),(0,s.onMounted)(S),(0,s.onBeforeUnmount)(B);var I=function(){t.emit("after-enter")},N=function(){t.emit("after-leave")},j=g.value.customThemes.join(" "),M=g.value.customThemes.reduce((function(e,t){return Object.assign((o={},!0,(r="data-".concat(t,"-theme"))in o?Object.defineProperty(o,r,{value:true,enumerable:!0,configurable:!0,writable:!0}):o[r]=true,o),e);var o,r}),{}),V="bk-popover-content ".concat(j),A=function(t){var o=function(e){"function"==typeof t[e]&&t[e]()};Array.isArray(e.stopBehaviors)&&e.stopBehaviors.forEach(o),"string"==typeof e.stopBehaviors&&o(e.stopBehaviors)};return function(){var o,r,n,a,i;return(0,s.createVNode)("div",{class:"bk-popover","data-bk-pop-container":!0},[(0,s.createVNode)("div",{ref:h,class:"bk-popover-reference"},[null===(r=(o=t.slots).default)||void 0===r?void 0:r.call(o)]),(0,s.createVNode)(s.Transition,{name:e.transition,onAfterEnter:I,onAfterLeave:N},{default:function(){return[(0,s.createVNode)("div",(0,s.mergeProps)({ref:T,class:V,style:P.value},M,{onClick:A}),[null!==(i=null===(a=(n=t.slots).content)||void 0===a?void 0:a.call(n))&&void 0!==i?i:y.value,m.value&&(0,s.createVNode)("div",{class:"arrow","data-popper-arrow":!0},null)])]}})])}}}),f=(0,n.withInstall)(u);var l=r.Z;export{l as default};
|
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|
package/lib/popover2/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../directives"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../directives"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../directives")):t(e["../shared"],e.vue,e["../directives"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n)=>(()=>{var o={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,c=0;e.exports=function(e,t,n){var s=t&&n||0,u=t||[],f=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:r;if(null==f||null==d){var p=i();null==f&&(f=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=r=16383&(p[6]<<8|p[7]))}var v=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:c+1,h=v-a+(m-c)/1e4;if(h<0&&void 0===e.clockseq&&(d=d+1&16383),(h<0||v>a)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=v,c=m,r=d;var g=(1e4*(268435455&(v+=122192928e5))+m)%4294967296;u[s++]=g>>>24&255,u[s++]=g>>>16&255,u[s++]=g>>>8&255,u[s++]=255&g;var y=v/4294967296*1e4&268435455;u[s++]=y>>>8&255,u[s++]=255&y,u[s++]=y>>>24&15|16,u[s++]=y>>>16&255,u[s++]=d>>>8|128,u[s++]=255&d;for(var w=0;w<6;++w)u[s+w]=f[w];return t||l(u)}},6426:(e,t,n)=>{var o=n(9157),r=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}},4061:e=>{"use strict";e.exports=n},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";i.r(l),i.d(l,{default:()=>xe});var e=i(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function n(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o=i(748),r=i(4061);const a=(0,o.defineComponent)({name:"PopArrow",render:function(){var t=(0,e.resolveClassName)("pop2-arrow");return(0,o.createVNode)("div",{class:t},null)}});function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s,u,f=function(){return!0};!function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside"}(u||(u={}));var d=(c(s={},u.SHOW,f),c(s,u.HIDE,f),c(s,u.CLICK_OUTSIDE,f),s);const p=(0,o.defineComponent)({name:"PopContent",props:{width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto")},setup:function(e){var t=function(e){return/^\d+\.?\d*$/.test("".concat(e))?"".concat(e,"px"):e};return{style:(0,o.computed)((function(){return{width:t(e.width),height:t(e.height)}}))}},render:function(){var t,n,r,i,l,a,c=[(0,e.resolveClassName)("popover2"),(0,e.resolveClassName)("pop2-content")];return(0,o.createVNode)("div",{class:c,tabindex:"-1",style:this.style},[null!==(r=null===(n=(t=this.$slots).default)||void 0===n?void 0:n.call(t))&&void 0!==r?r:"",null!==(a=null===(l=(i=this.$slots).arrow)||void 0===l?void 0:l.call(i))&&void 0!==a?a:""])}});var v={onAfterHidden:Function,onAfterShow:Function},m=Object.assign({isShow:e.PropTypes.bool.def(!1),always:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),content:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def(""),placement:e.PropTypes.placement(["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"]).def("top"),theme:e.PropTypes.string.def("dark"),trigger:e.PropTypes.string.def("hover"),arrow:e.PropTypes.bool.def(!0),padding:e.PropTypes.number.def(5),offset:e.PropTypes.number.def(6),boundary:e.PropTypes.string.def(void 0),zIndex:e.PropTypes.number.def(void 0),disableTeleport:e.PropTypes.bool.def(!1),autoPlacement:e.PropTypes.bool.def(!1),autoVisibility:e.PropTypes.bool.def(!0),disableOutsideClick:e.PropTypes.bool.def(!1)},v);const h=(0,o.defineComponent)({name:"PopReference",render:function(){var e,t,n;return null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:""}}),g=(0,o.defineComponent)({props:{class:e.PropTypes.string.def("")},render:function(){var e,t;return(0,o.createVNode)(o.Fragment,null,[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}});function y(e){return e.split("-")[0]}function w(e){return e.split("-")[1]}function b(e){return["top","bottom"].includes(y(e))?"x":"y"}function x(e){return"y"===e?"height":"width"}function T(e,t,n){let{reference:o,floating:r}=e;const i=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,a=b(t),c=x(a),s=o[c]/2-r[c]/2,u="x"===a;let f;switch(y(t)){case"top":f={x:i,y:o.y-r.height};break;case"bottom":f={x:i,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:l};break;case"left":f={x:o.x-r.width,y:l};break;default:f={x:o.x,y:o.y}}switch(w(t)){case"start":f[a]-=s*(n&&u?-1:1);break;case"end":f[a]+=s*(n&&u?-1:1)}return f}function P(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function R(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function E(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,v=P(p),m=a[d?"floating"===f?"reference":"floating":f],h=R(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:u,strategy:c})),g=R(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...l.floating,x:o,y:r}:l.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:c}):l[f]);return{top:h.top-g.top+v.top,bottom:g.bottom-h.bottom+v.bottom,left:h.left-g.left+v.left,right:g.right-h.right+v.right}}const C=Math.min,A=Math.max;function O(e,t,n){return A(e,C(t,n))}const S={left:"right",right:"left",bottom:"top",top:"bottom"};function L(e){return e.replace(/left|right|bottom|top/g,(e=>S[e]))}function H(e,t,n){void 0===n&&(n=!1);const o=w(e),r=b(e),i=x(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=L(l)),{main:l,cross:L(l)}}const N={start:"end",end:"start"};function k(e){return e.replace(/start|end/g,(e=>N[e]))}const I=["top","right","bottom","left"],V=I.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function D(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function j(e){return I.some((t=>e[t]>=0))}const $=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=y(n),a=w(n),c="x"===b(n),s=["left","top"].includes(l)?-1:1,u=i&&c?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:v}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof v&&(p="end"===a?-1*v:v),c?{x:p*u,y:d*s}:{x:d*s,y:p*u}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};const M=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=e,s={x:n,y:o},u=await E(t,c),f=b(y(r)),d=function(e){return"x"===e?"y":"x"}(f);let p=s[f],v=s[d];if(i){const e="y"===f?"bottom":"right";p=O(p+u["y"===f?"top":"left"],p,p-u[e])}if(l){const e="y"===d?"bottom":"right";v=O(v+u["y"===d?"top":"left"],v,v-u[e])}const m=a.fn({...t,[f]:p,[d]:v});return{...m,data:{x:m.x-n,y:m.y-o}}}}};function W(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function q(e){if(null==e)return window;if(!W(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function F(e){return q(e).getComputedStyle(e)}function z(e){return W(e)?"":e?(e.nodeName||"").toLowerCase():""}function B(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function _(e){return e instanceof q(e).HTMLElement}function U(e){return e instanceof q(e).Element}function K(e){return"undefined"!=typeof ShadowRoot&&(e instanceof q(e).ShadowRoot||e instanceof ShadowRoot)}function X(e){const{overflow:t,overflowX:n,overflowY:o}=F(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function Y(e){return["table","td","th"].includes(z(e))}function Z(e){const t=/firefox/i.test(B()),n=F(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function G(){return!/^((?!chrome|android).)*safari/i.test(B())}const J=Math.min,Q=Math.max,ee=Math.round;function te(e,t,n){var o,r,i,l;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let c=1,s=1;t&&_(e)&&(c=e.offsetWidth>0&&ee(a.width)/e.offsetWidth||1,s=e.offsetHeight>0&&ee(a.height)/e.offsetHeight||1);const u=U(e)?q(e):window,f=!G()&&n,d=(a.left+(f&&null!=(o=null==(r=u.visualViewport)?void 0:r.offsetLeft)?o:0))/c,p=(a.top+(f&&null!=(i=null==(l=u.visualViewport)?void 0:l.offsetTop)?i:0))/s,v=a.width/c,m=a.height/s;return{width:v,height:m,top:p,right:d+v,bottom:p+m,left:d,x:d,y:p}}function ne(e){return(t=e,(t instanceof q(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function oe(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function re(e){return te(ne(e)).left+oe(e).scrollLeft}function ie(e,t,n){const o=_(t),r=ne(t),i=te(e,o&&function(e){const t=te(e);return ee(t.width)!==e.offsetWidth||ee(t.height)!==e.offsetHeight}(t),"fixed"===n);let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==z(t)||X(r))&&(l=oe(t)),_(t)){const e=te(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=re(r));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function le(e){return"html"===z(e)?e:e.assignedSlot||e.parentNode||(K(e)?e.host:null)||ne(e)}function ae(e){return _(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function ce(e){const t=q(e);let n=ae(e);for(;n&&Y(n)&&"static"===getComputedStyle(n).position;)n=ae(n);return n&&("html"===z(n)||"body"===z(n)&&"static"===getComputedStyle(n).position&&!Z(n))?t:n||function(e){let t=le(e);for(K(t)&&(t=t.host);_(t)&&!["html","body"].includes(z(t));){if(Z(t))return t;t=t.parentNode}return null}(e)||t}function se(e){if(_(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=te(e);return{width:t.width,height:t.height}}function ue(e){const t=le(e);return["html","body","#document"].includes(z(t))?e.ownerDocument.body:_(t)&&X(t)?t:ue(t)}function fe(e,t){var n;void 0===t&&(t=[]);const o=ue(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=q(o),l=r?[i].concat(i.visualViewport||[],X(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(fe(l))}function de(e,t,n){return"viewport"===t?R(function(e,t){const n=q(e),o=ne(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,c=0;if(r){i=r.width,l=r.height;const e=G();(e||!e&&"fixed"===t)&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:l,x:a,y:c}}(e,n)):U(t)?function(e,t){const n=te(e,!1,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):R(function(e){var t;const n=ne(e),o=oe(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=Q(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=Q(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-o.scrollLeft+re(e);const c=-o.scrollTop;return"rtl"===F(r||n).direction&&(a+=Q(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}(ne(e)))}function pe(e){const t=fe(e),n=["absolute","fixed"].includes(F(e).position)&&_(e)?ce(e):e;return U(n)?t.filter((e=>U(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&K(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==z(e))):[]}const ve={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?pe(t):[].concat(n),o],l=i[0],a=i.reduce(((e,n)=>{const o=de(t,n,r);return e.top=Q(o.top,e.top),e.right=J(o.right,e.right),e.bottom=J(o.bottom,e.bottom),e.left=Q(o.left,e.left),e}),de(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=_(n),i=ne(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==z(n)||X(i))&&(l=oe(n)),_(n))){const e=te(n,!0);a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}},isElement:U,getDimensions:se,getOffsetParent:ce,getDocumentElement:ne,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:ie(t,ce(n),o),floating:{...se(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===F(e).direction},me=function(t,n,r,i,l,a){var s=(0,o.ref)(!1),u=function(){var e,t,n=m(null===(e=r.value)||void 0===e?void 0:e.$el);return null===(t=document.fullscreenElement)||void 0===t?void 0:t.contains(n)},f=["dark","light"],d=(0,o.computed)((function(){var e=t.theme.split(/\s+/);return e.sort((function(e,t){return Number(f.includes(t))-Number(f.includes(e))})),{systemThemes:e,customThemes:e.filter((function(e){return!f.includes(e)}))}})),p=function(){return!u()&&t.autoVisibility},v=function(){var e,n,o,c;return{elReference:m(null===(e=r.value)||void 0===e?void 0:e.$el),elContent:m(null===(n=i.value)||void 0===n?void 0:n.$el),elArrow:t.arrow?m(null===(o=l.value)||void 0===o?void 0:o.$el):null,root:m(null===(c=a.value)||void 0===c?void 0:c.$el)}},m=function e(t){return t instanceof HTMLElement?t:t instanceof Text?e(t.nextElementSibling):null},h=d.value.customThemes.join(" "),g=d.value.customThemes.reduce((function(e,t){return Object.assign(c({},"data-".concat(t,"-theme"),!0),e)}),{}),S="".concat(h),N=null,I=function(e){var t=window.devicePixelRatio||1;return Math.round(e*t)/t||0},W=function(){var e=v(),n=e.elReference,o=e.elContent,r=e.elArrow;if(n){var i=function(e){var n=[$(t.offset),M({padding:t.padding})],o={placement:t.placement,middleware:n};return t.arrow&&n.push((e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:r,y:i,placement:l,rects:a,platform:c}=t;if(null==n)return{};const s=P(o),u={x:r,y:i},f=b(l),d=w(l),p=x(f),v=await c.getDimensions(n),m="y"===f?"top":"left",h="y"===f?"bottom":"right",g=a.reference[p]+a.reference[f]-u[f]-a.floating[p],y=u[f]-a.reference[f],T=await(null==c.getOffsetParent?void 0:c.getOffsetParent(n));let R=T?"y"===f?T.clientHeight||0:T.clientWidth||0:0;0===R&&(R=a.floating[p]);const E=g/2-y/2,C=s[m],A=R-v[p]-s[h],S=R/2-v[p]/2+E,L=O(C,S,A),H=("start"===d?s[m]:s[h])>0&&S!==L&&a.reference[p]<=a.floating[p];return{[f]:u[f]-(H?S<C?C-S:A-S:0),data:{[f]:L,centerOffset:S-L}}}}))({element:e})),u()||t.autoPlacement?n.push(function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r,i,l;const{x:a,y:c,rects:s,middlewareData:u,placement:f,platform:d,elements:p}=t,{alignment:v=null,allowedPlacements:m=V,autoAlignment:h=!0,...g}=e,b=function(e,t,n){return(e?[...n.filter((t=>w(t)===e)),...n.filter((t=>w(t)!==e))]:n.filter((e=>y(e)===e))).filter((n=>!e||w(n)===e||!!t&&k(n)!==n))}(v,h,m),x=await E(t,g),T=null!=(n=null==(o=u.autoPlacement)?void 0:o.index)?n:0,P=b[T];if(null==P)return{};const{main:R,cross:C}=H(P,s,await(null==d.isRTL?void 0:d.isRTL(p.floating)));if(f!==P)return{x:a,y:c,reset:{placement:b[0]}};const A=[x[y(P)],x[R],x[C]],O=[...null!=(r=null==(i=u.autoPlacement)?void 0:i.overflows)?r:[],{placement:P,overflows:A}],S=b[T+1];if(S)return{data:{index:T+1,overflows:O},reset:{placement:S}};const L=O.slice().sort(((e,t)=>e.overflows[0]-t.overflows[0])),N=null==(l=L.find((e=>{let{overflows:t}=e;return t.every((e=>e<=0))})))?void 0:l.placement,I=null!=N?N:L[0].placement;return I!==f?{data:{index:T+1,overflows:O},reset:{placement:I}}:{}}}}()):(n.unshift(function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:o,elements:r,rects:i,platform:l,strategy:a}=t,{padding:c=2,x:s,y:u}=e,f=R(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:i.reference,offsetParent:await(null==l.getOffsetParent?void 0:l.getOffsetParent(r.floating)),strategy:a}):i.reference),d=null!=(n=await(null==l.getClientRects?void 0:l.getClientRects(r.reference)))?n:[],p=P(c),v=await l.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===d.length&&d[0].left>d[1].right&&null!=s&&null!=u)return null!=(e=d.find((e=>s>e.left-p.left&&s<e.right+p.right&&u>e.top-p.top&&u<e.bottom+p.bottom)))?e:f;if(d.length>=2){if("x"===b(o)){const e=d[0],t=d[d.length-1],n="top"===y(o),r=e.top,i=t.bottom,l=n?e.left:t.left,a=n?e.right:t.right;return{top:r,bottom:i,left:l,right:a,width:a-l,height:i-r,x:l,y:r}}const e="left"===y(o),t=A(...d.map((e=>e.right))),n=C(...d.map((e=>e.left))),r=d.filter((o=>e?o.left===n:o.right===t)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:n,right:t,width:t-n,height:l-i,x:n,y:i}}return f}},floating:r.floating,strategy:a});return i.reference.x!==v.reference.x||i.reference.y!==v.reference.y||i.reference.width!==v.reference.width||i.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}}()),n.push(function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:i,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:s=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...v}=e,m=y(o),h=f||(m!==l&&p?function(e){const t=L(e);return[k(e),t,k(t)]}(l):[L(l)]),g=[l,...h],w=await E(t,v),b=[];let x=(null==(n=r.flip)?void 0:n.overflows)||[];if(s&&b.push(w[m]),u){const{main:e,cross:t}=H(o,i,await(null==a.isRTL?void 0:a.isRTL(c.floating)));b.push(w[e],w[t])}if(x=[...x,{placement:o,overflows:b}],!b.every((e=>e<=0))){var T,P;const e=(null!=(T=null==(P=r.flip)?void 0:P.index)?T:0)+1,t=g[e];if(t)return{data:{index:e,overflows:x},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var R;const e=null==(R=x.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:R[0].placement;e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}}())),p()&&o.middleware.push(function(e){let{strategy:t="referenceHidden",...n}={};return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=D(await E(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:j(t)}}}case"escaped":{const t=D(await E(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:j(t)}}}default:return{}}}}}()),o}(r);((e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,a=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:s,y:u}=T(c,o,a),f=o,d={};for(let n=0;n<i.length;n++){const{name:p,fn:v}=i[n],{x:m,y:h,data:g,reset:y}=await v({x:s,y:u,initialPlacement:o,placement:f,strategy:r,middlewareData:d,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=m?m:s,u=null!=h?h:u,d={...d,[p]:{...d[p],...g}},y&&("object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):y.rects),({x:s,y:u}=T(c,f,a))),n=-1)}return{x:s,y:u,placement:f,strategy:r,middlewareData:d}})(e,t,{platform:ve,...n}))(n,o,i).then((function(e){var n=e.x,i=e.y,l=e.placement,a=e.middlewareData,s=o.className;o.className="".concat(s.replace(S,"")," ").concat(S).replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(g).forEach((function(e){o.setAttribute(e,g[e])}));var u=l.split("-")[0],f=u;["left","right","top","bottom"].includes(u)||(f="top"),function(e,t,n,o){var r;Object.assign(e.style,{left:"0",top:"0",transform:"translate3d(".concat(I(t),"px,").concat(I(n),"px,0)")});var i=!!p()&&(null===(r=o.hide)||void 0===r?void 0:r.referenceHidden);Object.assign(e.style,{visibility:i?"hidden":"visible"})}(o,n,i,a),function(e,n,o){if(t.arrow){var r=o.arrow,i=r.x,l=r.y;e.setAttribute("data-arrow",n),Object.assign(e.style,{left:"",top:"",bottom:"",right:""});var a={top:"bottom",right:"left",bottom:"top",left:"right"}[n];Object.assign(e.style,c({left:null!==i?"".concat(i,"px"):"",top:null!==l?"".concat(l,"px"):""},a,"-4px"))}}(r,f,a)}))}},q=function(){s.value=!0},F=function(){s.value=!1},z=function(){s.value?F():q()},B=function(){z()};return(0,o.watch)(s,(function(o){var r,l;o?((l=m(null===(r=i.value)||void 0===r?void 0:r.$el)).style.setProperty("display","block"),l.style.setProperty("z-index","".concat(t.zIndex?t.zIndex:e.bkZIndexManager.getModalNextIndex())),W(),n.emit("afterShow",{isSHow:!0})):function(){var e;m(null===(e=i.value)||void 0===e?void 0:e.$el).style.setProperty("display","none"),n.emit("afterHidden",{isSHow:!1})}()})),{showPopover:q,hidePopover:F,resolveTriggerEvents:function(){var e;return null!==(e={hover:[["mouseenter",q],["mouseleave",F],["focus",q],["blur",F]],click:[["click",B]],manual:[[]]}[t.trigger])&&void 0!==e?e:[]},updatePopover:W,triggerPopover:z,resolvePopElements:v,isElementFullScreen:u,resolveTargetElement:m,createPopInstance:function(){var e=v(),t=e.elReference,n=e.elContent;N=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=o,c=r&&!a,s=i&&!a,u=c||s?[...U(e)?fe(e):[],...fe(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)}));let f,d=null;l&&(d=new ResizeObserver(n),U(e)&&!a&&d.observe(e),d.observe(t));let p=a?te(e):null;return a&&function t(){const o=te(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,f=requestAnimationFrame(t)}(),l||n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(f)}}(t,n,(function(){W()}))},localIsShow:s,cleanup:N}};var he=i(8022),ge=null,ye=null,we=null;const be=(0,o.defineComponent)({name:"Popover2",components:{Content:p,Arrow:a,Root:g},directives:{clickoutside:r.clickoutside},props:m,emits:d,setup:function(e,t){var r=e.content,i=e.theme,l=e.disableTeleport,a=(0,o.ref)(),c=(0,o.ref)(),s=(0,o.ref)(),f=(0,o.ref)(),d=(0,o.ref)(!1),p=null,v=me(e,t,a,c,s,f),m=v.localIsShow,h=v.showPopover,g=v.hidePopover,y=v.resolveTriggerEvents,w=v.updatePopover,b=v.resolvePopElements,x=v.isElementFullScreen,T=v.cleanup,P=v.createPopInstance,R=function(){g()},E=function(){P(),e.always?h():C()};e.always||e.disabled||(0,o.watch)((function(){return e.isShow}),(function(){e.isShow?h():g()}),{immediate:!0}),(0,o.watch)((function(){return[e.disabled]}),(function(e){e[0]?E():N()}));var C=function(){var e=b().elReference;(p=y()).forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.addEventListener(r,i)}))},A=function(){var e=b(),t=e.elReference,n=e.root;H.value=S(d.value,n||t)},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",n=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0,i=null,l=function(e){null===i&&e()},a=function(){n&&(i="[data-fllsrn-id=".concat(ye,"]"))},c=function(){/^body$/i.test(e.boundary)||"string"!=typeof e.boundary||(o(e.boundary)||console.error("props.boundary is not available selector"),i=e.boundary)};return l((function(){if(/^parent$/i.test(e.boundary)){i="".concat(t).concat(ge);var n=(r||{}).parentNode;(null==n?void 0:n.parentNode)&&(n.parentNode.setAttribute("data-pnode-id",we),i="[data-pnode-id=".concat(we,"]"))}})),l(c),l(a),l((function(){i="string"==typeof e.boundary?e.boundary:"".concat(t).concat(ge)})),i},o=function(e){return document.querySelector(e)instanceof HTMLElement};if(null===ge||!o("#".concat(ge))){ge="id_".concat((0,he.v4)());var r=document.createElement("div");r.setAttribute("id",ge),r.setAttribute("data-popper-id",ge),document.body.append(r)}null===ye&&(ye="id_".concat((0,he.v4)())),null===we&&(we="id_".concat((0,he.v4)()));var i=function(){var e;if(null===document.fullscreenElement){var t="[data-fllsrn-id=".concat(ye,"]");(null!==(e=document.querySelectorAll(t))&&void 0!==e?e:[]).forEach((function(e){e.removeAttribute("data-fllsrn-id")}))}else document.fullscreenElement.setAttribute("data-fllsrn-id",ye)};return{popContainerId:ge,prefixId:n(),getPrefixId:n,resetFullscreenElementTag:i}}(e,"#"),S=O.getPrefixId,L=O.resetFullscreenElementTag,H=(0,o.ref)();A();var N=function(){"function"==typeof T&&T(),function(){if(null==p?void 0:p.length){var e=b().elReference;e&&p.forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.removeEventListener(r,i)})),p=null}}()},k=function(){d.value=x(),L(),A(),w()};(0,o.onMounted)((function(){e.disabled||(E(),A(),document.body.addEventListener("fullscreenchange",k))})),(0,o.onUnmounted)((function(){N(),document.body.removeEventListener("fullscreenchange",k)})),t.expose({show:function(){h()},hide:R});var I=(0,o.computed)((function(){return(d.value||!l)&&"string"==typeof H.value}));return{boundary:H,arrow:e.arrow,refReference:a,refContent:c,refArrow:s,content:r,theme:i,transBoundary:I,handleClickOutside:function(n){t.emit(u.CLICK_OUTSIDE,{isShow:m.value,event:n}),e.disableOutsideClick||e.always||e.disabled||"manual"===e.trigger||m.value&&R()}}},render:function(){var e,t,n,r,i,l,c=this;return(0,o.createVNode)(g,{ref:"refRoot"},{default:function(){return[(0,o.createVNode)(h,{ref:"refReference"},{default:function(){return[null!==(n=null===(t=(e=c.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:(0,o.createVNode)("span",null,null)]}}),(0,o.createVNode)(o.Teleport,{to:c.boundary,disabled:!c.transBoundary},{default:function(){return[(0,o.withDirectives)((0,o.createVNode)(p,{ref:"refContent","data-theme":c.theme,width:c.width,height:c.height},{default:function(){return[null!==(l=null===(i=(r=c.$slots).content)||void 0===i?void 0:i.call(r))&&void 0!==l?l:c.content]},arrow:function(){var e,t;return c.arrow?(0,o.createVNode)(a,{ref:"refArrow"},{default:function(){return[null===(t=(e=c.$slots).arrow)||void 0===t?void 0:t.call(e)]}}):""}}),[[(0,o.resolveDirective)("clickoutside"),c.handleClickOutside]])]}})]}})}}),xe=(0,e.withInstall)(be)})(),l})()));
|
1
|
+
import*as e from"../shared";import*as t from"vue";import*as n from"../directives";var o={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,c=0;e.exports=function(e,t,n){var s=t&&n||0,u=t||[],f=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:r;if(null==f||null==d){var p=i();null==f&&(f=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=r=16383&(p[6]<<8|p[7]))}var m=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:c+1,h=m-a+(v-c)/1e4;if(h<0&&void 0===e.clockseq&&(d=d+1&16383),(h<0||m>a)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=m,c=v,r=d;var g=(1e4*(268435455&(m+=122192928e5))+v)%4294967296;u[s++]=g>>>24&255,u[s++]=g>>>16&255,u[s++]=g>>>8&255,u[s++]=255&g;var y=m/4294967296*1e4&268435455;u[s++]=y>>>8&255,u[s++]=255&y,u[s++]=y>>>24&15|16,u[s++]=y>>>16&255,u[s++]=d>>>8|128,u[s++]=255&d;for(var w=0;w<6;++w)u[s+w]=f[w];return t||l(u)}},6426:(e,t,n)=>{var o=n(9157),r=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var l={};(()=>{i.d(l,{Z:()=>Ee});const o=(r={PropTypes:()=>e.PropTypes,bkZIndexManager:()=>e.bkZIndexManager,resolveClassName:()=>e.resolveClassName,withInstall:()=>e.withInstall},a={},i.d(a,r),a);var r,a;function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const u=(e=>{var t={};return i.d(t,e),t})({Fragment:()=>t.Fragment,Teleport:()=>t.Teleport,computed:()=>t.computed,createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,onMounted:()=>t.onMounted,onUnmounted:()=>t.onUnmounted,ref:()=>t.ref,resolveDirective:()=>t.resolveDirective,watch:()=>t.watch,withDirectives:()=>t.withDirectives}),f=(e=>{var t={};return i.d(t,e),t})({clickoutside:()=>n.clickoutside}),d=(0,u.defineComponent)({name:"PopArrow",render:function(){var e=(0,o.resolveClassName)("pop2-arrow");return(0,u.createVNode)("div",{class:e},null)}});function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m,v,h=function(){return!0};!function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside"}(v||(v={}));var g=(p(m={},v.SHOW,h),p(m,v.HIDE,h),p(m,v.CLICK_OUTSIDE,h),m);const y=(0,u.defineComponent)({name:"PopContent",props:{width:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def("auto"),height:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def("auto")},setup:function(e){var t=function(e){return/^\d+\.?\d*$/.test("".concat(e))?"".concat(e,"px"):e};return{style:(0,u.computed)((function(){return{width:t(e.width),height:t(e.height)}}))}},render:function(){var e,t,n,r,i,l,a=[(0,o.resolveClassName)("popover2"),(0,o.resolveClassName)("pop2-content")];return(0,u.createVNode)("div",{class:a,tabindex:"-1",style:this.style},[null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:"",null!==(l=null===(i=(r=this.$slots).arrow)||void 0===i?void 0:i.call(r))&&void 0!==l?l:""])}});var w={onAfterHidden:Function,onAfterShow:Function},b=Object.assign({isShow:o.PropTypes.bool.def(!1),always:o.PropTypes.bool.def(!1),disabled:o.PropTypes.bool.def(!1),width:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def("auto"),height:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def("auto"),content:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def(""),placement:o.PropTypes.placement(["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"]).def("top"),theme:o.PropTypes.string.def("dark"),trigger:o.PropTypes.string.def("hover"),arrow:o.PropTypes.bool.def(!0),padding:o.PropTypes.number.def(5),offset:o.PropTypes.number.def(6),boundary:o.PropTypes.string.def(void 0),zIndex:o.PropTypes.number.def(void 0),disableTeleport:o.PropTypes.bool.def(!1),autoPlacement:o.PropTypes.bool.def(!1),autoVisibility:o.PropTypes.bool.def(!0),disableOutsideClick:o.PropTypes.bool.def(!1)},w);const x=(0,u.defineComponent)({name:"PopReference",render:function(){var e,t,n;return null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:""}}),T=(0,u.defineComponent)({props:{class:o.PropTypes.string.def("")},render:function(){var e,t;return(0,u.createVNode)(u.Fragment,null,[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}});function P(e){return e.split("-")[0]}function R(e){return e.split("-")[1]}function C(e){return["top","bottom"].includes(P(e))?"x":"y"}function E(e){return"y"===e?"height":"width"}function A(e,t,n){let{reference:o,floating:r}=e;const i=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,a=C(t),c=E(a),s=o[c]/2-r[c]/2,u="x"===a;let f;switch(P(t)){case"top":f={x:i,y:o.y-r.height};break;case"bottom":f={x:i,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:l};break;case"left":f={x:o.x-r.width,y:l};break;default:f={x:o.x,y:o.y}}switch(R(t)){case"start":f[a]-=s*(n&&u?-1:1);break;case"end":f[a]+=s*(n&&u?-1:1)}return f}function O(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function L(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function S(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,m=O(p),v=a[d?"floating"===f?"reference":"floating":f],h=L(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:u,strategy:c})),g=L(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...l.floating,x:o,y:r}:l.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:c}):l[f]);return{top:h.top-g.top+m.top,bottom:g.bottom-h.bottom+m.bottom,left:h.left-g.left+m.left,right:g.right-h.right+m.right}}const N=Math.min,k=Math.max;function I(e,t,n){return k(e,N(t,n))}const D={left:"right",right:"left",bottom:"top",top:"bottom"};function H(e){return e.replace(/left|right|bottom|top/g,(e=>D[e]))}function V(e,t,n){void 0===n&&(n=!1);const o=R(e),r=C(e),i=E(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=H(l)),{main:l,cross:H(l)}}const M={start:"end",end:"start"};function $(e){return e.replace(/start|end/g,(e=>M[e]))}const j=["top","right","bottom","left"],W=j.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function F(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function z(e){return j.some((t=>e[t]>=0))}const B=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=P(n),a=R(n),c="x"===C(n),s=["left","top"].includes(l)?-1:1,u=i&&c?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),c?{x:p*u,y:d*s}:{x:d*s,y:p*u}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};const U=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=e,s={x:n,y:o},u=await S(t,c),f=C(P(r)),d=function(e){return"x"===e?"y":"x"}(f);let p=s[f],m=s[d];if(i){const e="y"===f?"bottom":"right";p=I(p+u["y"===f?"top":"left"],p,p-u[e])}if(l){const e="y"===d?"bottom":"right";m=I(m+u["y"===d?"top":"left"],m,m-u[e])}const v=a.fn({...t,[f]:p,[d]:m});return{...v,data:{x:v.x-n,y:v.y-o}}}}};function q(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function _(e){if(null==e)return window;if(!q(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Z(e){return _(e).getComputedStyle(e)}function K(e){return q(e)?"":e?(e.nodeName||"").toLowerCase():""}function X(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Y(e){return e instanceof _(e).HTMLElement}function G(e){return e instanceof _(e).Element}function J(e){return"undefined"!=typeof ShadowRoot&&(e instanceof _(e).ShadowRoot||e instanceof ShadowRoot)}function Q(e){const{overflow:t,overflowX:n,overflowY:o}=Z(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function ee(e){return["table","td","th"].includes(K(e))}function te(e){const t=/firefox/i.test(X()),n=Z(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function ne(){return!/^((?!chrome|android).)*safari/i.test(X())}const oe=Math.min,re=Math.max,ie=Math.round;function le(e,t,n){var o,r,i,l;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let c=1,s=1;t&&Y(e)&&(c=e.offsetWidth>0&&ie(a.width)/e.offsetWidth||1,s=e.offsetHeight>0&&ie(a.height)/e.offsetHeight||1);const u=G(e)?_(e):window,f=!ne()&&n,d=(a.left+(f&&null!=(o=null==(r=u.visualViewport)?void 0:r.offsetLeft)?o:0))/c,p=(a.top+(f&&null!=(i=null==(l=u.visualViewport)?void 0:l.offsetTop)?i:0))/s,m=a.width/c,v=a.height/s;return{width:m,height:v,top:p,right:d+m,bottom:p+v,left:d,x:d,y:p}}function ae(e){return(t=e,(t instanceof _(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function ce(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function se(e){return le(ae(e)).left+ce(e).scrollLeft}function ue(e,t,n){const o=Y(t),r=ae(t),i=le(e,o&&function(e){const t=le(e);return ie(t.width)!==e.offsetWidth||ie(t.height)!==e.offsetHeight}(t),"fixed"===n);let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==K(t)||Q(r))&&(l=ce(t)),Y(t)){const e=le(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=se(r));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function fe(e){return"html"===K(e)?e:e.assignedSlot||e.parentNode||(J(e)?e.host:null)||ae(e)}function de(e){return Y(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function pe(e){const t=_(e);let n=de(e);for(;n&&ee(n)&&"static"===getComputedStyle(n).position;)n=de(n);return n&&("html"===K(n)||"body"===K(n)&&"static"===getComputedStyle(n).position&&!te(n))?t:n||function(e){let t=fe(e);for(J(t)&&(t=t.host);Y(t)&&!["html","body"].includes(K(t));){if(te(t))return t;t=t.parentNode}return null}(e)||t}function me(e){if(Y(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=le(e);return{width:t.width,height:t.height}}function ve(e){const t=fe(e);return["html","body","#document"].includes(K(t))?e.ownerDocument.body:Y(t)&&Q(t)?t:ve(t)}function he(e,t){var n;void 0===t&&(t=[]);const o=ve(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=_(o),l=r?[i].concat(i.visualViewport||[],Q(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(he(l))}function ge(e,t,n){return"viewport"===t?L(function(e,t){const n=_(e),o=ae(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,c=0;if(r){i=r.width,l=r.height;const e=ne();(e||!e&&"fixed"===t)&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:l,x:a,y:c}}(e,n)):G(t)?function(e,t){const n=le(e,!1,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):L(function(e){var t;const n=ae(e),o=ce(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=re(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=re(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-o.scrollLeft+se(e);const c=-o.scrollTop;return"rtl"===Z(r||n).direction&&(a+=re(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}(ae(e)))}function ye(e){const t=he(e),n=["absolute","fixed"].includes(Z(e).position)&&Y(e)?pe(e):e;return G(n)?t.filter((e=>G(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&J(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==K(e))):[]}const we={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?ye(t):[].concat(n),o],l=i[0],a=i.reduce(((e,n)=>{const o=ge(t,n,r);return e.top=re(o.top,e.top),e.right=oe(o.right,e.right),e.bottom=oe(o.bottom,e.bottom),e.left=re(o.left,e.left),e}),ge(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=Y(n),i=ae(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==K(n)||Q(i))&&(l=ce(n)),Y(n))){const e=le(n,!0);a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}},isElement:G,getDimensions:me,getOffsetParent:pe,getDocumentElement:ae,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:ue(t,pe(n),o),floating:{...me(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===Z(e).direction},be=function(e,t,n,r,i,l){var a=(0,u.ref)(!1),c=function(){var e,t,o=v(null===(e=n.value)||void 0===e?void 0:e.$el);return null===(t=document.fullscreenElement)||void 0===t?void 0:t.contains(o)},s=["dark","light"],f=(0,u.computed)((function(){var t=e.theme.split(/\s+/);return t.sort((function(e,t){return Number(s.includes(t))-Number(s.includes(e))})),{systemThemes:t,customThemes:t.filter((function(e){return!s.includes(e)}))}})),d=function(){return!c()&&e.autoVisibility},m=function(){var t,o,a,c;return{elReference:v(null===(t=n.value)||void 0===t?void 0:t.$el),elContent:v(null===(o=r.value)||void 0===o?void 0:o.$el),elArrow:e.arrow?v(null===(a=i.value)||void 0===a?void 0:a.$el):null,root:v(null===(c=l.value)||void 0===c?void 0:c.$el)}},v=function e(t){return t instanceof HTMLElement?t:t instanceof Text?e(t.nextElementSibling):null},h=f.value.customThemes.join(" "),g=f.value.customThemes.reduce((function(e,t){return Object.assign(p({},"data-".concat(t,"-theme"),!0),e)}),{}),y="".concat(h),w=null,b=function(e){var t=window.devicePixelRatio||1;return Math.round(e*t)/t||0},x=function(){var t=m(),n=t.elReference,o=t.elContent,r=t.elArrow;if(n){var i=function(t){var n=[B(e.offset),U({padding:e.padding})],o={placement:e.placement,middleware:n};return e.arrow&&n.push((e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:r,y:i,placement:l,rects:a,platform:c}=t;if(null==n)return{};const s=O(o),u={x:r,y:i},f=C(l),d=R(l),p=E(f),m=await c.getDimensions(n),v="y"===f?"top":"left",h="y"===f?"bottom":"right",g=a.reference[p]+a.reference[f]-u[f]-a.floating[p],y=u[f]-a.reference[f],w=await(null==c.getOffsetParent?void 0:c.getOffsetParent(n));let b=w?"y"===f?w.clientHeight||0:w.clientWidth||0:0;0===b&&(b=a.floating[p]);const x=g/2-y/2,T=s[v],P=b-m[p]-s[h],A=b/2-m[p]/2+x,L=I(T,A,P),S=("start"===d?s[v]:s[h])>0&&A!==L&&a.reference[p]<=a.floating[p];return{[f]:u[f]-(S?A<T?T-A:P-A:0),data:{[f]:L,centerOffset:A-L}}}}))({element:t})),c()||e.autoPlacement?n.push(function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r,i,l;const{x:a,y:c,rects:s,middlewareData:u,placement:f,platform:d,elements:p}=t,{alignment:m=null,allowedPlacements:v=W,autoAlignment:h=!0,...g}=e,y=function(e,t,n){return(e?[...n.filter((t=>R(t)===e)),...n.filter((t=>R(t)!==e))]:n.filter((e=>P(e)===e))).filter((n=>!e||R(n)===e||!!t&&$(n)!==n))}(m,h,v),w=await S(t,g),b=null!=(n=null==(o=u.autoPlacement)?void 0:o.index)?n:0,x=y[b];if(null==x)return{};const{main:T,cross:C}=V(x,s,await(null==d.isRTL?void 0:d.isRTL(p.floating)));if(f!==x)return{x:a,y:c,reset:{placement:y[0]}};const E=[w[P(x)],w[T],w[C]],A=[...null!=(r=null==(i=u.autoPlacement)?void 0:i.overflows)?r:[],{placement:x,overflows:E}],O=y[b+1];if(O)return{data:{index:b+1,overflows:A},reset:{placement:O}};const L=A.slice().sort(((e,t)=>e.overflows[0]-t.overflows[0])),N=null==(l=L.find((e=>{let{overflows:t}=e;return t.every((e=>e<=0))})))?void 0:l.placement,k=null!=N?N:L[0].placement;return k!==f?{data:{index:b+1,overflows:A},reset:{placement:k}}:{}}}}()):(n.unshift(function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:o,elements:r,rects:i,platform:l,strategy:a}=t,{padding:c=2,x:s,y:u}=e,f=L(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:i.reference,offsetParent:await(null==l.getOffsetParent?void 0:l.getOffsetParent(r.floating)),strategy:a}):i.reference),d=null!=(n=await(null==l.getClientRects?void 0:l.getClientRects(r.reference)))?n:[],p=O(c),m=await l.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===d.length&&d[0].left>d[1].right&&null!=s&&null!=u)return null!=(e=d.find((e=>s>e.left-p.left&&s<e.right+p.right&&u>e.top-p.top&&u<e.bottom+p.bottom)))?e:f;if(d.length>=2){if("x"===C(o)){const e=d[0],t=d[d.length-1],n="top"===P(o),r=e.top,i=t.bottom,l=n?e.left:t.left,a=n?e.right:t.right;return{top:r,bottom:i,left:l,right:a,width:a-l,height:i-r,x:l,y:r}}const e="left"===P(o),t=k(...d.map((e=>e.right))),n=N(...d.map((e=>e.left))),r=d.filter((o=>e?o.left===n:o.right===t)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:n,right:t,width:t-n,height:l-i,x:n,y:i}}return f}},floating:r.floating,strategy:a});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}}()),n.push(function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:i,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:s=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...m}=e,v=P(o),h=f||(v!==l&&p?function(e){const t=H(e);return[$(e),t,$(t)]}(l):[H(l)]),g=[l,...h],y=await S(t,m),w=[];let b=(null==(n=r.flip)?void 0:n.overflows)||[];if(s&&w.push(y[v]),u){const{main:e,cross:t}=V(o,i,await(null==a.isRTL?void 0:a.isRTL(c.floating)));w.push(y[e],y[t])}if(b=[...b,{placement:o,overflows:w}],!w.every((e=>e<=0))){var x,T;const e=(null!=(x=null==(T=r.flip)?void 0:T.index)?x:0)+1,t=g[e];if(t)return{data:{index:e,overflows:b},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var R;const e=null==(R=b.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:R[0].placement;e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}}())),d()&&o.middleware.push(function(e){let{strategy:t="referenceHidden",...n}={};return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=F(await S(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:z(t)}}}case"escaped":{const t=F(await S(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:z(t)}}}default:return{}}}}}()),o}(r);((e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,a=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:s,y:u}=A(c,o,a),f=o,d={};for(let n=0;n<i.length;n++){const{name:p,fn:m}=i[n],{x:v,y:h,data:g,reset:y}=await m({x:s,y:u,initialPlacement:o,placement:f,strategy:r,middlewareData:d,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=v?v:s,u=null!=h?h:u,d={...d,[p]:{...d[p],...g}},y&&("object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):y.rects),({x:s,y:u}=A(c,f,a))),n=-1)}return{x:s,y:u,placement:f,strategy:r,middlewareData:d}})(e,t,{platform:we,...n}))(n,o,i).then((function(t){var n=t.x,i=t.y,l=t.placement,a=t.middlewareData,c=o.className;o.className="".concat(c.replace(y,"")," ").concat(y).replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(g).forEach((function(e){o.setAttribute(e,g[e])}));var s=l.split("-")[0],u=s;["left","right","top","bottom"].includes(s)||(u="top"),function(e,t,n,o){var r;Object.assign(e.style,{left:"0",top:"0",transform:"translate3d(".concat(b(t),"px,").concat(b(n),"px,0)")});var i=!!d()&&(null===(r=o.hide)||void 0===r?void 0:r.referenceHidden);Object.assign(e.style,{visibility:i?"hidden":"visible"})}(o,n,i,a),function(t,n,o){if(e.arrow){var r=o.arrow,i=r.x,l=r.y;t.setAttribute("data-arrow",n),Object.assign(t.style,{left:"",top:"",bottom:"",right:""});var a={top:"bottom",right:"left",bottom:"top",left:"right"}[n];Object.assign(t.style,p({left:null!==i?"".concat(i,"px"):"",top:null!==l?"".concat(l,"px"):""},a,"-4px"))}}(r,u,a)}))}},T=function(){a.value=!0},D=function(){a.value=!1},M=function(){a.value?D():T()},j=function(){M()};return(0,u.watch)(a,(function(n){var i,l;n?((l=v(null===(i=r.value)||void 0===i?void 0:i.$el)).style.setProperty("display","block"),l.style.setProperty("z-index","".concat(e.zIndex?e.zIndex:o.bkZIndexManager.getModalNextIndex())),x(),t.emit("afterShow",{isSHow:!0})):function(){var e;v(null===(e=r.value)||void 0===e?void 0:e.$el).style.setProperty("display","none"),t.emit("afterHidden",{isSHow:!1})}()})),{showPopover:T,hidePopover:D,resolveTriggerEvents:function(){var t;return null!==(t={hover:[["mouseenter",T],["mouseleave",D],["focus",T],["blur",D]],click:[["click",j]],manual:[[]]}[e.trigger])&&void 0!==t?t:[]},updatePopover:x,triggerPopover:M,resolvePopElements:m,isElementFullScreen:c,resolveTargetElement:v,createPopInstance:function(){var e=m(),t=e.elReference,n=e.elContent;w=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=o,c=r&&!a,s=i&&!a,u=c||s?[...G(e)?he(e):[],...he(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)}));let f,d=null;l&&(d=new ResizeObserver(n),G(e)&&!a&&d.observe(e),d.observe(t));let p=a?le(e):null;return a&&function t(){const o=le(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,f=requestAnimationFrame(t)}(),l||n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(f)}}(t,n,(function(){x()}))},localIsShow:a,cleanup:w}};var xe=i(8022),Te=null,Pe=null,Re=null;const Ce=(0,u.defineComponent)({name:"Popover2",components:{Content:y,Arrow:d,Root:T},directives:{clickoutside:f.clickoutside},props:b,emits:g,setup:function(e,t){var n=e.content,o=e.theme,r=e.disableTeleport,i=(0,u.ref)(),l=(0,u.ref)(),a=(0,u.ref)(),c=(0,u.ref)(),f=(0,u.ref)(!1),d=null,p=be(e,t,i,l,a,c),m=p.localIsShow,h=p.showPopover,g=p.hidePopover,y=p.resolveTriggerEvents,w=p.updatePopover,b=p.resolvePopElements,x=p.isElementFullScreen,T=p.cleanup,P=p.createPopInstance,R=function(){g()},C=function(){P(),e.always?h():E()};e.always||e.disabled||(0,u.watch)((function(){return e.isShow}),(function(){e.isShow?h():g()}),{immediate:!0}),(0,u.watch)((function(){return[e.disabled]}),(function(e){e[0]?C():k()}));var E=function(){var e=b().elReference;(d=y()).forEach((function(t){var n=s(t,2),o=n[0],r=n[1];e.addEventListener(o,r)}))},A=function(){var e=b(),t=e.elReference,n=e.root;N.value=L(f.value,n||t)},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",n=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0,i=null,l=function(e){null===i&&e()},a=function(){n&&(i="[data-fllsrn-id=".concat(Pe,"]"))},c=function(){/^body$/i.test(e.boundary)||"string"!=typeof e.boundary||(o(e.boundary)||console.error("props.boundary is not available selector"),i=e.boundary)};return l((function(){if(/^parent$/i.test(e.boundary)){i="".concat(t).concat(Te);var n=(r||{}).parentNode;(null==n?void 0:n.parentNode)&&(n.parentNode.setAttribute("data-pnode-id",Re),i="[data-pnode-id=".concat(Re,"]"))}})),l(c),l(a),l((function(){i="string"==typeof e.boundary?e.boundary:"".concat(t).concat(Te)})),i},o=function(e){return document.querySelector(e)instanceof HTMLElement};if(null===Te||!o("#".concat(Te))){Te="id_".concat((0,xe.v4)());var r=document.createElement("div");r.setAttribute("id",Te),r.setAttribute("data-popper-id",Te),document.body.append(r)}null===Pe&&(Pe="id_".concat((0,xe.v4)())),null===Re&&(Re="id_".concat((0,xe.v4)()));var i=function(){var e;if(null===document.fullscreenElement){var t="[data-fllsrn-id=".concat(Pe,"]");(null!==(e=document.querySelectorAll(t))&&void 0!==e?e:[]).forEach((function(e){e.removeAttribute("data-fllsrn-id")}))}else document.fullscreenElement.setAttribute("data-fllsrn-id",Pe)};return{popContainerId:Te,prefixId:n(),getPrefixId:n,resetFullscreenElementTag:i}}(e,"#"),L=O.getPrefixId,S=O.resetFullscreenElementTag,N=(0,u.ref)();A();var k=function(){"function"==typeof T&&T(),function(){if(null==d?void 0:d.length){var e=b().elReference;e&&d.forEach((function(t){var n=s(t,2),o=n[0],r=n[1];e.removeEventListener(o,r)})),d=null}}()},I=function(){f.value=x(),S(),A(),w()};(0,u.onMounted)((function(){e.disabled||(C(),A(),document.body.addEventListener("fullscreenchange",I))})),(0,u.onUnmounted)((function(){k(),document.body.removeEventListener("fullscreenchange",I)})),t.expose({show:function(){h()},hide:R});var D=(0,u.computed)((function(){return(f.value||!r)&&"string"==typeof N.value}));return{boundary:N,arrow:e.arrow,refReference:i,refContent:l,refArrow:a,content:n,theme:o,transBoundary:D,handleClickOutside:function(n){t.emit(v.CLICK_OUTSIDE,{isShow:m.value,event:n}),e.disableOutsideClick||e.always||e.disabled||"manual"===e.trigger||m.value&&R()}}},render:function(){var e,t,n,o,r,i,l=this;return(0,u.createVNode)(T,{ref:"refRoot"},{default:function(){return[(0,u.createVNode)(x,{ref:"refReference"},{default:function(){return[null!==(n=null===(t=(e=l.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:(0,u.createVNode)("span",null,null)]}}),(0,u.createVNode)(u.Teleport,{to:l.boundary,disabled:!l.transBoundary},{default:function(){return[(0,u.withDirectives)((0,u.createVNode)(y,{ref:"refContent","data-theme":l.theme,width:l.width,height:l.height},{default:function(){return[null!==(i=null===(r=(o=l.$slots).content)||void 0===r?void 0:r.call(o))&&void 0!==i?i:l.content]},arrow:function(){var e,t;return l.arrow?(0,u.createVNode)(d,{ref:"refArrow"},{default:function(){return[null===(t=(e=l.$slots).arrow)||void 0===t?void 0:t.call(e)]}}):""}}),[[(0,u.resolveDirective)("clickoutside"),l.handleClickOutside]])]}})]}})}}),Ee=(0,o.withInstall)(Ce)})();var a=l.Z;export{a as default};
|
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|
package/lib/preset.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"./components";var o={d:(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},r={};o.d(r,{Z:()=>a});const t=e;var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Bk";return function(o){var r=o.config.globalProperties.bkUIPrefix||e;Object.keys(t).forEach((function(e){var n=t[e];"install"in n?o.use(n,{prefix:r}):o.component(r+e,t[e])}))}};const a={createInstall:n,install:n(),version:"0.0.1"};var i=r.Z;export{i as default};
|
package/lib/process/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],e);else{var r="object"==typeof exports?e(require("../shared"),require("vue"),require("../icon")):e(t["../shared"],t.vue,t["../icon"]);for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(self,((t,e,r)=>(()=>{var n={7162:(t,e,r)=>{t.exports=r(5047)},5047:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=l(t,e,r);if("normal"===u.type){if(n=r.done?d:p,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f="suspendedStart",p="suspendedYield",h="executing",d="completed",y={};function v(){}function g(){}function m(){}var b={};u(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(k([])));x&&x!==r&&n.call(x,i)&&(b=x);var P=m.prototype=v.prototype=Object.create(b);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:S}}function S(){return{value:e,done:!0}}return g.prototype=m,u(P,"constructor",m),u(m,"constructor",g),g.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(P),t},t.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,a,(function(){return this})),t.AsyncIterator=j,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new j(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(P),u(P,c,"Generator"),u(P,i,(function(){return this})),u(P,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=k,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},6870:t=>{"use strict";t.exports=r},4212:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={exports:{}};return n[t](r,r.exports,i),r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return(()=>{"use strict";i.r(a),i.d(a,{default:()=>l});var t=i(4212);function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var r=i(748),n=i(7162),o=i.n(n);Object.create,Object.create;var c=i(6870),u={list:t.PropTypes.array.def([]),controllable:t.PropTypes.bool.def(!1),showSteps:t.PropTypes.bool.def(!1),curProcess:t.PropTypes.number.def(0),displayKey:t.PropTypes.string.def("content"),extCls:t.PropTypes.string};const s=(0,r.defineComponent)({name:"BKProcess",props:u,emits:["update:curProcess","click"],setup:function(t,n){var i=this,a=n.emit,c=(0,r.ref)([]),u=(0,r.ref)(0);return(0,r.onMounted)((function(){var r,n,o,i;(r=c.value).splice.apply(r,[0,c.value.length].concat([{content:"步骤1"},{content:"步骤2"},{content:"步骤3"},{content:"步骤4"},{content:"步骤5"}])),console.log("props.list",t.list),(null===(n=t.list)||void 0===n?void 0:n.length)&&(o=c.value).splice.apply(o,[0,c.value.length].concat(function(t){if(Array.isArray(t))return e(t)}(i=t.list)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(t,r){if(t){if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))})),{defaultProcessList:c,paddingBottom:u,jumpTo:function(e){return r=i,n=void 0,c=void 0,u=o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:console.log(e);try{t.controllable&&e!==t.curProcess&&(console.log(t.curProcess),a("update:curProcess",e),console.log(t.curProcess),a("click",e))}catch(t){console.warn(t)}case 2:case"end":return r.stop()}}),r)})),new(c||(c=Promise))((function(t,e){function o(t){try{a(u.next(t))}catch(t){e(t)}}function i(t){try{a(u.throw(t))}catch(t){e(t)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof c?r:new c((function(t){t(r)}))).then(o,i)}a((u=u.apply(r,n||[])).next())}));var r,n,c,u}}},render:function(){var e,n,o,i=this,a=(0,t.classes)((e={},n="".concat(this.extCls),o=!!this.extCls,n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e),"".concat("bk-process")),u=function(t){return"loading"===t.status},s=function(t){return t.icon?t.icon:""},l=function(t,e){return t===i.curProcess-1&&u(e)?(0,r.createVNode)(c.Circle,{class:"bk-icon bk-process-icon icon-loading"},null):function(t){return"error"===t.status}(e)?(0,r.createVNode)(c.Error,{class:"bk-process-icon"},null):function(t){return i.curProcess>=t+1||"done"===i.defaultProcessList[t].status}(t)?(0,r.createVNode)(c.Done,{class:"bk-process-icon-done"},null):(0,r.createVNode)("span",{class:"number"},[s(e)])};return(0,r.createVNode)("div",{class:a},[(0,r.createVNode)("ul",{style:{paddingBottom:"".concat(this.paddingBottom,"px")}},[this.defaultProcessList.map((function(t,e){return(0,r.createVNode)("li",{onClick:function(){i.jumpTo(e+1)},style:{cursor:i.controllable?"pointer":""},class:{success:i.curProcess>=e+1,current:u(t)&&e===i.curProcess-1}},[t[i.displayKey],l(e,t)])}))])])}}),l=(0,t.withInstall)(s)})(),a})()));
|
1
|
+
import*as t from"../shared";import*as r from"vue";import*as e from"../icon";var n={7162:(t,r,e)=>{t.exports=e(5047)},5047:t=>{var r=function(t){var r,e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(t){s=function(t,r,e){return t[r]=e}}function u(t,r,e,n){var o=r&&r.prototype instanceof v?r:v,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(t,r,e){var n=f;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return _()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=j(a,e);if(c){if(c===y)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===f)throw n=d,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=p;var s=l(t,r,e);if("normal"===s.type){if(n=e.done?d:h,s.arg===y)continue;return{value:s.arg,done:e.done}}"throw"===s.type&&(n=d,e.method="throw",e.arg=s.arg)}}}(t,e,a),i}function l(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",d="completed",y={};function v(){}function m(){}function g(){}var w={};s(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(N([])));x&&x!==e&&n.call(x,i)&&(w=x);var P=g.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function E(t,r){function e(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,a,c)}),(function(t){e("throw",t,a,c)})):r.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return e("throw",t,a,c)}))}c(s.arg)}var o;this._invoke=function(t,n){function i(){return new r((function(r,o){e(t,n,r,o)}))}return o=o?o.then(i,i):i()}}function j(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,j(t,e),"throw"===e.method))return y;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,y;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,y):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function O(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function T(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=r,e.done=!0,e};return a.next=a}}return{next:_}}function _(){return{value:r,done:!0}}return m.prototype=g,s(P,"constructor",g),s(g,"constructor",m),m.displayName=s(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===m||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,c,"GeneratorFunction")),t.prototype=Object.create(P),t},t.awrap=function(t){return{__await:t}},L(E.prototype),s(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new E(u(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(P),s(P,c,"Generator"),s(P,i,(function(){return this})),s(P,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),T(e),y}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;T(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:N(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),y}},t}(t.exports);try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},o={};function i(t){var r=o[t];if(void 0!==r)return r.exports;var e=o[t]={exports:{}};return n[t](e,e.exports,i),e.exports}i.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return i.d(r,{a:r}),r},i.d=(t,r)=>{for(var e in r)i.o(r,e)&&!i.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},i.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r);var a={};(()=>{i.d(a,{Z:()=>y});const n=(o={PropTypes:()=>t.PropTypes,classes:()=>t.classes,withInstall:()=>t.withInstall},c={},i.d(c,o),c);var o,c;function s(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}const u=(t=>{var r={};return i.d(r,t),r})({createVNode:()=>r.createVNode,defineComponent:()=>r.defineComponent,onMounted:()=>r.onMounted,ref:()=>r.ref});var l=i(7162),f=i.n(l);Object.create,Object.create;const h=(t=>{var r={};return i.d(r,t),r})({Circle:()=>e.Circle,Done:()=>e.Done,Error:()=>e.Error});var p={list:n.PropTypes.array.def([]),controllable:n.PropTypes.bool.def(!1),showSteps:n.PropTypes.bool.def(!1),curProcess:n.PropTypes.number.def(0),displayKey:n.PropTypes.string.def("content"),extCls:n.PropTypes.string};const d=(0,u.defineComponent)({name:"BKProcess",props:p,emits:["update:curProcess","click"],setup:function(t,r){var e=this,n=r.emit,o=(0,u.ref)([]),i=(0,u.ref)(0);return(0,u.onMounted)((function(){var r,e,n,i;(r=o.value).splice.apply(r,[0,o.value.length].concat([{content:"步骤1"},{content:"步骤2"},{content:"步骤3"},{content:"步骤4"},{content:"步骤5"}])),console.log("props.list",t.list),(null===(e=t.list)||void 0===e?void 0:e.length)&&(n=o.value).splice.apply(n,[0,o.value.length].concat(function(t){if(Array.isArray(t))return s(t)}(i=t.list)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(t,r){if(t){if("string"==typeof t)return s(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?s(t,r):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))})),{defaultProcessList:o,paddingBottom:i,jumpTo:function(r){return o=e,i=void 0,a=void 0,c=f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log(r);try{t.controllable&&r!==t.curProcess&&(console.log(t.curProcess),n("update:curProcess",r),console.log(t.curProcess),n("click",r))}catch(t){console.warn(t)}case 2:case"end":return e.stop()}}),e)})),new(a||(a=Promise))((function(t,r){function e(t){try{s(c.next(t))}catch(t){r(t)}}function n(t){try{s(c.throw(t))}catch(t){r(t)}}function s(r){var o;r.done?t(r.value):(o=r.value,o instanceof a?o:new a((function(t){t(o)}))).then(e,n)}s((c=c.apply(o,i||[])).next())}));var o,i,a,c}}},render:function(){var t,r,e,o=this,i=(0,n.classes)((t={},r="".concat(this.extCls),e=!!this.extCls,r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t),"".concat("bk-process")),a=function(t){return"loading"===t.status},c=function(t){return t.icon?t.icon:""},s=function(t,r){return t===o.curProcess-1&&a(r)?(0,u.createVNode)(h.Circle,{class:"bk-icon bk-process-icon icon-loading"},null):function(t){return"error"===t.status}(r)?(0,u.createVNode)(h.Error,{class:"bk-process-icon"},null):function(t){return o.curProcess>=t+1||"done"===o.defaultProcessList[t].status}(t)?(0,u.createVNode)(h.Done,{class:"bk-process-icon-done"},null):(0,u.createVNode)("span",{class:"number"},[c(r)])};return(0,u.createVNode)("div",{class:i},[(0,u.createVNode)("ul",{style:{paddingBottom:"".concat(this.paddingBottom,"px")}},[this.defaultProcessList.map((function(t,r){return(0,u.createVNode)("li",{onClick:function(){o.jumpTo(r+1)},style:{cursor:o.controllable?"pointer":""},class:{success:o.curProcess>=r+1,current:a(t)&&r===o.curProcess-1}},[t[o.displayKey],s(r,t)])}))])])}}),y=(0,n.withInstall)(d)})();var c=a.Z;export{c as default};
|
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|
package/lib/progress/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as t from"vue";var r={d:(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},o={};r.d(o,{Z:()=>u});const s=(n={PropTypes:()=>e.PropTypes,classes:()=>e.classes,withInstall:()=>e.withInstall},a={},r.d(a,n),a);var n,a;const c=(e=>{var t={};return r.d(t,e),t})({createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,isVNode:()=>t.isVNode}),i=function(e,t){var r=t.attrs,o=t.slots,s=r.width,n=r.percent,a=r.strokeWidth,i=r.color,l=r.strokeLinecap,p=r.theme,d=r.type,u=r.bgColor,f=r.titleStyle,h=a||6,y=s||126,b={width:"number"==typeof y?"".concat(y,"px"):y,height:"number"==typeof y?"".concat(y,"px"):y,fontSize:"".concat(.15*y+6,"px")},v=50-h/2,g="dashboard"===d,m=2*Math.PI*v,x=g?.75:1,P="".concat(-1*m*(1-x)/2,"px"),k={strokeDasharray:"".concat(m*x,"px, ").concat(m,"px"),strokeDashoffset:P},T={strokeDasharray:"".concat(m*x*(n/100),"px, ").concat(m,"px"),strokeDashoffset:P,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"},N="\n M 50 50\n m 0 ".concat(g?"":"-").concat(v,"\n a ").concat(v," ").concat(v," 0 1 1 0 ").concat(g?"-":"").concat(2*v,"\n a ").concat(v," ").concat(v," 0 1 1 0 ").concat(g?"":"-").concat(2*v,"\n "),V={d:N,stroke:u||"#f5f5f5","stroke-linecap":l,"stroke-width":h,"fill-opacity":"0",class:"process-circle-trail",style:k},w={d:N,stroke:i||"#13ce66","stroke-linecap":l,"stroke-width":n>0&&h||0,"fill-opacity":"0",class:"process-circle-path bk-".concat(p,"-circle-trail"),style:T};return(0,c.createVNode)("div",{class:"progress-outer-circle",style:b},[(0,c.createVNode)("svg",{viewBox:"0 0 100 100"},[(0,c.createVNode)("path",V,null),(0,c.createVNode)("path",w,null)]),(0,c.createVNode)("span",{class:"progress-circle-text",style:f},[null==o?void 0:o.default()])])},l=function(e,t){var r,o,s=t.attrs,n=t.slots,a=s.percent,i=s.strokeWidth,l=s.size,p=s.color,d=s.titleStyle,u=s.showText,f=s.textInside,h=s.theme,y={height:"".concat(i,"px"),lineHeight:"".concat(i,"px")},b={width:"".concat(a,"%"),background:p,animationDuration:"3s"},v=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return(u||n.default)&&(e&&f||!e&&!f)?null==n?void 0:n.default():null};return(0,c.createVNode)("div",{class:"progress-outer"},[(0,c.createVNode)("div",{class:"bk-progress-".concat(l||"normal"," progress-bar"),style:y},[(0,c.createVNode)("div",{style:b,class:(r={"progress-inner":!0},o="bk-".concat(h),!0,o in r?Object.defineProperty(r,o,{value:true,enumerable:!0,configurable:!0,writable:!0}):r[o]=true,r)},[(0,c.createVNode)("div",{class:"inner-text",style:d},[v()])])]),v(!1)])};function p(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,c.isVNode)(e)}const d=(0,c.defineComponent)({name:"Progress",props:{extCls:s.PropTypes.string,type:s.PropTypes.string.validate((function(e){return["line","circle","dashboard"].includes(e)})).def("line"),percent:s.PropTypes.number.def(0),theme:s.PropTypes.theme().def("primary"),size:s.PropTypes.size(),width:s.PropTypes.number.def(126),strokeWidth:s.PropTypes.number,strokeLinecap:s.PropTypes.string.def("round"),textInside:s.PropTypes.bool.def(!1),showText:s.PropTypes.bool.def(!0),color:s.PropTypes.string,bgColor:s.PropTypes.string,fixed:s.PropTypes.number.validate((function(e){return e>=0&&e<=20})).def(0),format:s.PropTypes.func.def((function(e){return"".concat(e,"%")})),titleStyle:s.PropTypes.object.def({fontSize:"16px",verticalAlign:"middle"})},setup:function(){return{}},methods:{validPercent:function(e){return!e||e<0?0:e>100?100:e},renderProcessInfo:function(){var e,t=this.$props,r=t.showText,o=t.format,s=t.percent,n=t.textInside,a=t.titleStyle,i=t.fixed,l=o(null===(e=this.validPercent(s))||void 0===e?void 0:e.toFixed(i));return(r||this.$slots.default)&&n?this.$slots.default?this.$slots.default():(0,c.createVNode)("span",null,[l]):!r||n?null:(0,c.createVNode)("span",{class:"progress-text",style:"string"==typeof l?a:void 0},[this.$slots.default?this.$slots.default():l])}},render:function(){var e=this.renderProcessInfo(),t=Object.assign(Object.assign({},this.$props),{percent:this.validPercent(this.percent)}),r=(0,c.createVNode)(l,t,p(e)?e:{default:function(){return[e]}});"circle"!==this.type&&"dashboard"!==this.type||(r=(0,c.createVNode)(i,t,p(e)?e:{default:function(){return[e]}}));var o={class:(0,s.classes)({extCls:!!this.extCls},"bk-progress bk-progress-".concat(this.type))};return(0,c.createVNode)("div",o,[r])}}),u=(0,s.withInstall)(d);var f=o.Z;export{f as default};
|
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|
package/lib/radio/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as t from"vue";var n={d:(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},o={};n.d(o,{GQ:()=>g,My:()=>m,lW:()=>y,ZP:()=>k});const r=(a={EMPTY_OBJ:()=>e.EMPTY_OBJ,PropTypes:()=>e.PropTypes,classes:()=>e.classes,isEmptyObj:()=>e.isEmptyObj,useFormItem:()=>e.useFormItem,withInstallProps:()=>e.withInstallProps},s={},n.d(s,a),s);var a,s;function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a=[],s=!0,i=!1;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(a.push(o.value),!t||a.length!==t);s=!0);}catch(e){i=!0,r=e}finally{try{s||null==n.return||n.return()}finally{if(i)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const d=(e=>{var t={};return n.d(t,e),t})({computed:()=>t.computed,createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,getCurrentInstance:()=>t.getCurrentInstance,inject:()=>t.inject,nextTick:()=>t.nextTick,onBeforeUnmount:()=>t.onBeforeUnmount,onMounted:()=>t.onMounted,provide:()=>t.provide,ref:()=>t.ref,watch:()=>t.watch});var u=Symbol("RadioGroup");function c(){var e=(0,d.ref)(!1);return[e,{blur:function(){e.value=!1},focus:function(){e.value=!0}}]}var p=function(){var e=(0,d.getCurrentInstance)(),t=e.props,n=e.emit,o=(0,r.useFormItem)(),a=(0,d.inject)(u,r.EMPTY_OBJ),s=!(0,r.isEmptyObj)(a),i=(0,d.ref)(!1),l=(0,d.computed)((function(){return!(!s||!a.props.disabled)||t.disabled}));return s?(0,d.watch)((function(){return a.props.modelValue}),(function(e){i.value=e===t.label}),{immediate:!0}):(0,d.watch)((function(){return t.modelValue}),(function(e){""!==e&&(i.value=e===t.label)}),{immediate:!0}),(0,d.onMounted)((function(){s&&a.register(e.proxy)})),(0,d.onBeforeUnmount)((function(){s&&a.unregister(e.proxy)})),{isChecked:i,isDisabled:l,setChecked:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];i.value=e},handleChange:function(r){var u;if(!l.value){var c=r.target;i.value=c.checked;var p=i.value?t.label:"";n("change",p),n("update:modelValue",p),s&&a.handleChange(e.proxy),null===(u=null==o?void 0:o.validate)||void 0===u||u.call(o,"change"),(0,d.nextTick)((function(){c.checked!==i.value&&(c.checked=i.value)}))}}}},h={name:r.PropTypes.string.def(""),label:r.PropTypes.oneOfType([String,Number,Boolean]).isRequired,modelValue:r.PropTypes.oneOfType([String,Number,Boolean]).def(""),checked:r.PropTypes.bool.def(!1),disabled:r.PropTypes.bool.def(!1)};const f=(0,d.defineComponent)({name:"Radio",props:h,emits:["change","update:modelValue"],setup:function(){var e=l(c(),2),t=e[0],n=e[1],o=n.blur,r=n.focus,a=p();return{isFocused:t,isChecked:a.isChecked,isDisabled:a.isDisabled,setChecked:a.setChecked,handleBlur:o,handleFocus:r,handleChange:a.handleChange}},render:function(){var e=(0,r.classes)({"bk-radio":!0,"is-focused":this.isFocused,"is-disabled":this.isDisabled,"is-checked":this.isChecked});return(0,d.createVNode)("label",{class:e,tabindex:"0"},[(0,d.createVNode)("input",{class:"bk-radio-input",type:"radio",tabindex:"0",value:this.label,checked:this.isChecked,disabled:this.isDisabled,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange},null),(0,d.createVNode)("span",{class:"bk-radio-text"},[this.$slots.default?this.$slots.default():this.label])])}});var b={name:r.PropTypes.string.def(""),label:r.PropTypes.oneOfType([String,Number,Boolean]).isRequired,modelValue:r.PropTypes.oneOfType([String,Number,Boolean]).def(""),checked:r.PropTypes.bool.def(!1),disabled:r.PropTypes.bool.def(!1),size:r.PropTypes.size};const m=(0,d.defineComponent)({name:"RadioButton",props:b,emits:["change","update:modelValue"],setup:function(){var e=l(c(),2),t=e[0],n=e[1],o=n.blur,r=n.focus,a=p();return{isFocused:t,isChecked:a.isChecked,isDisabled:a.isDisabled,setChecked:a.setChecked,handleBlur:o,handleFocus:r,handleChange:a.handleChange}},render:function(){var e=(0,r.classes)({"bk-radio-button":!0,"is-focused":this.isFocused,"is-disabled":this.isDisabled,"is-checked":this.isChecked});return(0,d.createVNode)("label",{class:e,tabindex:"0"},[(0,d.createVNode)("input",{class:"bk-radio-button-input",type:"radio",tabindex:"0",value:this.label,checked:this.isChecked,disabled:this.isDisabled,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange},null),(0,d.createVNode)("div",{class:"bk-radio-button-text"},[this.$slots.default?this.$slots.default():this.label])])}});var v={name:r.PropTypes.string.def(""),modelValue:r.PropTypes.oneOfType([String,Number,Boolean]),disabled:r.PropTypes.bool};const y=(0,d.defineComponent)({name:"RadioGroup",props:v,emits:["change","update:modelValue"],setup:function(e,t){var n=[];return(0,d.provide)(u,{props:e,register:function(e){n.push(e)},unregister:function(e){var t=n.indexOf(e);t>-1&&n.splice(t,1)},handleChange:function(e){var o=e.label;n.forEach((function(t){t!==e&&t.setChecked(!1)})),t.emit("update:modelValue",o),t.emit("change",o)}}),(0,d.onMounted)((function(){""!==e.modelValue&&n.forEach((function(t){t.setChecked(t.label===e.modelValue)}))})),{}},render:function(){var e;return(0,d.createVNode)("div",{class:"bk-radio-group"},[null===(e=this.$slots)||void 0===e?void 0:e.default()])}});var g=(0,r.withInstallProps)(f,{Group:y,Button:m});const k=g;var C=o.GQ,T=o.My,P=o.lW,B=o.ZP;export{C as BkRadio,T as BkRadioButton,P as BkRadioGroup,B as default};
|
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|
package/lib/rate/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as t from"vue";var r={d:(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},o={};r.d(o,{Z:()=>c});const a=(n={PropTypes:()=>e.PropTypes,classes:()=>e.classes,useFormItem:()=>e.useFormItem,withInstall:()=>e.withInstall},s={},r.d(s,n),s);var n,s;const l=(e=>{var t={};return r.d(t,e),t})({computed:()=>t.computed,createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,mergeProps:()=>t.mergeProps,ref:()=>t.ref}),i=(0,l.defineComponent)({name:"Star",props:{rate:a.PropTypes.number.def(0),width:a.PropTypes.number.def(15),height:a.PropTypes.number.def(16),editable:a.PropTypes.bool.def(!0),hoverRate:a.PropTypes.number.def(0),max:a.PropTypes.number.def(5)},emits:["chooseRate","changeHover"],setup:function(e,t){var r=t.emit,o=function(t){return(0,a.classes)({"bk-is-select":t<Math.floor(n.value),"bk-is-edit":e.editable,"bk-rate-star":!0})},n=(0,l.computed)((function(){return e.hoverRate||e.rate})),s={width:"".concat(e.width,"px"),height:"".concat(e.height,"px"),minWidth:"".concat(e.width,"px")};return function(){return(0,l.createVNode)("p",{class:"bk-rate-stars"},[Array(e.max).fill(1).map((function(t,a){return(0,l.createVNode)("svg",{class:o(a),style:s,x:"0px",y:"0px",viewBox:"0 0 64 64",onClick:function(){return function(t){e.editable&&r("chooseRate",t+1)}(a)},onMouseenter:function(){return function(t){e.editable&&r("changeHover",t+1)}(a)}},[(0,l.createVNode)("g",{transform:"translate(-143.000000, -635.000000)"},[(0,l.createVNode)("g",{transform:"translate(83.000000, 114.000000)"},[(0,l.createVNode)("g",{transform:"translate(15.000000, 384.000000)"},[(0,l.createVNode)("g",{transform:"translate(29.000000, 137.000000)"},[(0,l.createVNode)("polygon",{class:"st1",points:"48,53 28.2,63.9 32,40.8 16,24.4 38.1,21 48,-0.1 57.8,21 79.9,24.4 63.9,40.8 67.7,63.9"},null)])])])])])}))])}}}),d=(0,l.defineComponent)({name:"Rate",components:{star:i},props:{modelValue:a.PropTypes.number.def(0),size:a.PropTypes.size(),editable:a.PropTypes.bool.def(!0)},emits:["change","update:modelValue"],setup:function(e,t){var r=t.emit,o=(0,a.useFormItem)(),n=(0,l.ref)(0),s=function(t){var a;e.editable&&(r("update:modelValue",t),r("change",t),null===(a=null==o?void 0:o.validate)||void 0===a||a.call(o,"change"))},d=function(e){n.value=e},c=(0,a.classes)({"bk-rate":!0}),u={small:{width:12,height:12},large:{width:18,height:18}}[e.size]||{width:15,height:16},p=(0,l.computed)((function(){var t=Math.floor(e.modelValue),r=(u.width+3)*t,o=u.width*(e.modelValue-t);return{width:"".concat(r+o,"px")}})),m={width:u.width,height:u.height};return function(){return(0,l.createVNode)("p",{class:c},[e.editable?(0,l.createVNode)(i,(0,l.mergeProps)({rate:e.modelValue,"hover-rate":n.value,onChooseRate:s,onChangeHover:d,onMouseleave:function(){return d(0)}},m),null):[(0,l.createVNode)(i,(0,l.mergeProps)({rate:5,style:p.value,class:"bk-score-real",editable:!1},m),null),(0,l.createVNode)(i,(0,l.mergeProps)({rate:0,editable:!1},m),null)]])}}}),c=(0,a.withInstall)(d);var u=o.Z;export{u as default};
|