byt-ui 0.0.13 → 0.0.15
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 +74 -74
- package/jsconfig.json +19 -19
- package/lib/byt-ui.common.js +150 -190
- package/lib/byt-ui.css +1 -1
- package/lib/byt-ui.umd.js +148 -188
- package/lib/byt-ui.umd.min.js +2 -2
- package/package.json +73 -73
- package/packages/components/basic-view/demo.vue +8 -0
- package/packages/components/basic-view/index.vue +8 -2
- package/packages/components/form-view/index.vue +7 -3
package/package.json
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "byt-ui",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"private": false,
|
|
5
|
-
"description": "byt组件库",
|
|
6
|
-
"author": {
|
|
7
|
-
"name": "wgh"
|
|
8
|
-
},
|
|
9
|
-
"scripts": {
|
|
10
|
-
"dev": "vue-cli-service serve",
|
|
11
|
-
"build": "vue-cli-service build",
|
|
12
|
-
"lint": "vue-cli-service lint",
|
|
13
|
-
"lib": "vue-cli-service build --target lib --name byt-ui --dest lib packages/index.js",
|
|
14
|
-
"styleguide": "vue-cli-service styleguidist",
|
|
15
|
-
"styleguide:build": "vue-cli-service styleguidist:build"
|
|
16
|
-
},
|
|
17
|
-
"main": "lib/byt-ui.umd.min.js",
|
|
18
|
-
"dependencies": {
|
|
19
|
-
"core-js": "^3.8.3",
|
|
20
|
-
"element-ui": "^2.15.10",
|
|
21
|
-
"js-cookie": "^3.0.1",
|
|
22
|
-
"moment": "^2.29.4",
|
|
23
|
-
"vue": "^2.6.14",
|
|
24
|
-
"vxe-table": "^3.6.6",
|
|
25
|
-
"xe-utils": "^3.5.6"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@babel/core": "^7.12.16",
|
|
29
|
-
"@babel/eslint-parser": "^7.12.16",
|
|
30
|
-
"@babel/preset-env": "^7.19.4",
|
|
31
|
-
"@vue/cli-plugin-babel": "~5.0.0",
|
|
32
|
-
"@vue/cli-plugin-eslint": "~5.0.0",
|
|
33
|
-
"@vue/cli-service": "~5.0.0",
|
|
34
|
-
"babel-plugin-component": "^1.1.1",
|
|
35
|
-
"babel-preset-env": "^1.7.0",
|
|
36
|
-
"eslint": "^7.32.0",
|
|
37
|
-
"eslint-plugin-vue": "^8.0.3",
|
|
38
|
-
"node-sass": "4.14.1",
|
|
39
|
-
"sass-loader": "10.0.4",
|
|
40
|
-
"vue-cli-plugin-styleguidist": "~4.45.1",
|
|
41
|
-
"vue-template-compiler": "^2.6.14"
|
|
42
|
-
},
|
|
43
|
-
"eslintConfig": {
|
|
44
|
-
"root": true,
|
|
45
|
-
"env": {
|
|
46
|
-
"node": true
|
|
47
|
-
},
|
|
48
|
-
"extends": [
|
|
49
|
-
"plugin:vue/essential",
|
|
50
|
-
"eslint:recommended"
|
|
51
|
-
],
|
|
52
|
-
"parserOptions": {
|
|
53
|
-
"parser": "@babel/eslint-parser"
|
|
54
|
-
},
|
|
55
|
-
"rules": {}
|
|
56
|
-
},
|
|
57
|
-
"browserslist": [
|
|
58
|
-
"> 1%",
|
|
59
|
-
"last 2 versions",
|
|
60
|
-
"not dead"
|
|
61
|
-
],
|
|
62
|
-
"keywords": [
|
|
63
|
-
"byt",
|
|
64
|
-
"byt-ui",
|
|
65
|
-
"@byt",
|
|
66
|
-
"@byt/base"
|
|
67
|
-
],
|
|
68
|
-
"license": "MIT",
|
|
69
|
-
"publishConfig": {
|
|
70
|
-
"access": "public",
|
|
71
|
-
"registry": "https://registry.npmjs.org/"
|
|
72
|
-
}
|
|
73
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "byt-ui",
|
|
3
|
+
"version": "0.0.15",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "byt组件库",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "wgh"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"dev": "vue-cli-service serve",
|
|
11
|
+
"build": "vue-cli-service build",
|
|
12
|
+
"lint": "vue-cli-service lint",
|
|
13
|
+
"lib": "vue-cli-service build --target lib --name byt-ui --dest lib packages/index.js",
|
|
14
|
+
"styleguide": "vue-cli-service styleguidist",
|
|
15
|
+
"styleguide:build": "vue-cli-service styleguidist:build"
|
|
16
|
+
},
|
|
17
|
+
"main": "lib/byt-ui.umd.min.js",
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"core-js": "^3.8.3",
|
|
20
|
+
"element-ui": "^2.15.10",
|
|
21
|
+
"js-cookie": "^3.0.1",
|
|
22
|
+
"moment": "^2.29.4",
|
|
23
|
+
"vue": "^2.6.14",
|
|
24
|
+
"vxe-table": "^3.6.6",
|
|
25
|
+
"xe-utils": "^3.5.6"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@babel/core": "^7.12.16",
|
|
29
|
+
"@babel/eslint-parser": "^7.12.16",
|
|
30
|
+
"@babel/preset-env": "^7.19.4",
|
|
31
|
+
"@vue/cli-plugin-babel": "~5.0.0",
|
|
32
|
+
"@vue/cli-plugin-eslint": "~5.0.0",
|
|
33
|
+
"@vue/cli-service": "~5.0.0",
|
|
34
|
+
"babel-plugin-component": "^1.1.1",
|
|
35
|
+
"babel-preset-env": "^1.7.0",
|
|
36
|
+
"eslint": "^7.32.0",
|
|
37
|
+
"eslint-plugin-vue": "^8.0.3",
|
|
38
|
+
"node-sass": "4.14.1",
|
|
39
|
+
"sass-loader": "10.0.4",
|
|
40
|
+
"vue-cli-plugin-styleguidist": "~4.45.1",
|
|
41
|
+
"vue-template-compiler": "^2.6.14"
|
|
42
|
+
},
|
|
43
|
+
"eslintConfig": {
|
|
44
|
+
"root": true,
|
|
45
|
+
"env": {
|
|
46
|
+
"node": true
|
|
47
|
+
},
|
|
48
|
+
"extends": [
|
|
49
|
+
"plugin:vue/essential",
|
|
50
|
+
"eslint:recommended"
|
|
51
|
+
],
|
|
52
|
+
"parserOptions": {
|
|
53
|
+
"parser": "@babel/eslint-parser"
|
|
54
|
+
},
|
|
55
|
+
"rules": {}
|
|
56
|
+
},
|
|
57
|
+
"browserslist": [
|
|
58
|
+
"> 1%",
|
|
59
|
+
"last 2 versions",
|
|
60
|
+
"not dead"
|
|
61
|
+
],
|
|
62
|
+
"keywords": [
|
|
63
|
+
"byt",
|
|
64
|
+
"byt-ui",
|
|
65
|
+
"@byt",
|
|
66
|
+
"@byt/base"
|
|
67
|
+
],
|
|
68
|
+
"license": "MIT",
|
|
69
|
+
"publishConfig": {
|
|
70
|
+
"access": "public",
|
|
71
|
+
"registry": "https://registry.npmjs.org/"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @Description:
|
|
3
3
|
* @Author: 王国火
|
|
4
4
|
* @Date: 2022-07-12 17:47:20
|
|
5
|
-
* @LastEditTime: 2022-
|
|
6
|
-
* @LastEditors:
|
|
5
|
+
* @LastEditTime: 2022-11-04 13:45:52
|
|
6
|
+
* @LastEditors: sxy
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
<template>
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
<FormView
|
|
14
14
|
ref="search"
|
|
15
15
|
inline
|
|
16
|
+
:label-width="labelWidth"
|
|
16
17
|
:search-list="searchList"
|
|
17
18
|
@search="onSearch"
|
|
18
19
|
@reset="onReset"
|
|
@@ -128,6 +129,11 @@ import FormView from '../form-view/index.vue'
|
|
|
128
129
|
export default {
|
|
129
130
|
name: 'BytBaseView',
|
|
130
131
|
props: {
|
|
132
|
+
// 表单label宽度
|
|
133
|
+
labelWidth: {
|
|
134
|
+
type: Number,
|
|
135
|
+
default: 80
|
|
136
|
+
},
|
|
131
137
|
/** 搜索行内表单配置*/
|
|
132
138
|
searchList: {
|
|
133
139
|
type: Array,
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* @Description:
|
|
3
3
|
* @Author: 王国火
|
|
4
4
|
* @Date: 2022-07-13 08:46:34
|
|
5
|
-
* @LastEditTime: 2022-
|
|
6
|
-
* @LastEditors:
|
|
5
|
+
* @LastEditTime: 2022-11-04 13:44:45
|
|
6
|
+
* @LastEditors: sxy
|
|
7
7
|
-->
|
|
8
8
|
<!-- -->
|
|
9
9
|
<template>
|
|
10
|
-
<el-form ref="form" :model="form" :inline="inline" label-width="
|
|
10
|
+
<el-form ref="form" :model="form" :inline="inline" :label-width="`${labelWidth}px`">
|
|
11
11
|
<el-form-item :label="item.label" :key="index" v-for="(item,index) in searchList">
|
|
12
12
|
<template v-if="item.type=='input' || !item.type">
|
|
13
13
|
<el-input v-model="form[item.key]" clearable :placeholder="`请输入${item.label}`"></el-input>
|
|
@@ -78,6 +78,10 @@ import moment from 'moment'
|
|
|
78
78
|
export default {
|
|
79
79
|
name: 'BytFormView',
|
|
80
80
|
props: {
|
|
81
|
+
labelWidth: {
|
|
82
|
+
type: Number,
|
|
83
|
+
defualt: 80
|
|
84
|
+
},
|
|
81
85
|
inline: {
|
|
82
86
|
type: Boolean,
|
|
83
87
|
defualt: false
|