@gct-paas/core-mobile 0.1.5-test.2 → 0.1.6-dev.0

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.
@@ -1 +1 @@
1
- import{computed as e,createBlock as o,createCommentVNode as t,createElementBlock as l,createTextVNode as a,createVNode as n,defineComponent as i,normalizeClass as r,normalizeStyle as s,openBlock as u,ref as c,resolveComponent as d,toDisplayString as p,withCtx as f}from"vue";import m,{showConfirmDialog as v}from"vant";import{ButtonSize as g,ButtonStyle as y,ButtonType as b,ButtonType_vant as C,t as R}from"@gct-paas/core";import{coreComponentsCreateAppVue as h}from"@gct-paas/core-components";var k={"zh-CN":()=>import("./zh-CN-C4LceMCt.js"),"en-US":()=>import("./en-US-Dr0jFB4Q.js"),"pt-BR":()=>import("./pt-BR-Dq3VR77V.js"),"tr-TR":()=>import("./tr-TR-BfmYfhvY.js"),"zh-TW":()=>import("./zh-TW-p_4YJMOD.js"),"ja-JP":()=>import("./ja-JP-lnEqez25.js"),"vi-VN":()=>import("./vi-VN-DtONCFwt.js"),"de-GE":()=>import("./de-DE-Chzz6lz7.js"),"fr-FR":()=>import("./fr-FR-DXwElwtS.js"),"es-ES":()=>import("./es-ES-CFDCOgQW.js"),"ru-RU":()=>import("./ru-RU-Rd1ffaWM.js")},A=c({locale:""});function T(){if(A.value.locale!==_gct.i18n.global.locale){const e=k[_gct.i18n.global.locale];e&&e().then(e=>{A.value=e.default})}return{getVantLocale:A}}var j={class:"inline-block align-middle whitespace-nowrap"},D=/* @__PURE__ */(e=>{const o=e.__vccOpts||e;for(const[t,l]of[["__scopeId","data-v-6e846204"]])o[t]=l;return o})(/* @__PURE__ */i({__name:"vant-button",props:{hasIcon:{type:Boolean,default:!1},hasText:{type:Boolean,default:!0},type:{default:b.PRIMARY},size:{default:g.DEFAULT},danger:{type:Boolean,default:!1},icon:{default:""},title:{default:""},disabled:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},i18nConfig:{default:""},buttonStyle:{default:y.ORDINARY},confirmText:{default:""},confirm:{type:Boolean,default:!1},enableCustomColor:{type:Boolean,default:!1},backgroundColor:{default:""},fontColor:{default:""},block:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["click"],setup(i,{emit:c}){const m=c,y=i,h=e(()=>y.title),k=e(()=>y.danger?C.DANGER:y.type===b.DASHED||y.type===b.DEFAULT?C.DEFAULT:C.PRIMARY),A=e(()=>!(y.type!==b.DEFAULT||!y.danger)),T=e(()=>y.type===b.DASHED),D=e(()=>y.type===b.LINK),B=e(()=>function(e){switch(e){case g.SMALL:case g.DEFAULT:}return"small"}(y.size)),E=e(()=>y.hasIcon&&!y.hasText),I=e(()=>(null==y?void 0:y.enableCustomColor)&&(null==y?void 0:y.fontColor)),z=e(()=>(null==y?void 0:y.enableCustomColor)&&(null==y?void 0:y.backgroundColor)&&y.type===C.PRIMARY),L=e(()=>(null==y?void 0:y.enableCustomColor)&&(null==y?void 0:y.backgroundColor)&&k.value!==C.PRIMARY);async function S(){!/\/page-designer\//.test(location.pathname)&&y.confirm&&await v({message:y.confirmText||R("sys.pageDesigner.confirmTodo")}),m("click")}return(e,c)=>{const m=d("IconNext"),v=d("van-button");return u(),l("div",j,[n(v,{loading:i.loading,block:i.block,type:k.value,size:B.value,plain:A.value,disabled:i.disabled,style:s({"--fontColor":i.fontColor,"--backgroundColor":i.backgroundColor}),class:r({dashed:T.value,link:D.value,"gct-van-button-icon-only":E.value,"btn-font-color":I.value,"btn-bg-style":z.value,"btn-border-style":L.value}),onClick:S},{icon:f(()=>[i.hasIcon?(u(),o(m,{key:0,size:14,value:i.icon,style:{marginRight:"0px","--color":"inherit",lineHeight:"1"}},null,8,["value"])):t("",!0)]),default:f(()=>[a(" "+p(i.hasText?h.value:""),1)]),_:1},8,["loading","block","type","size","plain","disabled","style","class"])])}}})),B="undefined"==typeof window,E=!B;async function I(e){await h(e),e.use(m)}async function z(e){console.log("coreMobileSetupApp")}export{D as VantButton,I as coreMobileCreateAppVue,z as coreMobileSetupApp,E as isClient,B as isServer,T as useLocale};
1
+ import{computed as e,createBlock as o,createCommentVNode as t,createElementBlock as l,createTextVNode as a,createVNode as n,defineComponent as i,normalizeClass as r,normalizeStyle as s,openBlock as u,ref as c,resolveComponent as d,toDisplayString as p,withCtx as f}from"vue";import m,{showConfirmDialog as v}from"vant";import{ButtonSize as g,ButtonStyle as y,ButtonType as b,ButtonType_vant as C,t as R}from"@gct-paas/core";import{coreComponentsCreateAppVue as h}from"@gct-paas/core-components";var k={"zh-CN":()=>import("./zh-CN-C4LceMCt.js"),"en-US":()=>import("./en-US-Dr0jFB4Q.js"),"pt-BR":()=>import("./pt-BR-Dq3VR77V.js"),"tr-TR":()=>import("./tr-TR-BfmYfhvY.js"),"zh-TW":()=>import("./zh-TW-p_4YJMOD.js"),"ja-JP":()=>import("./ja-JP-lnEqez25.js"),"vi-VN":()=>import("./vi-VN-DtONCFwt.js"),"de-GE":()=>import("./de-DE-Chzz6lz7.js"),"fr-FR":()=>import("./fr-FR-DXwElwtS.js"),"es-ES":()=>import("./es-ES-CFDCOgQW.js"),"ru-RU":()=>import("./ru-RU-Rd1ffaWM.js")},A=c({locale:""});function T(){if(A.value.locale!==_gct.i18n.global.locale.value){const e=k[_gct.i18n.global.locale.value];e&&e().then(e=>{A.value=e.default})}return{getVantLocale:A}}var j={class:"inline-block align-middle whitespace-nowrap"},D=/* @__PURE__ */(e=>{const o=e.__vccOpts||e;for(const[t,l]of[["__scopeId","data-v-6e846204"]])o[t]=l;return o})(/* @__PURE__ */i({__name:"vant-button",props:{hasIcon:{type:Boolean,default:!1},hasText:{type:Boolean,default:!0},type:{default:b.PRIMARY},size:{default:g.DEFAULT},danger:{type:Boolean,default:!1},icon:{default:""},title:{default:""},disabled:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},i18nConfig:{default:""},buttonStyle:{default:y.ORDINARY},confirmText:{default:""},confirm:{type:Boolean,default:!1},enableCustomColor:{type:Boolean,default:!1},backgroundColor:{default:""},fontColor:{default:""},block:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["click"],setup(i,{emit:c}){const m=c,y=i,h=e(()=>y.title),k=e(()=>y.danger?C.DANGER:y.type===b.DASHED||y.type===b.DEFAULT?C.DEFAULT:C.PRIMARY),A=e(()=>!(y.type!==b.DEFAULT||!y.danger)),T=e(()=>y.type===b.DASHED),D=e(()=>y.type===b.LINK),B=e(()=>function(e){switch(e){case g.SMALL:case g.DEFAULT:}return"small"}(y.size)),E=e(()=>y.hasIcon&&!y.hasText),I=e(()=>(null==y?void 0:y.enableCustomColor)&&(null==y?void 0:y.fontColor)),z=e(()=>(null==y?void 0:y.enableCustomColor)&&(null==y?void 0:y.backgroundColor)&&y.type===C.PRIMARY),L=e(()=>(null==y?void 0:y.enableCustomColor)&&(null==y?void 0:y.backgroundColor)&&k.value!==C.PRIMARY);async function S(){!/\/page-designer\//.test(location.pathname)&&y.confirm&&await v({message:y.confirmText||R("sys.pageDesigner.confirmTodo")}),m("click")}return(e,c)=>{const m=d("IconNext"),v=d("van-button");return u(),l("div",j,[n(v,{loading:i.loading,block:i.block,type:k.value,size:B.value,plain:A.value,disabled:i.disabled,style:s({"--fontColor":i.fontColor,"--backgroundColor":i.backgroundColor}),class:r({dashed:T.value,link:D.value,"gct-van-button-icon-only":E.value,"btn-font-color":I.value,"btn-bg-style":z.value,"btn-border-style":L.value}),onClick:S},{icon:f(()=>[i.hasIcon?(u(),o(m,{key:0,size:14,value:i.icon,style:{marginRight:"0px","--color":"inherit",lineHeight:"1"}},null,8,["value"])):t("",!0)]),default:f(()=>[a(" "+p(i.hasText?h.value:""),1)]),_:1},8,["loading","block","type","size","plain","disabled","style","class"])])}}})),B="undefined"==typeof window,E=!B;async function I(e){await h(e),e.use(m)}async function z(e){console.log("coreMobileSetupApp")}export{D as VantButton,I as coreMobileCreateAppVue,z as coreMobileSetupApp,E as isClient,B as isServer,T as useLocale};
@@ -15,8 +15,8 @@ var vantMap = {
15
15
  };
16
16
  var getVantLocale = ref({ locale: "" });
17
17
  function useLocale() {
18
- if (getVantLocale.value.locale !== _gct.i18n.global.locale) {
19
- const loadLocale = vantMap[_gct.i18n.global.locale];
18
+ if (getVantLocale.value.locale !== _gct.i18n.global.locale.value) {
19
+ const loadLocale = vantMap[_gct.i18n.global.locale.value];
20
20
  if (loadLocale) loadLocale().then((module) => {
21
21
  getVantLocale.value = module.default;
22
22
  });
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ confirmTodo: string;
3
+ };
4
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/core-mobile",
3
- "version": "0.1.5-test.2",
3
+ "version": "0.1.6-dev.0",
4
4
  "type": "module",
5
5
  "description": "paas 平台移动端核心包",
6
6
  "loader": "dist/loader.esm.min.js",
@@ -33,16 +33,16 @@
33
33
  "dependencies": {
34
34
  "vant": "4.9.22",
35
35
  "vue": "^3.5.30",
36
- "@gct-paas/core": "0.1.5-test.2",
37
- "@gct-paas/core-components": "0.1.5-test.2",
38
- "@gct-paas/scss": "0.1.5-test.2"
36
+ "@gct-paas/core": "0.1.6-dev.0",
37
+ "@gct-paas/core-components": "0.1.6-dev.0",
38
+ "@gct-paas/scss": "0.1.6-dev.0"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "vant": ">=4",
42
42
  "vue": ">=3",
43
- "@gct-paas/core": "0.1.5-test.2",
44
- "@gct-paas/scss": "0.1.5-test.2",
45
- "@gct-paas/core-components": "0.1.5-test.2"
43
+ "@gct-paas/core-components": "0.1.6-dev.0",
44
+ "@gct-paas/core": "0.1.6-dev.0",
45
+ "@gct-paas/scss": "0.1.6-dev.0"
46
46
  },
47
47
  "scripts": {
48
48
  "dev": "cross-env NODE_ENV=development vite build --watch --config vite.dev.config.ts",