@idooel/components 0.0.2-beta.3 → 0.0.2-beta.30
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 +98 -98
- package/dist/@idooel/components.esm.js +3622 -1592
- package/dist/@idooel/components.umd.js +3676 -1647
- package/jsconfig.json +7 -7
- package/package.json +64 -50
- package/packages/alert/index.js +4 -4
- package/packages/alert/src/index.vue +45 -45
- package/packages/batch-export/index.js +4 -4
- package/packages/batch-export/src/index.vue +104 -104
- package/packages/business-components/modal-fsm/index.js +4 -4
- package/packages/business-components/modal-fsm/src/index.vue +163 -163
- package/packages/business-components/modal-import/index.js +4 -4
- package/packages/business-components/modal-import/src/index.vue +222 -139
- package/packages/business-components/modal-timeline/index.js +4 -4
- package/packages/business-components/modal-timeline/src/index.vue +77 -77
- package/packages/business-components/tabs-sub-center/index.js +4 -4
- package/packages/business-components/tabs-sub-center/src/index.vue +116 -116
- package/packages/button/index.js +4 -4
- package/packages/button/src/index.vue +65 -65
- package/packages/checkbox/index.js +4 -4
- package/packages/checkbox/src/index.vue +52 -52
- package/packages/composite-components/button-group/index.js +4 -4
- package/packages/composite-components/button-group/src/index.vue +151 -151
- package/packages/composite-components/form-attachment/src/index.vue +14 -14
- package/packages/composite-components/form-img-crop/index.js +4 -4
- package/packages/composite-components/form-img-crop/src/index.vue +131 -131
- package/packages/composite-components/modal-confirm/index.js +4 -4
- package/packages/composite-components/modal-confirm/src/index.vue +103 -103
- package/packages/composite-components/modal-form/index.js +4 -4
- package/packages/composite-components/modal-form/src/index.vue +230 -230
- package/packages/composite-components/modal-img-crop/index.js +4 -4
- package/packages/composite-components/modal-img-crop/src/index.vue +298 -298
- package/packages/composite-components/modal-table/index.js +4 -4
- package/packages/composite-components/modal-table/src/index.vue +155 -155
- package/packages/composite-components/modal-tree/index.js +4 -4
- package/packages/composite-components/modal-tree/src/index.vue +75 -75
- package/packages/composite-components/search-area/index.js +4 -4
- package/packages/composite-components/search-area/src/index.vue +239 -237
- package/packages/composite-components/search-area/src/label.vue +35 -35
- package/packages/composite-components/select-entity-modal-table/index.js +4 -4
- package/packages/composite-components/select-entity-modal-table/src/index.vue +171 -171
- package/packages/date/index.js +4 -4
- package/packages/date/src/index.vue +112 -112
- package/packages/date-range/index.js +4 -4
- package/packages/date-range/src/index.vue +47 -47
- package/packages/form/index.js +4 -4
- package/packages/form/src/index.vue +393 -319
- package/packages/icon/index.js +4 -4
- package/packages/icon/src/index.vue +31 -31
- package/packages/index.js +159 -153
- package/packages/input/index.js +4 -4
- package/packages/input/src/index.vue +35 -35
- package/packages/input-number/index.js +4 -4
- package/packages/input-number/src/index.vue +23 -23
- package/packages/loading/index.js +4 -4
- package/packages/loading/src/index.vue +36 -36
- package/packages/meta/provider.js +4 -0
- package/packages/modal/index.js +4 -4
- package/packages/modal/src/index.vue +184 -184
- package/packages/models/form-group-model/index.js +4 -4
- package/packages/models/form-group-model/src/index.vue +271 -273
- package/packages/models/form-model/index.js +4 -4
- package/packages/models/form-model/src/index.vue +236 -232
- package/packages/models/step-model/index.js +4 -4
- package/packages/models/step-model/src/index.vue +224 -224
- package/packages/models/tree-table-model/README.md +0 -0
- package/packages/models/tree-table-model/index.js +4 -4
- package/packages/models/tree-table-model/src/index.vue +964 -689
- package/packages/pagination/index.js +5 -0
- package/packages/pagination/src/index.vue +372 -0
- package/packages/radio/index.js +4 -4
- package/packages/radio/src/index.vue +56 -56
- package/packages/select/index.js +4 -4
- package/packages/select/src/index.vue +113 -105
- package/packages/select-entity/index.js +4 -4
- package/packages/select-entity/src/index.vue +119 -119
- package/packages/table/index.js +4 -4
- package/packages/table/src/action.vue +176 -172
- package/packages/table/src/index.vue +605 -319
- package/packages/tabs/index.js +4 -4
- package/packages/tabs/src/index.vue +55 -55
- package/packages/text/index.js +4 -4
- package/packages/text/src/index.vue +47 -47
- package/packages/text-editor/index.js +4 -4
- package/packages/text-editor/src/index.vue +72 -72
- package/packages/textarea/index.js +4 -4
- package/packages/textarea/src/index.vue +57 -57
- package/packages/theme/form.scss +21 -21
- package/packages/theme/index.scss +43 -43
- package/packages/theme/overrid.scss +7 -7
- package/packages/theme/styleClass.scss +2 -2
- package/packages/theme/variables.scss +55 -55
- package/packages/timeline/index.js +4 -4
- package/packages/timeline/src/index.vue +257 -257
- package/packages/tpl/index.js +4 -4
- package/packages/tpl/src/index.vue +55 -55
- package/packages/tree/index.js +4 -4
- package/packages/tree/src/TreeNode.vue +29 -29
- package/packages/tree/src/index.vue +101 -101
- package/packages/tree-select/index.js +4 -4
- package/packages/tree-select/src/index.vue +142 -142
- package/packages/upload/index.js +4 -4
- package/packages/upload/src/index.vue +998 -494
- package/packages/utils/README.md +172 -0
- package/packages/utils/index.js +66 -62
- package/packages/utils/runtime-context/dataPoolAPI.js +501 -0
- package/packages/utils/runtime-context/globalDataPool.js +279 -0
- package/packages/utils/runtime-context/index.js +76 -0
- package/packages/utils/runtime-context/modelSchema.js +174 -0
- package/scripts/rollup.config.js +42 -42
- package/scripts/rollup.esm.config.js +11 -11
- package/scripts/rollup.umd.config.js +17 -14
- package/vitest.config.js +17 -0
package/packages/tabs/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import EleTabs from './src/index.vue'
|
|
2
|
-
|
|
3
|
-
EleTabs.install = Vue => Vue.component(EleTabs.name, EleTabs)
|
|
4
|
-
|
|
1
|
+
import EleTabs from './src/index.vue'
|
|
2
|
+
|
|
3
|
+
EleTabs.install = Vue => Vue.component(EleTabs.name, EleTabs)
|
|
4
|
+
|
|
5
5
|
export default EleTabs
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<a-tabs :default-active-key="activeKey" :tabBarGutter="tabBarGutter" :tabBarStyle="tabBarStyle" @change="changeHandle">
|
|
4
|
-
<a-tab-pane v-for="(item, index) in tabsList" :key="index" :tab="item.tabName" :disabled="item.disabled">
|
|
5
|
-
<template #tab>
|
|
6
|
-
<component v-if="item.renderHeader" :is="item.renderHeader" ></component>
|
|
7
|
-
<span v-else>{{ item.tabName }}</span>
|
|
8
|
-
</template>
|
|
9
|
-
<component :is="item.content"></component>
|
|
10
|
-
</a-tab-pane>
|
|
11
|
-
</a-tabs>
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
export default {
|
|
17
|
-
name: 'ele-tabs',
|
|
18
|
-
components: {},
|
|
19
|
-
model: {
|
|
20
|
-
prop: 'value',
|
|
21
|
-
event: 'change'
|
|
22
|
-
},
|
|
23
|
-
props: {
|
|
24
|
-
activeKey: {
|
|
25
|
-
type: Number,
|
|
26
|
-
default: 0
|
|
27
|
-
},
|
|
28
|
-
tabsList: {
|
|
29
|
-
type: Array,
|
|
30
|
-
default () {
|
|
31
|
-
return []
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
tabBarStyle: {
|
|
35
|
-
type: Object,
|
|
36
|
-
default () {
|
|
37
|
-
return {}
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
tabBarGutter: {
|
|
41
|
-
type: Number
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
methods: {
|
|
45
|
-
changeHandle (key) {
|
|
46
|
-
this.$emit('changeActiveKey', key)
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
</script>
|
|
51
|
-
|
|
52
|
-
<style lang="scss" scoped>
|
|
53
|
-
::v-deep .ant-tabs-nav-scroll {
|
|
54
|
-
float: left !important;
|
|
55
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<a-tabs :default-active-key="activeKey" :tabBarGutter="tabBarGutter" :tabBarStyle="tabBarStyle" @change="changeHandle">
|
|
4
|
+
<a-tab-pane v-for="(item, index) in tabsList" :key="index" :tab="item.tabName" :disabled="item.disabled">
|
|
5
|
+
<template #tab>
|
|
6
|
+
<component v-if="item.renderHeader" :is="item.renderHeader" ></component>
|
|
7
|
+
<span v-else>{{ item.tabName }}</span>
|
|
8
|
+
</template>
|
|
9
|
+
<component :is="item.content"></component>
|
|
10
|
+
</a-tab-pane>
|
|
11
|
+
</a-tabs>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
export default {
|
|
17
|
+
name: 'ele-tabs',
|
|
18
|
+
components: {},
|
|
19
|
+
model: {
|
|
20
|
+
prop: 'value',
|
|
21
|
+
event: 'change'
|
|
22
|
+
},
|
|
23
|
+
props: {
|
|
24
|
+
activeKey: {
|
|
25
|
+
type: Number,
|
|
26
|
+
default: 0
|
|
27
|
+
},
|
|
28
|
+
tabsList: {
|
|
29
|
+
type: Array,
|
|
30
|
+
default () {
|
|
31
|
+
return []
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
tabBarStyle: {
|
|
35
|
+
type: Object,
|
|
36
|
+
default () {
|
|
37
|
+
return {}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
tabBarGutter: {
|
|
41
|
+
type: Number
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
changeHandle (key) {
|
|
46
|
+
this.$emit('changeActiveKey', key)
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
</script>
|
|
51
|
+
|
|
52
|
+
<style lang="scss" scoped>
|
|
53
|
+
::v-deep .ant-tabs-nav-scroll {
|
|
54
|
+
float: left !important;
|
|
55
|
+
}
|
|
56
56
|
</style>
|
package/packages/text/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import EleText from './src/index.vue'
|
|
2
|
-
|
|
3
|
-
EleText.install = Vue => Vue.component(EleText.name, EleText)
|
|
4
|
-
|
|
1
|
+
import EleText from './src/index.vue'
|
|
2
|
+
|
|
3
|
+
EleText.install = Vue => Vue.component(EleText.name, EleText)
|
|
4
|
+
|
|
5
5
|
export default EleText
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="['ele-text__wrapper', type]">
|
|
3
|
-
<ele-icon theme="filled" :type="icon"></ele-icon>
|
|
4
|
-
<span class="message">{{ message }}</span>
|
|
5
|
-
</div>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
<script>
|
|
9
|
-
export default {
|
|
10
|
-
name: 'ele-text',
|
|
11
|
-
props: {
|
|
12
|
-
type: {
|
|
13
|
-
String,
|
|
14
|
-
// default success error warning info
|
|
15
|
-
default: 'default'
|
|
16
|
-
},
|
|
17
|
-
message: {
|
|
18
|
-
type: String
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
computed: {
|
|
22
|
-
icon() {
|
|
23
|
-
return 'info-circle'
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
}
|
|
27
|
-
</script>
|
|
28
|
-
|
|
29
|
-
<style lang="scss" scoped>
|
|
30
|
-
//
|
|
31
|
-
.ele-text__wrapper {
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-direction: row;
|
|
34
|
-
align-items: center;
|
|
35
|
-
&.default {
|
|
36
|
-
.anticon, .message {
|
|
37
|
-
color: var(--idoole-black-064);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
.anticon {
|
|
41
|
-
font-size: 16px;
|
|
42
|
-
}
|
|
43
|
-
.message {
|
|
44
|
-
font-size: 14px;
|
|
45
|
-
margin-left: 4px;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="['ele-text__wrapper', type]">
|
|
3
|
+
<ele-icon theme="filled" :type="icon"></ele-icon>
|
|
4
|
+
<span class="message">{{ message }}</span>
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
export default {
|
|
10
|
+
name: 'ele-text',
|
|
11
|
+
props: {
|
|
12
|
+
type: {
|
|
13
|
+
String,
|
|
14
|
+
// default success error warning info
|
|
15
|
+
default: 'default'
|
|
16
|
+
},
|
|
17
|
+
message: {
|
|
18
|
+
type: String
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
computed: {
|
|
22
|
+
icon() {
|
|
23
|
+
return 'info-circle'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<style lang="scss" scoped>
|
|
30
|
+
//
|
|
31
|
+
.ele-text__wrapper {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: row;
|
|
34
|
+
align-items: center;
|
|
35
|
+
&.default {
|
|
36
|
+
.anticon, .message {
|
|
37
|
+
color: var(--idoole-black-064);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
.anticon {
|
|
41
|
+
font-size: 16px;
|
|
42
|
+
}
|
|
43
|
+
.message {
|
|
44
|
+
font-size: 14px;
|
|
45
|
+
margin-left: 4px;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
48
|
</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import EleTextEditor from './src/index.vue'
|
|
2
|
-
|
|
3
|
-
EleTextEditor.install = Vue => Vue.component(EleTextEditor.name, EleTextEditor)
|
|
4
|
-
|
|
1
|
+
import EleTextEditor from './src/index.vue'
|
|
2
|
+
|
|
3
|
+
EleTextEditor.install = Vue => Vue.component(EleTextEditor.name, EleTextEditor)
|
|
4
|
+
|
|
5
5
|
export default EleTextEditor
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="ele-editor__wrapper" :style="{width: editorWidth, height: editorHeight}">
|
|
3
|
-
<Vueditor :ref="getVueditor" :style="{width: editorWidth, height: editorHeight}"></Vueditor>
|
|
4
|
-
<div class="ele-editor__bottom">
|
|
5
|
-
<span>{{ innerContent.length }}字</span>
|
|
6
|
-
</div>
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
import { v4 as uuidv4 } from 'uuid'
|
|
12
|
-
export default {
|
|
13
|
-
name: 'ele-text-editor',
|
|
14
|
-
props: {
|
|
15
|
-
editorWidth: {
|
|
16
|
-
type: String
|
|
17
|
-
},
|
|
18
|
-
editorHeight: {
|
|
19
|
-
type: String
|
|
20
|
-
},
|
|
21
|
-
maxLength: {
|
|
22
|
-
type: Number,
|
|
23
|
-
default () {
|
|
24
|
-
return 10
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
data() {
|
|
29
|
-
return {
|
|
30
|
-
editorConfig: {},
|
|
31
|
-
textEditorRef: null
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
computed: {
|
|
35
|
-
innerContent () {
|
|
36
|
-
let content = this.textEditorRef ? this.textEditorRef.getContent() : ''
|
|
37
|
-
if (this.textEditorRef && content.length > this.maxLength) {
|
|
38
|
-
content = content.substring(0, this.maxLength)
|
|
39
|
-
this.$nextTick(() => {
|
|
40
|
-
this.textEditorRef.setContent(content)
|
|
41
|
-
})
|
|
42
|
-
}
|
|
43
|
-
this.$emit('input', content)
|
|
44
|
-
return content
|
|
45
|
-
},
|
|
46
|
-
getVueditor () {
|
|
47
|
-
return uuidv4()
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
watch: {},
|
|
51
|
-
methods: {},
|
|
52
|
-
mounted () {
|
|
53
|
-
this.textEditorRef = this.$refs[this.getVueditor]
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
</script>
|
|
57
|
-
|
|
58
|
-
<style lang="scss" scoped>
|
|
59
|
-
.ele-editor__bottom {
|
|
60
|
-
height: 40px;
|
|
61
|
-
padding: 8px 20px 8px 8px;
|
|
62
|
-
border: 1px solid var(--idooel-form-title-border-color);
|
|
63
|
-
border-top: 0px;
|
|
64
|
-
span {
|
|
65
|
-
color: var(--idoole-black-088);
|
|
66
|
-
text-align: right;
|
|
67
|
-
font-size: 12px;
|
|
68
|
-
line-height: 20px;
|
|
69
|
-
width: 100%;
|
|
70
|
-
display: inline-block;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<div class="ele-editor__wrapper" :style="{width: editorWidth, height: editorHeight}">
|
|
3
|
+
<Vueditor :ref="getVueditor" :style="{width: editorWidth, height: editorHeight}"></Vueditor>
|
|
4
|
+
<div class="ele-editor__bottom">
|
|
5
|
+
<span>{{ innerContent.length }}字</span>
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
import { v4 as uuidv4 } from 'uuid'
|
|
12
|
+
export default {
|
|
13
|
+
name: 'ele-text-editor',
|
|
14
|
+
props: {
|
|
15
|
+
editorWidth: {
|
|
16
|
+
type: String
|
|
17
|
+
},
|
|
18
|
+
editorHeight: {
|
|
19
|
+
type: String
|
|
20
|
+
},
|
|
21
|
+
maxLength: {
|
|
22
|
+
type: Number,
|
|
23
|
+
default () {
|
|
24
|
+
return 10
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
data() {
|
|
29
|
+
return {
|
|
30
|
+
editorConfig: {},
|
|
31
|
+
textEditorRef: null
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
computed: {
|
|
35
|
+
innerContent () {
|
|
36
|
+
let content = this.textEditorRef ? this.textEditorRef.getContent() : ''
|
|
37
|
+
if (this.textEditorRef && content.length > this.maxLength) {
|
|
38
|
+
content = content.substring(0, this.maxLength)
|
|
39
|
+
this.$nextTick(() => {
|
|
40
|
+
this.textEditorRef.setContent(content)
|
|
41
|
+
})
|
|
42
|
+
}
|
|
43
|
+
this.$emit('input', content)
|
|
44
|
+
return content
|
|
45
|
+
},
|
|
46
|
+
getVueditor () {
|
|
47
|
+
return uuidv4()
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
watch: {},
|
|
51
|
+
methods: {},
|
|
52
|
+
mounted () {
|
|
53
|
+
this.textEditorRef = this.$refs[this.getVueditor]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
</script>
|
|
57
|
+
|
|
58
|
+
<style lang="scss" scoped>
|
|
59
|
+
.ele-editor__bottom {
|
|
60
|
+
height: 40px;
|
|
61
|
+
padding: 8px 20px 8px 8px;
|
|
62
|
+
border: 1px solid var(--idooel-form-title-border-color);
|
|
63
|
+
border-top: 0px;
|
|
64
|
+
span {
|
|
65
|
+
color: var(--idoole-black-088);
|
|
66
|
+
text-align: right;
|
|
67
|
+
font-size: 12px;
|
|
68
|
+
line-height: 20px;
|
|
69
|
+
width: 100%;
|
|
70
|
+
display: inline-block;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
73
|
</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import EleTextarea from './src/index.vue'
|
|
2
|
-
|
|
3
|
-
EleTextarea.install = Vue => Vue.component(EleTextarea.name, EleTextarea)
|
|
4
|
-
|
|
1
|
+
import EleTextarea from './src/index.vue'
|
|
2
|
+
|
|
3
|
+
EleTextarea.install = Vue => Vue.component(EleTextarea.name, EleTextarea)
|
|
4
|
+
|
|
5
5
|
export default EleTextarea
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<a-textarea
|
|
3
|
-
:value="value"
|
|
4
|
-
:disabled="disabled"
|
|
5
|
-
:auto-size="autosize"
|
|
6
|
-
:max-length="maxLength"
|
|
7
|
-
:placeholder="placeholder"
|
|
8
|
-
:allow-clear="allowClear"
|
|
9
|
-
@change="onChange">
|
|
10
|
-
</a-textarea>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script>
|
|
14
|
-
export default {
|
|
15
|
-
name: 'ele-textarea',
|
|
16
|
-
model: {
|
|
17
|
-
prop: 'value',
|
|
18
|
-
event: 'change'
|
|
19
|
-
},
|
|
20
|
-
props: {
|
|
21
|
-
maxLength: {
|
|
22
|
-
type: Number
|
|
23
|
-
},
|
|
24
|
-
placeholder: {
|
|
25
|
-
type: String
|
|
26
|
-
},
|
|
27
|
-
allowClear: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: false
|
|
30
|
-
},
|
|
31
|
-
autosize: {
|
|
32
|
-
type: [Boolean, Object],
|
|
33
|
-
default: () => ({
|
|
34
|
-
minRows: 4,
|
|
35
|
-
maxRows: 4
|
|
36
|
-
})
|
|
37
|
-
},
|
|
38
|
-
value: {
|
|
39
|
-
type: String
|
|
40
|
-
},
|
|
41
|
-
disabled: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: false
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
methods: {
|
|
47
|
-
onChange (e) {
|
|
48
|
-
const value = e.target.value
|
|
49
|
-
this.$emit('change', value)
|
|
50
|
-
this.$emit('input', value)
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
</script>
|
|
55
|
-
|
|
56
|
-
<style scoped>
|
|
57
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<a-textarea
|
|
3
|
+
:value="value"
|
|
4
|
+
:disabled="disabled"
|
|
5
|
+
:auto-size="autosize"
|
|
6
|
+
:max-length="maxLength"
|
|
7
|
+
:placeholder="placeholder"
|
|
8
|
+
:allow-clear="allowClear"
|
|
9
|
+
@change="onChange">
|
|
10
|
+
</a-textarea>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
export default {
|
|
15
|
+
name: 'ele-textarea',
|
|
16
|
+
model: {
|
|
17
|
+
prop: 'value',
|
|
18
|
+
event: 'change'
|
|
19
|
+
},
|
|
20
|
+
props: {
|
|
21
|
+
maxLength: {
|
|
22
|
+
type: Number
|
|
23
|
+
},
|
|
24
|
+
placeholder: {
|
|
25
|
+
type: String
|
|
26
|
+
},
|
|
27
|
+
allowClear: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: false
|
|
30
|
+
},
|
|
31
|
+
autosize: {
|
|
32
|
+
type: [Boolean, Object],
|
|
33
|
+
default: () => ({
|
|
34
|
+
minRows: 4,
|
|
35
|
+
maxRows: 4
|
|
36
|
+
})
|
|
37
|
+
},
|
|
38
|
+
value: {
|
|
39
|
+
type: String
|
|
40
|
+
},
|
|
41
|
+
disabled: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: false
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
methods: {
|
|
47
|
+
onChange (e) {
|
|
48
|
+
const value = e.target.value
|
|
49
|
+
this.$emit('change', value)
|
|
50
|
+
this.$emit('input', value)
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
</script>
|
|
55
|
+
|
|
56
|
+
<style scoped>
|
|
57
|
+
|
|
58
58
|
</style>
|
package/packages/theme/form.scss
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
.has-error {
|
|
2
|
-
.ele-upload__wrapper {
|
|
3
|
-
.ele-upload__inner {
|
|
4
|
-
border-color: $error-06;
|
|
5
|
-
.ele-upload__area {
|
|
6
|
-
.ele-upload__area--icon {
|
|
7
|
-
.anticon-cloud-upload {
|
|
8
|
-
color: $error-06;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
.ele-upload__area--text {
|
|
12
|
-
.ele-upload__message {
|
|
13
|
-
color: $error-06;
|
|
14
|
-
}
|
|
15
|
-
.ele-upload__ext {
|
|
16
|
-
color: $error-03;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
1
|
+
.has-error {
|
|
2
|
+
.ele-upload__wrapper {
|
|
3
|
+
.ele-upload__inner {
|
|
4
|
+
border-color: $error-06;
|
|
5
|
+
.ele-upload__area {
|
|
6
|
+
.ele-upload__area--icon {
|
|
7
|
+
.anticon-cloud-upload {
|
|
8
|
+
color: $error-06;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
.ele-upload__area--text {
|
|
12
|
+
.ele-upload__message {
|
|
13
|
+
color: $error-06;
|
|
14
|
+
}
|
|
15
|
+
.ele-upload__ext {
|
|
16
|
+
color: $error-03;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
22
|
}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
@import 'variables.scss';
|
|
2
|
-
@import 'form.scss';
|
|
3
|
-
@import 'styleClass.scss';
|
|
4
|
-
|
|
5
|
-
$primary: $primary-06;
|
|
6
|
-
|
|
7
|
-
:root {
|
|
8
|
-
--idooel-primary-color: #{$primary};
|
|
9
|
-
--idoole-black-02: #{$black-02};
|
|
10
|
-
--idoole-black-06: #{$black-06};
|
|
11
|
-
--idoole-black-07: #{$black-07};
|
|
12
|
-
--idoole-black-064: #{$black-07};
|
|
13
|
-
--idoole-black-088: #{$black-08};
|
|
14
|
-
--idoole-black-016: #{$black-04};
|
|
15
|
-
--idooel-disabled-border-color: #{$black-04};
|
|
16
|
-
|
|
17
|
-
--idoole-success-06: #{$success-06};
|
|
18
|
-
--idoole-warning-06: #{$warning-06};
|
|
19
|
-
--idoole-error-06: #{$error-06};
|
|
20
|
-
//Table
|
|
21
|
-
--idooel-border-width: 2;
|
|
22
|
-
--idooel-border-color: #53a8ff;
|
|
23
|
-
--idooel-column-border-width: 1;
|
|
24
|
-
--idooel-column-border-color: #d9ecff;
|
|
25
|
-
--idooel-row-odd-color: #{$black-02};
|
|
26
|
-
--idooel-row-even-color: #FFF;
|
|
27
|
-
--idooel-row-hover-color: #{$primary-01};
|
|
28
|
-
|
|
29
|
-
//Form
|
|
30
|
-
--idooel-form-title-border-color: #{$black-04};
|
|
31
|
-
--idooel-form-upload-bg-color: #{$black-01};
|
|
32
|
-
--idooel-form-upload-border-hover-color: #{$primary-05};
|
|
33
|
-
--idooel-form-border-radius: #{$border-radius-base}px;
|
|
34
|
-
--idooel-form-border-err-color: #{$error-06};
|
|
35
|
-
|
|
36
|
-
//Link
|
|
37
|
-
--idooel-link-06: #{$link-06};
|
|
38
|
-
--idooel-link-03: #{$link-03};
|
|
39
|
-
|
|
40
|
-
//img-crop
|
|
41
|
-
--idooel-img-crop-err-color: #{$error-03};
|
|
42
|
-
}
|
|
43
|
-
|
|
1
|
+
@import 'variables.scss';
|
|
2
|
+
@import 'form.scss';
|
|
3
|
+
@import 'styleClass.scss';
|
|
4
|
+
|
|
5
|
+
$primary: $primary-06;
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
--idooel-primary-color: #{$primary};
|
|
9
|
+
--idoole-black-02: #{$black-02};
|
|
10
|
+
--idoole-black-06: #{$black-06};
|
|
11
|
+
--idoole-black-07: #{$black-07};
|
|
12
|
+
--idoole-black-064: #{$black-07};
|
|
13
|
+
--idoole-black-088: #{$black-08};
|
|
14
|
+
--idoole-black-016: #{$black-04};
|
|
15
|
+
--idooel-disabled-border-color: #{$black-04};
|
|
16
|
+
|
|
17
|
+
--idoole-success-06: #{$success-06};
|
|
18
|
+
--idoole-warning-06: #{$warning-06};
|
|
19
|
+
--idoole-error-06: #{$error-06};
|
|
20
|
+
//Table
|
|
21
|
+
--idooel-border-width: 2;
|
|
22
|
+
--idooel-border-color: #53a8ff;
|
|
23
|
+
--idooel-column-border-width: 1;
|
|
24
|
+
--idooel-column-border-color: #d9ecff;
|
|
25
|
+
--idooel-row-odd-color: #{$black-02};
|
|
26
|
+
--idooel-row-even-color: #FFF;
|
|
27
|
+
--idooel-row-hover-color: #{$primary-01};
|
|
28
|
+
|
|
29
|
+
//Form
|
|
30
|
+
--idooel-form-title-border-color: #{$black-04};
|
|
31
|
+
--idooel-form-upload-bg-color: #{$black-01};
|
|
32
|
+
--idooel-form-upload-border-hover-color: #{$primary-05};
|
|
33
|
+
--idooel-form-border-radius: #{$border-radius-base}px;
|
|
34
|
+
--idooel-form-border-err-color: #{$error-06};
|
|
35
|
+
|
|
36
|
+
//Link
|
|
37
|
+
--idooel-link-06: #{$link-06};
|
|
38
|
+
--idooel-link-03: #{$link-03};
|
|
39
|
+
|
|
40
|
+
//img-crop
|
|
41
|
+
--idooel-img-crop-err-color: #{$error-03};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
44
|
@import './overrid.scss';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.ant-input-disabled {
|
|
2
|
-
border-color: var(--idooel-disabled-border-color) !important;
|
|
3
|
-
}
|
|
4
|
-
.ant-select-disabled {
|
|
5
|
-
.ant-select-selection {
|
|
6
|
-
border-color: var(--idooel-disabled-border-color) !important;
|
|
7
|
-
}
|
|
1
|
+
.ant-input-disabled {
|
|
2
|
+
border-color: var(--idooel-disabled-border-color) !important;
|
|
3
|
+
}
|
|
4
|
+
.ant-select-disabled {
|
|
5
|
+
.ant-select-selection {
|
|
6
|
+
border-color: var(--idooel-disabled-border-color) !important;
|
|
7
|
+
}
|
|
8
8
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.margin-t-8 {
|
|
2
|
-
margin-top: 8px;
|
|
1
|
+
.margin-t-8 {
|
|
2
|
+
margin-top: 8px;
|
|
3
3
|
}
|