feat: 添加jetlinks-ui-components

This commit is contained in:
xieyonghong 2023-02-28 22:01:24 +08:00
parent e233e9f55f
commit 833359a40e
7 changed files with 570 additions and 218 deletions

2
.npmrc
View File

@ -1,2 +1,2 @@
always-auth=true always-auth=true
registry=http://47.108.170.157:9013/ registry=https://registry.jetlinks.cn/

View File

@ -23,14 +23,14 @@
"event-source-polyfill": "^1.0.31", "event-source-polyfill": "^1.0.31",
"global": "^4.4.0", "global": "^4.4.0",
"jetlinks-store": "^0.0.3", "jetlinks-store": "^0.0.3",
"jetlinks-ui-components": "^1.0.0",
"js-cookie": "^3.0.1", "js-cookie": "^3.0.1",
"less": "^4.1.3", "less": "^4.1.3",
"less-loader": "^11.1.0", "less-loader": "^11.1.0",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
"marked": "^4.2.12", "marked": "^4.2.12",
"mavon-editor": "^2.10.4",
"moment": "^2.29.4", "moment": "^2.29.4",
"monaco-editor": "^0.24.0", "monaco-editor": "^0.36.0",
"nrm": "^1.2.5", "nrm": "^1.2.5",
"pinia": "^2.0.28", "pinia": "^2.0.28",
"unplugin-auto-import": "^0.12.1", "unplugin-auto-import": "^0.12.1",

View File

@ -4,14 +4,14 @@ import store from './store'
import components from './components' import components from './components'
import router from './router' import router from './router'
import './style.less' import './style.less'
import 'ant-design-vue/es/notification/style/css'; import jComponents from 'jetlinks-ui-components'
// import jConmonents from 'jetlinks-ui-components' import 'jetlinks-ui-components/es/style.js'
// import 'jetlinks-ui-components/lib/style' import 'jetlinks-ui-components/es/style/variable.less'
const app = createApp(App) const app = createApp(App)
app.use(store) app.use(store)
.use(router) .use(router)
.use(components) .use(components)
// .use(jConmonents) .use(jComponents)
.mount('#app') .mount('#app')

View File

@ -1,4 +1,5 @@
@import 'ant-design-vue/es/style/themes/default.less'; //@import 'ant-design-vue/es/style/themes/default.less';
@import 'jetlinks-ui-components/es/style/default.less';
.ellipsisFn(@num: 1, @width: 100%) { .ellipsisFn(@num: 1, @width: 100%) {
display: -webkit-box; display: -webkit-box;

View File

@ -115,7 +115,7 @@
> >
</a-form-item> </a-form-item>
<a-form-item> <a-form-item>
<a-button <j-button
:loading="loading" :loading="loading"
type="primary" type="primary"
html-type="submit" html-type="submit"
@ -123,7 +123,7 @@
block block
> >
登录 登录
</a-button> </j-button>
</a-form-item> </a-form-item>
</a-form> </a-form>
<div class="other"> <div class="other">
@ -133,14 +133,14 @@
</div> </div>
</a-divider> </a-divider>
<div class="other-button"> <div class="other-button">
<a-button <j-button
v-for="(item, index) in bindings" v-for="(item, index) in bindings"
:key="index" :key="index"
type="link" type="link"
@Click="handleClickOther(item)" @Click="handleClickOther(item)"
> >
<img <img
style="width: 32px, height: 33px" style="width: 32px; height: 33px"
:alt="item.name" :alt="item.name"
:src=" :src="
iconMap.get( iconMap.get(
@ -148,7 +148,7 @@
) || defaultImg ) || defaultImg
" "
/> />
</a-button> </j-button>
</div> </div>
</div> </div>
</div> </div>
@ -443,6 +443,7 @@ screenRotation(screenWidth.value, screenHeight.value);
position: relative; position: relative;
bottom: 10px; bottom: 10px;
text-align: center; text-align: center;
} }
} }
@ -463,6 +464,10 @@ screenRotation(screenWidth.value, screenHeight.value);
// vertical-align: middle; // vertical-align: middle;
} }
} }
.login-form-button {
width: 100%;
}
} }
} }
} }

View File

@ -99,7 +99,6 @@ export default defineConfig(({ mode}) => {
less: { less: {
modifyVars: { modifyVars: {
hack: `true; @import (reference) "${path.resolve('src/style/variable.less')}";`, hack: `true; @import (reference) "${path.resolve('src/style/variable.less')}";`,
...Config.theme,
}, },
javascriptEnabled: true, javascriptEnabled: true,
} }

755
yarn.lock

File diff suppressed because it is too large Load Diff