yks-element 1.0.0 → 1.0.8

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016-present ElemeFE
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,7 +1,131 @@
1
- # ysk公共库
2
1
 
3
- ## examples 原src目录更换为examples
2
+ # yks公共库
4
3
 
5
- ## packages 组件源码目录
4
+ ## Quick Start
6
5
 
7
- ## npmignore npm配置文件(不发布到Npm的文件在此配置)
6
+ ``` javascript
7
+ import YksElement from 'yks-element'
8
+ import '~yks-element/lib/theme-chalk/index.css';
9
+
10
+ Vue.use(YksElement)
11
+
12
+ // or
13
+ import {
14
+ Button
15
+ // ...
16
+ } from 'yks-element'
17
+
18
+ Vue.component(Button.name, Button)
19
+ ```
20
+
21
+ ### 发布npm包
22
+
23
+ ```shell
24
+ npm publish
25
+ ```
26
+
27
+ ### 发布测试包
28
+
29
+ ```shell
30
+ version : '0.0.1-beta'
31
+ npm publish --tag=beta
32
+ ```
33
+
34
+ ### 下载测试包
35
+
36
+ ```shell
37
+ npm install yks-element@beta
38
+ ```
39
+
40
+ ### 删除npm包
41
+
42
+ ```shell
43
+ npm unpublish yks-element@0.0.1 --force
44
+ ```
45
+
46
+ ### icon 合集
47
+
48
+ ```text
49
+ * yks-icon-camera
50
+ * yks-icon-download
51
+ * yks-icon-excel
52
+ * yks-icon-other
53
+ * yks-icon-pdf
54
+ * yks-icon-ppt
55
+ * yks-icon-word
56
+ ```
57
+
58
+ ### 1.0.46
59
+
60
+ ```text
61
+ * yks-tinymce添加防抖事件
62
+ ```
63
+
64
+ #### 1.0.66
65
+
66
+ ```text
67
+ * 优化视频播放,音频播放
68
+ * 富文本编辑器调整
69
+ ```
70
+
71
+ ### 1.0.67
72
+
73
+ ```text
74
+ * 下载文件,增加提示
75
+ ```
76
+
77
+ ### 1.0.68 and 1.0.69
78
+
79
+ ```text
80
+ * 添加样式
81
+ ```
82
+
83
+ ### 1.0.71
84
+
85
+ ```text
86
+ * 修复录音停止后还在调用麦克风问题
87
+ * 优化录音逻辑
88
+ * 新增图标
89
+ * 调整上传录音样式
90
+ ```
91
+
92
+ ### 1.0.72
93
+
94
+ ```text
95
+ * 新增jpeg格式
96
+ ```
97
+
98
+ ### 1.0.73
99
+
100
+ ```text
101
+ * 修复ios safari视频播放无法全屏问题
102
+ * 修复ios safari 部分click事件不触发问题
103
+ * 修复部分文件下载不了问题
104
+ * 优化部分组件样式
105
+ ```
106
+
107
+ ### 1.0.79 and 1.0.792
108
+
109
+ ```text
110
+ * 修复部分手机播放获取不到时间问题
111
+ * 修改录音录制方式,使用recorder-core
112
+ * 优化文件下载方式,采用了blob、file-saver
113
+ * 移除lazy
114
+ ```
115
+
116
+ ### 1.0.93 ~ 1.0.798
117
+
118
+ ```text
119
+ * 阻止事件冒泡
120
+ ```
121
+
122
+ ### 1.0.8
123
+
124
+ ```text
125
+ * 防双击
126
+ ```
127
+
128
+
129
+ ### LICENSE
130
+
131
+ [MIT](LICENSE)
@@ -0,0 +1 @@
1
+ .el-button{padding:8px 24px}.el-button--text{border-color:transparent;color:#409eff;background:0 0;padding-left:0;padding-right:0}.el-button--text.is-plain{padding:8px 24px}.el-button--primary.is-plain,.el-button--primary.is-plain.is-disabled{background:#fff}.el-button--primary.is-plain:focus,.el-button--primary.is-plain:hover{background:#fff;border-color:#3b7cec;color:#3b7cec}.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover{background:#fff;border-color:#d4e5ff;color:#d4e5ff}.el-button--primary:focus,.el-button--primary:hover{background:#3b7cec;border-color:#3b7cec}.el-button--primary.is-disabled,.el-button--primary.is-disabled:active,.el-button--primary.is-disabled:focus,.el-button--primary.is-disabled:hover{color:#fff;background-color:#d4e5ff;border-color:#d4e5ff}.el-button--danger.is-disabled,.el-button--danger.is-disabled:active,.el-button--danger.is-disabled:focus,.el-button--danger.is-disabled:hover{color:#fff;background-color:#f9dbdd;border-color:#f9dbdd}
@@ -0,0 +1 @@
1
+ @charset "UTF-8";.yks-html--format,.yks-text-wrap{word-break:break-all;white-space:normal}*{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.yks-tc{text-align:center}.yks-tr{text-align:right}.yks-tl{text-align:left}.yks-text-ellipsis{text-overflow:ellipsis;white-space:nowrap!important;overflow:hidden}.yks-text-ellipsis span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.yks-text-clip{text-overflow:clip;white-space:nowrap;overflow:hidden}.yks-text-wrap{word-wrap:break-word}.yks-multi-ellipsis{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.yks-multi-2{-webkit-line-clamp:2}.yks-multi-3{-webkit-line-clamp:3}.yks-multi-4{-webkit-line-clamp:4}.yks-w_60{width:60px!important}.yks-w_80{width:80px!important}.yks-w_100{width:100px!important}.yks-w_120{width:120px!important}.yks-w_140{width:140px!important}.yks-w_160{width:160px!important}.yks-w_210{width:210px!important}.yks-w_270{width:270px!important}.yks-w_330{width:310px!important}.yks-flex{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.yks-flex.v-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.yks-flex.v-start{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.yks-flex.v-end{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.yks-flex.h-start{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.yks-flex.h-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.yks-flex.h-around{-ms-flex-pack:distribute;justify-content:space-around}.yks-flex.h-end{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.yks-flex.h-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.yks-flex.f-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.yks-flex .flex-1{-webkit-box-flex:1;-ms-flex:1;flex:1}.yks-ml10{margin-left:10px}.yks-mt10{margin-top:10px}.yks-mr10{margin-right:10px}.yks-mb10{margin-bottom:10px}.yks-mb20{margin-bottom:20px}.yks-mt20{margin-top:20px}.yks-fs-12{font-size:12px}.yks-primary{color:#3b7cec!important}.yks-success{color:#4de2b3!important}.yks-warning{color:#ffba00!important}.yks-info{color:#8998ac!important}.yks-danger{color:#f5222d!important}.yks-disabled{cursor:no-drop!important;opacity:.5!important}.el-dialog__title{font-weight:700}.yks-noselect{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.yks-html--format{word-wrap:break-word}.yks-html--format img{max-height:200px;width:auto;max-width:90%;-o-object-fit:cover;object-fit:cover}.yks-html--format table{border:1px solid #bbb;border-bottom:unset}.yks-html--format table td,.yks-html--format table th{border-left:1px solid #bbb;border-bottom:1px solid #bbb}.yks-html--format table td:first-child,.yks-html--format table th:first-child{border-left:unset}.yks-html--format div,.yks-html--format h1,.yks-html--format h2,.yks-html--format h3,.yks-html--format h4,.yks-html--format p,.yks-html--format span{padding:0;margin:0;min-height:20px;line-height:20px;text-indent:0;font-weight:400;word-wrap:break-word;word-break:break-all;white-space:normal}.yks-html--format input{width:24px;height:24px;margin:0 5px;padding:0;border-radius:4px;text-align:center;color:#2980ff;border:1px solid #dcdfe6;background-color:transparent}.tox-tinymce-inline{z-index:100!important}
@@ -0,0 +1 @@
1
+ .el-dialog__body{position:relative}.el-dialog__body .yks-contents{padding:30px 20px 0}
File without changes
@@ -0,0 +1 @@
1
+ .el-scrollbar__wrap.default-scrollbar__wrap{overflow-x:hidden;overflow-y:auto}.el-scrollbar__wrap.scrollbar__wrap-x{overflow-x:auto;overflow-y:hidden}.el-dialog__header{border-bottom:solid 1px #ebeef5}.el-dialog__body{padding:0 30px}.el-dialog__footer{border-top:solid 1px #ebeef5;padding:15px 20px}.el-tabs__nav-wrap::after{height:1px;background-color:#fff}.el-button--default.ks-shadow{width:78px;height:36px;background:#f7f7f7;background-image:linear-gradient(179deg,#f4f6f9 0,#fff 100%);-webkit-box-shadow:10px 10px 20px 0 #d1d9e6,-10px -10px 20px 0 #fff;box-shadow:10px 10px 20px 0 #d1d9e6,-10px -10px 20px 0 #fff;border:none}.ks-alert-danger,.ks-alert-success,.ks-alert-warning{border-radius:4px!important}.el-button--text.ks-shadow{color:#3a3b3f}.ks-alert-danger{background:#f5222d!important;border-color:#f5222d!important}.ks-alert-warning{background:#ffba00!important;border-color:#ffba00!important}.ks-alert-success{background:#4de2b3!important;border-color:#4de2b3!important}.el-message-box__header{padding:30px 30px 20px}.el-message-box__header .el-message-box__title span{font-size:20px!important;font-weight:700;color:#191919!important;letter-spacing:0!important}.el-message-box__headerbtn{top:30px;background:#f5f5f5;border-radius:50%;width:21px;height:21px}.el-message-box__content{padding:0 15px 0 30px;min-height:60px;font-size:14px;color:#191919;letter-spacing:0}.el-message-box{padding-bottom:20px}.ks-el-input .el-input__inner{background:#f7f7f7;background-image:linear-gradient(179deg,#f4f6f9 0,#fff 100%);border:1px solid #fff;-webkit-box-shadow:inset -6px -6px 10px 0 #fff,inset 6px 6px 10px 0 #d1d9e6;box-shadow:inset -6px -6px 10px 0 #fff,inset 6px 6px 10px 0 #d1d9e6;border-radius:4px}.ks-el-input .el-input__prefix i,.ks-el-input .el-input__suffix i{color:#0f5ccd!important}.ks-date-picker{background:#f7f7f7;background-image:linear-gradient(179deg,#f4f6f9 0,#fff 100%);border:1px solid #fff;-webkit-box-shadow:inset -6px -6px 10px 0 #fff,inset 6px 6px 10px 0 #d1d9e6;box-shadow:inset -6px -6px 10px 0 #fff,inset 6px 6px 10px 0 #d1d9e6;border-radius:4px}.ks-date-picker .el-range-input,.ks-date-picker.is-disabled .el-range-input{background:0 0}.ks-date-picker i{color:#0f5ccd!important}.el-popper.el-select-dropdown{max-width:400px!important}
@@ -0,0 +1 @@
1
+ .enlarge-dialog.mobile-enlarge--dialogs{height:100%!important;width:100%!important}.enlarge-dialog .el-dialog__header{display:none}.enlarge-dialog .el-dialog__body,.enlarge-dialog .el-dialog__body .yks-contents{padding:0}.enlarge-dialog .enlarge-dialog--video{position:absolute}.enlarge-dialog .el-icon-circle-close{position:absolute;right:5px;top:5px;color:#fff;z-index:99;font-size:17px!important;cursor:pointer}
@@ -0,0 +1 @@
1
+ @charset "UTF-8";@font-face{font-family:yks-icon;src:url(fonts/iconfont.woff) format("woff"),url(fonts/iconfont.ttf) format("truetype");font-weight:400;font-display:"auto";font-style:normal}[class*=yks-icon-],[class^=yks-icon-]{font-family:yks-icon,element-icons!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;vertical-align:baseline;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.yks-icon-camera:before{content:"\e036"}.yks-icon-download:before{content:"\e037"}.yks-icon-excel:before{content:"\e082"}.yks-icon-other:before{content:"\e083"}.yks-icon-pdf:before{content:"\e084"}.yks-icon-ppt:before{content:"\e085"}.yks-icon-word:before{content:"\e086"}.yks-icon-play:before{content:"\e087"}.yks-icon-microphone:before{content:"\e088"}.yks-icon-finish:before{content:"\e089"}.yks-icon-puase:before{content:"\e08a"}