PageSourceSearch

https://ceocio.com.cn/assets/uni-app.es.APl2Jzlf.js

js ceocio.com.cn collected 2026-09-25 04:02:30 UTC 6,190 bytes, 1 lines download raw bytes

1import{o as t,c as e,w as i,f as n,b as a,n as o,e as r,a as d,t as u,g as s,k as l,i as p,p as g,h as b}from"./js/index-D_cpagWm.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";const c=h({name:"fui-button",emits:["click","getuserinfo","contact","getphonenumber","error","opensetting"],props:{type:{type:String,default:"primary"},background:{type:String,default:""},text:{type:String,default:""},color:{type:String,default:""},disabledBackground:{type:String,default:""},disabledColor:{type:String,default:""},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:""},width:{type:String,default:"100%"},height:{type:String,default:""},size:{type:[Number,String],default:0},bold:{type:Boolean,default:!1},margin:{type:Array,default:()=>["0","0"]},radius:{type:String,default:""},plain:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},formType:{type:String,default:""},openType:{type:String,default:""},scope:{type:String,default:""},appParameter:{type:String,default:""},index:{type:[Number,String],default:0}},computed:{getTypeColor:()=>"",getBackground(){let t=this.getTypeColor;return(this.disabled||this.plain)&&(t="transparent"),this.disabled||this.plain||!this.background||(t=this.background),t},getColor(){let t="#fff";return t=this.color?this.disabled&&this.disabledBackground?this.disabledColor:this.color:this.disabled&&this.disabledBackground?this.disabledColor||"#FFFFFF":"gray"===this.type?"#3470F4":"#FFFFFF",t},getSize(){const t=uni&&uni.$fui&&uni.$fui.fuiButton&&uni.$fui.fuiButton.size||32;return`${this.size||t}rpx`},getHeight(){const t=uni&&uni.$fui&&uni.$fui.fuiButton&&uni.$fui.fuiButton.height||"96rpx";return this.height||t},getBorderRadius(){let t=uni&&uni.$fui&&uni.$fui.fuiButton&&uni.$fui.fuiButton.radius||"16rpx";return t=this.radius||t||"0",~t.indexOf("rpx")?t=2*Number(t.replace("rpx",""))+"rpx":~t.indexOf("px")?t=2*Number(t.replace("px",""))+"px":~t.indexOf("%")&&(t=2*Number(t.replace("%",""))+"%"),t},getRadius(){const t=uni&&uni.$fui&&uni.$fui.fuiButton&&uni.$fui.fuiButton.radius||"16rpx";return this.radius||t}},data:()=>({isNvue:!1,time:0,trigger:!1,pc:!1}),created(){this.pc=this.isPC()},methods:{handleStart(t){this.disabled||(this.trigger=!1,(new Date).getTime()-this.time<=150||(this.trigger=!0,this.time=(new Date).getTime()))},handleClick(){!this.disabled&&this.trigger&&(this.time=0)},isPC(){if("object"!=typeof navigator)return!1;for(var t=navigator.userAgent,e=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],i=!0,n=0;n<e.length-1;n++)if(t.indexOf(e[n])>0){i=!1;break}return i},handleTap(){this.disabled||this.$emit("click",{index:Number(this.index)})},handleEnd(t){this.disabled||setTimeout((()=>{this.time=0}),150)},bindgetuserinfo({detail:t={}}={}){this.$emit("getuserinfo",t)},bindcontact({detail:t={}}={}){this.$emit("contact",t)},bindgetphonenumber({detail:t={}}={}){this.$emit("getphonenumber",t)},binderror({detail:t={}}={}){this.$emit("error",t)},bindopensetting({detail:t={}}={}){this.$emit("opensetting",t)},bindchooseavatar({detail:t={}}={}){this.$emit("chooseavatar",t)},bindlaunchapp({detail:t={}}={}){this.$emit("launchapp",t)}}},[["render",function(h,c,f,y,m,_){const k=p,B=g,x=b;return t(),e(x,{class:a(["fui-button__wrap",[f.width&&"100%"!==f.width&&!0!==f.width?"":"fui-button__flex-1",f.disabled&&!f.disabledBackground?"fui-button__opacity":""]]),style:o({width:f.width,height:_.getHeight,marginTop:f.margin[0]||0,marginRight:f.margin[1]||0,marginBottom:f.margin[2]||f.margin[0]||0,marginLeft:f.margin[3]||f.margin[1]||0,borderRadius:_.getRadius,background:_.getBackground}),onTouchstart:_.handleStart,onTouchend:_.handleClick,onTouchcancel:_.handleEnd},{default:i((()=>[n(B,{class:a(["fui-button",[f.bold?"fui-text__bold":"",m.time&&(f.plain||"link"===f.type)?"fui-button__opacity":"",f.background||f.disabledBackground||f.plain?"":"fui-button__"+f.type,f.width&&"100%"!==f.width&&!0!==f.width?"":"fui-button__flex-1",m.time&&!f.plain&&"link"!==f.type?"fui-button__active":"",m.pc&&!f.disabled?f.plain||"link"===f.type?"fui-button__opacity-pc":"fui-button__active-pc":""]]),style:o({width:f.width,height:_.getHeight,lineHeight:_.getHeight,background:f.disabled?f.disabledBackgroun
1d||_.getTypeColor:f.plain?"transparent":_.getBackground,borderWidth:f.borderColor&&m.isNvue?f.borderWidth:"0",borderColor:f.borderColor?f.borderColor:f.disabled&&f.disabledBackground?f.disabledBackground:f.background||"transparent",borderRadius:_.getRadius,fontSize:_.getSize,color:_.getColor}),loading:f.loading,"form-type":f.formType,"open-type":f.openType,"app-parameter":f.appParameter,onGetuserinfo:_.bindgetuserinfo,onGetphonenumber:_.bindgetphonenumber,onContact:_.bindcontact,onError:_.binderror,onOpensetting:_.bindopensetting,onChooseavatar:_.bindchooseavatar,onLaunchapp:_.bindlaunchapp,disabled:f.disabled,scope:f.scope,onClick:r(_.handleTap,["stop"])},{default:i((()=>[f.text?(t(),e(k,{key:0,class:a(["fui-button__text",{"fui-btn__gray-color":!f.background&&!f.disabledBackground&&!f.plain&&"gray"===f.type&&"#fff"===f.color,"fui-text__bold":f.bold}]),style:o({fontSize:_.getSize,lineHeight:_.getSize,color:f.color?f.disabled&&f.disabledBackground?f.disabledColor:f.color:"gray"===f.type?"#3470F4":"#FFFFFF"})},{default:i((()=>[d(u(f.text),1)])),_:1},8,["class","style"])):s("",!0),l(h.$slots,"default",{},void 0,!0)])),_:3},8,["class","style","loading","form-type","open-type","app-parameter","onGetuserinfo","onGetphonenumber","onContact","onError","onOpensetting","onChooseavatar","onLaunchapp","disabled","scope","onClick"]),f.borderColor?(t(),e(x,{key:0,class:a(["fui-button__thin-border",[!m.time||!f.plain&&"link"!==f.type||f.disabled?"":"fui-button__opacity",f.disabled&&!f.disabledBackground?"fui-button__opacity":""]]),style:o({borderWidth:f.borderWidth,borderColor:f.borderColor?f.borderColor:f.disabled&&f.disabledBackground?f.disabledBackground:f.background||"transparent",borderRadius:_.getBorderRadius})},null,8,["class","style"])):s("",!0)])),_:3},8,["class","style","onTouchstart","onTouchend","onTouchcancel"])}],["__scopeId","data-v-c96700cf"]]);function f(t,e){return"string"==typeof t?e:t}export{c as _,f as r};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.