diff --git a/packages/uni-mp-alipay/dist/uni.mp.esm.js b/packages/uni-mp-alipay/dist/uni.mp.esm.js
index 7a85d894e1277d441180ee51583677fbf92b587c..90ad90314b8cecc1791054d04b816570aa777daa 100644
--- a/packages/uni-mp-alipay/dist/uni.mp.esm.js
+++ b/packages/uni-mp-alipay/dist/uni.mp.esm.js
@@ -623,7 +623,7 @@ function parsePropType(key, type, defaultValue) {
function initDefaultProps(isBehavior = false) {
const properties = {};
if (!isBehavior) {
- properties.vueId = {
+ properties.vI = {
type: String,
value: '',
};
@@ -1357,7 +1357,7 @@ function initVm(mpInstance, createComponent) {
return;
}
const properties = mpInstance.props;
- initVueIds(properties.vueId, mpInstance);
+ initVueIds(properties.vI, mpInstance);
const relationOptions = {
vuePid: mpInstance._$vuePid,
mpInstance,
diff --git a/packages/uni-mp-alipay/src/runtime/createComponent.ts b/packages/uni-mp-alipay/src/runtime/createComponent.ts
index 1483df99229a0d0ff5950c59e27a45d7a81c5109..5e9e09dd9b4c851023302be573452764f6955ead 100644
--- a/packages/uni-mp-alipay/src/runtime/createComponent.ts
+++ b/packages/uni-mp-alipay/src/runtime/createComponent.ts
@@ -53,7 +53,7 @@ function initVm(
return
}
const properties = mpInstance.props
- initVueIds(properties.vueId, mpInstance as any)
+ initVueIds(properties.vI, mpInstance as any)
const relationOptions: RelationOptions = {
vuePid: mpInstance._$vuePid,
mpInstance,
diff --git a/packages/uni-mp-baidu/dist/uni.mp.esm.js b/packages/uni-mp-baidu/dist/uni.mp.esm.js
index 1d7a80a3686a1e89a435fe997baed15025625264..bf19bd1e490342cadfec2b1d08bf32f3ef9b849d 100644
--- a/packages/uni-mp-baidu/dist/uni.mp.esm.js
+++ b/packages/uni-mp-baidu/dist/uni.mp.esm.js
@@ -175,8 +175,8 @@ function initRefs(instance, mpInstance) {
Object.defineProperty(instance, 'refs', {
get() {
const $refs = {};
- selectAllComponents(mpInstance, '.vue-ref', $refs);
- const forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
+ selectAllComponents(mpInstance, '.v-r', $refs);
+ const forComponents = mpInstance.selectAllComponents('.v-r-i-f');
forComponents.forEach((component) => {
const ref = component.dataset.ref;
if (!$refs[ref]) {
@@ -662,7 +662,7 @@ function parsePropType(key, type, defaultValue) {
function initDefaultProps(isBehavior = false) {
const properties = {};
if (!isBehavior) {
- properties.vueId = {
+ properties.vI = {
type: String,
value: '',
};
@@ -1234,7 +1234,7 @@ function initLifetimes({ mocks, isPage, initRelation, vueOptions, }) {
return {
attached() {
const properties = this.properties;
- initVueIds(properties.vueId, this);
+ initVueIds(properties.vI, this);
const relationOptions = {
vuePid: this._$vuePid,
};
diff --git a/packages/uni-mp-compiler/__tests__/component.spec.ts b/packages/uni-mp-compiler/__tests__/component.spec.ts
index 8884f419f1aa27cea79178258e23ea86c702a116..a16459803a1c0146cb7b17ceacd6ce97431293e6 100644
--- a/packages/uni-mp-compiler/__tests__/component.spec.ts
+++ b/packages/uni-mp-compiler/__tests__/component.spec.ts
@@ -5,7 +5,7 @@ describe('compiler: transform component', () => {
// test('basic', () => {
// assert(
// ``,
- // ``,
+ // ``,
// `(_ctx, _cache) => {
// return {}
// }`,
@@ -17,7 +17,7 @@ describe('compiler: transform component', () => {
test('component + component', () => {
assert(
``,
- ``,
+ ``,
`(_ctx, _cache) => {
return {}
}`,
@@ -29,7 +29,7 @@ describe('compiler: transform component', () => {
test('component + component + component', () => {
assert(
``,
- ``,
+ ``,
`(_ctx, _cache) => {
return {}
}`,
@@ -41,7 +41,7 @@ describe('compiler: transform component', () => {
test('component with v-for', () => {
assert(
``,
- ``,
+ ``,
`(_ctx, _cache) => {
return { a: _vFor(_ctx.items, (item, k0, i0) => { return { a: '2a9ec0b0-0' + '-' + i0 }; }) }
}`,
@@ -51,7 +51,7 @@ describe('compiler: transform component', () => {
)
assert(
``,
- ``,
+ ``,
`(_ctx, _cache) => {
return { a: _vFor(_ctx.items, (item, key, index) => { return { a: '2a9ec0b0-0' + '-' + index }; }) }
}`,
@@ -63,7 +63,7 @@ describe('compiler: transform component', () => {
test('component + component with v-for', () => {
assert(
``,
- ``,
+ ``,
`(_ctx, _cache) => {
return { a: _vFor(_ctx.items, (item, k0, i0) => { return { a: '2a9ec0b0-1' + '-' + i0 + ',' + '2a9ec0b0-0' }; }) }
}`,
@@ -75,7 +75,7 @@ describe('compiler: transform component', () => {
test('component with v-for + component', () => {
assert(
``,
- ``,
+ ``,
`(_ctx, _cache) => {
return { a: _vFor(_ctx.items, (item, k0, i0) => { return { a: '2a9ec0b0-1' + '-' + i0 + ',' + ('2a9ec0b0-0' + '-' + i0), b: '2a9ec0b0-0' + '-' + i0 }; }) }
}`,
@@ -87,7 +87,7 @@ describe('compiler: transform component', () => {
test('component with v-for + component with v-for', () => {
assert(
``,
- ``,
+ ``,
`(_ctx, _cache) => {
return { a: _vFor(_ctx.items, (item, k0, i0) => { return { a: _vFor(item.items, (item1, k1, i1) => { return { a: '2a9ec0b0-1' + '-' + i0 + '-' + i1 + ',' + ('2a9ec0b0-0' + '-' + i0) }; }), b: '2a9ec0b0-0' + '-' + i0 }; }) }
}`,
diff --git a/packages/uni-mp-compiler/__tests__/ref.spec.ts b/packages/uni-mp-compiler/__tests__/ref.spec.ts
index 2022c5be2ebcb87c50de525b5ca9410af4250c13..782a455efda4fa73a9ce2042f632d8d94ac2d929 100644
--- a/packages/uni-mp-compiler/__tests__/ref.spec.ts
+++ b/packages/uni-mp-compiler/__tests__/ref.spec.ts
@@ -1,26 +1,26 @@
import { assert } from './testUtils'
describe('compiler: transform ref', () => {
- test('vue-ref', () => {
+ test('v-r', () => {
assert(
``,
- ``,
+ ``,
`(_ctx, _cache) => {
return {}
}`
)
assert(
``,
- ``,
+ ``,
`(_ctx, _cache) => {
return {}
}`
)
})
- test('vue-ref-in-for', () => {
+ test('v-r-i-f', () => {
assert(
``,
- ``,
+ ``,
`(_ctx, _cache) => {
return { a: _vFor(_ctx.items, (item, k0, i0) => { return { a: '2a9ec0b0-0' + '-' + i0 }; }) }
}`
@@ -29,7 +29,7 @@ describe('compiler: transform ref', () => {
test('static ref', () => {
assert(
``,
- ``,
+ ``,
`(_ctx, _cache) => {
return {}
}`
@@ -38,7 +38,7 @@ describe('compiler: transform ref', () => {
test('dynamic ref', () => {
assert(
``,
- ``,
+ ``,
`(_ctx, _cache) => {
return { a: _ctx.custom }
}`
diff --git a/packages/uni-mp-compiler/__tests__/vModel.spec.ts b/packages/uni-mp-compiler/__tests__/vModel.spec.ts
index af14891ebb42c464c03d6746f33112176744af66..43c3785b26e2ecb7ddbb1f0afda494a3a50d6471 100644
--- a/packages/uni-mp-compiler/__tests__/vModel.spec.ts
+++ b/packages/uni-mp-compiler/__tests__/vModel.spec.ts
@@ -4,7 +4,7 @@ describe('compiler: transform v-model', () => {
test(`component v-model`, () => {
assert(
``,
- ``,
+ ``,
`(_ctx, _cache) => {
return { a: _ctx.model, b: _vOn($event => _ctx.model = $event) }
}`
@@ -13,7 +13,7 @@ describe('compiler: transform v-model', () => {
test(`component v-model with cache`, () => {
assert(
``,
- ``,
+ ``,
`(_ctx, _cache) => {
return { a: _ctx.model, b: _vOn($event => _ctx.model = $event) }
}`,
diff --git a/packages/uni-mp-compiler/__tests__/vSlot.spec.ts b/packages/uni-mp-compiler/__tests__/vSlot.spec.ts
index a323faa8b59b7f8dd46dca754dcd28039cdb80fa..d016c43745d1f8a397feb59373fa3af2e3963ce9 100644
--- a/packages/uni-mp-compiler/__tests__/vSlot.spec.ts
+++ b/packages/uni-mp-compiler/__tests__/vSlot.spec.ts
@@ -4,14 +4,14 @@ describe('compiler: transform v-slot', () => {
test('default slot', () => {
assert(
``,
- ``,
+ ``,
`(_ctx, _cache) => {
return {}
}`
)
assert(
`test`,
- `test`,
+ `test`,
`(_ctx, _cache) => {
return {}
}`
@@ -20,7 +20,7 @@ describe('compiler: transform v-slot', () => {
test('named slots', () => {
assert(
``,
- ``,
+ ``,
`(_ctx, _cache) => {
return {}
}`
@@ -30,7 +30,7 @@ describe('compiler: transform v-slot', () => {
test('scoped slots', () => {
assert(
`{{ slotProps.item }}`,
- `{{a}}`,
+ `{{a}}`,
`(_ctx, _cache) => {
return { a: _toDisplayString(_ctx.slotProps.item), b: slotProps }
}`
diff --git a/packages/uni-mp-compiler/src/compile.ts b/packages/uni-mp-compiler/src/compile.ts
index 9f8d3142be8c31a442e65d4017f7d29f47e02805..72ab4f18dcb24a2585f063443b0b3df374e56352 100644
--- a/packages/uni-mp-compiler/src/compile.ts
+++ b/packages/uni-mp-compiler/src/compile.ts
@@ -48,7 +48,7 @@ export function baseCompile(template: string, options: CompilerOptions = {}) {
skipTransformIdentifier: options.skipTransformIdentifier === true,
})
- options.vueId = genVueId(options)
+ options.hashId = genHashId(options)
if (options.filename) {
if (options.filters && options.miniProgram?.filter) {
@@ -94,9 +94,9 @@ export function baseCompile(template: string, options: CompilerOptions = {}) {
return result
}
-function genVueId(options: CompilerOptions) {
- if (options.vueId) {
- return options.vueId
+function genHashId(options: CompilerOptions) {
+ if (options.hashId) {
+ return options.hashId
}
if (options.scopeId) {
return options.scopeId.replace('data-v-', '')
diff --git a/packages/uni-mp-compiler/src/options.ts b/packages/uni-mp-compiler/src/options.ts
index 02894e15aff5830383ea47055eea3fb4d70989b6..a6bea0b5f85087984d24b85c155d9e3781e31da0 100644
--- a/packages/uni-mp-compiler/src/options.ts
+++ b/packages/uni-mp-compiler/src/options.ts
@@ -46,7 +46,7 @@ interface SharedTransformCodegenOptions {
export interface TransformOptions
extends SharedTransformCodegenOptions,
ErrorHandlingOptions {
- vueId?: string | null
+ hashId?: string | null
scopeId?: string | null
filters?: string[]
cacheHandlers?: boolean
diff --git a/packages/uni-mp-compiler/src/transform.ts b/packages/uni-mp-compiler/src/transform.ts
index 126074e79bb1230424c65bf235f5f494dc8f631b..13d3b69585e7fc190a8640bf2b8dc04e98ce07ec 100644
--- a/packages/uni-mp-compiler/src/transform.ts
+++ b/packages/uni-mp-compiler/src/transform.ts
@@ -216,7 +216,7 @@ export function createTransformContext(
filename = '',
isTS = false,
inline = false,
- vueId = null,
+ hashId = null,
scopeId = null,
filters = [],
bindingMetadata = EMPTY_OBJ,
@@ -275,7 +275,7 @@ export function createTransformContext(
selfName: nameMatch && capitalize(camelize(nameMatch[1])),
isTS,
inline,
- vueId,
+ hashId,
scopeId,
filters,
bindingMetadata,
diff --git a/packages/uni-mp-compiler/src/transforms/transformComponent.ts b/packages/uni-mp-compiler/src/transforms/transformComponent.ts
index f76a5c1a33ba3d60e189e5ed04366ed67f43895b..3466ef86c57e9c377e02d578eca3a88c9663ffd5 100644
--- a/packages/uni-mp-compiler/src/transforms/transformComponent.ts
+++ b/packages/uni-mp-compiler/src/transforms/transformComponent.ts
@@ -28,11 +28,11 @@ export const transformComponent: NodeTransform = (node, context) => {
}
function addVueId(node: ComponentNode, context: TransformContext) {
- let { vueId, scopes, currentScope, currentVueId } = context
- if (!vueId) {
+ let { hashId, scopes, currentScope, currentVueId } = context
+ if (!hashId) {
return
}
- vueId = vueId + '-' + scopes.vueId++
+ let vueId = hashId + '-' + scopes.vueId++
const indexs: string[] = []
while (currentScope) {
if (isVForScope(currentScope)) {
@@ -60,14 +60,16 @@ function addVueId(node: ComponentNode, context: TransformContext) {
}
}
if (value.includes('+')) {
- return node.props.push(createBindDirectiveNode('vue-id', value))
+ return node.props.push(createBindDirectiveNode('v-i', value))
}
- return node.props.push(createAttributeNode('vue-id', value))
+ return node.props.push(createAttributeNode('v-i', value))
}
function addVueRef(node: ComponentNode, context: TransformContext) {
return addStaticClass(
node,
- context.scopes.vFor ? 'vue-ref-in-for' : 'vue-ref'
+ // vue-ref-in-for
+ // vue-ref
+ context.scopes.vFor ? 'v-r-i-f' : 'v-r'
)
}
diff --git a/packages/uni-mp-compiler/src/transforms/transformIdentifier.ts b/packages/uni-mp-compiler/src/transforms/transformIdentifier.ts
index f6234ada18ab92eddbf0bf4719e147aaad51ca51..3496639e16b3c30afe62256f08e9b0640b138a34 100644
--- a/packages/uni-mp-compiler/src/transforms/transformIdentifier.ts
+++ b/packages/uni-mp-compiler/src/transforms/transformIdentifier.ts
@@ -82,7 +82,8 @@ export const transformIdentifier: NodeTransform = (node, context) => {
}
}
-// const builtInProps = ['vue-id']
+// vue-id
+// const builtInProps = ['v-i']
function isBuiltIn(_dir: DirectiveNode) {
return false
diff --git a/packages/uni-mp-core/src/runtime/componentProps.ts b/packages/uni-mp-core/src/runtime/componentProps.ts
index 84d31d558552a2f0f1a5ef582e1ea4f433874c24..9f2e157ea0b0be39e66c2fa5e27445180a89986b 100644
--- a/packages/uni-mp-core/src/runtime/componentProps.ts
+++ b/packages/uni-mp-core/src/runtime/componentProps.ts
@@ -37,7 +37,7 @@ function parsePropType(key: string, type: unknown, defaultValue: unknown) {
function initDefaultProps(isBehavior: boolean = false) {
const properties: Component.PropertyOption = {}
if (!isBehavior) {
- properties.vueId = {
+ properties.vI = {
type: String,
value: '',
}
diff --git a/packages/uni-mp-core/src/runtime/util.ts b/packages/uni-mp-core/src/runtime/util.ts
index 0b35f1196d77c1048d0e20b4dff8c34357ef2d23..110a4a67597c67416ed87e1f130562d17d1a809c 100644
--- a/packages/uni-mp-core/src/runtime/util.ts
+++ b/packages/uni-mp-core/src/runtime/util.ts
@@ -88,8 +88,8 @@ export function initRefs(
Object.defineProperty(instance, 'refs', {
get() {
const $refs: Record = {}
- selectAllComponents(mpInstance, '.vue-ref', $refs)
- const forComponents = mpInstance.selectAllComponents('.vue-ref-in-for')
+ selectAllComponents(mpInstance, '.v-r', $refs)
+ const forComponents = mpInstance.selectAllComponents('.v-r-i-f')
forComponents.forEach((component) => {
const ref = component.dataset.ref
if (!$refs[ref]) {
diff --git a/packages/uni-mp-kuaishou/dist/uni.mp.esm.js b/packages/uni-mp-kuaishou/dist/uni.mp.esm.js
index 2810aef6fc8aaf94d3a02947973bfd7963dc09e8..2280962cce3f251b2e93aeb6d1522326c98fd8c4 100644
--- a/packages/uni-mp-kuaishou/dist/uni.mp.esm.js
+++ b/packages/uni-mp-kuaishou/dist/uni.mp.esm.js
@@ -175,8 +175,8 @@ function initRefs(instance, mpInstance) {
Object.defineProperty(instance, 'refs', {
get() {
const $refs = {};
- selectAllComponents(mpInstance, '.vue-ref', $refs);
- const forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
+ selectAllComponents(mpInstance, '.v-r', $refs);
+ const forComponents = mpInstance.selectAllComponents('.v-r-i-f');
forComponents.forEach((component) => {
const ref = component.dataset.ref;
if (!$refs[ref]) {
@@ -651,7 +651,7 @@ function parsePropType(key, type, defaultValue) {
function initDefaultProps(isBehavior = false) {
const properties = {};
if (!isBehavior) {
- properties.vueId = {
+ properties.vI = {
type: String,
value: '',
};
@@ -1161,7 +1161,7 @@ function initLifetimes({ mocks, isPage, initRelation, vueOptions, }) {
return {
attached() {
const properties = this.properties;
- initVueIds(properties.vueId, this);
+ initVueIds(properties.vI, this);
const relationOptions = {
vuePid: this._$vuePid,
};
diff --git a/packages/uni-mp-qq/dist/uni.mp.esm.js b/packages/uni-mp-qq/dist/uni.mp.esm.js
index 2d53ed7d5366d0bcbfffe3c8d0f3bfb8a95717ab..c25c5f46993edbb2f993c76ab60c8a02e794dc64 100644
--- a/packages/uni-mp-qq/dist/uni.mp.esm.js
+++ b/packages/uni-mp-qq/dist/uni.mp.esm.js
@@ -175,8 +175,8 @@ function initRefs(instance, mpInstance) {
Object.defineProperty(instance, 'refs', {
get() {
const $refs = {};
- selectAllComponents(mpInstance, '.vue-ref', $refs);
- const forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
+ selectAllComponents(mpInstance, '.v-r', $refs);
+ const forComponents = mpInstance.selectAllComponents('.v-r-i-f');
forComponents.forEach((component) => {
const ref = component.dataset.ref;
if (!$refs[ref]) {
@@ -651,7 +651,7 @@ function parsePropType(key, type, defaultValue) {
function initDefaultProps(isBehavior = false) {
const properties = {};
if (!isBehavior) {
- properties.vueId = {
+ properties.vI = {
type: String,
value: '',
};
@@ -1161,7 +1161,7 @@ function initLifetimes({ mocks, isPage, initRelation, vueOptions, }) {
return {
attached() {
const properties = this.properties;
- initVueIds(properties.vueId, this);
+ initVueIds(properties.vI, this);
const relationOptions = {
vuePid: this._$vuePid,
};
diff --git a/packages/uni-mp-toutiao/dist/uni.mp.esm.js b/packages/uni-mp-toutiao/dist/uni.mp.esm.js
index ad957534767a6ca50cff55d09df98840c751c9d2..726f1376e30ede545cf79f5f73c81afe0d22fb22 100644
--- a/packages/uni-mp-toutiao/dist/uni.mp.esm.js
+++ b/packages/uni-mp-toutiao/dist/uni.mp.esm.js
@@ -175,8 +175,8 @@ function initRefs(instance, mpInstance) {
Object.defineProperty(instance, 'refs', {
get() {
const $refs = {};
- selectAllComponents(mpInstance, '.vue-ref', $refs);
- const forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
+ selectAllComponents(mpInstance, '.v-r', $refs);
+ const forComponents = mpInstance.selectAllComponents('.v-r-i-f');
forComponents.forEach((component) => {
const ref = component.dataset.ref;
if (!$refs[ref]) {
@@ -654,7 +654,7 @@ function parsePropType(key, type, defaultValue) {
function initDefaultProps(isBehavior = false) {
const properties = {};
if (!isBehavior) {
- properties.vueId = {
+ properties.vI = {
type: String,
value: '',
};
@@ -1255,7 +1255,7 @@ function initLifetimes$1({ mocks, isPage, initRelation, vueOptions, }) {
return {
attached() {
const properties = this.properties;
- initVueIds(properties.vueId, this);
+ initVueIds(properties.vI, this);
const relationOptions = {
vuePid: this._$vuePid,
};
diff --git a/packages/uni-mp-toutiao/src/runtime/componentLifetimes.ts b/packages/uni-mp-toutiao/src/runtime/componentLifetimes.ts
index 345def193de80df952847795356d73debd73f86c..226ac7b2f61e7d7a2488d4b8f1c8cb7e68aaad33 100644
--- a/packages/uni-mp-toutiao/src/runtime/componentLifetimes.ts
+++ b/packages/uni-mp-toutiao/src/runtime/componentLifetimes.ts
@@ -25,7 +25,7 @@ export function initLifetimes({
return {
attached(this: MPComponentInstance) {
const properties = this.properties
- initVueIds(properties.vueId, this)
+ initVueIds(properties.vI, this)
const relationOptions: RelationOptions = {
vuePid: this._$vuePid,
}
diff --git a/packages/uni-mp-weixin/dist/uni.mp.esm.js b/packages/uni-mp-weixin/dist/uni.mp.esm.js
index ae25dda25eedb0255698f3acd276a855be882e48..4a4fb734a6ee9d8fcb68d17d8fb6d11da23edd07 100644
--- a/packages/uni-mp-weixin/dist/uni.mp.esm.js
+++ b/packages/uni-mp-weixin/dist/uni.mp.esm.js
@@ -121,8 +121,8 @@ function initRefs(instance, mpInstance) {
Object.defineProperty(instance, 'refs', {
get() {
const $refs = {};
- selectAllComponents(mpInstance, '.vue-ref', $refs);
- const forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
+ selectAllComponents(mpInstance, '.v-r', $refs);
+ const forComponents = mpInstance.selectAllComponents('.v-r-i-f');
forComponents.forEach((component) => {
const ref = component.dataset.ref;
if (!$refs[ref]) {
@@ -597,7 +597,7 @@ function parsePropType(key, type, defaultValue) {
function initDefaultProps(isBehavior = false) {
const properties = {};
if (!isBehavior) {
- properties.vueId = {
+ properties.vI = {
type: String,
value: '',
};
@@ -1107,7 +1107,7 @@ function initLifetimes({ mocks, isPage, initRelation, vueOptions, }) {
return {
attached() {
const properties = this.properties;
- initVueIds(properties.vueId, this);
+ initVueIds(properties.vI, this);
const relationOptions = {
vuePid: this._$vuePid,
};
diff --git a/packages/uni-mp-weixin/src/runtime/lifetimes.ts b/packages/uni-mp-weixin/src/runtime/lifetimes.ts
index e0ac49f327b40f6722e763351d9b7666a2401f28..f1a99a443fdd1ffaa434d6244d13f01e044af9a7 100644
--- a/packages/uni-mp-weixin/src/runtime/lifetimes.ts
+++ b/packages/uni-mp-weixin/src/runtime/lifetimes.ts
@@ -26,7 +26,7 @@ export function initLifetimes({
return {
attached(this: MPComponentInstance) {
const properties = this.properties
- initVueIds(properties.vueId, this)
+ initVueIds(properties.vI, this)
const relationOptions: RelationOptions = {
vuePid: this._$vuePid,
}
diff --git a/packages/uni-quickapp-webview/dist/uni.mp.esm.js b/packages/uni-quickapp-webview/dist/uni.mp.esm.js
index c8599b8c7d18edd233ef87bed004a2c69e93f788..127b0ff30e7d8079651aedd0d9fa11abfc0bc979 100644
--- a/packages/uni-quickapp-webview/dist/uni.mp.esm.js
+++ b/packages/uni-quickapp-webview/dist/uni.mp.esm.js
@@ -175,8 +175,8 @@ function initRefs(instance, mpInstance) {
Object.defineProperty(instance, 'refs', {
get() {
const $refs = {};
- selectAllComponents(mpInstance, '.vue-ref', $refs);
- const forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
+ selectAllComponents(mpInstance, '.v-r', $refs);
+ const forComponents = mpInstance.selectAllComponents('.v-r-i-f');
forComponents.forEach((component) => {
const ref = component.dataset.ref;
if (!$refs[ref]) {
@@ -582,7 +582,7 @@ function parsePropType(key, type, defaultValue) {
function initDefaultProps(isBehavior = false) {
const properties = {};
if (!isBehavior) {
- properties.vueId = {
+ properties.vI = {
type: String,
value: '',
};
@@ -1177,7 +1177,7 @@ function initLifetimes$1({ mocks, isPage, initRelation, vueOptions, }) {
return {
attached() {
const properties = this.properties;
- initVueIds(properties.vueId, this);
+ initVueIds(properties.vI, this);
const relationOptions = {
vuePid: this._$vuePid,
};