@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.
- package/config/themes/canglan/canglan.css +2 -2
- package/config/themes/canglan/var.less +2 -2
- package/config/themes/theme-canglan.js +2 -2
- package/nstyles/components/tree.less +4 -0
- package/nstyles/variables/theme/default/common.less +3 -0
- package/nstyles/variables/theme/small/common.less +2 -0
- package/package.json +1 -1
- package/utils/n/date.js +2 -2
- package/utils/style.js +24 -24
- package/utils/transfer-queue.js +7 -7
|
@@ -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:
|
|
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:
|
|
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 :
|
|
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 :
|
|
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:
|
|
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:
|
|
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;
|
package/package.json
CHANGED
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
|
+
}
|
package/utils/transfer-queue.js
CHANGED
|
@@ -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 }
|