yks-element 1.0.322 → 1.0.792
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 -8
- package/lib/theme-chalk/buttons.css +1 -0
- package/lib/theme-chalk/common.css +1 -0
- package/lib/theme-chalk/dialogs.css +1 -0
- package/{packages/Topic/src/indefiniteChoice.vue → lib/theme-chalk/element-variables.css} +0 -0
- package/lib/theme-chalk/elements.css +1 -0
- package/lib/theme-chalk/enlarge.css +1 -0
- package/{packages/styles → lib/theme-chalk}/fonts/element-icons.ttf +0 -0
- package/{packages/styles → lib/theme-chalk}/fonts/element-icons.woff +0 -0
- package/{packages/styles → lib/theme-chalk}/fonts/iconfont.ttf +0 -0
- package/lib/theme-chalk/fonts/iconfont.woff +0 -0
- package/lib/theme-chalk/icons.css +1 -0
- package/lib/theme-chalk/index.css +1 -0
- package/lib/theme-chalk/multimedia.css +1 -0
- package/lib/theme-chalk/paginations.css +1 -0
- package/lib/theme-chalk/scrollbars.css +1 -0
- package/lib/theme-chalk/selects.css +1 -0
- package/lib/theme-chalk/tables.css +1 -0
- package/lib/theme-chalk/tinymce.css +1 -0
- package/lib/theme-chalk/uploadfile.css +1 -0
- package/lib/theme-chalk/video.css +1 -0
- package/{packages/Topic/src/matching.vue → lib/theme-chalk/videoPlayer.css} +0 -0
- package/lib/yks.js +1 -0
- package/package.json +42 -12
- package/lib/fonts/element-icons.535877f5.woff +0 -0
- package/lib/fonts/element-icons.732389de.ttf +0 -0
- package/lib/fonts/iconfont.19124b0d.ttf +0 -0
- package/lib/fonts/iconfont.3ae3dd4e.woff +0 -0
- package/lib/yks.css +0 -1
- package/packages/Button/index.js +0 -8
- package/packages/Button/src/index.vue +0 -78
- package/packages/Dialog/index.js +0 -8
- package/packages/Dialog/src/index.vue +0 -103
- package/packages/Multimedia/index.js +0 -8
- package/packages/Multimedia/src/index.vue +0 -179
- package/packages/Pagination/index.js +0 -8
- package/packages/Pagination/src/index.vue +0 -149
- package/packages/Scrollbar/index.js +0 -8
- package/packages/Scrollbar/src/index.vue +0 -27
- package/packages/Select/index.js +0 -8
- package/packages/Select/src/index.vue +0 -350
- package/packages/Select/src/option.vue +0 -29
- package/packages/Table/index.js +0 -8
- package/packages/Table/src/index.vue +0 -141
- package/packages/Tinymce/index.js +0 -8
- package/packages/Tinymce/src/config.js +0 -25
- package/packages/Tinymce/src/index.vue +0 -500
- package/packages/Topic/index.js +0 -23
- package/packages/Topic/src/attachment.vue +0 -125
- package/packages/Topic/src/audioFrequency.vue +0 -127
- package/packages/Topic/src/clozeFillInBlanks.vue +0 -267
- package/packages/Topic/src/compound.vue +0 -221
- package/packages/Topic/src/config.js +0 -132
- package/packages/Topic/src/fillInBlanks.vue +0 -272
- package/packages/Topic/src/judgment.vue +0 -140
- package/packages/Topic/src/multiple.vue +0 -193
- package/packages/Topic/src/pictureAnswer.vue +0 -127
- package/packages/Topic/src/shortAnswer.vue +0 -136
- package/packages/Topic/src/single.vue +0 -194
- package/packages/UploadFile/index.js +0 -8
- package/packages/UploadFile/src/index.vue +0 -390
- package/packages/Video/index.js +0 -8
- package/packages/Video/src/index.vue +0 -351
- package/packages/assets/mixins/topic.js +0 -137
- package/packages/assets/utils/index.js +0 -83
- package/packages/assets/utils/topic.js +0 -132
- package/packages/icon/default/icons.js +0 -182
- package/packages/icon/default/icons.min.js +0 -1
- package/packages/icon/default/index.js +0 -7
- package/packages/icon/ks-pdf.png +0 -0
- package/packages/icon/ks-ppt.png +0 -0
- package/packages/icon/ks-word.png +0 -0
- package/packages/icon/ks-xslx.png +0 -0
- package/packages/icon/music-bg.png +0 -0
- package/packages/icon/video-bg.png +0 -0
- package/packages/index.js +0 -223
- package/packages/option/index.js +0 -6
- package/packages/styles/_mixin.scss +0 -93
- package/packages/styles/_variables.scss +0 -40
- package/packages/styles/common.scss +0 -200
- package/packages/styles/element-ui.scss +0 -135
- package/packages/styles/element-variables.scss +0 -794
- package/packages/styles/fonts/iconfont.woff +0 -0
- package/packages/styles/icon.scss +0 -69
- package/packages/styles/index.scss +0 -11
- package/packages/styles/select.scss +0 -98
- package/packages/styles/table.scss +0 -45
- package/packages/styles/topic.scss +0 -26
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
# yks公共库
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
## Quick Start
|
|
5
5
|
|
|
6
6
|
``` javascript
|
|
7
7
|
import YksElement from 'yks-element'
|
|
8
|
-
import 'yks-element/lib/
|
|
8
|
+
import '~yks-element/lib/theme-chalk/index.css';
|
|
9
9
|
|
|
10
10
|
Vue.use(YksElement)
|
|
11
11
|
|
|
@@ -18,10 +18,6 @@ import {
|
|
|
18
18
|
Vue.component(Button.name, Button)
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
### LICENSE
|
|
22
|
-
|
|
23
|
-
[MIT](LICENSE)
|
|
24
|
-
|
|
25
21
|
### 发布npm包
|
|
26
22
|
|
|
27
23
|
```shell
|
|
@@ -49,4 +45,74 @@ npm unpublish yks-element@0.0.1 --force
|
|
|
49
45
|
|
|
50
46
|
### icon 合集
|
|
51
47
|
|
|
52
|
-
|
|
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
|
+
### LICENSE
|
|
117
|
+
|
|
118
|
+
[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;-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}
|
|
File without changes
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
@@ -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"}
|