Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
superkit-teambition
Advanced tools
[superKit × Teambition] Vue.js PC components library for Teambition application project
[superKit × Teambition] Vue.js PC components library for Teambition application project.
全局引入样式:
// main.js
require('superkit-teambition/dist/main.css')
全局注册组件:
// main.js
import * as tbc from 'superkit-teambition'
Vue.use(tbc)
或局部引入组件:
// eg.vue
import { Loading } from 'superkit-teambition'
# install dependencies
yarn install # 请务必使用 yarn 命令来安装,否则无法精确安装已锁定版本的依赖
# serve with hot reload at localhost:8081
yarn run dev
# build for production with minification
yarn run build
# build docs
yarn run build:docs
# run unit tests
yarn run unit
# run all tests
yarn test
VSCode
Add New Line to Files
Auto Rename Tag
HTML CSS Support
HTML Snippets
Path Intellisense
...
为方便协作开发,预先约定如下:
<style lang="less" scoped></style>
标签中,其为局部作用域,仅对当前文件有效;所以 className/tagName 随意命名,不用担心与其他样式冲突@import
加载global--
前缀。其 className 可在任何模板中使用require('xxxx)
全局加载src
已添加到 webpack 别名,别名为 @
,可以这样使用:
.js : import xxx from '@/utils/xxx'
.vue : import xxxx from '@/components/xxxx'
.css :(来自于 node_modules 的外部文件)
在 /main.js 入口文件中使用 `require('xxxxx.css')` 全局引入
.less :
全局引入:在 /main.js 入口文件中使用 `require('xxxx.less)`
局部引入:在 .vue 文件的 <style> 标签中,或 .less 文件中:使用 `@import "~@/styles/xxx.less";`
svg/png/eot/json/other :
在 .vue 文件的 <style> 标签中,或 .less 文件中:使用 `background: url(~@/assets/images/xxx.png);`
在 js 代码中推荐使用 `const xxx = require('@/assets/images/xxx.png')` [ * 当然你要是想用 import xxx from '@/assets/images/xxx.png' 也可以,但 require 更加清楚地表明了这是 webpack 的能力,所以更推荐前者 ]
FAQs
[superKit × Teambition] Vue.js PC components library for Teambition application project
The npm package superkit-teambition receives a total of 85 weekly downloads. As such, superkit-teambition popularity was classified as not popular.
We found that superkit-teambition demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.