byt-ui 0.0.14 → 0.0.16
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/lib/byt-ui.common.js +26 -15
- package/lib/byt-ui.css +1 -1
- package/lib/byt-ui.umd.js +24 -13
- package/lib/byt-ui.umd.min.js +1 -1
- package/package.json +72 -72
- package/packages/common/modules/cookie.js +2 -2
- 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/yarn-error.log +108 -0
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
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "byt-ui",
|
|
3
|
+
"version": "0.0.16",
|
|
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
73
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Description:
|
|
3
3
|
* @Author: 王国火
|
|
4
4
|
* @Date: 2022-10-18 12:37:03
|
|
5
|
-
* @LastEditTime: 2022-
|
|
5
|
+
* @LastEditTime: 2022-11-16 20:11:01
|
|
6
6
|
* @LastEditors: 王国火
|
|
7
7
|
*/
|
|
8
8
|
import Cookie from 'js-cookie'
|
|
@@ -29,5 +29,5 @@ export const setCookie = (key, value, expires = 7, path = '/') => {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export const removeCookie = (key, path = '/') => {
|
|
32
|
-
return Cookie.remove(key
|
|
32
|
+
return Cookie.remove(`${website.key}-${key}`, { path })
|
|
33
33
|
}
|
|
@@ -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
|
package/yarn-error.log
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
Arguments:
|
|
2
|
+
C:\Program Files\nodejs\node.exe C:\Users\byt\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js login
|
|
3
|
+
|
|
4
|
+
PATH:
|
|
5
|
+
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;D:\微信web开发者工具\dll;C:\Pro;ram Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Users\byt\AppData\Local\Microsoft\WindowsApps;;c:\program files\esafenet\cobra docguard client;C:\Users\byt\AppData\Local\Programs\Fiddler;F:\Microsoft VS Code\bin;C:\Users\byt\AppData\Roaming\npm
|
|
6
|
+
|
|
7
|
+
Yarn version:
|
|
8
|
+
1.22.19
|
|
9
|
+
|
|
10
|
+
Node version:
|
|
11
|
+
14.18.3
|
|
12
|
+
|
|
13
|
+
Platform:
|
|
14
|
+
win32 x64
|
|
15
|
+
|
|
16
|
+
Trace:
|
|
17
|
+
Error: canceled
|
|
18
|
+
at Interface.<anonymous> (C:\Users\byt\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:137150:13)
|
|
19
|
+
at Interface.emit (events.js:400:28)
|
|
20
|
+
at Interface._ttyWrite (readline.js:1001:16)
|
|
21
|
+
at ReadStream.onkeypress (readline.js:265:10)
|
|
22
|
+
at ReadStream.emit (events.js:400:28)
|
|
23
|
+
at emitKeys (internal/readline/utils.js:358:14)
|
|
24
|
+
at emitKeys.next (<anonymous>)
|
|
25
|
+
at ReadStream.onData (readline.js:1270:36)
|
|
26
|
+
at ReadStream.emit (events.js:400:28)
|
|
27
|
+
at addChunk (internal/streams/readable.js:293:12)
|
|
28
|
+
|
|
29
|
+
npm manifest:
|
|
30
|
+
{
|
|
31
|
+
"name": "byt-ui",
|
|
32
|
+
"version": "0.0.16",
|
|
33
|
+
"private": false,
|
|
34
|
+
"description": "byt组件库",
|
|
35
|
+
"author": {
|
|
36
|
+
"name": "wgh"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"dev": "vue-cli-service serve",
|
|
40
|
+
"build": "vue-cli-service build",
|
|
41
|
+
"lint": "vue-cli-service lint",
|
|
42
|
+
"lib": "vue-cli-service build --target lib --name byt-ui --dest lib packages/index.js",
|
|
43
|
+
"styleguide": "vue-cli-service styleguidist",
|
|
44
|
+
"styleguide:build": "vue-cli-service styleguidist:build"
|
|
45
|
+
},
|
|
46
|
+
"main": "lib/byt-ui.umd.min.js",
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"core-js": "^3.8.3",
|
|
49
|
+
"element-ui": "^2.15.10",
|
|
50
|
+
"js-cookie": "^3.0.1",
|
|
51
|
+
"moment": "^2.29.4",
|
|
52
|
+
"vue": "^2.6.14",
|
|
53
|
+
"vxe-table": "^3.6.6",
|
|
54
|
+
"xe-utils": "^3.5.6"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@babel/core": "^7.12.16",
|
|
58
|
+
"@babel/eslint-parser": "^7.12.16",
|
|
59
|
+
"@babel/preset-env": "^7.19.4",
|
|
60
|
+
"@vue/cli-plugin-babel": "~5.0.0",
|
|
61
|
+
"@vue/cli-plugin-eslint": "~5.0.0",
|
|
62
|
+
"@vue/cli-service": "~5.0.0",
|
|
63
|
+
"babel-plugin-component": "^1.1.1",
|
|
64
|
+
"babel-preset-env": "^1.7.0",
|
|
65
|
+
"eslint": "^7.32.0",
|
|
66
|
+
"eslint-plugin-vue": "^8.0.3",
|
|
67
|
+
"node-sass": "4.14.1",
|
|
68
|
+
"sass-loader": "10.0.4",
|
|
69
|
+
"vue-cli-plugin-styleguidist": "~4.45.1",
|
|
70
|
+
"vue-template-compiler": "^2.6.14"
|
|
71
|
+
},
|
|
72
|
+
"eslintConfig": {
|
|
73
|
+
"root": true,
|
|
74
|
+
"env": {
|
|
75
|
+
"node": true
|
|
76
|
+
},
|
|
77
|
+
"extends": [
|
|
78
|
+
"plugin:vue/essential",
|
|
79
|
+
"eslint:recommended"
|
|
80
|
+
],
|
|
81
|
+
"parserOptions": {
|
|
82
|
+
"parser": "@babel/eslint-parser"
|
|
83
|
+
},
|
|
84
|
+
"rules": {}
|
|
85
|
+
},
|
|
86
|
+
"browserslist": [
|
|
87
|
+
"> 1%",
|
|
88
|
+
"last 2 versions",
|
|
89
|
+
"not dead"
|
|
90
|
+
],
|
|
91
|
+
"keywords": [
|
|
92
|
+
"byt",
|
|
93
|
+
"byt-ui",
|
|
94
|
+
"@byt",
|
|
95
|
+
"@byt/base"
|
|
96
|
+
],
|
|
97
|
+
"license": "MIT",
|
|
98
|
+
"publishConfig": {
|
|
99
|
+
"access": "public",
|
|
100
|
+
"registry": "https://registry.npmjs.org/"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
yarn manifest:
|
|
105
|
+
No manifest
|
|
106
|
+
|
|
107
|
+
Lockfile:
|
|
108
|
+
No lockfile
|