st-comp 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -16
- package/auto-imports.d.ts +9 -0
- package/components.d.ts +26 -0
- package/lib/bundle.js +11230 -1509
- package/lib/bundle.umd.cjs +30 -5
- package/lib/style.css +1 -0
- package/package.json +13 -3
- package/packages/Button/index.ts +8 -10
- package/packages/Button/index.vue +1 -1
- package/packages/Echarts/index.ts +8 -0
- package/packages/Echarts/index.vue +113 -0
- package/packages/Kline/components/Tips/index.vue +108 -0
- package/packages/Kline/formatKlineData.ts +197 -0
- package/packages/Kline/index.ts +8 -0
- package/packages/Kline/index.vue +215 -0
- package/packages/Kline/kline_theme_dark.json +30 -0
- package/packages/Kline/kline_theme_light.json +30 -0
- package/packages/Kline/type.d.ts +34 -0
- package/packages/Kline/utils.ts +272 -0
- package/packages/List/index.ts +8 -8
- package/packages/Table/components/Button/index.vue +54 -0
- package/packages/Table/components/Formatter/index.vue +26 -0
- package/packages/Table/index.d.ts +0 -0
- package/packages/Table/index.ts +8 -0
- package/packages/Table/index.vue +112 -0
- package/packages/index.ts +17 -10
- package/src/App.vue +79 -26
- package/src/components/Echarts/index.vue +31 -0
- package/src/components/Kline/index.vue +21 -0
- package/src/components/KlineGroup/index.vue +58 -0
- package/src/components/Table/index.vue +27 -0
- package/src/main.ts +5 -1
- package/src/pages/Button/index.vue +12 -0
- package/src/pages/Echarts/index.vue +12 -0
- package/src/pages/Kline/index.vue +12 -0
- package/src/pages/List/index.vue +12 -0
- package/src/pages/Table/index.vue +27 -0
- package/src/router/index.ts +9 -0
- package/src/router/routes.ts +27 -0
- package/src/style.css +3 -79
- package/src/vite-env.d.ts +7 -0
- package/vite.config.ts +31 -1
- package/vitePlugins/createExportFile.ts +97 -0
- package/src/components/HelloWorld.vue +0 -38
package/README.md
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 前端组件库
|
|
2
|
+
### 启动项目
|
|
3
|
+
npm run dev
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
### 打包项目
|
|
6
|
+
npm run build
|
|
4
7
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
|
8
|
-
|
|
9
|
-
## Type Support For `.vue` Imports in TS
|
|
10
|
-
|
|
11
|
-
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
|
|
12
|
-
|
|
13
|
-
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
|
|
14
|
-
|
|
15
|
-
1. Disable the built-in TypeScript Extension
|
|
16
|
-
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
|
|
17
|
-
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
|
|
18
|
-
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
|
|
8
|
+
### 发布npm包(发布请联系倪鼎升)
|
|
9
|
+
npm publish
|
package/components.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* prettier-ignore */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
// Generated by unplugin-vue-components
|
|
5
|
+
// Read more: https://github.com/vuejs/core/pull/3399
|
|
6
|
+
export {}
|
|
7
|
+
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
export interface GlobalComponents {
|
|
10
|
+
Echarts: typeof import('./src/components/Echarts/index.vue')['default']
|
|
11
|
+
ElButton: typeof import('element-plus/es')['ElButton']
|
|
12
|
+
ElIcon: typeof import('element-plus/es')['ElIcon']
|
|
13
|
+
ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm']
|
|
14
|
+
ElPopover: typeof import('element-plus/es')['ElPopover']
|
|
15
|
+
ElTable: typeof import('element-plus/es')['ElTable']
|
|
16
|
+
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
|
|
17
|
+
Kline: typeof import('./src/components/Kline/index.vue')['default']
|
|
18
|
+
KlineGroup: typeof import('./src/components/KlineGroup/index.vue')['default']
|
|
19
|
+
RouterLink: typeof import('vue-router')['RouterLink']
|
|
20
|
+
RouterView: typeof import('vue-router')['RouterView']
|
|
21
|
+
Table: typeof import('./src/components/Table/index.vue')['default']
|
|
22
|
+
}
|
|
23
|
+
export interface ComponentCustomProperties {
|
|
24
|
+
vLoading: typeof import('element-plus/es')['ElLoadingDirective']
|
|
25
|
+
}
|
|
26
|
+
}
|