mirror of
https://github.com/msojocs/wx-compiler.git
synced 2025-07-19 00:00:04 +08:00
fix: prefix with "model:"
This commit is contained in:
parent
8c660a63e8
commit
9555a442b3
@ -1324,17 +1324,22 @@ namespace WXML {
|
|||||||
std::string v333 = v324[m].first.substr(0, 6u);
|
std::string v333 = v324[m].first.substr(0, 6u);
|
||||||
if (v333 == "model:")
|
if (v333 == "model:")
|
||||||
{
|
{
|
||||||
std::string subStr = v324[m].first.substr(6u);
|
|
||||||
ss << "\"model:";
|
ss << "\"model:";
|
||||||
|
std::string subStr = v324[m].first.substr(6u);
|
||||||
ss << subStr << "\"" << ":\"";
|
ss << subStr << "\"" << ":\"";
|
||||||
ss << WXML::Rewrite::ToStringCode(v324[m].second.ToAttrContent());
|
ss << WXML::Rewrite::ToStringCode(v324[m].second.ToAttrContent());
|
||||||
ss << "\",";
|
ss << "\",";
|
||||||
std::string v336 = subStr;
|
std::string v336 = subStr;
|
||||||
// while (/* condition */)
|
// find
|
||||||
// {
|
if (v330.find(v336) == v330.end())
|
||||||
// /* code */
|
{
|
||||||
// }
|
v324[m].first = v336;
|
||||||
throw "not implement";
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
v324.erase(v324.begin() + m);
|
||||||
|
m = m - 1;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user