
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
sanchi 是基于Element-ui的业务组件库。
组件库包含Configuration, Engine两类业务组件。Configuration为一般业务组件;Engine为页面级组件,可以由多个一般业务组件组成。
npm 安装$ npm i sanchi
import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import Sanchi from 'sanchi';
import App from './App.vue';
Vue.use(ElementUI);
Vue.user(Sanchi);
new Vue({
el: '#app',
render: h => h(App)
});
以上代码完成了Sanchi的引入。Sanchi默认的样式文件需要单独引入。
<template>
<yui-custom-query :filters="filters"
:query-method="service.searchRepos"
:query-params="params"
:table-columns="tableColumns"
:form-attrs="formAttrs"
:table-attrs="tableAttrs"
:downloadable="true"
:downloadCallback="downloadCallback"
@submit="handleSubmit"
@reset="handleReset">
</yui-custom-query>
</template>
<script>
export default {}
</script>
需要Nodejs 10+,yarn和npm。项目使用yarn进行依赖版本的锁定,不要使用npm install安装依赖。
git clone git@git.int.ybm100.com:fe-common/sanchi.git
yarn serve
# open http://localhost:8001
提示:在本地修改
docs/[组件目录]/*.md]文件,调用你修改后的组件components/[组件文件],访问 http://localhost:8085,查看修改效果。组件修改后需要重新构建库。
yarn dist
yarn build
FAQs
基于Element-ui的业务组件库
The npm package sanchi receives a total of 21 weekly downloads. As such, sanchi popularity was classified as not popular.
We found that sanchi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.