forked from opentiny/tiny-vue
Compare commits
10 Commits
dev
...
release-3.
Author | SHA1 | Date |
---|---|---|
ajaxzheng | e9f92a8336 | |
gimmyhehe | 11b59c39ac | |
chenxi-20 | 7fb4317d38 | |
gimmyhehe | 18e90ec163 | |
gimmyhehe | 1b57fd5722 | |
gimmyhehe | efeebbb6e2 | |
申君健 | 5c9f7a632d | |
MomoPoppy | 803532484c | |
gimmyhehe | ccb2a7a4b0 | |
申君健 | 5cd9c06c71 |
|
@ -14,13 +14,12 @@ import { setSubitemAttrValue, setGlobalAttrValue, getClassName, getStyle, row }
|
|||
|
||||
export const api = ['state']
|
||||
|
||||
export const renderless = (props, { computed, reactive, inject }, { parent }) => {
|
||||
export const renderless = (props, { computed, reactive }, { parent }) => {
|
||||
const api = {}
|
||||
const state = reactive({
|
||||
row: computed(() => api.row()),
|
||||
style: computed(() => api.getStyle()),
|
||||
className: computed(() => api.getClassName()),
|
||||
layout: inject('layout')
|
||||
className: computed(() => api.getClassName())
|
||||
})
|
||||
|
||||
Object.assign(api, {
|
||||
|
|
|
@ -98,6 +98,14 @@ const createTheme = (callbackFn) => {
|
|||
return fs.existsSync(path)
|
||||
}
|
||||
|
||||
const copyDir = (originPath, targetPath) => {
|
||||
fsExtra.copy(originPath, targetPath, (err) => {
|
||||
if (err) {
|
||||
console.log(err)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const mkStat = (originPath, fileDir, type) => {
|
||||
const statPath = `${originPath}/${fileDir}`
|
||||
const smbPath = `${originPath}/${smbThemeName}/${fileDir}`
|
||||
|
@ -116,6 +124,11 @@ const createTheme = (callbackFn) => {
|
|||
} else {
|
||||
isFileExist(originPath, fileDir, type)
|
||||
}
|
||||
} else {
|
||||
if (fileDir === 'index.less') {
|
||||
copyDir(statPath, smbPath)
|
||||
copyDir(statPath, auroraPath)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (fileDir === 'index.less') {
|
||||
|
|
Loading…
Reference in New Issue