
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@pureadmin/descriptions
Advanced tools
Use tsx syntax to encapsulate element-plus Descriptions twice to provide flexible configuration items
二次封装element-plus的Descriptions,提供灵活的配置项
简体中文 | English
element-plus
Descriptions 的Descriptions Item
属性目前只能写在<template></template>
模版里,这样不是很灵活,如果描述列表的Item
足够多,代码写、看起来很臃肿,于是我开发了这个库,让我们一起探索吧tsx
语法编写,保证类型的同时,给开发者提供了更灵活的写法,给使用者提供了更方便的配置element-plus
Descriptions 所有属性、插槽的同时,提供更灵活的配置npm install @pureadmin/descriptions
or
pnpm add @pureadmin/descriptions
import { PureDescriptions } from "@pureadmin/descriptions";
<pure-descriptions :data="data" :columns="columns"></pure-descriptions>
import { createApp } from "vue";
import App from "./App.vue";
import PureDescriptions from "@pureadmin/descriptions";
const app = createApp(App);
app.use(PureDescriptions).mount("#app");
Volar
,那么可以在 tsconfig.json 中配置 compilerOptions.types 来指定全局组件类型(尤其是全局注册时要想获得类型提示就需要加上下面配置)// tsconfig.json
{
"compilerOptions": {
// ...
"types": ["@pureadmin/descriptions/volar"]
}
}
FAQs
Use tsx syntax to encapsulate element-plus Descriptions twice to provide flexible configuration items
The npm package @pureadmin/descriptions receives a total of 1,634 weekly downloads. As such, @pureadmin/descriptions popularity was classified as popular.
We found that @pureadmin/descriptions 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.