web-component-gallery 2.2.3 → 2.2.5

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.
@@ -3,7 +3,6 @@ const fs = require("fs")
3
3
  const path = require("path")
4
4
  // 指向宿主项目路径 ../../为node_modules路径
5
5
  const hostPath = path.join(__dirname, '../../')
6
- const { generateTheme } = require('antd-theme-generator')
7
6
  const { cssFileName, parseCSSVariables, parseLessVariables, parseExtendVariables, fetchAndParseLessFile } = require('./UpdateTheme')
8
7
 
9
8
  // 提取颜色变量
@@ -211,12 +210,17 @@ function createGeneratorTheme(theme) {
211
210
  }
212
211
 
213
212
  // 生成传输信息文件
214
- async function createTransferFile() {
213
+ async function createTransferFile(theme) {
214
+ // 初始化主题
215
+ const resetTheme = theme || 'dark'
216
+ // 输出自定义样式文件
217
+ processLessFiles(resetTheme)
215
218
  // 默认请求源地址
216
219
  const origin = process.env.VUE_APP_STATIC_URL || 'http://qxfnkj.com'
220
+
217
221
  const fileName = 'transferData.js'
222
+
218
223
  const response = await fetch(`${origin}/base-subject/iframe/${fileName}`)
219
-
220
224
  if (!response.ok) throw new Error(`${fileName}文件请求失败!`)
221
225
 
222
226
  const responseText = await response.text()
@@ -1,6 +1,3 @@
1
- @import '~ant-design-vue/lib/style/themes/default.less';
2
- @import '../../style/mixins.less';
3
-
4
1
  .AmapDraw__Search {
5
2
  display: flex;
6
3
  align-items: center;
@@ -1,6 +1,4 @@
1
- @import '~ant-design-vue/lib/style/themes/default.less';
2
- @import '../../style/mixins.less';
3
- // 按需引入对应模块样式
1
+ // 按需引入对应模块样式
4
2
  @import '../../amap-comp/style/AmapSearch.less';
5
3
 
6
4
  .AmapDraw {
@@ -1,6 +1,4 @@
1
- @import '~ant-design-vue/lib/style/themes/default.less';
2
- @import '../../style/mixins.less';
3
-
1
+
4
2
  .dateTime {
5
3
  font-size: @font-size-lg;
6
4
  .flex-layout(@flexGap: 0 @padding-xs);
@@ -1,6 +1,4 @@
1
- @import '~ant-design-vue/lib/style/themes/default.less';
2
- @import '../../style/mixins.less';
3
-
1
+
4
2
  .Descriptions {
5
3
  .ant-descriptions-bordered {
6
4
  .ant-descriptions-item-label {
@@ -1,6 +1,4 @@
1
- @import '~ant-design-vue/lib/style/themes/default.less';
2
- @import '../../style/mixins.less';
3
- // 按需引入对应模块样式
1
+ // 按需引入对应模块样式
4
2
  @import '../../svg-icon/style/index.less';
5
3
 
6
4
  .DirectoryTreeMenu {
@@ -1,6 +1,4 @@
1
- @import '~ant-design-vue/lib/style/themes/default.less';
2
- @import '../../style/mixins.less';
3
-
1
+
4
2
  .gb-ant-select-multiple-cascader {
5
3
  .ant-select-dropdown-menu-item {
6
4
  display: none;
@@ -1,5 +1,4 @@
1
- @import '../../style/mixins.less';
2
-
1
+
3
2
  .ADayTimePicker {
4
3
  width: 100%;
5
4
  align-items: center;
@@ -1,5 +1,4 @@
1
- @import '../../style/mixins.less';
2
-
1
+
3
2
  .ADatePicker {
4
3
  width: 100%;
5
4
  align-items: center;
@@ -1,6 +1,4 @@
1
- @import '~ant-design-vue/lib/style/themes/default.less';
2
- @import '../../style/mixins.less';
3
-
1
+
4
2
  // 添加flex属性解决css中div莫名高度
5
3
  .ASelectCustom {
6
4
  width: 100%;
@@ -1,6 +1,4 @@
1
- @import '~ant-design-vue/lib/style/themes/default.less';
2
- @import '../../style/mixins.less';
3
-
1
+
4
2
  .slider-wrapper {
5
3
  position: relative;
6
4
  overflow: hidden;
@@ -1,6 +1,4 @@
1
- @import '~ant-design-vue/lib/style/themes/default.less';
2
- @import '../../style/mixins.less';
3
-
1
+
4
2
  .TAntdTags {
5
3
  cursor: pointer;
6
4
  .layout(100%, auto);
@@ -1,6 +1,4 @@
1
- @import '~ant-design-vue/lib/style/themes/default.less';
2
- @import '../../style/mixins.less';
3
-
1
+
4
2
  .AntModal {
5
3
  &__small {
6
4
  .ant-modal {
@@ -1,6 +1,4 @@
1
- @import '~ant-design-vue/lib/style/themes/default.less';
2
- @import '../../style/mixins.less';
3
-
1
+
4
2
  .no-data-container {
5
3
  padding: @padding-lg;
6
4
  box-sizing: border-box;
@@ -1,6 +1,4 @@
1
- @import '~ant-design-vue/lib/style/themes/default.less';
2
- @import '../../style/mixins.less';
3
-
1
+
4
2
  .svg-icon {
5
3
  vertical-align: -0.15em;
6
4
  fill: currentColor;
@@ -1,6 +1,4 @@
1
- @import '~ant-design-vue/lib/style/themes/default.less';
2
- @import '../../style/mixins.less';
3
-
1
+
4
2
  .WebComponentTable {
5
3
  .layout();
6
4
  .flex-layout(column, @padding-md 0);
@@ -1,6 +1,4 @@
1
- @import '~ant-design-vue/lib/style/themes/default.less';
2
- @import '../../style/mixins.less';
3
-
1
+
4
2
  .publicTreeCheck {
5
3
  display: flex;
6
4
  .square( 100% );
@@ -1,3 +1,4 @@
1
+ // 天气控件可能因接口导致需加载样式
1
2
  @import '~ant-design-vue/lib/style/themes/default.less';
2
3
  @import '../../style/mixins.less';
3
4
 
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "web-component-gallery",
3
- "version": "2.2.3",
3
+ "version": "2.2.5",
4
4
  "description": "基础vue、antdvue、less实现的私有组件库",
5
5
  "main": "dist/index.umd.js",
6
6
  "files": [
7
7
  "dist",
8
8
  "extensions",
9
- "font",
10
9
  "lib",
11
10
  "utils"
12
11
  ],
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/font/font.css DELETED
@@ -1,48 +0,0 @@
1
- @font-face {
2
- font-family: 'PingFang SC';
3
- src: url('PingFang SC.ttf');
4
- }
5
- @font-face {
6
- font-family: 'YouSheBiaoTiHei';
7
- src: url('YouSheBiaoTiHei.ttf');
8
- }
9
- @font-face {
10
- font-family: 'Orbitron-Black';
11
- src: url('Orbitron-Black.ttf');
12
- }
13
- @font-face {
14
- font-family: 'Orbitron-Bold';
15
- src: url('Orbitron-Bold.ttf');
16
- }
17
- @font-face {
18
- font-family: 'Orbitron-Medium';
19
- src: url('Orbitron-Medium.ttf');
20
- }
21
- @font-face {
22
- font-family: 'Orbitron-Regular';
23
- src: url('Orbitron-Regular.ttf');
24
- }
25
- @font-face {
26
- font-family: 'PangMenZhengDao';
27
- src: url('PANGMENZHENGDAOBIAOTITI-1.TTF');
28
- }
29
- @font-face {
30
- font-family: '字魂35号-经典雅黑';
31
- src: url('字魂35号-经典雅黑.ttf');
32
- }
33
- @font-face {
34
- font-family: 'Digital Numbers';
35
- src: url('DS-DIGI-1.ttf');
36
- }
37
- @font-face {
38
- font-family: 'DS-DIGIB-2';
39
- src: url('DS-DIGIB-2.ttf');
40
- }
41
- @font-face {
42
- font-family: 'DS-DIGII-3';
43
- src: url('DS-DIGII-3.ttf');
44
- }
45
- @font-face {
46
- font-family: 'DS-DIGIT-4';
47
- src: url('DS-DIGIT-4.ttf');
48
- }