Commit f16a33e6 by 张立顺

tailwindcss 引入

1 parent 5826b083
module.exports = { module.exports = {
plugins: { plugins: {
tailwindcss: {},
autoprefixer: {} autoprefixer: {}
} }
} }
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
[Gitee](https://gitee.com/fairyever/d2-admin-start-kit) [Gitee](https://gitee.com/fairyever/d2-admin-start-kit)
预发布账号: yfbyyb a123456
从 develop 分支号 dev_v4.4.0 本来用来开发审核以及报表功能版本, wangql_dev_v4.4.0 已开发部分对应需求,未往 dev_v4.4.0 版本合并,因此目前 dev_v4.4.0 分支无用 从 develop 分支号 dev_v4.4.0 本来用来开发审核以及报表功能版本, wangql_dev_v4.4.0 已开发部分对应需求,未往 dev_v4.4.0 版本合并,因此目前 dev_v4.4.0 分支无用
从 develop 拉分支号 dev_v4.5.1 用来开发转化加 V4.5.0 功能需求 从 develop 拉分支号 dev_v4.5.1 用来开发转化加 V4.5.0 功能需求
从 dev_v4.5.0 拉分支号 dev_v4.5.2 用来新建菜单对应现在的虚拟对公账户功能,以前的菜单保留以防万一 从 dev_v4.5.0 拉分支号 dev_v4.5.2 用来新建菜单对应现在的虚拟对公账户功能,以前的菜单保留以防万一
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"start": "set NODE_OPTIONS=--openssl-legacy-provider && npm run serve", "start": "set NODE_OPTIONS=--openssl-legacy-provider && npm run serve",
"dev": "set NODE_OPTIONS=--openssl-legacy-provider && npm run serve", "dev": "set NODE_OPTIONS=--openssl-legacy-provider && npm run serve",
"build": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --no-module", "build": " vue-cli-service build --no-module",
"build:nomock": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode nomock", "build:nomock": "vue-cli-service build --mode nomock",
"build:travis": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode travis", "build:travis": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode travis",
"lint": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service lint --fix", "lint": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service lint --fix",
"test:unit": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service test:unit", "test:unit": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service test:unit",
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
"@sentry/tracing": "^7.3.0", "@sentry/tracing": "^7.3.0",
"@sentry/vue": "^7.3.0", "@sentry/vue": "^7.3.0",
"@sentry/webpack-plugin": "^1.18.9", "@sentry/webpack-plugin": "^1.18.9",
"@tailwindcss/postcss7-compat": "^2.2.17",
"axios": "^0.18.0", "axios": "^0.18.0",
"better-scroll": "^1.15.2", "better-scroll": "^1.15.2",
"core-js": "^3.8.3", "core-js": "^3.8.3",
...@@ -69,6 +70,7 @@ ...@@ -69,6 +70,7 @@
"@vue/eslint-config-standard": "^6.1.0", "@vue/eslint-config-standard": "^6.1.0",
"@vue/test-utils": "1.0.0-beta.29", "@vue/test-utils": "1.0.0-beta.29",
"@vue/vue2-jest": "^27.0.0-alpha.3", "@vue/vue2-jest": "^27.0.0-alpha.3",
"autoprefixer": "^9.8.8",
"babel-core": "7.0.0-bridge.0", "babel-core": "7.0.0-bridge.0",
"babel-jest": "^23.6.0", "babel-jest": "^23.6.0",
"eslint": "^7.32.0", "eslint": "^7.32.0",
...@@ -77,12 +79,13 @@ ...@@ -77,12 +79,13 @@
"eslint-plugin-promise": "^5.1.0", "eslint-plugin-promise": "^5.1.0",
"eslint-plugin-vue": "^7.0.0", "eslint-plugin-vue": "^7.0.0",
"jest": "^27.1.0", "jest": "^27.1.0",
"postcss": "^8.4.16", "postcss": "^7.0.39",
"postcss-loader": "^7.0.1", "postcss-loader": "^7.0.1",
"postcss-preset-env": "^7.7.2", "postcss-preset-env": "^7.7.2",
"sass": "^1.18.0", "sass": "^1.18.0",
"sass-loader": "^7.1.0", "sass-loader": "^7.1.0",
"script-loader": "^0.7.2", "script-loader": "^0.7.2",
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.17",
"vue-template-compiler": "^2.5.21", "vue-template-compiler": "^2.5.21",
"webpack": "^5.74.0" "webpack": "^5.74.0"
} }
......
<template> <template>
<div id="app"> <div id="app">
<span class="bg-red-500 ">222</span>
<router-view /> <router-view />
</div> </div>
</template> </template>
...@@ -18,7 +19,7 @@ export default { ...@@ -18,7 +19,7 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
@import '~@/assets/style/public-class.scss'; @import "~@/assets/style/public-class.scss";
.el_table { .el_table {
thead { thead {
th { th {
......
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
\ No newline at end of file \ No newline at end of file
<template> <template>
<div> <div>
<div class="d2-mr personal-wrap"> <div class="d2-mr personal-wrap">
<p class="bg-blue-500 text-5xl">111111</p>
<i class="el-icon-s-tools" <i class="el-icon-s-tools"
style="marginRight:20px;cursor:pointer" style="marginRight:20px;cursor:pointer"
v-if="userInfo.beSuper" v-if="userInfo.beSuper"
......
...@@ -10,6 +10,8 @@ import store from "@/store/index" ...@@ -10,6 +10,8 @@ import store from "@/store/index"
// 针对template模板中使用可选链操作符 // 针对template模板中使用可选链操作符
import chaining from "@/plugin/chaining" import chaining from "@/plugin/chaining"
// import "./assets/tailwindcss.css"
import "tailwindcss/tailwind.css"
// 接入sentry // 接入sentry
import * as Sentry from "@sentry/vue" import * as Sentry from "@sentry/vue"
import { BrowserTracing } from "@sentry/tracing" import { BrowserTracing } from "@sentry/tracing"
......
module.exports = {
purge: [],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {}
},
variants: {},
plugins: []
}
...@@ -82,6 +82,10 @@ module.exports = { ...@@ -82,6 +82,10 @@ module.exports = {
css: { css: {
loaderOptions: { loaderOptions: {
// 设置 scss 公用变量文件 // 设置 scss 公用变量文件
// require("autoprefixer")
// postcss: {
// plugins: [require("tailwindcss")]
// },
sass: { sass: {
data: "@import '~@/assets/style/public.scss';" data: "@import '~@/assets/style/public.scss';"
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!