Compare commits

..

No commits in common. "main" and "v3.5.24" have entirely different histories.

6 changed files with 16 additions and 66 deletions

View File

@ -2107,38 +2107,3 @@ defineComponent({
expectType<string>(this.$props)
},
})
// #14117
defineComponent({
setup() {
const setup1 = ref('setup1')
const setup2 = ref('setup2')
return { setup1, setup2 }
},
data() {
return {
data1: 1,
}
},
props: {
props1: {
type: String,
},
},
methods: {
methods1() {
return `methods1`
},
},
computed: {
computed1() {
this.setup1
this.setup2
this.data1
this.props1
this.methods1()
return `computed1`
},
},
expose: ['setup1'],
})

View File

@ -83,11 +83,11 @@ export const ssrTransformModel: DirectiveTransform = (dir, node, context) => {
if (node.tagType === ElementTypes.ELEMENT) {
const res: DirectiveTransformResult = { props: [] }
if (node.tag === 'input') {
const defaultProps = [
// default value binding for text type inputs
createObjectProperty(`value`, model),
]
if (node.tag === 'input') {
const type = findProp(node, 'type')
if (type) {
const value = findValueBinding(node)

View File

@ -272,7 +272,7 @@ export function defineComponent<
Slots,
LocalComponents,
Directives,
string
Exposed
>
>,
): DefineComponent<

View File

@ -1194,7 +1194,7 @@ export type ComponentOptionsWithoutProps<
S,
LC,
Directives,
string
Exposed
>
>
@ -1256,7 +1256,7 @@ export type ComponentOptionsWithArrayProps<
S,
LC,
Directives,
string
Exposed
>
>

View File

@ -17,7 +17,6 @@ import {
} from '@vue/runtime-core'
import { nodeOps } from './nodeOps'
import { patchProp } from './patchProp'
export { nodeOps, patchProp }
// Importing from the compiler, will be tree-shaken in prod
import {
NOOP,

View File

@ -286,19 +286,6 @@ export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
contextmenu?: string | undefined
dir?: string | undefined
draggable?: Booleanish | undefined
enterkeyhint?:
| 'enter'
| 'done'
| 'go'
| 'next'
| 'previous'
| 'search'
| 'send'
| undefined
/**
* @deprecated Use `enterkeyhint` instead.
*/
enterKeyHint?: HTMLAttributes['enterkeyhint']
hidden?: Booleanish | '' | 'hidden' | 'until-found' | undefined
id?: string | undefined
inert?: Booleanish | undefined
@ -359,14 +346,6 @@ export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
* @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
*/
is?: string | undefined
/**
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts
*/
exportparts?: string
/**
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part
*/
part?: string
}
type HTMLAttributeReferrerPolicy =
@ -519,7 +498,6 @@ export interface ImgHTMLAttributes extends HTMLAttributes {
alt?: string | undefined
crossorigin?: 'anonymous' | 'use-credentials' | '' | undefined
decoding?: 'async' | 'auto' | 'sync' | undefined
fetchpriority?: 'high' | 'low' | 'auto' | undefined
height?: Numberish | undefined
loading?: 'eager' | 'lazy' | undefined
referrerpolicy?: HTMLAttributeReferrerPolicy | undefined
@ -569,6 +547,15 @@ export interface InputHTMLAttributes extends HTMLAttributes {
checked?: Booleanish | any[] | Set<any> | undefined // for IDE v-model multi-checkbox support
crossorigin?: string | undefined
disabled?: Booleanish | undefined
enterKeyHint?:
| 'enter'
| 'done'
| 'go'
| 'next'
| 'previous'
| 'search'
| 'send'
| undefined
form?: string | undefined
formaction?: string | undefined
formenctype?: string | undefined
@ -1301,7 +1288,6 @@ export interface IntrinsicElementAttributes {
polyline: SVGAttributes
radialGradient: SVGAttributes
rect: SVGAttributes
set: SVGAttributes
stop: SVGAttributes
switch: SVGAttributes
symbol: SVGAttributes