@@ -3,8 +3,8 @@ import action from '@cocreate/actions';
3
3
import observer from '@cocreate/observer' ;
4
4
import uuid from '@cocreate/uuid' ;
5
5
import { queryDocumentSelector } from '@cocreate/utils' ;
6
+ import '@cocreate/element-prototype' ;
6
7
import './index.css' ;
7
- // import { getValue } from '../../CoCreate-elements/src/getValue';
8
8
// import api from '@cocreate/api';
9
9
10
10
const CoCreateRender = {
@@ -70,11 +70,11 @@ const CoCreateRender = {
70
70
variables . forEach ( ( attr ) => {
71
71
let value ;
72
72
73
- if ( attr == "{{data._id}}" || attr == `{{${ renderKey } ._id}}` || attr == "{{document_id}}" )
74
- value = this . document_id ;
75
- else if ( attr == "{{collection}" || attr == `{{${ renderKey } .collection}}` )
76
- value = this . collection ;
77
- else
73
+ // if (attr == "{{data._id}}" || attr == `{{${renderKey}._id}}` || attr == "{{document_id}}" || attr == "{{document._id }}")
74
+ // value = this.document_id;
75
+ // else if (attr == "{{collection}" || attr == `{{${renderKey}.collection}}`)
76
+ // value = this.collection;
77
+ // else
78
78
value = self . __getValue ( data , attr ) ;
79
79
80
80
if ( value ) {
@@ -234,11 +234,11 @@ const CoCreateRender = {
234
234
if ( data . renderKey )
235
235
isRenderKey = true
236
236
237
- if ( data . document . _id )
238
- this . document_id = data . document . _id ;
237
+ // if (data.document._id)
238
+ // this.document_id = data.document._id;
239
239
240
- if ( data . collection )
241
- this . collection = data . collection ;
240
+ // if (data.collection)
241
+ // this.collection = data.collection;
242
242
243
243
const that = this ;
244
244
Array . from ( els ) . forEach ( el => {
0 commit comments