Giter Site home page Giter Site logo

数字框C默认值如果设置了公式“${a +b}”,a是1,b是2,c是5, c会显示成3,实际值5,5会被默认值3覆盖,这种情况不是应该取实际值显示么,为什么会被默认值覆盖呢 about amis HOT 3 CLOSED

dengdamei avatar dengdamei commented on April 30, 2024
数字框C默认值如果设置了公式“${a +b}”,a是1,b是2,c是5, c会显示成3,实际值5,5会被默认值3覆盖,这种情况不是应该取实际值显示么,为什么会被默认值覆盖呢

from amis.

Comments (3)

github-actions avatar github-actions commented on April 30, 2024

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

from amis.

wibetter avatar wibetter commented on April 30, 2024

@dengdamei

  1. 如果value是表达式,则优先取表达式运算后的值;
  2. 如果value非表达式,判断当前数据域是否有同名字段(根据name进行匹配),有则取数据域同名字段的数值;
  3. 如果value非表达式,且当前数据域没有同名字段,则使用value作为默认值进行展示。

from amis.

dengdamei avatar dengdamei commented on April 30, 2024

明白了,谢谢

from amis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.