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:
黄怡林 2024-03-05 17:41:16 +08:00 committed by GitHub
parent 8af9552e11
commit 28a67f7507
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 13 additions and 12 deletions

View File

@ -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"
},

View File

@ -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([
{

View File

@ -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>

View File

@ -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' })
}
}
}

View File

@ -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>

View File

@ -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' })
}
}
}

View File

@ -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 }
)

View File

@ -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)'
}

View File

@ -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';