mirror of
https://gitee.com/onvia/ccc-tnt-psd2ui
synced 2025-12-14 00:38:49 +00:00
支持 mac
This commit is contained in:
24
npm-packages/mac-v3.4.+/postcss/lib/declaration.js
Normal file
24
npm-packages/mac-v3.4.+/postcss/lib/declaration.js
Normal file
@@ -0,0 +1,24 @@
|
||||
'use strict'
|
||||
|
||||
let Node = require('./node')
|
||||
|
||||
class Declaration extends Node {
|
||||
constructor(defaults) {
|
||||
if (
|
||||
defaults &&
|
||||
typeof defaults.value !== 'undefined' &&
|
||||
typeof defaults.value !== 'string'
|
||||
) {
|
||||
defaults = { ...defaults, value: String(defaults.value) }
|
||||
}
|
||||
super(defaults)
|
||||
this.type = 'decl'
|
||||
}
|
||||
|
||||
get variable() {
|
||||
return this.prop.startsWith('--') || this.prop[0] === '$'
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Declaration
|
||||
Declaration.default = Declaration
|
||||
Reference in New Issue
Block a user