cnhis-design-vue 0.3.0-beta → 0.3.3-beta
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 +12 -0
- package/es/big-table/index.css +5 -0
- package/es/big-table/index.js +41480 -0
- package/es/button-print/index.css +7 -0
- package/es/button-print/index.js +21615 -0
- package/es/drag-layout/index.css +10 -0
- package/es/drag-layout/index.js +13198 -0
- package/es/grid/index.css +10 -0
- package/es/grid/index.js +30829 -0
- package/es/index.css +10 -6
- package/es/index.js +52078 -1
- package/package.json +63 -33
- package/es/button/index.css +0 -6
- package/es/button/index.js +0 -1
- package/packages/button/index.ts +0 -16
- package/packages/button/src/Button.vue +0 -32
- package/packages/index.ts +0 -35
- package/src/core/create.ts +0 -6
- package/src/global/variable.ts +0 -2
package/package.json
CHANGED
|
@@ -1,33 +1,63 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cnhis-design-vue",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "0.3.
|
|
5
|
-
"main": "es/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "vite --host",
|
|
8
|
-
"build:docs": "vite build",
|
|
9
|
-
"build:es": "
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"@
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "cnhis-design-vue",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.3.3-beta",
|
|
5
|
+
"main": "es/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite --host --port 3200",
|
|
8
|
+
"build:docs": "vite build",
|
|
9
|
+
"build:es": "npm run build:packges",
|
|
10
|
+
"build:packges": "rollup -c build/config.component.ts",
|
|
11
|
+
"build:packges:dts": "rollup -c build/config.component.dts.ts",
|
|
12
|
+
"preview": "vite preview"
|
|
13
|
+
},
|
|
14
|
+
"peerDependencies": {
|
|
15
|
+
"naive-ui": "^2.28.1",
|
|
16
|
+
"@vicons/ionicons5": "^0.12.0",
|
|
17
|
+
"axios": "^0.26.1"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@vicons/ionicons5": "^0.12.0",
|
|
21
|
+
"axios": "^0.26.1",
|
|
22
|
+
"crypto-js": "^4.1.1",
|
|
23
|
+
"moment": "^2.29.1",
|
|
24
|
+
"naive-ui": "^2.28.1",
|
|
25
|
+
"vue": "^3.2.25",
|
|
26
|
+
"vue-router": "^4.0.13",
|
|
27
|
+
"vuedraggable": "^4.1.0",
|
|
28
|
+
"vxe-table": "^4.2.1",
|
|
29
|
+
"xe-utils": "^3.5.4"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@rollup/plugin-commonjs": "^21.0.3",
|
|
33
|
+
"@rollup/plugin-image": "^2.1.1",
|
|
34
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
35
|
+
"@vitejs/plugin-vue": "^2.2.0",
|
|
36
|
+
"@vitejs/plugin-vue-jsx": "^1.3.8",
|
|
37
|
+
"autoprefixer": "^10.4.4",
|
|
38
|
+
"cssnano": "^5.1.7",
|
|
39
|
+
"eslint": "^8.10.0",
|
|
40
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
41
|
+
"eslint-plugin-vue": "^8.5.0",
|
|
42
|
+
"less": "^4.1.2",
|
|
43
|
+
"rollup": "^2.70.0",
|
|
44
|
+
"rollup-plugin-esbuild": "^4.9.1",
|
|
45
|
+
"rollup-plugin-external-globals": "^0.6.1",
|
|
46
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
47
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
48
|
+
"rollup-plugin-typescript2": "^0.31.2",
|
|
49
|
+
"rollup-plugin-vue": "^6.0.0",
|
|
50
|
+
"rollup-plugin-vue-jsx-compat": "0.0.6",
|
|
51
|
+
"typescript": "^4.5.4",
|
|
52
|
+
"vite": "^2.8.0",
|
|
53
|
+
"vue-tsc": "^0.29.8"
|
|
54
|
+
},
|
|
55
|
+
"browserslist": [
|
|
56
|
+
"defaults",
|
|
57
|
+
"not ie < 8",
|
|
58
|
+
"last 2 versions",
|
|
59
|
+
"> 1%",
|
|
60
|
+
"iOS 7",
|
|
61
|
+
"last 3 iOS versions"
|
|
62
|
+
]
|
|
63
|
+
}
|
package/es/button/index.css
DELETED
package/es/button/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as n,ref as t,openBlock as a,createElementBlock as s,Fragment as e,createElementVNode as o,toDisplayString as c,pushScopeId as l,popScopeId as u}from"vue";const i={class:"btn"},m=(n=>(l("data-v-118f0c46"),n=n(),u(),n))((()=>o("div",{class:"c-box"},[o("p",{class:"box"},"我是测试less的")],-1)));var p,v=n({...((p={name:"Button"}).name="C"+(p.name||""),p.mixins=p.mixins||[],p),setup(n){const l=t("???");return(n,t)=>(a(),s(e,null,[o("button",i,"我是测试的按钮组件"+c(l.value),1),o("p",null,"我是测试的按钮组件"+c(l.value),1),m],64))}});v.__scopeId="data-v-118f0c46",v.__file="packages/button/src/Button.vue",v.install=function(n){n.component(v.name,v)};const r=v;export{r as default};
|
package/packages/button/index.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { App } from "vue";
|
|
2
|
-
// 导入组件
|
|
3
|
-
import Button from "./src/Button.vue"
|
|
4
|
-
|
|
5
|
-
type SFCWithInstall<T> = T & { install(app: App): void }; // vue 安装
|
|
6
|
-
|
|
7
|
-
// 为组件提供 install 安装方法,供按需引入
|
|
8
|
-
Button.install = function(app: App) {
|
|
9
|
-
app.component(Button.name, Button);
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
const CButton: SFCWithInstall<typeof Button> = Button; // 增加类型
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
// 默认导出组件
|
|
16
|
-
export default CButton;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import create from '@/core/create';
|
|
3
|
-
export default create({
|
|
4
|
-
name: "Button"
|
|
5
|
-
})
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<script setup lang="ts">
|
|
10
|
-
import { ref } from "vue"
|
|
11
|
-
|
|
12
|
-
const count: any = ref("???")
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<template>
|
|
16
|
-
<button class="btn">我是测试的按钮组件{{count}}</button>
|
|
17
|
-
<p>我是测试的按钮组件{{count}}</p>
|
|
18
|
-
<div class="c-box">
|
|
19
|
-
<p class="box">我是测试less的</p>
|
|
20
|
-
</div>
|
|
21
|
-
</template>
|
|
22
|
-
|
|
23
|
-
<style scoped lang="less">
|
|
24
|
-
.btn {
|
|
25
|
-
color: red;
|
|
26
|
-
}
|
|
27
|
-
.c-box {
|
|
28
|
-
.box {
|
|
29
|
-
color: green;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
</style>
|
package/packages/index.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { App } from "vue";
|
|
2
|
-
// 导入组件
|
|
3
|
-
import { default as Button } from './button';
|
|
4
|
-
|
|
5
|
-
// 存储组件列表
|
|
6
|
-
const components: any[] = [
|
|
7
|
-
Button
|
|
8
|
-
];
|
|
9
|
-
|
|
10
|
-
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
11
|
-
const install = function(app: App) {
|
|
12
|
-
// 判断是否可以安装
|
|
13
|
-
// if (install.installed) return;
|
|
14
|
-
// 遍历注册全局组件
|
|
15
|
-
components.forEach(component => {
|
|
16
|
-
app.component(component.name, component)
|
|
17
|
-
// app.use(component);
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
// // 判断是否是直接引入文件
|
|
22
|
-
// if (typeof window !== 'undefined' && window.Vue) {
|
|
23
|
-
// install(window.Vue);
|
|
24
|
-
// }
|
|
25
|
-
|
|
26
|
-
export {
|
|
27
|
-
Button
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export default {
|
|
31
|
-
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
|
|
32
|
-
install,
|
|
33
|
-
// 以下是具体的组件列表
|
|
34
|
-
...components
|
|
35
|
-
};
|
package/src/core/create.ts
DELETED
package/src/global/variable.ts
DELETED