yks-element 1.0.320 → 1.0.321

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yks-element",
3
- "version": "1.0.320",
3
+ "version": "1.0.321",
4
4
  "description": "yks公共库",
5
5
  "private": false,
6
6
  "keywords": [
@@ -1,9 +1,23 @@
1
- export { default as Single } from './src/single'
2
- export { default as Multiple } from './src/multiple'
3
- export { default as Judgment } from './src/judgment'
4
- export { default as FillInBlanks } from './src/fillInBlanks'
5
- export { default as ShortAnswer } from './src/shortAnswer'
6
- export { default as PictureAnswer } from './src/pictureAnswer'
7
- export { default as Compound } from './src/compound'
8
- export { default as AudioFrequency } from './src/audioFrequency'
9
- export { default as Attachment } from './src/attachment'
1
+ import Single from './src/single'
2
+ import Multiple from './src/multiple'
3
+ import Judgment from './src/judgment'
4
+ import FillInBlanks from './src/fillInBlanks'
5
+ import ShortAnswer from './src/shortAnswer'
6
+ import PictureAnswer from './src/pictureAnswer'
7
+ import Compound from './src/compound'
8
+ import AudioFrequency from './src/audioFrequency'
9
+ import Attachment from './src/attachment'
10
+
11
+ const components = [
12
+ Single,
13
+ Multiple,
14
+ Judgment,
15
+ FillInBlanks,
16
+ ShortAnswer,
17
+ PictureAnswer,
18
+ Compound,
19
+ AudioFrequency,
20
+ Attachment
21
+ ]
22
+
23
+ export default components
@@ -55,7 +55,7 @@ import TopicMixins from '../../assets/mixins/topic'
55
55
  import { stemItemType, shortItemType, analysisItemType } from './config'
56
56
 
57
57
  export default {
58
- name: 'Attachment',
58
+ name: 'YksAttachment',
59
59
  components: { YksTinymce },
60
60
  mixins: [TopicMixins],
61
61
  methods: {
@@ -56,7 +56,7 @@ import TopicMixins from '../../assets/mixins/topic'
56
56
  import { stemItemType, shortItemType, analysisItemType } from './config'
57
57
 
58
58
  export default {
59
- name: 'AudioFrequency',
59
+ name: 'YksAudiofrequency',
60
60
  components: { YksTinymce },
61
61
  mixins: [TopicMixins],
62
62
  methods: {
@@ -110,7 +110,7 @@ import TopicMixins from '../../assets/mixins/topic'
110
110
  import { stemItemType, optionItemType, analysisItemType } from './config'
111
111
 
112
112
  export default {
113
- name: 'ClozeFillInBlanks',
113
+ name: 'YksClozefillinblanks',
114
114
  components: { YksTinymce },
115
115
  mixins: [TopicMixins],
116
116
  methods: {
@@ -83,7 +83,7 @@ import { analysisItemType, stemItemType, itemDataLists } from './config'
83
83
  import { Single, Multiple, Judgment, ShortAnswer } from '../index'
84
84
 
85
85
  export default {
86
- name: 'Compound',
86
+ name: 'YksCompound',
87
87
  components: { YksTinymce, Single, Multiple, Judgment, ShortAnswer },
88
88
  mixins: [TopicMixins],
89
89
  methods: {
@@ -116,7 +116,7 @@ import TopicMixins from '../../assets/mixins/topic'
116
116
  import { stemItemType, optionItemType, analysisItemType } from './config'
117
117
 
118
118
  export default {
119
- name: 'FillInBlanks',
119
+ name: 'YksFillinblanks',
120
120
  components: { YksTinymce },
121
121
  mixins: [TopicMixins],
122
122
  methods: {
@@ -49,7 +49,7 @@ import TopicMixins from '../../assets/mixins/topic'
49
49
  import { letter, stemItemType, analysisItemType } from './config'
50
50
 
51
51
  export default {
52
- name: 'Judgment',
52
+ name: 'YksJudgment',
53
53
  components: { YksTinymce },
54
54
  mixins: [TopicMixins],
55
55
  methods: {
@@ -81,7 +81,7 @@ import TopicMixins from '../../assets/mixins/topic'
81
81
  import { letter, stemItemType, optionItemType, analysisItemType } from './config'
82
82
 
83
83
  export default {
84
- name: 'Multiple',
84
+ name: 'YksMultiple',
85
85
  components: { YksTinymce },
86
86
  mixins: [TopicMixins],
87
87
  methods: {
@@ -56,7 +56,7 @@ import TopicMixins from '../../assets/mixins/topic'
56
56
  import { stemItemType, shortItemType, analysisItemType } from './config'
57
57
 
58
58
  export default {
59
- name: 'PictureAnswer',
59
+ name: 'YksPictureanswer',
60
60
  components: { YksTinymce },
61
61
  mixins: [TopicMixins],
62
62
  methods: {
@@ -66,7 +66,7 @@ import TopicMixins from '../../assets/mixins/topic'
66
66
  import { stemItemType, shortItemType, analysisItemType } from './config'
67
67
 
68
68
  export default {
69
- name: 'ShortAnswer',
69
+ name: 'YksShortanswer',
70
70
  components: { YksTinymce },
71
71
  mixins: [TopicMixins],
72
72
  methods: {
@@ -81,7 +81,7 @@ import TopicMixins from '../../assets/mixins/topic'
81
81
  import { letter, stemItemType, optionItemType, analysisItemType } from './config'
82
82
 
83
83
  export default {
84
- name: 'Single',
84
+ name: 'YksSingle',
85
85
  components: { YksTinymce },
86
86
  mixins: [TopicMixins],
87
87
  methods: {
package/packages/index.js CHANGED
@@ -92,19 +92,8 @@ import YksScrollbar from './Scrollbar'
92
92
  import YksTable from './Table'
93
93
  import YksUploadfile from './UploadFile'
94
94
  import YksVideo from './Video'
95
- import YksOption from './option/index'
96
-
97
- import {
98
- Single,
99
- Multiple,
100
- Judgment,
101
- FillInBlanks,
102
- ShortAnswer,
103
- PictureAnswer,
104
- Compound,
105
- AudioFrequency,
106
- Attachment
107
- } from './Topic/index'
95
+ import YksOption from './option'
96
+ import YksTopic from './Topic'
108
97
 
109
98
  import locale from 'element-ui/src/locale'
110
99
  const components = [
@@ -118,7 +107,8 @@ const components = [
118
107
  YksTable,
119
108
  YksUploadfile,
120
109
  YksOption,
121
- YksVideo
110
+ YksVideo,
111
+ ...YksTopic
122
112
  ]
123
113
  const install = function (Vue, opts = {}) {
124
114
  locale.use(opts.locale)
@@ -148,19 +138,10 @@ if (typeof window !== 'undefined' && window.Vue) {
148
138
  install(window.Vue)
149
139
  }
150
140
  export default {
151
- version: '1.0.320',
141
+ version: '1.0.321',
152
142
  locale: locale.use,
153
143
  i18n: locale.i18n,
154
144
  install,
155
- Single,
156
- Multiple,
157
- Judgment,
158
- FillInBlanks,
159
- ShortAnswer,
160
- PictureAnswer,
161
- Compound,
162
- AudioFrequency,
163
- Attachment,
164
145
  /* element-ui */
165
146
  Pagination,
166
147
  Dialog,