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.
@@ -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, './node_modules/ant-design-vue'),
130
- stylesDir: path.join(__dirname, './node_modules/ant-design-vue/lib/style/themes'),
131
- outputFilePath: path.join(__dirname, './public/antdVue.less')
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
  // 输出自定义样式文件
@@ -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 => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-component-gallery",
3
- "version": "2.1.20",
3
+ "version": "2.1.21",
4
4
  "description": "基础vue、antdvue、less实现的私有组件库",
5
5
  "main": "dist/index.umd.js",
6
6
  "files": [