mali-ui-plus 1.1.0 → 1.1.1

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/env/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export function getCustomName(custom: string): string
5
5
  export function getPlatformName(platform: string): string
6
6
  export function getSubModuleName(module: string): string
7
7
  export function initEnv(dirPath: string, defaultEnv: Record<string, string>): Record<string, string>
8
- export function getSCSSAdditionalData(envConfig: any): string
8
+ export function getSCSSAdditionalData(envConfig?: any): string
9
9
  export function sendMail(options: {
10
10
  receivedBy: string | string[]
11
11
  subject: string
package/env/index.js CHANGED
@@ -78,7 +78,8 @@ function parseEnvFile (dirPath, name) {
78
78
  return {}
79
79
  }
80
80
 
81
- function getSCSSAdditionalData (envConfig) {
81
+ function getSCSSAdditionalData (conf) {
82
+ const envConfig = conf || process.env
82
83
  const rest = [
83
84
  `@import "${pack.name}/style/variable.scss";`,
84
85
  `$global-static-url: '${envConfig.VUE_APP_PUBLIC_RESOURCES_URL}';`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-ui-plus",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "码里UI-PC端组件库(vue3)",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",