chain-saasui 1.0.6 → 1.0.7

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.
Files changed (46) hide show
  1. package/README.md +5 -5
  2. package/babel.config.js +13 -13
  3. package/build/version-alpha.js +51 -51
  4. package/build/version-patch.js +44 -44
  5. package/build/webpack.common.js +54 -54
  6. package/build/webpack.components.js +69 -69
  7. package/build/webpack.demo.js +40 -40
  8. package/components/css/card.scss +19 -19
  9. package/components/css/common.scss +10 -10
  10. package/components/css/container.scss +14 -14
  11. package/components/css/detail.scss +87 -87
  12. package/components/css/dialog.scss +83 -83
  13. package/components/css/group.scss +82 -82
  14. package/components/css/index.scss +11 -11
  15. package/components/css/messagebox.scss +59 -59
  16. package/components/css/pagetable.scss +89 -89
  17. package/components/css/tablebuttons.scss +15 -15
  18. package/components/css/unit.scss +25 -25
  19. package/components/src/SCard/index.vue +34 -34
  20. package/components/src/SContainer/index.vue +35 -35
  21. package/components/src/SDialog/index.vue +101 -101
  22. package/components/src/SDrawer/index.vue +97 -97
  23. package/components/src/SForm/SSelect/index.vue +108 -108
  24. package/components/src/SGroup/index.vue +81 -81
  25. package/components/src/SMessagebox/index.js +66 -66
  26. package/components/src/SMessagebox/messagebox.vue +83 -83
  27. package/components/src/SPage/Pagedetail.vue +112 -112
  28. package/components/src/SPage/Pagestep.vue +94 -94
  29. package/components/src/SPage/Pagetable.vue +112 -112
  30. package/components/src/STable/STablecolumn.vue +111 -111
  31. package/components/src/STable/index.vue +48 -48
  32. package/components/src/STableButtons/STableButtons.md +111 -111
  33. package/components/src/STableButtons/index.vue +96 -96
  34. package/components/src/SUnit/index.vue +74 -74
  35. package/components/src/index.js +48 -48
  36. package/gulpfile.js +20 -20
  37. package/jsconfig.json +25 -25
  38. package/lib/saasui.common.js +1 -1
  39. package/package.json +84 -84
  40. package/public/html/ie.html +45 -45
  41. package/public/index.html +273 -273
  42. package/public/robots.txt +1 -1
  43. package/src/App.vue +30 -30
  44. package/src/components/HelloWorld.vue +58 -58
  45. package/src/main.js +16 -16
  46. package/vue.config.js +40 -40
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
-
2
- ## 纯粹 ui组件库 基于elementui的二次封装
3
- ```js
4
- import saasui from 'saasui';
5
- Vue.use(saasui)
1
+
2
+ ## 纯粹 ui组件库 基于elementui的二次封装
3
+ ```js
4
+ import saasui from 'saasui';
5
+ Vue.use(saasui)
6
6
  ```
package/babel.config.js CHANGED
@@ -1,13 +1,13 @@
1
- module.exports = {
2
- presets: [
3
- // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
4
- '@vue/cli-plugin-babel/preset'
5
- ],
6
- 'env': {
7
- 'development': {
8
- // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
9
- // This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
10
- 'plugins': ['dynamic-import-node']
11
- }
12
- }
13
- }
1
+ module.exports = {
2
+ presets: [
3
+ // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
4
+ '@vue/cli-plugin-babel/preset'
5
+ ],
6
+ 'env': {
7
+ 'development': {
8
+ // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
9
+ // This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
10
+ 'plugins': ['dynamic-import-node']
11
+ }
12
+ }
13
+ }
@@ -1,51 +1,51 @@
1
- const fs = require('fs');
2
- const { execSync } = require('child_process');
3
-
4
- async function updateVersion() {
5
- try {
6
- // 1. 读取当前版本
7
- const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
8
- const currentVersion = packageJson.version;
9
- const isAlphaVersion = currentVersion.includes('-alpha');
10
-
11
- // 2. 执行构建
12
- console.log('🚀 开始构建项目...');
13
- execSync('npm run build:lib', { stdio: 'inherit' });
14
- console.log('✅ 构建完成');
15
-
16
- // 3. 更新版本
17
- console.log('\n🔄 更新版本号...');
18
- if (isAlphaVersion) {
19
- console.log('当前是 alpha 版本,执行 prerelease');
20
- execSync('npm version prerelease --preid=alpha', { stdio: 'inherit' });
21
- } else {
22
- console.log('当前不是 alpha 版本,执行 prepatch 并添加 alpha 后缀');
23
- execSync('npm version prepatch --preid=alpha', { stdio: 'inherit' });
24
- }
25
-
26
- // 4. 获取新版本号
27
- const updatedPackageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
28
- const newVersion = updatedPackageJson.version;
29
-
30
- // 5. Git提交
31
- console.log('\n💾 提交代码变更...');
32
- execSync('git add .', { stdio: 'inherit' });
33
- execSync(`git commit -m "release: v${newVersion}"`, { stdio: 'inherit' });
34
- console.log('✅ 代码提交完成');
35
-
36
- // 6. 发布到npm
37
- console.log('\n📦 发布到npm...');
38
- execSync('npm publish --access public', { stdio: 'inherit' });
39
- console.log(`🎉 成功发布 v${newVersion} 到npm`);
40
-
41
- // 7. 推送git标签
42
- console.log('\n🏷️ 推送git标签...');
43
- execSync('git push --follow-tags', { stdio: 'inherit' });
44
- console.log('✅ 标签推送完成');
45
- } catch (error) {
46
- console.error('\n❌ 发布流程出错:', error.message);
47
- process.exit(1);
48
- }
49
- }
50
-
51
- updateVersion();
1
+ const fs = require('fs');
2
+ const { execSync } = require('child_process');
3
+
4
+ async function updateVersion() {
5
+ try {
6
+ // 1. 读取当前版本
7
+ const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
8
+ const currentVersion = packageJson.version;
9
+ const isAlphaVersion = currentVersion.includes('-alpha');
10
+
11
+ // 2. 执行构建
12
+ console.log('🚀 开始构建项目...');
13
+ execSync('npm run build:lib', { stdio: 'inherit' });
14
+ console.log('✅ 构建完成');
15
+
16
+ // 3. 更新版本
17
+ console.log('\n🔄 更新版本号...');
18
+ if (isAlphaVersion) {
19
+ console.log('当前是 alpha 版本,执行 prerelease');
20
+ execSync('npm version prerelease --preid=alpha', { stdio: 'inherit' });
21
+ } else {
22
+ console.log('当前不是 alpha 版本,执行 prepatch 并添加 alpha 后缀');
23
+ execSync('npm version prepatch --preid=alpha', { stdio: 'inherit' });
24
+ }
25
+
26
+ // 4. 获取新版本号
27
+ const updatedPackageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
28
+ const newVersion = updatedPackageJson.version;
29
+
30
+ // 5. Git提交
31
+ console.log('\n💾 提交代码变更...');
32
+ execSync('git add .', { stdio: 'inherit' });
33
+ execSync(`git commit -m "release: v${newVersion}"`, { stdio: 'inherit' });
34
+ console.log('✅ 代码提交完成');
35
+
36
+ // 6. 发布到npm
37
+ console.log('\n📦 发布到npm...');
38
+ execSync('npm publish --access public', { stdio: 'inherit' });
39
+ console.log(`🎉 成功发布 v${newVersion} 到npm`);
40
+
41
+ // 7. 推送git标签
42
+ console.log('\n🏷️ 推送git标签...');
43
+ execSync('git push --follow-tags', { stdio: 'inherit' });
44
+ console.log('✅ 标签推送完成');
45
+ } catch (error) {
46
+ console.error('\n❌ 发布流程出错:', error.message);
47
+ process.exit(1);
48
+ }
49
+ }
50
+
51
+ updateVersion();
@@ -1,44 +1,44 @@
1
- const fs = require('fs');
2
- const { execSync } = require('child_process');
3
-
4
- async function releaseProduction() {
5
- try {
6
- // 1. 读取当前版本
7
- const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
8
- const currentVersion = packageJson.version;
9
-
10
- // 2. 执行构建
11
- console.log('🚀 开始构建项目...');
12
- execSync('npm run build:lib', { stdio: 'inherit' });
13
- console.log('✅ 构建完成');
14
-
15
- // 3. 更新版本号(使用标准的 patch/minor/major 更新)
16
- console.log('\n🔄 更新版本号...');
17
- execSync('npm version patch', { stdio: 'inherit' }); // 可根据需要改为 minor 或 major
18
-
19
- // 4. 获取新版本号
20
- const updatedPackageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
21
- const newVersion = updatedPackageJson.version;
22
-
23
- // 5. Git提交
24
- console.log('\n💾 提交代码变更...');
25
- execSync('git add .', { stdio: 'inherit' });
26
- execSync(`git commit -m "release: v${newVersion}"`, { stdio: 'inherit' });
27
- console.log('✅ 代码提交完成');
28
-
29
- // 6. 发布到npm
30
- console.log('\n📦 发布到npm...');
31
- execSync('npm publish --access public', { stdio: 'inherit' });
32
- console.log(`🎉 成功发布正式版 v${newVersion} 到npm`);
33
-
34
- // 7. 推送git标签
35
- console.log('\n🏷️ 推送git标签...');
36
- execSync('git push --follow-tags', { stdio: 'inherit' });
37
- console.log('✅ 标签推送完成');
38
- } catch (error) {
39
- console.error('\n❌ 发布流程出错:', error.message);
40
- process.exit(1);
41
- }
42
- }
43
-
44
- releaseProduction();
1
+ const fs = require('fs');
2
+ const { execSync } = require('child_process');
3
+
4
+ async function releaseProduction() {
5
+ try {
6
+ // 1. 读取当前版本
7
+ const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
8
+ const currentVersion = packageJson.version;
9
+
10
+ // 2. 执行构建
11
+ console.log('🚀 开始构建项目...');
12
+ execSync('npm run build:lib', { stdio: 'inherit' });
13
+ console.log('✅ 构建完成');
14
+
15
+ // 3. 更新版本号(使用标准的 patch/minor/major 更新)
16
+ console.log('\n🔄 更新版本号...');
17
+ execSync('npm version patch', { stdio: 'inherit' }); // 可根据需要改为 minor 或 major
18
+
19
+ // 4. 获取新版本号
20
+ const updatedPackageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
21
+ const newVersion = updatedPackageJson.version;
22
+
23
+ // 5. Git提交
24
+ console.log('\n💾 提交代码变更...');
25
+ execSync('git add .', { stdio: 'inherit' });
26
+ execSync(`git commit -m "release: v${newVersion}"`, { stdio: 'inherit' });
27
+ console.log('✅ 代码提交完成');
28
+
29
+ // 6. 发布到npm
30
+ console.log('\n📦 发布到npm...');
31
+ execSync('npm publish --access public', { stdio: 'inherit' });
32
+ console.log(`🎉 成功发布正式版 v${newVersion} 到npm`);
33
+
34
+ // 7. 推送git标签
35
+ console.log('\n🏷️ 推送git标签...');
36
+ execSync('git push --follow-tags', { stdio: 'inherit' });
37
+ console.log('✅ 标签推送完成');
38
+ } catch (error) {
39
+ console.error('\n❌ 发布流程出错:', error.message);
40
+ process.exit(1);
41
+ }
42
+ }
43
+
44
+ releaseProduction();
@@ -1,54 +1,54 @@
1
- const path = require("path");
2
- const { VueLoaderPlugin } = require("vue-loader");
3
- const MiniCssExtractPlugin = require("mini-css-extract-plugin");
4
- const pkg = require('../package.json');
5
- const { dependencies = {}, devDependencies = {} } = pkg;
6
-
7
- module.exports = {
8
- entry: path.resolve(__dirname, "../components/src"),
9
- mode: "production",
10
- output: {
11
- path: path.resolve(__dirname, "../lib"),
12
- filename: 'saasui.common.js',
13
- chunkFilename: '[id].js',
14
- library: 'SAASUI',
15
- libraryTarget: 'commonjs2',
16
- libraryExport: 'default',
17
- },
18
- plugins: [
19
- new VueLoaderPlugin(),
20
- new MiniCssExtractPlugin({
21
- filename: 'styles/[name].css',
22
- chunkFilename: 'styles/[id].css',
23
- }),
24
- ],
25
- module: {
26
- rules: [
27
- {
28
- test: /\.vue$/,
29
- use: [
30
- {
31
- loader: "vue-loader",
32
- },
33
- ],
34
- },
35
- { test: /\.css$/, use: [MiniCssExtractPlugin.loader, "css-loader"] },
36
- {
37
- test: /\.scss$/,
38
- use: [MiniCssExtractPlugin.loader, "css-loader", "sass-loader"],
39
- },
40
- { test: /\.(jpg|png|gif|bmp|jpeg)$/, loader: 'url-loader' },
41
- { test: /\.(ttf|eot|svg|woff|woff2)$/, use: 'url-loader' }
42
- ],
43
- },
44
- externals: Object.keys({ ...dependencies, ...devDependencies }).reduce((externals, dep) => {
45
- externals[dep] = dep; // 将每个依赖排除在打包之外
46
- return externals;
47
- }, {}),
48
- resolve: {
49
- extensions: ['.js', '.vue', '.json'], // 添加你项目中用到的扩展名
50
- alias: {
51
-
52
- },
53
- },
54
- };
1
+ const path = require("path");
2
+ const { VueLoaderPlugin } = require("vue-loader");
3
+ const MiniCssExtractPlugin = require("mini-css-extract-plugin");
4
+ const pkg = require('../package.json');
5
+ const { dependencies = {}, devDependencies = {} } = pkg;
6
+
7
+ module.exports = {
8
+ entry: path.resolve(__dirname, "../components/src"),
9
+ mode: "production",
10
+ output: {
11
+ path: path.resolve(__dirname, "../lib"),
12
+ filename: 'saasui.common.js',
13
+ chunkFilename: '[id].js',
14
+ library: 'SAASUI',
15
+ libraryTarget: 'commonjs2',
16
+ libraryExport: 'default',
17
+ },
18
+ plugins: [
19
+ new VueLoaderPlugin(),
20
+ new MiniCssExtractPlugin({
21
+ filename: 'styles/[name].css',
22
+ chunkFilename: 'styles/[id].css',
23
+ }),
24
+ ],
25
+ module: {
26
+ rules: [
27
+ {
28
+ test: /\.vue$/,
29
+ use: [
30
+ {
31
+ loader: "vue-loader",
32
+ },
33
+ ],
34
+ },
35
+ { test: /\.css$/, use: [MiniCssExtractPlugin.loader, "css-loader"] },
36
+ {
37
+ test: /\.scss$/,
38
+ use: [MiniCssExtractPlugin.loader, "css-loader", "sass-loader"],
39
+ },
40
+ { test: /\.(jpg|png|gif|bmp|jpeg)$/, loader: 'url-loader' },
41
+ { test: /\.(ttf|eot|svg|woff|woff2)$/, use: 'url-loader' }
42
+ ],
43
+ },
44
+ externals: Object.keys({ ...dependencies, ...devDependencies }).reduce((externals, dep) => {
45
+ externals[dep] = dep; // 将每个依赖排除在打包之外
46
+ return externals;
47
+ }, {}),
48
+ resolve: {
49
+ extensions: ['.js', '.vue', '.json'], // 添加你项目中用到的扩展名
50
+ alias: {
51
+
52
+ },
53
+ },
54
+ };
@@ -1,69 +1,69 @@
1
- const path = require("path");
2
- const { VueLoaderPlugin } = require("vue-loader");
3
- const glob = require("glob");
4
- const MiniCssExtractPlugin = require("mini-css-extract-plugin");
5
- const list = {};
6
- async function makeList(dirPath, list) {
7
- const files = glob.sync(`${dirPath}/**/index.js`);
8
- for (let file of files) {
9
- const component = file.split(/[/.]/)[2];
10
- list[component] = `./${file}`;
11
- }
12
- }
13
- makeList("components/src", list);
14
- const NODE_ENV = process.env.NODE_ENV ? process.env.NODE_ENV.trim() : "";
15
- const isDevelopment = NODE_ENV === 'development'; // trim
16
-
17
- module.exports = {
18
- entry: list,
19
- mode: "production",
20
- output: {
21
- path: path.resolve(__dirname, "../lib"),
22
- filename: '[name].js',
23
- chunkFilename: '[id].js',
24
- library: 'SAASUI',
25
- libraryExport: 'default',
26
- libraryTarget: 'umd',
27
- umdNamedDefine: true,
28
- globalObject: 'typeof self !== \'undefined\' ? self : this'
29
- },
30
- // output: {
31
- // filename: '[name].js', // 输出文件名
32
- // chunkFilename: '[id].js',
33
- // path: path.resolve(__dirname, '../lib'),
34
- // libraryTarget: 'commonjs2', // 使用 CommonJS 格式
35
- // },
36
- watch: isDevelopment, // 实时打包
37
- plugins: [
38
- new VueLoaderPlugin(),
39
- new MiniCssExtractPlugin({
40
- filename: 'styles/[name].css',
41
- chunkFilename: 'styles/[id].css',
42
- }),
43
- ],
44
- module: {
45
- rules: [
46
- {
47
- test: /\.vue$/,
48
- use: [
49
- {
50
- loader: "vue-loader",
51
- },
52
- ],
53
- },
54
- { test: /\.css$/, use: [MiniCssExtractPlugin.loader, "css-loader"] },
55
- {
56
- test: /\.scss$/,
57
- use: [MiniCssExtractPlugin.loader, "css-loader", "sass-loader"],
58
- },
59
- { test: /\.(jpg|png|gif|bmp|jpeg)$/, loader: 'url-loader' },
60
- { test: /\.(ttf|eot|svg|woff|woff2)$/, use: 'url-loader' }
61
- ],
62
- },
63
- resolve: {
64
- extensions: ['.js', '.vue', '.json'], // 添加你项目中用到的扩展名
65
- alias: {
66
- vue$: "vue/dist/vue.esm.js", // 使用完整版 Vue
67
- },
68
- },
69
- };
1
+ const path = require("path");
2
+ const { VueLoaderPlugin } = require("vue-loader");
3
+ const glob = require("glob");
4
+ const MiniCssExtractPlugin = require("mini-css-extract-plugin");
5
+ const list = {};
6
+ async function makeList(dirPath, list) {
7
+ const files = glob.sync(`${dirPath}/**/index.js`);
8
+ for (let file of files) {
9
+ const component = file.split(/[/.]/)[2];
10
+ list[component] = `./${file}`;
11
+ }
12
+ }
13
+ makeList("components/src", list);
14
+ const NODE_ENV = process.env.NODE_ENV ? process.env.NODE_ENV.trim() : "";
15
+ const isDevelopment = NODE_ENV === 'development'; // trim
16
+
17
+ module.exports = {
18
+ entry: list,
19
+ mode: "production",
20
+ output: {
21
+ path: path.resolve(__dirname, "../lib"),
22
+ filename: '[name].js',
23
+ chunkFilename: '[id].js',
24
+ library: 'SAASUI',
25
+ libraryExport: 'default',
26
+ libraryTarget: 'umd',
27
+ umdNamedDefine: true,
28
+ globalObject: 'typeof self !== \'undefined\' ? self : this'
29
+ },
30
+ // output: {
31
+ // filename: '[name].js', // 输出文件名
32
+ // chunkFilename: '[id].js',
33
+ // path: path.resolve(__dirname, '../lib'),
34
+ // libraryTarget: 'commonjs2', // 使用 CommonJS 格式
35
+ // },
36
+ watch: isDevelopment, // 实时打包
37
+ plugins: [
38
+ new VueLoaderPlugin(),
39
+ new MiniCssExtractPlugin({
40
+ filename: 'styles/[name].css',
41
+ chunkFilename: 'styles/[id].css',
42
+ }),
43
+ ],
44
+ module: {
45
+ rules: [
46
+ {
47
+ test: /\.vue$/,
48
+ use: [
49
+ {
50
+ loader: "vue-loader",
51
+ },
52
+ ],
53
+ },
54
+ { test: /\.css$/, use: [MiniCssExtractPlugin.loader, "css-loader"] },
55
+ {
56
+ test: /\.scss$/,
57
+ use: [MiniCssExtractPlugin.loader, "css-loader", "sass-loader"],
58
+ },
59
+ { test: /\.(jpg|png|gif|bmp|jpeg)$/, loader: 'url-loader' },
60
+ { test: /\.(ttf|eot|svg|woff|woff2)$/, use: 'url-loader' }
61
+ ],
62
+ },
63
+ resolve: {
64
+ extensions: ['.js', '.vue', '.json'], // 添加你项目中用到的扩展名
65
+ alias: {
66
+ vue$: "vue/dist/vue.esm.js", // 使用完整版 Vue
67
+ },
68
+ },
69
+ };
@@ -1,40 +1,40 @@
1
- 'use strict'
2
- const { log } = require('console')
3
- const path = require('path')
4
-
5
- function resolve(dir) {
6
- return path.join(__dirname, dir)
7
- }
8
-
9
-
10
- // vue.config.js 配置说明
11
- // 官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions
12
- // 这里只列一部分,具体配置参考文档
13
- module.exports = {
14
- entry: '../src/main.js',
15
- // 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist)
16
- outputDir: 'dist',
17
- // 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)
18
- assetsDir: 'static',
19
- // 是否开启eslint保存检测,有效值:ture | false | 'error'
20
- lintOnSave: false,
21
- // 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。
22
- productionSourceMap: false,
23
- configureWebpack: {
24
- resolve: {
25
- alias: {
26
- '@': path.resolve(__dirname, './src'),
27
- }
28
- },
29
- },
30
- // rules: [
31
- // {
32
- // test: /\.scss$/,
33
- // use: [
34
- // 'style-loader', // 注入 CSS 到 DOM
35
- // 'sass-loader' // 处理 Sass 文件
36
- // ],
37
- // },
38
- // ],
39
- }
40
-
1
+ 'use strict'
2
+ const { log } = require('console')
3
+ const path = require('path')
4
+
5
+ function resolve(dir) {
6
+ return path.join(__dirname, dir)
7
+ }
8
+
9
+
10
+ // vue.config.js 配置说明
11
+ // 官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions
12
+ // 这里只列一部分,具体配置参考文档
13
+ module.exports = {
14
+ entry: '../src/main.js',
15
+ // 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist)
16
+ outputDir: 'dist',
17
+ // 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)
18
+ assetsDir: 'static',
19
+ // 是否开启eslint保存检测,有效值:ture | false | 'error'
20
+ lintOnSave: false,
21
+ // 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。
22
+ productionSourceMap: false,
23
+ configureWebpack: {
24
+ resolve: {
25
+ alias: {
26
+ '@': path.resolve(__dirname, './src'),
27
+ }
28
+ },
29
+ },
30
+ // rules: [
31
+ // {
32
+ // test: /\.scss$/,
33
+ // use: [
34
+ // 'style-loader', // 注入 CSS 到 DOM
35
+ // 'sass-loader' // 处理 Sass 文件
36
+ // ],
37
+ // },
38
+ // ],
39
+ }
40
+
@@ -1,19 +1,19 @@
1
- .saas-card {
2
- border-radius: 6px;
3
- border: 1px solid #dbdee7;
4
- margin-bottom: 24px;
5
- }
6
-
7
- .saas-card-header {
8
- background: #f7f9fb;
9
- border-radius: 6px 6px 0px 0px;
10
- border-bottom: 1px solid #dbdee7;
11
- font-weight: 500;
12
- font-size: 16px;
13
- color: #0e1822;
14
- padding: 8px 16px;
15
- }
16
-
17
- .saas-card-content {
18
- padding: 16px;
19
- }
1
+ .saas-card {
2
+ border-radius: 6px;
3
+ border: 1px solid #dbdee7;
4
+ margin-bottom: 24px;
5
+ }
6
+
7
+ .saas-card-header {
8
+ background: #f7f9fb;
9
+ border-radius: 6px 6px 0px 0px;
10
+ border-bottom: 1px solid #dbdee7;
11
+ font-weight: 500;
12
+ font-size: 16px;
13
+ color: #0e1822;
14
+ padding: 8px 16px;
15
+ }
16
+
17
+ .saas-card-content {
18
+ padding: 16px;
19
+ }
@@ -1,10 +1,10 @@
1
- // 公共变量
2
- $color: red;
3
-
4
- $colors: (
5
- primary: #1890ff,
6
- info: #a1a5b2,
7
- success: #2ecc71,
8
- danger: #ff3b30,
9
- warning: #ff9900,
10
- );
1
+ // 公共变量
2
+ $color: red;
3
+
4
+ $colors: (
5
+ primary: #1890ff,
6
+ info: #a1a5b2,
7
+ success: #2ecc71,
8
+ danger: #ff3b30,
9
+ warning: #ff9900,
10
+ );
@@ -1,14 +1,14 @@
1
- // 页面布局
2
- .saas-container {
3
- display: flex;
4
- flex-direction: column;
5
- height: 100%;
6
- flex: 1;
7
- }
8
-
9
- .saas-container-header {
10
- }
11
- .saas-container-content {
12
- flex: 1;
13
- min-height: 300px;
14
- }
1
+ // 页面布局
2
+ .saas-container {
3
+ display: flex;
4
+ flex-direction: column;
5
+ height: 100%;
6
+ flex: 1;
7
+ }
8
+
9
+ .saas-container-header {
10
+ }
11
+ .saas-container-content {
12
+ flex: 1;
13
+ min-height: 300px;
14
+ }