gant-core 0.1.17 → 0.1.18
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/lib/cli/index.js +1 -1
- package/lib/index.d.ts +16 -0
- package/lib/index.js +25 -7
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/cli/index.js
CHANGED
|
@@ -51294,7 +51294,7 @@ const createCwdConfig = (cwd, name, vue) => {
|
|
|
51294
51294
|
};
|
|
51295
51295
|
|
|
51296
51296
|
var name = "gant-core";
|
|
51297
|
-
var version = "0.1.
|
|
51297
|
+
var version = "0.1.18";
|
|
51298
51298
|
var description = "";
|
|
51299
51299
|
var main = "lib/index.js";
|
|
51300
51300
|
var bin = {
|
package/lib/index.d.ts
CHANGED
|
@@ -997,6 +997,22 @@ interface StyleMapToken {
|
|
|
997
997
|
* @default 8
|
|
998
998
|
*/
|
|
999
999
|
borderRadiusLG: number;
|
|
1000
|
+
/**
|
|
1001
|
+
* @nameZH XL号圆角
|
|
1002
|
+
* @nameEN XL Border Radius
|
|
1003
|
+
* @desc XL号圆角,用于组件中的一些大圆角,如 Card、Modal 等一些组件样式。
|
|
1004
|
+
* @descEN XL size border radius, used in some large border radius components, such as Card, Modal and other components.
|
|
1005
|
+
* @default 12
|
|
1006
|
+
*/
|
|
1007
|
+
borderRadiusXL: number;
|
|
1008
|
+
/**
|
|
1009
|
+
* @nameZH XXL号圆角
|
|
1010
|
+
* @nameEN XXL Border Radius
|
|
1011
|
+
* @desc XXL号圆角,用于组件中的一些大圆角,如 Card、Modal 等一些组件样式。
|
|
1012
|
+
* @descEN XXL size border radius, used in some large border radius components, such as Card, Modal and other components.
|
|
1013
|
+
* @default 16
|
|
1014
|
+
*/
|
|
1015
|
+
borderRadiusXXL: number;
|
|
1000
1016
|
/**
|
|
1001
1017
|
* @nameZH 外部圆角
|
|
1002
1018
|
* @nameEN Outer Border Radius
|
package/lib/index.js
CHANGED
|
@@ -688,7 +688,7 @@ class UserStore {
|
|
|
688
688
|
return this.userSetting[key];
|
|
689
689
|
}
|
|
690
690
|
const res = await getUserDataApi({ dataType, dataId: userId });
|
|
691
|
-
const bigData = res
|
|
691
|
+
const bigData = res?.bigData ? JSON.parse(res.bigData) : undefined;
|
|
692
692
|
this.userSetting[key] = bigData;
|
|
693
693
|
return bigData;
|
|
694
694
|
};
|
|
@@ -1234,7 +1234,7 @@ class CompanyData {
|
|
|
1234
1234
|
return this.data[key];
|
|
1235
1235
|
}
|
|
1236
1236
|
const res = await getCompanyDataApi({ dataType, dataId: companyVersion });
|
|
1237
|
-
const bigData = res
|
|
1237
|
+
const bigData = res?.bigData ? JSON.parse(res.bigData) : undefined;
|
|
1238
1238
|
this.data[key] = bigData;
|
|
1239
1239
|
};
|
|
1240
1240
|
updateCompanyData = async (dataType, data) => {
|
|
@@ -5429,7 +5429,7 @@ const seedToken = {
|
|
|
5429
5429
|
layoutIconSize: 24,
|
|
5430
5430
|
layoutNavHeight: 40,
|
|
5431
5431
|
//渐变色
|
|
5432
|
-
gradientColors: ['
|
|
5432
|
+
gradientColors: ['rgba(0, 64, 237,0.3)', 'rgba(0, 229, 237,0.3)'],
|
|
5433
5433
|
};
|
|
5434
5434
|
|
|
5435
5435
|
/**
|
|
@@ -5566,6 +5566,8 @@ const genRadius = (radiusBase) => {
|
|
|
5566
5566
|
let radiusLG = radiusBase;
|
|
5567
5567
|
let radiusSM = radiusBase;
|
|
5568
5568
|
let radiusXS = radiusBase;
|
|
5569
|
+
let radiusXL = radiusBase;
|
|
5570
|
+
let radiusXXL = radiusBase;
|
|
5569
5571
|
let radiusOuter = radiusBase;
|
|
5570
5572
|
// radiusLG
|
|
5571
5573
|
if (radiusBase < 6 && radiusBase >= 5) {
|
|
@@ -5607,11 +5609,15 @@ const genRadius = (radiusBase) => {
|
|
|
5607
5609
|
else if (radiusBase >= 8) {
|
|
5608
5610
|
radiusOuter = 6;
|
|
5609
5611
|
}
|
|
5612
|
+
radiusXL = radiusLG > 0 ? radiusLG + 4 : radiusLG;
|
|
5613
|
+
radiusXXL = radiusLG > 0 ? radiusLG + 8 : radiusLG;
|
|
5610
5614
|
return {
|
|
5611
5615
|
borderRadius: radiusBase > 16 ? 16 : radiusBase,
|
|
5612
5616
|
borderRadiusXS: radiusXS,
|
|
5613
5617
|
borderRadiusSM: radiusSM,
|
|
5614
5618
|
borderRadiusLG: radiusLG,
|
|
5619
|
+
borderRadiusXL: radiusXL,
|
|
5620
|
+
borderRadiusXXL: radiusXXL,
|
|
5615
5621
|
borderRadiusOuter: radiusOuter,
|
|
5616
5622
|
};
|
|
5617
5623
|
};
|
|
@@ -5652,8 +5658,14 @@ const generateColorPalettes$1 = (baseColor) => {
|
|
|
5652
5658
|
};
|
|
5653
5659
|
};
|
|
5654
5660
|
const generateNeutralColorPalettes$1 = (bgBaseColor, textBaseColor) => {
|
|
5655
|
-
|
|
5656
|
-
|
|
5661
|
+
let colorBgBase = bgBaseColor || '#fff';
|
|
5662
|
+
let colorTextBase = textBaseColor || '#000';
|
|
5663
|
+
colorBgBase = new TinyColor(colorBgBase).lighten()
|
|
5664
|
+
? colorBgBase
|
|
5665
|
+
: new TinyColor(colorBgBase).lighten(100).toRgbString();
|
|
5666
|
+
colorTextBase = new TinyColor(colorTextBase).isDark()
|
|
5667
|
+
? colorTextBase
|
|
5668
|
+
: new TinyColor(colorTextBase).darken(100).toRgbString();
|
|
5657
5669
|
return {
|
|
5658
5670
|
colorBgBase,
|
|
5659
5671
|
colorTextBase,
|
|
@@ -5773,8 +5785,14 @@ const generateColorPalettes = (baseColor) => {
|
|
|
5773
5785
|
};
|
|
5774
5786
|
};
|
|
5775
5787
|
const generateNeutralColorPalettes = (bgBaseColor, textBaseColor) => {
|
|
5776
|
-
|
|
5777
|
-
|
|
5788
|
+
let colorBgBase = bgBaseColor || '#000';
|
|
5789
|
+
let colorTextBase = textBaseColor || '#fff';
|
|
5790
|
+
colorBgBase = new TinyColor(colorBgBase).isDark()
|
|
5791
|
+
? colorBgBase
|
|
5792
|
+
: new TinyColor(colorBgBase).darken(100).toRgbString();
|
|
5793
|
+
colorTextBase = new TinyColor(colorTextBase).isLight()
|
|
5794
|
+
? colorTextBase
|
|
5795
|
+
: new TinyColor(colorTextBase).lighten(100).toRgbString();
|
|
5778
5796
|
return {
|
|
5779
5797
|
colorBgBase,
|
|
5780
5798
|
colorTextBase,
|