forked from opentiny/tiny-vue
Fix some bugs (#1465)
* feat(drawer): fit x-design theme * feat(drawer): add demo and api document for 'tipsProps' * fix(docs): optimize api type anchor * fix(build): optimize build:theme script * docs(timeline): api document optimization * docs(steps): api document optimization * fix(pull-refresh): solved the problem pull down can't reset data * fix(build:theme): solved running build:theme script error
This commit is contained in:
parent
8af9552e11
commit
28a67f7507
|
@ -56,7 +56,7 @@ export default {
|
|||
type: 'string | number',
|
||||
defaultValue: '',
|
||||
desc: {
|
||||
'zh-CN': "连接线长度,仅当 text-position 取值为 'right' 时生效,设置后 space 属性失效。",
|
||||
'zh-CN': "连接线长度,仅当 text-position 取值为 'right' 时生效,设置后 space 属性失效",
|
||||
'en-US':
|
||||
"The length of the connection line and it is valid only when text-position is set to 'right'. After setting, the space property is invalid"
|
||||
},
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import { Steps as TinySteps } from '@opentiny/vue'
|
||||
import { Steps as TinySteps, Modal } from '@opentiny/vue'
|
||||
|
||||
const stepsData = ref([
|
||||
{
|
||||
|
|
|
@ -21,6 +21,6 @@ const data = reactive([
|
|||
|
||||
const handleClick = (index, node) => {
|
||||
active.value = index
|
||||
Modal.message(`节点index: ${index}; 节点信息: ${JSON.stringify(node)}.`)
|
||||
Modal.message({ message: `节点index: ${index}; 节点信息: ${JSON.stringify(node)}.`, status: 'info' })
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -29,7 +29,7 @@ export default {
|
|||
advancedClick(index, node) {
|
||||
this.advancedActive = index
|
||||
|
||||
Modal.message(`节点index: ${index}; 节点信息: ${JSON.stringify(node)}.`)
|
||||
Modal.message({ message: `节点index: ${index}; 节点信息: ${JSON.stringify(node)}.`, status: 'info' })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,6 +26,6 @@ const data = reactive([
|
|||
const advancedClick = (index, node) => {
|
||||
active.value = index
|
||||
|
||||
Modal.message(`节点index: ${index}; 节点信息: ${JSON.stringify(node)}.`)
|
||||
Modal.message({ message: `节点index: ${index}; 节点信息: ${JSON.stringify(node)}.`, status: 'info' })
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -33,7 +33,7 @@ export default {
|
|||
advancedClick(index, node) {
|
||||
this.active = index
|
||||
|
||||
Modal.message(`节点index: ${index}; 节点信息: ${JSON.stringify(node)}.`)
|
||||
Modal.message({ message: `节点index: ${index}; 节点信息: ${JSON.stringify(node)}.`, status: 'info' })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -65,10 +65,8 @@ export const renderless = (props, { watch, onMounted, reactive, onBeforeUnmount
|
|||
|
||||
watch(
|
||||
() => props.hasMore,
|
||||
(value) => {
|
||||
if (!value) {
|
||||
state.hasMore = false
|
||||
}
|
||||
(value: boolean) => {
|
||||
state.hasMore = value
|
||||
},
|
||||
{ immediate: true }
|
||||
)
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
export const tinyFormSmbTheme = {
|
||||
'ti-form-item-label-top-margin-bottom': '24px',
|
||||
'ti-form-item-label-top-label-line-height': '1.5', // smb要求行高为1.5
|
||||
'ti-form-item-label-top-label-height': 'calc(1.5em + 8px)' // border-box需要加上内边距
|
||||
// smb要求行高为1.5
|
||||
'ti-form-item-label-top-label-line-height': '1.5',
|
||||
// border-box需要加上内边距
|
||||
'ti-form-item-label-top-label-height': 'calc(1.5em + 8px)'
|
||||
}
|
||||
|
|
|
@ -74,6 +74,7 @@
|
|||
@import './file-upload/index.less';
|
||||
@import './filter-box/index.less';
|
||||
@import './filter-panel/index.less';
|
||||
@import './float-button/index.less';
|
||||
@import './floatbar/index.less';
|
||||
@import './flowchart/index.less';
|
||||
@import './form/index.less';
|
||||
|
|
Loading…
Reference in New Issue