|
@@ -1,12 +1,4 @@
|
|
|
-import {
|
|
|
|
|
- EMPTY_ARR,
|
|
|
|
|
- NO,
|
|
|
|
|
- YES,
|
|
|
|
|
- camelize,
|
|
|
|
|
- extend,
|
|
|
|
|
- hasOwn,
|
|
|
|
|
- isFunction,
|
|
|
|
|
-} from '@vue/shared'
|
|
|
|
|
|
|
+import { EMPTY_ARR, NO, YES, camelize, hasOwn, isFunction } from '@vue/shared'
|
|
|
import type { VaporComponent, VaporComponentInstance } from './component'
|
|
import type { VaporComponent, VaporComponentInstance } from './component'
|
|
|
import {
|
|
import {
|
|
|
type NormalizedPropsOptions,
|
|
type NormalizedPropsOptions,
|
|
@@ -239,7 +231,12 @@ export function setupPropsValidation(instance: VaporComponentInstance): void {
|
|
|
const rawProps = instance.rawProps
|
|
const rawProps = instance.rawProps
|
|
|
if (!rawProps) return
|
|
if (!rawProps) return
|
|
|
renderEffect(() => {
|
|
renderEffect(() => {
|
|
|
- const mergedRawProps = extend({}, rawProps)
|
|
|
|
|
|
|
+ const mergedRawProps: Record<string, any> = {}
|
|
|
|
|
+ for (const key in rawProps) {
|
|
|
|
|
+ if (key !== '$') {
|
|
|
|
|
+ mergedRawProps[key] = rawProps[key]()
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
if (rawProps.$) {
|
|
if (rawProps.$) {
|
|
|
for (const source of rawProps.$) {
|
|
for (const source of rawProps.$) {
|
|
|
const isDynamic = isFunction(source)
|
|
const isDynamic = isFunction(source)
|