Compare commits
4 Commits
96cd780f26
...
f3c2499ab7
Author | SHA1 | Date |
---|---|---|
![]() |
f3c2499ab7 | |
![]() |
db03876549 | |
![]() |
b7aa885dc9 | |
![]() |
22b3099cb8 |
|
@ -136,6 +136,7 @@ const handleShowTinyRobot = () => {
|
|||
padding: 34px 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
.right-panel:not(.collapsed) {
|
||||
:deep(.tr-container) {
|
||||
z-index: 9999;
|
||||
|
|
|
@ -124,7 +124,9 @@ export const calcTextareaHeight =
|
|||
const { paddingSize, borderSize, boxSizing, contextStyle } = api.calculateNodeStyling(targetElement)
|
||||
|
||||
hiddenTextarea.setAttribute('style', `${contextStyle};${HIDDEN_STYLE}`)
|
||||
hiddenTextarea.value = targetElement.value || targetElement.placeholder || ''
|
||||
// 多行placeholder只计算单行高度防止撑高scrollHeight
|
||||
const safePlaceholder = targetElement.placeholder ? targetElement.placeholder.trim().split('\n')[0] : ''
|
||||
hiddenTextarea.value = targetElement.value || safePlaceholder || ''
|
||||
|
||||
let height = hiddenTextarea.scrollHeight
|
||||
const textareaStyle: {
|
||||
|
@ -161,11 +163,7 @@ export const calcTextareaHeight =
|
|||
minHeight = props.height
|
||||
}
|
||||
if (!state.isDisplayOnly) {
|
||||
if (props.autosize) {
|
||||
height = Math.max(minHeight, height)
|
||||
} else {
|
||||
height = Math.min(minHeight, height)
|
||||
}
|
||||
height = Math.max(minHeight, height)
|
||||
textareaStyle.minHeight = `${Math.floor(minHeight)}px`
|
||||
} else {
|
||||
textareaStyle.minHeight = `0px`
|
||||
|
|
|
@ -9,8 +9,9 @@
|
|||
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
||||
*
|
||||
*/
|
||||
import { $props, $prefix, $setup, defineComponent, type PropType } from '@opentiny/vue-common'
|
||||
import { $props, $prefix, $setup, defineComponent } from '@opentiny/vue-common'
|
||||
import template from 'virtual-template?pc'
|
||||
import type { PropType } from '@opentiny/vue-common'
|
||||
import type { IButtonGroupNode } from '@opentiny/vue-renderless/types/button-group.type'
|
||||
|
||||
export const buttonGroupProps = {
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
*
|
||||
*/
|
||||
import { $props, $prefix, $setup, defineComponent } from '@opentiny/vue-common'
|
||||
import { type PropType } from '@opentiny/vue-common'
|
||||
import template from 'virtual-template?pc|mobile-first'
|
||||
|
||||
export const buttonProps = {
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
import { findTree } from '@opentiny/vue-renderless/grid/static/'
|
||||
import Modal from '@opentiny/vue-modal'
|
||||
import GlobalConfig from '../../config'
|
||||
import { isVue2 } from '@opentiny/vue-common'
|
||||
|
||||
export const createHandlerOnEnd = ({ _vm, refresh }) => {
|
||||
return (event) => {
|
||||
|
@ -79,8 +78,7 @@ export const createHandlerOnEnd = ({ _vm, refresh }) => {
|
|||
|
||||
// 如果变动了树层级,需要刷新数据
|
||||
_vm.$emit('row-drop-end', event, _vm, _vm.scrollYLoad ? tableTreeData : _vm.tableFullData)
|
||||
// 因为vue2劫持了数组方法,所以在data通过splice改变数组时(数组长度不变)会触发更新,但是vue3是浅层响应,所以需要通过传递数据让表格更新
|
||||
refresh && _vm.data && !isVue2 && _vm.refreshData(_vm.data)
|
||||
refresh && _vm.data && _vm.refreshData(_vm.data)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
placement="top"
|
||||
:popper-class="state.tooltipConfig.popperClass || ''"
|
||||
:popper-options="{ bubbling: true }"
|
||||
pre
|
||||
@mouseenter.native="handleEnterDisplayOnlyContent"
|
||||
>
|
||||
<span
|
||||
|
|
|
@ -56,6 +56,7 @@
|
|||
:content="state.displayOnlyTooltip"
|
||||
placement="top"
|
||||
:popper-class="state.tooltipConfig.popperClass || ''"
|
||||
pre
|
||||
@mouseenter.native="handleEnterDisplayOnlyContent"
|
||||
>
|
||||
<span class="tiny-input-display-only__content" v-if="type === 'password'">{{ state.hiddenPassword }}</span>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { $props, $prefix, $setup, defineComponent, type PropType } from '@opentiny/vue-common'
|
||||
import type { PropType } from '@opentiny/vue-common'
|
||||
import { $props, $prefix, $setup, defineComponent } from '@opentiny/vue-common'
|
||||
import template from 'virtual-template?pc|mobile-first'
|
||||
|
||||
export const pagerProps = {
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
||||
*
|
||||
*/
|
||||
import { $props, $prefix, $setup, defineComponent, type PropType } from '@opentiny/vue-common'
|
||||
import type { PropType } from '@opentiny/vue-common'
|
||||
import { $props, $prefix, $setup, defineComponent } from '@opentiny/vue-common'
|
||||
import template from 'virtual-template?pc|mobile-first'
|
||||
|
||||
export const radioGroupProps = {
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
||||
*
|
||||
*/
|
||||
import { $props, $prefix, $setup, defineComponent, type PropType } from '@opentiny/vue-common'
|
||||
import type { PropType } from '@opentiny/vue-common'
|
||||
import { $props, $prefix, $setup, defineComponent } from '@opentiny/vue-common'
|
||||
import template from 'virtual-template?pc|mobile-first'
|
||||
|
||||
export const $constants = {
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
||||
*
|
||||
*/
|
||||
import { $props, $prefix, $setup, defineComponent, type PropType } from '@opentiny/vue-common'
|
||||
import { $props, $prefix, $setup, defineComponent } from '@opentiny/vue-common'
|
||||
import type { PropType } from '@opentiny/vue-common'
|
||||
import template from 'virtual-template?pc|mobile-first'
|
||||
|
||||
export const $constants = {
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
*/
|
||||
|
||||
import { $props, $setup, $prefix, defineComponent } from '@opentiny/vue-common'
|
||||
import { type PropType } from '@opentiny/vue-common'
|
||||
import template from 'virtual-template?pc'
|
||||
|
||||
export const userContactProps = {
|
||||
|
|
Loading…
Reference in New Issue