vdesign-ui 0.1.19 → 0.1.20
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/components/actionbar/actionbar-cell/index.vue +34 -0
- package/dist/components/actionbar/index.js +8 -0
- package/dist/components/actionbar/index.vue +39 -0
- package/dist/components/actionbar/style.less +48 -0
- package/dist/components/actions-cell/actions/index.js +7 -0
- package/dist/components/actions-cell/actions/index.vue +76 -0
- package/dist/components/actions-cell/actions/style.less +112 -0
- package/dist/components/actions-cell/index.js +7 -0
- package/dist/components/actions-cell/index.vue +94 -0
- package/dist/components/actions-cell/style.less +39 -0
- package/dist/components/activityviews/index.js +8 -0
- package/dist/components/activityviews/index.vue +140 -0
- package/dist/components/activityviews/style.less +138 -0
- package/dist/components/badge/index.js +8 -0
- package/dist/components/badge/index.vue +49 -0
- package/dist/components/badge/style.less +66 -0
- package/dist/components/button/index.js +8 -0
- package/dist/components/button/index.vue +89 -0
- package/dist/components/button/style.less +563 -0
- package/dist/components/calendar/end.png +0 -0
- package/dist/components/calendar/index-element.vue +84 -0
- package/dist/components/calendar/index.js +8 -0
- package/dist/components/calendar/index.vue +52 -0
- package/dist/components/calendar/start.png +0 -0
- package/dist/components/calendar/style.less +167 -0
- package/dist/components/checkbox/assist.js +34 -0
- package/dist/components/checkbox/checkbox-group/index.js +8 -0
- package/dist/components/checkbox/checkbox-group/index.vue +69 -0
- package/dist/components/checkbox/index.js +8 -0
- package/dist/components/checkbox/index.vue +184 -0
- package/dist/components/checkbox/style.less +291 -0
- package/dist/components/common/state/index.vue +80 -0
- package/dist/components/data-list/index.js +10 -0
- package/dist/components/data-list/index.vue +19 -0
- package/dist/components/data-list/style.less +624 -0
- package/dist/components/datetime-picker/index.js +8 -0
- package/dist/components/datetime-picker/index.vue +37 -0
- package/dist/components/datetime-picker/style.less +24 -0
- package/dist/components/dialog/index.js +8 -0
- package/dist/components/dialog/index.vue +162 -0
- package/dist/components/dialog/overlay-manager.js +18 -0
- package/dist/components/dialog/style.less +132 -0
- package/dist/components/divider/index.js +8 -0
- package/dist/components/divider/index.vue +54 -0
- package/dist/components/divider/style.less +92 -0
- package/dist/components/dropdown/index.js +8 -0
- package/dist/components/dropdown/index.vue +210 -0
- package/dist/components/dropdown/style.less +418 -0
- package/dist/components/empty/404-dark.png +0 -0
- package/dist/components/empty/404.png +0 -0
- package/dist/components/empty/index.js +8 -0
- package/dist/components/empty/index.vue +95 -0
- package/dist/components/empty/network-dark.png +0 -0
- package/dist/components/empty/network.png +0 -0
- package/dist/components/empty/nodata-dark.png +0 -0
- package/dist/components/empty/nodata.png +0 -0
- package/dist/components/empty/style.less +60 -0
- package/dist/components/footer/index.js +7 -0
- package/dist/components/footer/index.vue +29 -0
- package/dist/components/footer/style.less +22 -0
- package/dist/components/footnav/footnav-item/index.js +7 -0
- package/dist/components/footnav/footnav-item/index.vue +75 -0
- package/dist/components/footnav/footnav-item/style.less +39 -0
- package/dist/components/footnav/index.js +7 -0
- package/dist/components/footnav/index.vue +97 -0
- package/dist/components/footnav/style.less +23 -0
- package/dist/components/form/index.js +7 -0
- package/dist/components/form/index.vue +12 -0
- package/dist/components/headnav/index.js +7 -0
- package/dist/components/headnav/index.vue +163 -0
- package/dist/components/headnav/style.less +245 -0
- package/dist/components/icon/font/iconfont.css +1050 -0
- package/dist/components/icon/font/iconfont.js +2 -0
- package/dist/components/icon/index.js +9 -0
- package/dist/components/icon/index.vue +46 -0
- package/dist/components/icon/style.less +44 -0
- package/dist/components/input/calcTextareaHeight.js +266 -0
- package/dist/components/input/index.js +8 -0
- package/dist/components/input/index.vue +343 -0
- package/dist/components/input/password/index.js +8 -0
- package/dist/components/input/password/index.vue +60 -0
- package/dist/components/input/search/index.js +8 -0
- package/dist/components/input/search/index.vue +66 -0
- package/dist/components/input/stepper/index.js +8 -0
- package/dist/components/input/stepper/index.vue +136 -0
- package/dist/components/input/style.less +497 -0
- package/dist/components/list/index.js +8 -0
- package/dist/components/list/index.vue +159 -0
- package/dist/components/list/style.less +292 -0
- package/dist/components/loading/index.js +7 -0
- package/dist/components/loading/index.vue +53 -0
- package/dist/components/loading/loading.png +0 -0
- package/dist/components/loading/refresh.png +0 -0
- package/dist/components/loading/style.less +48 -0
- package/dist/components/mixins/clickoutside.js +81 -0
- package/dist/components/mixins/dom.js +41 -0
- package/dist/components/mixins/languageMixin.js +38 -0
- package/dist/components/mixins/outlineConfigPlugin.js +40 -0
- package/dist/components/mixins/router-link.js +23 -0
- package/dist/components/mixins/themeMixin.js +29 -0
- package/dist/components/noticebar/index.js +8 -0
- package/dist/components/noticebar/index.vue +247 -0
- package/dist/components/noticebar/style.less +332 -0
- package/dist/components/overlay/index.js +8 -0
- package/dist/components/overlay/index.vue +161 -0
- package/dist/components/overlay/style.less +23 -0
- package/dist/components/pagebreak/index.js +7 -0
- package/dist/components/pagebreak/index.vue +60 -0
- package/dist/components/pagebreak/style.less +43 -0
- package/dist/components/popover/index.js +8 -0
- package/dist/components/popover/index.vue +99 -0
- package/dist/components/popover/style.less +346 -0
- package/dist/components/popover/vue-popover.vue +314 -0
- package/dist/components/radio/assist.js +34 -0
- package/dist/components/radio/index.js +8 -0
- package/dist/components/radio/index.vue +159 -0
- package/dist/components/radio/radio-group/index.vue +70 -0
- package/dist/components/radio/style.less +297 -0
- package/dist/components/result/completed-dark.png +0 -0
- package/dist/components/result/completed.png +0 -0
- package/dist/components/result/error-dark.png +0 -0
- package/dist/components/result/error.png +0 -0
- package/dist/components/result/index.js +8 -0
- package/dist/components/result/index.vue +75 -0
- package/dist/components/result/style.less +42 -0
- package/dist/components/result/wait-dark.png +0 -0
- package/dist/components/result/wait.png +0 -0
- package/dist/components/selector/index.js +8 -0
- package/dist/components/selector/index.vue +124 -0
- package/dist/components/selector/style.less +474 -0
- package/dist/components/skeleton/index.js +7 -0
- package/dist/components/skeleton/index.vue +142 -0
- package/dist/components/skeleton/style.less +192 -0
- package/dist/components/slider/draggable.js +49 -0
- package/dist/components/slider/index.js +7 -0
- package/dist/components/slider/index.vue +173 -0
- package/dist/components/slider/style.less +96 -0
- package/dist/components/slider/utils.js +60 -0
- package/dist/components/step/index.js +7 -0
- package/dist/components/step/index.vue +48 -0
- package/dist/components/step/style.less +59 -0
- package/dist/components/step-item/index.js +7 -0
- package/dist/components/step-item/index.vue +117 -0
- package/dist/components/step-item/style.less +361 -0
- package/dist/components/style/index.vue +42 -0
- package/dist/components/switch/index.js +8 -0
- package/dist/components/switch/index.vue +72 -0
- package/dist/components/switch/style.less +56 -0
- package/dist/components/tabs/index.js +8 -0
- package/dist/components/tabs/index.vue +145 -0
- package/dist/components/tabs/style.less +385 -0
- package/dist/components/tabs/tab/index.vue +56 -0
- package/dist/components/tag/index.js +7 -0
- package/dist/components/tag/index.vue +50 -0
- package/dist/components/tag/style.less +211 -0
- package/dist/components/title/index.js +8 -0
- package/dist/components/title/index.vue +92 -0
- package/dist/components/title/style.less +188 -0
- package/dist/components/toast/index.js +80 -0
- package/dist/components/toast/index.vue +44 -0
- package/dist/components/toast/style.less +55 -0
- package/dist/components/transition/index.js +8 -0
- package/dist/components/transition/index.vue +13 -0
- package/dist/components/transition/style.less +208 -0
- package/dist/components/upload/index.js +7 -0
- package/dist/components/upload/index.vue +224 -0
- package/dist/components/upload/style.less +156 -0
- package/dist/demo.html +10 -0
- package/dist/locale/ar.js +98 -0
- package/dist/locale/en.js +98 -0
- package/dist/locale/zh.js +98 -0
- package/dist/token.css +2982 -0
- package/dist/vdesign-ui.common.js +27204 -0
- package/dist/vdesign-ui.css +1 -0
- package/dist/vdesign-ui.umd.js +27214 -0
- package/dist/vdesign-ui.umd.min.js +32 -0
- package/package.json +1 -1
- package/dist/css/chunk-1952c402.04c2303e.css +0 -1
- package/dist/css/chunk-6a5c6104.38021b56.css +0 -1
- package/dist/css/chunk-vendors.4ecfba63.css +0 -1
- package/dist/css/sites.395ce21f.css +0 -1
- package/dist/img/bg_mobile.5909f667.png +0 -0
- package/dist/img/icon.a67073c3.svg +0 -7
- package/dist/img/iphoneX.38c8778e.png +0 -0
- package/dist/img/logo-white.fad4f907.png +0 -0
- package/dist/img/logo.1eda11d6.png +0 -0
- package/dist/img/qrcode2.0a9d9044.png +0 -0
- package/dist/index.html +0 -1
- package/dist/js/chunk-1952c402.c58ecfb5.js +0 -1
- package/dist/js/chunk-2d2183be.2a64419d.js +0 -1
- package/dist/js/chunk-6a5c6104.c8fa5635.js +0 -1
- package/dist/js/chunk-vendors.490b7673.js +0 -37
- package/dist/js/sites.5a217467.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2183be"],{c9b4:function(e,n,o){var r={"./demo copy.vue":"53e2","./demo.vue":"ccda","./index.vue":"6e57","./test.vue":"82d0"};function c(e){var n=u(e);return o(n)}function u(e){if(!o.o(r,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return r[e]}c.keys=function(){return Object.keys(r)},c.resolve=u,e.exports=c,c.id="c9b4"}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6a5c6104"],{"03da":function(t,e,s){},"067d":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAIyElEQVR4nO3dQXLkOBIAQWmt///l2R8UZQYBiaDczzNVLJIKwwHZ+P7vv/++AAr+N30BAD8lWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZPxb/P+/v79/5Tpu9nhOx+JNWD8HZPcFPH7+7lv0aPwePhq/RTdYf0xWWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmrozmP1jfj77Y+EvH5Nz5+/oGZjN1PYX12Z/Erdj/EX/mKRX/hT+mRFRaQIVhAhmABGYIFZAg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ECGYAEZggVkCBaQsX0059ELDnRZvACTMV8XjDftfgoveMrrP2H9PbHCAjIEC8gQLCBDsIAMwQIyBAvIECwgQ7CADMECMgQLyJgfzXmBzwMHBw7Fce7OowOzO/e/Bp//g/Ehtp+wwgIyBAvIECwgQ7CADMECMgQLyBAsIEOwgAzBAjLsdP8F9Q3EB/ap797Gvb5Pff0mvP4Yi/GDPL6ssIAQwQIyBAvIECwgQ7CADMECMgQLyBAsIEOwgAzBAjLmR3Pun1x5tPv0gd0TD+PHH/zE+BEPj14/OnPDTbbCAjIEC8gQLCBDsIAMwQIyBAvIECwgQ7CADMECMgQLyNg+mjM+r/AC40fOPFofClm8hgPTRfcbH505cAFWWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARnfLzi0BvgjrLCADMECMgQLyBAsIEOwgAzBAjIEC8gQLCBDsIAMwQIyBAvIECwgQ7CADMECMgQLyBAsIEOwgAzBAjIEC8gQLCBDsICM/wM4S+5P2JksmAAAAABJRU5ErkJggg=="},"11a9":function(t,e,s){},"12e6":function(t,e,s){"use strict";s("03da")},"16ef":function(t,e,s){"use strict";s("11a9")},"31ab":function(t,e,s){},"53e2":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t._self._c;return e("div",[e("vd-tabs",{attrs:{"tabs-type":"primary","act-border":""},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[e("vd-tab",{attrs:{title:"Tab 1"}},[t._v(" 1231 ")]),e("vd-tab",{attrs:{title:"Tab 2"}},[t._v(" 2456 ")]),e("vd-tab",{attrs:{title:"Tab 3"}},[t._v(" 4567 ")])],1),e("vd-tabs",{attrs:{"tabs-type":"primary","act-border":""},model:{value:t.aaa,callback:function(e){t.aaa=e},expression:"aaa"}},[e("vd-tab",{attrs:{title:"Tab 1",name:"t"}},[t._v(" 1231 ")]),e("vd-tab",{attrs:{title:"Tab 2",name:"a"}},[t._v(" 2456 ")]),e("vd-tab",{attrs:{title:"Tab 3",name:"b"}},[t._v(" 4567 ")])],1),e("h2",[t._v("Overlay")]),e("div",{staticClass:"ulist"},[e("vd-popover",{attrs:{closeable:""}},[e("template",{slot:"content"},[e("vd-icon",{staticClass:"vd-popover-icon",attrs:{name:"icon_nav_question"}}),e("span",[t._v("Hello World")])],1),e("vd-button",[t._v("带关闭按钮")])],2),e("vd-button",{attrs:{type:"primary"},on:{click:function(e){t.overlayOptions.overlayVisible=!0}}},[t._v("显示 Overlay")]),e("v-overlay",{attrs:{visible:t.overlayOptions.overlayVisible,"z-index":t.overlayOptions.zIndex,duration:t.overlayOptions.duration,"overlay-class":t.overlayOptions.overlayClass,"overlay-style":t.overlayOptions.overlayStyle,"lock-scroll":t.overlayOptions.lockScroll,"close-on-click-overlay":t.overlayOptions.closeOnClickOverlay},on:{click:function(e){t.overlayOptions.overlayVisible=!1}}},[e("div",{staticClass:"wrapper"},[e("div",{staticClass:"content"},[e("div",[t._v("这里是正文")]),e("vd-button",{on:{click:function(e){e.stopPropagation(),t.overlayOptions.overlayVisible=!1}}},[t._v("close")])],1)])])],1),e("h2",[t._v("Popup")]),e("div",{staticClass:"ulist"},[e("vd-button",{attrs:{type:"primary"},on:{click:function(e){t.popupState=!t.popupState}}},[t._v("显示 Popup")]),e("v-popup",{style:{padding:"40px"},attrs:{position:"left"},model:{value:t.popupState,callback:function(e){t.popupState=e},expression:"popupState"}},[e("div",{staticStyle:{height:"100vh",width:"15vw"}},[t._v("正文")])])],1),e("h2",[t._v("My Selector")]),e("div",{staticClass:"ulist"},[e("v-selector",{staticClass:"yyy",attrs:{size:"l",icon:"a-usmeiguo",content:t.test1Val},on:{click:t.test1Fun}}),e("vd-activityviews",{attrs:{title:"Title","close-btn":""},model:{value:t.activityviewsVal,callback:function(e){t.activityviewsVal=e},expression:"activityviewsVal"}},[[e("div",{staticStyle:{height:"180px",padding:"0 20px 20px"}},[t._v("自定义内容")])]],2),e("v-selector",{staticClass:"yyy",attrs:{type:"form",icon:"a-usmeiguo",content:t.test2Val},on:{click:t.test2Fun}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.test2State,expression:"test2State"}],staticStyle:{"background-color":"rgba(255,255,255,.3)",padding:"20px"}},[e("vd-checkbox-group",{model:{value:t.test2Val,callback:function(e){t.test2Val=e},expression:"test2Val"}},[e("vd-checkbox",{attrs:{name:"a"}},[t._v("default")]),e("vd-checkbox",{attrs:{name:"b"}},[t._v("selected")]),e("vd-checkbox",{attrs:{name:"c",disabled:""}},[t._v("disabled")])],1)],1),e("v-selector",{staticClass:"yyy",attrs:{contenteditable:"",active:"",size:"l",icon:"a-usmeiguo",content:"Large active"}},[e("div",{staticStyle:{"z-index":"9",position:"absolute",top:"100%",left:"0","background-color":"rgba(0,0,0,.3)",padding:"20px"}},[t._v(" 选中 ")])]),e("v-selector",{staticClass:"yyy",attrs:{disabled:"",arrow:!1,icon:"a-usmeiguo",content:"Default disabled"}},[e("div",{staticStyle:{"z-index":"9",position:"absolute",top:"100%",left:"0","background-color":"rgba(0,0,0,.3)",padding:"20px"}},[t._v(" 禁用 ")])]),e("v-selector",{staticClass:"yyy",attrs:{size:"s",content:"defaultTitle"}},[e("div",{staticStyle:{"z-index":"9",position:"absolute",top:"100%",left:"0","background-color":"rgba(0,0,0,.3)",padding:"20px"}},[t._v(" hello ")])]),e("v-selector",{staticClass:"yyy",style:"background-color: rgba(0, 0, 0, 0.05);border-radius: 8px;",attrs:{size:"s",type:"form"},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",[t._v("你好啊")]),e("p",[t._v("我这里可是~")])]},proxy:!0}])},[e("div",{staticStyle:{"z-index":"9",position:"absolute",top:"100%",left:"0","background-color":"rgba(0,0,0,.3)",padding:"20px"}},[t._v(" hello ")])]),e("v-selector",{staticClass:"yyy",attrs:{placement:"top",size:"s",arrow:"icon_btn_screen",type:"form",content:"content"}},[e("div",{staticStyle:{"z-index":"9",position:"absolute",top:"100%",left:"0","background-color":"rgba(0,0,0,.3)",padding:"20px"}},[t._v(" hello ")])]),e("vd-button",{on:{click:t.toggleState}},[t._v(t._s(t.content||"点击触发"))]),e("my-dropdown",{attrs:{type:"primary",active:t.activeCurrent,list:t.dropdownList},on:{itemClick:t.itemClick},model:{value:t.isShow,callback:function(e){t.isShow=e},expression:"isShow"}}),e("v-selector",{attrs:{type:"form",visibility:t.isShow2,content:t.content||"点击触发"},on:{click:t.toggleState2}}),e("my-dropdown",{attrs:{active:t.activeCurrent,global:"",type:"state"},scopedSlots:t._u([{key:"dropdownItemSlot",fn:function(){return t._l(t.dropdownList,(function(s){return e("div",{key:s.name,on:{click:function(e){return t.itemClick(s)}}},[t._v(t._s(s.text))])}))},proxy:!0}]),model:{value:t.isShow2,callback:function(e){t.isShow2=e},expression:"isShow2"}}),e("div",{staticClass:"demo-list"},[e("h4",[t._v("单选")]),e("div",{staticClass:"list list1"},[e("span",{ref:"title1",attrs:{slot:"title"},on:{click:function(e){return t.switchMenu("isVisible1",1)}},slot:"title"},[t._v("综合")])]),e("v-dropdown",{attrs:{isVisible:t.visible.isVisible1,list:t.list1,type:"simple"},on:{close:function(e){return t.switchMenu("isVisible1",1)},change:t.changeMenu}}),e("h4",[t._v("多选style1(一、二、三)列")]),e("div",{staticClass:"list list2"},[e("span",{ref:"title2",attrs:{slot:"title"},on:{click:function(e){return t.switchMenu("isVisible2",2)}},slot:"title"},[t._v("京东物流")]),e("span",{ref:"title3",attrs:{slot:"title"},on:{click:function(e){return t.switchMenu("isVisible3",2)}},slot:"title"},[t._v("京东物流")]),e("span",{ref:"title4",attrs:{slot:"title"},on:{click:function(e){return t.switchMenu("isVisible4",2)}},slot:"title"},[t._v("京东物流")])]),e("v-dropdown",{attrs:{isVisible:t.visible.isVisible2,list:t.list2,col:"1",type:"multiple"},on:{close:function(e){return t.switchMenu("isVisible2",2)},reset:t.reset,ok:t.ok,maxTip:t.maxTip}}),e("v-dropdown",{attrs:{isVisible:t.visible.isVisible3,list:t.list2,col:"2",type:"multiple"},on:{close:function(e){return t.switchMenu("isVisible3",2)},reset:t.reset,ok:t.ok,maxTip:t.maxTip}}),e("v-dropdown",{attrs:{isVisible:t.visible.isVisible4,list:t.list2,col:"3",type:"multiple"},on:{close:function(e){return t.switchMenu("isVisible4",2)},reset:t.reset,ok:t.ok,maxTip:t.maxTip}}),e("h4",[t._v("自定义菜单")]),e("div",{staticClass:"list list5"},[e("span",{attrs:{slot:"title"},on:{click:function(e){return t.switchMenu("isVisible11",5)}},slot:"title"},[t._v("自定义")])]),e("v-dropdown",{attrs:{isAnimation:"",isVisible:t.visible.isVisible11},on:{close:function(e){return t.switchMenu("isVisible11",5)}}},[e("div",{staticClass:"custom-wrap",attrs:{slot:"custom"},slot:"custom"},[e("span",[t._v("自定义")])])])],1)],1)],1)},a=[],l=(s("14d9"),{data(){return{active:1,aaa:"a",popupState:!1,overlayOptions:{overlayVisible:!1,zIndex:888,duration:2,overlayClass:"kk",overlayStyle:{color:"red"},lockScroll:!1,closeOnClickOverlay:!0},model:!1,test1Val:"触发activityviews",test2Val:[],test2State:!1,activityviewsVal:!1,dropdownList:[{text:"data0001",name:"1",desc:"xxx"},{text:"data0002",name:"2",desc:"xxx",disabled:!0},{text:"data0003",name:"3",desc:"xxx"},{text:"data0004",name:"4",desc:"xxx"}],content:"",isShow:!1,isShow2:!1,activeCurrent:"",num:1,titlenum:1,max:6,visible:{isVisible1:!1,isVisible2:!1,isVisible3:!1,isVisible4:!1,isVisible11:!1},list1:[{id:1,text:"综合",selected:!0},{id:1,text:"最新上架",selected:!1},{id:2,text:"价格最低",selected:!1},{id:3,text:"价格最高",selected:!1},{id:4,text:"评价最多",selected:!1}],list2:[{id:1,text:"京东物流",selected:!0},{id:2,text:"有货优先",selected:!1},{id:3,text:"海囤全球",selected:!1},{id:4,text:"货到付款",selected:!1},{id:5,text:"促销商品",selected:!1},{id:6,text:"配送全球",selected:!1}]}},methods:{switchMenu(t,e){this.num=e,this.titlenum=t.split("isVisible")[1];for(let s in this.visible)s!==t&&(this.visible[s]=!1);Array.from(document.querySelectorAll(".list")).forEach(t=>{t.style.zIndex=0}),this.visible[""+t]||(document.querySelector(".list"+this.num).style.zIndex=9999),this.visible[""+t]=!this.visible[""+t]},changeMenu(t,e){this.switchMenu("isVisible"+this.titlenum,1),this["list"+this.titlenum].map(t=>t.selected=!1),this.$set(this["list"+this.titlenum][e],"selected",!0),this.$refs["title"+this.titlenum].innerText=t.text},reset(){this.$refs["title"+this.titlenum].innerText="menu"},ok(t){let e=[];t.forEach(t=>{t.selected&&e.push(t.text)}),e.length&&(this.$refs["title"+this.titlenum].innerText=e.join())},maxTip(){alert("超过了最大选择数")},test1Fun(){console.log("test1Fun"),this.activityviewsVal=!0},test2Fun(){console.log("test2Fun"),this.test2State=!this.test2State},toggleState(){console.log(this.isShow),this.isShow=!0},toggleState2(){this.isShow2=!0},itemClick(t){console.log("点击的item:",t),this.content=t.text,this.activeCurrent=t}}}),n=l,o=(s("12e6"),s("2877")),r=Object(o["a"])(n,i,a,!1,null,"5da17b30",null);e["default"]=r.exports},"6e57":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"doc-content"},[e("div",{staticClass:"content-left"},[e("div",{staticClass:"content-title"},[t._v("Design Token ")]),t._m(0),e("div",{staticClass:"content-button"},[e("router-link",{staticClass:"left-button",attrs:{to:{name:"intro"}}},[t._v("开始使用")]),t._m(1)],1)])])},a=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-desc"},[e("p",[t._v("服务全球金融的企业级设计系统")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"right-button"},[t._v(" 扫码体验 "),e("div",{staticClass:"qrcode-area"},[e("div",{staticClass:"qrcode"},[e("img",{attrs:{src:s("067d"),alt:"扫码体验"}})])])])}],l={data(){return{height:document.documentElement.clientHeight}}},n=l,o=(s("d94e"),s("2877")),r=Object(o["a"])(n,i,a,!1,null,null,null);e["default"]=r.exports},"82d0":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"trapezoid"}),e("CustomInput",{attrs:{placeholder:"请输入用户名",clearable:!0,validate:t.validateUsername,errorMessage:"用户名不能为空",inputClass:"custom-class"},on:{focus:t.handleFocus,blur:t.handleBlur,clear:t.handleClear},scopedSlots:t._u([{key:"prefix",fn:function(){return[e("span",[t._v("👤")])]},proxy:!0},{key:"suffix",fn:function(){return[e("button",{on:{click:t.submit}},[t._v("提交")])]},proxy:!0}]),model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1)},a=[],l=s("ccda"),n={components:{CustomInput:l["default"]},data(){return{username:""}},methods:{validateUsername(t){return t?t.length<3?"用户名长度不能小于3个字符":"":"用户名不能为空"},handleFocus(){console.log("输入框获得焦点")},handleBlur(){console.log("输入框失去焦点")},handleClear(){console.log("输入框内容被清除")},submit(){console.log("提交表单")}}},o=n,r=(s("a0da"),s("2877")),c=Object(r["a"])(o,i,a,!1,null,null,null);e["default"]=c.exports},a0da:function(t,e,s){"use strict";s("31ab")},a954:function(t,e,s){},ccda:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{class:["custom-input",t.inputClass]},[t._t("prefix"),e("input",{attrs:{type:t.type,placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly},domProps:{value:t.inputValue},on:{input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur}}),t.showClearButton?e("span",{staticClass:"clear-button",on:{click:t.clearInput}},[t._v("×")]):t._e(),t._t("suffix"),t.showErrorMessage?e("div",{staticClass:"error-message"},[t._v(t._s(t.errorMessage))]):t._e()],2)},a=[],l={name:"CustomInput",props:{value:{type:[String,Number],default:""},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},type:{type:String,default:"text"},clearable:{type:Boolean,default:!1},validate:{type:Function,default:null},errorMessage:{type:String,default:""},inputClass:{type:String,default:""},validateOnBlur:{type:Boolean,default:!1}},data(){return{isFocused:!1,internalValue:this.value,internalErrorMessage:""}},computed:{inputValue:{get(){return this.internalValue},set(t){this.internalValue=t,this.$emit("input",t)}},showClearButton(){return this.clearable&&this.inputValue&&!this.disabled&&!this.readonly},showErrorMessage(){return this.internalErrorMessage||this.errorMessage}},watch:{value(t){this.internalValue=t}},methods:{handleInput(t){const e=t.target.value;this.inputValue=e,this.validate&&!this.validateOnBlur&&this.validateInput()},handleFocus(t){this.isFocused=!0,this.$emit("focus",t)},handleBlur(t){this.isFocused=!1,this.validate&&this.validateOnBlur&&this.validateInput(),this.$emit("blur",t)},validateInput(){if(this.validate){const t=this.validate(this.inputValue);this.internalErrorMessage=t||""}},clearInput(){this.inputValue="",this.$emit("clear")}},mounted(){this.validate&&this.validateInput()}},n=l,o=(s("16ef"),s("2877")),r=Object(o["a"])(n,i,a,!1,null,"520f5174",null);e["default"]=r.exports},d94e:function(t,e,s){"use strict";s("a954")}}]);
|