web-component-gallery 2.1.20 → 2.1.21
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/extensions/BuildTheme.js +4 -4
- package/extensions/index.js +2 -2
- package/package.json +1 -1
package/extensions/BuildTheme.js
CHANGED
|
@@ -108,7 +108,7 @@ async function processLessFiles(theme) {
|
|
|
108
108
|
// 自定义less内置函数处理
|
|
109
109
|
const customFunctions = {
|
|
110
110
|
install: function (less) {
|
|
111
|
-
const funcs = ['fade', 'ceil', 'tint', 'lighten']
|
|
111
|
+
const funcs = ['fade', 'ceil', 'tint', 'shade', 'lighten']
|
|
112
112
|
funcs.forEach(func => {
|
|
113
113
|
less.functions.functionRegistry.add(func, function () {
|
|
114
114
|
const args = Array.from(arguments)
|
|
@@ -126,9 +126,9 @@ function createGeneratorTheme(theme) {
|
|
|
126
126
|
|
|
127
127
|
// 输出AntdVue样式打包放置public引入
|
|
128
128
|
const options = {
|
|
129
|
-
antDir: path.join(__dirname, '
|
|
130
|
-
stylesDir: path.join(__dirname, '
|
|
131
|
-
outputFilePath: path.join(__dirname, '
|
|
129
|
+
antDir: path.join(__dirname, 'node_modules/ant-design-vue'),
|
|
130
|
+
stylesDir: path.join(__dirname, 'node_modules/ant-design-vue/lib/style/themes'),
|
|
131
|
+
outputFilePath: path.join(__dirname, 'public/static/style/antdVue.less')
|
|
132
132
|
}
|
|
133
133
|
generateTheme(options)
|
|
134
134
|
// 输出自定义样式文件
|
package/extensions/index.js
CHANGED
|
@@ -22,7 +22,7 @@ import PageLoading from "./PageLoading"
|
|
|
22
22
|
* 全局切换主题
|
|
23
23
|
* @theme 主题key 使用方法: this.$setTheme(@theme)
|
|
24
24
|
* */
|
|
25
|
-
import setTheme from './Theme'
|
|
25
|
+
// import setTheme from './Theme'
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* 全局挂载组件自定义指令
|
|
@@ -57,7 +57,7 @@ export default {
|
|
|
57
57
|
/** 加载便捷弹窗等 */
|
|
58
58
|
Vue.use(Dialog)
|
|
59
59
|
Vue.use(PageLoading)
|
|
60
|
-
Vue.use(setTheme)
|
|
60
|
+
// Vue.use(setTheme)
|
|
61
61
|
|
|
62
62
|
// 指令注册
|
|
63
63
|
Object.keys(Directives).forEach(key => {
|