@lambo-design/shared 1.0.0-beta.299 → 1.0.0-beta.300

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.
@@ -319,11 +319,11 @@ vxe-table
319
319
  --table-cell-white-space: normal;
320
320
  --table-cell-padding-left: 9px;
321
321
  --table-cell-padding-right: 9px;
322
- --table-header-text-align: center;
322
+ --table-header-text-align: left;
323
323
  --table-data-text-align: left;
324
324
  --table-border-color-base: #fff;
325
325
  --table-border-bottom-color-base: #EAECF0;
326
- --table-border-width-base: 0;
326
+ --table-border-width-base: 1px;
327
327
  --select-dropdown-max-height: 400px;
328
328
  --tab-card-bg: #f4f6fa;
329
329
  --form-item-label-font-weight: normal;
@@ -369,11 +369,11 @@
369
369
  @table-cell-white-space : normal;
370
370
  @table-cell-padding-left : 9px;
371
371
  @table-cell-padding-right : 9px;
372
- @table-header-text-align : center;
372
+ @table-header-text-align : left;
373
373
  @table-data-text-align : left;
374
374
  @table-border-color-base : #fff;
375
375
  @table-border-bottom-color-base : #EAECF0;
376
- @table-border-width-base : 0;
376
+ @table-border-width-base : 1px;
377
377
 
378
378
  // Select-DropDown
379
379
  @select-dropdown-max-height : 400px;
@@ -297,11 +297,11 @@ export default {
297
297
  --table-cell-white-space: normal;
298
298
  --table-cell-padding-left: 9px;
299
299
  --table-cell-padding-right: 9px;
300
- --table-header-text-align: center;
300
+ --table-header-text-align: left;
301
301
  --table-data-text-align: left;
302
302
  --table-border-color-base: #fff;
303
303
  --table-border-bottom-color-base: #EAECF0;
304
- --table-border-width-base: 0;
304
+ --table-border-width-base: 1px;
305
305
  --select-dropdown-max-height: 400px;
306
306
  --tab-card-bg: #f4f6fa;
307
307
  --form-item-label-font-weight: normal;
@@ -159,4 +159,8 @@
159
159
 
160
160
  .ivu-tree ul li {
161
161
  margin: var(--ivu-tree-margin);
162
+ }
163
+
164
+ .ivu-tree li ul {
165
+ padding: var(--ivu-tree-ul-padding);
162
166
  }
@@ -54,4 +54,7 @@
54
54
  // 表格
55
55
  --ind-table-button-padding: var(--ind-padding-base);
56
56
  --input-height-table: var(--input-height); // 表格输入框的高度
57
+
58
+ // 树
59
+ --ivu-tree-ul-padding: 0px 0px 0px 18px; // 树形左侧错落的间距
57
60
  }
@@ -36,4 +36,6 @@
36
36
  // 表格
37
37
  --ind-table-button-padding: 6px; // var(--ind-padding-xs);
38
38
  --input-height-table: 24px; // 表格输入框的高度
39
+
40
+ --ivu-tree-ul-padding: 0px 0px 0px 18px; // 树形左侧错落的间距
39
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design/shared",
3
- "version": "1.0.0-beta.299",
3
+ "version": "1.0.0-beta.300",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
package/utils/n/date.js CHANGED
@@ -28,7 +28,7 @@ export function formatDate(value) {
28
28
  }
29
29
  }
30
30
  } else {
31
- return value || '-'
31
+ return value || ''
32
32
  }
33
33
  }
34
34
 
@@ -52,6 +52,6 @@ export function formatDateChinese(value) {
52
52
  }
53
53
  }
54
54
  } else {
55
- return value || '-'
55
+ return value || ''
56
56
  }
57
57
  }
package/utils/style.js CHANGED
@@ -1,24 +1,24 @@
1
- const SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g
2
- const MOZ_HACK_REGEXP = /^moz([A-Z])/
3
-
4
- function camelCase(name) {
5
- return name
6
- .replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
7
- return offset ? letter.toUpperCase() : letter
8
- })
9
- .replace(MOZ_HACK_REGEXP, 'Moz$1')
10
- }
11
- // getStyle
12
- export function getStyle(element, styleName) {
13
- if (!element || !styleName) return null
14
- styleName = camelCase(styleName)
15
- if (styleName === 'float') {
16
- styleName = 'cssFloat'
17
- }
18
- try {
19
- const computed = document.defaultView.getComputedStyle(element, '')
20
- return element.style[styleName] || computed ? computed[styleName] : null
21
- } catch (e) {
22
- return element.style[styleName]
23
- }
24
- }
1
+ const SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g
2
+ const MOZ_HACK_REGEXP = /^moz([A-Z])/
3
+
4
+ function camelCase(name) {
5
+ return name
6
+ .replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
7
+ return offset ? letter.toUpperCase() : letter
8
+ })
9
+ .replace(MOZ_HACK_REGEXP, 'Moz$1')
10
+ }
11
+ // getStyle
12
+ export function getStyle(element, styleName) {
13
+ if (!element || !styleName) return null
14
+ styleName = camelCase(styleName)
15
+ if (styleName === 'float') {
16
+ styleName = 'cssFloat'
17
+ }
18
+ try {
19
+ const computed = document.defaultView.getComputedStyle(element, '')
20
+ return element.style[styleName] || computed ? computed[styleName] : null
21
+ } catch (e) {
22
+ return element.style[styleName]
23
+ }
24
+ }
@@ -1,7 +1,7 @@
1
- let transferIndex = 1000
2
-
3
- function transferIncrease() {
4
- transferIndex++
5
- }
6
-
7
- export { transferIndex, transferIncrease }
1
+ let transferIndex = 1000
2
+
3
+ function transferIncrease() {
4
+ transferIndex++
5
+ }
6
+
7
+ export { transferIndex, transferIncrease }